/* Lights Out — handbook + emergency page components */


/* ---------- Handbook hero ---------- */
.status { flex: 1 1 320px; max-width: 460px; background: var(--panel); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.batt { display: flex; align-items: center; gap: 12px; }
.batt .cells { display: flex; gap: 3px; padding: 3px; border: 2px solid var(--ink); }
.batt .cells span { width: 12px; height: 18px; background: var(--cell-off); }
.batt .cells span.on { background: var(--t-red); }
.batt strong { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; }
.status p { color: var(--muted); font-size: 16px; }

.now-strip { background: var(--panel); border-top: 4px solid var(--t-red); }
.now-strip .wrap { padding-top: 22px; padding-bottom: 22px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.now-strip p { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.15; }
.now-strip p span { display: block; font-family: var(--body); font-weight: 400; font-size: 16px; color: var(--muted); }
.now-strip .acts { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Sticky chapter nav ---------- */
.chapnav {
  position: sticky; top: 0; z-index: 40;
  background: var(--header-bg);
  border-bottom: 1px solid var(--rule);
  padding-top: env(safe-area-inset-top);
}
.chapnav ul { list-style: none; margin: 0 auto; padding-top: 10px; padding-bottom: 10px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.chapnav ul::-webkit-scrollbar { display: none; }
.chapnav a {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; white-space: nowrap;
  border: 1px solid var(--rule); text-decoration: none; font-weight: 700; font-size: 15px; color: var(--ink);
}
.chapnav a:hover { border-color: var(--tone); color: var(--ink); }
.chapnav a .sq { width: 10px; height: 10px; background: var(--tone); flex: none; }
.chapnav a[aria-current="true"], .chapnav a[aria-current="page"] { background: var(--tone); border-color: var(--tone); color: var(--on-tone); }
.chapnav a[aria-current="true"] .sq, .chapnav a[aria-current="page"] .sq { background: var(--on-tone); }
.page-handbook { --header-h: 66px; }

/* ---------- Chapters ---------- */
.chap { padding-top: clamp(64px, 8vw, 104px); padding-bottom: clamp(24px, 4vw, 40px); border-top: 1px solid var(--rule); }
.chead { display: flex; align-items: flex-end; gap: 18px; margin-bottom: 18px; }
.chead .num { font-family: var(--stencil); font-weight: 900; font-size: clamp(64px, 9vw, 120px); line-height: .78; color: var(--tone); flex: none; }
.chead h1, .chead h2 { margin: 0; font-family: var(--stencil); font-weight: 900; font-size: clamp(44px, 6vw, 84px); line-height: .85; text-transform: uppercase; text-wrap: balance; }
.chap .lede { max-width: 62ch; margin-bottom: 36px; font-size: 19px; color: var(--muted); }

.chap h3 {
  font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3.4vw, 36px); line-height: 1.05;
  margin: 56px 0 14px; text-wrap: balance;
}
.chap h4 { font-weight: 900; font-stretch: 112%; font-size: 17px; line-height: 1.3; margin: 0 0 8px; }
.chap p { max-width: 68ch; margin: 0 0 14px; }
.chap p.muted { color: var(--muted); }
.chap .aside { margin-top: 14px; font-size: 16px; color: var(--muted); max-width: 72ch; }

/* Grid of cells */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.cell { background: var(--bg); padding: 22px 22px 24px; border-top: 4px solid var(--tone); min-width: 0; }
.cell p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.cell p + p { margin-top: 8px; }
.cell ol { margin: 10px 0 0; padding-left: 22px; font-size: 16px; line-height: 1.5; display: flex; flex-direction: column; gap: 7px; }
.cell ol li { padding-left: 4px; }
.cell ol li::marker { font-weight: 900; color: var(--tone); }
.cell ol + p { margin-top: 12px; }

/* Role cells with a name field */
.role input {
  width: 100%; margin-top: 12px; min-height: 44px; padding: 8px 12px;
  background: var(--panel); color: var(--ink); border: 1px solid var(--rule); border-radius: 0;
  font: inherit; font-size: 16px;
}
.role input::placeholder { color: var(--muted); opacity: .8; }
.role input:focus { outline: none; border-color: var(--tone); box-shadow: 0 0 0 3px var(--panel); }
.role label { display: block; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-top: 14px; }

/* Tags */
.tag { display: inline-block; padding: 3px 8px; font-weight: 900; font-stretch: 110%; font-size: 13px; letter-spacing: .02em; background: var(--tone, var(--t-red)); color: var(--on-tone); vertical-align: 2px; }
.tag.g { background: var(--t-green); } .tag.r { background: var(--t-red); } .tag.b { background: var(--t-blue); } .tag.a { background: var(--t-amber); }

/* Checklists */
.progress { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 15px; margin: 0 0 12px; font-variant-numeric: tabular-nums; }
.progress .bar { flex: 0 1 220px; height: 8px; background: var(--rule); }
.progress .bar span { display: block; height: 100%; width: 0; background: var(--tone); transition: width .4s cubic-bezier(.16, 1, .3, 1); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); column-gap: 40px; }
.checks li { border-bottom: 1px solid var(--rule); min-width: 0; }
.checks label { display: flex; gap: 14px; padding: 13px 0; cursor: pointer; line-height: 1.45; }
.checks input[type=checkbox] {
  -webkit-appearance: none; appearance: none; flex: none;
  width: 22px; height: 22px; margin: 1px 0 0; border: 2px solid var(--ink); border-radius: 0; background: transparent; cursor: pointer;
  display: grid; place-content: center;
}
.checks input[type=checkbox]::after { content: ""; width: 10px; height: 6px; border-left: 3px solid var(--on-tone); border-bottom: 3px solid var(--on-tone); transform: translateY(-2px) rotate(-45deg); opacity: 0; }
.checks input[type=checkbox]:checked { background: var(--tone); border-color: var(--tone); }
.checks input[type=checkbox]:checked::after { opacity: 1; }
.checks label span b { font-weight: 800; }
.checks label span i { font-style: normal; color: var(--muted); }
.checks input:checked + span { text-decoration: line-through; text-decoration-color: var(--tone); text-decoration-thickness: 2px; color: var(--muted); }

/* Tables */
.tw { overflow-x: auto; border: 1px solid var(--rule); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; min-width: 640px; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--rule); }
thead th { font-weight: 900; font-stretch: 112%; font-size: 14px; letter-spacing: .02em; background: var(--panel); }
tbody th { font-weight: 800; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td.n { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 700; }
.scroll-hint { display: none; font-size: 13px; color: var(--muted); margin: 8px 0 0; }

/* Notes */
.note { background: var(--panel); padding: 22px 24px; display: flex; gap: 18px; align-items: flex-start; margin: 24px 0; max-width: 900px; border-left: 0; }
.note svg { width: 26px; height: 26px; flex: none; stroke: var(--tone); fill: none; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.note p { margin: 0; }
.note p + p { margin-top: 8px; }

/* Ranked lists */
.ranked { list-style: none; margin: 0; padding: 0; }
.ranked > li { display: flex; gap: 22px; padding: 20px 0; border-top: 1px solid var(--rule); }
.ranked > li:last-child { border-bottom: 1px solid var(--rule); }
.ranked .rk { font-family: var(--stencil); font-weight: 900; font-size: 52px; line-height: .8; color: var(--tone); width: 44px; flex: none; }
.ranked h4 { font-size: 19px; }
.ranked p { color: var(--muted); margin: 0 0 10px; }
.meter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 14px; font-weight: 700; }
.meter .seg { display: flex; gap: 3px; }
.meter .seg span { width: 20px; height: 8px; background: var(--rule); }
.meter .seg span.on { background: var(--tone); }
.meter .good { color: var(--t-green); } .meter .meh { color: var(--muted); }

/* Split with figure */
.split { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.split > .main { flex: 999 1 540px; min-width: 0; }
.split > figure { flex: 1 1 280px; max-width: 380px; margin: 0; background: var(--panel); padding: 24px; }
figure svg text { font-family: Archivo, sans-serif; }
figcaption { margin-top: 14px; font-size: 15px; line-height: 1.5; color: var(--muted); }

/* DIY guides */
details.guide { border-top: 1px solid var(--rule); }
details.guide:last-of-type { border-bottom: 1px solid var(--rule); }
details.guide summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 18px 0; min-height: 44px; }
details.guide summary::-webkit-details-marker { display: none; }
details.guide summary h3 { margin: 0; font-size: clamp(24px, 2.8vw, 30px); flex: 1; }
details.guide summary .meta { font-size: 14px; font-weight: 700; color: var(--muted); text-align: right; }
details.guide summary .pm { width: 28px; height: 28px; flex: none; position: relative; }
details.guide summary .pm::before, details.guide summary .pm::after { content: ""; position: absolute; left: 4px; right: 4px; top: 13px; height: 3px; background: var(--tone); transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
details.guide summary .pm::after { transform: rotate(90deg); }
details.guide[open] summary .pm::after { transform: rotate(0); }
details.guide summary:hover h3 { color: var(--tone); }
.gbody { display: flex; flex-wrap: wrap; gap: 16px 40px; padding: 0 0 28px; }
.gbody .mats { flex: 1 1 240px; background: var(--panel); padding: 18px 20px; align-self: flex-start; }
.gbody .mats ul { margin: 6px 0 0; padding-left: 18px; font-size: 16px; }
.gbody .steps { flex: 999 1 420px; min-width: 0; margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 10px; }
.gbody .steps li { padding-left: 6px; max-width: 66ch; }
.gbody .steps li::marker { font-weight: 900; color: var(--tone); }

/* Myth vs fact */
.myth { display: flex; flex-direction: column; gap: 1px; background: var(--rule); border-block: 1px solid var(--rule); }
.myth > div { display: flex; flex-wrap: wrap; gap: 8px 32px; background: var(--bg); padding: 18px 0; }
.myth p { flex: 1 1 320px; margin: 0; }
.myth p:first-child { color: var(--muted); }

/* Fields */
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.fields label { display: flex; flex-direction: column; gap: 6px; font-weight: 800; font-size: 15px; }
.fields label span { font-weight: 400; color: var(--muted); font-size: 14px; }
.fields input {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--bg);
  border: 1px solid var(--rule-strong); border-radius: 0; padding: 12px 14px; min-height: 48px; width: 100%;
}
.fields input:focus { outline: none; border-color: var(--tone); box-shadow: 0 0 0 3px var(--panel); }
.fields input::placeholder { color: var(--muted); opacity: .75; }
.saved { font-size: 14px; color: var(--muted); margin-top: 10px; min-height: 22px; }

/* Barter tier list */
.tierlist { border-bottom: 1px solid var(--rule); }
.trow { display: flex; flex-wrap: wrap; border-top: 1px solid var(--rule); }
.trow .t { flex: 0 0 88px; font-family: var(--stencil); font-weight: 900; font-size: 64px; line-height: .8; padding: 20px 0; color: var(--tone); }
.trow .items { flex: 1 1 400px; padding: 18px 0; display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.trow .items span { padding: 8px 12px; background: var(--panel); font-weight: 700; font-size: 15px; }
.trow .why { flex: 1 1 100%; margin: -6px 0 18px 88px; color: var(--muted); font-size: 15px; max-width: 72ch; }

/* Scenario briefs */
.brief { border-top: 1px solid var(--rule); padding-top: 36px; padding-bottom: 36px; }
.brief:last-of-type { border-bottom: 1px solid var(--rule); }
.brief .bh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 16px; margin-bottom: 18px; }
.brief .bh h3 { margin: 0; font-family: var(--stencil); font-weight: 900; font-size: clamp(40px, 5vw, 60px); line-height: .85; text-transform: uppercase; color: var(--tone); }
.brief .bh .tag { background: var(--tone); }
.brief > p.muted { margin-bottom: 16px; }
.phases { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.phases > div { background: var(--bg); padding: 18px 20px 20px; min-width: 0; }
.phases h4 { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--tone); margin-bottom: 10px; }
.phases ul { margin: 0; padding-left: 18px; font-size: 16px; line-height: 1.5; display: flex; flex-direction: column; gap: 7px; }

/* Further reading */
.reading { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 40px; }
.reading div { border-top: 1px solid var(--rule); padding: 16px 0; }
.reading p { margin: 4px 0 0; color: var(--muted); font-size: 16px; }

/* Printables + about */
.print-card { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; background: var(--panel); padding: 28px; border-top: 4px solid var(--tone); }
.print-card > div { flex: 1 1 420px; min-width: 0; }
.print-card .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.print-card p { margin: 6px 0 0; color: var(--muted); }
.confirming { background: var(--t-red) !important; border-color: var(--t-red) !important; color: var(--on-tone) !important; }

.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: var(--bg); padding: 12px 18px; font-weight: 800; font-size: 15px; z-index: 60;
  transition: opacity .25s ease, transform .25s ease; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Emergency launcher (now.html) ---------- */
.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.lgrid button {
  min-height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 16px;
  border: 1px solid var(--rule-strong); border-radius: 0; background: var(--bg); color: var(--ink);
  font: inherit; font-weight: 900; font-stretch: 110%; font-size: 17px; line-height: 1.15; text-align: left; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.lgrid button .sq { width: 12px; height: 12px; background: var(--tone); flex: none; }
.lgrid button:hover { border-color: var(--tone); }
.lgrid button[aria-pressed="true"] { background: var(--tone); border-color: var(--tone); color: var(--on-tone); }
.lgrid button[aria-pressed="true"] .sq { background: var(--on-tone); }
.lgrid button:active { transform: scale(.98); }
.quick { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 20px 40px; padding: 28px; background: var(--panel); border-top: 6px solid var(--tone, var(--t-red)); }
.quick h2 { margin: 0; font-family: var(--stencil); font-weight: 900; font-size: clamp(44px, 6vw, 72px); line-height: .85; text-transform: uppercase; color: var(--tone); flex: 1 1 100%; }
.quick ol { list-style: none; margin: 0; padding: 0; flex: 999 1 420px; display: flex; flex-direction: column; counter-reset: q; }
.quick li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-weight: 700; font-size: 19px; line-height: 1.4; }
.quick li b { font-family: var(--stencil); font-weight: 900; font-size: 34px; line-height: .8; color: var(--tone); width: 22px; flex: none; }
.quick .acts { flex: 1 1 240px; display: flex; flex-direction: column; gap: 8px; }
.numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.numbers a { background: var(--bg); padding: 18px 20px; text-decoration: none; display: flex; flex-direction: column; gap: 4px; color: var(--ink); }
.numbers a:hover { background: var(--panel); color: var(--ink); }
.numbers b { font-family: var(--stencil); font-weight: 900; font-size: 48px; line-height: .85; font-variant-numeric: tabular-nums; color: var(--red); }
.numbers span { font-size: 15px; color: var(--muted); }
.now-section { padding-top: 24px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 24px; }
.now-section h2.h2 { font-size: clamp(40px, 5vw, 64px); }

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  .page-handbook { --header-h: 66px; }
  .status { max-width: none; }
  .now-strip p { font-size: 22px; }
  .now-strip .acts, .now-strip .acts .btn { width: 100%; }
  .chead { flex-direction: column; align-items: flex-start; gap: 6px; }
  .chap .lede { font-size: 17px; }
  .chap h3 { margin-top: 44px; }
  .checks { grid-template-columns: 1fr; }
  /* Tables become stacked cards on phones */
  .tw.stack { overflow: visible; border: 0; }
  .tw.stack table { min-width: 0; }
  .tw.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tw.stack tbody, .tw.stack tr, .tw.stack th, .tw.stack td { display: block; }
  .tw.stack tr { border: 1px solid var(--rule); border-top: 4px solid var(--tone); margin-bottom: 10px; padding: 14px 16px 6px; }
  .tw.stack tbody th { padding: 0 0 8px; border: 0; font-size: 18px; }
  .tw.stack td { padding: 0 0 10px; border: 0; }
  .tw.stack td[data-label]::before { content: attr(data-label); display: block; font-weight: 900; font-stretch: 110%; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  .tw.stack td.n { white-space: normal; }
  .tw.stack + .scroll-hint { display: none; }
  .numbers a:last-child:nth-child(odd) { grid-column: span 2; }
  .ranked > li { gap: 14px; }
  .ranked .rk { width: 32px; font-size: 44px; }
  .split > figure { max-width: none; }
  details.guide summary { flex-wrap: wrap; gap: 4px 12px; }
  details.guide summary h3 { flex: 1 1 calc(100% - 44px); }
  details.guide summary .meta { order: 3; flex: 1 1 100%; text-align: left; }
  details.guide summary .pm { order: 2; }
  .trow .t { flex-basis: 64px; font-size: 52px; }
  .trow .why { margin-left: 0; }
  .quick { padding: 22px 18px; }
  .quick li { font-size: 17px; }
  .lgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lgrid button { font-size: 15px; padding: 0 12px; gap: 10px; min-height: 60px; }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbers b { font-size: 40px; }
  .print-card { padding: 22px 18px; }
  .print-card .acts, .print-card .acts .btn { width: 100%; }
}


/* ---------- Chapter + scenario pages ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 18px; font-size: 13px; font-weight: 900; font-stretch: 110%; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.crumbs span[aria-hidden] { opacity: .6; }
.chap-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 56px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 16px; }
.pager a, .pager span.empty { background: var(--bg); padding: 22px 24px; text-decoration: none; display: flex; flex-direction: column; gap: 6px; color: var(--ink); min-width: 0; }
.pager a:hover { background: var(--panel); color: var(--ink); }
.pager .dir { font-size: 13px; font-weight: 900; font-stretch: 110%; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pager .t { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.05; }
.pager .t b { font-family: var(--stencil); font-weight: 900; color: var(--tone); margin-right: 8px; }
.pager .next { text-align: right; align-items: flex-end; }
.page-bottom { padding-bottom: 96px; }

.scen-hero { position: relative; overflow: hidden; background: var(--gobag); min-height: 440px; display: flex; align-items: flex-end; border-top: 6px solid var(--tone); }
.scen-hero.has-media { background: #0C120F; min-height: 560px; border-top: 0; }
.scen-hero .wrap { position: relative; padding-top: 88px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 18px; }
.scen-hero .crumbs, .scen-hero .crumbs a { color: var(--ink); margin: 0; }
.scen-hero h1 { margin: 0; font-family: var(--stencil); font-weight: 900; font-size: clamp(60px, 10vw, 150px); line-height: .8; text-transform: uppercase; text-wrap: balance; }
.scen-hero .tagline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: 19px; max-width: 760px; }
.scen-hero .tag { font-size: 14px; }
.scen-body { padding-top: 56px; display: flex; flex-direction: column; gap: 56px; }
.scen-body h2.h2 { font-size: clamp(40px, 5vw, 64px); margin-bottom: 18px; }
.scen-body .quick { margin-top: 0; }
.scen-body .brief { border: 0; padding: 0; }
.scen-body .brief .bh { display: none; }
.chapters.related { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.chapters.all-scen { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.scen-card .tg { grid-column: 2; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--tone); }
.hub-block { padding-top: 72px; display: flex; flex-direction: column; gap: 28px; }
.hub-block .h2 { font-size: clamp(44px, 6vw, 80px); }

@media (max-width: 760px) {
  .pager { grid-template-columns: 1fr; }
  .pager .next { text-align: left; align-items: flex-start; }
  .pager span.empty { display: none; }
  .pager .t { font-size: 24px; }
  .scen-hero { min-height: 380px; }
  .scen-hero.has-media { min-height: 480px; }
  .scen-hero .wrap { padding-bottom: 32px; }
  .scen-hero .tagline { font-size: 17px; }
  .chap-tools .btn { width: 100%; }
  .scen-body { gap: 44px; }
}

/* ---------- Print: paper, black ink, everything open ---------- */
@media print {
  :root, :root[data-theme] {
    --bg: #fff; --panel: #F0EEE8; --ink: #000; --muted: #333; --rule: #bbb; --rule-strong: #888;
    --red: #B02818; --t-green: #1B6E3E; --t-blue: #1A5F92; --t-amber: #845600; --t-red: #B02818; --on-tone: #fff; --cell-off: #ddd;
  }
  body { font-size: 11pt; }
  .site-header, .chapnav, .now-strip, .site-footer, .skip, .btn, .toast, .modes, .no-print, .pager, .chap-tools, .crumbs { display: none !important; }
  .chap { break-before: page; border-top: 0; padding-top: 0; }
  details.guide .gbody { display: flex !important; }
  details.guide summary .pm { display: none; }
  .tw { overflow: visible; border: 0; }
  table { min-width: 0; }
  .brief, .cell, .ranked > li, details.guide { break-inside: avoid; }
  a { text-decoration: none; }
}
.quick .acts .btn { padding: 0 16px; font-size: 16px; }

/* ---------- Disclaimer notice + page ---------- */
.notice { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0 0; padding: 14px 16px; border: 1px solid var(--rule-strong); max-width: 900px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 1px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.notice p { margin: 0; max-width: none; }
.notice b { color: var(--ink); font-weight: 800; }
.notice a { color: var(--ink); }
.chap .notice { margin: -16px 0 36px; }
.scen-body > .notice { margin: 0 0 -24px; }
.disc-body { max-width: 72ch; }
.disc-body h2 { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3vw, 32px); line-height: 1.1; margin: 40px 0 10px; }
.disc-body p { margin: 0 0 12px; }
.disclaimer .note { margin-top: 0; }
