/* ==========================================================================
   Speech Assistance - shared stylesheet for the ten section pages.

   Deviation from BUILD-MANUAL section 1 (one self-contained file per page):
   this section is ten sibling pages that share one chrome, so the chrome lives
   here instead of being copied ten times. Subchapter pages stay self-contained
   as the manual requires. Tokens below are copied verbatim from the golden
   template; do not fork them.
   ========================================================================== */
:root{
  --navy:#0E1F33; --navy-deep:#091625; --navy-panel:#132A44; --navy-card:#10233B;
  --sky:#4FB8E7; --sky-soft:#9AD4F0;
  --hr-ink:#7FA3DD; --se-ink:#29ADE4;
  --sim-c1:#2F5D9E; --sim-c2:#00A0E2;
  --text:#E7F0F7; --text-soft:#A9BDCF;
  --line:rgba(79,184,231,.16); --stripe:rgba(255,255,255,.045);
  --radius:14px; --shadow:0 12px 32px rgba(4,12,22,.5);
  --ok:#48C79A; --warn:#E8B84B; --bad:#E2705F;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion: reduce){html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}}
html,body{overflow-x:hidden;max-width:100vw}
body{font-family:'Albert Sans',system-ui,sans-serif;background:var(--navy);color:var(--text);min-height:100vh}
button{font:inherit;color:inherit;background:none;border:none;cursor:pointer}
a{color:var(--sky);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%}
*{scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.16) transparent}
*::-webkit-scrollbar{width:5px;height:5px}
*::-webkit-scrollbar-track{background:transparent}
*::-webkit-scrollbar-thumb{background:rgba(255,255,255,.16);border-radius:99px}
*::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.3)}

/* ---------------------------------------------------------------- chrome --- */
.topbar{position:sticky;top:0;z-index:60;display:flex;align-items:center;gap:12px;
  padding:11px 20px;background:rgba(9,22,37,.94);backdrop-filter:blur(9px);
  border-bottom:1px solid var(--line);flex-wrap:wrap}
.brand{display:flex;align-items:baseline;gap:7px;white-space:nowrap}
.brand b{font-weight:800}.brand span{color:var(--sky);font-weight:600}
.crumbs{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--text-soft);min-width:0}
.crumbs a{color:var(--text-soft)}
.crumbs a:hover{color:var(--sky)}
.crumbs .sep{opacity:.5}
.crumbs b{color:var(--text);font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.signchip{font-family:'IBM Plex Mono',monospace;font-size:11px;color:var(--sky);
  background:rgba(79,184,231,.13);border:1px solid rgba(79,184,231,.35);padding:3px 10px;
  border-radius:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:52vw}
.credchip{margin-left:auto;font-family:'IBM Plex Mono',monospace;font-size:11px;color:var(--ok);
  background:rgba(72,199,154,.12);border:1px solid rgba(72,199,154,.4);padding:3px 10px;
  border-radius:6px;white-space:nowrap}
.wrap{max-width:1260px;margin:0 auto;padding:24px 20px 90px}
.cflag{display:inline-flex;width:18px;height:18px;border-radius:50%;overflow:hidden;flex:0 0 auto;
  background:#28466B;box-shadow:0 0 0 1px rgba(255,255,255,.22);vertical-align:middle}
.cflag img{width:100%;height:100%;object-fit:cover}
.cflag.big{width:34px;height:34px}

h1{font-size:clamp(24px,3.2vw,38px);font-weight:800;margin:6px 0 8px;letter-spacing:-.012em}
h2{font-size:20px;font-weight:800;margin:0 0 4px}
h3{font-size:15px;font-weight:700;margin:0 0 8px}
h4{font-size:13px;font-weight:700;margin:0 0 6px;color:var(--sky-soft)}
.outcome{font-family:'Source Serif 4',serif;font-style:italic;font-size:16px;color:var(--text-soft);
  max-width:730px;line-height:1.6}
.outcome mark{background:none;color:var(--sky);font-style:normal;font-weight:600}
.section-label{font-size:11.5px;letter-spacing:.2em;text-transform:uppercase;color:var(--sky);
  font-weight:700;margin:32px 0 12px}
p.lede{color:var(--text-soft);font-size:14.5px;line-height:1.6;max-width:770px}
.head{display:flex;gap:20px;align-items:flex-start;flex-wrap:wrap;padding-bottom:16px;
  border-bottom:1px solid var(--line)}

/* ----------------------------------------------------------------- tiles --- */
.tgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:13px;margin-top:20px}
@media(min-width:900px){.tgrid{grid-template-columns:repeat(5,1fr);gap:16px}}
.tile{position:relative;aspect-ratio:1/1;border-radius:var(--radius);overflow:hidden;
  border:1px solid var(--line);display:block;min-width:0;
  transition:transform .18s,border-color .18s,box-shadow .18s}
.tile:hover,.tile:focus-visible{transform:translateY(-3px);border-color:rgba(79,184,231,.55);
  box-shadow:0 14px 30px rgba(4,12,22,.55);outline:none;text-decoration:none}
.tile picture{display:block;width:100%;height:100%}
.tile img{width:100%;height:100%;object-fit:cover;display:block}
.tile::after{content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(9,22,37,.05),rgba(9,22,37,.44) 50%,rgba(9,22,37,.95))}
.tile .lab{position:absolute;left:12px;right:12px;bottom:10px;z-index:2}
.tile .num{font-family:'IBM Plex Mono',monospace;font-size:10px;letter-spacing:.16em;
  color:var(--sky-soft);font-weight:600}
.tile .nm{font-size:clamp(12.5px,1.4vw,17px);font-weight:800;line-height:1.15;margin-top:1px;
  text-shadow:0 2px 12px rgba(0,0,0,.7)}
.tile .badge{position:absolute;top:9px;right:10px;z-index:2;font-family:'IBM Plex Mono',monospace;
  font-size:9.5px;background:rgba(9,22,37,.74);border:1px solid var(--line);color:var(--sky-soft);
  padding:2px 6px;border-radius:5px}
/* In development: the photograph and the title still sell the idea, but the tile is
   inert. No hover lift, no pointer, a year chip instead of a badge, and a waitlist
   button in place of a link that would go nowhere. */
.tile.dev{cursor:default;filter:saturate(.35)}
.tile.dev:hover{transform:none;border-color:var(--line);box-shadow:none}
.tile.dev::after{background:linear-gradient(180deg,rgba(9,22,37,.5),rgba(9,22,37,.8) 45%,rgba(9,22,37,.97))}
.tile.dev .nm{color:var(--text-soft)}
.badge.year{color:var(--warn);border-color:rgba(232,184,75,.45);background:rgba(232,184,75,.12);
  font-weight:600}
.tile .notify{position:absolute;left:12px;right:12px;bottom:8px;z-index:3;opacity:0;
  transform:translateY(4px);transition:.18s;font-size:11.5px;font-weight:600;
  background:rgba(79,184,231,.2);border:1px solid rgba(79,184,231,.5);color:#fff;
  border-radius:8px;padding:5px 8px}
.tile.dev:hover .notify,.tile.dev:focus-within .notify{opacity:1;transform:none}
.tile.dev:hover .lab,.tile.dev:focus-within .lab{bottom:38px;transition:.18s}
.tile .notify.done{background:rgba(72,199,154,.18);border-color:rgba(72,199,154,.5);
  color:#A9E5CE;opacity:1;transform:none}
@media(hover:none){.tile .notify{opacity:1;transform:none}.tile.dev .lab{bottom:38px}}

/* --------------------------------------------------------------- surfaces -- */
.panel{background:var(--navy-card);border:1px solid var(--line);border-radius:var(--radius);
  padding:17px 17px 15px;margin-top:13px}
.panel.pad0{padding:0;overflow:hidden}
.panel.sub{background:var(--navy-panel)}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:15px}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}
.grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}
@media(max-width:880px){.grid2,.grid3,.grid4{grid-template-columns:1fr}}
.note{font-size:12.5px;color:var(--text-soft);line-height:1.55;background:var(--navy-panel);
  border:1px solid var(--line);border-radius:10px;padding:10px 12px;margin-top:10px}
.note.warn{border-color:rgba(232,184,75,.5);color:#F3D89A}
.note.bad{border-color:rgba(226,112,95,.55);color:#F2B3A8}
.note.ok{border-color:rgba(72,199,154,.45);color:#A9E5CE}
.note b{color:var(--text)}
.stat{background:var(--navy-panel);border:1px solid var(--line);border-radius:12px;padding:12px 14px}
.stat b{display:block;font-family:'IBM Plex Mono',monospace;font-size:23px;color:var(--sky);line-height:1.1}
.stat span{display:block;font-size:12.5px;color:var(--text-soft);margin-top:4px;line-height:1.45}

/* ----------------------------------------------------------------- forms --- */
.fld{margin-bottom:12px}
.fld:last-child{margin-bottom:0}
label.lb{display:block;font-size:12px;font-weight:600;color:var(--text);margin-bottom:5px}
label.lb .hint{font-weight:400;color:var(--text-soft)}
select,input[type=text],input[type=number],input[type=search],textarea,input[type=file]{
  width:100%;background:var(--navy-deep);color:var(--text);border:1px solid var(--line);
  border-radius:9px;padding:8px 10px;font:inherit;font-size:13.5px}
select:focus,input:focus,textarea:focus{outline:none;border-color:rgba(79,184,231,.55)}
textarea{min-height:58px;resize:vertical;line-height:1.5}
.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.row>.grow{flex:1 1 auto;min-width:0}
.chk{display:flex;gap:9px;align-items:flex-start;padding:6px 8px;border-radius:9px;cursor:pointer;
  transition:background .15s}
.chk:hover{background:rgba(79,184,231,.07)}
.chk input{margin-top:2px;accent-color:var(--sky);flex:0 0 auto;width:15px;height:15px}
.chk .t{font-size:13px;line-height:1.45}
.chk .t small{display:block;color:var(--text-soft);font-size:11.5px;margin-top:1px}
.pillrow{display:flex;gap:6px;flex-wrap:wrap}
.pill{font-size:12px;padding:5px 11px;border-radius:99px;border:1px solid var(--line);
  background:var(--navy-deep);color:var(--text-soft);cursor:pointer;transition:.15s}
.pill.on{background:rgba(79,184,231,.18);border-color:rgba(79,184,231,.6);color:#fff;font-weight:600}
.pill.add{border-style:dashed;color:var(--sky)}
.conv{font-family:'IBM Plex Mono',monospace;font-size:11.5px;color:var(--text-soft);margin-top:6px;
  line-height:1.7}
.conv b{color:var(--sky-soft);font-weight:500}
.other{margin-top:7px;display:none}
.other.on{display:block}
.mono{font-family:'IBM Plex Mono',monospace}
input[type=range]{width:100%;accent-color:var(--sky)}

.btn{display:inline-flex;align-items:center;gap:8px;background:rgba(79,184,231,.15);
  border:1px solid rgba(79,184,231,.45);color:var(--text);padding:9px 15px;border-radius:10px;
  font-size:13.5px;font-weight:600;transition:.15s}
.btn:hover{background:rgba(79,184,231,.28);text-decoration:none}
.btn.ghost{background:transparent;border-color:var(--line);color:var(--text-soft);font-weight:500}
.btn.ghost:hover{color:var(--text);border-color:rgba(79,184,231,.4)}
.btn.primary{background:linear-gradient(135deg,#1E6FA8,#0F4E7C);border-color:rgba(79,184,231,.6);
  font-weight:700;font-size:14.5px;padding:11px 18px;width:100%;justify-content:center}
.btn.primary:hover{background:linear-gradient(135deg,#2481C2,#125C91)}
.btn:disabled{opacity:.45;cursor:not-allowed}
.btnrow{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}

/* ---------------------------------------------------------------- tables --- */
.tw{overflow-x:auto;max-width:100%}
table.tb{width:100%;border-collapse:collapse;font-size:13px;min-width:520px}
table.tb th{text-align:left;font-size:10.5px;letter-spacing:.11em;text-transform:uppercase;
  color:var(--sky);font-weight:700;padding:9px 10px;border-bottom:1px solid var(--line);white-space:nowrap}
table.tb td{padding:9px 10px;border-bottom:1px solid rgba(255,255,255,.055);vertical-align:top}
table.tb tr:nth-child(even) td{background:var(--stripe)}
table.tb td.num,table.tb th.num{text-align:right;font-family:'IBM Plex Mono',monospace}
table.tb td.nw{white-space:nowrap}
.badge2{display:inline-block;font-family:'IBM Plex Mono',monospace;font-size:10.5px;padding:2px 7px;
  border-radius:5px;background:rgba(79,184,231,.14);border:1px solid var(--line);color:var(--sky-soft)}
.badge2.hr{border-color:rgba(127,163,221,.5);color:var(--hr-ink)}
.badge2.se{border-color:rgba(41,173,228,.5);color:var(--se-ink)}
.simchip{font-family:'IBM Plex Mono',monospace;font-size:11px;color:var(--ok)}

/* ---------------------------------------------------------------- speech --- */
.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);padding:0 4px;flex-wrap:wrap}
.tab{padding:8px 13px;font-size:13px;font-weight:600;color:var(--text-soft);
  border-bottom:2px solid transparent}
.tab.on{color:#fff;border-bottom-color:var(--sky)}
.speech{font-family:'Source Serif 4',serif;font-size:16.5px;line-height:1.76;padding:17px 19px;
  max-width:70ch}
.speech p{margin:0 0 14px}
.speech .sal{font-weight:600;font-style:italic}
.speech .pause{color:var(--sky);opacity:.55;font-family:'Albert Sans',sans-serif;font-size:12px;
  padding:0 3px;vertical-align:1px}
.speech .src{border-bottom:1px dashed rgba(79,184,231,.6);cursor:help}
.speech .src:hover{background:rgba(79,184,231,.12)}
.speech .hostline{color:var(--se-ink);font-style:italic}
.speech .toast{font-weight:600}
.speech.tele{background:#05101c;font-size:clamp(19px,2.4vw,27px);line-height:1.6}
.speech.tele .pause{font-size:15px}
.sbar{display:flex;gap:12px;flex-wrap:wrap;align-items:center;padding:10px 13px;
  border-top:1px solid var(--line);font-size:11.5px;color:var(--text-soft);
  font-family:'IBM Plex Mono',monospace}
.sbar b{color:var(--text);font-weight:500}

/* ------------------------------------------------------- generator layout -- */
.genwrap{display:grid;grid-template-columns:1fr 420px;gap:18px;align-items:start;margin-top:14px}
@media(max-width:1080px){.genwrap{grid-template-columns:1fr}}
.rail{position:sticky;top:64px}
@media(max-width:1080px){.rail{position:static}}
.budget .bbar{display:flex;height:24px;border-radius:8px;overflow:hidden;border:1px solid var(--line)}
.budget .bseg{display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:600;
  color:#08121e;overflow:hidden;white-space:nowrap;transition:flex-basis .3s}
.blegend{display:flex;gap:10px;flex-wrap:wrap;margin-top:7px;font-size:11px;color:var(--text-soft)}
.blegend i{display:inline-block;width:9px;height:9px;border-radius:3px;margin-right:4px}
details.acc{border:1px solid var(--line);border-radius:11px;margin-top:10px;background:var(--navy-card)}
details.acc>summary{cursor:pointer;padding:11px 14px;font-size:13.5px;font-weight:700;
  list-style:none;display:flex;align-items:center;gap:9px}
details.acc>summary::-webkit-details-marker{display:none}
details.acc>summary::before{content:"+";font-family:'IBM Plex Mono',monospace;color:var(--sky);
  font-weight:400;width:12px}
details.acc[open]>summary::before{content:"-"}
details.acc>summary .sum{margin-left:auto;font-size:11.5px;font-weight:400;color:var(--text-soft);
  font-family:'IBM Plex Mono',monospace;text-align:right}
details.acc .body{padding:2px 14px 14px}

footer{margin-top:48px;font-size:12px;color:var(--text-soft);border-top:1px solid var(--line);
  padding-top:15px;line-height:1.65}
.soonbadge{display:inline-block;font-size:10.5px;font-family:'IBM Plex Mono',monospace;
  color:var(--warn);border:1px solid rgba(232,184,75,.45);background:rgba(232,184,75,.1);
  padding:2px 8px;border-radius:5px;margin-left:8px;vertical-align:2px}
