
:root{--ember:#B3271E;--ember-d:#8C1D15;--ink:#0D0E11;--body:#CFCBC2;--slate:#9BA1AC;--paper:#0A0A0C;--surface:#14151A;--line:#2B2D34;--linklt:#F0765B;--amber:#E39B2D}
:root{color-scheme:dark}
*{margin:0;padding:0;box-sizing:border-box}
body{font-family:Inter,Arial,sans-serif;background:var(--paper);color:var(--body);line-height:1.6}
h1,h2,h3,h4{color:var(--ink)}
header{display:flex;align-items:center;gap:14px;padding:18px 6vw;border-bottom:3px solid var(--ember)}
.mark{width:52px;height:52px;flex:none}
.wordmark{font-family:Archivo,Arial,sans-serif;font-weight:700;letter-spacing:1px;font-size:1.15rem}
.wordmark small{display:block;font-size:.7rem;letter-spacing:3px;color:#C9D2DB;font-weight:600}
nav{margin-left:auto;display:flex;gap:26px}
nav a{color:#E9EDF1;text-decoration:none;font-weight:600;font-size:.95rem}
nav a:hover{color:var(--linklt)}
nav a,.btn,.gbtn,.card a{-webkit-touch-callout:none}
.tablewrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
header nav a{min-height:44px;display:inline-flex;align-items:center}
.hero{padding:72px 6vw 56px;text-align:left;max-width:1100px}
.hero .mark{width:110px;height:110px}
h1{font-family:Archivo,Arial,sans-serif;font-size:2.6rem;line-height:1.15;margin:22px 0 14px}
h1 .accent{color:var(--ember)}
.lede{font-size:1.2rem;color:var(--slate);max-width:640px}
.cta{display:inline-block;margin-top:28px;background:var(--ember);color:#fff;padding:14px 30px;border-radius:6px;text-decoration:none;font-weight:700}
.cta:hover{background:var(--ember-d)}
.cta-note{display:block;margin-top:10px;color:var(--slate);font-size:.9rem}
.strip{background:var(--ink);color:var(--paper);padding:20px 6vw;display:flex;gap:38px;flex-wrap:wrap;font-weight:600;font-size:.95rem}
.strip span b{color:#FFD9A0}
section{padding:52px 6vw;max-width:1100px}
h2{font-family:Archivo,Arial,sans-serif;font-size:1.7rem;margin-bottom:18px}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px}
.card{background:#fff;border:1px solid #C9D2DB;border-top:6px solid var(--ember);border-radius:8px;padding:24px;cursor:default}
.card h3{font-family:Archivo,Arial,sans-serif;margin-bottom:6px}
.card .price{font-size:1.5rem;font-weight:700;color:var(--ember)}
.card .status{color:var(--slate);font-size:.85rem;font-weight:700;letter-spacing:1px;text-transform:uppercase}
.card p{color:var(--slate);margin-top:8px}
.badge{display:inline-block;background:var(--slate);color:#fff;font-size:.72rem;font-weight:700;letter-spacing:1px;padding:3px 10px;border-radius:20px;margin-bottom:10px}
.badge.free{background:var(--ember)}
footer{background:var(--ink);color:var(--paper);padding:28px 6vw;font-size:.9rem}
footer .tag{color:var(--amber);font-weight:600}
.cite{color:var(--slate);font-size:.9rem}
form.capture{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
form.capture input{flex:1;min-width:240px;padding:13px;border:1px solid #C9D2DB;border-radius:6px;font-size:1rem}
form.capture button{background:var(--ember);color:#fff;border:0;padding:13px 26px;border-radius:6px;font-weight:700;cursor:pointer}
@media(max-width:640px){h1{font-size:2rem}nav{display:none}}

/* === Play & Practice === */
.hero{background:var(--ink);color:#fff;border-radius:14px;padding:34px 30px;margin:26px 0}
.hero h2{color:#fff;font-size:32px;margin:0 0 8px}.hero p{color:#C9D2DB;max-width:640px}
.station-line{font-family:Archivo,Inter,sans-serif;font-weight:700;color:#FFFFFF}
.game{background:#fff;border:1px solid #C9D2DB;border-radius:12px;padding:22px;margin:22px 0;box-shadow:0 2px 10px rgba(34,38,42,.06)}
.game h3{margin-top:0}.gbtn{background:var(--ember);color:#fff;border:0;border-radius:8px;padding:10px 18px;font:inherit;font-weight:700;cursor:pointer}
.gbtn:hover{background:var(--ember-dark)} .gbtn.alt{background:var(--ink)}
.opts{display:grid;gap:8px;margin:12px 0}.optbtn{background:var(--surface);border:1px solid #C9D2DB;border-radius:8px;padding:10px 14px;text-align:left;font:inherit;cursor:pointer}
.optbtn:hover{border-color:var(--ember)} .optbtn.right{background:#E3F2E1;border-color:#2F6B2F}.optbtn.wrong{background:#FBE3E0;border-color:var(--ember)}.optbtn.picked{background:#DCE2E9;border-color:var(--ink);font-weight:700}
.shotrow{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0}.shotq{font-weight:600;margin-right:2px}.shotbtn{min-height:44px;min-width:44px;padding:10px 18px;background:var(--surface);border:1px solid #C9D2DB;border-radius:8px;font:inherit;font-weight:600;cursor:pointer}.shotbtn:hover{border-color:var(--ember)}
.score{font-weight:700;color:var(--ember-lit)} .timerbar{height:8px;background:#DCE2E9;border-radius:4px;overflow:hidden;margin:8px 0}
.timerbar div{height:100%;background:var(--amber);width:100%}
.xw{border-collapse:collapse;margin:10px 0}.xw td{width:30px;height:30px;border:1px solid #C9D2DB;text-align:center;position:relative;background:#fff}
.xw td.block{background:var(--ink);border-color:var(--ink)} .xw input{width:100%;height:100%;border:0;text-align:center;font:inherit;font-weight:700;text-transform:uppercase;background:transparent}
.xw input.bad{background:#FBE3E0}.xw input.good{background:#E3F2E1}.xw .num{position:absolute;top:0;left:2px;font-size:9px;color:var(--slate)}
.clues{display:grid;grid-template-columns:1fr 1fr;gap:18px}@media(max-width:640px){.clues{grid-template-columns:1fr}}
.ws{border-collapse:collapse;margin:10px 0}.ws td{width:30px;height:30px;text-align:center;border:1px solid #C9D2DB;font-weight:700;cursor:pointer;background:#fff}
.ws td.sel{background:#FFE9D6}.ws td.found{background:#E3F2E1;color:#2F6B2F}
.strike{text-decoration:line-through;color:var(--slate)}
.qotd{background:#fff;border-left:5px solid var(--amber);border-radius:10px;padding:18px 20px;box-shadow:0 2px 10px rgba(34,38,42,.06)}

/* === QA fixes (Oct 15 audit) === */
.btn{display:inline-block;background:var(--ember);color:#fff;padding:12px 24px;border-radius:6px;text-decoration:none;font-weight:700}
.btn:hover{background:var(--ember-dark)} .btn.alt{background:var(--ink)}
.hero h1{color:#fff}.hero .lede{color:#C9D2DB}.hero .cta-note{color:#C9D2DB}.hero .accent{color:#F0765B}

/* === Launch polish (Oct 15 audit #2) === */
@media(max-width:560px){.xw td,.ws td{width:6vw;height:6vw;min-width:24px;min-height:24px;max-width:30px;max-height:30px}.xw,.ws{display:block;overflow-x:auto;max-width:100%}.xw input{font-size:16px}}
@media print{header,footer,nav,.gbtn{display:none!important}body{background:#fff}.game{box-shadow:none;border:0;page-break-inside:avoid}}

/* === Member views + visual polish (Oct 15, Eric feedback) === */
:root{--ember-dark:#8C1D15}
header{position:sticky;top:0;background:var(--ink);color:#E9EDF1;z-index:60;box-shadow:0 2px 12px rgba(16,19,22,.35)}
a.card,.card.linkcard,label.card{transition:transform .15s ease,box-shadow .15s ease}
a.card:hover,.card.linkcard:hover,label.card:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(34,38,42,.10)}
a.card,.card.linkcard,label.card{cursor:pointer}
.strip{background:linear-gradient(90deg,var(--ink),#2E343B 60%,var(--ember-d))}
.cta{box-shadow:0 4px 14px rgba(179,39,30,.4)}
.gbtn{box-shadow:0 2px 8px rgba(179,39,30,.30)}
.game h3{color:var(--ink)}
.game{box-shadow:0 4px 16px rgba(34,38,42,.08)}
details.arc{background:var(--surface);border:1px solid #C9D2DB;border-radius:8px;padding:10px 14px;margin:8px 0}
details.arc summary{cursor:pointer;font-weight:600}
.locknote{margin-top:12px;background:#F7F4EE;border:1px solid var(--amber);border-radius:8px;padding:10px 14px;color:var(--ink);font-weight:600;font-size:.95rem}
.notebox{margin-top:12px;background:#F7F4EE;border:1px solid var(--amber);border-radius:8px;padding:10px 14px;color:var(--ink);font-weight:600;font-size:.95rem}
.openbadge{display:inline-block;margin-top:12px;background:#E3F2E1;color:#2F6B2F;border:1px solid #2F6B2F;font-size:.8rem;font-weight:700;letter-spacing:.4px;padding:4px 12px;border-radius:20px}
body.tier-visitor [data-lock="member"] .live, body.tier-visitor [data-lock="plus"] .live, body.tier-member [data-lock="plus"] .live{opacity:.8;filter:grayscale(.35);pointer-events:none}

/* === Prevention Desk App shell (added for the app build) === */
.appbar{background:var(--ember);color:#fff;padding:10px 6vw;display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:.95rem}
.appbar b{font-family:Archivo,Arial,sans-serif;letter-spacing:.5px}
.appbar .dl{margin-left:auto;background:#fff;color:var(--ember-d);border:0;border-radius:20px;padding:7px 16px;min-height:44px;font:inherit;font-weight:700;cursor:pointer}
.appbar a{color:#FFE9D6}
.bottomnav{position:fixed;bottom:0;left:0;right:0;background:var(--ink);display:flex;z-index:80;box-shadow:0 -2px 12px rgba(0,0,0,.25)}
.bottomnav a{flex:1 1 0;min-width:0;color:#C9D2DB;text-decoration:none;text-align:center;padding:9px 1px calc(11px + env(safe-area-inset-bottom));font-size:clamp(.62rem,2.9vw,.72rem);font-weight:600;white-space:nowrap}
.bottomnav a span{display:block;font-size:1.15rem;line-height:1.2}
.bottomnav a.active{color:#fff;border-top:3px solid var(--amber)}
body{padding-bottom:calc(64px + env(safe-area-inset-bottom))}
.installcard{background:#fff;border:2px dashed var(--amber);border-radius:12px;padding:22px;margin:22px 0}
.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px;margin:18px 0}
.kpi{background:#fff;border:1px solid #C9D2DB;border-radius:10px;padding:16px;text-align:center}
.kpi b{display:block;font-size:1.6rem;color:var(--ember);font-family:Archivo,Arial,sans-serif}
table.data{border-collapse:collapse;width:100%;margin:14px 0;background:#fff}
table.data th,table.data td{border:1px solid #C9D2DB;padding:9px 12px;text-align:left;font-size:.95rem}
table.data th{background:var(--ink);color:var(--paper)}
.flashcard{background:#fff;border:1px solid #C9D2DB;border-top:5px solid var(--amber);border-radius:10px;padding:28px;text-align:center;cursor:pointer;min-height:150px}
.flashcard .front{font-size:1.15rem;font-weight:600}
.flashcard .back{color:var(--slate)}
.progress{height:10px;background:#DCE2E9;border-radius:5px;overflow:hidden;margin:8px 0}
.progress div{height:100%;background:var(--ember)}
.testpass{color:var(--green-lit);font-weight:700}.testfail{color:var(--ember-lit);font-weight:700}
code{background:#DCE2E9;padding:1px 6px;border-radius:4px;font-size:.9em}
.pitchdeck .card{border-top-color:var(--amber)}

/* === v2 ENERGY PASS — aspirant-facing design (Oct 15, Eric: eye-catching, fun) === */
:root{--flame:#E4572E;--flame-text:#C1411E;--c-fi2:#B3271E;--c-fi1:#E4572E;--c-cfi:#2563EB;--c-ff1:#E39B2D;--c-ff2:#3E5C7A;--c-emt:#0E7C7B;--heat:linear-gradient(100deg,#8C1D15,#B3271E 45%,#C7471F 80%,#9C6206)}
header::after{content:'';display:block;height:6px;background:var(--heat)}
.hero{background:radial-gradient(640px 320px at 85% 15%,rgba(227,155,45,.14),transparent 60%),linear-gradient(150deg,#262B31 0%,#22262A 55%,#181B1F 100%)}
.hero h1{font-size:clamp(2.3rem,5.6vw,3.7rem);letter-spacing:.4px;line-height:1.05}
.hero .sub{font-size:1.13rem}
section h2{border-left:7px solid var(--ember);padding-left:14px}
.btn{background:linear-gradient(100deg,var(--ember),var(--flame-text));box-shadow:0 3px 10px rgba(179,39,30,.35);border-radius:10px;transition:transform .15s,box-shadow .15s}
.btn:hover{transform:translateY(-2px);box-shadow:0 7px 18px rgba(179,39,30,.45)}
.gbtn{background:linear-gradient(100deg,var(--ember),var(--flame-text));box-shadow:0 3px 10px rgba(179,39,30,.3);transition:transform .15s,box-shadow .15s}
.gbtn:hover{transform:translateY(-2px);box-shadow:0 7px 18px rgba(179,39,30,.4)}
.card:has(a[href="fi2.html"]){border-top-color:var(--c-fi2)}
.card:has(a[href="fi1.html"]){border-top-color:var(--c-fi1)}
.card:has(a[href="cfi.html"]){border-top-color:var(--c-cfi)}
.card:has(a[href="ff1.html"]){border-top-color:var(--c-ff1)}
.card:has(a[href="ff2.html"]){border-top-color:var(--c-ff2)}
.card:has(a[href="emt.html"]){border-top-color:var(--c-emt)}
.certbar a{padding:9px 4px 8px}
.certbar a[href="ff1.html"]{box-shadow:inset 0 -3px 0 var(--c-ff1)}
.certbar a[href="ff2.html"]{box-shadow:inset 0 -3px 0 var(--c-ff2)}
.certbar a[href="fi1.html"]{box-shadow:inset 0 -3px 0 var(--c-fi1)}
.certbar a[href="fi2.html"]{box-shadow:inset 0 -3px 0 var(--c-fi2)}
.certbar a[href="cfi.html"]{box-shadow:inset 0 -3px 0 var(--c-cfi)}
.certbar a[href="emt.html"]{box-shadow:inset 0 -3px 0 var(--c-emt)}
.strip{background:linear-gradient(100deg,#571307,#8C1D15 55%,#B3271E);color:#fff}
.game{border:2px solid #DCE2E9;box-shadow:0 12px 32px rgba(34,38,42,.13)}
.game h3{color:var(--ink)}
.qotd{border:2px solid var(--amber);background:linear-gradient(180deg,#FFFFFF,var(--paper))}
.tabs{display:flex;gap:10px;flex-wrap:wrap;padding:10px 6vw 0}
.tabs .tab{background:var(--ink);color:#fff;text-decoration:none;font-weight:700;padding:10px 20px;border-radius:999px;box-shadow:0 2px 8px rgba(34,38,42,.25)}
.tabs .tab:hover{background:var(--ember)}
.tabs .tab.app{background:linear-gradient(100deg,var(--ember),var(--flame-text))}
.optbtn{transition:border-color .12s,transform .12s}
.optbtn:hover{border-color:var(--flame);transform:translateY(-1px)}
.price{color:var(--ember)}

.card.acc-fi2{border-top-color:var(--c-fi2)} .card.acc-fi1{border-top-color:var(--c-fi1)}
.card.acc-cfi{border-top-color:var(--c-cfi)} .card.acc-ff1{border-top-color:var(--c-ff1)}
.card.acc-ff2{border-top-color:var(--c-ff2)} .card.acc-emt{border-top-color:var(--c-emt)}
/* === Profile page states (Oct 15) === */
.avatar{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:linear-gradient(100deg,var(--ember-d),var(--ember));color:#fff;font-weight:800;margin-right:10px;vertical-align:middle}
.tierline{font-size:1.02rem;background:#F7F4EE;border:1px solid var(--amber);border-radius:8px;padding:10px 14px}
.state-account,.state-upgrade{display:none}
body.tier-member .state-account,body.tier-plus .state-account{display:block}
body.tier-member .state-upgrade{display:block}
body.tier-member .state-visitor,body.tier-plus .state-visitor{display:none}
body.tier-member .tierline-paid,body.tier-plus .tierline-free{display:none}
/* U-4 (ruled Oct 21, 2026): an All-Access grant opens the PLUS envelope,
   so the body carries tier-plus — but the holder is NOT a PLUS member.
   Under the grant-allaccess marker the PLUS tierline (with its PLUS
   term details) never prints; the truthful All-Access line prints. */
.tierline-allaccess{display:none}
body.tier-plus.grant-allaccess .tierline-paid{display:none}
body.tier-plus.grant-allaccess .tierline-allaccess{display:block}
/* Taste-Cutoff Pattern (Oct 18, 2026): the QOTD join line + the sample
   end-screen invitation — visitor-only elements (render-gated on the
   visitor tier; hidden here too as a backstop for member/PLUS bodies). */
.qjoin{margin-top:12px;color:var(--ink);font-weight:600}
.qjoin .gbtn{display:inline-block;text-decoration:none;margin-left:8px;padding:8px 16px}
body.tier-member .qjoin,body.tier-plus .qjoin{display:none}
.taste-invite{margin-top:16px;padding-top:12px;border-top:1px solid #C9D2DB;color:var(--ink);font-weight:600}
.taste-invite .btn{margin-left:8px}
.mini{background:#fff;border:1px solid #C9D2DB;border-top:5px solid var(--amber);border-radius:8px;padding:18px}


.citechip{display:inline-block;background:#F7F4EE;border:1px solid var(--amber);color:var(--ink);border-radius:999px;padding:2px 10px;font-size:.8rem;font-weight:700;margin-top:8px}

/* Keep anchored/scrolled content clear of the fixed bottom nav. */
html { scroll-padding-bottom: 96px; }
section, .card { scroll-margin-bottom: 96px; }

/* Lock notes inside data-lock blocks show only while the block is locked for the current tier. */
[data-lock] .locknote{display:none}
body.tier-visitor [data-lock="member"] .locknote{display:block}
body.tier-visitor [data-lock="plus"] .locknote.note-visitor{display:block}
body.tier-member [data-lock="plus"] .locknote.note-member{display:block}
:focus-visible{outline:2px solid var(--ember-d);outline-offset:2px}
@media (prefers-reduced-motion: reduce){*,*::before,*::after{transition:none !important;animation:none !important;scroll-behavior:auto !important}}
.missionline{font-family:Archivo,Inter,sans-serif;font-weight:700;font-size:1.12rem;color:var(--ember-d);max-width:640px;margin:0 auto}

/* === DESIGNER POLISH — team pass Oct 16, 2026 (design lane) ===
   Tokens, button-state completeness, numeric discipline, focus/print/mobile
   polish. Appended last so it wins on equal specificity. No color values
   changed; no contrast ratio regressed; affordance law preserved. */
:root{
  --sp-1:4px;--sp-2:8px;--sp-3:12px;--sp-4:16px;--sp-5:24px;--sp-6:32px;--sp-7:48px;
  --radius-sm:8px;--radius:10px;--radius-lg:14px;
  --shadow-sm:0 1px 3px rgba(34,38,42,.06);
  --shadow-md:0 8px 22px rgba(34,38,42,.10);
  --shadow-lg:0 16px 38px rgba(34,38,42,.14);
  --ease:cubic-bezier(.2,.7,.3,1);
  --tap:44px;
}
html{scroll-behavior:smooth;scroll-padding-top:118px;-webkit-text-size-adjust:100%}
body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-webkit-tap-highlight-color:transparent}
::selection{background:var(--amber);color:var(--ink)}
img,svg{max-width:100%}
h1,h2,h3{text-wrap:balance}
p,li{text-wrap:pretty}
/* Tabular numbers wherever money, scores, timers or stats sit — stops jitter */
.card .price,.price,.score,.score-big,.timer,#planText,.strip b,.kpi b,table.data td,.domain-pct{font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1}
/* Button state completeness: hover exists; add press + disabled + focus ring */
.btn,.gbtn,.cta,.tabs .tab,.apppromo a{transition:transform .15s var(--ease),box-shadow .15s var(--ease),background-color .15s var(--ease)}
.btn:active,.gbtn:active:not(:disabled),.cta:active{transform:translateY(0) scale(.99);box-shadow:0 1px 4px rgba(179,39,30,.35)}
.btn:disabled,.gbtn:disabled,.cta[aria-disabled="true"],.btn[aria-disabled="true"]{opacity:.55;cursor:not-allowed;transform:none!important;box-shadow:none!important}
.optbtn:active{transform:translateY(0)}
.optbtn:focus-visible,.fc-pick:focus-visible,.certbar a:focus-visible,.tabs .tab:focus-visible{outline:3px solid var(--ember-d);outline-offset:2px;border-radius:6px}
/* A11Y 2026-10-23: light containers (white .card, cream .joinband, tutor chips/log) — the global amber outline measures 2.34:1 on white (< SC 1.4.11 3:1); light contexts take the ember-d outline (9.19:1 on white), mirroring the webapp globals pattern. */
.card :focus-visible,.joinband :focus-visible,.tutor-qotd :focus-visible,.tutor-log :focus-visible{outline-color:var(--ember-d)}
:focus-visible{outline:3px solid var(--ember-d);outline-offset:2px}
/* Link polish: offset underlines read cleaner at body sizes */
a{text-underline-offset:3px;text-decoration-thickness:1px}
/* Card discipline: one shadow language, radius token, static cards never lift */
.card{border-radius:var(--radius);box-shadow:var(--shadow-sm)}
.game{border-radius:var(--radius-lg)}
.mini{border-radius:var(--radius)}
section.tight{padding-top:30px;padding-bottom:30px}
/* Scrollbar: quiet, on-brand (WebKit/Blink; Firefox via scrollbar-color) */
html{scrollbar-color:#A7B0BA transparent;scrollbar-width:thin}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-thumb{background:#A7B0BA;border-radius:8px;border:2px solid var(--paper)}
::-webkit-scrollbar-thumb:hover{background:var(--slate)}
::-webkit-scrollbar-track{background:transparent}
/* Mobile composition at 390px: tighten rhythm, keep 44px targets */
@media (max-width:480px){
  section{padding:36px 5vw}
  .hero{padding:26px 20px}
  .cards{grid-template-columns:1fr}
  .strip{gap:18px 22px;padding:16px 5vw}
  .certbar a,.tabs .tab{min-height:var(--tap);display:inline-flex;align-items:center}
  .card{padding:20px}
  .game{padding:18px}
}
/* Reduced motion: also kill the lift itself, not just its transition */
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .btn:hover,.gbtn:hover,.optbtn:hover,a.card:hover,.card.linkcard:hover,label.card:hover,.fc-pick:hover{transform:none!important}
}
/* Print: the one-pager and study materials print clean (extends Oct 15 rule) */
@media print{
  header,footer,nav,.gbtn,.btn,.cta,.tabs,.certbar,.apppromo,.pd-bottomnav,.bottomnav,.homecta,.stickycta,.dev-ribbon{display:none!important}
  body{background:#fff!important;color:#000;padding-bottom:0!important}
  section{padding:18px 0;max-width:none}
  .hero,.strip,.cta-band{background:#fff!important;color:#000!important;border:1px solid #999;border-radius:0}
  .hero h1,.hero h2,.hero .lede,.hero p,.strip,.cta-band h2,.cta-band p{color:#000!important}
  .card,.game,.tier,.qotd,.mini,.form-card{box-shadow:none!important;border:1px solid #bbb!important;break-inside:avoid;page-break-inside:avoid}
  a{color:#000!important;text-decoration:none}
  h1,h2,h3{color:#000!important}
}

/* SKIP LINK (Accessibility Round 1, coordinator styling) — visually hidden until focused */
.skip-link{position:absolute;left:12px;top:-64px;z-index:300;background:var(--ink,#22262A);color:#fff;padding:10px 18px;border-radius:0 0 10px 10px;font-weight:700;text-decoration:none;transition:top .18s ease}
.skip-link:focus{top:0;color:#fff}

/* === DESIGNER ROUND 2 — team pass Oct 16, 2026 (design lane, Eric's rulings) ===
   (1) CODE CHECK chip canonicalized to the webapp pill (edited in place above).
   (2) "Desk at night" dark study surfaces — practice components only,
       marketing pages stay paper. (3) Designed print: masthead + @page footer.
   (4) Per-track identity on existing hooks. (5) .card h2 prep rule.
   Appended last; wins on equal specificity. All dark text pairs ≥ AA
   (verified numerically, see round report). */

/* --- (5) Heading-normalization prep: a promoted card h2 must render
   exactly like today's card h3 and must NOT inherit the section-h2 bar. */
.card h2{font-family:Archivo,Arial,sans-serif;font-size:1.17em;font-weight:700;margin:0 0 6px;border-left:0;padding-left:0}

/* --- (4) Per-track identity: left accent edge, status underline, badge
   ring on acc cards; certbar underline deepens on hover. Accents are
   decorative here — never body text. */
.card.acc-fi2 .status{border-bottom:2px solid var(--c-fi2);padding-bottom:2px} .card.acc-fi1 .status{border-bottom:2px solid var(--c-fi1);padding-bottom:2px}
.card.acc-cfi .status{border-bottom:2px solid var(--c-cfi);padding-bottom:2px} .card.acc-ff1 .status{border-bottom:2px solid var(--c-ff1);padding-bottom:2px}
.card.acc-ff2 .status{border-bottom:2px solid var(--c-ff2);padding-bottom:2px} .card.acc-emt .status{border-bottom:2px solid var(--c-emt);padding-bottom:2px}
.card.acc-fi2 .badge{border:2px solid var(--c-fi2)} .card.acc-fi1 .badge{border:2px solid var(--c-fi1)}
.card.acc-cfi .badge{border:2px solid var(--c-cfi)} .card.acc-ff1 .badge{border:2px solid var(--c-ff1)}
.card.acc-ff2 .badge{border:2px solid var(--c-ff2)} .card.acc-emt .badge{border:2px solid var(--c-emt)}
.certbar a[href="fi2.html"]:hover{box-shadow:inset 0 -5px 0 var(--c-fi2)}
.certbar a[href="fi1.html"]:hover{box-shadow:inset 0 -5px 0 var(--c-fi1)}
.certbar a[href="cfi.html"]:hover{box-shadow:inset 0 -5px 0 var(--c-cfi)}
.certbar a[href="ff1.html"]:hover{box-shadow:inset 0 -5px 0 var(--c-ff1)}
.certbar a[href="ff2.html"]:hover{box-shadow:inset 0 -5px 0 var(--c-ff2)}
.certbar a[href="emt.html"]:hover{box-shadow:inset 0 -5px 0 var(--c-emt)}

/* REMOVED Oct 19, 2026 — Preview Visual Fix Pass (Eric's phone captures): the OS-dark color-scheme media block that lived here is gone. Signal palette C (Eric's ruling, Oct 19) is the only customer face and renders identically in both OS schemes; :root pins color-scheme: light. The removed dark rules are recoverable from git history if an approved dark mode is ever built. */

/* --- (3) Designed print: masthead + @page footer line.
   Margin boxes are supported in Firefox; Chromium/Safari currently ignore
   margin-box content (they honor the @page margins). Borders carry the
   heat rule because backgrounds do not print by default. */
@page{margin:18mm 16mm 20mm;
  @bottom-left{content:"The Prevention Desk — Find it fast. Know why. Walk in ready.";font-family:Inter,Arial,sans-serif;font-size:8pt;color:#5A6570}
  @bottom-right{content:"HereToHelp@thepreventiondesk.com · Page " counter(page) " of " counter(pages);font-family:Inter,Arial,sans-serif;font-size:8pt;color:#5A6570}
}
@media print{
  header{display:flex!important;align-items:center;gap:12px;position:static;box-shadow:none;background:#fff!important;border-bottom:3px solid #B3271E;padding:0 0 10px;margin-bottom:14px}
  header::after{display:none}
  header nav{display:none!important}
  .appbar{display:none!important}
  .citechip{print-color-adjust:exact;-webkit-print-color-adjust:exact}
}

/* === DESIGN CRITIC — Experience Board pass, Oct 17, 2026 (new-team design lane) ===
   Same six fixes as the site sheet (heat strip, centered column, display
   titles, link-color system, one button language, tighter mobile chrome),
   plus one app-only repair: the mission line inside the app home hero
   rendered ember-d (#8C1D15) on the dark hero gradient — 1.4:1, effectively
   invisible. It now takes the hero's warm text tone. Dark-mode values are
   restated where this block would otherwise override Round 3. */
/* (1) Signature heat strip under the header */
header::after{position:absolute;left:0;right:0;bottom:0}
/* (2) Centered content column (webapp parity) */
section{margin-left:auto;margin-right:auto}
.hero{margin-left:auto;margin-right:auto}
/* (3) Interior titles at display size */
section h1{font-size:clamp(1.9rem,3.6vw,2.45rem);line-height:1.12;font-weight:800;letter-spacing:.2px}
.hero h1{font-weight:800}
/* (4) Link color system */
a{color:var(--ember-d)}
a.card,.card.linkcard,label.card{color:inherit;text-decoration:none}
footer a{color:var(--paper)}
.hero a:not(.btn):not(.cta):not(.gbtn),.strip a{color:#FFD9A0}
/* REMOVED Oct 19, 2026 — Preview Visual Fix Pass (Eric's phone captures): the OS-dark color-scheme media block that lived here is gone. Signal palette C (Eric's ruling, Oct 19) is the only customer face and renders identically in both OS schemes; :root pins color-scheme: light. The removed dark rules are recoverable from git history if an approved dark mode is ever built. */
/* (5) One button language; ghost secondary inside heroes */
.cta{background:linear-gradient(100deg,var(--ember),var(--flame-text));border-radius:10px}
.hero .gbtn{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.55);box-shadow:none}
.hero .gbtn:hover{background:rgba(255,255,255,.24);box-shadow:0 7px 18px rgba(0,0,0,.25)}
/* (6) Hero mission line contrast (app home) */
.hero .missionline{color:#C9D2DB}
/* (7) Mobile: tighten the chrome stack above the hero */
@media (max-width:640px){
  header{padding:12px 5vw}
  header .mark{width:44px;height:44px}
  .appbar{padding:8px 5vw}
}

/* Product-preview figures (Final Polish, Oct 17): inline-SVG scenes of real
   features — styled illustrations, never fake screenshots. */
.pvfig{margin:0}
.pvfig svg{display:block;width:100%;height:auto}
.pvfig figcaption{color:var(--slate);font-size:.85rem;margin-top:8px}
.pvfig figcaption b{color:var(--ink)}

/* === RETENTION & DELIGHT — RD-1..RD-5 (Oct 17, 2026) === */
.mission-segs{list-style:none;display:grid;gap:8px;margin-top:10px}
.mission-segs .seg{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}
.mission-segs .seg-box{font-weight:800;color:var(--ember-lit)}
.mission-segs .seg.done{color:var(--slate)}
.mission-segs .seg.done .seg-box{color:var(--green-lit)}
.mission-done{margin-top:12px;font-weight:700;color:#2f6b2f}
.freezeline{color:var(--slate);font-size:.92rem;margin-top:2px}
.readout-head{display:flex;gap:18px;align-items:center;flex-wrap:wrap;margin:8px 0 4px}
.readout-ring{position:relative;width:92px;height:92px;flex:0 0 auto}
.readout-ring-num{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:1.25rem;color:var(--ink);padding-bottom:14px}
.readout-ring-cap{position:absolute;left:0;right:0;bottom:16px;text-align:center;font-size:.62rem;font-weight:700;letter-spacing:.4px;color:var(--slate);text-transform:uppercase}
.rd-ring-fg{transition:stroke-dashoffset .9s ease}
.rd-fill{transition:width .7s ease}
.domain-bars{display:grid;gap:7px;margin:12px 0}
.domain-row{display:grid;grid-template-columns:1fr auto;gap:2px 10px;align-items:center}
.domain-name{font-weight:600}
.domain-track{grid-column:1/-1;background:#DCE2E9;border-radius:99px;height:10px;overflow:hidden}
.domain-fill{display:block;height:100%;background:var(--ember);border-radius:99px}
.domain-pct{color:var(--slate);font-size:.9rem}
.instr-line{margin-top:10px;font-size:1.02rem}
.instr-tag{display:inline-block;background:#f7f4ee;border:1px solid var(--amber);color:var(--ink);border-radius:999px;padding:1px 9px;font-size:.72rem;font-weight:700;letter-spacing:.4px;text-transform:uppercase;margin-right:9px;vertical-align:2px}
.marks-strip{list-style:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px;margin-top:14px}
/* Desk Marks items are .dmark — NEVER .mark (.mark is the brand logo's
   fixed-square class; sharing it pinned items to 52x52 and overflowed
   their text across rows — Eric-found overlap defect, Oct 19, 2026). */
.dmark{display:flex;flex-direction:column;gap:4px;align-items:flex-start}
.dmark .mark-name{font-weight:700;font-size:.95rem}
.dmark .mark-cap{color:var(--slate);font-size:.82rem;line-height:1.35}
.dmark:not(.earned){opacity:.62}
.dmark.earned .mark-cap{color:#2f6b2f;font-weight:600}

/* === Fix Loop C (H8): the app fork gains the HazMat / certbar-group / pathway
   styles it was missing — .hazmat-rung and .hazmat-listing rendered unstyled,
   and no HazMat accent existed. Values mirror the site stylesheet. === */
:root{--c-hazaw:#6C4AB0;--c-hazop:#4C7A34}
/* DO-1 (Oct 17, 2026): Driver/Operator accent — the same apparatus bronze as
   the site stylesheet, mirrored at the same strength as the HazMat pair. */
:root{--c-do:#8C5A00}
.card.acc-do .status{border-bottom:2px solid var(--c-do);padding-bottom:2px}
.do-listing{border-left:4px solid var(--c-do);padding:6px 0 6px 12px;margin:10px 0}
.do-listing .status{display:inline-block;border:1px solid var(--slate);border-radius:999px;padding:1px 8px;font-size:.68rem;margin-left:6px}
.card.acc-hazaw .status{border-bottom:2px solid var(--c-hazaw);padding-bottom:2px} .card.acc-hazop .status{border-bottom:2px solid var(--c-hazop);padding-bottom:2px}
.certbar .cb-group{display:inline-flex;gap:2px 10px;align-items:center;flex-wrap:wrap}
.certbar .cb-group + .cb-group{margin-left:10px}
.certbar .cb-tab{font-weight:700;letter-spacing:1px;text-transform:uppercase;color:var(--slate);font-size:.72rem}
.hazmat-rung{border-left:4px solid var(--c-hazaw);padding:6px 0 6px 12px;margin:10px 0}
.hazmat-rung + .hazmat-rung{border-left-color:var(--c-hazop)}
.hazmat-listing{border-left:4px solid var(--c-hazaw);padding:6px 0 6px 12px;margin:10px 0}
.hazmat-listing + .hazmat-listing{border-left-color:var(--c-hazop)}
.hazmat-rung .status,.hazmat-listing .status{display:inline-block;border:1px solid var(--slate);border-radius:999px;padding:1px 8px;font-size:.68rem;margin-left:6px}
/* REMOVED Oct 19, 2026 — Preview Visual Fix Pass (Eric's phone captures): the OS-dark color-scheme media block that lived here is gone. Signal palette C (Eric's ruling, Oct 19) is the only customer face and renders identically in both OS schemes; :root pins color-scheme: light. The removed dark rules are recoverable from git history if an approved dark mode is ever built. */

/* Ask the Desk tutor (Tutor-in-App, Oct 17, 2026) — mirrors the webapp's
   tutor panel (.tutor-* in webapp/app/globals.css) so the recorded demo,
   the daily explanation, and the live chat read as one product. */
.tutor-tag{font-weight:700;color:var(--ember);margin-bottom:6px}
.tutor-qotd{border:1px solid var(--amber);background:#F7F4EE;border-radius:10px;padding:14px 16px;margin-top:14px;max-width:760px}
.tutor-qotd p{margin-top:8px}
.tutor-demo{max-width:760px}
.tutor-log{max-height:420px;overflow-y:auto;border:1px solid #C9D2DB;border-radius:10px;padding:12px 14px;margin-top:12px;background:#fff}
.tutor-turn{margin:10px 0}
.tutor-turn .tutor-who{font-weight:700;font-size:.85rem;margin-bottom:2px;color:var(--ink)}
.tutor-turn p{color:var(--ink);margin-top:4px}
.tutor-turn.desk{border-left:3px solid var(--amber);padding-left:10px}
.tutor-note{margin-top:8px;color:var(--ember-lit);font-weight:600}
.tutor-plan{border:1px solid #C9D2DB;border-radius:10px;padding:12px 14px;margin-top:12px;background:#fff}
.tutor-plan:empty{display:none}
.tutor-history{list-style:none;padding:0}
.tutor-history li{margin:6px 0}
/* FORK-2 Dispatch chrome (Oct 21, 2026): composed scope line, citation
   chips (Desk source primary, LiNK line subordinate), pinned disclaimer. */
.tutor-scope{margin-top:8px;font-size:.82rem;color:var(--slate);border-top:1px dashed #C9D2DB;padding-top:6px}
.tutor-sources{display:flex;flex-direction:column;gap:6px;margin-top:10px}
.tutor-source{display:flex;flex-direction:column;gap:2px;align-items:flex-start}
.tutor-chip{display:inline-block;border:1px solid var(--amber);border-radius:999px;padding:3px 12px;font-size:.85rem;font-weight:700;text-decoration:none;color:var(--ink-hi)}
.tutor-qotd .tutor-chip,.tutor-log .tutor-chip{color:var(--ink)}
.tutor-linknote{font-size:.78rem;color:var(--slate);margin-left:12px}
.tutor-disclaimer{margin-top:8px;font-size:.82rem;color:var(--slate)}
.tutor-panel select,.tutor-panel input[type="text"]{font:inherit;padding:9px;border:1.5px solid #C9D2DB;border-radius:8px;background:#fff;color:var(--ink)}
.tutor-panel textarea{width:100%;font:inherit;padding:9px;border:1.5px solid #C9D2DB;border-radius:8px;background:#fff;color:var(--ink)}

/* ---------- Corner Quiet Mode (F-DESIGN S1-1) ----------
   The app's Help Now page is a crisis surface, not the sales floor:
   on body.quiet the bottom nav (with its Pricing item) and the app
   download button stand down, the surface goes flat Paper/Ink, and
   crisis numbers become large, tappable rows. Styling only — not one
   word of the Corner copy changes. */
body.quiet .bottomnav { display: none; }
body.quiet { padding-bottom: 0; }
body.quiet .appbar .dl { display: none; }
body.quiet header nav { display: none; }
body.quiet footer a[href="pricing.html"] { display: none; }
body.quiet main { line-height: 1.75; }
body.quiet .card { border-top-color: var(--slate); }
body.quiet .crisis-num { font-size: 2rem !important; line-height: 1.8; }
body.quiet .crisis-num a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px;  display: inline-flex; align-items: center; min-height: 44px; padding: 2px 8px; }
/* ---- Interactive Training Lab (Wave L1, Oct 18, 2026) ---- */
.pairline{color:var(--slate);font-size:.92rem;border-left:3px solid var(--amber);padding-left:10px}
.labmodes,.labsegs{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0;align-items:center}
.labmode{background:var(--surface);border:1px solid #C9D2DB;border-radius:8px;padding:9px 14px;font:inherit;font-weight:700;cursor:pointer}
.labmode.on{background:var(--ember);color:#fff;border-color:var(--ember)}
.labmode:disabled{opacity:.55;cursor:not-allowed}
.labseg{background:#fff;border:1px solid #C9D2DB;border-radius:999px;padding:6px 12px;min-height:44px;display:inline-flex;align-items:center;font:inherit;font-size:.9rem;cursor:pointer}
.labseg.on{border-color:var(--ember);color:var(--ember);font-weight:700}
.labrec{color:var(--slate);font-size:.9rem}
.labstage{position:relative;width:100%;max-width:640px;min-height:240px;aspect-ratio:4/3;background:#fff;border:1px solid #C9D2DB;border-radius:10px;overflow:hidden;margin:10px 0}
.labinner{position:absolute;inset:0;transition:transform .45s ease}
.labinner svg{width:100%;height:100%;display:block}
.labhot{position:absolute;transform:translate(-50%,-50%);width:11%;min-width:44px;min-height:44px;aspect-ratio:1;border-radius:50%;background:transparent;border:0;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;z-index:2}
.labdot{width:15px;height:15px;border-radius:50%;background:var(--ember);border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.35);display:block;pointer-events:none}
.labdot.found{background:#2F6B2F}
.labdot.target{background:var(--amber);animation:labpulse 1.1s infinite}
@keyframes labpulse{0%,100%{transform:scale(1)}50%{transform:scale(1.45)}}
.labtoken{position:absolute;width:22px;height:22px;border-radius:50%;background:var(--ember);border:3px solid #fff;box-shadow:0 2px 8px rgba(0,0,0,.4);transform:translate(-50%,-50%);transition:left .6s ease,top .6s ease;pointer-events:none;z-index:3}

/* The Bottle (FG-1) — air gauge, alarm, floor-plan zones */
.bgauge-wrap{margin:10px 0 4px}
.bgauge{position:relative;height:26px;border:2px solid #22303C;border-radius:8px;background:#DCE2E9;overflow:hidden}
.bgauge-fill{position:absolute;top:0;bottom:0;left:0;background:#2F6B2F;transition:width .2s linear}
.bgauge.low .bgauge-fill{background:var(--ember,#B3271E)}
.bgauge-tick{position:absolute;top:0;bottom:0;width:2px;background:rgba(20,28,36,.55)}
.bgauge-scale{display:flex;justify-content:space-between;gap:6px;font-size:.78rem;color:var(--slate,#5A6570);margin-top:3px}
.bstatus{font-weight:600;margin:4px 0 0}
.balarm{background:var(--ember,#B3271E);color:#fff;font-weight:700;padding:10px 12px;border-radius:8px;margin:10px 0;animation:balarmflash 1s steps(2,start) infinite}
@keyframes balarmflash{50%{background:#7E1B14}}
.bzone{position:absolute;transform:translate(-50%,-50%);text-align:center;pointer-events:none;z-index:2}
.bzonedot{display:block;width:10px;height:10px;margin:0 auto;border-radius:50%;background:#fff;border:2px solid #22303C}
.bzonename{display:block;font-size:.68rem;font-weight:700;line-height:1.25;color:#22303C;background:rgba(255,255,255,.8);padding:0 3px;border-radius:3px;margin-top:1px;white-space:nowrap}
.btoken{z-index:3}
.bchoice{text-align:left}
.bdetail{display:block;font-weight:400;font-size:.85em;margin-top:2px}
.bneed{font-weight:700}
.bexit{margin-top:6px}

.labprompt{font-weight:700;margin:10px 0 4px}
.labchips{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.labchip{min-height:56px;padding:12px 16px;font-weight:600;text-align:left}
.labhint{align-self:center}
.labfeed{min-height:1.4em}
.labcard{background:var(--surface);border:1px solid #C9D2DB;border-radius:10px;padding:16px;margin:12px 0}
.labcard h4{margin-top:0}
.lablist{margin:8px 0;padding-left:20px}
.labmodel{background:#fff;border-left:4px solid var(--ember);padding:10px 14px;font-style:italic}
.labfield{display:block;margin:12px 0}
.labfield input[type="text"],.labfield textarea{width:100%;padding:10px;border:1px solid #C9D2DB;border-radius:8px;font:inherit;margin-top:6px;box-sizing:border-box}
.labflabel{font-weight:700;display:block;margin-bottom:6px}
.labnote{color:var(--slate);font-size:.92rem}
.labsteps{margin:10px 0;padding-left:22px}
.labsteps li{margin:8px 0}
.labchip.placed{opacity:.45;text-decoration:line-through}

/* === RUN AUTOPSY + MISS DECK (IBS-5 / GF-2 / COMP2-2, Oct 18, 2026) ===
   Mirror of the site stylesheet's autopsy block: the titled weak-spot
   artifact on run end screens. In-portal only (Oct 20, 2026
   boundary; Phase 2 Lane C): the former body.printing-autopsy print
   system was removed with the print/save affordance. */
.interp-block{margin-top:22px;border:1px solid #C9D2DB;border-left:6px solid var(--ember);border-radius:12px;padding:14px 18px;background:#FFFFFF}
.interp-block h4{margin:0 0 8px}
.interp-block p{margin:8px 0}
.autopsy-artifact{margin-top:22px;border:2px solid var(--ink);border-radius:12px;padding:18px 20px;background:#FFFFFF}
.autopsy-artifact h3{margin-top:0}
.autopsy-artifact h4{margin:16px 0 6px}
.autopsy-miss{border-top:1px solid #C9D2DB;padding:10px 0}
.autopsy-class{display:inline-block;font-weight:700;border:1.5px solid var(--ink);border-radius:20px;padding:2px 10px;font-size:.85rem}
@media print{
  .autopsy-artifact{break-inside:avoid-page}
  .autopsy-miss{break-inside:avoid}
}

/* Desk Practicals (PR-1, Oct 18, 2026) — skill sheets + ERG Lookup Drill. */
.prac-steps{list-style:none;margin:10px 0;padding:0}
.prac-step{display:flex;gap:14px;align-items:flex-start;background:#fff;border:1px solid #C9D2DB;border-radius:10px;padding:12px 14px;margin:10px 0}
.prac-step.is-break{border-color:var(--ember)}
.prac-step.is-clean{border-color:#4C7A34}
.prac-step-text{flex:1}
.prac-cue{color:var(--slate);font-size:.92rem;margin-top:6px}
.prac-marks{display:flex;gap:6px;flex:none}
.prac-mark{font:inherit;font-size:.85rem;font-weight:600;padding:6px 12px;min-height:44px;display:inline-flex;align-items:center;border-radius:999px;border:1px solid #C9D2DB;background:var(--surface);cursor:pointer}
.prac-mark.on{background:var(--ink);color:#fff;border-color:var(--ink)}
.prac-framing{background:var(--surface);border-left:4px solid var(--amber);padding:10px 14px;font-size:.95rem}
.prac-edition{background:#fff;border-left:4px solid var(--slate);padding:10px 14px;font-size:.95rem}
.prac-clear{color:var(--slate);font-size:.92rem}
.prac-note{background:#fff;border:1px solid #C9D2DB;border-radius:10px;padding:12px 14px;margin:12px 0}
.prac-note.good{border-color:#4C7A34}
.prac-repstate{color:var(--slate);font-size:.92rem}
.prac-modes{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 4px}
.prac-mode{font:inherit;font-weight:600;padding:8px 16px;min-height:44px;border-radius:999px;border:1px solid #C9D2DB;background:#fff;cursor:pointer}
.prac-mode.on{background:var(--ember);border-color:var(--ember);color:#fff}
.prac-mode:disabled{opacity:.5;cursor:not-allowed}
.prac-modeblurb{color:var(--slate);font-size:.95rem}
.prac-clock{font-weight:700;color:var(--ember-lit)}
.prac-opts{display:flex;flex-direction:column;gap:8px;margin:12px 0}
.prac-opt{font:inherit;text-align:left;padding:12px 14px;border:1px solid #C9D2DB;border-radius:10px;background:#fff;cursor:pointer}
.prac-opt:hover{border-color:var(--slate)}
.prac-opt.on{border-color:var(--ink);background:#E9EDF1}
.prac-opt.right{border-color:#4C7A34;background:#EFF5EA}
.prac-opt.wrong{border-color:var(--ember);background:#FBEEEA}
.prac-opt:disabled{cursor:default;opacity:.85}
.prac-field{border:1px solid #C9D2DB;border-radius:10px;padding:10px 14px;margin:12px 0;background:#fff}
.prac-field legend{font-weight:700;padding:0 6px}
.prac-checks{display:flex;flex-direction:column;gap:10px;margin:12px 0}
.prac-check{display:flex;gap:10px;align-items:flex-start;background:#fff;border:1px solid #C9D2DB;border-radius:10px;padding:10px 14px}
.prac-check input{margin-top:5px}

/* Home CTA bar — one component definition (DN-4, Site Review Oct 18, 2026).
   Markup lives on pricing.html; the bottom offset clears the app bottom
   nav; spacer value shared with the site stylesheet. */
@media (max-width:860px){.homecta{display:flex;position:fixed;left:0;right:0;bottom:calc(62px + env(safe-area-inset-bottom));z-index:79;background:var(--paper);border-top:1px solid #C9D2DB;padding:8px 10px calc(8px + env(safe-area-inset-bottom));gap:8px}.homecta a{flex:1;text-align:center}.homectasp{display:block;height:calc(70px + env(safe-area-inset-bottom))}}
@media (min-width:861px){.homecta,.homectasp{display:none}}

/* === Signal Colors homepage (Oct 19, 2026): track buttons, Station doors, games band === */
.trackbar{display:block;padding:18px 6vw 2px;max-width:1100px;margin:0 auto}
.trackbar .eyebrow{font-size:.78rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--slate);margin:0 0 8px}
.tracks{display:grid;grid-template-columns:1fr 1fr;gap:9px}
@media(min-width:820px){.tracks{grid-template-columns:repeat(4,1fr)}}
.trackbtn{display:block;text-decoration:none;border-radius:12px;padding:12px 14px;min-height:64px;color:#fff}
.trackbtn b{display:block;font-family:Archivo,Arial,sans-serif;font-size:1.02rem;letter-spacing:.05em;color:#fff}
.trackbtn span{display:block;font-size:.74rem;margin-top:2px;color:#fff;line-height:1.35}
.t-ff{background:#3E5C7A}.t-emt{background:#0E7C7B}.t-haz{background:#6C4AB0}.t-insp{background:#B3271E}
.t-ff,.t-ff b,.t-ff span{color:#fff}
/* FORK-8 scenario door layer (Oct 21, 2026): directly beneath the trackbar.
   Pocket-ground doors, track accent as left rail — kin to the track buttons,
   quieter than them: the tabs keep the lead. */
.scenbar{display:block;padding:14px 6vw 2px;max-width:1100px;margin:0 auto}
.scenbar .eyebrow{margin:0 0 6px}
.scenintro{color:var(--slate);font-size:.9rem;line-height:1.45;max-width:680px;margin:0 0 10px}
.scenarios{display:grid;grid-template-columns:1fr 1fr;gap:9px}
@media(min-width:820px){.scenarios{grid-template-columns:repeat(4,1fr)}}
.scendoor{display:block;text-decoration:none;background:var(--surface);border:1px solid var(--plate-hi);border-left:5px solid var(--slate);border-radius:12px;padding:12px 14px;color:#CFCBC2}
.scendoor b{display:block;font-family:Archivo,Arial,sans-serif;font-size:.98rem;line-height:1.3;color:#ECE9E2}
.scendoor span{display:block;font-size:.74rem;margin-top:4px;color:var(--slate);line-height:1.35}
.scendoor.s-ff{border-left-color:#3E5C7A}
.scendoor.s-emt{border-left-color:#0E7C7B}
.scendoor.s-haz{border-left-color:#6C4AB0}
.scendoor.s-insp{border-left-color:#B3271E}
.scendoor.s-career{border-left-color:#E39B2D}
.missionband{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:20px}
.m1{font-size:1.06rem;font-weight:600;line-height:1.55;max-width:680px;color:var(--ink)}
.doorgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin-top:8px}
.door{display:block;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px 14px;text-decoration:none;color:inherit}
.door b{display:block;font-family:Archivo,Arial,sans-serif;font-size:.98rem;color:var(--ink)}
.door span{display:block;font-size:.84rem;color:var(--slate);margin-top:2px;line-height:1.4}
.door.quiet{border-style:dashed;background:transparent}
.funband{background:var(--ink);color:#E9EDF1;border-radius:14px;padding:26px 24px}
.funband h2{color:#fff;border-left-color:var(--amber)}
.funband p{color:#C9D2DB;max-width:680px}
.funband .gbtn{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.55);box-shadow:none;color:#fff;text-decoration:none;display:inline-block}
.funband .gbtn:hover{background:rgba(255,255,255,.24)}
.finalband{padding:10px 0 4px}
@media (max-width:640px){.hero>.mark{display:none}}

/* === FE-8 stack compression (Oct 19, 2026): one-row scrollable bars on small screens; DOM, tab order, CFI-first certbar order, and the Edition Tab untouched === */
@media (max-width:640px){
.apppromo{font-size:.8rem;padding:7px 12px;line-height:1.4;row-gap:2px}.apppromo span{flex-basis:100%;order:3}.apppromo b{order:1}.apppromo a{order:2;margin-left:auto}
header{padding-top:8px;padding-bottom:8px}
.tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-top:6px;padding-bottom:6px;-webkit-mask-image:linear-gradient(90deg,#000 0,#000 calc(100% - 30px),transparent 100%);mask-image:linear-gradient(90deg,#000 0,#000 calc(100% - 30px),transparent 100%)}
.tabs::-webkit-scrollbar{display:none}
.tabs .tab{flex:none}
.certbar{flex-direction:row;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-top:6px;padding-bottom:6px;-webkit-mask-image:linear-gradient(90deg,#000 0,#000 calc(100% - 30px),transparent 100%);mask-image:linear-gradient(90deg,#000 0,#000 calc(100% - 30px),transparent 100%)}
.certbar::-webkit-scrollbar{display:none}
.certbar .cb-group{flex:none}
.certbar .cb-lead{flex:none}
main>section:first-of-type{padding-top:18px}
}

/* First-viewport trims (Oct 19, 2026): Eric's buttons ruling was name-only — captions ride on wide screens */
@media (max-width:640px){
.tracks{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.trackbtn{min-height:56px;padding:10px 3px;text-align:center;min-width:0;overflow:hidden}
.trackbtn b{font-size:clamp(.58rem,2.6vw,.92rem);letter-spacing:.01em;white-space:nowrap}
/* Keep-Going Wave Lane 3 F3 (Oct 19, 2026): same track-label cure as the
   site/webapp — FIRE INSPECTOR wraps at its word space so the final R is
   never clipped at phone widths; the other three labels are unchanged. */
.trackbtn.t-insp b{white-space:normal}
.trackbtn span{display:none}
.trackbar{padding-top:12px}
.hero{padding-top:12px}
.hero .lede{font-size:1.02rem;line-height:1.5}
.station-line{font-size:1rem;margin-bottom:8px}
}

/* Fresh-Eyes #2 V-S3-3: standalone door links carry a 44px target box. */
.doorlink{display:inline-flex;align-items:center;min-height:44px;padding:6px 2px;font-weight:600}

/* P5 focus cure (Sweep #2 S2-3): the ember-d ring measures 1.40:1 on the
   ember app bar and 1.67:1 on ink chrome. Focusable elements inside dark
   containers get the on-dark ring token - white measures 6.51:1 on ember,
   9.12:1 on ember-d, 13.99:1 on the darkest strip stop, 15.26:1 on ink
   (all >= 3:1). The ring on light grounds stays ember-d (unchanged). */
:root{--focus-ondark:#FFFFFF}
header :focus-visible,footer :focus-visible,.appbar :focus-visible,.hero :focus-visible,.strip :focus-visible,.bottomnav :focus-visible,.dev-ribbon :focus-visible{outline-color:var(--focus-ondark)}

/* === Cadet/Header pass (Oct 19, 2026) — E3 phase 2 ===
   The app top brand centers (mark over wordmark), per the digestion's
   phase-2 app line. The appbar and bottom nav keep their geometry;
   the member door in both navs now reads "My Career". */
header{flex-direction:column;align-items:center;text-align:center}
header nav{display:flex;flex-wrap:wrap;gap:2px 14px;justify-content:center}

/* === Keep-Going Wave Lane 3 F7 (Oct 19, 2026): app bottom-nav crowding
   at phone widths — rendered, the "Departments" label spilled ~29px past
   its slot into the next, and "My Career" ran ~15px past the viewport's
   right edge at 390px (and ~15px at 360px). At ≤480px only, the labels
   take a smaller vw scale (2.05vw — the scale at which the widest label,
   "My Career", ends inside the viewport at both 360px and 390px, with
   "Departments" ending clear of the next label) and lose their side
   padding. All six items stay reachable; nothing else in the bar moves. */
@media (max-width:480px){
  .bottomnav a{font-size:clamp(.45rem,2.05vw,.72rem);padding-left:0;padding-right:0;letter-spacing:-.01em}
}

/* Lane E1 (Phase 2, Oct 20, 2026): AM3 mark swap + emblem placements */
header img.mark-pair{width:27px;height:56px;flex:none}
.passport-art{background:#101214;border-radius:12px;padding:18px;margin:18px 0 6px;text-align:center;max-width:640px}
.passport-art img{width:min(560px,100%);height:auto}

/* === CARBON EMBER HOUSE — Oct 21, 2026 =================================
   Eric's palette extension ("I love the new website color. Do it for
   the website and app."): the beefed V4 Carbon Ember scheme becomes
   the house. Token values flipped in the :root line at the head of
   this file; this block carries the treatment — grounds, plates,
   pockets, the stamp layer, feedback and note families — per surface.
   Map + rationale: files/Design Exploration - Pricing Block -
   2026-10-21/Palette Map - Carbon Ember House - 2026-10-21.md
   Restraint law: the weave lives only on plates (header, hero,
   footer, the pricing card); panels are near-solid pockets; body
   copy never sits on the weave; ember is a FILL on carbon, never
   text (2.85:1) — its lit form #F0765B is the text ember (7.02:1).
   All pairs computed AA: heads 15.31–16.31, body 11.47–12.22,
   muted 7.15–7.62, links 6.58–7.02, price 11.27–12.01.
   This block is shared verbatim by the site and app stylesheets
   (ports of one design system); selectors a tree does not use are
   inert there. */
:root {
  --ink-hi: #ECE9E2; --ember-lit: #F0765B; --amber-lit: #F2B544;
  --price: #FFBE55; --green-lit: #7FBF7A;
  --plate: #0C0C0F; --plate-hi: #23252C; --field: #101116;
  --pocket: linear-gradient(180deg, rgba(24, 25, 31, 0.93), rgba(17, 18, 22, 0.945));
  --weave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cdefs%3E%3ClinearGradient id='gv' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%230b0c0f'/%3E%3Cstop offset='.3' stop-color='%2322242a'/%3E%3Cstop offset='.52' stop-color='%232b2d33'/%3E%3Cstop offset='.74' stop-color='%2318191d'/%3E%3Cstop offset='1' stop-color='%230a0a0c'/%3E%3C/linearGradient%3E%3ClinearGradient id='gv2' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%230a0a0c'/%3E%3Cstop offset='.26' stop-color='%2318191d'/%3E%3Cstop offset='.48' stop-color='%232b2d33'/%3E%3Cstop offset='.78' stop-color='%23222429'/%3E%3Cstop offset='1' stop-color='%230b0c0f'/%3E%3C/linearGradient%3E%3ClinearGradient id='gh' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%230b0c0f'/%3E%3Cstop offset='.3' stop-color='%2322242a'/%3E%3Cstop offset='.52' stop-color='%232b2d33'/%3E%3Cstop offset='.74' stop-color='%2318191d'/%3E%3Cstop offset='1' stop-color='%230a0a0c'/%3E%3C/linearGradient%3E%3ClinearGradient id='gh2' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%230a0a0c'/%3E%3Cstop offset='.26' stop-color='%2318191d'/%3E%3Cstop offset='.48' stop-color='%232b2d33'/%3E%3Cstop offset='.78' stop-color='%23222429'/%3E%3Cstop offset='1' stop-color='%230b0c0f'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='18' height='18' fill='%23101215'/%3E%3Crect x='0' y='0' width='9' height='9' fill='url(%23gv)'/%3E%3Crect x='9' y='0' width='9' height='9' fill='url(%23gh)'/%3E%3Crect x='0' y='9' width='9' height='9' fill='url(%23gh2)'/%3E%3Crect x='9' y='9' width='9' height='9' fill='url(%23gv2)'/%3E%3Cpath d='M0 .4H18M0 9.4H18M.4 0V18M9.4 0V18' stroke='%23000000' stroke-opacity='.30' stroke-width='.8' fill='none'/%3E%3C/svg%3E");
  --font-stamp: "Saira Condensed", "Archivo", Arial, sans-serif;
}

/* --- grounds: the V4 sheet treatment (ember base glow, faint amber
   top glow, carbon base). No weave on the body. */
body {
  background:
    radial-gradient(1000px 460px at 50% calc(100% + 140px), rgba(179, 39, 30, 0.30), rgba(227, 155, 45, 0.09) 46%, rgba(10, 10, 12, 0) 72%),
    radial-gradient(900px 320px at 50% -120px, rgba(227, 155, 45, 0.08), rgba(10, 10, 12, 0) 70%),
    var(--paper);
}

/* --- text roles: heads to ink-hi; ember-lit is the text ember. */
h1, h2, h3, h4 { color: var(--ink-hi); }
a { color: var(--ember-lit); }
.strip, footer, .apppromo { color: var(--ink-soft); }
footer a { color: var(--ink-hi); }
table.data th { color: var(--ink-hi); }
.triadline { color: var(--ember-lit); }
.doorindex a, .m1, .door b, .game h3 { color: var(--ink-hi); }

/* --- the stamp layer: Saira Condensed where the house stamps data. */
h1, section h1, section h2 { font-family: var(--font-stamp); font-weight: 800; letter-spacing: 0.02em; }
.card .price, .tier .tierprice, .calc-out .big, .score-big {
  font-family: var(--font-stamp); color: var(--price);
}
.timer { font-family: var(--font-stamp); color: var(--amber-lit); }
.trackbtn b { font-family: var(--font-stamp); font-weight: 700; letter-spacing: 0.06em; }
.strip span b, .strip b { color: var(--price); }
.eyebrow { color: var(--ember-lit); font-family: var(--font-stamp); font-size: 0.95rem; letter-spacing: 0.14em; }

/* --- chrome plates: the footer carries the weave under one
   diagonal light pass, exactly as the V4 card does. The header
   carried it until Oct 21, 2026 — its band is solid black now
   (see the rule below). */
header {
  /* HEADER BLACK BOX (Eric, Oct 21, 2026): the header band sits on
     solid black; no weave behind the header elements. The weave
     stays on the footer and the plates. */
  background-color: #000000;
  background-image: none;
}
footer {
  background-color: var(--plate);
  background-image:
    linear-gradient(112deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 40%),
    var(--weave);
  background-size: auto, 18px 18px;
}

/* --- hero: a carbon plate like the V4 card. */
.hero {
  background:
    radial-gradient(125% 52% at 50% 110%, rgba(179, 39, 30, 0.34), rgba(227, 155, 45, 0.11) 45%, rgba(12, 12, 15, 0) 72%),
    radial-gradient(130% 95% at 50% 0%, rgba(12, 12, 15, 0) 58%, rgba(0, 0, 0, 0.34) 100%),
    linear-gradient(112deg, rgba(255, 255, 255, 0.042) 0%, rgba(255, 255, 255, 0) 34%, rgba(255, 255, 255, 0.024) 58%, rgba(255, 255, 255, 0) 84%),
    var(--weave),
    var(--plate);
  background-size: auto, auto, auto, 18px 18px, auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* --- pockets: panels are machined pockets. */
.card, .game, .qotd, .mini, .fc-pick, .fc-face, .flashcard,
.installcard, .labcard, .labmodel, .prac-edition, .prac-framing,
.missionband, .door, table.data {
  background: var(--pocket);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -1px 0 rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.4);
}
.fc-back { background: var(--pocket); }
table.data th, table.data td { border-color: var(--line); }

/* --- fields & controls. */
.chip, .optbtn, .shotbtn, .tei-order-row, .runmap-cell, .cert-check,
.labseg, .labmode,
form.capture input,
.tutor-panel select, .tutor-panel input[type="text"], .tutor-panel textarea,
.field input[type="text"], .field input[type="email"],
.field input[type="password"], .field input[type="date"],
.field input[type="number"], .field select,
.labfield input[type="text"], .labfield textarea {
  background: var(--field); border-color: var(--line); color: var(--ink-hi);
}
.chip[aria-current="page"], .optbtn.picked {
  background: rgba(240, 118, 91, 0.10); border-color: var(--ember-lit); color: var(--ink-hi);
}
.labseg.on { border-color: var(--ember-lit); color: var(--ink-hi); }
.runmap-cell.done { background: var(--plate-hi); border-color: var(--amber); color: var(--ink-hi); }
.runmap-cell.current { border-color: var(--ember-lit); color: var(--ember-lit); }
.timerbar, .domain-track { background: #23252c; }
.homecta { border-top-color: var(--line); }

/* --- feedback: dark tints under ink text; lit text forms. */
.optbtn.right, .tei-order-row.right { background: rgba(47, 107, 47, 0.16); border-color: #2f6b2f; }
.optbtn.wrong, .tei-order-row.wrong { background: rgba(179, 39, 30, 0.16); border-color: var(--ember-lit); }
.form-ok { background: rgba(47, 107, 47, 0.16); border-color: #2f6b2f; color: var(--green-lit); }
.form-error { background: rgba(179, 39, 30, 0.16); border-color: var(--ember-lit); color: var(--ember-lit); }
.fb-right, .pass-line.pass, .mission-done, .owned-line,
.card .save, .dmark.earned .mark-cap { color: var(--green-lit); }
.fb-wrong, .pass-line.fail { color: var(--ember-lit); }
.tei-order-num { color: var(--amber-lit); }

/* --- the amber-note family: cream washes become amber-tint pockets. */
.checkout-note, .tierline, .locknote, .notebox, .citechip, .instr-tag,
.tutor-qotd, .tutor-coach, .tutor-explain, .joinband, .joinvisitor, .join-band {
  background: linear-gradient(180deg, rgba(227, 155, 45, 0.10), rgba(227, 155, 45, 0.05));
  border-color: rgba(227, 155, 45, 0.45);
  color: var(--ink-soft);
}
.citechip, .instr-tag { color: var(--ink-hi); }
.certbar a[aria-current="page"] { background: rgba(227, 155, 45, 0.14); color: var(--amber-lit); }
.feature .iconchip { background: rgba(240, 118, 91, 0.10); border-color: rgba(240, 118, 91, 0.35); }
.tutor-tag { color: var(--ember-lit); }
/* A11Y 2026-10-23: recorded-demo turns sit on the dark page ground, not in the white .tutor-log; ink text measured 1.03:1 there. Scoped to .tutor-demo so the white log keeps ink. */
.tutor-demo .tutor-turn p{color:var(--body)}
.tutor-demo .tutor-turn .tutor-who{color:var(--ink-hi)}
.qotd-label { color: var(--amber-lit); font-family: var(--font-stamp); letter-spacing: 0.06em; }
.streakline { color: var(--amber-lit); }

/* --- badges: machined plate pills (free/plus/paid keep their fills). */
.badge { background: var(--plate-hi); color: var(--ink-hi); }

/* --- track buttons: ruled fills untouched (Direction C + signal
   colors); plate definition only. */
.trackbtn { border: 1px solid rgba(255, 255, 255, 0.10); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 3px rgba(0, 0, 0, 0.4); }

/* --- app bar (app tree): stays ember fire chrome; its download pill
   becomes a machined plate pill. */
.appbar .dl { background: var(--plate-hi); color: var(--ink-hi); }

/* --- Mental Health Briefing: the stand-down stands (no weave, no
   glows, no ember); its flat ground becomes a flat carbon pocket. */
body.quiet { background-image: none; color: var(--body); }
.quiet-corner .card { background: #101116; box-shadow: none; }

/* --- focus on carbon: ember-d measured 2.17:1 on the ground; amber
   is the house ring (8.47:1). The white on-dark ring inside dark
   chrome stands (it outranks this rule). */
:focus-visible { outline-color: var(--amber); }
html { scrollbar-color: #3a3d45 transparent; }
::-webkit-scrollbar-thumb { background: #3a3d45; border-color: var(--paper); }

/* --- print stays print: converted components print on paper. */
@media print {
  body { background: #fff !important; }
  .card, .game, .qotd, .mini, .fc-pick, .fc-face, .flashcard,
  .installcard, .labcard, .missionband, .door, table.data {
    background: #fff !important; background-image: none !important;
    color: #000 !important; box-shadow: none !important;
  }
}

/* FORK-6 change-marks — presentation only (Exam 66 2024 Delta Audit).
   M = citation moved in 2024 · N = new in 2024 · unmarked = verified identical. */
.dmarks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dmark { display: inline-flex; align-items: center; gap: 5px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.03em; padding: 2px 9px; border: 1px solid var(--line, #2B2D34); border-radius: 999px; background: var(--surface, #14151A); color: var(--price, #FFBE55); white-space: nowrap; }
.dmark b { font-weight: 800; }
.dlegend { font-size: 0.8rem; color: var(--slate, #9BA1AC); margin-top: 8px; }
