/* ==========================================================================
   Soft Skills for Early Recovery — Zachary Horton Foundation
   Design system matches the ZHF Hub (navy #33506B / blue #4E7599, gold
   accent #F5B83F, cream, Poppins). All sizes in rem so "Larger text" scales.
   ========================================================================== */

:root {
  --brand-50: #f2f6fa;
  --brand-100: #e1eaf3;
  --brand-200: #c6d6e6;
  --brand-300: #9db8d2;
  --brand-400: #7293b2;
  --brand-500: #4e7599;
  --brand-600: #3e6185;
  --brand-700: #33506b;
  --brand-800: #2b4359;
  --brand-900: #24384a;
  --brand-950: #172433;

  --cream: #fbf9f5;
  --sand: #f4efe6;
  --sand-2: #ebe3d4;
  --accent: #f5b83f;
  --accent-600: #d99a1e;
  --accent-700: #a8740f;
  --accent-50: #fef7e7;
  --accent-100: #fdecc4;
  --ink: #1d1c1c;

  --s-900: #0f172a;
  --s-800: #1e293b;
  --s-700: #334155;
  --s-600: #475569;
  --s-500: #64748b;
  --s-400: #94a3b8;
  --s-300: #cbd5e1;
  --s-200: #e2e8f0;
  --s-100: #f1f5f9;
  --s-50: #f8fafc;

  --ok: #047857;
  --ok-600: #059669;
  --ok-50: #ecfdf5;
  --ok-100: #d1fae5;
  --bad: #b42318;
  --bad-50: #fef3f2;
  --bad-100: #fee4e2;

  --r-sm: 0.5rem;
  --r: 0.75rem;
  --r-lg: 1rem;
  --r-xl: 1.5rem;

  --sh-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --sh-sm: 0 1px 3px rgba(16, 24, 40, .07), 0 1px 2px rgba(16, 24, 40, .04);
  --sh-md: 0 10px 28px -12px rgba(23, 36, 51, .22);
  --sh-lg: 0 24px 48px -20px rgba(23, 36, 51, .35);

  --font: 'Poppins', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --max: 72rem;
  --top-h: 4rem;
  --side-w: 21rem;
}

html.text-lg { font-size: 112.5%; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brand-100); color: var(--brand-950); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--brand-800); color: #fff; padding: .6rem 1rem; border-radius: var(--r); font-weight: 500; transition: top .15s; }
.skip-link:focus { top: 1rem; }

.i { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.i-fill { fill: currentColor; stroke: none; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }

.ext-link { color: var(--brand-700); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--brand-300); font-weight: 500; }
.ext-link:hover { text-decoration-color: currentColor; }

/* ───────────── Buttons ───────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 2.75rem; padding: 0 1.25rem; border-radius: var(--r);
  font-size: .9375rem; font-weight: 500; line-height: 1; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s, transform .15s;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--brand-700); color: #fff; box-shadow: var(--sh-xs); }
.btn-primary:hover { background: var(--brand-800); }
.btn-accent { background: var(--accent); color: var(--ink); box-shadow: var(--sh-xs); }
.btn-accent:hover { background: var(--accent-600); }
.btn-white { background: #fff; color: var(--brand-800); box-shadow: var(--sh-xs); }
.btn-white:hover { background: var(--brand-50); }
.btn-outline { background: #fff; color: var(--s-800); border-color: var(--s-300); }
.btn-outline:hover { background: var(--s-50); border-color: var(--s-400); }
.btn-secondary { background: var(--brand-50); color: var(--brand-800); }
.btn-secondary:hover { background: var(--brand-100); }
.btn-ghost { color: var(--s-700); }
.btn-ghost:hover { background: var(--s-100); }
.btn-glass { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-glass:hover { background: rgba(255,255,255,.2); }
.btn-sm { height: 2.25rem; padding: 0 .875rem; font-size: .875rem; border-radius: .625rem; }
.btn-lg { height: 3.25rem; padding: 0 1.75rem; font-size: 1rem; }
.btn-pill { border-radius: 999px; }
.btn-block { width: 100%; }
.btn-icon { width: 2.5rem; padding: 0; }
.linkbtn { color: var(--brand-700); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--brand-300); cursor: pointer; }
.linkbtn:hover { text-decoration-color: currentColor; }

/* ───────────── Small UI ───────────── */
.kicker { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-500); }
.chip {
  display: inline-flex; align-items: center; gap: .35rem; height: 1.75rem; padding: 0 .7rem;
  border-radius: 999px; font-size: .8125rem; font-weight: 500; white-space: nowrap;
  background: var(--brand-50); color: var(--brand-800); box-shadow: inset 0 0 0 1px var(--brand-100);
}
.chip .i { width: 1rem; height: 1rem; }
.chip-ok { background: var(--ok-50); color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok-100); }
.chip-gold { background: var(--accent-50); color: var(--accent-700); box-shadow: inset 0 0 0 1px var(--accent-100); }
.chip-glass { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.chip-plain { background: #fff; color: var(--s-600); box-shadow: inset 0 0 0 1px var(--s-200); }

.bar { height: .5rem; width: 100%; background: var(--s-100); border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--brand-600); border-radius: 999px; transition: width .4s ease; }
.bar-gold > i { background: var(--accent); }
.bar-glass { background: rgba(255,255,255,.16); }

.ring { position: relative; display: inline-grid; place-items: center; }
.ring svg { transform: rotate(-90deg); }
.ring .ring-track { stroke: var(--s-100); }
.ring .ring-fill { stroke: var(--brand-600); transition: stroke-dashoffset .6s ease; }
.ring.on-dark .ring-track { stroke: rgba(255,255,255,.16); }
.ring.on-dark .ring-fill { stroke: var(--accent); }
.ring .ring-label { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; line-height: 1.1; }
.ring .ring-label b { display: block; font-size: 1.5rem; font-weight: 600; }
.ring .ring-label small { display: block; font-size: .7rem; opacity: .75; margin-top: .1rem; }

.card { background: #fff; border: 1px solid rgba(226, 232, 240, .9); border-radius: var(--r-lg); box-shadow: var(--sh-xs); }
.divider { height: 1px; background: var(--s-200); border: 0; margin: 1.5rem 0; }

/* ───────────── Site header ───────────── */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--sand); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4.25rem; }
.brandmark { display: flex; align-items: center; min-width: 0; }
.brandmark img { height: 2.75rem; width: auto; }
.site-right { display: flex; align-items: center; gap: .25rem; }
.site-nav { display: none; align-items: center; gap: .25rem; margin-right: .5rem; }
@media (min-width: 768px) { .site-nav { display: flex; } }
.site-nav a { padding: .5rem .75rem; font-size: .9375rem; font-weight: 500; color: var(--s-600); white-space: nowrap; transition: color .15s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brand-800); }
.help-link { display: inline-flex; align-items: center; gap: .4rem; height: 2.25rem; padding: 0 .75rem; border-radius: 999px; font-size: .9375rem; font-weight: 500; color: var(--brand-700); transition: background .15s; }
.help-link:hover { background: var(--brand-50); }
.help-link .i { width: 1.1rem; height: 1.1rem; }
.site-cta { display: none; margin-left: .375rem; }
@media (min-width: 640px) { .site-cta { display: inline-flex; } }
.drawer .toc-head { padding-right: 3.75rem; }
.menu-toggle { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: var(--r); color: var(--s-700); }
.menu-toggle:hover { background: var(--s-100); }
@media (min-width: 768px) { .menu-toggle { display: none; } }
.mobile-menu { border-top: 1px solid var(--sand); background: #fff; padding: .5rem 1rem 1rem; }
.mobile-menu a, .mobile-menu button { display: flex; width: 100%; align-items: center; gap: .6rem; padding: .875rem .25rem; border-bottom: 1px solid var(--s-100); font-weight: 500; color: var(--s-700); }
.mobile-menu a:last-child, .mobile-menu button:last-child { border-bottom: 0; }
.btn-help { color: var(--brand-800); background: #fff; border-color: var(--brand-200); }
.btn-help:hover { background: var(--brand-50); border-color: var(--brand-300); }
.btn-help .i { color: var(--brand-600); }

/* ───────────── Home: hero ───────────── */
.hero { position: relative; overflow: hidden; background: var(--brand-800); color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 12% 8%, rgba(114,147,178,.55), transparent 50%), radial-gradient(circle at 92% 92%, rgba(245,184,63,.20), transparent 45%); pointer-events: none; }
#main:focus, [tabindex="-1"]:focus { outline: none; }
.panel-card > .ph h2 { display: flex; align-items: center; gap: .5rem; }
.panel-card > .ph h2 .i { color: var(--brand-500); }
.plan-class .ph h2 { display: block; }
.hero .container { position: relative; display: grid; gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 4rem; }
@media (min-width: 900px) { .hero .container { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; padding-top: 5.5rem; padding-bottom: 5.5rem; } }
.hero .eyebrow { font-size: .8125rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-200); }
.hero h1 { margin-top: 1rem; font-size: clamp(2.25rem, 5.4vw, 3.5rem); line-height: 1.08; font-weight: 600; letter-spacing: -.015em; }
.u-gold { position: relative; white-space: nowrap; }
.u-gold::after { content: ""; position: absolute; left: 0; bottom: -.1em; width: 100%; height: .16em; border-radius: 999px; background: rgba(245,184,63,.85); }
.hero .lead { margin-top: 1.5rem; max-width: 32rem; font-size: 1.125rem; line-height: 1.7; color: var(--brand-100); }
.hero .ctas, .page-hero .ctas { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.hero .ctas { margin-top: 2rem; }
.hero-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; color: rgba(255,255,255,.85); transition: color .15s, gap .15s; }
.hero-link:hover { color: #fff; gap: .6rem; }
.hero-link .i { width: 1.1rem; height: 1.1rem; }
.hero-meta { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .25rem 0; font-size: .875rem; color: var(--brand-200); }
.hero-meta span:not(:last-child)::after { content: "·"; margin: 0 .625rem; opacity: .6; }
.page-hero .hero-meta { margin-top: 1rem; }
.hero-art { display: none; justify-self: center; width: min(100%, 17rem); aspect-ratio: 420 / 385; overflow: hidden; opacity: .9; }
.hero-art img { width: 100%; height: auto; }
@media (min-width: 900px) { .hero-art { display: block; } }
.hero-progress { max-width: 26rem; width: 100%; justify-self: end; }
@media (max-width: 899px) { .hero-progress { justify-self: stretch; max-width: none; } }
.hero-progress .gc-progress { margin-top: 0; }

.glass-card { border-radius: var(--r-xl); background: rgba(255,255,255,.09); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 1.5rem; }
@media (min-width: 640px) { .glass-card { padding: 1.75rem; } }
.glass-card .gc-title { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.gc-list { margin-top: 1rem; display: grid; gap: .875rem; }
.gc-list li { display: flex; gap: .875rem; align-items: flex-start; }
.gc-list .ico { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: .75rem; background: rgba(255,255,255,.12); flex-shrink: 0; }
.gc-list .ico .i { width: 1.25rem; height: 1.25rem; }
.gc-list b { display: block; font-weight: 600; font-size: .9375rem; }
.gc-list span { display: block; font-size: .8125rem; color: var(--brand-200); }
.gc-progress { display: flex; align-items: center; gap: 1.25rem; margin-top: 1rem; }
.gc-progress .big { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.gc-progress .sub { font-size: .875rem; color: var(--brand-200); }
.gc-next { position: relative; display: block; margin-top: 1.25rem; padding: .875rem 2.75rem .875rem 1rem; border-radius: var(--r-lg); background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); transition: background .15s; }
.gc-next:hover { background: rgba(255,255,255,.14); }
.gc-next .k { display: block; font-size: .75rem; color: var(--brand-200); }
.gc-next .t { display: block; font-weight: 600; margin-top: .15rem; }
.gc-next .i { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: var(--accent); }
.gc-dots { display: flex; gap: .375rem; margin-top: 1.25rem; }
.gc-dots i { flex: 1; height: .375rem; border-radius: 999px; background: rgba(255,255,255,.16); }
.gc-dots i.on { background: var(--accent); }
.gc-dots i.half { background: linear-gradient(90deg, var(--accent) 50%, rgba(255,255,255,.16) 50%); }

/* Feature strip overlapping the hero */
.features { position: relative; z-index: 2; margin-top: -4rem; display: grid; gap: 1rem; }
@media (min-width: 768px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: #fff; border: 1px solid var(--sand); border-radius: var(--r-lg); padding: 1.5rem; box-shadow: var(--sh-sm); }
.feature .fi { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 1rem; background: var(--brand-50); color: var(--brand-700); }
.feature h3 { margin-top: 1rem; font-size: 1.0625rem; font-weight: 600; color: var(--s-900); }
.feature p { margin-top: .25rem; font-size: .875rem; line-height: 1.6; color: var(--s-600); }
@media (max-width: 767px) {
  .feature { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 1rem; padding: 1.125rem; }
  .feature .fi { grid-row: span 2; width: 2.75rem; height: 2.75rem; }
  .feature h3 { margin-top: 0; }
}

/* Sections */
.section { padding-top: 4.5rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
.section-head h2 { margin-top: .25rem; font-size: clamp(1.625rem, 3.4vw, 2rem); font-weight: 600; letter-spacing: -.01em; color: var(--s-900); line-height: 1.2; }
.section-head p { margin-top: .5rem; color: var(--s-600); max-width: 40rem; }
.overall { min-width: 15rem; }
.overall .t { display: flex; justify-content: space-between; font-size: .875rem; color: var(--s-600); margin-bottom: .5rem; }
.overall .t b { color: var(--s-900); font-weight: 600; }

/* Class cards */
.class-grid { margin-top: 2rem; display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .class-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .class-grid { grid-template-columns: repeat(3, 1fr); } }
.ccard { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--sand); border-radius: var(--r-lg); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.ccard:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--brand-100); }
.ccard .art { position: relative; height: 6.5rem; overflow: hidden; color: #fff; }
.art-bg { position: absolute; inset: 0; }
.art-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 120%, rgba(245,184,63,.35), transparent 55%), radial-gradient(circle at 0% 0%, rgba(255,255,255,.14), transparent 50%); }
.art-1 { background: linear-gradient(135deg, #3e6185, #1f3346); }
.art-2 { background: linear-gradient(135deg, #4e7599, #24384a); }
.art-3 { background: linear-gradient(135deg, #2b4359, #172433); }
.art-4 { background: linear-gradient(135deg, #5a82a6, #2b4359); }
.art-5 { background: linear-gradient(135deg, #33506b, #1b2b3b); }
.art-6 { background: linear-gradient(135deg, #46698d, #172433); }
.ccard .art .aico { position: absolute; left: 1.25rem; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: .875rem; background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.ccard .art .aico .i { width: 1.5rem; height: 1.5rem; }
.ccard .art .label { position: absolute; left: 5.25rem; top: 50%; transform: translateY(-50%); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.ccard .art .status { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); }
.ccard .body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem; }
.ccard h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.35; color: var(--s-900); }
.ccard .blurb { margin-top: .375rem; font-size: .9375rem; color: var(--s-600); }
.ccard .prog { margin-top: 1rem; }
.ccard .prog .bar { height: .375rem; }
.ccard .foot { margin-top: auto; padding-top: 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.ccard .foot .meta { font-size: .8125rem; color: var(--s-500); }
.ccard .done-meta { display: inline-flex; align-items: center; gap: .3rem; font-weight: 500; color: var(--accent-700); }
.ccard .done-meta .i { width: .95rem; height: .95rem; stroke-width: 3; }
.ccard .stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ccard .foot .btn { position: relative; z-index: 2; }
.ccard.is-done { border-color: var(--accent-100); }
.medal { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--accent); color: var(--ink); box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.medal .i { width: 1.15rem; height: 1.15rem; }

/* How it works */
.how { margin-top: 1.5rem; display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .how { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.how li { position: relative; }
.how .hn { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--brand-700); color: #fff; font-size: .875rem; font-weight: 600; }
.how h3 { margin-top: .875rem; font-weight: 600; font-size: 1rem; color: var(--s-900); }
.how p { margin-top: .25rem; font-size: .875rem; color: var(--s-600); }
@media (min-width: 768px) { .how li:not(:last-child)::after { content: ""; position: absolute; top: 1.125rem; left: 3rem; right: -1.25rem; height: 1px; background: var(--brand-200); } }

/* Split band */
.band { border-radius: var(--r-xl); background: rgba(244,239,230,.75); padding: 1.5rem; display: grid; gap: 2rem; }
@media (min-width: 640px) { .band { padding: 2.5rem; } }
@media (min-width: 900px) { .band { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); padding: 3rem; align-items: center; } }
.band h2 { margin-top: .25rem; font-size: clamp(1.5rem, 3vw, 1.875rem); font-weight: 600; color: var(--s-900); line-height: 1.25; }
.band p.lede { margin-top: .75rem; color: var(--s-600); }
.band .ctas { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.mini-list { display: grid; gap: .75rem; }
.mini-list li { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border-radius: var(--r-lg); padding: 1rem 1.125rem; box-shadow: var(--sh-xs); }
.mini-list .mi { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: .75rem; background: var(--brand-50); color: var(--brand-700); flex-shrink: 0; }
.mini-list b { display: block; font-weight: 600; color: var(--s-900); font-size: .9375rem; }
.mini-list span { display: block; font-size: .875rem; color: var(--s-600); }

/* Help band */
.help-band { border-radius: var(--r-xl); background: var(--brand-900); color: #fff; padding: 1.75rem; display: grid; gap: 1.5rem; position: relative; overflow: hidden; }
.help-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 100% 0%, rgba(114,147,178,.35), transparent 50%); pointer-events: none; }
@media (min-width: 900px) { .help-band { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 2.5rem 3rem; } }
.help-band h2 { position: relative; font-size: 1.5rem; font-weight: 600; }
.help-band p { position: relative; margin-top: .5rem; color: var(--brand-200); max-width: 38rem; }
.help-band .ctas { position: relative; display: flex; flex-wrap: wrap; gap: .75rem; }

/* Video */
.video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #0b1520; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-md); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ───────────── Footer ───────────── */
.site-footer { margin-top: 5rem; background: var(--brand-900); color: var(--brand-100); }
.site-footer .container { display: grid; gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 3.5rem; }
@media (min-width: 768px) { .site-footer .container { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer img { height: 4rem; width: auto; filter: brightness(0) invert(1); }
.site-footer p { margin-top: 1rem; max-width: 24rem; font-size: .875rem; line-height: 1.7; color: var(--brand-200); }
.site-footer h4 { font-size: .875rem; font-weight: 600; color: #fff; }
.site-footer ul { margin-top: .75rem; display: grid; gap: .5rem; font-size: .875rem; }
.site-footer ul a, .site-footer ul button { color: var(--brand-100); }
.site-footer ul a:hover, .site-footer ul button:hover { color: #fff; }
.site-footer .contact li { color: var(--brand-200); overflow-wrap: anywhere; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom .container { display: flex; flex-direction: column; gap: .5rem; padding-top: 1.25rem; padding-bottom: 1.25rem; font-size: .75rem; color: var(--brand-300); }
@media (min-width: 640px) { .footer-bottom .container { flex-direction: row; justify-content: space-between; } }
.footer-bottom button { color: var(--brand-300); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom button:hover { color: #fff; }

/* ───────────── Page header (inner pages) ───────────── */
.page-hero { position: relative; overflow: hidden; background: var(--brand-800); color: #fff; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 10% 0%, rgba(114,147,178,.5), transparent 50%), radial-gradient(circle at 95% 100%, rgba(245,184,63,.18), transparent 45%); pointer-events: none; }
.page-hero .container { position: relative; padding-top: 2.25rem; padding-bottom: 3rem; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .8125rem; color: var(--brand-200); }
.crumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.crumbs .sep { opacity: .5; }
.page-hero h1 { margin-top: 1rem; font-size: clamp(1.875rem, 4.4vw, 2.75rem); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
.page-hero .lead { margin-top: .875rem; max-width: 40rem; font-size: 1.0625rem; color: var(--brand-100); }
.page-hero .chips { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.page-hero .ctas { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

.ov-grid { display: grid; gap: 1.5rem; margin-top: -1.5rem; position: relative; }
@media (min-width: 1024px) { .ov-grid { grid-template-columns: minmax(0, 1fr) 22rem; align-items: start; } }
.ov-side { display: grid; gap: 1rem; }
@media (min-width: 1024px) { .ov-side { position: sticky; top: 6rem; } }
.panel-card { background: #fff; border: 1px solid var(--s-200); border-radius: var(--r-lg); box-shadow: var(--sh-xs); }
.panel-card > .ph { padding: 1.125rem 1.375rem; border-bottom: 1px solid var(--s-100); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.panel-card > .ph h2, .panel-card > .ph h3 { font-size: 1rem; font-weight: 600; color: var(--s-900); }
.panel-card > .pb { padding: 1.25rem 1.375rem; }
.ov-progress { display: flex; align-items: center; gap: 1.25rem; }
.ov-progress .t b { display: block; font-weight: 600; color: var(--s-900); }
.ov-progress .t span { display: block; font-size: .875rem; color: var(--s-600); }

.goal-list { display: grid; gap: .875rem; }
.goal-list li { display: flex; gap: .875rem; align-items: flex-start; color: var(--s-700); }
.goal-list .gk { display: grid; place-items: center; width: 1.625rem; height: 1.625rem; border-radius: 50%; background: var(--ok-50); color: var(--ok); flex-shrink: 0; margin-top: .05rem; }
.goal-list .gk .i { width: .9rem; height: .9rem; stroke-width: 3; }
@media (min-width: 768px) { .goal-list.two { grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; } }

.outline-part + .outline-part { margin-top: 1.25rem; }
.outline-part h4 { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--s-500); margin-bottom: .5rem; }
.outline-list li a { display: flex; align-items: center; gap: .875rem; padding: .7rem .75rem; margin: 0 -.75rem; border-radius: var(--r); transition: background .15s; }
.outline-list li a:hover { background: var(--brand-50); }
.outline-list .on { font-weight: 600; }
.outline-list .ot { flex: 1; min-width: 0; color: var(--s-800); }
.outline-list .om { font-size: .8125rem; color: var(--s-500); white-space: nowrap; }

/* status dot (used in outline + sidebar) */
.sdot { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; flex-shrink: 0; box-shadow: inset 0 0 0 2px var(--s-300); color: var(--s-500); font-size: .6875rem; font-weight: 600; }
.sdot .i { width: .875rem; height: .875rem; stroke-width: 3; }
.sdot.done { background: var(--brand-600); box-shadow: none; color: #fff; }
.sdot.cur { box-shadow: inset 0 0 0 2px var(--brand-600); color: var(--brand-700); background: #fff; }
.sdot.lock { box-shadow: inset 0 0 0 2px var(--s-200); color: var(--s-400); }
.sdot.gold { background: var(--accent); box-shadow: none; color: var(--ink); }

.leave-card { background: var(--accent-50); border: 1px solid var(--accent-100); border-radius: var(--r-lg); padding: 1.25rem 1.375rem; }
.leave-card .k { display: flex; align-items: center; gap: .5rem; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-700); }
.leave-card h3 { margin-top: .625rem; font-weight: 600; color: var(--s-900); }
.leave-card p { margin-top: .375rem; font-size: .9375rem; color: var(--s-700); }

/* ───────────── Player (lesson) layout ───────────── */
body.in-player { background: #fff; }
.ptop { position: sticky; top: 0; z-index: 40; height: var(--top-h); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--s-200); }
.ptop-in { height: 100%; display: flex; align-items: center; gap: .75rem; padding: 0 .75rem; }
@media (min-width: 640px) { .ptop-in { padding: 0 1.25rem; } }
.ptop .home { display: inline-flex; align-items: center; gap: .625rem; height: 2.5rem; padding: 0 .75rem 0 .5rem; border-radius: var(--r); color: var(--s-700); font-size: .875rem; font-weight: 500; flex-shrink: 0; }
.ptop .home:hover { background: var(--s-100); }
.ptop .home .tree { width: 1.75rem; height: 1.75rem; overflow: hidden; }
.ptop .home .tree img { height: 1.75rem; width: auto; max-width: none; }
.ptop .home .lbl { display: none; }
@media (min-width: 768px) { .ptop .home .lbl { display: inline; } }
.ptop .sep { width: 1px; height: 1.75rem; background: var(--s-200); flex-shrink: 0; }
.ptop .ttl { flex: 1; min-width: 0; line-height: 1.25; }
.ptop .ttl b { display: block; font-size: .9375rem; font-weight: 600; color: var(--s-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptop .ttl span { display: block; font-size: .75rem; color: var(--s-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptop .acts { display: flex; align-items: center; gap: .375rem; flex-shrink: 0; }
.ptop .acts .hide-sm { display: none; }
@media (min-width: 640px) { .ptop .acts .hide-sm { display: inline-flex; } }
.ptop .toc-btn { display: inline-flex; }
@media (min-width: 1024px) { .ptop .toc-btn { display: none; } }
.ptop-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: transparent; }
.ptop-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-500), var(--brand-700)); transition: width .4s ease; }

.player { display: grid; min-height: calc(100vh - var(--top-h)); }
@media (min-width: 1024px) { .player { grid-template-columns: var(--side-w) minmax(0, 1fr); } }
.pside { display: none; }
@media (min-width: 1024px) {
  .pside { display: block; position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); overflow-y: auto; border-right: 1px solid var(--s-200); background: var(--cream); }
}
.pside::-webkit-scrollbar { width: 6px; }
.pside::-webkit-scrollbar-thumb { background: var(--s-300); border-radius: 999px; }
.toc-head { padding: 1.5rem 1.25rem 1.25rem; border-bottom: 1px solid var(--sand); }
.toc-head .k { font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-500); }
.toc-head h2 { margin-top: .25rem; font-size: 1.0625rem; font-weight: 600; line-height: 1.35; color: var(--s-900); }
.toc-head .bar { margin-top: 1rem; height: .375rem; }
.toc-head .t { margin-top: .5rem; display: flex; justify-content: space-between; font-size: .75rem; color: var(--s-500); }
.toc { padding: .75rem .75rem 2rem; }
.toc-part { margin-top: .875rem; padding: 0 .625rem .375rem; display: flex; justify-content: space-between; font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--s-500); }
.toc a { position: relative; display: flex; align-items: center; gap: .75rem; padding: .625rem .625rem; border-radius: var(--r); font-size: .875rem; color: var(--s-700); transition: background .15s; }
.toc a:hover { background: rgba(255,255,255,.9); }
.toc a[aria-current="page"] { background: #fff; color: var(--brand-800); font-weight: 600; box-shadow: var(--sh-sm); }
.toc a[aria-current="page"]::before { content: ""; position: absolute; left: -.75rem; top: .5rem; bottom: .5rem; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand-600); }
.toc .tl { flex: 1; min-width: 0; line-height: 1.35; }
.toc .tm { font-size: .75rem; color: var(--s-400); white-space: nowrap; font-weight: 400; }
.toc .tsp { height: 1px; background: var(--sand); margin: .75rem .625rem; }

.pmain { min-width: 0; display: flex; flex-direction: column; }
.lesson { width: 100%; max-width: 47rem; margin: 0 auto; padding: 2rem 1.125rem 3rem; flex: 1; }
@media (min-width: 640px) { .lesson { padding: 2.75rem 2rem 3.5rem; } }
.lesson-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.lesson-kicker .kicker { color: var(--brand-500); }
.lesson-kicker .dotsep { width: .25rem; height: .25rem; border-radius: 50%; background: var(--s-300); }
.lesson-kicker .min { display: inline-flex; align-items: center; gap: .3rem; font-size: .8125rem; color: var(--s-500); }
.lesson-kicker .min .i { width: .95rem; height: .95rem; }
.lesson h1 { margin-top: .75rem; font-size: clamp(1.75rem, 4vw, 2.375rem); line-height: 1.18; font-weight: 600; letter-spacing: -.015em; color: var(--s-900); }
.lesson .lead { margin-top: 1rem; font-size: 1.125rem; line-height: 1.7; color: var(--s-600); }
.lesson .rule { margin: 1.5rem 0 2rem; height: 1px; background: var(--s-200); position: relative; }
.lesson .rule::before { content: ""; position: absolute; left: 0; top: -1px; width: 3.5rem; height: 3px; border-radius: 3px; background: var(--accent); }
.lesson p.body, .lesson .prose p { font-size: 1.0625rem; line-height: 1.75; color: var(--s-700); }
.lesson .prose p + p { margin-top: 1rem; }
.block { margin-top: 2rem; }
.block:first-child { margin-top: 0; }
.block-title { display: flex; align-items: center; gap: .625rem; font-size: 1.125rem; font-weight: 600; color: var(--s-900); margin-bottom: 1rem; }
.block-title .i { color: var(--brand-500); }
.subk { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--s-500); margin-bottom: 1rem; }

/* sticky bottom nav for lesson */
.pnav { position: sticky; bottom: 0; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--s-200); padding-bottom: env(safe-area-inset-bottom); }
.pnav-in { max-width: 47rem; margin: 0 auto; padding: .75rem 1.125rem; display: flex; align-items: center; gap: .75rem; }
@media (min-width: 640px) { .pnav-in { padding: .875rem 2rem; } }
.pnav .mid { flex: 1; min-width: 0; text-align: center; font-size: .8125rem; color: var(--s-500); }
.pnav .mid .saved { display: inline-flex; align-items: center; gap: .35rem; color: var(--ok); }
.pnav .mid .saved .i { width: 1rem; height: 1rem; }
.pnav .prev .lbl { display: none; }
@media (min-width: 640px) { .pnav .prev .lbl { display: inline; } }
@media (max-width: 639px) { .pnav .mid .long { display: none; } .pnav .btn { padding: 0 1rem; } }

/* Drawer (mobile contents) */
.drawer-wrap { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.drawer-wrap .scrim { position: absolute; inset: 0; background: rgba(15, 23, 42, .45); opacity: 0; transition: opacity .2s; }
.drawer { position: absolute; left: 0; top: 0; bottom: 0; width: min(22rem, 88vw); background: var(--cream); box-shadow: var(--sh-lg); transform: translateX(-102%); transition: transform .25s ease; overflow-y: auto; }
.drawer-wrap.open { pointer-events: auto; }
.drawer-wrap.open .scrim { opacity: 1; }
.drawer-wrap.open .drawer { transform: none; }
.drawer .dclose { position: absolute; right: .75rem; top: .75rem; }

/* ───────────── Lesson content blocks ───────────── */
.statement { position: relative; padding: .25rem 0 .25rem 1.5rem; font-size: clamp(1.375rem, 3vw, 1.75rem); line-height: 1.4; font-weight: 500; color: var(--brand-900); letter-spacing: -.01em; }
.statement::before { content: ""; position: absolute; left: 0; top: .35rem; bottom: .35rem; width: 4px; border-radius: 4px; background: var(--accent); }

.grid-2 { display: grid; gap: 1rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-3 { display: grid; gap: 1rem; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.tile { border-radius: var(--r-lg); padding: 1.25rem 1.375rem; background: var(--brand-50); color: var(--s-800); }
.tile .tk { display: flex; align-items: center; gap: .5rem; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-600); margin-bottom: .5rem; }
.tile .tk .i { width: 1rem; height: 1rem; }
.tile p { font-size: 1rem; line-height: 1.65; }
.tile p.big { font-size: 1.125rem; font-weight: 500; line-height: 1.55; color: var(--s-900); }
.tile-gold { background: var(--accent-50); box-shadow: inset 0 0 0 1px var(--accent-100); }
.tile-gold .tk { color: var(--accent-700); }
.tile-navy { background: var(--brand-800); color: #fff; }
.tile-navy .tk { color: var(--accent); }
.tile-navy p, .tile-navy p.big { color: #fff; }
.tile-white { background: #fff; box-shadow: inset 0 0 0 1px var(--s-200); }
.tile-sand { background: var(--sand); }

.callout { display: flex; gap: 1rem; align-items: flex-start; border-radius: var(--r-lg); padding: 1.125rem 1.25rem; background: var(--brand-50); color: var(--s-700); }
.callout .ci { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .75rem; background: #fff; color: var(--brand-600); flex-shrink: 0; box-shadow: var(--sh-xs); }
.callout .ci .i { width: 1.15rem; height: 1.15rem; }
.callout p { font-size: 1rem; line-height: 1.65; }
.callout b { color: var(--s-900); }
.callout-gold { background: var(--accent-50); box-shadow: inset 0 0 0 1px var(--accent-100); }
.callout-gold .ci { color: var(--accent-700); }
.callout-sand { background: var(--sand); }
.callout-crisis { background: #fff; box-shadow: inset 0 0 0 1px var(--brand-200); }

.flow { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.flow li { display: inline-flex; align-items: center; gap: .5rem; height: 2.25rem; padding: 0 .875rem 0 .375rem; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--accent-100); font-size: .875rem; color: var(--s-700); }
.flow li b { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--accent); color: var(--ink); font-size: .75rem; font-weight: 600; }

.blist { display: grid; gap: .75rem; }
.blist li { position: relative; padding-left: 1.5rem; font-size: 1.0625rem; line-height: 1.65; color: var(--s-700); }
.blist li::before { content: ""; position: absolute; left: .25rem; top: .68em; width: .45rem; height: .45rem; border-radius: 50%; background: var(--accent); }
.blist.sm li { font-size: .9375rem; padding-left: 1.25rem; }
.blist.sm li::before { left: .15rem; width: .375rem; height: .375rem; }
.blist.refs li { font-size: .875rem; color: var(--s-600); line-height: 1.55; }
.blist.refs li::before { background: var(--s-300); }

.nlist { display: grid; gap: .75rem; counter-reset: n; }
.nlist li { display: flex; gap: .875rem; align-items: flex-start; font-size: 1.0625rem; line-height: 1.6; color: var(--s-700); }
.nlist .n { display: grid; place-items: center; width: 1.875rem; height: 1.875rem; border-radius: 50%; background: var(--brand-700); color: #fff; font-size: .8125rem; font-weight: 600; flex-shrink: 0; margin-top: -.05rem; }

.col-card { border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--s-200); padding: 1.25rem 1.375rem 1.375rem; }
.col-card .ch { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.col-card .ch .ico { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: .875rem; background: var(--brand-50); color: var(--brand-700); flex-shrink: 0; }
.col-card .ch h3 { font-size: 1rem; font-weight: 600; color: var(--s-900); line-height: 1.3; }
.col-card .ch small { display: block; font-size: .8125rem; font-weight: 400; color: var(--s-500); }
.col-card.gold .ch .ico { background: var(--accent-50); color: var(--accent-700); }

.defs { display: grid; gap: 1rem; }
@media (min-width: 640px) { .defs { grid-template-columns: 1fr 1fr; } }
.def { position: relative; border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--s-200); padding: 1.25rem 1.375rem; overflow: hidden; }
.def::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--brand-500); }
.def .dn { font-size: .75rem; font-weight: 600; color: var(--brand-500); letter-spacing: .1em; }
.def h3 { margin-top: .25rem; font-size: 1.0625rem; font-weight: 600; color: var(--s-900); }
.def p { margin-top: .375rem; font-size: .9375rem; line-height: 1.6; color: var(--s-600); }

/* strategies + routine pickable cards */
.picks { display: grid; gap: .75rem; }
@media (min-width: 640px) { .picks.two { grid-template-columns: 1fr 1fr; } }
.pick { display: flex; gap: .875rem; align-items: flex-start; width: 100%; text-align: left; padding: 1rem 1.125rem; border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--s-200); transition: box-shadow .15s, background .15s; cursor: pointer; }
.pick:hover { box-shadow: inset 0 0 0 1px var(--brand-300); }
.pick .n { display: grid; place-items: center; width: 1.875rem; height: 1.875rem; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); font-size: .8125rem; font-weight: 600; flex-shrink: 0; }
.pick .pt { flex: 1; font-size: 1rem; line-height: 1.55; color: var(--s-800); }
.pick .pt small { display: block; margin-top: .375rem; font-size: .75rem; font-weight: 500; color: var(--s-400); }
.pick .box { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: .4rem; box-shadow: inset 0 0 0 2px var(--s-300); color: transparent; flex-shrink: 0; margin-top: .15rem; transition: all .15s; }
.pick .box .i { width: .95rem; height: .95rem; stroke-width: 3; }
.pick[aria-pressed="true"] { background: var(--ok-50); box-shadow: inset 0 0 0 2px var(--ok-600); }
.pick[aria-pressed="true"] .box { background: var(--ok-600); box-shadow: none; color: #fff; }
.pick[aria-pressed="true"] .pt small { color: var(--ok); }
.pick-hint { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--s-500); margin-bottom: .875rem; }
.pick-hint .i { width: 1rem; height: 1rem; color: var(--brand-500); }

/* Budget example */
.budget { display: grid; gap: 1.25rem; }
.income { border-radius: var(--r-lg); background: var(--brand-800); color: #fff; padding: 1.375rem 1.5rem; display: grid; gap: .875rem 2rem; }
@media (min-width: 560px) { .income { grid-template-columns: auto minmax(0, 1fr); align-items: center; } }
.income .k { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.income .l { margin-top: .375rem; font-size: .875rem; color: var(--brand-200); }
.income .amt { margin-top: .125rem; font-size: 2.5rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.income .note { font-size: .875rem; line-height: 1.6; color: var(--brand-100); }
@media (min-width: 560px) { .income .note { padding-left: 2rem; border-left: 1px solid rgba(255,255,255,.16); } }
.alloc { margin: 0 0 1rem; }
.alloc-bar { display: flex; height: .875rem; border-radius: 999px; overflow: hidden; gap: 2px; background: var(--s-100); }
.alloc-bar i { display: block; height: 100%; }
.alloc-legend { margin-top: .625rem; display: flex; flex-wrap: wrap; gap: .375rem 1rem; font-size: .75rem; color: var(--s-600); }
.alloc-legend span { display: inline-flex; align-items: center; gap: .375rem; }
.alloc-legend i { width: .625rem; height: .625rem; border-radius: 3px; display: inline-block; }
.table { width: 100%; border-collapse: collapse; font-size: .9375rem; background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: inset 0 0 0 1px var(--s-200); }
.table td { padding: .7rem 1rem; border-bottom: 1px solid var(--s-100); color: var(--s-700); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .cat { width: 9rem; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-600); padding-top: .9rem; }
.table .amt { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; color: var(--s-900); }
.table tr.total td { background: var(--s-50); font-weight: 600; color: var(--s-900); }
.table tr.total.zero td { background: var(--ok-50); color: var(--ok); }
@media (max-width: 520px) { .table .cat { display: none; } }

/* Schedule timeline */
.timeline { position: relative; display: grid; gap: .375rem; }
.timeline::before { content: ""; position: absolute; left: 5.6rem; top: .75rem; bottom: .75rem; width: 2px; background: var(--s-200); }
.tl-row { position: relative; display: grid; grid-template-columns: 4.75rem 1.75rem minmax(0, 1fr); align-items: center; gap: 0 .5rem; padding: .375rem 0; }
.tl-time { font-size: .8125rem; font-weight: 500; color: var(--s-500); text-align: right; font-variant-numeric: tabular-nums; }
.tl-dot { justify-self: center; width: .875rem; height: .875rem; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--s-300); z-index: 1; }
.tl-row.anchor .tl-dot { width: 1.125rem; height: 1.125rem; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-50); }
.tl-act { padding: .625rem .875rem; border-radius: var(--r); background: #fff; box-shadow: inset 0 0 0 1px var(--s-200); font-size: .9375rem; color: var(--s-700); display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; justify-content: space-between; }
.tl-row.anchor .tl-act { background: var(--accent-50); box-shadow: inset 0 0 0 1px var(--accent-100); color: var(--s-900); font-weight: 500; }
.anchor-tag { font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-700); }

/* Rating */
.rates { display: grid; gap: 1rem; }
@media (min-width: 640px) { .rates { grid-template-columns: 1fr 1fr; } }
.rate { border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--s-200); padding: 1.25rem; }
.rate h3 { font-size: 1.0625rem; font-weight: 600; color: var(--s-900); }
.rate p { margin-top: .25rem; font-size: .9375rem; color: var(--s-600); line-height: 1.55; }
.scale { margin-top: 1rem; display: grid; grid-template-columns: repeat(5, 1fr); gap: .375rem; }
.scale button { height: 2.75rem; border-radius: .625rem; background: var(--s-50); box-shadow: inset 0 0 0 1px var(--s-200); font-weight: 600; color: var(--s-700); text-align: center; transition: all .15s; }
.scale button:hover { box-shadow: inset 0 0 0 1px var(--brand-400); }
.scale button[aria-pressed="true"] { background: var(--brand-700); color: #fff; box-shadow: none; }
.scale-l { margin-top: .375rem; display: flex; justify-content: space-between; font-size: .75rem; color: var(--s-500); }
.rate-result { margin-top: 1rem; }

/* Routine columns */
.rcol-head { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
.rcol-head b { font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-700); }
.rcol-head span { font-size: .8125rem; color: var(--s-500); }

/* Message steps */
.msteps { display: grid; gap: 1rem; }
.mstep { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.mstep .n { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--brand-700); color: #fff; font-weight: 600; }
.mstep h3 { font-size: 1.0625rem; font-weight: 600; color: var(--s-900); }
.mstep .s { font-size: .875rem; color: var(--s-500); }
.bubble { position: relative; margin-top: .625rem; padding: .875rem 1.125rem; border-radius: 1rem 1rem 1rem .25rem; background: var(--brand-50); color: var(--brand-900); font-size: 1.0625rem; font-weight: 500; line-height: 1.5; }

/* Scenario */
.story { position: relative; border-radius: var(--r-xl); background: var(--brand-800); color: #fff; padding: 1.5rem; overflow: hidden; }
@media (min-width: 640px) { .story { padding: 1.75rem 2rem; } }
.story::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 100% 0%, rgba(114,147,178,.4), transparent 55%); pointer-events: none; }
.story .who { position: relative; display: flex; align-items: center; gap: .75rem; }
.story .av { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--accent); color: var(--ink); font-weight: 600; font-size: 1.125rem; }
.story .who b { display: block; font-weight: 600; }
.story .who div span { display: block; font-size: .8125rem; color: var(--brand-200); }
.story p { position: relative; margin-top: 1rem; font-size: 1.1875rem; line-height: 1.6; font-weight: 400; }
.prompt-cards { display: grid; gap: 1rem; }
.prompt-card { border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--s-200); padding: 1.125rem 1.25rem 1.25rem; }
.prompt-card .q { display: flex; gap: .75rem; align-items: flex-start; font-weight: 500; color: var(--s-900); line-height: 1.5; }
.prompt-card .q .n { display: grid; place-items: center; width: 1.625rem; height: 1.625rem; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); font-size: .75rem; font-weight: 600; flex-shrink: 0; margin-top: .05rem; }
.prompt-card textarea { margin-top: .875rem; }

/* Worksheet */
.worksheet { position: relative; border-radius: var(--r-xl); background: #fff; box-shadow: var(--sh-sm), inset 0 0 0 1px var(--s-200); padding: 1.5rem; overflow: hidden; }
@media (min-width: 640px) { .worksheet { padding: 2rem; } }
.worksheet::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--brand-700), var(--brand-500) 60%, var(--accent)); }
.ws-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.ws-head .t { display: flex; align-items: center; gap: .75rem; }
.ws-head .t .ico { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: .875rem; background: var(--brand-50); color: var(--brand-700); }
.ws-head h2 { font-size: 1.25rem; font-weight: 600; color: var(--s-900); }
.ws-head small { display: block; font-size: .8125rem; color: var(--s-500); }
.ws-fields { display: grid; gap: 1.125rem; }

.challenge { display: flex; gap: 1rem; align-items: flex-start; border-radius: var(--r-lg); padding: 1.25rem 1.375rem; background: linear-gradient(135deg, var(--accent-50), #fff7e0); box-shadow: inset 0 0 0 1px var(--accent-100); }
.challenge .ci { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: .875rem; background: var(--accent); color: var(--ink); flex-shrink: 0; }
.challenge .k { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-700); }
.challenge .c { margin-top: .25rem; font-size: 1.125rem; font-weight: 600; line-height: 1.45; color: var(--s-900); }
.challenge .s { margin-top: .375rem; font-size: .9375rem; color: var(--s-600); }

/* Form fields */
.field label { display: block; margin-bottom: .4rem; font-size: .9375rem; font-weight: 500; color: var(--s-800); line-height: 1.45; }
.field .hint { margin-top: .4rem; display: flex; align-items: center; gap: .35rem; font-size: .75rem; color: var(--s-500); }
.field .hint .i { width: .85rem; height: .85rem; }
.control { display: block; width: 100%; border-radius: var(--r); border: 1px solid var(--s-300); background: #fff; padding: .7rem .875rem; font-size: 1rem; line-height: 1.5; color: var(--s-900); box-shadow: var(--sh-xs); transition: border-color .15s, box-shadow .15s; }
.control::placeholder { color: var(--s-400); }
.control:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 4px var(--brand-100); }
textarea.control { min-height: 6rem; resize: vertical; }

/* Take a moment */
.moment { border-radius: var(--r-lg); background: var(--sand); padding: 1.25rem 1.375rem; }
.moment .mh { display: flex; align-items: center; gap: .625rem; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-700); }
.moment .mh .i { width: 1.05rem; height: 1.05rem; }
.moment p { margin-top: .5rem; font-size: 1.0625rem; line-height: 1.65; color: var(--s-800); }
.moment .mnote { margin-top: .875rem; }
.moment .mnote textarea { background: rgba(255,255,255,.85); }
.moment .add-note { margin-top: .75rem; display: inline-flex; align-items: center; gap: .4rem; font-size: .875rem; font-weight: 500; color: var(--brand-700); }
.moment .add-note .i { width: 1rem; height: 1rem; }

/* Narration */
.narr { margin-top: 2.5rem; border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--s-200); overflow: hidden; }
.narr-head { display: flex; align-items: center; gap: .875rem; padding: 1rem 1.125rem; flex-wrap: wrap; }
.narr-head .av { width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--brand-50); display: grid; place-items: center; overflow: hidden; flex-shrink: 0; box-shadow: inset 0 0 0 1px var(--brand-100); }
.narr-head .av img { height: 2.1rem; width: auto; max-width: none; margin-left: .55rem; }
.narr-head .nt { flex: 1; min-width: 10rem; line-height: 1.35; }
.narr-head .nt b { display: block; font-weight: 600; color: var(--s-900); font-size: .9375rem; }
.narr-head .nt span { display: block; font-size: .8125rem; color: var(--s-500); }
.narr-head .na { display: flex; gap: .5rem; flex-wrap: wrap; }
.narr-body { border-top: 1px solid var(--s-100); padding: 1.25rem 1.375rem 1.5rem; background: var(--s-50); }
.narr-body p { font-size: 1rem; line-height: 1.75; color: var(--s-700); padding: .125rem .375rem; margin: 0 -.375rem; border-radius: .375rem; transition: background .2s; }
.narr-body p + p { margin-top: .75rem; }
.narr-body p.speaking { background: var(--accent-100); color: var(--s-900); }
.narr-body .cue { display: inline-flex; align-items: center; gap: .35rem; padding: .1rem .55rem; border-radius: 999px; background: var(--brand-100); color: var(--brand-800); font-size: .75rem; font-weight: 600; letter-spacing: .02em; }
.narr-body .npause { margin: .875rem 0; padding: .75rem 1rem; border-radius: var(--r); background: var(--accent-50); box-shadow: inset 0 0 0 1px var(--accent-100); font-size: .9375rem; color: var(--s-800); }
.narr-body .npause b { display: block; font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-700); margin-bottom: .2rem; }
.listen-on { background: var(--brand-700) !important; color: #fff !important; border-color: var(--brand-700) !important; }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: .9rem; }
.eq i { width: 3px; background: currentColor; border-radius: 1px; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { height: 30%; } 50% { height: 100%; } }

/* Welcome (title section) */
.welcome-card { border-radius: var(--r-xl); background: var(--brand-800); color: #fff; padding: 1.5rem; position: relative; overflow: hidden; }
@media (min-width: 640px) { .welcome-card { padding: 2rem; } }
.welcome-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 0% 0%, rgba(114,147,178,.5), transparent 55%), radial-gradient(circle at 100% 100%, rgba(245,184,63,.18), transparent 45%); pointer-events: none; }
.welcome-card > * { position: relative; }
.welcome-card .wk { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.welcome-card .wt { margin-top: .5rem; font-size: 1.375rem; font-weight: 600; line-height: 1.3; }
.welcome-stats { margin-top: 1.25rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.welcome-stats div { border-radius: var(--r); background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); padding: .75rem; }
.welcome-stats b { display: block; font-size: 1.25rem; font-weight: 600; }
.welcome-stats span { display: block; font-size: .75rem; color: var(--brand-200); line-height: 1.35; }
.letter { position: relative; border-radius: var(--r-lg); background: var(--cream); box-shadow: inset 0 0 0 1px var(--sand); padding: 1.5rem; }
@media (min-width: 640px) { .letter { padding: 1.75rem 2rem; } }
.letter .lh { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.letter .lh .i { color: var(--accent-600); width: 1.5rem; height: 1.5rem; }
.letter .lh b { font-weight: 600; color: var(--s-900); }
.letter p { font-size: 1.0625rem; line-height: 1.75; color: var(--s-700); }
.letter p + p { margin-top: .875rem; }

/* ───────────── Quiz ───────────── */
.quiz { max-width: 42rem; margin: 0 auto; }
.quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.qdots { display: flex; gap: .375rem; }
.qdots i { width: 2rem; height: .375rem; border-radius: 999px; background: var(--s-200); }
.qdots i.on { background: var(--brand-600); }
.qdots i.cur { background: var(--brand-300); }
.qdots i.ok { background: var(--ok-600); }
.qdots i.no { background: #f97066; }
.qcount { font-size: .8125rem; font-weight: 500; color: var(--s-500); }
.qcard { border-radius: var(--r-xl); background: #fff; box-shadow: var(--sh-sm), inset 0 0 0 1px var(--s-200); padding: 1.5rem; }
@media (min-width: 640px) { .qcard { padding: 2rem; } }
.qcard h2 { font-size: clamp(1.25rem, 3vw, 1.5rem); font-weight: 600; line-height: 1.35; color: var(--s-900); }
.opts { margin-top: 1.5rem; display: grid; gap: .625rem; }
.opt { display: flex; align-items: center; gap: .875rem; width: 100%; padding: .875rem 1rem; border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 0 0 1.5px var(--s-200); text-align: left; font-size: 1rem; line-height: 1.45; color: var(--s-800); transition: box-shadow .15s, background .15s; }
.opt:hover:not([disabled]) { box-shadow: inset 0 0 0 1.5px var(--brand-400); background: var(--brand-50); }
.opt .L { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: .625rem; background: var(--s-100); color: var(--s-600); font-weight: 600; font-size: .875rem; flex-shrink: 0; transition: all .15s; }
.opt .ot { flex: 1; }
.opt .tag { display: inline-flex; align-items: center; gap: .25rem; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.opt[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--brand-600); background: var(--brand-50); }
.opt[aria-checked="true"] .L { background: var(--brand-700); color: #fff; }
.opt.right { box-shadow: inset 0 0 0 2px var(--ok-600); background: var(--ok-50); }
.opt.right .L { background: var(--ok-600); color: #fff; }
.opt.right .tag { color: var(--ok); }
.opt.wrong { box-shadow: inset 0 0 0 2px #f97066; background: var(--bad-50); }
.opt.wrong .L { background: #f04438; color: #fff; }
.opt.wrong .tag { color: var(--bad); }
.opt[disabled] { cursor: default; }
.qfeedback { margin-top: 1.25rem; display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.125rem; border-radius: var(--r-lg); font-size: .9375rem; line-height: 1.55; }
.qfeedback .i { width: 1.35rem; height: 1.35rem; margin-top: .05rem; }
.qfeedback.ok { background: var(--ok-50); color: var(--ok); }
.qfeedback.no { background: var(--bad-50); color: var(--bad); }
.qfeedback b { display: block; }
.qfeedback span { color: var(--s-700); }
.qactions { margin-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }

.intro-card { border-radius: var(--r-xl); background: #fff; box-shadow: var(--sh-sm), inset 0 0 0 1px var(--s-200); padding: 1.75rem; text-align: center; }
@media (min-width: 640px) { .intro-card { padding: 2.5rem; } }
.intro-card .big-ico { margin: 0 auto; display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 1.25rem; background: var(--brand-50); color: var(--brand-700); }
.intro-card .big-ico .i { width: 2rem; height: 2rem; }
.intro-card h1 { margin-top: 1.25rem; font-size: clamp(1.625rem, 4vw, 2rem); font-weight: 600; line-height: 1.2; color: var(--s-900); }
.intro-card p.lead { margin: .875rem auto 0; max-width: 32rem; font-size: 1.0625rem; color: var(--s-600); }
.intro-facts { margin: 1.5rem auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.intro-card .ctas { margin-top: 1.75rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }

.score-wrap { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .score-wrap { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2rem; } }
.compare { display: grid; gap: .875rem; }
.compare .cmp .t { display: flex; justify-content: space-between; font-size: .875rem; color: var(--s-600); margin-bottom: .375rem; }
.compare .cmp .t b { color: var(--s-900); }
.compare .bar { height: .75rem; }
.compare .pre > i { background: var(--brand-300); }
.compare .post > i { background: var(--ok-600); }
.growth { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--ok); }
.review { margin-top: 1rem; display: grid; gap: .75rem; }
.review details { border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--s-200); }
.review summary { list-style: none; cursor: pointer; display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.125rem; font-weight: 500; color: var(--s-900); line-height: 1.45; }
.review summary::-webkit-details-marker { display: none; }
.review summary .st { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; flex-shrink: 0; color: #fff; margin-top: .05rem; }
.review summary .st .i { width: .85rem; height: .85rem; stroke-width: 3; }
.review summary .st.ok { background: var(--ok-600); }
.review summary .st.no { background: #f04438; }
.review summary .chev { margin-left: auto; color: var(--s-400); transition: transform .2s; }
.review details[open] summary .chev { transform: rotate(180deg); }
.review .ra { padding: 0 1.125rem 1.125rem 3.375rem; display: grid; gap: .375rem; font-size: .9375rem; }
.review .ra .y { color: var(--bad); }
.review .ra .c { color: var(--ok); font-weight: 500; }

/* ───────────── Completion ───────────── */
.celebrate { position: relative; text-align: center; border-radius: var(--r-xl); background: var(--brand-800); color: #fff; padding: 2.5rem 1.5rem 2.25rem; overflow: hidden; }
.celebrate::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(114,147,178,.55), transparent 60%), radial-gradient(circle at 50% 120%, rgba(245,184,63,.3), transparent 55%); pointer-events: none; }
.celebrate > * { position: relative; }
.celebrate .badge { margin: 0 auto; display: grid; place-items: center; width: 5rem; height: 5rem; border-radius: 50%; background: var(--accent); color: var(--ink); box-shadow: 0 0 0 8px rgba(245,184,63,.2), 0 0 0 16px rgba(245,184,63,.08); animation: pop .6s cubic-bezier(.2,1.4,.4,1) both; }
.celebrate .badge .i { width: 2.4rem; height: 2.4rem; }
.celebrate .k { margin-top: 1.5rem; font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.celebrate h1 { margin-top: .5rem; font-size: clamp(1.625rem, 4vw, 2.25rem); font-weight: 600; line-height: 1.2; }
.celebrate p { margin: .75rem auto 0; max-width: 32rem; color: var(--brand-100); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -10%; width: .5rem; height: .9rem; border-radius: 2px; opacity: .9; animation: fall 3.2s ease-in forwards; }
@keyframes fall { to { transform: translateY(32rem) rotate(540deg); opacity: 0; } }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 560px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--s-200); padding: 1rem 1.125rem; }
.stat .k { font-size: .8125rem; color: var(--s-500); }
.stat .v { margin-top: .25rem; font-size: 1.5rem; font-weight: 600; color: var(--s-900); line-height: 1.2; }
.stat .v small { font-size: .875rem; font-weight: 500; color: var(--s-500); margin-left: .25rem; }
.plan-dl { display: grid; gap: .875rem; }
.plan-dl dt { font-size: .8125rem; font-weight: 500; color: var(--s-500); }
.plan-dl dd { margin-top: .15rem; font-size: 1rem; color: var(--s-900); white-space: pre-wrap; overflow-wrap: anywhere; }
.plan-dl dd.empty { color: var(--s-400); font-style: italic; }
.next-card { display: flex; align-items: center; gap: 1rem; border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--s-200); padding: 1rem 1.125rem; transition: box-shadow .15s; }
.next-card:hover { box-shadow: inset 0 0 0 1px var(--brand-300), var(--sh-sm); }
.next-card .ico { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 1rem; color: #fff; flex-shrink: 0; }
.next-card .t { flex: 1; min-width: 0; }
.next-card .t small { display: block; font-size: .75rem; color: var(--s-500); }
.next-card .t b { display: block; font-weight: 600; color: var(--s-900); }
.next-card > .i { color: var(--s-400); }

/* ───────────── Certificate ───────────── */
.cert-tools { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; }
.cert-tools .field { flex: 1; min-width: 14rem; }
.cert-stage { margin-top: 1.5rem; overflow-x: auto; }
.cert { position: relative; width: 100%; min-width: 40rem; aspect-ratio: 11 / 8.5; background: #fffdf8; border-radius: .5rem; box-shadow: var(--sh-lg); padding: 1.5rem; color: var(--brand-950); }
.cert-frame { position: relative; height: 100%; border: 2px solid var(--brand-700); border-radius: .25rem; padding: .5rem; }
.cert-inner { position: relative; height: 100%; border: 1px solid var(--accent-600); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem 3rem; overflow: hidden; }
.cert-inner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, rgba(242,246,250,.9), transparent 65%); pointer-events: none; }
.cert-inner > * { position: relative; }
.cert-corner { position: absolute; width: 4.5rem; height: 4.5rem; border-color: var(--accent-600); border-style: solid; }
.cert-corner.tl { left: .75rem; top: .75rem; border-width: 3px 0 0 3px; }
.cert-corner.tr { right: .75rem; top: .75rem; border-width: 3px 3px 0 0; }
.cert-corner.bl { left: .75rem; bottom: .75rem; border-width: 0 0 3px 3px; }
.cert-corner.br { right: .75rem; bottom: .75rem; border-width: 0 3px 3px 0; }
.cert img.logo { height: 4.5rem; width: auto; }
.cert .ck { margin-top: 1.25rem; font-size: .8125rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--accent-700); }
.cert .ct { margin-top: .375rem; font-size: 2.25rem; font-weight: 600; letter-spacing: .02em; color: var(--brand-800); }
.cert .cp { margin-top: 1rem; font-size: .9375rem; color: var(--s-600); }
.cert .cn { margin-top: .375rem; min-width: 60%; padding: 0 1rem .375rem; border-bottom: 1px solid var(--brand-300); font-size: 2.375rem; font-weight: 500; line-height: 1.25; color: var(--brand-950); }
.cert .cn.ph { color: var(--s-300); }
.cert .cc { margin-top: 1rem; max-width: 36rem; font-size: .9375rem; line-height: 1.6; color: var(--s-600); }
.cert .cc b { color: var(--brand-900); font-weight: 600; }
.cert .cf { margin-top: 1.75rem; width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 1.5rem; }
.cert .cf .line { border-top: 1px solid var(--s-300); padding-top: .375rem; font-size: .75rem; color: var(--s-500); }
.cert .cf .line b { display: block; font-size: .9375rem; color: var(--brand-900); font-weight: 500; margin-bottom: .1rem; }
.cert .seal { display: grid; place-items: center; width: 5rem; height: 5rem; border-radius: 50%; background: var(--accent); color: var(--brand-950); box-shadow: 0 0 0 4px #fffdf8, 0 0 0 6px var(--accent-600); }
.cert .seal .i { width: 2.25rem; height: 2.25rem; }

/* ───────────── Dialog ───────────── */
dialog.modal { width: min(34rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 0; border: 0; border-radius: var(--r-xl); box-shadow: var(--sh-lg); color: var(--ink); background: #fff; }
dialog.modal::backdrop { background: rgba(15, 23, 42, .5); backdrop-filter: blur(2px); }
dialog.modal[open] { animation: rise .2s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.5rem 1.5rem 0; }
.modal-head h2 { font-size: 1.25rem; font-weight: 600; color: var(--s-900); }
.modal-head p { margin-top: .25rem; font-size: .9375rem; color: var(--s-600); }
.modal-body { padding: 1.25rem 1.5rem 1.5rem; display: grid; gap: .75rem; }
.help-row { display: flex; align-items: center; gap: 1rem; padding: 1rem; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--s-200); transition: box-shadow .15s, background .15s; }
a.help-row:hover { box-shadow: inset 0 0 0 1px var(--brand-300); background: var(--brand-50); }
.help-row .hi { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: .875rem; background: var(--brand-50); color: var(--brand-700); flex-shrink: 0; }
.help-row.primary .hi { background: var(--brand-700); color: #fff; }
.help-row b { display: block; font-weight: 600; color: var(--s-900); }
.help-row span { display: block; font-size: .875rem; color: var(--s-600); }
.help-row .go { margin-left: auto; color: var(--s-400); }
.small-note { font-size: .8125rem; color: var(--s-500); }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--s-100); }
.set-row:last-child { border-bottom: 0; }
.set-row b { display: block; font-weight: 500; color: var(--s-900); }
.set-row span { display: block; font-size: .8125rem; color: var(--s-500); }
.switch { position: relative; width: 2.875rem; height: 1.625rem; border-radius: 999px; background: var(--s-300); transition: background .2s; flex-shrink: 0; }
.switch::after { content: ""; position: absolute; left: .1875rem; top: .1875rem; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: #fff; box-shadow: var(--sh-sm); transition: transform .2s; }
.switch[aria-checked="true"] { background: var(--brand-600); }
.switch[aria-checked="true"]::after { transform: translateX(1.25rem); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 5.5rem; z-index: 80; transform: translate(-50%, 1rem); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: .5rem; padding: .75rem 1.125rem; border-radius: 999px; background: var(--brand-950); color: #fff; font-size: .875rem; font-weight: 500; box-shadow: var(--sh-lg); transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .i { width: 1.1rem; height: 1.1rem; color: var(--accent); }

/* My plan */
.plan-class + .plan-class { margin-top: 1.25rem; }
.plan-class .ph .left { display: flex; align-items: center; gap: .875rem; min-width: 0; }
.plan-class .ph .ico { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: .875rem; color: #fff; flex-shrink: 0; }
.plan-class .ph small { display: block; font-size: .75rem; color: var(--s-500); font-weight: 400; }
.plan-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .plan-grid { grid-template-columns: 1fr 1fr; } }
.plan-sub { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-600); margin-bottom: .625rem; }
.empty-state { text-align: center; padding: 3rem 1.5rem; }
.empty-state .ei { margin: 0 auto; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 1rem; background: var(--brand-50); color: var(--brand-600); }
.empty-state h2 { margin-top: 1rem; font-size: 1.125rem; font-weight: 600; color: var(--s-900); }
.empty-state p { margin: .375rem auto 0; max-width: 26rem; color: var(--s-600); font-size: .9375rem; }
.empty-state .btn { margin-top: 1.25rem; }

/* Facilitator guide */
.guide-grid { display: grid; gap: 1rem; }
@media (min-width: 768px) { .guide-grid { grid-template-columns: 1fr 1fr; } }
.guide-card { border-radius: var(--r-lg); background: #fff; border: 1px solid var(--s-200); padding: 1.5rem; }
.guide-card .gi { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 1rem; background: var(--brand-50); color: var(--brand-700); }
.guide-card h3 { margin-top: 1rem; font-size: 1.0625rem; font-weight: 600; color: var(--s-900); }
.guide-card p { margin-top: .375rem; font-size: .9375rem; color: var(--s-600); line-height: 1.65; }

/* Printable teaching script */
.script-page { max-width: 56rem; }
.glance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 640px) { .glance { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.glance div { border-radius: var(--r); background: var(--s-50); box-shadow: inset 0 0 0 1px var(--s-200); padding: .75rem .875rem; }
.glance span { display: block; font-size: .75rem; color: var(--s-500); }
.glance b { display: block; margin-top: .125rem; font-size: .9375rem; font-weight: 600; color: var(--s-900); line-height: 1.35; }
.script-sec { margin-top: 1rem; background: #fff; border: 1px solid var(--s-200); border-radius: var(--r-lg); overflow: hidden; }
.ss-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .875rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--s-100); }
.ss-head h2 { flex: 1; min-width: 12rem; font-size: 1.0625rem; font-weight: 600; color: var(--s-900); line-height: 1.35; }
.ss-head .muted { font-size: .8125rem; }
.narr-body.script-body { background: #fff; }
.key-card .ph h3 { font-size: 1rem; font-weight: 600; color: var(--s-900); }
.key-list { display: grid; gap: 1.25rem; }
.key-list .kq { font-weight: 600; color: var(--s-900); line-height: 1.45; }
.key-list ul { margin-top: .5rem; display: grid; gap: .25rem; }
.key-list ul li { display: flex; align-items: center; gap: .625rem; padding: .3rem .5rem; border-radius: .5rem; font-size: .9375rem; color: var(--s-700); }
.key-list ul li .L { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: .4rem; background: var(--s-100); font-size: .75rem; font-weight: 600; flex-shrink: 0; }
.key-list ul li .i { width: 1rem; height: 1rem; stroke-width: 3; margin-left: auto; }
.key-list ul li.ok { background: var(--ok-50); color: var(--ok); font-weight: 500; }
.key-list ul li.ok .L { background: var(--ok-600); color: #fff; }

/* Presenting (facilitator full-screen): the script and private-note buttons stay off the shared screen */
body.presenting .narr, body.presenting .add-note { display: none !important; }
body.presenting .pside, body.presenting .ptop .toc-btn { display: none !important; }
body.presenting .player { grid-template-columns: minmax(0, 1fr); }
body.presenting .lesson, body.presenting .pnav-in { max-width: 64rem; }
body.presenting .lesson { font-size: 1.15rem; padding-top: 3rem; }
body.presenting .lesson h1 { font-size: clamp(2.25rem, 4.5vw, 3.25rem); }

/* Misc utilities */
.mt-1 { margin-top: .25rem; } .mt-2 { margin-top: .5rem; } .mt-3 { margin-top: .75rem; } .mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; } .mt-10 { margin-top: 2.5rem; }
.row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.row.between { justify-content: space-between; }
.muted { color: var(--s-500); }
.center { text-align: center; }
.fade-in { animation: fadeIn .3s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .confetti { display: none; }
}

/* ───────────── Print ───────────── */
@media print {
  @page { margin: .5in; }
  /* Animations restart in print layout; fade-ins would print at opacity 0 */
  *, *::before, *::after { animation: none !important; transition: none !important; }
  body, body.in-player { background: #fff !important; }
  .no-print, .site-header, .site-footer, .ptop, .pside, .pnav, .drawer-wrap, .toast, .skip-link, .narr, .hero-tree { display: none !important; }
  .player { display: block; }
  .lesson { max-width: none; padding: 0; }
  .page-hero { background: none !important; color: var(--ink) !important; }
  .page-hero::before { display: none; }
  .page-hero .lead, .page-hero .crumbs { color: var(--s-600) !important; }
  .control { box-shadow: none; border: 0; border-bottom: 1px solid #999; border-radius: 0; padding: .25rem 0; min-height: 0; }
  textarea.control { min-height: 3.5rem; resize: none; }
  .control::placeholder { color: transparent; }
  .field .hint { display: none; }
  .worksheet, .panel-card, .card { box-shadow: none !important; border: 1px solid #ccc; break-inside: avoid; }
  .story, .welcome-card, .celebrate, .tile-navy, .income { background: #fff !important; color: var(--ink) !important; border: 1px solid #ccc; }
  .story p, .welcome-card .wt, .celebrate p, .income .note, .income .l { color: var(--s-700) !important; }
  a.ext-link { color: var(--ink); }
  .script-page { max-width: none; padding: 0; margin-top: 1rem !important; }
  .script-sec, .key-card { border-color: #ccc; }
  .ss-head { break-after: avoid; }
  .npause, .key-list > li, .glance, .challenge { break-inside: avoid; }
  .key-title { break-before: page; }
  body.print-cert * { visibility: hidden; }
  body.print-cert .cert, body.print-cert .cert * { visibility: visible; }
  body.print-cert .cert { position: fixed; left: 0; top: 0; width: 100%; min-width: 0; box-shadow: none; }
}
