/* ==========================================================================
   YODELOPE.COM — SITE STYLESHEET
   ==========================================================================
   Plain CSS, no build step, no framework. Depends on css/tokens.css being
   loaded first (custom properties only — see that file's header before
   touching any color in this one).

   Two registers, one system:
     - default / .kid-charm    → bright, rounded, warm (marketing pages)
     - .adult-register         → calmer adult palette (parent band, legal
                                  pages, /for-parents, /accessibility)
   Both draw from the same token set; only which tokens they use differs.
   ========================================================================== */

/* -- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--text-primary);
  font-family: 'Nunito', 'Varela Round', 'Quicksand', system-ui, sans-serif;
  font-size: var(--wt-body, 18px);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
svg { display: block; }
/* Link colors match design/tokens/web.css exactly: coral-700 resting,
   coral-900 on hover — same rule verbatim, not re-derived. */
a { color: var(--coral-700); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--coral-900); }
h1, h2, h3, h4 {
  font-family: 'Fredoka', 'Baloo 2', 'Comic Neue', system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--text-primary);
}
h1 { font-size: var(--wt-h1); }
h2 { font-size: var(--wt-h2); }
h3 { font-size: var(--wt-h3); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* -- Skip link -------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  background: var(--text-primary);
  color: var(--text-on-brand);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 100;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 8px;
}

/* -- Focus states (visible everywhere, never suppressed) -------------------
   Matches design/tokens/web.css's focus rule verbatim (3px brand-secondary
   outline, 2px offset), extended to the same non-native-button elements
   this site also needs (summary, [tabindex]). */
a:focus-visible {
  outline: 3px solid var(--brand-secondary);
  outline-offset: 2px;
  border-radius: 6px;
}
:where(button, [role="button"], summary, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid var(--brand-secondary);
  outline-offset: 2px;
}

/* -- Layout helpers ---------------------------------------------------------- */
.container {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 24px;
}
.prose-container {
  max-width: var(--max-prose);
  margin: 0 auto;
  padding: 0 24px;
}
main { display: block; }
.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.eyebrow {
  display: inline-block;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: var(--wt-eyebrow, 0.85rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-secondary);
  margin-bottom: 0.6em;
}
.section-head { max-width: 46em; margin: 0 0 2.2em; }
.section-head h2 { font-size: var(--wt-h2); }
.section-head p { color: var(--text-secondary); font-size: 1.05rem; }

/* -- Buttons ------------------------------------------------------------- */
/* Component ref: WebButton.jsx — primary=web-cut-coral, secondary=web-cut-paper
   Hover: web-hover-lift + web-hover-dim. Press: web-press. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.85em 1.6em;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  min-height: var(--web-hit, 48px);
  transition: transform var(--d-2, 0.12s) ease, filter var(--d-2, 0.12s) ease;
}
.btn--go {
  background: var(--action-go);
  color: var(--text-on-brand);
  box-shadow: var(--web-cut-coral);
}
.btn--go:hover { transform: var(--web-hover-lift); filter: var(--web-hover-dim); color: var(--text-on-brand); }
.btn--go:active { transform: var(--web-press); }
.btn--go::before { content: "✓"; font-weight: 900; }
.btn--neutral {
  background: var(--surface-raised);
  color: var(--text-primary);
  box-shadow: var(--web-cut-paper);
}
.btn--neutral:hover { transform: var(--web-hover-lift); filter: var(--web-hover-dim); color: var(--text-primary); }
.btn--neutral:active { transform: var(--web-press); }
.btn--lg { font-size: 1.1rem; padding: 1em 2em; }

/* -- Nav ------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.nav.scrolled { border-bottom-color: var(--border); box-shadow: var(--elevation-2); }
.nav__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text-primary);
  text-decoration: none;
  margin-right: auto;
}
.nav__logo:hover { color: var(--brand-primary); }
.nav__logo img,
.nav__logo svg { width: 32px; height: 32px; display: inline-block; vertical-align: middle; }
.nav__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  font-weight: 700;
  font-size: 0.95rem;
}
.nav__links a { color: var(--text-primary); text-decoration: none; padding: 10px 12px; border-radius: var(--radius-sm); min-height: var(--web-hit, 48px); display: inline-flex; align-items: center; }
.nav__links a:hover { color: var(--brand-secondary); }
/* Component ref: SiteNav.jsx — active gets inset bottom bar, not underline */
.nav__links a[aria-current="page"] { color: var(--brand-primary); box-shadow: inset 0 -3px 0 var(--brand-primary); }
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  /* Component ref: SiteNav.jsx — web-hit = 48px, bars 22×3px */
  width: var(--web-hit, 48px);
  height: var(--web-hit, 48px);
  background: var(--surface-sunken);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav__toggle span { display: block; height: 3px; width: 22px; margin: 0 auto; border-radius: 2px; background: var(--text-primary); }

@media (max-width: 860px) {
  .nav__links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    gap: 14px;
    display: none;
  }
  .nav__links.open { display: flex; }
  .nav__toggle { display: flex; }
}

/* -- Footer ------------------------------------------------------------- */
.footer {
  background: var(--adult-surface);
  border-top: 1px solid var(--adult-border);
  padding: 40px 0 28px;
  color: var(--adult-text-secondary);
  font-size: 0.92rem;
}
.footer__inner { max-width: var(--max-content); margin: 0 auto; padding: 0 24px; }
.footer__links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 18px;
  padding: 0;
}
.footer__links a { color: var(--adult-text-primary); text-decoration: none; font-weight: 700; }
.footer__links a:hover { color: var(--adult-brand-primary); }
.footer__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
.footer__spindlecode { display: inline-flex; align-items: center; gap: 6px; color: var(--adult-text-secondary); text-decoration: none; }
.footer__spindlecode:hover { color: var(--adult-brand-primary); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  padding: 56px 0 64px;
  background: linear-gradient(180deg, var(--surface-sunken), var(--surface));
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 24px;
}
.hero h1 {
  font-size: var(--wt-hero);
  margin-bottom: 0.3em;
}
.hero__promise { font-size: 1.2rem; color: var(--text-secondary); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6em; }
.hero__badges { display: flex; gap: 10px; margin-top: 1.4em; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 14px; font-weight: 800; font-size: 0.85rem; color: var(--text-secondary);
}
.hero__art { position: relative; }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 340px; margin: 0 auto; }
}

/* -- Pitch lane micro-animation (hero + /how-it-works) --------------------- */
.pitch-lane {
  background: var(--surface-raised);
  border: 3px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--elevation-3);
}
.pitch-lane__track {
  position: relative;
  height: 130px;
  border-radius: var(--radius-md);
  background: repeating-linear-gradient(
    180deg, var(--surface-sunken) 0 24px, var(--surface) 24px 48px
  );
  overflow: hidden;
}
.pitch-lane__note {
  position: absolute;
  height: 14px;
  border-radius: var(--radius-pill);
  background: var(--note-normal);
}
.pitch-lane__note--golden { background: var(--note-golden); }
.pitch-lane__dot {
  position: absolute;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--pitch-on);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--pitch-on) 25%, transparent);
  animation: pitch-ride 4.5s ease-in-out infinite;
}
@keyframes pitch-ride {
  0%   { left: 4%;  top: 70%; }
  20%  { left: 24%; top: 40%; }
  40%  { left: 44%; top: 55%; }
  60%  { left: 64%; top: 25%; }
  80%  { left: 84%; top: 45%; }
  100% { left: 4%;  top: 70%; }
}
@media (prefers-reduced-motion: reduce) {
  .pitch-lane__dot { animation: none; left: 44%; top: 45%; }
}
.pitch-lane__caption {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
}

/* ==========================================================================
   CARDS
   ========================================================================== */
.card {
  background: var(--surface-raised);
  border: 3px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}
/* Forced 3-column grid: 3×3 = no orphans. Responsive: 2-col at tablet, 1-col at phone. */
.card-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 680px) {
  .card-grid--3col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .card-grid--3col { grid-template-columns: 1fr; }
}

/* Character card */
/* Component ref: CharacterCard.jsx — hover: 6px lift to web-e-3 */
.char-card {
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.char-card:hover, .char-card:focus-within { transform: translateY(-6px); box-shadow: var(--web-e-3); }
.char-card__portrait {
  width: 140px; height: 140px; margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--surface-sunken);
  display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--border);
  overflow: hidden; /* clip any img to the circle */
}
/* Real character badge art fills edge-to-edge; no padding inside the circle */
.char-card__portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.char-card__name { font-family: 'Fredoka', sans-serif; font-size: 1.2rem; margin-bottom: 0.2em; }
.char-card__role { color: var(--brand-secondary); font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.6em; }
.char-card__note { color: var(--text-secondary); font-size: 0.95rem; margin: 0; }
/* Component ref: CharacterCard.jsx — band chip: --accent (sun-400) bg, --text-primary color */
.char-card__range {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 5px 9px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--text-primary);
  margin-bottom: 8px;
}

/* Role chip — appears above the character name to signal group membership */
.char-card__chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  margin-bottom: 8px;
}
.char-card__chip--mascot {
  background: var(--coral-50);
  color: var(--coral-700);
  border-color: var(--coral-200);
}
.char-card__chip--buddy {
  background: var(--leaf-50);
  color: var(--leaf-700);
  border-color: var(--leaf-200);
}
.char-card__chip--coach {
  background: var(--sky-50);
  color: var(--sky-700);
  border-color: var(--sky-200);
}

/* Numbered feature panel (how-it-works, three panels) */
.step-panel { position: relative; padding-top: 12px; }
.step-panel__num {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-on-brand);
  background: var(--brand-primary);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}

/* Claim tile (parent band) */
/* Component ref: ClaimTile.jsx tone="adult" — inset 2px border shadow, no elevation */
.claim-tile {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--adult-surface-raised);
  box-shadow: inset 0 0 0 2px var(--a-border);
  border-radius: var(--radius-md);
  padding: 20px;
}
.claim-tile__icon {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--adult-action-go) 14%, transparent);
  color: var(--adult-action-go);
  display: flex; align-items: center; justify-content: center;
}
.claim-tile h3 { font-size: 1.05rem; margin-bottom: 0.25em; }
.claim-tile p { color: var(--adult-text-secondary); font-size: 0.95rem; margin: 0; }
.claim-tile a { font-weight: 700; }

/* "What we don't do" block */
/* Component ref: NeverBlock.jsx — ring bullet: accent-quiet bg, a-accent inset ring, dash inside */
.no-do-block {
  background: var(--a-surface, var(--adult-surface));
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 760px;
}
.no-do-block h3 { font-size: 1.2rem; font-family: 'Nunito', sans-serif; margin: 0; }
.no-do-block ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.no-do-block li { display: flex; gap: 14px; align-items: flex-start; }
/* Ring-and-dash bullet */
.no-do-block li::before {
  content: "";
  display: block;
  flex: none;
  width: 22px; height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--a-accent-quiet, var(--adult-accent-quiet));
  box-shadow: inset 0 0 0 2px var(--a-accent, var(--adult-brand-primary));
  /* dash inside the ring via background-image */
  background-image: linear-gradient(var(--a-accent, var(--adult-brand-primary)), var(--a-accent, var(--adult-brand-primary)));
  background-repeat: no-repeat;
  background-size: 10px 3px;
  background-position: center;
}
.no-do-block li span, .no-do-block li p { font-size: 1rem; color: var(--a-text-primary, var(--adult-text-primary)); margin: 0; max-width: var(--max-prose); }

/* Age-rating badge */
.age-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--adult-brand-primary);
  color: var(--adult-brand-primary);
  border-radius: var(--radius-pill);
  padding: 8px 16px 8px 10px;
  font-weight: 800;
  font-size: 0.95rem;
}
.age-badge__mark {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--adult-brand-primary);
  color: var(--text-on-brand);
  font-size: 0.85rem;
}

/* Screenshot phone frame */
.phone-frame {
  border: 8px solid var(--text-primary);
  border-radius: 34px;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  background: var(--surface-sunken);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}
.phone-frame__label { color: var(--text-secondary); font-size: 0.85rem; }


/* ==========================================================================
   LEGAL PAGE TEMPLATE
   ========================================================================== */
.legal {
  background: var(--adult-surface);
  color: var(--adult-text-primary);
}
.legal-banner {
  background: var(--sun-50);
  border: 2px solid var(--sun-500);
  color: var(--sun-900);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 0.95rem;
  margin-bottom: 2.2em;
}
.legal-banner strong { display: block; margin-bottom: 0.2em; }
.legal-header { margin-bottom: 2em; }
.legal-header h1 { font-size: var(--wt-h1); }
.legal-meta {
  display: flex; gap: 18px; flex-wrap: wrap;
  font-size: 0.9rem; color: var(--adult-text-secondary);
  margin-top: 0.6em;
}
.legal-meta strong { color: var(--adult-text-primary); }

.legal-summary {
  background: var(--adult-surface-raised);
  border: 2px solid var(--adult-border);
  border-left: 6px solid var(--adult-action-go);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 2.4em;
}
.legal-summary h2 { font-size: 1.05rem; margin-bottom: 0.6em; }
.legal-summary ul { margin: 0; padding-left: 1.2em; }
.legal-summary li { margin-bottom: 0.4em; }

.legal-body { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 48px; align-items: start; }
/* Component ref: LegalTOC.jsx — aria-label="On this page", active: inset 3px left bar + accent-quiet bg */
.legal-toc {
  position: sticky;
  top: 90px;
  font-size: 0.9rem;
  background: var(--a-surface-raised, var(--adult-surface-raised));
  box-shadow: inset 0 0 0 2px var(--a-border, var(--adult-border));
  border-radius: var(--radius-md);
  padding: 20px;
}
.legal-toc h2 { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.09em; color: var(--a-text-secondary, var(--adult-text-secondary)); margin-bottom: 0.8em; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.legal-toc a {
  display: block; padding: 8px 10px; border-radius: var(--radius-sm);
  color: var(--a-text-secondary, var(--adult-text-secondary)); text-decoration: none;
  font-weight: 600; font-size: 0.9rem;
}
.legal-toc a:hover { color: var(--a-text-primary, var(--adult-text-primary)); }
/* Active TOC item — set .active via scroll-spy JS or aria-current="true" */
.legal-toc a.active,
.legal-toc a[aria-current="true"] {
  font-weight: 800;
  color: var(--a-text-primary, var(--adult-text-primary));
  background: var(--a-accent-quiet, var(--adult-accent-quiet));
  box-shadow: inset 3px 0 0 var(--a-accent, var(--adult-brand-primary));
}

.legal-content h2 { font-size: 1.3rem; margin-top: 1.8em; scroll-margin-top: 90px; }
.legal-content h3 { font-size: 1.05rem; margin-top: 1.4em; scroll-margin-top: 90px; }
.legal-content p, .legal-content li { color: var(--adult-text-primary); }
.legal-content table {
  width: 100%; border-collapse: collapse; font-size: 0.92rem; margin: 1em 0;
}
.legal-content th, .legal-content td {
  border: 1px solid var(--adult-border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.legal-content th { background: var(--adult-surface-raised); }
.legal-content code {
  background: var(--adult-surface-raised);
  border: 1px solid var(--adult-border);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  font-size: 0.9em;
}

.todo-legal {
  display: inline;
  background: var(--berry-50);
  border: 1px solid var(--berry-500);
  color: var(--berry-900);
  border-radius: 4px;
  padding: 0 0.35em;
  font-weight: 700;
  font-size: 0.92em;
}

.revision-table { margin-top: 2.4em; }

/* Accordion (by-state rights, FAQ) */
/* Component ref: Accordion.jsx tone="adult" — details/summary with chevron, inset 2px shadow */
.accordion-item {
  background: var(--a-surface-raised, var(--adult-surface-raised));
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 2px var(--a-border, var(--adult-border));
  padding: 12px 16px;
}
.accordion-item summary {
  cursor: pointer;
  padding: 4px 0;
  font-weight: 800;
  font-family: 'Nunito', sans-serif;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--a-text-primary, var(--adult-text-primary));
}
.accordion-item summary::-webkit-details-marker { display: none; }
/* Chevron — right/bottom border rotates to open */
.accordion-item summary::before {
  content: "";
  display: block;
  flex: none;
  width: 10px; height: 10px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  border-radius: 2px;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.accordion-item[open] summary::before { transform: rotate(-135deg) translate(-2px, -2px); }
.accordion-item__body { padding: 12px 0 4px 22px; color: var(--a-text-secondary, var(--adult-text-secondary)); font-size: 0.95rem; line-height: 1.7; }

/* Collapsible license entry */
/* Component ref: LicenseEntry.jsx — name | version | license chip (accent-quiet) | kind (uppercase) */
.license-entry {
  background: var(--a-surface-raised, var(--adult-surface-raised));
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 2px var(--a-border, var(--adult-border));
  padding: 16px;
  margin-bottom: 14px;
  max-width: 760px;
}
.license-entry summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
}
.license-entry summary::-webkit-details-marker { display: none; }
.license-entry__name { font-weight: 800; font-size: 1.05rem; color: var(--a-text-primary, var(--adult-text-primary)); }
.license-entry__version { font-weight: 600; font-size: 0.88rem; color: var(--a-text-secondary, var(--adult-text-secondary)); }
/* License chip: accent-quiet bg, like LicenseEntry.jsx */
.license-entry__chip {
  font-weight: 800; font-size: 0.72rem; letter-spacing: 0.05em;
  padding: 5px 8px; border-radius: var(--radius-sm);
  background: var(--a-accent-quiet, var(--adult-accent-quiet));
  color: var(--a-text-primary, var(--adult-text-primary));
}
/* Kind label: uppercase small text, secondary color */
.license-entry__kind {
  font-weight: 700; font-size: 0.72rem; letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--a-text-secondary, var(--adult-text-secondary));
}
.license-entry__body { padding: 14px 0 2px; display: flex; flex-direction: column; gap: 12px; }
.license-entry pre {
  background: var(--a-surface-sunken, var(--adult-surface-sunken));
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 0.8rem;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}
.license-entry__notice-label {
  font-weight: 800; font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--a-text-secondary, var(--adult-text-secondary));
  margin-bottom: 5px;
}

@media (max-width: 860px) {
  .legal-body { grid-template-columns: 1fr; }
  .legal-toc { position: static; border-left: none; padding-left: 0; border-top: 2px solid var(--adult-border); padding-top: 16px; }
}

/* ==========================================================================
   404 / offline
   ========================================================================== */
.status-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 24px;
}
.status-page__art { width: 140px; margin: 0 auto 24px; }

/* ==========================================================================
   Print (legal pages must be printable, §11.5.1)
   ========================================================================== */
@media print {
  .nav, .footer, .skip-link, .legal-toc { display: none !important; }
  .legal-body { grid-template-columns: 1fr; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; text-decoration: underline; }
}

/* ==========================================================================
   Utility
   ========================================================================== */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.lyric-sample {
  /* Matches type.scale.lyric in tokens.json: 28px floor, 700 weight,
     1.15 line-height, .01em tracking — the same sizing rule the app's
     real gameplay lyric line uses, not an arbitrary caption size. */
  font-family: 'Andika', 'Nunito', 'Verdana', system-ui, sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .01em;
  color: var(--text-primary);
}
