/* PrinterSage: warm ivory paper, ink-burgundy type, amber print marks, sage accents.
   Editorial serif headings over a system sans body. No external fonts. */
:root {
  --ivory: #fbf6ec;
  --paper: #fffdf8;
  --sand: #f3ead9;
  --line: #e5d7c1;
  --ink: #3d1424;
  --wine: #5c1a33;
  --wine-2: #7a2646;
  --wine-soft: #f5e3e8;
  --amber: #e8a33d;
  --amber-soft: #fbe9c8;
  --amber-text: #8a4f00;
  --sage: #5f8a5b;
  --sage-soft: #e5ece0;
  --sage-text: #3b5a38;
  --text: #2c2125;
  --muted: #66575c;
  --focus: #1f5fbf;
  --radius: 10px;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', 'URW Palladio L', Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  --shadow: 0 1px 2px rgba(61, 20, 36, .06), 0 6px 18px -10px rgba(61, 20, 36, .25);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--ivory); color: var(--text); font: 400 1.0625rem/1.65 var(--sans); overflow-wrap: break-word; }
img, svg { max-width: 100%; }
a { color: var(--wine); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--wine-2); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
main:focus { outline: none; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.2; font-weight: 700; letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); margin: .2em 0 .35em; }
h2 { font-size: clamp(1.45rem, 1.15rem + 1vw, 1.95rem); margin: 0 0 .5em; }
h3 { font-size: 1.2rem; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.small { font-size: .9rem; color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: .6em 1em; border-radius: 6px; font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }
mark { background: var(--amber-soft); color: inherit; padding: 0 .1em; border-radius: 2px; }

/* ---------- Header ---------- */
.masthead { background: var(--ivory); border-bottom: 1px solid var(--line); position: relative; }
.ind-strip { margin: 0; background: var(--ink); color: #f6e9d6; font-size: .8rem; line-height: 1.4; padding: .45em 0; }
.ind-strip .wrap { display: flex; align-items: center; gap: .5em; }
.ind-strip .icon { color: #a9c7a3; width: 1.05rem; height: 1.05rem; }
.masthead-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.logo-mark { display: block; }
.brand-word { font-size: 1.55rem; line-height: 1; letter-spacing: -.01em; }
.bw-printer { font-family: var(--sans); font-weight: 750; color: var(--ink); }
.bw-sage { font-family: var(--serif); font-style: italic; font-weight: 700; color: var(--amber-text); margin-left: .04em; }
.primary-nav { margin-left: auto; display: flex; align-items: center; gap: 1.25rem; }
.primary-nav > ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.primary-nav > ul a { display: block; white-space: nowrap; padding: .5em .7em; color: var(--ink); font-weight: 600; font-size: .97rem; text-decoration: none; border-radius: 6px; position: relative; }
.primary-nav > ul a:hover { background: var(--sand); }
.primary-nav > ul a[aria-current]::after { content: ''; position: absolute; left: .7em; right: .7em; bottom: .15em; height: 3px; border-radius: 2px; background: var(--amber); }
.head-search { display: flex; align-items: center; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 2px 2px 2px 14px; }
.head-search input { border: 0; background: transparent; font: inherit; font-size: .95rem; width: 10.5rem; padding: .35em 0; color: var(--text); }
.head-search input:focus { outline: none; }
.head-search:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.head-search button { border: 0; background: var(--wine); color: #fff; border-radius: 999px; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; cursor: pointer; }
.head-search button:hover { background: var(--wine-2); }
.primary-nav > .nav-rail-h, .primary-nav > .nav-rail { display: none; }
.menu-toggle { display: none; margin-left: auto; align-items: center; gap: .4em; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-weight: 600; padding: .45em .8em; border-radius: 8px; cursor: pointer; }
.menu-toggle .icon-close { display: none; }
.masthead.is-open .menu-toggle .icon-close { display: block; }
.masthead.is-open .menu-toggle .icon-open { display: none; }
.rail { background: var(--paper); border-top: 1px solid var(--line); }
.rail ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); }
.rail li + li { border-left: 1px solid var(--line); }
.rail a { display: flex; align-items: baseline; gap: .5em; padding: .7em .8em; text-decoration: none; color: var(--text); font-size: .9rem; font-weight: 600; height: 100%; border-bottom: 3px solid transparent; }
.rail a:hover { background: var(--sand); color: var(--ink); }
.rail a[aria-current] { border-bottom-color: var(--wine); color: var(--ink); background: var(--ivory); }
.rail-no { font-family: var(--serif); font-style: italic; color: var(--amber-text); font-weight: 700; }

@media (max-width: 999px) {
  .menu-toggle { display: inline-flex; }
  .rail { display: none; }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -18px rgba(61, 20, 36, .4); padding: 1rem 20px 1.25rem; flex-direction: column; align-items: stretch; gap: .75rem; margin: 0; }
  .masthead.is-open .primary-nav { display: flex; }
  .primary-nav > ul { flex-direction: column; gap: 0; }
  .primary-nav > ul a { padding: .7em .5em; border-bottom: 1px solid var(--line); border-radius: 0; }
  .primary-nav > ul a[aria-current]::after { left: .5em; right: auto; width: 2rem; bottom: .3em; }
  .head-search input { width: 100%; flex: 1; }
  .primary-nav > .nav-rail-h { display: block; margin: .5rem 0 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
  .primary-nav > .nav-rail { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; list-style: none; margin: 0; padding: 0; }
  .primary-nav > .nav-rail a { display: flex; align-items: baseline; gap: .45em; padding: .55em .5em; border-bottom: 0; text-decoration: none; color: var(--text); font-weight: 600; font-size: .95rem; border-radius: 6px; white-space: normal; }
  .primary-nav > .nav-rail a[aria-current] { background: var(--sand); }
  .primary-nav > .nav-rail a[aria-current]::after { display: none; }
  .ind-strip { font-size: .75rem; }
}
@media (max-width: 420px) { .brand-word { font-size: 1.3rem; } .logo-mark { width: 32px; height: 32px; } .menu-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }

/* ---------- Shared pieces ---------- */
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-text); margin: 0 0 .5em; }
.eyebrow-sage { color: var(--sage-text); }
.eyebrow-light { color: #f2c27a; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.section { padding: clamp(2.5rem, 2rem + 2vw, 4rem) 0; }
.section-paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 46rem; margin: 0 auto 2rem; text-align: center; }
.section-head p:last-child { color: var(--muted); }
.section-head-left { text-align: left; margin: 0 0 1.25rem; }
.btn { display: inline-flex; align-items: center; gap: .4em; border: 0; border-radius: 8px; font: inherit; font-weight: 700; padding: .7em 1.2em; cursor: pointer; text-decoration: none; }
.btn-ink { background: var(--wine); color: #fff; }
.btn-ink:hover { background: var(--wine-2); color: #fff; }
.more-link { display: inline-flex; align-items: center; gap: .35em; font-weight: 700; text-decoration: none; }
.more-link:hover { text-decoration: underline; }
.more-link-wrap { margin-top: 1.25rem; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; gap: .5em; margin: 0 0 .5em; }
.checks .icon { color: var(--sage); margin-top: .15em; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .2em; margin: 0 0 1rem; padding: 0; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin: 0 .45em; color: #b9a58c; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--wine); }

/* Search forms */
.search-form { max-width: 40rem; }
.search-label { display: block; font-weight: 700; color: var(--ink); margin-bottom: .45em; }
.search-row { display: flex; align-items: center; gap: .5rem; background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; padding: .35rem .35rem .35rem .9rem; box-shadow: 4px 4px 0 var(--amber); }
.search-row:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.search-row-icon { color: var(--muted); }
.search-row input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1.05rem; padding: .45em 0; color: var(--text); }
.search-row input:focus { outline: none; }
.search-row input::placeholder { color: #85767b; }

/* ---------- Home ---------- */
.home-hero { padding: clamp(2.25rem, 1.5rem + 3vw, 4.25rem) 0 clamp(2rem, 1.5rem + 2vw, 3.25rem); background: linear-gradient(180deg, var(--ivory) 0%, var(--sand) 100%); border-bottom: 1px solid var(--line); }
.home-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 2.5rem; align-items: center; }
.home-hero h1 { max-width: 18ch; }
.hero-visual { display: flex; justify-content: center; }
.hero-art { width: 100%; max-width: 420px; height: auto; }
.examples { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; margin-top: 1.25rem; }
.examples-h { margin: 0; font-size: .9rem; color: var(--muted); font-weight: 600; }
.examples ul { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.examples a { display: inline-block; padding: .3em .75em; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; text-decoration: none; color: var(--ink); }
.examples a:hover { border-color: var(--wine); background: var(--wine-soft); }

.finder { background: var(--paper); border-bottom: 1px solid var(--line); }
.finder-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 2.5rem; align-items: start; }
.finder-intro p { color: var(--muted); }
.routes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.route { background: var(--ivory); border: 1px solid var(--line); border-left: 5px solid var(--sage); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.route h3 { font-size: 1.1rem; margin-bottom: .2em; }
.route > p { font-size: .93rem; color: var(--muted); margin-bottom: .6em; }
.route ul { list-style: none; margin: 0; padding: 0; }
.route li { margin: .3em 0; padding-left: 1.1em; position: relative; font-size: .97rem; line-height: 1.4; }
.route li::before { content: '→'; position: absolute; left: 0; color: var(--sage-text); }

.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: stage; }
.stage-link { display: grid; grid-template-columns: auto 1fr; grid-template-areas: 'no icon' 'step step' 'name name' 'tag tag' 'count count'; align-items: center; height: 100%; padding: 1.3rem 1.3rem 1.1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease; position: relative; overflow: hidden; }
.stage-link::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--amber), var(--sage)); }
.stage-link:hover { transform: translateY(-2px); border-color: var(--wine); color: var(--text); }
.stage-no { grid-area: no; font-family: var(--serif); font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--amber-text); font-weight: 700; }
.stage-icon { grid-area: icon; justify-self: end; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--sage-soft); color: var(--sage-text); display: grid; place-items: center; }
.stage-step { grid-area: step; margin-top: .9rem; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.stage-name { grid-area: name; font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--ink); margin: .1rem 0 .25rem; }
.stage-tag { grid-area: tag; color: var(--muted); font-size: .95rem; line-height: 1.45; }
.stage-count { grid-area: count; margin-top: .8rem; font-weight: 700; color: var(--wine); font-size: .92rem; display: inline-flex; align-items: center; gap: .35em; }

.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.feature { background: var(--ivory); border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem 1.6rem 1.25rem; }
.feat-art { display: block; width: 100%; max-width: 240px; height: auto; margin-bottom: .5rem; }
.feature h3 { font-size: 1.45rem; }
.feature h3 a { color: var(--ink); text-decoration: none; }
.feature h3 a:hover { color: var(--wine); text-decoration: underline; }
.feature > p:last-child { color: var(--muted); margin: 0; }

.two-lists { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; }
.tut-list { list-style: none; margin: 0; padding: 0; counter-reset: tut; }
.tut-list li { counter-increment: tut; border-top: 1px solid var(--line); }
.tut-list li:last-child { border-bottom: 1px solid var(--line); }
.tut-list a { display: grid; grid-template-columns: 2.6rem 1fr; padding: .9rem 0; text-decoration: none; color: var(--ink); }
.tut-list a::before { content: counter(tut, decimal-leading-zero); grid-row: span 2; font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 1.3rem; color: var(--amber-text); line-height: 1.2; }
.tut-title { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.tut-meta { font-size: .88rem; color: var(--muted); }
.tut-list a:hover .tut-title { color: var(--wine); text-decoration: underline; }
.latest-list { list-style: none; margin: 0; padding: 0; }
.latest-list li { padding: .8rem 0; border-top: 1px solid var(--line); }
.latest-list li:last-child { border-bottom: 1px solid var(--line); }
.latest-list a { font-weight: 600; line-height: 1.4; }
.latest-list .gi-meta { margin-bottom: .25rem; }
.latest-list time { font-size: .85rem; color: var(--muted); }

.section-ink { background: var(--ink); color: #f6ebe0; }
.section-ink h2 { color: #fff; }
.section-ink a { color: #fff; }
.ind-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: center; }
.ind-links { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: 0; }
.ind-contact { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px; padding: 1.5rem; }
.email-big { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; font-size: 1.15rem; word-break: break-word; }

/* ---------- Page heroes, lists ---------- */
.page-hero { padding: 2rem 0 2.25rem; background: var(--sand); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 28ch; }
.jump-list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 0; padding: 0; }
.jump-list a { display: inline-flex; gap: .45em; align-items: baseline; padding: .4em .85em; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .93rem; }
.jump-list a:hover { border-color: var(--wine); }
.all-list { padding: 1rem 20px 3rem; }
.all-group { padding: 2rem 0 .5rem; border-bottom: 1px solid var(--line); }
.all-group:last-child { border-bottom: 0; }
.all-group-head { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: baseline; margin-bottom: 1.1rem; }
.all-no { grid-row: span 2; font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 2.4rem; color: var(--amber-text); line-height: 1; }
.all-group-head h2 { margin: 0; }
.all-group-head h2 a { color: var(--ink); text-decoration: none; }
.all-group-head h2 a:hover { text-decoration: underline; }
.all-group-head p { margin: 0; color: var(--muted); }

.gi-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.gi-grid-wide { grid-template-columns: 1fr 1fr; }
.gi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem 1rem; display: flex; flex-direction: column; }
.gi-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; margin: 0 0 .5rem; font-size: .82rem; }
.kind { display: inline-block; padding: .12em .6em; border-radius: 4px; font-weight: 700; font-size: .78rem; letter-spacing: .03em; background: var(--sage-soft); color: var(--sage-text); }
.kind-how-to { background: var(--amber-soft); color: #7a4600; }
.kind-fix { background: var(--wine-soft); color: var(--wine); }
.gi-cat { color: var(--muted); font-weight: 600; }
a.gi-cat { color: var(--muted); }
.gi-title { font-size: 1.15rem; line-height: 1.3; margin: 0 0 .4rem; }
.gi-title a { color: var(--ink); text-decoration: none; }
.gi-title a:hover { color: var(--wine); text-decoration: underline; }
.gi-sum { color: var(--muted); font-size: .95rem; margin: 0 0 .6rem; }
.gi-foot { margin: auto 0 0; font-size: .82rem; color: var(--muted); }

/* ---------- Category ---------- */
.cat-hero-row { display: flex; align-items: center; gap: 1.25rem; }
.cat-no { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: clamp(3.5rem, 2.5rem + 4vw, 5.5rem); line-height: .9; color: var(--amber-text); }
.cat-hero-row h1 { margin: 0; }
.cat-hero-row .eyebrow { margin: 0; }
.count { margin: .2rem 0 0; color: var(--muted); font-weight: 600; }
.cat-intro { max-width: 48rem; margin-top: 1.25rem; }
.cat-intro p { color: var(--text); }
.cat-intro p:last-child { margin-bottom: 0; }
.cat-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; padding-top: 2rem; padding-bottom: 2rem; align-items: start; }
.aside-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.25rem; margin-bottom: 1rem; }
.aside-box h2 { font-size: 1.15rem; display: flex; align-items: center; gap: .4em; }
.aside-box h2 .icon { color: var(--sage); }
.aside-note { font-size: .9rem; color: var(--muted); }
.stage-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-bottom: 3rem; }
.stage-nav-link { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 700; font-size: 1.15rem; }
.stage-nav-link small { display: block; font-family: var(--sans); font-weight: 600; font-size: .8rem; color: var(--muted); }
.stage-nav-link:hover { border-color: var(--wine); color: var(--wine); }
.stage-next { justify-content: flex-end; text-align: right; grid-column: 2; }

/* ---------- Guide ---------- */
.guide-hero .gi-meta { font-size: .9rem; }
.guide-facts { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin: 0; padding: 0; font-size: .92rem; color: var(--muted); }
@media (min-width: 681px) { .guide-facts li + li::before { content: '·'; margin-right: 1.1rem; color: #b9a58c; } }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 3rem; padding-top: 2rem; padding-bottom: 3rem; align-items: start; }
.guide-body { max-width: 760px; min-width: 0; }
.glance { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); overflow: hidden; }
.glance-cell { padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.glance-cell:first-of-type { border-right: 1px solid var(--line); }
.glance-need { grid-column: 1 / -1; border-bottom: 0; background: var(--sage-soft); }
.glance-cell p:last-child, .glance-cell ul { margin-bottom: 0; }
.glance-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--sage-text); margin: 0 0 .3rem; }
.glance-need .checks { columns: 2; column-gap: 1.5rem; }
.glance-need .checks li { break-inside: avoid; }
.caveat { margin: 1.25rem 0 0; background: var(--amber-soft); border-left: 5px solid var(--amber); border-radius: 0 var(--radius) var(--radius) 0; padding: .9rem 1.1rem; }
.caveat p { display: flex; gap: .6em; margin: 0; }
.caveat .icon { color: var(--amber-text); margin-top: .2em; }
.toc-mobile { display: none; }
.toc { position: sticky; top: 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; font-size: .93rem; }
.toc h2 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin-bottom: .6rem; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; display: grid; grid-template-columns: 1.7rem 1fr; padding: .28rem 0; line-height: 1.35; }
.toc li::before { content: counter(toc, decimal-leading-zero); font-family: var(--serif); font-style: italic; color: var(--amber-text); font-weight: 700; }
.toc a { text-decoration: none; color: var(--text); }
.toc a:hover { color: var(--wine); text-decoration: underline; }
.toc-back { margin: .9rem 0 0; padding-top: .8rem; border-top: 1px solid var(--line); }
.toc-back a { display: inline-flex; gap: .35em; align-items: center; font-weight: 600; text-decoration: none; }

.prose { margin-top: 1.5rem; }
.prose h2 { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: .55rem; scroll-margin-top: 1rem; }
.prose > h2:first-child { margin-top: .5rem; }
.sec-no { font-style: italic; color: var(--amber-text); font-size: .85em; flex: none; }
.prose h3 { margin-top: 1.6rem; font-size: 1.2rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--sage-text); }
.prose ol { list-style: none; counter-reset: step; padding-left: 0; }
.prose ol > li { counter-increment: step; position: relative; padding-left: 2.6rem; margin: .8em 0; }
.prose ol > li::before { content: counter(step); position: absolute; left: 0; top: .05em; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--wine); color: #fff; font-weight: 700; font-size: .92rem; display: grid; place-items: center; }
.prose ol > li p { margin: .5em 0 0; }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 1.2em 0; padding: .8em 1.1em; border-left: 4px solid var(--line); color: var(--muted); }
.callout { margin: 1.3em 0; padding: .9rem 1.1rem; border-radius: var(--radius); background: var(--sage-soft); border: 1px solid #cbd9c3; }
.callout p { margin: 0; }
.callout-label { display: inline-block; margin-right: .35em; text-transform: uppercase; font-size: .78rem; letter-spacing: .08em; color: var(--sage-text); }
.callout-safety { background: var(--wine-soft); border-color: #e7c4cf; }
.callout-safety .callout-label { color: var(--wine); }
.callout-note { background: var(--amber-soft); border-color: #f1d49d; }
.callout-note .callout-label { color: var(--amber-text); }
.table-wrap { overflow-x: auto; margin: 1.2em 0 1.5em; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.table-wrap:focus-visible { outline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; min-width: 520px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .7rem .9rem; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--ink); color: #fff; font-size: .85rem; letter-spacing: .02em; }
.prose tbody th { color: var(--ink); background: var(--ivory); font-weight: 700; }
.prose tbody tr:last-child > * { border-bottom: 0; }
.sources { margin-top: 2.5rem; padding: 1.3rem 1.4rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.sources h2 { font-size: 1.2rem; display: flex; align-items: center; gap: .45em; }
.sources h2 .icon { color: var(--sage); }
.sources ul { margin: 0 0 .8rem; padding-left: 1.2rem; }
.sources li { margin: .3em 0; }
.ext::after { content: ' ↗'; font-size: .85em; }
.independence { margin-top: 1.25rem; font-size: .93rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 1rem; }
.independence p { margin: 0; }
.related h2 { margin-bottom: 1.2rem; }

/* ---------- Documents, contact, search, 404 ---------- */
.byline { font-size: .9rem; color: var(--muted); margin: 0; }
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 3rem; padding-top: 2rem; padding-bottom: 3.5rem; align-items: start; }
.doc-layout-single { grid-template-columns: minmax(0, 1fr); }
.doc-body { max-width: 760px; margin-top: 0; }
.doc-body section + section { margin-top: 1.6rem; }
.doc-body h2 { border-top: 0; padding-top: 0; margin-top: 0; font-size: 1.45rem; }
.contact-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 2.5rem; padding-top: 2rem; padding-bottom: 3.5rem; align-items: start; }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--amber); border-radius: var(--radius); padding: 1.4rem; }
.contact-card h2 { display: flex; align-items: center; gap: .4em; font-size: 1.3rem; }
.contact-card p:last-child { margin: 0; color: var(--muted); font-size: .95rem; }
.contact-layout .prose { margin-top: 0; }
.contact-layout .prose h2 { border-top: 0; padding-top: 0; margin-top: 0; }
.contact-layout .prose section + section { margin-top: 1.6rem; }
.search-results-wrap { padding-top: 1.5rem; padding-bottom: 3rem; }
.search-status { font-weight: 600; color: var(--ink); min-height: 1.6em; }
.search-results { grid-template-columns: 1fr; margin-bottom: 2rem; }
.search-results .gi-title { font-size: 1.15rem; }
.notice-inline { background: var(--amber-soft); padding: .8rem 1rem; border-radius: var(--radius); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips a { display: inline-flex; align-items: center; gap: .4em; padding: .45em .85em; background: var(--ivory); border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .93rem; }
.chips a:hover { border-color: var(--wine); }
.chips .icon { color: var(--sage-text); }
.nf-body { padding-top: 2rem; padding-bottom: 3rem; }
.nf-body .center { margin-top: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #eadccf; font-size: .95rem; padding-top: 3rem; }
.site-footer a { color: #fff; }
.site-footer .brand, .site-footer .bw-printer { color: #fff; }
.site-footer .bw-sage { color: #f2c27a; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; }
.footer-brand p { margin-top: 1rem; max-width: 30rem; }
.footer-email { display: flex; gap: .5em; align-items: center; }
.footer-col h2 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #f2c27a; margin-bottom: .8rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: .45em 0; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 1.25rem; padding-bottom: 1.75rem; font-size: .85rem; color: #d9c8bb; }
.footer-base p { margin: 0; max-width: 62rem; }

/* ---------- Responsive ---------- */
@media (max-width: 999px) {
  .home-hero-grid, .finder-grid, .two-lists, .ind-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .journey { grid-template-columns: 1fr 1fr; }
  .guide-layout, .doc-layout, .cat-layout, .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .guide-layout > .toc, .doc-layout > .toc { display: none; }
  .toc-mobile { display: block; margin-top: 1.25rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
  .toc-mobile summary { cursor: pointer; padding: .8rem 1.1rem; font-weight: 700; color: var(--ink); }
  .toc-mobile nav { padding: 0 1.1rem .9rem; }
  .toc-mobile ol { margin: 0; padding-left: 1.3rem; }
  .toc-mobile li { margin: .3em 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 16px; }
  .all-list { padding: 1rem 16px 3rem; }
  .routes, .journey, .features, .gi-grid-wide, .stage-nav { grid-template-columns: 1fr; }
  .stage-next { grid-column: auto; }
  .glance { grid-template-columns: 1fr; }
  .glance-cell:first-of-type { border-right: 0; }
  .glance-need .checks { columns: 1; }
  .search-row { flex-wrap: wrap; padding: .5rem; }
  .search-row-icon { display: none; }
  .search-row input { flex-basis: 100%; padding: .4em .3em; }
  .search-row .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .cat-hero-row { gap: .9rem; }
  .prose ol > li { padding-left: 2.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .stage-link:hover { transform: none; }
}
@media print {
  .masthead, .site-footer, .toc, .toc-mobile, .related, .skip-link { display: none !important; }
  body { background: #fff; }
}
