/* ════════════════════════════════════════════════════════════════════
 *  STAYFARER — "A PLOTTED BEARING" · design system v2 (multi-page)
 *  Concept: the site as a working navigation practice. The home page is
 *  a plotted route; guides are pilot-book pages with a verify-margin
 *  (every claim carries a margin note showing how to check it); the
 *  self-check is an instrument. Register locked by Koay (thesis L9):
 *  ink / paper / serif, Upcial-sibling restraint.
 *  Palette: chart (paper) · ink · sea · brass · north (sparing)
 *  Type: Libre Caslon Text (display + long-form prose)
 *        IBM Plex Sans var (UI, tool, nav) · IBM Plex Mono (chrome, data)
 *  Fonts are self-hosted in /fonts — no third-party requests anywhere.
 * ════════════════════════════════════════════════════════════════════ */

/* ── Faces ──────────────────────────────────────────────────────────── */
@font-face {
    font-family: 'Libre Caslon Text';
    font-style: normal; font-weight: 400; font-display: swap;
    src: url('fonts/libre-caslon-400.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2013-2014, U+2018-2019, U+201C-201D, U+2022, U+2026, U+2295;
}
@font-face {
    font-family: 'Libre Caslon Text';
    font-style: italic; font-weight: 400; font-display: swap;
    src: url('fonts/libre-caslon-400i.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2013-2014, U+2018-2019, U+201C-201D, U+2022, U+2026;
}
@font-face {
    font-family: 'Libre Caslon Text';
    font-style: normal; font-weight: 700; font-display: swap;
    src: url('fonts/libre-caslon-700.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2013-2014, U+2018-2019, U+201C-201D, U+2022, U+2026;
}
@font-face {
    font-family: 'IBM Plex Sans';
    font-style: normal; font-weight: 400 600; font-display: swap;
    src: url('fonts/ibm-plex-sans-var.woff2') format('woff2');
}
@font-face {
    font-family: 'IBM Plex Sans';
    font-style: italic; font-weight: 400; font-display: swap;
    src: url('fonts/ibm-plex-sans-italic.woff2') format('woff2');
}
@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal; font-weight: 400; font-display: swap;
    src: url('fonts/ibm-plex-mono-400.woff2') format('woff2');
}
@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal; font-weight: 500; font-display: swap;
    src: url('fonts/ibm-plex-mono-500.woff2') format('woff2');
}

/* Subdirectory pages load this sheet via ../styles.css, so font paths
   resolve one level up. A duplicate rule set with ../fonts/ keeps them
   correct there; browsers ignore the set whose files 404 only after
   trying, so instead we resolve it properly: url() in CSS is relative
   to the STYLESHEET, not the page — /fonts next to /styles.css is
   correct for every page. (Comment kept so nobody "fixes" this.) */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --chart:      #F3F0E7;   /* paper stock */
    --chart-2:    #EBE7D9;   /* recessed panel */
    --chart-3:    #E2DDCB;   /* deep panel */
    --ink:        #142B3E;   /* chart ink */
    --ink-deep:   #0C1D2B;
    --ink-soft:   rgba(20,43,62,0.78);
    --ink-mute:   rgba(20,43,62,0.64);   /* ≥4.5:1 on chart — carries microcopy */
    --ink-faint:  rgba(20,43,62,0.42);   /* decorative chrome only */
    --line:       rgba(20,43,62,0.16);
    --line-soft:  rgba(20,43,62,0.09);
    --sea:        #24544B;   /* deep sea green — Stayfarer's seal colour */
    --sea-deep:   #1A3F38;
    --brass:      #A8834B;   /* instrument brass */
    --brass-deep: #8A6A39;   /* brass at text sizes — 4.5:1 on chart */
    --north:      #9C3B2E;   /* needle red — warnings, costs, little else */
    --paper-edge: rgba(20,43,62,0.05);
    --nav-h:      64px;
    --maxw:       min(1180px, 92vw);
    --spine:      56px;      /* route-line gutter on desktop (home) */
    --margin-w:   280px;     /* the verify-margin on guide pages */
    --margin-gap: 56px;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
    background: var(--chart);
    color: var(--ink);
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-size: 16.5px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    background-image: radial-gradient(rgba(20,43,62,0.016) 1px, transparent 1px);
    background-size: 4px 4px;
}

.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; }
[hidden] { display: none !important; }

a { color: var(--sea); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sea-deep); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 1px; }

/* ── Type roles ─────────────────────────────────────────────────────── */
.display { font-family: 'Libre Caslon Text', Georgia, serif; font-weight: 400; letter-spacing: -0.01em; }
.mono, .wpt, .chart-label {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 11px;
}

h2.display { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.14; max-width: 17ch; }
h3.display { font-size: clamp(21px, 2.6vw, 26px); line-height: 1.25; }

p { max-width: 62ch; }
.lede { font-size: clamp(17.5px, 1.6vw, 19.5px); color: var(--ink-soft); }

em { font-style: italic; }
strong { font-weight: 600; }

/* ── The lodestar mark ──────────────────────────────────────────────── */
.star { display: inline-block; vertical-align: -0.12em; }
.brandmark { display: inline-block; vertical-align: -0.22em; flex: none; }
.star path { fill: currentColor; }

/* ── Nav ────────────────────────────────────────────────────────────── */
header.nav {
    position: sticky; top: 0; z-index: 40;
    background: color-mix(in srgb, var(--chart) 92%, transparent);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
    max-width: var(--maxw); margin: 0 auto;
    min-height: var(--nav-h);
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px;
}
.brand {
    display: flex; align-items: center; gap: 10px;
    font-family: 'Libre Caslon Text', Georgia, serif;
    font-size: 21px; color: var(--ink); text-decoration: none;
    white-space: nowrap;
}
.brand .star { color: var(--sea); }
.brand:hover { color: var(--ink); }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px; font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase;
    color: var(--ink-mute); text-decoration: none;
    padding: 4px 0; border-bottom: 1px solid transparent;
    white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); border-bottom-color: var(--brass); }
.nav-links a[aria-current="page"],
.nav-links a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--brass); }
.nav-links a.nav-cta { color: var(--sea); border-bottom-color: var(--sea); }
.nav-links a.nav-cta:hover { color: var(--sea-deep); }
/* Small screens: the nav becomes a thumb-scrollable strip — every page
   stays reachable, no hamburger, no script. */
@media (max-width: 720px) {
    .nav-inner { flex-wrap: wrap; padding-bottom: 0; row-gap: 0; }
    .brand { padding-top: 10px; }
    .nav-links {
        width: 100%; overflow-x: auto; gap: 20px;
        padding: 8px 2px 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .nav-links::-webkit-scrollbar { display: none; }
}

/* ── Shells ─────────────────────────────────────────────────────────── */
.shell { max-width: var(--maxw); margin: 0 auto; }

/* The route (home): a dashed chart line down the spine */
.route { position: relative; }
.route::before {
    content: "";
    position: absolute; top: 0; bottom: 0; left: 27px;
    border-left: 1px dashed var(--line);
}
section.wpt-block {
    position: relative;
    padding: clamp(60px, 8.5vw, 104px) 0 clamp(60px, 8.5vw, 104px) var(--spine);
    border-bottom: 1px solid var(--line-soft);
}
section.wpt-block:last-of-type { border-bottom: none; }
section.wpt-block p + p { margin-top: 14px; }

.wpt-head { position: relative; margin-bottom: 34px; }
.wpt-head .star {
    position: absolute; left: calc(-1 * var(--spine) + 27px); top: 1px;
    transform: translateX(-50%);
    color: var(--brass);
    background: var(--chart);
    padding: 4px 0;
}
.wpt { color: var(--ink-mute); display: block; margin-bottom: 14px; }
.wpt .coord { color: var(--ink-faint); letter-spacing: 0.1em; text-transform: none; }

@media (max-width: 760px) {
    .route::before { display: none; }
    section.wpt-block { padding-left: 0; }
    .wpt-head .star { position: static; transform: none; display: inline-block; margin-right: 10px; background: none; padding: 0; }
}

/* ── Hero (placeholder shell — visual pass reserved for Koay) ───────── */
.hero {
    padding: clamp(72px, 11vw, 140px) 0 clamp(56px, 8vw, 96px);
    border-bottom: 1px solid var(--line-soft);
}
.hero h1 {
    font-family: 'Libre Caslon Text', Georgia, serif; font-weight: 400;
    font-size: clamp(34px, 5.4vw, 58px);
    line-height: 1.12; letter-spacing: -0.012em;
    max-width: 21ch;
}
.hero .lede { margin-top: 26px; max-width: 56ch; }
.hero-ctas { margin-top: 38px; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }

.btn {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
    text-decoration: none;
    padding: 15px 28px;
    border: 1px solid var(--sea);
    color: var(--chart); background: var(--sea);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--sea-deep); color: var(--chart); }
.btn.ghost { background: transparent; color: var(--sea); }
.btn.ghost:hover { background: var(--sea); color: var(--chart); }
.btn.small { padding: 11px 20px; font-size: 11px; }

/* ── Evidence strip (home: figures in a row, chart-table register) ──── */
.evidence {
    margin-top: 34px;
    border: 1px solid var(--line);
    background: var(--chart-2);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.evidence > div {
    padding: 22px 26px;
    border-left: 1px solid var(--line-soft);
}
.evidence > div:first-child { border-left: none; }
.evidence .big {
    font-family: 'Libre Caslon Text', Georgia, serif;
    font-size: clamp(30px, 3.4vw, 40px); line-height: 1.08; color: var(--sea);
}
.evidence .big.north { color: var(--north); }
.evidence .chart-label { display: block; color: var(--ink-mute); margin-bottom: 8px; }
.evidence p.note { font-size: 13.5px; color: var(--ink-mute); margin-top: 8px; max-width: none; }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 880px) { .grid-2 { grid-template-columns: 1fr; } }

/* legacy card (kept for odd uses) */
.chart-card { border: 1px solid var(--line); background: var(--chart-2); padding: 26px 28px; }
.chart-card + .chart-card { margin-top: 18px; }
.chart-label { display: block; color: var(--ink-mute); margin-bottom: 10px; }

/* ── The ledger ─────────────────────────────────────────────────────── */
.ledger-wrap { overflow-x: auto; margin-top: 34px; border: 1px solid var(--line); background: var(--chart-2); }
table.ledger { border-collapse: collapse; width: 100%; min-width: 520px; }
.ledger caption {
    text-align: left; padding: 18px 24px 6px;
    font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 500;
    letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mute);
}
.ledger th, .ledger td {
    text-align: left; padding: 13px 24px;
    border-top: 1px solid var(--line-soft);
    font-size: 15px; vertical-align: top;
}
.ledger th { font-weight: 500; color: var(--ink-soft); width: 58%; }
.ledger td { font-family: 'IBM Plex Mono', monospace; font-size: 14px; letter-spacing: 0.02em; }
.ledger tr.sum th, .ledger tr.sum td { border-top: 1px solid var(--line); font-weight: 600; color: var(--sea-deep); }
.ledger tr.sum td { color: var(--north); }
.ledger tfoot td {
    font-family: 'IBM Plex Sans', sans-serif; font-size: 13.5px; color: var(--ink-mute);
    padding-top: 14px; padding-bottom: 18px;
}

/* ── Route legs (the three services on home) ────────────────────────── */
.legs { margin-top: 44px; display: grid; gap: 0; }
.leg {
    position: relative;
    display: grid; grid-template-columns: 92px minmax(0, 1fr);
    gap: clamp(20px, 3vw, 40px);
    padding: 34px 0;
    border-top: 1px solid var(--line-soft);
}
.leg:last-child { border-bottom: 1px solid var(--line-soft); }
.leg-no {
    font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 500;
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass-deep);
    padding-top: 6px;
}
.leg h3 { margin-bottom: 10px; }
.leg h3 a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
.leg h3 a:hover { border-bottom-color: var(--brass); }
.leg p { color: var(--ink-soft); }
.leg p + p { margin-top: 12px; }
.leg .fee-note { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.06em; color: var(--ink-mute); margin-top: 14px; text-transform: none; }
@media (max-width: 640px) { .leg { grid-template-columns: 1fr; gap: 8px; } }

/* ── Proof list ─────────────────────────────────────────────────────── */
.proof-list { list-style: none; margin-top: 30px; max-width: 62ch; }
.proof-list li {
    position: relative;
    padding: 16px 0 16px 34px;
    border-top: 1px solid var(--line-soft);
    color: var(--ink-soft);
}
.proof-list li:last-child { border-bottom: 1px solid var(--line-soft); }
.proof-list li::before {
    content: "✦";
    position: absolute; left: 4px; top: 15px;
    color: var(--brass); font-size: 13px;
}
.proof-list li strong { color: var(--ink); font-weight: 600; }

/* ── The signed note (Koay) ─────────────────────────────────────────── */
.note-card {
    border: 1px solid var(--line);
    background: var(--chart-2);
    padding: clamp(28px, 4vw, 48px);
    max-width: 720px;
}
.note-card p {
    font-family: 'Libre Caslon Text', Georgia, serif;
    font-size: clamp(17px, 1.9vw, 20px); line-height: 1.7;
    max-width: none;
}
.note-card p + p { margin-top: 18px; }
.note-sign { margin-top: 26px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.note-sign .name { font-family: 'Libre Caslon Text', Georgia, serif; font-style: italic; font-size: 19px; color: var(--sea-deep); }
.note-sign .role { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }
.upcial-line { margin-top: 26px; font-size: 14.5px; color: var(--ink-mute); }

/* ── Notices (home why-now: dated, numbered, like notices to mariners) ─ */
.notices { list-style: none; margin-top: 36px; max-width: 760px; }
.notices li {
    display: grid; grid-template-columns: 128px minmax(0, 1fr);
    gap: clamp(16px, 3vw, 34px);
    padding: 22px 0;
    border-top: 1px solid var(--line-soft);
}
.notices li:last-child { border-bottom: 1px solid var(--line-soft); }
.notices .n-date {
    font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 500;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--north);
    padding-top: 4px;
}
.notices h3 { font-size: 17.5px; font-weight: 600; margin-bottom: 6px; }
.notices p { font-size: 15px; color: var(--ink-soft); max-width: none; }
@media (max-width: 560px) { .notices li { grid-template-columns: 1fr; gap: 6px; } }

/* ── The chart room (dark band: the free instruments) ───────────────── */
.chartroom {
    background: var(--ink);
    color: var(--chart);
    border-top: 1px solid var(--line);
    padding: clamp(64px, 9vw, 110px) 0;
}
.chartroom .wpt { color: rgba(243,240,231,0.55); }
.chartroom h2 { color: var(--chart); max-width: 22ch; }
.chartroom .lede { color: rgba(243,240,231,0.8); margin-top: 20px; max-width: 58ch; }
.chartroom .star { color: var(--brass); }
.cr-grid {
    margin-top: 44px;
    display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: stretch;
}
@media (max-width: 880px) { .cr-grid { grid-template-columns: 1fr; } }
.cr-main {
    border: 1px solid rgba(243,240,231,0.25);
    padding: clamp(24px, 3.5vw, 40px);
}
.cr-main .chart-label { color: var(--brass); margin-bottom: 12px; }
.cr-main h3 { font-family: 'Libre Caslon Text', Georgia, serif; font-weight: 400; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; }
.cr-main p { color: rgba(243,240,231,0.8); margin-top: 14px; max-width: none; font-size: 15.5px; }
.cr-main .btn { margin-top: 24px; background: var(--brass); border-color: var(--brass); color: var(--ink-deep); }
.cr-main .btn:hover { background: #BD965B; }
.cr-side { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 8px 0; }
.cr-side .chart-label { color: rgba(243,240,231,0.5); }
.cr-side p { color: rgba(243,240,231,0.75); font-size: 15px; max-width: none; }
.cr-side a { color: var(--chart); }
.cr-side a:hover { color: #fff; }

/* ── FAQ ────────────────────────────────────────────────────────────── */
.faq { margin-top: 34px; max-width: 760px; }
.faq details { border-top: 1px solid var(--line-soft); }
.faq details:last-child { border-bottom: 1px solid var(--line-soft); }
.faq summary {
    cursor: pointer; list-style: none;
    padding: 20px 44px 20px 0;
    font-weight: 600; font-size: 16.5px; color: var(--ink);
    position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    position: absolute; right: 6px; top: 50%; transform: translateY(-52%);
    font-family: 'IBM Plex Mono', monospace; font-size: 18px; color: var(--brass-deep);
}
.faq details[open] summary::after { content: "−"; }
.faq .faq-a { padding: 0 0 22px; color: var(--ink-soft); }
.faq .faq-a p + p { margin-top: 10px; }

/* ── Destination (final CTA band) ───────────────────────────────────── */
.destination {
    background: var(--ink);
    color: var(--chart);
    padding: clamp(72px, 10vw, 120px) 0;
}
.destination .wpt { color: rgba(243,240,231,0.55); }
.destination h2 { color: var(--chart); max-width: 20ch; }
.destination .lede { color: rgba(243,240,231,0.78); margin-top: 22px; }
.destination .star { color: var(--brass); }
.destination .hero-ctas { margin-top: 36px; }
.destination .btn { background: var(--brass); border-color: var(--brass); color: var(--ink-deep); }
.destination .btn:hover { background: #BD965B; }
.destination .btn.ghost { background: transparent; color: var(--chart); border-color: rgba(243,240,231,0.5); }
.destination .btn.ghost:hover { background: rgba(243,240,231,0.12); color: var(--chart); }
.destination .contact-alt { margin-top: 26px; font-size: 14.5px; color: rgba(243,240,231,0.6); }
.destination .contact-alt a { color: rgba(243,240,231,0.85); }

/* ════════════════════════════════════════════════════════════════════
 *  GUIDE / ARTICLE LAYOUT — the pilot-book register
 *  Serif long-form prose, a verify-margin on the right (Tufte-style
 *  floated sidenotes), plotted/re-plotted dates in the header.
 * ════════════════════════════════════════════════════════════════════ */

.crumbs {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--ink-mute);
    padding-top: 34px;
}
.crumbs a { color: var(--ink-mute); text-decoration: none; border-bottom: 1px solid var(--line); }
.crumbs a:hover { color: var(--ink); border-bottom-color: var(--brass); }
.crumbs .sep { color: var(--ink-faint); padding: 0 6px; }

.g-head { padding: 26px 0 0; max-width: 60ch; }
.g-head h1 {
    font-family: 'Libre Caslon Text', Georgia, serif; font-weight: 400;
    font-size: clamp(30px, 4.6vw, 46px); line-height: 1.15; letter-spacing: -0.01em;
}
.g-head .standfirst { margin-top: 18px; font-size: clamp(17px, 1.7vw, 19px); color: var(--ink-soft); }
.plotline {
    margin-top: 22px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11.5px; letter-spacing: 0.08em;
    color: var(--ink-mute);
}
.plotline .plus { color: var(--brass-deep); font-size: 13px; }

/* Article body: a single prose column with a reserved right margin.
   Sidenotes float into the margin; below 1080px they fold inline. */
article.guide {
    padding: 38px 0 clamp(64px, 9vw, 110px);
}
.prose { max-width: calc(62ch + var(--margin-w) + var(--margin-gap)); padding-right: calc(var(--margin-w) + var(--margin-gap)); position: relative; }
@media (max-width: 1080px) { .prose { padding-right: 0; max-width: 66ch; } }

.prose > * + * { margin-top: 18px; }
.prose p, .prose li {
    font-family: 'Libre Caslon Text', Georgia, serif;
    font-size: 17px; line-height: 1.72; color: var(--ink);
}
.prose p { max-width: none; }
.prose h2 {
    font-family: 'Libre Caslon Text', Georgia, serif; font-weight: 700;
    font-size: clamp(22px, 2.6vw, 27px); line-height: 1.25;
    margin-top: clamp(40px, 5vw, 56px);
}
.prose h3 {
    font-family: 'IBM Plex Sans', sans-serif; font-weight: 600;
    font-size: 17.5px; margin-top: 34px;
}
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 10px; }
.prose hr { border: none; border-top: 1px dashed var(--line); margin: 40px 0; }
.prose blockquote {
    border-left: 2px solid var(--brass);
    padding: 4px 0 4px 22px;
    font-style: italic; color: var(--ink-soft);
}
.prose table { border-collapse: collapse; width: 100%; font-family: 'IBM Plex Sans', sans-serif; font-size: 15px; }
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--chart-2); }
.prose th, .prose td { text-align: left; padding: 12px 18px; border-top: 1px solid var(--line-soft); vertical-align: top; }
.prose thead th {
    border-top: none;
    font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 500;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute);
}
.prose td.num { font-family: 'IBM Plex Mono', monospace; font-size: 13.5px; white-space: nowrap; }

/* The in-short box: the direct answer, up top, extractable */
.answerbox {
    border: 1px solid var(--line);
    border-left: 3px solid var(--brass);
    background: var(--chart-2);
    padding: 22px 26px;
    margin-top: 30px;
}
.answerbox .chart-label { color: var(--brass-deep); margin-bottom: 8px; }
.answerbox p { font-family: 'Libre Caslon Text', Georgia, serif; font-size: 17px; line-height: 1.65; max-width: none; }

/* Verify-margin sidenotes */
aside.side {
    float: right; clear: right;
    width: var(--margin-w);
    margin-right: calc(-1 * (var(--margin-w) + var(--margin-gap)));
    margin-top: 6px; margin-bottom: 14px; margin-left: 30px;
    border-top: 1px solid var(--line);
    padding-top: 10px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 13px; line-height: 1.55; color: var(--ink-mute);
}
aside.side .side-label {
    display: block;
    font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 500;
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass-deep);
    margin-bottom: 6px;
}
aside.side p { font-size: 13px; max-width: none; font-family: 'IBM Plex Sans', sans-serif; color: var(--ink-mute); }
aside.side p + p { margin-top: 8px; }
aside.side a { color: var(--sea); }
@media (max-width: 1080px) {
    aside.side {
        float: none; width: auto;
        margin: 20px 0; padding: 14px 18px 12px;
        border: 1px solid var(--line-soft); border-top: 1px solid var(--line);
        background: var(--chart-2);
    }
}

/* Sources block at the foot of every guide */
.sources {
    margin-top: clamp(48px, 6vw, 72px);
    border-top: 1px solid var(--line);
    padding-top: 22px;
    max-width: 66ch;
}
.sources h2 {
    font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 500;
    letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mute);
    margin-bottom: 14px;
}
.sources ul { list-style: none; }
.sources li {
    font-size: 13.5px; color: var(--ink-mute);
    padding: 7px 0; border-top: 1px solid var(--line-soft);
    max-width: none;
}
.sources li:first-child { border-top: none; }

/* Cross-links at guide foot */
.guide-next {
    margin-top: clamp(40px, 5vw, 56px);
    border: 1px solid var(--line);
    background: var(--chart-2);
    padding: 22px 26px;
    max-width: 66ch;
}
.guide-next .chart-label { margin-bottom: 10px; }
.guide-next ul { list-style: none; }
.guide-next li { padding: 6px 0; font-size: 15.5px; }
.guide-next li::before { content: "→ "; color: var(--brass-deep); font-family: 'IBM Plex Mono', monospace; }

/* ── Guides index ───────────────────────────────────────────────────── */
.shelf { padding: 10px 0 clamp(64px, 9vw, 110px); }
.shelf-group { margin-top: clamp(40px, 5vw, 56px); }
.shelf-group > .chart-label { color: var(--brass-deep); border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.shelf-item {
    display: block;
    padding: 24px 0;
    border-bottom: 1px solid var(--line-soft);
    text-decoration: none; color: inherit;
}
.shelf-item h2 {
    font-family: 'Libre Caslon Text', Georgia, serif; font-weight: 400;
    font-size: clamp(20px, 2.4vw, 25px); line-height: 1.25; color: var(--ink);
    display: inline;
    border-bottom: 1px solid transparent;
}
.shelf-item:hover h2 { border-bottom-color: var(--brass); }
.shelf-item p { margin-top: 8px; color: var(--ink-soft); font-size: 15.5px; max-width: 68ch; }
.shelf-item .plotline { margin-top: 10px; }

/* ════════════════════════════════════════════════════════════════════
 *  THE POSITION CHECK — instrument register
 * ════════════════════════════════════════════════════════════════════ */

.tool-wrap { padding: 30px 0 clamp(64px, 9vw, 110px); max-width: 820px; }
.tool-wrap > p { max-width: 68ch; }
.tool-wrap > p + p { margin-top: 14px; }

.idfields {
    margin-top: 30px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    max-width: 640px;
}
@media (max-width: 560px) { .idfields { grid-template-columns: 1fr; } }
.idfields label {
    display: block;
    font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 500;
    letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute);
    margin-bottom: 7px;
}
.idfields input {
    width: 100%;
    font-family: 'IBM Plex Sans', sans-serif; font-size: 15.5px;
    color: var(--ink); background: var(--chart-2);
    border: 1px solid var(--line);
    padding: 12px 14px;
}
.idfields input:focus-visible { outline: 2px solid var(--brass); outline-offset: 1px; }
.idnote { margin-top: 10px; font-size: 13px; color: var(--ink-mute); }

fieldset.station {
    border: 1px solid var(--line);
    background: var(--chart-2);
    margin-top: 34px;
    padding: 0 clamp(18px, 3vw, 30px) clamp(14px, 2vw, 22px);
}
fieldset.station legend {
    font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 500;
    letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass-deep);
    padding: 0 10px; margin-left: -10px;
    background: var(--chart);
    border: 1px solid var(--line);
    line-height: 2.2;
}
.station .st-why { font-size: 13.5px; color: var(--ink-mute); margin: 14px 0 4px; max-width: none; }

.q { padding: 20px 0 18px; border-top: 1px solid var(--line-soft); }
.q:first-of-type { border-top: none; }
.q.missing { box-shadow: inset 3px 0 0 var(--north); padding-left: 16px; }
.q .q-text { font-weight: 500; font-size: 16px; line-height: 1.5; max-width: none; }
.q .q-how { margin-top: 6px; font-size: 13.5px; color: var(--ink-mute); max-width: none; }
.q .q-how a { color: var(--sea); }

.opts { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.opts label { position: relative; cursor: pointer; }
.opts input {
    position: absolute; inset: 0; opacity: 0; cursor: pointer;
}
.opts span {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; font-weight: 500;
    letter-spacing: 0.1em; text-transform: uppercase;
    padding: 9px 16px;
    border: 1px solid var(--line);
    background: var(--chart);
    color: var(--ink-soft);
    transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.opts label:hover span { border-color: var(--ink-mute); }
.opts input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--chart); }
.opts input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }

/* ── Run-it affordances: copy chips + ask-links (both instruments) ──── */
.runrow { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.copychip { display: inline-flex; align-items: stretch; border: 1px solid var(--line); background: var(--chart); max-width: 100%; }
.chiptext {
    font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; letter-spacing: 0.02em;
    color: var(--ink); padding: 8px 12px; display: inline-block; align-self: center;
    min-width: 0; overflow-wrap: anywhere;
}
.copybtn {
    font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 500;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--sea); background: var(--chart-2);
    border: 0; border-left: 1px solid var(--line);
    padding: 8px 14px; cursor: pointer; flex: none;
    transition: background 0.12s ease, color 0.12s ease;
}
.copybtn:hover { background: var(--sea); color: var(--chart); }
.askbtn {
    display: inline-flex; align-items: center;
    font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 500;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--sea); text-decoration: none;
    border: 1px solid var(--line); background: var(--chart);
    padding: 8px 14px;
    transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.askbtn:hover { background: var(--sea); border-color: var(--sea); color: var(--chart); }
.askbtn.unresolved { color: var(--ink-mute); border-style: dashed; }
.askbtn.unresolved:hover { background: var(--chart); color: var(--ink-mute); border-color: var(--line); }
.runmsg { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.04em; color: var(--north); }

/* the ask-the-engines runner */
.setup .idfields { max-width: none; margin-top: 22px; }
.idfields.sharpen { grid-template-columns: repeat(3, 1fr); margin-top: 16px; }
@media (max-width: 860px) { .idfields.sharpen { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .idfields.sharpen { grid-template-columns: 1fr; } }
.idfields select {
    width: 100%;
    font-family: 'IBM Plex Sans', sans-serif; font-size: 15.5px;
    color: var(--ink); background: var(--chart-2);
    border: 1px solid var(--line);
    padding: 12px 14px;
}
.idfields select:focus-visible { outline: 2px solid var(--brass); outline-offset: 1px; }
.enginepick .opts { margin-top: 16px; }
.engine-note { margin-top: 14px; font-size: 14px; color: var(--ink-soft); max-width: none; }
.enginepick .idnote { margin-top: 10px; }
.runq .slot { font-weight: 600; border-bottom: 1px dashed var(--brass); }
.runq .slot.empty { color: var(--ink-mute); font-weight: 400; border-bottom-color: var(--line); }
.runq-act { display: inline-flex; gap: 6px; margin-left: 10px; vertical-align: middle; }
.runq-act .copybtn { border: 1px solid var(--line); padding: 4px 10px; font-size: 10px; }
.runq-act .askbtn { padding: 4px 10px; font-size: 10px; }

.toolbar { margin-top: 36px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.toolbar .hint { font-size: 13.5px; color: var(--ink-mute); }

/* Results */
#results { margin-top: clamp(44px, 6vw, 64px); }
.verdict {
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--chart);
    padding: clamp(26px, 4vw, 44px);
}
.verdict .chart-label { color: var(--brass); }
.verdict h2 {
    font-family: 'Libre Caslon Text', Georgia, serif; font-weight: 400;
    font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin-top: 8px;
}
.verdict .scoreline { margin-top: 10px; font-family: 'IBM Plex Mono', monospace; font-size: 13px; letter-spacing: 0.08em; color: rgba(243,240,231,0.75); }
.verdict p.read { margin-top: 16px; color: rgba(243,240,231,0.85); max-width: 58ch; font-size: 15.5px; }

.bands { margin-top: 26px; border: 1px solid var(--line); background: var(--chart-2); padding: 22px 26px; }
.band { display: grid; grid-template-columns: 200px minmax(0,1fr) 64px; gap: 14px; align-items: center; padding: 8px 0; }
@media (max-width: 620px) { .band { grid-template-columns: 1fr; gap: 4px; } }
.band .b-name { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }
.band .b-track { height: 10px; background: var(--chart-3); border: 1px solid var(--line-soft); position: relative; }
.band .b-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--sea); }
.band.low .b-fill { background: var(--north); }
.band .b-val { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--ink-soft); text-align: right; }

.fixlist { margin-top: 26px; }
.fixlist h3 { font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 4px; }
.fixlist ol { list-style: none; counter-reset: fix; }
.fixlist li {
    counter-increment: fix;
    position: relative;
    padding: 16px 0 16px 44px;
    border-top: 1px solid var(--line-soft);
    max-width: 70ch;
}
.fixlist li::before {
    content: counter(fix, decimal-leading-zero);
    position: absolute; left: 0; top: 17px;
    font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--brass-deep);
}
.fixlist li .fx-t { font-weight: 600; }
.fixlist li .fx-d { display: block; margin-top: 3px; font-size: 14px; color: var(--ink-soft); }
.fixlist li.dk .fx-t::after {
    content: " · nobody's watching this dial";
    font-family: 'IBM Plex Mono', monospace; font-weight: 400;
    font-size: 11px; letter-spacing: 0.06em; color: var(--north);
}
.fineprint { margin-top: 30px; border-top: 1px dashed var(--line); padding-top: 18px; font-size: 13.5px; color: var(--ink-mute); max-width: 66ch; }
.fineprint p + p { margin-top: 8px; }
#results .hero-ctas { margin-top: 28px; }

/* ── Protocol page: rubric + scoresheet ─────────────────────────────── */
.sheet-wrap { overflow-x: auto; border: 1px solid var(--line); background: #FDFCF8; margin-top: 8px; }
table.sheet { border-collapse: collapse; width: 100%; min-width: 640px; font-family: 'IBM Plex Sans', sans-serif; font-size: 13.5px; }
.sheet th, .sheet td { border: 1px solid var(--line-soft); padding: 10px 12px; text-align: left; vertical-align: top; }
.sheet thead th {
    font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 500;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute);
    background: var(--chart-2);
}
.sheet td.blank { min-width: 72px; }
.sheet .q-col { width: 40%; }

/* ════════════════════════════════════════════════════════════════════
 *  FOOTER — the index
 * ════════════════════════════════════════════════════════════════════ */
footer.site-foot { background: var(--ink-deep); color: rgba(243,240,231,0.6); padding: 44px 0 38px; font-size: 13.5px; }
.foot-inner { max-width: var(--maxw); margin: 0 auto; }
.foot-brand { display: flex; align-items: center; gap: 8px; font-family: 'Libre Caslon Text', Georgia, serif; font-size: 17px; color: rgba(243,240,231,0.9); }
.foot-brand .star { color: var(--brass); }
.foot-brand .brandmark { color: rgba(243,240,231,0.92); }
.foot-what { margin-top: 8px; max-width: 62ch; }
.foot-index {
    margin-top: 24px; padding-top: 18px;
    border-top: 1px solid rgba(243,240,231,0.12);
    display: flex; flex-wrap: wrap; gap: 8px 26px;
}
.foot-index a {
    font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 500;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: rgba(243,240,231,0.65); text-decoration: none;
}
.foot-index a:hover { color: var(--chart); }
.foot-legal { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(243,240,231,0.12); display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: space-between; }
.foot-legal span { max-width: 72ch; }
.foot-legal a { color: rgba(243,240,231,0.82); }

/* ── 404 ────────────────────────────────────────────────────────────── */
.lost { padding: clamp(90px, 14vw, 180px) 0; }
.lost h1 { font-family: 'Libre Caslon Text', Georgia, serif; font-weight: 400; font-size: clamp(34px, 5vw, 54px); line-height: 1.1; max-width: 18ch; }
.lost p { margin-top: 20px; color: var(--ink-soft); }

/* ── Print ──────────────────────────────────────────────────────────── */
@media print {
    header.nav, footer.site-foot, .destination, .chartroom, .toolbar, .guide-next, .hero-ctas, .crumbs { display: none !important; }
    body { background: #fff; font-size: 12pt; }
    .prose { padding-right: 0; max-width: none; }
    aside.side { float: none; width: auto; margin: 12pt 0; border: 1pt solid #999; padding: 8pt 10pt; }
    a { color: #000; text-decoration: none; }
    .verdict { background: #fff; color: #000; border: 1pt solid #000; }
    .verdict .chart-label, .verdict .scoreline, .verdict p.read { color: #333; }
    fieldset.station { break-inside: avoid; }
    .sheet-wrap, .ledger-wrap, .table-wrap { overflow: visible; border: 1pt solid #999; }
    #engineSetup, .enginepick, .runq-act, .runrow { display: none !important; }
    .runq .slot { border-bottom: none; }
}

/* ── Figures — plotted data ──────────────────────────────────────────
 * Inline SVG, never an <img>: no extra request, crisp at any zoom, and
 * every number stays real selectable text in the DOM. That last part is
 * not a nicety — guides/ai-search-for-stays tells operators to keep
 * facts in text rather than trapped in images, and a site that charted
 * its own numbers as flat pictures would be contradicting its own advice
 * on the page next door.
 * Marks follow the house data rules: one emphasis colour (--north, which
 * this system reserves for cost), everything else recessive; 2px surface
 * gaps do the separating instead of strokes; labels wear text tokens,
 * never the fill colour.
 * ──────────────────────────────────────────────────────────────────── */
.fig {
    margin: 32px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 20px 0 18px;
}
.fig svg { display: block; width: 100%; height: auto; }
.fig figcaption {
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-size: 0.82rem; line-height: 1.5; color: var(--ink-mute);
    margin-top: 14px; max-width: 62ch;
}
.fig .fig-label {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase;
    fill: var(--ink-mute);
}
.fig .fig-val {
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-size: 15px; font-weight: 600; fill: var(--ink);
}
.fig .fig-val-lead { font-size: 19px; fill: var(--north); }
/* Cost emphasis must be a CLASS, never a style="" attribute: this site
   ships style-src 'self' with no unsafe-inline, so an inline style is
   silently dropped and the emphasis colour just doesn't appear. Caught
   2026-07-28 only because the preview server applies the real _headers. */
.fig .fig-val-cost { fill: var(--north); }
.fig .fig-name {
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-size: 13px; fill: var(--ink-soft);
}
.fig .fig-tick {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 10px; fill: var(--ink-faint);
}
.fig .fig-axis { stroke: var(--line); stroke-width: 1; }

/* ════════════════════════════════════════════════════════════════════
 *  COHERENCE PASS — 2026-07-28
 *  Koay, reviewing: "some different fonts on different pages… looked
 *  like plucked from different sources and pieced together."
 *  He was reading a real fault. The reading face changed under him:
 *  guide pages set .prose p to Libre Caslon 17px, but the HOME page's
 *  body copy is not .prose — it inherited body's IBM Plex Sans. So the
 *  landing page read as sans and every page behind it as serif.
 *  The system's own header says Caslon carries long-form prose; the home
 *  page was the deviation, so it moves to Caslon rather than the reverse.
 *  Chrome (nav, labels, buttons, tools, data) stays Plex — that split is
 *  the system working, not an inconsistency.
 * ════════════════════════════════════════════════════════════════════ */

section.wpt-block > p,
section.wpt-block .proof-list li,
.notices p,
.destination > .shell > p:not(.lede):not(.contact-alt),
.chartroom .cr-main > p,
.chartroom .cr-side > p {
    font-family: 'Libre Caslon Text', Georgia, serif;
    font-size: 17px;
    line-height: 1.72;
}
/* The lede/standfirst role stays sans on every template — it already
   matched across home and guides, and it is what separates a standfirst
   from the body it introduces. */
section.wpt-block > p.lede { font-family: 'IBM Plex Sans', system-ui, sans-serif; }

/* ── Next step — the conversion block every guide was missing ─────────
 * Eight of fourteen pages carried no call to action at all, and they are
 * precisely the pages a stranger lands on from a search. A reader would
 * finish a guide with nothing to do. This is the same shape as the home
 * page's "Destination" band so the journey feels continuous rather than
 * like arriving at a different site's footer.
 * ─────────────────────────────────────────────────────────────────── */
.nextstep {
    margin-top: clamp(48px, 6vw, 72px);
    border: 1px solid var(--line);
    border-left: 3px solid var(--brass);
    background: var(--chart-2);
    padding: clamp(24px, 3.4vw, 34px);
}
.nextstep .chart-label { color: var(--ink-mute); display: block; margin-bottom: 12px; }
.nextstep h2 {
    font-family: 'Libre Caslon Text', Georgia, serif; font-weight: 400;
    font-size: clamp(21px, 2.5vw, 26px); line-height: 1.28;
    margin: 0 0 10px; max-width: 26ch;
}
.nextstep p {
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-size: 15.5px; line-height: 1.6; color: var(--ink-soft);
    max-width: 56ch; margin: 0 0 20px;
}
.nextstep .hero-ctas { margin: 0; }
.nextstep .ns-fine {
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-size: 13px; color: var(--ink-mute);
    margin: 16px 0 0; max-width: none;
}

/* ── Mobile ───────────────────────────────────────────────────────────
 * Two faults found by measuring at 390px across all 14 pages:
 * 1. `.nav-links` scrolled horizontally with hidden scrollbars, so the
 *    "Start" CTA sat off the right edge on EVERY page with no affordance
 *    that anything was there. The primary action was invisible on phones.
 *    It now wraps instead of scrolling, and Start leads the row.
 * 2. Nav links and tool controls rendered under 40px tall — below a
 *    comfortable touch target.
 * ─────────────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
    .nav-links {
        flex-wrap: wrap;
        overflow-x: visible;
        gap: 0 18px;
        row-gap: 0;
    }
    .nav-links a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    /* Start is the action, so on a phone it becomes an actual pill parked
       on the brand row — not a bare uppercase link stacked above the other
       links, which reads as a section label rather than something to tap. */
    .nav-inner { position: relative; }
    .nav-links a.nav-cta {
        position: absolute;
        top: 11px; right: 0;
        min-height: 0;
        padding: 7px 15px;
        border: 1px solid var(--sea);
        border-radius: 999px;
        color: var(--sea);
        background: var(--chart);
    }
    .nav-links a.nav-cta:hover { background: var(--sea); color: var(--chart); }
    .hero-ctas .btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; }
}

/* Wide tables scroll inside their own box. On a phone that scroll was
   silent — no edge, no hint — so the right-hand columns did not exist as
   far as the reader was concerned. A fade plus a stated hint. */
@media (max-width: 760px) {
    .table-wrap, .ledger-wrap {
        position: relative;
        -webkit-overflow-scrolling: touch;
    }
    .table-wrap::after, .ledger-wrap::after {
        content: "";
        position: absolute; top: 0; right: 0; bottom: 0; width: 34px;
        background: linear-gradient(to right, rgba(243,240,231,0), rgba(243,240,231,0.92));
        pointer-events: none;
    }
    .scroll-hint {
        font-family: 'IBM Plex Mono', ui-monospace, monospace;
        font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
        color: var(--ink-mute); margin-top: 8px;
    }
}
@media (min-width: 761px) { .scroll-hint { display: none; } }
@media (max-width: 760px) {
    .sheet-wrap { position: relative; overflow-x: auto; }
    .sheet-wrap::after {
        content: "";
        position: absolute; top: 0; right: 0; bottom: 0; width: 34px;
        background: linear-gradient(to right, rgba(243,240,231,0), rgba(243,240,231,0.92));
        pointer-events: none;
    }
}

/* Sticky nav + in-page anchors: without scroll-padding the browser scrolls
   the target to y=0, which is UNDER the sticky header — so "Start" jumped
   to a heading half-hidden behind the nav. Measured, not guessed: the nav
   is one row on desktop and wraps to two on a phone. */
html { scroll-padding-top: calc(var(--nav-h) + 14px); }
@media (max-width: 720px) { html { scroll-padding-top: 118px; } }

/* ── Pricing plans ────────────────────────────────────────────────────
 * Added 2026-07-28 on Koay's decision to publish rates (thesis L7 was
 * "no prices public"; unlocked by his explicit in-session words, logged
 * in the thesis changelog).
 * The standard rate is struck through, not invented: it is the rate the
 * practice moves to when founding pricing closes, and it sits BELOW the
 * global GEO-retainer benchmarks already recorded in thesis §3. A "was"
 * price we would never charge would be a false reference — the one thing
 * a receipts-first site cannot survive being caught with.
 * NOTE on selectors: every rule below is prefixed .plans/.includes. These
 * live inside .prose, whose `.prose p` rule (specificity 0,1,1) otherwise
 * beats a bare .plan-now (0,1,0) and drags the whole card back into
 * 17px Caslon. Measured, not guessed — it happened on the first build.
 * ─────────────────────────────────────────────────────────────────── */
.plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 2px;
    background: var(--line);
    border: 1px solid var(--line);
    margin: 28px 0 0;
}
/* Guide pages reserve a right-hand verify-margin. This page has no
   sidenotes, so the rate card reclaims that space and the four tiers sit
   on one row where they can actually be compared. */
@media (min-width: 1081px) {
    .prose .plans { margin-right: calc(-1 * (var(--margin-w) + var(--margin-gap))); }
}
.plans .plan { background: var(--chart); padding: 24px 22px 26px; display: flex; flex-direction: column; }
.plans .plan.is-primary { background: var(--chart-2); }
.plans .plan-name {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--ink-mute);
}
.plans .plan-size {
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-size: 13px; color: var(--ink-mute); margin-top: 4px; display: block;
}
.plans .plan-was {
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-size: 14px; line-height: 1.3; color: var(--ink-faint); margin-top: 18px;
    text-decoration: line-through; text-decoration-thickness: 1px; max-width: none;
}
.plans .plan-now {
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-weight: 600; font-size: 29px; line-height: 1.1; color: var(--ink);
    margin-top: 2px; max-width: none;
}
.plans .plan-now .per { font-size: 14px; font-weight: 400; color: var(--ink-mute); }
.plans .plan-note {
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-size: 13.5px; line-height: 1.55; color: var(--ink-soft);
    margin-top: 14px; max-width: none;
}
.plans .plan-flag {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase; line-height: 1.5;
    color: var(--brass-deep); margin-top: 16px; max-width: none;
}
.plans .plan-tail { margin-top: auto; padding-top: 16px; }

.saveband {
    margin-top: 26px;
    border: 1px solid var(--brass);
    border-left: 3px solid var(--brass);
    background: var(--chart-2);
    padding: clamp(20px, 3vw, 28px);
}
.saveband .chart-label { color: var(--brass-deep); display: block; margin-bottom: 10px; }
.saveband h2 {
    font-family: 'Libre Caslon Text', Georgia, serif; font-weight: 400;
    font-size: clamp(21px, 2.5vw, 27px); line-height: 1.28; margin: 0 0 12px; max-width: 30ch;
}
.prose .saveband p {
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-size: 15.5px; line-height: 1.62; color: var(--ink-soft); max-width: 62ch;
}
.prose .saveband p + p { margin-top: 12px; }
.prose .saveband .deadline {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 12.5px; line-height: 1.6; letter-spacing: 0.04em; color: var(--ink);
    margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); max-width: none;
}

.includes { margin-top: 26px; border: 1px solid var(--line); background: var(--chart-2); padding: clamp(20px, 3vw, 28px); }
.includes .chart-label { display: block; color: var(--ink-mute); }
.prose .includes ul { list-style: none; padding: 0; margin: 14px 0 0; }
.prose .includes li {
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-size: 14.5px; line-height: 1.6; color: var(--ink);
    padding-left: 26px; position: relative;
}
.prose .includes li + li { margin-top: 12px; }
.prose .includes li::before {
    content: "95"; position: absolute; left: 0; top: 0;
    color: var(--brass-deep); font-size: 13px;
}

/* ── Comparison tables ────────────────────────────────────────────────
 * Koay, 2026-07-28: "too hard to read with everything in words,
 * malaysians don't read that much… whenever an easier to read/understand
 * option like a table/illustration is possible, do it."
 * Standing rule, not a pricing-page fix. Anything that enumerates,
 * compares or sequences becomes a table; prose keeps the argument and
 * the voice.
 * ─────────────────────────────────────────────────────────────────── */
.prose .cmp { width: 100%; border-collapse: collapse; font-family: 'IBM Plex Sans', system-ui, sans-serif; font-size: 14px; }
.prose .cmp th, .prose .cmp td { padding: 11px 14px; border-top: 1px solid var(--line-soft); vertical-align: top; text-align: left; }
.prose .cmp thead th {
    border-top: none; border-bottom: 1px solid var(--line);
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--ink-mute); font-weight: 500; white-space: nowrap;
}
.prose .cmp tbody th { font-weight: 400; color: var(--ink); width: 34%; }
.prose .cmp td { text-align: center; color: var(--ink-soft); white-space: nowrap; }
.prose .cmp td.txt { white-space: normal; }
.prose .cmp .yes { color: var(--sea); font-weight: 600; }
.prose .cmp .no  { color: var(--ink-faint); }
.prose .cmp tbody tr.hi { background: var(--chart-2); }
.prose .cmp col.hi { background: var(--chart-2); }
/* Two-column "what happens / what it means" tables read better left-aligned */
.prose .cmp.stack td { text-align: left; white-space: normal; }
.prose .cmp.stack tbody th { width: 42%; }
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--chart); margin-top: 20px; position: relative; }
@media (max-width: 760px) {
    .cmp-wrap::after {
        content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 30px;
        background: linear-gradient(to right, rgba(243,240,231,0), rgba(243,240,231,0.92));
        pointer-events: none;
    }
}
@media (min-width: 1081px) { .prose .cmp-wrap { margin-right: calc(-1 * (var(--margin-w) + var(--margin-gap))); } }

/* ── The path — compulsory vs optional, at a glance ───────────────────
 * Koay, 2026-07-28: "illustrate better what options they have or what's
 * compulsory and what benefits they get, go from marketing POV and
 * buyer's mentality not 'here's what we do you'll go figure out
 * yourself'." So each step leads with what the BUYER walks away with,
 * and whether they have to do it at all is the first thing on the card.
 * ─────────────────────────────────────────────────────────────────── */
.prose .path { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); align-items: stretch; }
@media (max-width: 860px) { .prose .path { grid-template-columns: 1fr; } }
@media (min-width: 1081px) { .prose .path { margin-right: calc(-1 * (var(--margin-w) + var(--margin-gap))); } }
.prose .path li { margin: 0; position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--chart); padding: 20px 20px 22px; }
.prose .path li.is-required { border-color: var(--sea); border-top: 3px solid var(--sea); background: var(--chart-2); }
.prose .path li.is-product  { border-color: var(--brass); border-top: 3px solid var(--brass); background: var(--chart-2); }
.prose .path li.is-optional { border-top: 3px solid var(--line); }
/* the connector between steps */
@media (min-width: 861px) {
    .prose .path li + li::before {
        content: "›"; position: absolute; left: -13px; top: 50%;
        transform: translateY(-50%); color: var(--ink-faint);
        font-size: 20px; line-height: 1; font-family: 'IBM Plex Sans', sans-serif;
    }
}
.path-badge {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 10px; letter-spacing: 0.11em; text-transform: uppercase;
    display: block; margin-bottom: 10px;
}
.is-required .path-badge { color: var(--sea); }
.is-product  .path-badge { color: var(--brass-deep); }
.is-optional .path-badge { color: var(--ink-mute); }
.prose .path h3 {
    font-family: 'Libre Caslon Text', Georgia, serif; font-weight: 400;
    font-size: 20px; line-height: 1.25; margin: 0 0 10px;
}
.prose .path .path-price {
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-size: 21px; font-weight: 600; color: var(--ink);
    margin: 0 0 4px; max-width: none;
}
.prose .path .path-price s { font-size: 14px; font-weight: 400; color: var(--ink-faint); text-decoration-thickness: 1px; margin-right: 7px; }
.prose .path .path-price .unit { font-size: 13px; font-weight: 400; color: var(--ink-mute); }
.prose .path .path-get {
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-size: 13.5px; line-height: 1.55; color: var(--ink-soft);
    margin: 12px 0 0; max-width: none;
}
.prose .path .path-get strong { color: var(--ink); font-weight: 600; }
.prose .path .path-tail { margin-top: auto; padding-top: 14px; }
.prose .path .path-out {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 10.5px; letter-spacing: 0.05em; line-height: 1.5;
    color: var(--ink-mute); margin: 0; max-width: none;
}
