/* CSS additions for interactive components */
.quiz {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}
.quiz h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.quiz p { color: var(--fg-muted); font-size: 14px; margin: 0; line-height: 1.55; }
.quiz-bar {
  height: 4px;
  background: var(--line);
  position: relative;
}
.quiz-bar-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.3s ease, background 0.3s ease;
}
.quiz-opts { display: grid; gap: 8px; margin-top: 4px; }
.quiz-opt {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  align-items: center;
  text-align: left;
  padding: 16px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--fg);
  font-size: 14px;
  transition: all 0.15s;
}
.quiz-opt:hover { border-color: var(--accent); background: var(--accent-soft); }
.quiz-opt-letter {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}
.quiz-rec {
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}
.quiz-rec .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
}
.quiz-rec strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  color: var(--accent);
}

/* calc */
.calc-inputs {
  display: grid;
  gap: 18px;
}
.calc-inputs label {
  display: grid;
  gap: 8px;
}
.calc-inputs label > span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  text-transform: uppercase;
}
.calc-row {
  display: grid;
  grid-template-columns: 1fr 80px;
  gap: 16px;
  align-items: center;
}
.calc-val {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--accent);
  text-align: right;
}
.calc-inputs input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 2px;
  background: var(--line-strong);
  outline: 0;
}
.calc-inputs input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
}
.calc-inputs input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  border: 0;
}
.calc-results {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: grid;
  gap: 10px;
}
.calc-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: var(--fg-muted);
}
.calc-line .val { font-family: var(--font-mono); color: var(--fg); }
.calc-line.total {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 6px;
  font-size: 14px;
}
.calc-line.total .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--fg);
}
.calc-line.total .val {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--accent);
  font-weight: 400;
}
