/* EURACO curriculum — colours from the eura.co one-pager */
:root {
  --ink: #172d30;
  --muted: #61716f;
  --teal: #34756f;
  --mint: #78b5ad;
  --line: #d4e2df;
  --paper: #f3f6f5;
  --card: #ffffff;
  --why: #e7f3f1;
  --got: #2c6b4a;
  --got-bg: #e5f4eb;
  --shadow: 0 10px 30px rgba(23, 45, 48, 0.08);
  --shadow-hover: 0 16px 40px rgba(23, 45, 48, 0.14);
  --radius: 20px;
  --font: "Inter", "Noto Sans", "DejaVu Sans", ui-sans-serif, system-ui, sans-serif;
  --ring: 326.726; /* 2π * 52 */
  --toolbar-offset: 0px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { min-height: 100vh; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ——— Hero ——— */
.hero {
  background: var(--ink);
  color: #fff;
  padding: calc(1.7rem + env(safe-area-inset-top, 0px)) 1.25rem 1.9rem;
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 880px) {
  .hero {
    padding: calc(2.2rem + env(safe-area-inset-top, 0px)) 2rem 2.4rem;
  }
  .hero-inner {
    grid-template-columns: 1fr auto;
    gap: 3rem;
  }
}

.logo {
  display: block;
  height: 40px;
  width: auto;
  margin: 0 0 0.95rem;
}

.eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint);
}

.hero h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.85rem, 5vw, 3.05rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.lede {
  margin: 0 0 0.75rem;
  max-width: 40rem;
  color: #d4e2df;
  font-size: 1.02rem;
}

.tagline {
  margin: 0;
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 500;
  color: var(--mint);
}

.hero-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(216, 226, 223, 0.18);
  border-radius: 24px;
  padding: 1.3rem 1.4rem 1.2rem;
  min-width: 200px;
  text-align: center;
  justify-self: start;
}

@media (min-width: 880px) {
  .hero-panel { justify-self: end; min-width: 230px; }
}

.ring-wrap {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 auto 0.6rem;
}

.ring { width: 100%; height: 100%; transform: rotate(-90deg); }

.ring-track,
.ring-value {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
}

.ring-track { stroke: rgba(120, 181, 173, 0.25); }
.ring-value {
  stroke: var(--mint);
  stroke-dasharray: var(--ring);
  stroke-dashoffset: var(--ring);
  transition: stroke-dashoffset 0.5s ease;
}

.ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: none;
}

.ring-label strong {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.ring-label span {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: #d4e2df;
  font-weight: 500;
}

.hero-panel-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--mint);
}

.hero-panel-note {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: #d4e2df;
}

/* ——— Sticky toolbar ——— */
.toolbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(243, 246, 245, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}

.toolbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.8rem;
  align-items: center;
}

.search {
  position: relative;
  flex: 1 1 220px;
  min-width: 180px;
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.62rem 0.95rem 0.62rem 2.35rem;
  font: inherit;
  font-size: 0.95rem;
}

.search input::placeholder { color: #8a9997; }
.search input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(52, 117, 111, 0.18);
}

.segmented,
.mode-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.segmented {
  background: #e4eeec;
  padding: 0.2rem;
  border-radius: 999px;
}

.segmented button,
.mode-btns button,
.quiz-actions button,
.btn-got,
.quiz-close {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  color: var(--ink);
  background: transparent;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  white-space: nowrap;
}

.segmented button.is-active {
  background: var(--ink);
  color: #fff;
}

.mode-btns button,
.quiz-actions button,
.quiz-close {
  background: var(--card);
  border: 1px solid var(--line);
}

.btn-primary,
.mode-btns .btn-primary,
.quiz-actions .btn-primary,
.btn-got.is-on {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.mode-btns button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.mode-btns {
  margin-left: auto;
}

.key-hint {
  display: inline-block;
  margin-left: 0.3rem;
  padding: 0 0.28rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.45;
  vertical-align: 0.05em;
}

.toolbar-progress {
  height: 3px;
  background: var(--line);
}

.toolbar-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--teal);
  transition: width 0.45s ease;
}

@media (max-width: 720px) {
  .mode-btns { margin-left: 0; }
}

@media (max-width: 600px) {
  .hero {
    padding: calc(1.25rem + env(safe-area-inset-top, 0px)) 1.1rem 1.35rem;
  }
  .hero-inner { gap: 1.15rem; }
  .logo { height: 30px; margin-bottom: 0.7rem; }
  .eyebrow { font-size: 0.7rem; margin-bottom: 0.3rem; }
  .hero h1 { font-size: 1.75rem; margin-bottom: 0.4rem; }
  .lede { font-size: 0.94rem; margin-bottom: 0.5rem; }
  .tagline { font-size: 0.95rem; }
  .hero-panel {
    width: 100%;
    min-width: 0;
    padding: 0.85rem 1rem 0.8rem;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 1rem;
    row-gap: 0.15rem;
    text-align: left;
    align-items: center;
  }
  .ring-wrap {
    grid-row: 1 / span 2;
    width: 84px;
    height: 84px;
    margin: 0;
  }
  .ring-label strong { font-size: 1.25rem; }
  .ring-label span { font-size: 0.62rem; }
  .hero-panel-kicker { margin: 0; }
  .hero-panel-note { margin: 0; }
  .toolbar-inner {
    padding: 0.55rem 1rem 0.45rem;
    gap: 0.45rem;
  }
  .search { flex: 1 1 100%; min-width: 0; }
  .segmented { width: 100%; }
  .segmented button { flex: 1 1 0; }
  .mode-btns {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }
  .mode-btns button { width: 100%; padding: 0.5rem 0.6rem; }
  .key-hint { display: none; }
  .cats { padding: 0 1rem 0.55rem; }
}


.cats {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem 0.75rem;
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--mint) transparent;
}

.cat-pill {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 14px;
  padding: 0.42rem 0.7rem 0.48rem;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  line-height: 1.2;
}

.cat-pill small {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.68rem;
}

.cat-pill .mini-bar {
  width: 100%;
  height: 3px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}

.cat-pill .mini-bar > span {
  display: block;
  height: 100%;
  background: var(--teal);
  width: 0;
}

.cat-pill.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.cat-pill.is-active small { color: #d4e2df; }
.cat-pill.is-active .mini-bar { background: rgba(255,255,255,0.2); }
.cat-pill.is-active .mini-bar > span { background: var(--mint); }

/* ——— Deck ——— */
.deck {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.4rem 1.25rem 3rem;
}

.category {
  margin: 0 0 2.2rem;
}

.category-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.9rem;
}

.category-head h2 {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
}

.category-head .cat-count {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .category-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 700px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1020px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

/* ——— Flip cards ——— */
/* Faces share one grid cell so the card grows with the taller side
   (usually the back). Absolute faces plus overflow:hidden clipped the
   “Why it matters” box, and overflow:auto is unreliable on a 3D-transformed element. */
.card {
  min-height: 22.5rem;
  perspective: 1400px;
  position: relative;
  height: auto;
}

.card-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  width: 100%;
  min-height: 22.5rem;
  height: auto;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  border-radius: var(--radius);
}

.card.is-flipped .card-inner {
  transform: rotateY(180deg);
}

.card-face {
  grid-area: 1 / 1;
  position: relative;
  align-self: stretch;
  width: 100%;
  min-height: 100%;
  box-sizing: border-box;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: auto;
  display: flex;
  flex-direction: column;
  padding: 1.2rem 1.2rem 1.05rem;
}

.card-front { cursor: pointer; }
.card-back {
  transform: rotateY(180deg);
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
}

.card:hover .card-face,
.card:focus-within .card-face {
  box-shadow: var(--shadow-hover);
  border-color: #b7ccc8;
}

.card.is-got .card-front {
  background:
    linear-gradient(180deg, #f6fbf8 0%, #ffffff 40%);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.cat-num {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

.got-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--got);
  background: var(--got-bg);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
}

.card-term {
  margin: 0 0 0.45rem;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.card-term-back {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.card-expansion {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.card-front .grow { flex: 1; }
.card-back .grow { flex: 0 1 auto; }

.flip-hint {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mint);
}

.card-back .explanation {
  margin: 0 0 0.9rem;
  font-size: 0.92rem;
  line-height: 1.45;
}

.card-back .explanation p { margin: 0 0 0.55rem; }
.card-back .explanation p:last-child { margin-bottom: 0; }

.why {
  background: var(--why);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  margin: 0 0 0.9rem;
}

.why strong {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.25rem;
}

.why p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.4;
}

.face-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  cursor: pointer;
  min-height: 0;
  overflow: visible;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
  margin-top: 0.55rem;
  flex-shrink: 0;
}

.btn-got {
  align-self: flex-start;
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: var(--paper);
}

.learn-more {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--teal);
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  line-height: 1.15;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.learn-more:hover,
.learn-more:focus-visible {
  border-color: var(--teal);
  background: #e4eeec;
}

.learn-more:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.btn-got.is-on {
  background: var(--got);
  border-color: var(--got);
  color: #fff;
}

.empty {
  max-width: 1120px;
  margin: 0 auto 3rem;
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--muted);
}

/* ——— Footer ——— */
.site-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  color: var(--muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}

.site-footer a { color: var(--teal); font-weight: 600; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.footer-tag {
  font-style: italic;
  color: var(--teal);
  font-weight: 500;
}

.text-btn {
  appearance: none;
  border: 0;
  background: none;
  color: var(--teal);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.keys-hint { font-size: 0.75rem; }

/* ——— Pop quiz ——— */
.quiz {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(23, 45, 48, 0.78);
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
}

.quiz[hidden] { display: none; }

.quiz-panel {
  background: var(--paper);
  width: 100%;
  min-height: 100%;
  max-height: 100%;
  overflow: auto;
  border-radius: 0;
  padding: 1.15rem 1.25rem max(1.4rem, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  box-shadow: none;
}

.quiz-top {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
}

.quiz-top h2 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.quiz-meta {
  margin: 0;
  flex: 1;
  color: var(--muted);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.quiz-stage {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 40rem;
  width: 100%;
  margin: 0 auto;
  padding: 0.5rem 0 1rem;
}

.quiz-cat {
  margin: 0;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quiz-term {
  margin: 0.4rem 0 0;
  font-size: clamp(1.85rem, 6vw, 3.1rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.quiz-prompt {
  margin: 1.1rem 0 0;
  font-size: 1.15rem;
  color: var(--muted);
}

.quiz-reveal {
  margin-top: 1.4rem;
}

.quiz-reveal .explanation {
  font-size: 1.02rem;
}

.quiz-reveal .why {
  margin-top: 1rem;
}

.quiz-reveal .card-actions {
  margin-top: 1rem;
}

.quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 40rem;
  width: 100%;
  margin: auto auto 0;
  padding-top: 0.6rem;
}

.quiz-actions button {
  flex: 1 1 9rem;
  min-height: 2.85rem;
  font-size: 0.95rem;
}

body.quiz-open,
body.path-open { overflow: hidden; }

@media (min-width: 700px) {
  .quiz {
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
  }
  .quiz-panel {
    width: min(720px, 100%);
    min-height: 0;
    max-height: calc(100vh - 3rem);
    border-radius: 24px;
    padding: 1.35rem 1.6rem 1.5rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  }
}


/* ——— Beginner path ——— */
.path-stage {
  justify-content: flex-start;
}

.path .quiz-term {
  font-size: clamp(1.55rem, 4.5vw, 2.45rem);
}

.path-intro {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.path-expansion {
  margin: 0.35rem 0 0;
  font-size: 1.05rem;
  color: var(--muted);
}

.path-body {
  margin-top: 1.15rem;
}

.path-body .explanation {
  font-size: 1.02rem;
}

.path-body .why {
  margin-top: 1rem;
}

.path-done {
  max-width: 40rem;
}

.path-done h3 {
  margin: 0.3rem 0 0;
  font-size: clamp(1.55rem, 4.5vw, 2.2rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.path-done p {
  margin: 0.85rem 0 0;
  font-size: 1.05rem;
  color: var(--ink);
}

.path-actions-got.is-on,
#path-actions .btn-got.is-on {
  background: var(--got);
  border-color: var(--got);
  color: #fff;
}

#path-actions [data-path="back"][disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ——— Surprise toast ——— */
.surprise {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 70;
  width: min(22.5rem, calc(100vw - 2rem));
  animation: surprise-in 0.45s ease;
}

.surprise[hidden] { display: none; }

.surprise-card {
  position: relative;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.05rem 1.15rem 1.15rem;
  box-shadow: 0 16px 40px rgba(23, 45, 48, 0.18);
}

.surprise-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

.surprise-cat {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.surprise-term {
  margin: 0.2rem 0 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.surprise-prompt {
  margin: 0.45rem 0 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.surprise-card .btn-primary {
  width: 100%;
  min-height: 2.5rem;
}

.surprise-dismiss {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0.25rem 0.4rem;
  border-radius: 999px;
}

.surprise-dismiss:hover,
.surprise-dismiss:focus-visible {
  color: var(--ink);
  background: var(--paper);
}

@keyframes surprise-in {
  from { transform: translateY(1.15rem); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@media (max-width: 600px) {
  .surprise {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    width: auto;
  }
}

/* ——— Reduced motion ——— */
@media (prefers-reduced-motion: reduce) {
  .card-inner,
  .ring-value,
  .toolbar-progress span,
  .surprise {
    transition: none;
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card.is-flipped .card-inner {
    transform: none;
  }
  .card.is-flipped .card-front { display: none; }
  .card.is-flipped .card-back {
    transform: none;
    position: relative;
  }
  .card:not(.is-flipped) .card-back { display: none; }
}

/* ——— Concept illustrations ——— */
.path-illustration,
.card-illustration {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: var(--why);
}

.path-illustration {
  max-width: 22rem;
  margin: 0.35rem auto 1rem;
}

.card-illustration {
  max-width: 15.5rem;
  margin: 0 auto 0.85rem;
  border-radius: 12px;
}

.card.has-illustration .card-term {
  text-align: center;
}

.card.has-illustration .card-expansion {
  text-align: center;
}

.path .quiz-panel {
  overflow: hidden;
}

.path .quiz-stage {
  overflow: auto;
  min-height: 0;
}

.path .quiz-actions {
  flex-shrink: 0;
  margin-top: 0.4rem;
}

@media (max-width: 600px) {
  .path-illustration {
    max-width: 17.5rem;
    margin-bottom: 0.7rem;
  }
}


/* ——— Read aloud ——— */
.btn-read {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 3;
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--teal);
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
}
.btn-read:hover,
.btn-read:focus-visible {
  background: var(--why);
  border-color: var(--teal);
}
.btn-read.is-playing {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.btn-read svg {
  display: block;
  width: 18px;
  height: 18px;
}
.card-front .card-top,
.card-back .card-top {
  padding-right: 2.4rem;
}
.read-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}
.read-row .quiz-term {
  flex: 1;
  min-width: 0;
}
.read-row .btn-read {
  position: static;
  margin-top: 0.15rem;
}
