/* Sal's Kewl Korner: the redesigned site. One sheet for every page.
   Source: website/new-src/site.css. The block in the middle is carried over
   from the old front page by build.py (the inside of a product entry). */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body, h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video, canvas { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:root {
  --ground: #0A0D0B; --surface: #121713; --surface-2: #181E19; --ink: #E6EDE3; --ink-soft: #B9C4B6;
  --muted: #8A9786; --line: #222B21; --line-strong: #364332; --accent: #83DE38; --accent-hi: #A6F55E;
  --accent-ink: #0A1205; --channel: #6FA5D6; --gold: #E9B949; --fusion: #A99BFF; --fusion-2: #5FD4FF;
  --montano: #FF8A66; --code-bg: #0F140F; --shadow: 0 1px 0 rgba(0,0,0,.3); --lift: 0 12px 32px rgba(0,0,0,.42);
  --tile-hover: rgba(131,222,56,.07); --glow: rgba(131,222,56,.13);
  --font-display: "Bahnschrift", "DIN Alternate", "DIN Condensed", "Franklin Gothic Medium", "Arial Narrow", Impact, sans-serif;
  --font-body: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Mono", "Cascadia Code", Consolas, "SF Mono", Menlo, "DejaVu Sans Mono", monospace;
  --measure: 62ch; --gutter: clamp(1rem, 4vw, 3rem); --max: 80rem; --r: 12px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --ground: #EEF1EC; --surface: #FFFFFF; --surface-2: #F6F8F4; --ink: #0D120C; --ink-soft: #384236;
    --muted: #5A6657; --line: #D4DBD1; --line-strong: #B0BAAD; --accent: #2F7A12; --accent-hi: #3F9A19;
    --accent-ink: #FFFFFF; --channel: #1F5F91; --gold: #9A6B00; --fusion: #5B46D6; --fusion-2: #0B7FA8;
    --montano: #B5461F; --code-bg: #F1F4EE; --shadow: 0 1px 0 rgba(13,18,12,.05); --lift: 0 12px 28px rgba(13,18,12,.13);
    --tile-hover: rgba(47,122,18,.06); --glow: rgba(47,122,18,.09);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --ground: #EEF1EC; --surface: #FFFFFF; --surface-2: #F6F8F4; --ink: #0D120C; --ink-soft: #384236;
  --muted: #5A6657; --line: #D4DBD1; --line-strong: #B0BAAD; --accent: #2F7A12; --accent-hi: #3F9A19;
  --accent-ink: #FFFFFF; --channel: #1F5F91; --gold: #9A6B00; --fusion: #5B46D6; --fusion-2: #0B7FA8;
  --montano: #B5461F; --code-bg: #F1F4EE; --shadow: 0 1px 0 rgba(13,18,12,.05); --lift: 0 12px 28px rgba(13,18,12,.13);
  --tile-hover: rgba(47,122,18,.06); --glow: rgba(47,122,18,.09);
  color-scheme: light;
}

body { background: var(--ground); color: var(--ink); font-family: var(--font-body); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 4px; }
.shell { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: 0; }
kbd, .kbd { font: 500 .82em/1.5 var(--font-mono); background: var(--surface); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; padding: .05em .45em; white-space: nowrap; }
html:not(.squawky-on) [data-squawky-only] { display: none !important; }

.preview-bar { background: var(--gold); color: #1A1200; text-align: center; font-size: .85rem; padding: .3rem 1rem; font-weight: 600; }
.preview-bar a { color: inherit; }

/* ---------- buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px; padding: .62rem 1.15rem; font-weight: 650; font-size: .95rem; text-decoration: none; border: 1px solid transparent; background: none; white-space: nowrap; transition: transform .12s, background .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--accent); color: var(--accent-ink); }
.btn-solid:hover { background: var(--accent-hi); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-gold { background: var(--gold); color: #1A1200; }
.btn-fusion { background: linear-gradient(100deg, var(--fusion), var(--fusion-2)); color: #0B0A1C; }
.chip { border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-soft); border-radius: 999px; padding: .34rem .85rem; font-size: .87rem; text-align: left; transition: border-color .15s, color .15s, background .15s; }
.chip:hover { border-color: var(--accent); color: var(--accent); background: var(--tile-hover); }
.chip-open { border-style: dashed; }
.eyebrow { font: 600 .74rem/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.eyebrow-gold { color: var(--gold); } .eyebrow-fusion { color: var(--fusion); }
.lede { color: var(--ink-soft); font-size: 1.08rem; max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.3rem; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--ground) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 1.2rem; min-height: 3.6rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font: 700 1.12rem/1 var(--font-display); letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.brand b { color: var(--accent); font-weight: 700; }
.brand img { border-radius: 8px; }
.top-nav { display: flex; align-items: center; gap: .15rem; margin-left: .5rem; flex: 1; }
.top-link { background: none; border: 0; padding: .45rem .7rem; border-radius: 8px; text-decoration: none; font-size: .94rem; color: var(--ink-soft); display: inline-flex; align-items: center; gap: .35rem; }
.top-link:hover, .top-link[aria-current], .menu-btn[aria-expanded="true"] { color: var(--ink); background: var(--surface-2); }
.top-tools { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.ask-btn { display: inline-flex; align-items: center; gap: .45rem; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px; padding: .42rem .95rem .42rem .7rem; font-weight: 650; font-size: .9rem; }
.ask-btn:hover { background: var(--accent-hi); }
.theme-btn { background: none; border: 1px solid var(--line-strong); border-radius: 999px; width: 2.1rem; height: 2.1rem; display: grid; place-items: center; color: var(--ink-soft); }
.theme-btn:hover { color: var(--accent); border-color: var(--accent); }
.top-burger { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 8px; width: 2.4rem; height: 2.2rem; padding: .5rem .55rem; flex-direction: column; justify-content: space-between; margin-left: auto; }
.top-burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
.menu { position: static; }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line-strong); box-shadow: var(--lift); padding: 1.4rem var(--gutter) 1.6rem; display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 1.5rem 2.5rem; max-width: none; }
.menu-panel > * { max-width: 26rem; }
.menu-col-wide { max-width: none; }
.menu-two { columns: 2; column-gap: 2rem; }
.menu-panel a { display: block; padding: .28rem 0; text-decoration: none; color: var(--ink-soft); font-size: .94rem; break-inside: avoid; }
.menu-panel a:hover { color: var(--accent); }
.menu-head { font: 600 .72rem/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; margin-bottom: .45rem; color: var(--muted); }
.menu-head-2 { margin-top: 1.1rem; }
.maker-sals { color: var(--accent); } .maker-montano { color: var(--montano); } .maker-fusion { color: var(--fusion); }

@media (max-width: 62rem) {
  .top-burger { display: flex; order: 3; margin-left: 0; }
  .top-tools { order: 2; }
  .top-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line-strong); flex-direction: column; align-items: stretch; padding: .6rem var(--gutter) 1rem; margin: 0; max-height: calc(100vh - 4rem); overflow: auto; box-shadow: var(--lift); }
  .top.is-open .top-nav { display: flex; }
  .top-link { padding: .7rem .4rem; font-size: 1rem; }
  .menu-panel { position: static; grid-template-columns: 1fr; box-shadow: none; border: 0; padding: .2rem 0 .6rem .6rem; background: none; }
  .menu-two { columns: 1; }
  .ask-btn span { display: none; } .ask-btn { padding: .45rem .6rem; }
  .brand span { font-size: 1rem; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(2.2rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem); border-bottom: 1px solid var(--line);
  background: radial-gradient(60rem 26rem at 12% -10%, var(--glow), transparent 70%), radial-gradient(40rem 22rem at 100% 0%, color-mix(in srgb, var(--fusion) 13%, transparent), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero h1 { font: 700 clamp(2.5rem, 6.4vw, 4.6rem)/.98 var(--font-display); letter-spacing: .005em; text-transform: uppercase; margin: .7rem 0 1rem; }
.hero h1 em { font-style: normal; color: var(--accent); }
.askbar { display: flex; align-items: center; gap: .5rem; margin-top: 1.5rem; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; padding: .35rem .4rem .35rem 1rem; box-shadow: var(--lift); max-width: 40rem; transition: border-color .15s; }
.askbar:focus-within { border-color: var(--accent); }
.askbar-face { color: var(--accent); display: flex; }
.askbar input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; padding: .55rem .2rem; font-size: 1.02rem; }
.askbar input::placeholder { color: var(--muted); }
.ask-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .85rem; max-width: 42rem; }
.hero-fine { color: var(--muted); font-size: .88rem; margin-top: 1rem; max-width: 56ch; }
.hero-fine a { color: var(--accent); }
.quick-head { font: 600 .72rem/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.quick { position: relative; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: .85rem 2.4rem .9rem .95rem; display: flex; flex-direction: column; gap: .15rem; transition: border-color .15s, transform .12s, background .15s; }
.quick:hover { border-color: var(--accent); transform: translateY(-2px); background: var(--surface-2); }
.quick strong { font: 700 1.02rem/1.2 var(--font-display); letter-spacing: .02em; text-transform: uppercase; }
.quick span { color: var(--muted); font-size: .82rem; line-height: 1.35; }
.quick em { position: absolute; right: .8rem; top: .8rem; font: 600 .78rem var(--font-mono); font-style: normal; color: var(--accent); background: var(--tile-hover); border-radius: 999px; padding: .05rem .5rem; }
@media (max-width: 56rem) { .hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 30rem) { .askbar { border-radius: 16px; flex-wrap: wrap; padding: .5rem; } .askbar input { flex-basis: 70%; } .askbar .btn { width: 100%; justify-content: center; } .askbar-face { display: none; } }

/* ---------- bands ---------- */
.band { padding: clamp(2.2rem, 5vw, 4rem) 0; border-bottom: 1px solid var(--line); }
.band-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.band h2, .hub-group h2 { font: 700 clamp(1.5rem, 3.4vw, 2.3rem)/1.08 var(--font-display); letter-spacing: .01em; text-transform: uppercase; margin-top: .35rem; max-width: 24ch; }
.band-note { color: var(--muted); font-size: .92rem; }

/* ---------- catalog ---------- */
.filters { position: sticky; top: 3.6rem; z-index: 20; background: color-mix(in srgb, var(--ground) 92%, transparent); backdrop-filter: blur(10px); padding: .7rem 0 .8rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
.filter-row { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; }
.search { flex: 1 1 16rem; display: flex; align-items: center; gap: .5rem; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 .8rem; color: var(--muted); }
.search:focus-within { border-color: var(--accent); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; padding: .6rem 0; color: var(--ink); }
.segs { display: flex; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; padding: 3px; overflow-x: auto; max-width: 100%; }
.seg { background: none; border: 0; border-radius: 7px; padding: .42rem .8rem; font-size: .86rem; color: var(--ink-soft); white-space: nowrap; }
.seg.is-on { background: var(--accent); color: var(--accent-ink); font-weight: 650; }
.fchips { display: flex; gap: .4rem; margin-top: .65rem; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.fchip { background: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: .3rem .85rem; font-size: .86rem; color: var(--ink-soft); white-space: nowrap; }
.fchip:hover { border-color: var(--accent); color: var(--accent); }
.fchip.is-on { background: var(--ink); color: var(--ground); border-color: var(--ink); font-weight: 650; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(19.5rem, 1fr)); gap: .9rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; overflow: hidden; transition: border-color .15s, transform .12s, box-shadow .15s; }
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--lift); }
.card[data-maker="fusion"]:hover { border-color: var(--fusion); } .card[data-maker="montano"]:hover { border-color: var(--montano); } .card[data-maker="sals"]:hover { border-color: var(--accent); }
.card-main { display: flex; flex-direction: column; gap: .6rem; padding: 1rem 1.05rem .8rem; text-decoration: none; flex: 1; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 1.4rem; }
.maker { font: 600 .68rem/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.pill { font: 600 .68rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: .28rem .55rem; white-space: nowrap; }
.pill-new { background: var(--tile-hover); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.pill-soon { color: var(--channel); border: 1px solid color-mix(in srgb, var(--channel) 45%, transparent); }
.card-body { display: flex; gap: .9rem; align-items: flex-start; flex: 1; }
.card-copy { display: flex; flex-direction: column; gap: .35rem; flex: 1; min-width: 0; }
.card-name { font: 700 1.22rem/1.15 var(--font-display); letter-spacing: .015em; }
.card-blurb { color: var(--ink-soft); font-size: .9rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card-thumb { width: 5.2rem; height: 5.2rem; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); flex: none; background: var(--surface-2); }
.card-thumb.is-art { height: 6.9rem; }
.card-meta { display: flex; justify-content: space-between; gap: .6rem; align-items: baseline; font-size: .82rem; color: var(--muted); }
.card-price { color: var(--ink); font-weight: 650; white-space: nowrap; }
.card-links { display: flex; border-top: 1px solid var(--line); }
.card-links > * { flex: 1; text-align: center; padding: .55rem .4rem; font-size: .85rem; text-decoration: none; color: var(--ink-soft); background: none; border: 0; border-left: 1px solid var(--line); }
.card-links > :first-child { border-left: 0; }
.card-links > *:hover { color: var(--accent); background: var(--tile-hover); }
.card-go { font-weight: 650; color: var(--ink) !important; }
.cat-empty { text-align: center; padding: 2.5rem 1rem; border: 1px dashed var(--line-strong); border-radius: var(--r); color: var(--ink-soft); }
.cat-empty .btn { margin: 1rem .3rem 0; }

/* ---------- gold + fusion bands ---------- */
.band-gold { background: linear-gradient(120deg, color-mix(in srgb, var(--gold) 11%, var(--ground)), var(--ground) 60%); }
.gold-teaser { display: flex; gap: 2rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.gold-teaser > div:first-child { flex: 1 1 32rem; }
.gold-tag { border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); border-radius: 16px; padding: 1.2rem 1.6rem; display: flex; align-items: center; gap: 1rem; color: var(--ink-soft); font-size: .88rem; line-height: 1.35; background: var(--surface); }
.gold-tag-price { font: 700 3.4rem/1 var(--font-display); color: var(--gold); }
.band-fusion { background: radial-gradient(50rem 24rem at 90% 0%, color-mix(in srgb, var(--fusion) 16%, transparent), transparent 70%), radial-gradient(40rem 20rem at 0% 100%, color-mix(in srgb, var(--fusion-2) 9%, transparent), transparent 70%); }
.fusion-logo { border-radius: 14px; border: 1px solid var(--line-strong); }
.fusion-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 1.4rem; align-items: stretch; }
.fusion-menu { display: flex; gap: 1.2rem; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; padding: 1.1rem; text-decoration: none; align-items: center; transition: border-color .15s, transform .12s; }
.fusion-menu:hover { border-color: var(--fusion); transform: translateY(-2px); }
.fusion-menu img { width: 42%; max-width: 13rem; border-radius: 10px; }
.fusion-menu > span { display: flex; flex-direction: column; gap: .5rem; color: var(--ink-soft); font-size: .93rem; }
.fusion-menu strong { font: 700 1.9rem/1 var(--font-display); text-transform: uppercase; color: var(--ink); }
.fusion-menu em { font-style: normal; font-weight: 650; color: var(--fusion); }
.fusion-lede { color: var(--ink-soft); font-size: 1.05rem; }
.fusion-side .quick-head { margin-top: 1.5rem; }
.bundles { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.bundle { display: flex; gap: .7rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: .55rem; text-decoration: none; transition: border-color .15s; }
.bundle:hover { border-color: var(--fusion); }
.bundle img { width: 3.4rem; border-radius: 6px; flex: none; }
.bundle > span { display: flex; flex-direction: column; font-size: .8rem; color: var(--muted); line-height: 1.35; min-width: 0; }
.bundle strong { color: var(--ink); font-size: .93rem; }
.bundle span span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bundle em { font-style: normal; color: var(--fusion); font-weight: 650; }
.fusion-fine { color: var(--muted); font-size: .86rem; margin-top: 1.2rem; }
.fusion-fine a { color: var(--fusion); }
@media (max-width: 56rem) { .fusion-grid { grid-template-columns: 1fr; } }
@media (max-width: 34rem) { .bundles { grid-template-columns: 1fr; } .fusion-menu { flex-direction: column; align-items: flex-start; } .fusion-menu img { width: 60%; } }

/* ---------- support ---------- */
.support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: .9rem; }
.support-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem; display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }
.support-card h3 { font: 700 1.15rem/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .02em; display: flex; gap: .45rem; align-items: center; }
.support-card h3 svg { color: var(--accent); }
.support-card p { color: var(--ink-soft); font-size: .93rem; flex: 1; }
.support-more { margin-top: 1.2rem; border: 1px solid var(--line); border-radius: var(--r); padding: .2rem 1.1rem; background: var(--surface); }
.support-more summary { cursor: pointer; padding: .7rem 0; font-weight: 650; }
.support-more .features { margin: .4rem 0 1.1rem; }

/* ---------- one script on screen ---------- */
.js #view-sheet { display: none; }
.js body.show-sheet #view-sheet { display: block; }
.js body.show-sheet #view-home { display: none; }
.js body.show-sheet [data-view] { display: none; }
.js body.show-sheet [data-view].is-current { display: grid; }
.js body.show-sheet .gold-section[data-view].is-current { display: block; }
.sheet-bar { position: sticky; top: 3.6rem; z-index: 20; background: color-mix(in srgb, var(--ground) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
html:not(.js) .sheet-bar { display: none; }
.sheet-bar-in { display: flex; align-items: center; gap: .8rem 1.2rem; min-height: 3rem; flex-wrap: wrap; padding-block: .4rem; }
.sheet-back { text-decoration: none; font-weight: 650; color: var(--accent); white-space: nowrap; }
.sheet-switch select { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; padding: .38rem .6rem; max-width: 17rem; }
.sheet-nav { margin-left: auto; display: flex; gap: 1.2rem; font-size: .9rem; }
.sheet-nav a { text-decoration: none; color: var(--ink-soft); white-space: nowrap; max-width: 14rem; overflow: hidden; text-overflow: ellipsis; }
.sheet-nav a:hover { color: var(--accent); }
@media (max-width: 44rem) { .sheet-nav { display: none; } .sheet-switch { flex: 1; } .sheet-switch select { width: 100%; max-width: none; } }
.sheets { padding-block: clamp(1.5rem, 4vw, 3rem) 4rem; }
.entry { display: grid; grid-template-columns: minmax(0, 21rem) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; padding-block: 2rem; border-top: 1px solid var(--line); scroll-margin-top: 7.5rem; }
.js .entry { border-top: 0; padding-block: 0; }
.entry > div:first-child { position: sticky; top: 7.6rem; }
.entry h2 { font: 700 clamp(1.9rem, 4vw, 2.9rem)/1.02 var(--font-display); text-transform: uppercase; letter-spacing: .01em; margin: .5rem 0 1.1rem; }
.entry[data-maker="fusion"] .entry-kicker { color: var(--fusion); } .entry[data-maker="montano"] .entry-kicker { color: var(--montano); }
.entry-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.entry-ask { margin-top: 1.2rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: .85rem; display: flex; flex-direction: column; gap: .4rem; align-items: flex-start; }
.entry-ask-head { font: 600 .72rem/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: .15rem; }
.gold-ask { flex-direction: row; flex-wrap: wrap; align-items: center; margin-top: 1.5rem; }
.gold-ask .entry-ask-head { flex-basis: 100%; }
@media (max-width: 56rem) { .entry { grid-template-columns: 1fr; } .entry > div:first-child { position: static; } }

.entry-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: .7rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted); }
.slug {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--accent);
  margin-top: .55rem;
  word-break: break-all; }
.badge {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .18rem .45rem;
  border: 1px solid var(--channel);
  color: var(--channel);
  line-height: 1.4; }
.entry-lede {
  max-width: var(--measure);
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
  font-size: 1.02rem; }
.features {
  display: grid;
  gap: .55rem .5rem;
  margin-bottom: 1.6rem; }
@media (min-width: 40rem) {
.features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem 2rem; }
}
.features li {
  position: relative;
  padding-left: 1.05rem;
  font-size: .93rem;
  line-height: 1.5;
  color: var(--ink-soft); }
.features li::before {
  content: "";
  position: absolute;
  left: 0; top: .58em;
  width: 5px; height: 5px;
  background: var(--accent); }
.features strong { color: var(--ink); font-weight: 600; }
.features code, .entry-lede code { font-family: var(--font-mono); font-size: .86em; color: var(--ink); }
.spec {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: .4rem 1.25rem;
  margin-top: 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: .82rem; }
.spec dt {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: .2em; }
.spec dd {
  font-family: var(--font-mono);
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums; }
.spec .ok { color: var(--accent); }
.spec .pending { color: var(--channel); }
@media (max-width: 40rem) {
.spec { grid-template-columns: fit-content(42%) minmax(0, 1fr); }
}
.buy {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: 1.5rem;
  padding: .65rem 1.15rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease; }
.buy::after { content: "\2192"; }
.buy:hover, .buy:focus-visible { background: var(--accent); color: var(--surface); }
.buy.is-disabled {
  border-color: var(--line-strong);
  color: var(--muted);
  cursor: default;
  pointer-events: none; }
.buy.is-disabled::after { content: ""; }
.note {
  margin-top: 1.1rem;
  padding: .8rem .9rem;
  border-left: 2px solid var(--channel);
  background: var(--surface);
  font-size: .86rem;
  color: var(--muted);
  max-width: var(--measure); }
.note a { color: var(--accent); text-underline-offset: 2px; }
.promo-video {
  display: block;
  width: 100%;
  margin-top: .9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #000; }
.shots-head {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .9rem; }
.shots-head .badge { margin-left: .5rem; position: relative; top: -.05em; }
.reel { margin: 0 0 1.6rem; }
.reel-screen {
  position: relative;
  background: #05080C;
  border: 1px solid var(--line); }
.reel video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #05080C; }
.reel-go {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: radial-gradient(58% 58% at 50% 50%, rgba(5, 8, 12, .34), rgba(5, 8, 12, .06));
  color: #F2F6F0;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase; }
.reel-go:hover { background: radial-gradient(58% 58% at 50% 50%, rgba(5, 8, 12, .18), rgba(5, 8, 12, 0)); }
.reel-go i {
  position: relative;
  display: block;
  width: 3.4rem; height: 3.4rem;
  border-radius: 50%;
  background: rgba(10, 14, 20, .74);
  border: 1.5px solid var(--accent-hi); }
.reel-go i::after {
  content: "";
  position: absolute;
  top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: .62rem 0 .62rem 1rem;
  border-color: transparent transparent transparent var(--accent-hi); }
.reel-go:hover i { background: rgba(63, 154, 25, .22); }
.reel-go span { text-shadow: 0 1px 4px rgba(0, 0, 0, .9), 0 0 12px rgba(0, 0, 0, .7); }
.reel figcaption {
  margin-top: .6rem;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: var(--measure); }
.reel figcaption b { color: var(--ink-soft); font-weight: 600; }
.shots {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 46rem) and (max-width: 55.99rem) {
.shots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.shots-hint {
  margin-top: .55rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted); }
.shot {
  margin: 0;
  background: var(--surface);
  display: flex;
  flex-direction: column; }
.shot-frame {
  display: block;
  width: 100%;
  height: 8.5rem;
  padding: 0;
  border: 0;
  background: #070A07;
  cursor: zoom-in;
  overflow: hidden;
  position: relative; }
.shot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  transition: transform .3s ease; }
.shot-frame:hover img, .shot-frame:focus-visible img { transform: scale(1.04); }
.shot-fit .shot-frame img { object-fit: contain; object-position: center; }
.shot figcaption {
  padding: .5rem .6rem .6rem;
  font-family: var(--font-mono);
  font-size: .64rem;
  line-height: 1.4;
  letter-spacing: .05em;
  color: var(--muted); }
@media (min-width: 56rem) {
.shot-frame { height: 6.5rem; }
.shots-head { margin-top: 1.6rem; }
}
.shot.is-missing .shot-frame { cursor: default; }
.shot.is-missing .shot-frame img { display: none; }
.shot.is-missing .shot-frame::after {
  content: attr(data-fallback);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #5C6858;
  border: 1px dashed #26311F; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(4, 6, 4, .94); }
.lightbox[open], .lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border: 1px solid #26311F; }
.lightbox-inner { display: flex; flex-direction: column; gap: .8rem; align-items: center; max-width: 100%; }
.lightbox-cap {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: #AFBAAB;
  text-align: center;
  max-width: 70ch; }
.lightbox-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 2.4rem; height: 2.4rem;
  background: transparent;
  border: 1px solid #33402F;
  color: #E6EDE3;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer; }
.lightbox-close:hover { border-color: #8CE23F; color: #8CE23F; }
.formbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(4, 6, 4, .94);
  overflow-y: auto; }
.formbox.is-open { display: flex; }
.formbox-panel {
  position: relative;
  width: 100%;
  max-width: 44rem;
  background: var(--surface);
  border: 1px solid var(--line-strong); }
.formbox-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line); }
.formbox-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: .02em;
  color: var(--ink); }
.formbox-sub { margin-top: .25rem; font-size: .84rem; color: var(--muted); }
.formbox-close {
  flex: none;
  width: 2.1rem; height: 2.1rem;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer; }
.formbox-close:hover, .formbox-close:focus-visible { border-color: var(--accent); color: var(--accent); }
.formbox iframe { display: block; width: 100%; border: 0; }
.formbox-fallback { display: none; padding: 1.3rem 1.1rem; }
.formbox.is-blocked iframe { display: none; }
.formbox.is-blocked .formbox-fallback { display: block; }
.formbox-foot {
  padding: .85rem 1.1rem;
  border-top: 1px solid var(--line);
  font-size: .8rem;
  color: var(--muted); }
.formbox-foot a { color: var(--accent); }
.entry-doclink { margin-top: .6rem; font-size: .95rem; }
.entry-doclink a { color: var(--accent); text-underline-offset: 2px; }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
.buy { transition: none; }
}
.gold-section { padding: clamp(3rem, 7vw, 5.5rem) 0 0; }
.gold-card {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 2.75rem); }
.gold-head {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: .5rem 1.25rem; padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line); }
.gold-head h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.3rem); letter-spacing: .01em; }
.gold-price { font-family: var(--font-display); font-size: clamp(1.5rem, 3.5vw, 2rem); color: var(--accent); }
.gold-price .was { font-size: .52em; color: var(--muted); margin-right: .3em;
    text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: #B4503C; }
.gold-price small { display: block; font-family: var(--font-body); font-size: .8rem; color: var(--muted); letter-spacing: 0; }
.gold-lede { max-width: var(--measure); margin: 1.25rem 0 0; color: var(--ink-soft); }
.gold-points { display: grid; gap: 1.5rem; margin: 1.75rem 0 0; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.gold-points h3 { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .02em; text-transform: uppercase; color: var(--ink); }
.gold-points p { margin-top: .4rem; color: var(--muted); font-size: .93rem; }
.gold-points .lim { color: var(--accent); }
.gold-points .gold-dl { margin-top: .75rem; }
.gold-dl a { color: var(--accent); font-weight: 600; text-underline-offset: 2px; }
.gold-included { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.gold-included h3 { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .02em; text-transform: uppercase; }
.gold-list { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .9rem; }
.gold-list li {
  font-family: var(--font-mono); font-size: .8rem; color: var(--ink-soft);
  border: 1px solid var(--line); background: var(--tile-hover);
  padding: .3rem .6rem; }
.gold-note { margin-top: 1rem; font-size: .87rem; color: var(--muted); max-width: var(--measure); }
.gold-soon { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.gold-soon h3 { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .02em; text-transform: uppercase; color: var(--channel); }
.gold-soon > p { margin-top: .6rem; font-size: .9rem; color: var(--muted); max-width: var(--measure); }
.gold-soon-spec { margin-top: 1rem; }
.gold-lock { margin-top: 1.5rem; padding: .85rem 1rem; font-size: .92rem; line-height: 1.5;
  color: var(--ink-soft); border: 1px solid var(--line-strong); background: var(--tile-hover);
  max-width: var(--measure); }
.gold-cta { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.gold-cta .fine { font-size: .83rem; color: var(--muted); }
.wiz-band { background: var(--surface); border-bottom: 1px solid var(--line); padding: clamp(2rem, 5vw, 3.5rem) 0; }
.wiz-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.wiz-shot { margin: 0; border: 1px solid var(--line); background: #fff; border-radius: 4px; overflow: hidden; }
.wiz-shot img { display: block; width: 100%; height: auto; }
.wiz-shot figcaption { font-family: var(--font-mono); font-size: .72rem; color: #5A6657; padding: .45rem .7rem; border-top: 1px solid #D4DBD1; }
.wiz-kicker { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 .6rem; }
.wiz-band h2 { font-family: var(--font-display); font-size: clamp(1.9rem, 4.2vw, 2.9rem); line-height: 1.02; margin: 0 0 .9rem; color: var(--ink); }
.wiz-band .wiz-lede { color: var(--ink-soft); max-width: var(--measure); margin: 0 0 1.1rem; }
.wiz-points { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .55rem; }
.wiz-points li { padding-left: 1.4rem; position: relative; color: var(--ink-soft); }
.wiz-points li::before { content: ""; position: absolute; left: 0; top: .55em; width: .6rem; height: .6rem; background: var(--accent); }
.wiz-points strong { color: var(--ink); }
.wiz-free { display: inline-block; font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); border: 1px solid var(--accent); padding: 0 .35rem; margin-left: .3rem; vertical-align: .1em; }
.wiz-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.wiz-btn { font-family: var(--font-mono); font-size: .9rem; text-decoration: none; padding: .75rem 1.15rem; border: 1px solid var(--accent); }
.wiz-btn.solid { background: var(--accent); color: var(--surface); }
.wiz-btn.solid:hover, .wiz-btn.solid:focus-visible { background: var(--accent-hi); border-color: var(--accent-hi); }
.wiz-btn.ghost { color: var(--accent); }
.wiz-btn.ghost:hover, .wiz-btn.ghost:focus-visible { background: var(--tile-hover); }
@media (max-width: 820px) {
.wiz-grid { grid-template-columns: 1fr; }
}


/* ---------- adjustments to what was carried over ---------- */
.entry > div > .buy { display: none; }                 /* the action bar beside the facts replaces it */
.entry > div > .buy#cm-download { display: inline-flex; }
.shots:has(.shot-art) { display: block; }
.shot-art { max-width: 14rem; }
.shot-art .shot-frame { height: auto; background: none; border: 0; padding: 0; }
.shot-art img { width: 100%; height: auto; object-fit: contain; border-radius: 10px; }
.gold-section { scroll-margin-top: 7.5rem; padding: 0; border: 0; background: none; }
.wiz-band { border-bottom: 1px solid var(--line); }
.features li { break-inside: avoid; }
.lightbox, .formbox { z-index: 60; }

/* ---------- footer ---------- */
.foot { padding: 2.6rem 0 3.2rem; color: var(--muted); font-size: .9rem; background: var(--surface); border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 2rem; }
.foot h3 { font: 600 .72rem/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .6rem; }
.foot p { margin-bottom: .7rem; }
.foot a { color: var(--ink-soft); }
.foot div > a { display: block; text-decoration: none; padding: .16rem 0; }
.foot a:hover { color: var(--accent); }
.foot-brand { font: 700 1.2rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .03em; color: var(--ink); }
.foot-brand b { color: var(--accent); }
@media (max-width: 56rem) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 34rem) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- documentation hub ---------- */
.hub-hero { padding: clamp(2rem, 5vw, 3.6rem) 0 clamp(1.6rem, 4vw, 2.6rem); border-bottom: 1px solid var(--line); background: radial-gradient(50rem 22rem at 10% -20%, var(--glow), transparent 70%); }
.hub-hero h1 { font: 700 clamp(2.1rem, 5vw, 3.5rem)/1 var(--font-display); text-transform: uppercase; margin: .6rem 0 .9rem; }
.finder { display: flex; gap: .5rem; margin-top: 1.4rem; max-width: 44rem; }
.finder input { flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; padding: .8rem 1rem; font-size: 1.02rem; outline: 0; }
.finder input:focus { border-color: var(--accent); }
.hub-asks { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin-top: .9rem; color: var(--muted); font-size: .88rem; }
.hub-group { padding: 2rem 0 .4rem; }
.hub-group h2 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); margin-bottom: .9rem; max-width: none; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: .9rem; }
.hub-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.05rem 1.1rem; text-decoration: none; display: flex; flex-direction: column; gap: .4rem; transition: border-color .15s, transform .12s, box-shadow .15s; }
.hub-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--lift); }
.hub-partner .hub-card:hover { border-color: var(--fusion); }
.hub-kicker { font: 600 .68rem/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.hub-partner .hub-kicker { color: var(--fusion); }
.hub-card strong { font: 700 1.2rem/1.15 var(--font-display); letter-spacing: .015em; }
.hub-blurb { color: var(--ink-soft); font-size: .9rem; line-height: 1.45; flex: 1; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.hub-blurb code { font-family: var(--font-mono); font-size: .86em; }
.hub-foot { display: flex; justify-content: space-between; gap: .6rem; color: var(--muted); font-size: .8rem; margin-top: .3rem; align-items: center; }
.vstamp { font: 500 .74rem/1.4 var(--font-mono); color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: .12rem .6rem; white-space: nowrap; }
.hub-pdfs { display: flex; flex-wrap: wrap; gap: .5rem; padding-bottom: 3rem; }
.hub-pdfs a { border: 1px solid var(--line-strong); border-radius: 999px; padding: .3rem .85rem; font-size: .88rem; text-decoration: none; color: var(--ink-soft); }
.hub-pdfs a:hover { color: var(--accent); border-color: var(--accent); }
.hub-results { padding: 1.6rem 0 3rem; }
.res-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: .9rem; color: var(--muted); }
.res-head button { background: none; border: 0; color: var(--accent); text-decoration: underline; }
.res-ask { display: flex; gap: .9rem; align-items: center; background: var(--tile-hover); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: var(--r); padding: .85rem 1rem; margin-bottom: .9rem; width: 100%; text-align: left; color: var(--ink); }
.res-ask:hover { background: var(--glow); }
.res-ask svg { color: var(--accent); flex: none; width: 28px; height: 28px; }
.res-ask small { display: block; color: var(--muted); }
.res { display: block; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); text-decoration: none; margin-bottom: .55rem; }
.res:hover { border-color: var(--accent); }
.res-where { font: 600 .7rem/1.3 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--accent); }
.res-title { font-weight: 650; display: block; margin: .1rem 0 .2rem; }
.res-snip { color: var(--ink-soft); font-size: .9rem; }
.res mark { background: color-mix(in srgb, var(--accent) 30%, transparent); color: inherit; border-radius: 3px; padding: 0 .1em; }

/* ---------- a manual ---------- */
.doc-shell { display: grid; grid-template-columns: 15rem minmax(0, 1fr) 14.5rem; gap: clamp(1.2rem, 3vw, 2.8rem); align-items: start; padding-block: 1.6rem 4rem; }
.doc-nav, .toc { position: sticky; top: 4.6rem; max-height: calc(100vh - 5.4rem); overflow: auto; scrollbar-width: thin; font-size: .9rem; }
.doc-nav-toggle { display: none; }
.doc-find input { width: 100%; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 9px; padding: .5rem .7rem; outline: 0; }
.doc-find input:focus { border-color: var(--accent); }
.dn-home { display: block; margin: .8rem 0 .2rem; color: var(--accent); text-decoration: none; font-weight: 650; }
.dn-head { font: 600 .68rem/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 1.1rem 0 .3rem; }
.doc-nav-in > a:not(.dn-home) { display: block; padding: .28rem .7rem; border-left: 2px solid var(--line); text-decoration: none; color: var(--ink-soft); }
.doc-nav-in > a:not(.dn-home):hover { color: var(--accent); border-left-color: var(--accent); }
.doc-nav-in > a[aria-current] { color: var(--ink); border-left-color: var(--accent); font-weight: 650; background: var(--tile-hover); }
.toc h2 { font: 600 .68rem/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.toc ol { list-style: none; margin: .5rem 0 0; counter-reset: t; }
.toc a { display: block; padding: .24rem .7rem; border-left: 2px solid var(--line); text-decoration: none; color: var(--ink-soft); line-height: 1.35; }
.toc a:hover { color: var(--accent); }
.toc a.is-here { color: var(--accent); border-left-color: var(--accent); font-weight: 650; }
.doc { min-width: 0; max-width: 78ch; }
.crumbs { color: var(--muted); font-size: .85rem; }
.crumbs a { color: var(--ink-soft); text-decoration: none; } .crumbs a:hover { color: var(--accent); }
.doc-head h1 { font: 700 clamp(1.9rem, 4.2vw, 2.8rem)/1.05 var(--font-display); letter-spacing: .01em; margin: .5rem 0 .7rem; }
.doc-head .sub { color: var(--ink-soft); font-size: 1.05rem; }
.doc-meta { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: 1rem 0 .4rem; }
.pdflink { font-size: .85rem; color: var(--accent); text-decoration: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: .12rem .7rem; }
.doc-ask { display: inline-flex; gap: .4rem; align-items: center; background: var(--tile-hover); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent); border-radius: 999px; padding: .2rem .8rem .2rem .55rem; font-size: .85rem; font-weight: 650; }
.doc-ask:hover { background: var(--glow); }
.doc section { padding-top: .5rem; margin-top: 2.4rem; border-top: 1px solid var(--line); scroll-margin-top: 4.6rem; }
.doc h2 { font: 700 1.55rem/1.15 var(--font-display); letter-spacing: .015em; margin: 1.1rem 0 .7rem; scroll-margin-top: 5rem; position: relative; }
.doc h3 { font-size: 1.08rem; margin: 1.6rem 0 .45rem; scroll-margin-top: 5rem; }
.doc h4 { font-size: .98rem; margin: 1.2rem 0 .35rem; scroll-margin-top: 5rem; }
.doc p { margin: .7rem 0; }
.doc section ul, .doc section ol { margin: .7rem 0 .7rem 1.25rem; padding: 0; }
.doc section ul { list-style: disc; } .doc section ol { list-style: decimal; }
.doc li { margin: .3rem 0; }
.doc section a, .doc-head a:not(.pdflink) { color: var(--accent); text-underline-offset: 2px; }
.doc strong { color: var(--ink); }
.doc code { font: 500 .86em/1.5 var(--font-mono); background: var(--code-bg); border: 1px solid var(--line); border-radius: 4px; padding: .07em .35em; }
.doc pre { position: relative; background: var(--code-bg); border: 1px solid var(--line); border-radius: 8px; padding: .9rem 1.1rem; overflow-x: auto; margin: .8rem 0; }
.doc pre code { background: none; border: 0; padding: 0; white-space: pre; font-size: .84rem; }
.pre-copy { position: absolute; top: .4rem; right: .4rem; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 6px; font-size: .72rem; padding: .15rem .5rem; color: var(--muted); opacity: 0; transition: opacity .15s; }
.doc pre:hover .pre-copy, .pre-copy:focus { opacity: 1; }
.doc table { border-collapse: collapse; width: 100%; margin: .9rem 0; font-size: .93rem; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: .45rem .7rem; border: 1px solid var(--line); vertical-align: top; }
.doc th { background: var(--code-bg); font-weight: 600; white-space: nowrap; }
.doc figure { margin: 1rem 0; } .doc figure img, .doc section > img, .doc p > img { border: 1px solid var(--line); border-radius: 8px; }
.doc figcaption { color: var(--muted); font-size: .86rem; margin-top: .4rem; }
.doc .note, .doc-head .note { border-left: 3px solid var(--accent); background: var(--surface); box-shadow: var(--shadow); border-radius: 0 8px 8px 0; padding: .75rem 1rem; margin: 1rem 0; max-width: none; color: var(--ink-soft); font-size: 1rem; }
.doc .note.warn, .doc-head .note.warn { border-left-color: #C77E1D; }
.sec-tools { display: inline-flex; gap: .3rem; margin-left: .6rem; vertical-align: middle; opacity: 0; transition: opacity .15s; }
.doc h2:hover .sec-tools, .sec-tools:focus-within { opacity: 1; }
.sec-tools button { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; font: 600 .7rem/1 var(--font-body); letter-spacing: 0; text-transform: none; padding: .28rem .6rem; color: var(--ink-soft); }
.sec-tools button:hover { color: var(--accent); border-color: var(--accent); }
@media (hover: none) { .sec-tools { opacity: 1; } }
.doc-end { margin-top: 3rem; }
.doc-help { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.2rem; }
.doc-help p { margin: 0; flex: 1 1 18rem; color: var(--ink-soft); } .doc-help a { color: var(--accent); }
.pn-row { display: flex; gap: .8rem; margin-top: .9rem; }
.pn { flex: 1; border: 1px solid var(--line); border-radius: var(--r); padding: .8rem 1rem; text-decoration: none; font-weight: 650; background: var(--surface); }
.pn:hover { border-color: var(--accent); color: var(--accent); }
.pn small { display: block; color: var(--muted); font-weight: 400; font-size: .78rem; }
.pn-next { text-align: right; }
.sel-ask { position: absolute; z-index: 50; display: inline-flex; gap: .4rem; align-items: center; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px; padding: .35rem .85rem .35rem .6rem; font-size: .84rem; font-weight: 650; box-shadow: var(--lift); }
@media (max-width: 72rem) { .doc-shell { grid-template-columns: 14rem minmax(0, 1fr); } .toc { display: none; } }
@media (max-width: 52rem) {
  .doc-shell { grid-template-columns: 1fr; }
  .doc-nav { position: static; max-height: none; }
  .doc-nav-toggle { display: block; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 9px; padding: .6rem .8rem; font-weight: 650; }
  .doc-nav-toggle::after { content: " \25BE"; }
  .js .doc-nav-in { display: none; margin-top: .7rem; } .js .doc-nav.is-open .doc-nav-in { display: block; }
  .doc :not(pre) > code { white-space: normal; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
