/* /bonanza/ — the '77 C10 build guide. House identity, its own layout. */
:root {
  --bg: #101214; --panel: #171B1E; --panel-2: #1D2226; --line: #262C31; --line-soft: #20262A;
  --ink: #E8E6E1; --muted: #98A1A8; --faint: #5C636B;
  --crimson: #C33B2F; --crimson-mark: #D64A3D; --crimson-text: #E05648; --steel: #8FA3B5;
  --display: Oswald, "Avenir Next Condensed", "Arial Narrow", sans-serif;
  --body: "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --bar-h: 52px;
  --gut: 24px;
}
@media (max-width: 720px) { :root { --gut: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16.5px/1.6 var(--body); font-feature-settings: "kern"; }
a { color: var(--crimson-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #F07264; }
:focus-visible { outline: 2px solid var(--steel); outline-offset: 2px; border-radius: 2px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 12px; }
.skip:focus { left: 8px; }
kbd { font: 500 11px/1 var(--mono); color: var(--muted); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 3px 5px; background: var(--panel); }

/* ---- house top nav (copied from /homelab/lab.css) ---- */
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gut); }
.topnav {
  padding: 22px 0 14px; display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
}
.topnav a { text-decoration: none; color: var(--steel); }
.topnav a:hover, .topnav a:focus-visible { color: var(--crimson-text); }
.topnav .tn-home { color: var(--ink); }
.topnav .tn-home .dj { color: var(--crimson-text); }
.topnav .tn-links { display: flex; gap: 18px; flex-wrap: wrap; }
.topnav .tn-links a[aria-current="true"] { color: var(--crimson-text); border-bottom: 1px solid var(--crimson); padding-bottom: 2px; }

/* ---- the bar: sticky, always one tap from Systems and Search ---- */
.bar { position: sticky; top: 0; z-index: 40; background: rgba(16, 18, 20, .92); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bar-in { max-width: 1440px; margin: 0 auto; padding: 0 var(--gut); height: var(--bar-h); display: flex; align-items: center; gap: 14px; }
.bar-home { font: 600 17px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.bar-home span { color: var(--crimson-text); }
.bar-here { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; padding-left: 14px; border-left: 1px solid var(--line); }
.bar-menu, .bar-find {
  appearance: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 8px;
  height: 36px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; font: 500 14px/1 var(--body); cursor: pointer;
}
.bar-menu:hover, .bar-find:hover { border-color: var(--faint); background: var(--panel); }
.bar-menu { display: none; }
.bm-ico, .bm-ico::before, .bm-ico::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 1px; position: relative; }
.bm-ico::before, .bm-ico::after { content: ""; position: absolute; left: 0; }
.bm-ico::before { top: -5px; } .bm-ico::after { top: 5px; }
.bf-ico { width: 14px; height: 14px; border: 2px solid currentColor; border-radius: 50%; position: relative; flex: none; }
.bf-ico::after { content: ""; position: absolute; width: 2px; height: 6px; background: currentColor; right: -4px; bottom: -5px; transform: rotate(-45deg); border-radius: 1px; }
.bar-find { min-width: 240px; color: var(--muted); justify-content: flex-start; }
.bar-find kbd { margin-left: auto; }

/* ---- three-column layout ---- */
.layout { max-width: 1440px; margin: 0 auto; padding: 0 var(--gut); display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 48px; }
.layout.has-toc { grid-template-columns: 232px minmax(0, 1fr) 208px; }
.rail, .toc { position: sticky; top: calc(var(--bar-h) + 1px); align-self: start; max-height: calc(100vh - var(--bar-h) - 1px); overflow-y: auto; padding: 28px 0 48px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.main { min-width: 0; padding: 36px 0 96px; }
.main:focus { outline: none; }

/* rail */
.rail-hub { display: block; font: 600 15px/1.2 var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--ink); text-decoration: none; padding: 8px 12px; margin: 0 0 14px -12px; border-radius: 6px; }
.rail-hub[aria-current="page"], .rail-hub:hover { background: var(--panel); }
.rg { margin: 0 0 20px; }
.rg-h { margin: 0 0 6px; font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--steel); }
.rail ul { list-style: none; margin: 0; padding: 0; }
.rail li a { display: block; padding: 6px 12px; margin-left: -12px; color: var(--muted); text-decoration: none; font-size: 15px; line-height: 1.3; border-left: 2px solid transparent; border-radius: 0 6px 6px 0; }
.rail li a:hover { color: var(--ink); background: var(--panel); }
.rail li a[aria-current="page"] { color: var(--ink); border-left-color: var(--crimson); background: var(--panel); font-weight: 500; }

/* page toc */
.toc-h { margin: 0 0 10px; font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc li a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--muted); text-decoration: none; font-size: 13.5px; line-height: 1.35; }
.toc li.sub a { padding-left: 26px; font-size: 13px; color: var(--faint); }
.toc li a:hover { color: var(--ink); }
.toc li a.on { color: var(--ink); border-left-color: var(--steel); }

/* ---- document ---- */
.doc { max-width: 1060px; }
.doc-h, .pg-note, .sec-pick, .pager { max-width: 860px; }
.doc-h { margin: 0 0 28px; }
.doc-group { margin: 0 0 10px; font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--steel); }
.doc-h h1 { margin: 0; font: 600 clamp(34px, 5.2vw, 58px)/.98 var(--display); text-transform: uppercase; letter-spacing: .01em; text-wrap: balance; }
.doc-dek { margin: 16px 0 0; max-width: 64ch; font-size: 18.5px; line-height: 1.5; color: var(--muted); }
.pg-note { margin: 0 0 28px; padding: 12px 16px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); font-size: 14px; }
.pg-note p { margin: 0; }
.toc-inline { display: none; }

.sec { padding: 34px 0 0; margin: 34px 0 0; border-top: 1px solid var(--line); }
.sec > h2, .sec summary h2 { margin: 0 0 16px; font: 600 26px/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; position: relative; }
.anchor { position: absolute; left: -22px; color: var(--faint); text-decoration: none; opacity: 0; font-weight: 400; }
h2:hover .anchor, h3:hover .anchor, h4:hover .anchor { opacity: 1; }

/* the pick — the one loud panel on every page */
.sec-pick { border-top: 0; margin-top: 0; padding: 26px 28px 22px; background: var(--panel); border-radius: 12px; box-shadow: inset 3px 0 0 var(--crimson); }
.sec-pick > h2 { color: var(--crimson-text); font-size: 22px; margin-bottom: 14px; }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0 0 18px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.tiers .tc { background: var(--panel-2); padding: 10px 14px; }
.tiers dt { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--steel); margin-bottom: 6px; }
.tiers dd { margin: 0; font-size: 14px; line-height: 1.4; font-variant-numeric: tabular-nums; }

/* prose */
.prose { max-width: 72ch; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose li::marker { color: var(--faint); }
.prose strong { color: #F4F2EE; font-weight: 600; }
.prose em { color: var(--muted); }
.prose h3 { margin: 30px 0 12px; font: 600 19px/1.2 var(--body); position: relative; scroll-margin-top: calc(var(--bar-h) + 16px); }
.prose h4 { margin: 22px 0 8px; font: 600 16px/1.3 var(--body); color: var(--steel); position: relative; }
.prose code, .tbl code { overflow-wrap: anywhere; }
.prose code { font: 13.5px var(--mono); background: var(--panel-2); padding: 1px 5px; border-radius: 4px; }
.prose blockquote { margin: 0 0 14px; padding: 2px 0 2px 16px; border-left: 2px solid var(--steel); color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.sec-pick .prose { max-width: none; }
.sec-pick .prose p:first-child { font-size: 17.5px; }

a.ext { white-space: normal; }
a.ext .ext-mark { font-size: .78em; margin-left: 2px; text-decoration: none; display: inline-block; opacity: .75; }
a.ext-bare { font-size: .94em; }
.cite { display: inline-block; min-width: 18px; padding: 0 4px; margin: 0 1px; font: 500 11px/17px var(--mono); text-align: center; text-decoration: none; color: var(--steel); background: var(--panel-2); border: 1px solid var(--line); border-radius: 4px; vertical-align: 2px; }
.cite:hover { color: var(--ink); border-color: var(--faint); }

/* tables: wide content scrolls inside its own box, the page never does */
.tbl { margin: 16px 0 22px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); max-width: 100%; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.45; }
.tbl th { text-align: left; font: 500 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--steel); padding: 11px 12px; background: var(--panel-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 12px; border-top: 1px solid var(--line-soft); vertical-align: top; }
.tbl tbody tr:first-child td { border-top: 0; }
.tbl tbody tr:hover td { background: rgba(255, 255, 255, .015); }
.tbl td[data-k="name"] { font-weight: 600; color: #F4F2EE; min-width: 160px; }
.tbl td[data-k="price"] { font-variant-numeric: tabular-nums; min-width: 150px; max-width: 240px; }
.tbl td[data-k="price"]:not(.long) { white-space: nowrap; }
.tbl td[data-k="part"] { font: 13px/1.45 var(--mono); color: var(--muted); min-width: 110px; max-width: 170px; overflow-wrap: anywhere; }
.tbl td[data-k="txt"] { color: var(--muted); min-width: 180px; }
.tbl td[data-k="link"] a.ext { white-space: nowrap; }

/* option tables are ledger rows at every width: name/part/price/vendor on top, notes full width below */
.tbl-cards { border: 0; background: none; overflow: visible; border-radius: 0; }
.tbl-cards table, .tbl-cards tbody { display: block; width: 100%; }
.tbl-cards thead { display: none; }
.tbl-cards tr { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .75fr) minmax(0, 1.05fr) minmax(0, .95fr); grid-template-rows: auto 1fr; column-gap: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px 12px; margin: 0 0 10px; }
.tbl-cards tbody tr:hover td { background: none; }
.tbl-cards tr:hover { border-color: #313840; }
.tbl-cards td { display: block; border: 0 !important; padding: 0; min-width: 0 !important; max-width: none !important; }
.tbl-cards td[data-k="tier"] { grid-column: 1; grid-row: 1; padding-bottom: 6px; }
.tbl-cards td[data-k="name"] { grid-column: 1; grid-row: 2; font-size: 16px; line-height: 1.35; }
.tbl-cards td[data-k="part"] { grid-column: 2; grid-row: 1 / span 2; overflow-wrap: anywhere; }
.tbl-cards td[data-k="price"] { grid-column: 3; grid-row: 1 / span 2; white-space: normal !important; font-weight: 600; }
.tbl-cards td[data-k="link"] { grid-column: 4; grid-row: 1 / span 2; font-size: 13.5px; color: var(--muted); }
.tbl-cards td[data-k="txt"] { grid-column: 1 / -1; padding-top: 10px; margin-top: 10px; border-top: 1px solid var(--line-soft) !important; font-size: 14px; }
.tbl-cards td[data-k="txt"] + td[data-k="txt"] { margin-top: 0; border-top: 0 !important; padding-top: 6px; }
.tbl-cards td[data-k="part"]::before, .tbl-cards td[data-k="price"]::before, .tbl-cards td[data-k="txt"]::before { content: attr(data-label); display: block; font: 500 10.5px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 3px; font-weight: 500; }
.tbl-cards td[data-k="link"] a.ext { display: inline-flex; align-items: center; gap: 4px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; margin: 0 6px 6px 0; white-space: nowrap; font-size: 13.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.tbl-cards td[data-k="link"] a.ext:hover { border-color: var(--crimson); }
.tbl-cards td:empty { display: none; }
.tier { display: inline-block; padding: 2px 8px; border-radius: 999px; font: 600 11px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line); color: var(--muted); max-width: 100%; overflow-wrap: anywhere; }
.tier-better { color: var(--steel); border-color: rgba(143, 163, 181, .4); }
.tier-best { color: var(--crimson-text); border-color: rgba(195, 59, 47, .5); }

/* collapsibles: fact-check + sources */
.sec details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.sec details > summary::-webkit-details-marker { display: none; }
.sec details > summary h2 { margin: 0; }
.sec details > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: -4px 0 0 4px; transition: transform .15s; }
.sec details[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.sec details[open] > summary { margin-bottom: 16px; }
.sec-sources h2, .sec-verify h2 { color: var(--muted); font-size: 20px !important; }
.count { font: 500 12px/1 var(--mono); color: var(--faint); vertical-align: middle; margin-left: 4px; }
.srcs { font-size: 14px; color: var(--muted); padding-left: 28px; columns: 1; }
.srcs li { margin: 6px 0; word-break: break-word; scroll-margin-top: calc(var(--bar-h) + 24px); }
.srcs li.src-note { list-style: none; margin-left: -28px; color: var(--faint); }
.srcs li:target { color: var(--ink); background: var(--panel-2); border-radius: 4px; }

/* pager */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 56px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.pager a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.pager a:hover { border-color: var(--faint); background: var(--panel); }
.pager a span { display: block; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--steel); margin-bottom: 6px; font-weight: 500; }
.pager .nx { text-align: right; }

/* ---- finder (search) ---- */
.finder { position: fixed; inset: 0; z-index: 80; background: rgba(8, 9, 10, .72); display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; }
.finder[hidden] { display: none; }
.finder-box { width: min(680px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 80px rgba(0, 0, 0, .55); overflow: hidden; display: flex; flex-direction: column; max-height: 76vh; }
#finder-q { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); font: 400 18px/1 var(--body); padding: 18px 20px; outline: none; }
#finder-q::placeholder { color: var(--faint); }
.finder-res { list-style: none; margin: 0; padding: 6px; overflow-y: auto; flex: 1; }
.finder-res li a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 14px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.finder-res li a .ft { font-weight: 500; }
.finder-res mark { background: none; color: var(--crimson-text); }
.finder-res li a .fd { grid-column: 1; font-size: 13px; color: var(--muted); }
.finder-res li a .fp { grid-column: 2; grid-row: 1 / span 2; align-self: center; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--steel); text-align: right; }
.finder-res li[aria-selected="true"] a, .finder-res li a:hover { background: var(--panel-2); }
.finder-res .empty { padding: 18px 14px; color: var(--muted); }
.finder-foot { margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* ---- hub: the window sticker ---- */
.pg-hub .layout { grid-template-columns: 232px minmax(0, 1fr); }
.hub { max-width: 1080px; }
.hub-h { margin: 8px 0 34px; }
.hub-kicker { margin: 0 0 14px; font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--steel); }
.hub-h h1 { margin: 0; font: 700 clamp(44px, 8.4vw, 104px)/.9 var(--display); text-transform: uppercase; letter-spacing: -.005em; }
.hub-h h1 .yr { display: block; color: var(--crimson); font-size: .58em; letter-spacing: .04em; margin-bottom: .08em; }
.hub-h h1 .nm { color: var(--muted); }
.hub-dek { margin: 20px 0 0; max-width: 60ch; font-size: 19px; line-height: 1.5; color: var(--muted); }

.sticker { display: grid; grid-template-columns: 1.1fr 1fr; border: 1px solid var(--line); border-radius: 4px; outline: 1px solid var(--line-soft); outline-offset: 4px; background: var(--panel); margin: 0 0 54px; }
.st-col { padding: 22px 26px 24px; }
.st-col + .st-col { border-left: 1px solid var(--line); }
.st-col h3 { margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); font: 600 15px/1 var(--display); text-transform: uppercase; letter-spacing: .1em; }
.facts { margin: 0; display: grid; gap: 0; }
.facts > div { display: grid; grid-template-columns: 128px 1fr; gap: 12px; padding: 7px 0; border-bottom: 1px dotted var(--line); font-size: 14.5px; }
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--steel); font: 500 11.5px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.facts dd { margin: 0; }
.goals { margin: 0; padding: 0; list-style: none; font-size: 14.5px; }
.goals li { padding: 7px 0 7px 18px; border-bottom: 1px dotted var(--line); position: relative; }
.goals li:last-child { border-bottom: 0; }
.goals li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 6px; height: 6px; background: var(--steel); }

.hub h2 { margin: 0 0 18px; font: 600 30px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.first { margin: 0 0 54px; max-width: 860px; }
.first ol { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.first li { counter-increment: step; background: var(--panel); padding: 13px 18px 13px 58px; position: relative; font-size: 15px; }
.first li::before { content: counter(step); position: absolute; left: 18px; top: 11px; font: 600 20px/1 var(--display); color: var(--crimson-text); width: 24px; text-align: center; }
.first-more { margin: 12px 0 0; font-size: 14px; color: var(--faint); }
.recipes { margin: 0 0 56px; }
.recipe-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.recipe { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px 20px 18px; }
.recipe.rec { border-color: rgba(195, 59, 47, .55); box-shadow: inset 0 3px 0 var(--crimson); }
.r-tag { margin: 0 0 8px; font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--steel); }
.recipe.rec .r-tag { color: var(--crimson-text); }
.recipe h3 { margin: 0 0 10px; font: 600 22px/1.05 var(--display); text-transform: uppercase; }
.r-sum { margin: 0 0 14px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.r-specs { margin: 0 0 16px; font-size: 13.5px; }
.r-specs > div { display: grid; grid-template-columns: 84px 1fr; gap: 8px; padding: 5px 0; border-top: 1px solid var(--line-soft); }
.r-specs dt { color: var(--faint); font: 500 11px/1.7 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.r-specs dd { margin: 0; }
.r-price { margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--line); display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.rp-l { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.rp-v { font: 600 24px/1 var(--display); font-variant-numeric: tabular-nums; }
.r-cruise { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.fine { font-size: 13px; color: var(--faint); max-width: 80ch; margin: 14px 0 0; }

.sheet-dek { margin: -8px 0 18px; color: var(--muted); max-width: 70ch; }
.ss-wrap { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.ss { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ss thead th { text-align: left; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--steel); padding: 12px 16px; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.ss .sg th { text-align: left; padding: 18px 16px 8px; font: 600 14px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); background: var(--panel); border-top: 1px solid var(--line); }
.ss tbody:first-of-type .sg th { border-top: 0; }
.ss tbody th[scope="row"], .ss td { padding: 11px 16px; border-top: 1px solid var(--line-soft); vertical-align: top; text-align: left; }
.ss tbody th[scope="row"] { width: 26%; font-weight: 500; }
.ss tbody th[scope="row"] a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--faint); }
.ss tbody th[scope="row"] a:hover { color: var(--crimson-text); border-color: var(--crimson); }
.ss-pick { color: var(--muted); }
.ss-cost { width: 26%; font-variant-numeric: tabular-nums; color: var(--ink); white-space: normal; font-size: 13.5px; }
.ss-cost .sep { color: var(--faint); margin: 0 6px; }
.ss tbody tr:not(.sg):hover { background: rgba(255, 255, 255, .015); }

/* ---- responsive ---- */
@media (max-width: 1280px) {
  .layout.has-toc { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
  .toc { display: none; }
  .toc-inline { display: block; margin: 0 0 30px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
  .toc-inline summary { cursor: pointer; padding: 12px 16px; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--steel); list-style: none; display: flex; justify-content: space-between; }
  .toc-inline summary::-webkit-details-marker { display: none; }
  .toc-inline summary::after { content: "+"; font-size: 16px; line-height: .7; color: var(--muted); }
  .toc-inline[open] summary::after { content: "–"; }
  .toc-inline ol { list-style: none; margin: 0; padding: 0 16px 12px; columns: 2; column-gap: 24px; }
  .toc-inline li { break-inside: avoid; }
  .toc-inline li a { display: block; padding: 5px 0; color: var(--muted); text-decoration: none; font-size: 14px; }
  .toc-inline li.sub a { padding-left: 12px; font-size: 13.5px; color: var(--faint); }
}
@media (max-width: 980px) {
  .layout, .layout.has-toc, .pg-hub .layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .bar-menu { display: inline-flex; }
  .rail { position: fixed; z-index: 70; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); max-height: none; background: var(--bg); border-right: 1px solid var(--line); padding: 20px 20px 40px 32px; transform: translateX(-102%); transition: transform .22s ease; visibility: hidden; }
  body.rail-open .rail { transform: none; visibility: visible; box-shadow: 24px 0 60px rgba(0, 0, 0, .5); }
  body.rail-open::after { content: ""; position: fixed; inset: 0; z-index: 60; background: rgba(8, 9, 10, .6); }
  .rail li a { padding: 9px 12px; font-size: 16px; }
  .main { padding-top: 28px; }
  .recipe-row { grid-template-columns: minmax(0, 1fr); }
  .anchor { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .topnav { padding: 16px 0 12px; font-size: 11px; letter-spacing: .14em; }
  .topnav .tn-links { gap: 14px; }
  .bar-in { gap: 10px; }
  .bar-home { display: none; }
  .bar-here { border-left: 0; padding-left: 0; font-size: 15px; color: var(--ink); font-weight: 500; }
  .bar-menu .bm-txt { display: none; }
  .bar-menu { width: 40px; padding: 0; justify-content: center; }
  .bar-find { min-width: 0; width: 40px; padding: 0; justify-content: center; }
  .bar-find .bf-txt, .bar-find kbd { display: none; }
  .doc-dek { font-size: 17px; }
  .sec-pick { padding: 20px 18px 16px; margin-left: calc(var(--gut) * -.5); margin-right: calc(var(--gut) * -.5); }
  .tiers { grid-template-columns: minmax(0, 1fr); }
  .tiers .tc { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: baseline; }
  .tiers dt { margin: 0; }
  .toc-inline ol { columns: 1; }

  /* ledger rows stack on phones */
  .tbl-cards tr { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 14px 10px; }
  .tbl-cards td[data-k="tier"] { grid-column: 1 / -1; }
  .tbl-cards td[data-k="name"] { grid-column: 1; grid-row: 2; }
  .tbl-cards td[data-k="price"] { grid-column: 2; grid-row: 2; text-align: right; max-width: 44vw !important; font-size: 14px; }
  .tbl-cards td[data-k="price"]::before { display: none; }
  .tbl-cards td[data-k="price"].long { grid-column: 1 / -1; grid-row: auto; text-align: left; max-width: none !important; font-weight: 500; padding-top: 8px; }
  .tbl-cards td[data-k="price"].long::before { display: block; }
  .tbl-cards td[data-k="part"] { grid-column: 1 / -1; grid-row: auto; padding-top: 8px; font-size: 13.5px; }
  .tbl-cards td[data-k="link"] { grid-column: 1 / -1; grid-row: auto; text-align: left; padding-top: 10px; }
  .tbl-cards td[data-k="link"] a.ext { margin: 0 6px 6px 0; white-space: normal; }
  .sticker { grid-template-columns: minmax(0, 1fr); outline-offset: 3px; }
  .st-col { padding: 18px 18px 20px; }
  .st-col + .st-col { border-left: 0; border-top: 1px solid var(--line); }
  .facts > div { grid-template-columns: 104px 1fr; }
  .hub h2 { font-size: 26px; }
  .ss thead { display: none; }
  .ss, .ss tbody, .ss tr, .ss th, .ss td { display: block; width: auto !important; }
  .ss tbody tr:not(.sg) { padding: 12px 16px; border-top: 1px solid var(--line-soft); }
  .ss tbody th[scope="row"], .ss td { padding: 0; border: 0; }
  .ss tbody th[scope="row"] { font-size: 16px; margin-bottom: 4px; }
  .ss-pick { font-size: 14px; }
  .ss-cost { margin-top: 6px; font-size: 13px; color: var(--steel); }
  .ss .sg th { padding: 18px 16px 6px; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager .nx { text-align: left; }
  .finder { padding: 0; align-items: stretch; }
  .finder-box { max-height: none; height: 100%; border-radius: 0; border: 0; }
  .finder-foot { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* ---- print ---- */
@media print {
  :root { --bg: #fff; --panel: #fff; --panel-2: #fff; --line: #ccc; --line-soft: #ddd; --ink: #1A1C1E; --muted: #333; --faint: #666; --crimson: #A63426; --crimson-text: #A63426; --steel: #456F88; }
  body { background: #fff; color: #1A1C1E; font-size: 11pt; }
  .topnav, .bar, .rail, .toc, .toc-inline, .pager, .finder, .anchor, .skip { display: none !important; }
  .layout { display: block; padding: 0; }
  .main { padding: 0; }
  .sec details { display: block; }
  .sec details > :not(summary) { display: block; }
  .tbl { overflow: visible; border-color: #ccc; }
  a.ext::after { content: " (" attr(href) ")"; font-size: 8pt; color: #666; word-break: break-all; }
  .sec-pick { box-shadow: none; border: 1px solid #A63426; }
}
.tier-q { color: var(--muted); font-size: 13px; }
html, body { overflow-x: clip; }
.prose pre { max-width: 100%; overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font-size: 13px; line-height: 1.5; }
.prose pre code { background: none; padding: 0; overflow-wrap: normal; white-space: pre; }
