/* research/adding-fuel/style.css — the interactive paper. Same fonts and neutrals as the classic site;
   two measure colours that mean the same thing everywhere: amber = partisan phrases, teal = issue-polarized words. */
:root {
  --ink: #1f2328;
  --muted: #5b6169;
  --rule: #e7e3dc;
  --soft: #f6f4f0;
  --accent: #1f4e8c;          /* links and buttons only, never data */
  --bg: #ffffff;
  --p: #c98a0c;  --p-ink: #8a5600;  --p-wash: #fbefd6;
  --ip: #12858f; --ip-ink: #00616a; --ip-wash: #dcf0f1;
  --dot0: #c3c7cd;
  --pol: #b8327e; --pol-ink: #8f1f60;   /* political interventions, never a measure */
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--sans); }
a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 8px; background: #fff; padding: 6px 10px; z-index: 20; }
.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 1300px) { body { font-size: 18px; } .wrap { max-width: 900px; } .lede { font-size: 19.5px; } }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(34px, 6vw, 52px); letter-spacing: -0.015em; }
h2 { font-size: clamp(25px, 3.6vw, 32px); }
h3 { font-size: 20px; margin-top: 24px; }
h2 + p, h3 + p { margin-top: 12px; }
p { margin: 0 0 14px; }
.muted, .aside { color: var(--muted); }
.aside { font-size: 15px; }
.kicker { font: 600 13px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.lede { font-size: 18.5px; }

/* header (same look as the classic site) */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 18px; padding-bottom: 12px; max-width: 1080px; }
.site-title { font: 600 22px/1.2 var(--sans); color: var(--ink); text-decoration: none; }
.site-nav { display: flex; gap: 18px; font-size: 15.5px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }

/* opening */
.opening { padding-top: 56px; padding-bottom: 40px; }
.dek { font-size: 20px; line-height: 1.55; margin-top: 18px; }
.byline { color: var(--muted); font-size: 15.5px; }
.note { background: var(--soft); border-left: 3px solid var(--rule); padding: 14px 18px; margin: 18px 0; font-size: 15.5px; }
.note p:last-child { margin: 0; }
.howto { font-size: 15.5px; color: var(--muted); }

/* measure swatches and highlights */
.sw { display: inline-block; width: .75em; height: .75em; border-radius: 50%; margin-right: .4em; vertical-align: -.02em; }
.sw-p { background: var(--p); } .sw-ip { background: var(--ip); } .sw-0 { background: var(--dot0); }
mark { color: inherit; padding: 0 .12em; border-radius: 2px; }
mark.mk-p { background: var(--p-wash); box-shadow: inset 0 -2px 0 var(--p); }
mark.mk-ip { background: var(--ip-wash); box-shadow: inset 0 -2px 0 var(--ip); }

/* buttons */
button { font: inherit; }
.btn { background: var(--accent); color: #fff; border: 1.5px solid var(--accent); border-radius: 8px; padding: 9px 18px; font-weight: 600; font-size: 15.5px; cursor: pointer; min-height: 44px; }
.btn:disabled { opacity: .45; cursor: default; }
.btn-ghost { background: transparent; color: var(--accent); border-color: #c9d5e6; }
.measure-link, .linkish { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; font-size: inherit; }
.toggle { display: inline-flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 6px; }
.toggle .tg { border: 1.5px solid var(--rule); background: var(--bg); border-radius: 999px; padding: 7px 14px; cursor: pointer; font-size: 15px; min-height: 40px; color: var(--ink); }
.toggle .tg[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.toggle .tg-p[aria-pressed="true"] { background: var(--p-ink); border-color: var(--p-ink); }
.toggle .tg-ip[aria-pressed="true"] { background: var(--ip-ink); border-color: var(--ip-ink); }
.toggle.small .tg { font-size: 14px; padding: 5px 12px; min-height: 36px; }
.draw-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 10px 0 18px; }
.counter { font: 14px var(--mono); color: var(--muted); }

/* chapters */
/* each chapter gets at least a screen of its own, so the previous one keeps the screen until you scroll past it */
.chapter { padding-top: 9vh; padding-bottom: 5vh; min-height: 85vh; min-height: 85svh; }
.reveal-on .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal-on .reveal.in { opacity: 1; transform: none; }
.chapter-head { padding-top: 9vh; }
.chart-box { width: 100%; margin: 6px 0 10px; }
.chart-box svg, .es-svg { display: block; width: 100%; height: auto; overflow: visible; }
svg text { font: 12px var(--sans); fill: var(--muted); }
svg .t-ink { fill: var(--ink); }

/* scrollytelling: sticky figure beside (desktop) or under (phone) the step cards */
.scrolly-body { position: relative; max-width: 1320px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 32px; }
.sticky { position: sticky; top: 0; height: 100vh; height: 100svh; margin: 0; display: flex; flex-direction: column; justify-content: center; gap: 10px; grid-column: 2; grid-row: 1; min-width: 0; }
.steps { grid-column: 1; grid-row: 1; padding: 30vh 0 45vh; position: relative; z-index: 2; }
.step { background: var(--bg); border: 1px solid var(--rule); border-radius: 8px; padding: 16px 18px 4px; margin-bottom: 70vh; box-shadow: 0 2px 10px rgba(31,35,40,.06); font-size: 16.5px; }
.step:last-child { margin-bottom: 0; }
.step-key { border-color: var(--pol); }
@media (max-width: 820px) {
  /* phones: the graphic fills the top of the screen; step cards pass through the bottom third */
  .scrolly-body { display: block; padding: 0; }
  .sticky { height: 100vh; height: 100svh; top: 0; padding: 10px 12px 0; justify-content: flex-start; background: var(--bg); }
  .steps { margin-top: -45vh; padding: 0 16px 20vh; }
  .step { margin-bottom: 90vh; max-width: 520px; margin-left: auto; margin-right: auto; background: rgba(255,255,255,.97); }
  .uv-stage { height: 50vh; height: 50svh; }
  #lu-canvas { height: 56vh; height: 56svh; }
}
.clock { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.clock #uv-local { font: 700 clamp(26px, 4vw, 40px)/1 var(--mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.clock-sub { font: 14px var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.uv-stage { position: relative; width: 100%; height: min(62vh, 560px); }
#uv-canvas, #lu-canvas { display: block; width: 100%; height: 100%; }
#lu-canvas { height: min(80vh, 760px); }
.uv-marks { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.mark { position: absolute; width: 190px; font-size: 13px; line-height: 1.35; transition: opacity .3s; }
.mark .card { background: var(--bg); border: 1px solid var(--rule); border-radius: 6px; padding: 6px 8px; box-shadow: 0 1px 4px rgba(31,35,40,.08); }
.mark b { display: block; font: 600 11.5px/1.3 var(--mono); color: var(--ink); }
.mark .tag { font: 10.5px var(--mono); color: var(--muted); }
.mark.pol .card { border-color: var(--pol); }
.mark.pol b { color: var(--pol-ink); }
.legend[hidden] { display: none; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13.5px; color: var(--muted); margin: 0; }
.legend-unit { font-family: var(--mono); }
table.meters { border-collapse: collapse; width: 100%; font-size: 14px; margin: 4px 0 14px; font-variant-numeric: tabular-nums; }
.meters th, .meters td { padding: 4px 6px; border-bottom: 1px solid var(--rule); text-align: right; }
.meters thead th { font: 500 11px var(--mono); color: var(--muted); text-transform: uppercase; }
.meters tbody th { text-align: left; font-weight: 500; }
.meters .m-p td:last-child { color: var(--p-ink); font-weight: 700; }
.meters .m-ip td:last-child { color: var(--ip-ink); font-weight: 700; }
.tick { display: inline-block; width: 3px; height: 1em; background: var(--pol); vertical-align: -.15em; }
.lu-axis { font: 13px var(--mono); color: var(--muted); display: flex; justify-content: space-between; }


/* footnotes in the step cards: a small "i" that opens the note in place */
.fn { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 4px; border-radius: 50%; border: 1px solid var(--muted); background: var(--bg); color: var(--muted); font: italic 700 11px/1 Georgia, serif; vertical-align: 2px; cursor: pointer; padding: 0; }
.fn[aria-expanded="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.fn-pop { display: block; margin: 6px 0 2px; padding: 6px 10px; font-size: 14px; color: var(--muted); background: var(--soft); border-radius: 6px; }
.fn-pop[hidden] { display: none; }

/* tweet-style cards (real tweets in chapter 1, composites elsewhere; generic look, no platform logos or invented counts) */
.tw { margin: 0 0 14px; border: 1px solid #cfd9de; border-radius: 16px; padding: 12px 14px 8px; background: #fff; max-width: 520px; font-size: 15px; line-height: 1.45; color: #0f1419; }
.tw-top { display: flex; align-items: center; gap: 10px; }
.tw-av { flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-weight: 700; color: #fff; background: #8b98a5; }
.tw.news .tw-av { border-radius: 8px; background: #2b3640; }
.tw.pol .tw-av { background: #5c6670; }
.tw-av img { width: 40px; height: 40px; border-radius: inherit; object-fit: cover; display: block; }
.tw-id { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.tw-id b { font-size: 15px; }
.tw-id span { font-size: 13.5px; color: #536471; }
.tw-tag { margin-left: auto; align-self: flex-start; white-space: nowrap; font: 11px var(--mono); color: var(--muted); border: 1px solid var(--rule); border-radius: 4px; padding: 1px 6px; }
.tw-text { margin: 8px 0 6px; font-size: 16px; }
.tw.big .tw-text { font-size: 19px; }
.tw-time { font-size: 13.5px; color: #536471; padding-bottom: 8px; border-bottom: 1px solid #eff3f4; }
.tw-acts { display: flex; justify-content: space-between; max-width: 300px; padding-top: 6px; }
.tw-acts svg { width: 18px; height: 18px; fill: none; stroke: #536471; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tw.big { margin: 20px 0; }

/* chapter 2 result */
.result { border-top: 1px solid var(--rule); padding-top: 16px; margin-top: 8px; }
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.r-head { font-weight: 700; margin-bottom: 2px; }
.r-p { color: var(--p-ink); } .r-ip { color: var(--ip-ink); }
.r-num { font-size: 18px; }
@media (max-width: 600px) { .result-grid { grid-template-columns: 1fr; } }

/* chapter 3 */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 6px 0 10px; }
.pair.single { grid-template-columns: minmax(0, 1fr); }
.pair figure { margin: 0; min-width: 0; }
.pair figcaption { font-size: 14.5px; font-weight: 600; margin-bottom: 4px; }
@media (max-width: 600px) { .pair { grid-template-columns: 1fr; } }

/* chapter 4 */
.bars { margin: 16px 0 20px; display: grid; gap: 8px; }
.bars-title { font: 600 13px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 0; }
.bar { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr) 4.2em; gap: 10px; align-items: center; font-size: 15px; }
.bar b { font-variant-numeric: tabular-nums; text-align: right; }
.bar-track { height: 18px; background: var(--soft); border-radius: 3px; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 3px; }
.fill-p { background: var(--p); } .fill-ip { background: var(--ip); } .fill-0 { background: var(--dot0); }
.bar-fill.hollow { background: transparent; border: 2px solid currentColor; }
.fill-p.hollow { color: var(--p); } .fill-ip.hollow { color: var(--ip); }
@media (max-width: 600px) { .bar { grid-template-columns: minmax(0, 1fr) 4em; } .bar-track { grid-column: 1 / -1; grid-row: 2; } }

/* chapter 5 sandbox */
.objection { font-size: 24px; line-height: 1.35; margin: 18px 0; padding-left: 18px; border-left: 3px solid var(--ink); }
.sbx { border: 1px solid var(--rule); border-radius: 10px; padding: 16px 20px 4px; margin: 16px 0; }
.sbx h3 { margin: 0 0 8px; display: flex; align-items: center; gap: 10px; }
.sbx-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 15px; }
.sbx .legend { margin-bottom: 8px; }
.tick-news { display: inline-block; width: 2px; height: 12px; background: var(--muted); margin-right: 6px; }
.dot-pol { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--pol); margin-right: 6px; }
.dot-celeb { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink); margin-right: 6px; }
.select-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 15.5px; }
.select-row select { font: inherit; font-size: 15px; padding: 6px 8px; border-radius: 6px; border: 1px solid var(--rule); max-width: 100%; min-height: 40px; }
#strip-svg .row { transition: transform .6s ease; }

/* chapter 6 */
.type-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); margin: 18px 0 8px; }
.type-legend span { display: inline-flex; align-items: center; gap: 6px; }
.type-legend svg { width: 20px; height: 20px; }
.grid57 { display: grid; gap: 14px; }
.yr { display: grid; grid-template-columns: 3.2em minmax(0, 1fr); gap: 8px; align-items: center; }
.yr-label { font: 600 14px var(--mono); color: var(--muted); }
.yr-icons { display: flex; flex-wrap: wrap; gap: 4px; }
.ev { width: 40px; height: 40px; border: 1px solid transparent; border-radius: 8px; background: var(--soft); padding: 6px; cursor: pointer; color: var(--ink); }
.ev svg { width: 100%; height: 100%; display: block; }
.ev.hollow { background: var(--bg); border: 1.5px dashed var(--dot0); color: var(--muted); }
.ev[aria-pressed="true"] { border: 2px solid var(--accent); }
.picked { min-height: 4.6em; font-size: 15.5px; margin-top: 10px; border-left: 3px solid var(--rule); padding: 4px 0 4px 14px; }
.picked p { margin: 0; }
.pk-name { font-weight: 700; }
.pk-meta { color: var(--muted); }
.ev.lit { background: var(--ink); color: #fff; }
.ev.unlit { opacity: .45; }
.ev.na { opacity: .25; }
.trait-chips { display: grid; gap: 10px; margin: 14px 0 8px; }
.chip-head { font: 600 12px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--rule); background: var(--bg); border-radius: 999px; padding: 5px 12px; font-size: 14px; cursor: pointer; min-height: 34px; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.trait-read { min-height: 3.3em; margin: 6px 0 0; }
a.btn { display: inline-flex; align-items: center; text-decoration: none; }

/* footer */
.cite { border: 1px solid var(--rule); border-radius: 10px; padding: 4px 20px 2px; margin: 22px 0; }
.cite h3 { margin-top: 14px; }
.cite-text { font-size: 15px; overflow-wrap: anywhere; }
.end { padding-top: 40px; padding-bottom: 56px; border-top: 1px solid var(--rule); margin-top: 24px; font-size: 15.5px; }
.end h2 { font-size: 22px; margin-bottom: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* side quest */
dialog.dlg { border: 0; border-radius: 12px; padding: 0; width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 32px); box-shadow: 0 10px 40px rgba(0,0,0,.25); color: var(--ink); }
dialog.dlg::backdrop { background: rgba(31,35,40,.45); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 6px; position: sticky; top: 0; background: var(--bg); }
.dlg-head h2 { font-size: 22px; }
.dlg-close { border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; width: 44px; height: 44px; color: var(--ink); }
.dlg-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 20px 10px; border-bottom: 1px solid var(--rule); }
.dlg-tabs button { border: 1px solid var(--rule); background: var(--bg); border-radius: 999px; padding: 5px 12px; font-size: 14px; cursor: pointer; min-height: 36px; color: var(--ink); }
.dlg-tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.card { padding: 16px 20px 10px; font-size: 16px; }
.card h3 { margin: 0 0 10px; }
.card mark { display: inline-block; margin: 2px 2px 0 0; }
.example { font-size: 18px; }
.sources { font-size: 13.5px; color: var(--muted); padding-left: 1.3em; }
sup a { text-decoration: none; font-weight: 700; padding: 0 2px; }

@media (prefers-reduced-motion: reduce) {
  html:not(.motion-on) * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* chapter 3: lenses, not anger */
:root { --tr: #6d55b5; --tr-ink: #4b3591; --tr-wash: #ebe6f8; }
.bubbles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 18px 0 16px; }
@media (max-width: 680px) { .bubbles { grid-template-columns: 1fr; } }
.bub { display: grid; gap: 12px; justify-items: center; align-content: start; }
.bub .ball { width: 150px; height: 150px; border-radius: 50%; display: grid; place-content: center; text-align: center; padding: 14px; border: 2px dashed var(--dot0); background: var(--soft); color: var(--muted); }
.bub .ball b { font-size: 17px; line-height: 1.2; color: var(--ink); }
.bub .ball span { font: 700 13px var(--mono); text-transform: uppercase; letter-spacing: .05em; margin-top: 6px; }
.bub.up .ball { border: 2px solid var(--tr); background: var(--tr-wash); color: var(--tr-ink); }
.bub .blk { border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px; display: grid; gap: 8px; font-size: 15px; width: 100%; background: #fff; align-content: start; }
.bub .blk p { margin: 0; }
.bub.up .blk { border-color: var(--tr); }
.bub .lab { font: 600 11.5px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.words { display: flex; flex-wrap: wrap; gap: 5px; }
.words span { font: 13px var(--mono); padding: 1px 7px; border-radius: 4px; background: var(--soft); border: 1px solid var(--rule); }
.takeaway { border-left: 3px solid var(--tr); background: var(--tr-wash); padding: 12px 16px; font-size: 18px; font-weight: 600; }
.bub-ic { width: 30px; height: 30px; margin: 0 auto 6px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* chapter 6: who changes */
.split { border: 1px solid var(--rule); border-radius: 10px; padding: 6px 20px 16px; margin: 18px 0; }
.split .toggle { margin: 10px 8px 0 0; }
.waffle-wrap { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 16px; }
@media (max-width: 640px) { .waffle-wrap { grid-template-columns: 1fr; } }
.waffle { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; max-width: 240px; margin-bottom: 10px; }
.waffle i { aspect-ratio: 1; border-radius: 3px; background: var(--dot0); transition: background .4s; }
.waffle i.on, .sw-on { background: var(--ink); }
.split .legend { flex-direction: column; }
#split-text { margin-top: 0; }
.est { display: grid; gap: 6px; }
.est-head { font: 600 12px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 0; }
.erow { display: grid; grid-template-columns: 11em minmax(0, 1fr) 3.5em; gap: 8px; align-items: center; font-size: 14.5px; }
.erow b { text-align: right; font-variant-numeric: tabular-nums; }
.erow svg { height: 20px; width: 100%; }
@media (max-width: 480px) { .erow { grid-template-columns: minmax(0, 1fr) 3.5em; } .erow svg { grid-column: 1 / -1; grid-row: 2; } }
.est .aside { font-size: 13.5px; margin: 4px 0 0; }

/* touch screens: hit targets of about 44 x 44 px without changing the look */
@media (pointer: coarse) {
  .fn { position: relative; }
  .fn::after { content: ""; position: absolute; inset: -13px; }
  .chip, .toggle .tg, .toggle.small .tg, .dlg-tabs button, .select-row select { min-height: 44px; }
  .ev { width: 44px; height: 44px; }
  .measure-link { padding: 10px 0; margin: -10px 0; }
}
.chip:focus-visible, .tg:focus-visible, .ev:focus-visible, .fn:focus-visible, [role="tab"]:focus-visible, .card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* review edits 16 Oct 2026: chapter menu (47), drop-downs (27, 32, 37, 45), phones (51) */
.chapnav-wrap { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--rule); }
.chapnav-in { max-width: 1200px; }
.chapnav { display: flex; gap: 12px; overflow-x: auto; white-space: nowrap; padding: 6px 0; font-size: 13.5px; }
.chapnav a { color: var(--muted); text-decoration: none; padding: 6px 2px; }
.chapnav a:hover { color: var(--ink); text-decoration: underline; }
.chapnav-bar { height: 3px; } .chapnav-bar i { display: block; width: 0; height: 100%; background: var(--accent); }
.sticky { top: 44px; height: calc(100vh - 44px); height: calc(100svh - 44px); }
details > summary { cursor: pointer; }
.kf { border: 1.5px solid var(--rule); border-radius: 8px; padding: 4px 14px; margin: 6px 0 14px; }
.kf summary { font-weight: 700; margin: 6px 0; }
details.lvl { margin: 10px 0; }
details.lvl > summary, .ctr-d > summary { font-weight: 600; color: var(--accent); margin: 6px 0; }
details.note.how > summary { margin: 0; }
details.note.how[open] > summary { margin-bottom: 8px; }
.ctr-d { margin: 4px 0 12px; font-size: 15px; }
.ctr { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 2px 12px; margin: 6px 0; }
.ctr dt { font-weight: 700; } .ctr dd { margin: 0; }
@media (max-width: 820px) { .step { margin-bottom: 55vh; } }
@media (max-width: 820px) and (max-height: 700px) { .step .tw .tw-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .step .tw .tw-acts { display: none; } }
