/* A fair share. — Taya User Guide. Static stylesheet: no scripts, no third-party resources.
   Color tokens are Taya v1.0.0's own (src/ui/styles.css), light and dark. */

@font-face { font-family: "Newsreader Guide"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(fonts/newsreader-latin-opsz-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader Guide"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(fonts/newsreader-latin-ext-opsz-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader Guide"; font-style: italic; font-display: swap; font-weight: 200 800;
  src: url(fonts/newsreader-latin-opsz-italic.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader Guide"; font-style: italic; font-display: swap; font-weight: 200 800;
  src: url(fonts/newsreader-latin-ext-opsz-italic.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light dark;
  --bg: #f8f4ea; --surface: #fffdf8; --sunken: #eee8da;
  --text: #1b1a16; --muted: #57534b; --faint: #66625a;
  --line: #e3dccd; --line-strong: #cbc2b0; --leader: #a9a192; --leader-faint: #d3cbbb;
  --accent: #ffd340; --accent-soft: #ffeca6; --accent-line: #d9a514; --accent-edge: #1b1a16; --accent-ink: #1b1a16;
  --ring: #57534b; --info: #1d5f96; --info-soft: #dce9f4;
  --ok: #3b6849; --ok-soft: #e4ece2; --warn: #8f4e0d; --warn-soft: #f6e9d6;
  --serif: "Newsreader Guide", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --measure: 40rem;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1f1e1b; --surface: #282724; --sunken: #2f2d29;
    --text: #eee5d3; --muted: #bdb8ae; --faint: #a39e94;
    --line: #46433d; --line-strong: #5d5950; --leader: #878175; --leader-faint: #5a564e;
    --accent: #ecbf4f; --accent-soft: #45391d; --accent-line: #c99d3c; --accent-edge: #ecbf4f; --accent-ink: #1f1e1b;
    --ring: #bdb8ae; --info: #97c2e6; --info-soft: #22303b;
    --ok: #a9cfae; --ok-soft: #29352b; --warn: #ecb675; --warn-soft: #3d3122;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--serif); font-size: 1.1875rem; line-height: 1.55; font-optical-sizing: auto;
  font-variant-numeric: lining-nums; overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--info); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--info); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: var(--s2) var(--s4); font-family: var(--sans); font-size: 0.9375rem; z-index: 10; }
.skip:focus { left: var(--s4); top: var(--s2); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- masthead and navigation (native <details>, no scripts) */
.masthead { border-bottom: 1px solid var(--line); background: var(--bg); }
.masthead-in { max-width: 56rem; margin: 0 auto; padding: var(--s3) var(--s4); display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em; color: var(--text); text-decoration: none; display: inline-flex; align-items: baseline; gap: 0.45em; margin-right: auto; }
.brand-dot { width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1.5px var(--accent-edge); display: inline-block; transform: translateY(-0.05em); }
.brand-sub { font-family: var(--sans); font-weight: 500; font-size: 0.8125rem; color: var(--muted); letter-spacing: 0; }
.nav-links { display: flex; align-items: center; gap: var(--s3); font-family: var(--sans); font-size: 0.9375rem; }
.open-app { color: var(--text); font-weight: 600; text-decoration: none; padding: 10px 2px; border-bottom: 1.5px solid var(--accent-line); line-height: 1; }
.toc-menu { position: relative; }
.toc-menu > summary { list-style: none; cursor: pointer; font-weight: 600; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text); min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.toc-menu > summary::-webkit-details-marker { display: none; }
.toc-menu > summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.toc-menu[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }
.toc-panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(22rem, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; padding: var(--s3) var(--s4) var(--s4); z-index: 5; box-shadow: 0 10px 30px rgb(0 0 0 / 0.12); }
.toc-panel h2 { font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: var(--s3) 0 var(--s1); font-weight: 600; }
.toc-panel ol, .toc-panel ul { list-style: none; margin: 0; padding: 0; }
.toc-panel li a, .toc-panel li span { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); font-family: var(--sans); font-size: 0.9375rem; min-height: 44px; align-items: center; }
.toc-panel li:last-child a, .toc-panel li:last-child span { border-bottom: 0; }
.toc-panel .n { font-family: var(--serif); color: var(--muted); width: 1.4em; flex: none; font-variant-numeric: tabular-nums; }
.toc-panel [aria-current="page"] { font-weight: 700; }
.toc-panel [aria-current="page"] .n { color: var(--text); }
.toc-panel .soon { color: var(--faint); }
.soon-tag { font-family: var(--sans); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); border: 1px solid var(--line-strong); border-radius: 999px; padding: 1px 7px; margin-left: auto; white-space: nowrap; }

/* ---------- page column */
main { max-width: var(--measure); margin: 0 auto; padding: 0 var(--s4) var(--s7); }
.wide { margin-left: calc(-1 * var(--s4)); margin-right: calc(-1 * var(--s4)); }
p { margin: 0 0 var(--s4); }
strong { font-weight: 650; }
.ui { font-family: var(--sans); font-weight: 650; font-size: 0.9em; letter-spacing: -0.005em; }
.amt { font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }

/* chapter head */
.chapter-head { padding: var(--s6) 0 var(--s4); border-bottom: 1px solid var(--line); margin-bottom: var(--s5); }
.kicker { font-family: var(--sans); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 var(--s3); display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ring); }
h1 { font-family: var(--serif); font-weight: 560; font-size: clamp(2.125rem, 9vw, 3rem); line-height: 1.06; letter-spacing: -0.022em; margin: 0 0 var(--s3); text-wrap: balance; }
.dek { font-style: italic; font-size: 1.3125rem; line-height: 1.35; color: var(--muted); margin: 0; text-wrap: pretty; }
h2 { font-family: var(--serif); font-weight: 580; font-size: 1.625rem; line-height: 1.15; letter-spacing: -0.012em; margin: 40px 0 var(--s3); text-wrap: balance; }
h3 { font-family: var(--sans); font-weight: 650; font-size: 1.0625rem; line-height: 1.3; margin: var(--s5) 0 var(--s2); }
.lead { font-size: 1.25rem; }

/* the result first: "What you want to end up with" */
.outcome { margin: var(--s5) 0; padding: var(--s3) 0 var(--s3) var(--s4); border-left: 3px solid var(--accent); }
.outcome .label { font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 650; color: var(--muted); margin: 0 0 var(--s2); }
.outcome p:last-child { margin-bottom: 0; }
.outcome .big { font-size: 1.375rem; line-height: 1.35; }
.mark { background: linear-gradient(transparent 58%, var(--accent-soft) 58%, var(--accent-soft) 92%, transparent 92%); padding: 0 0.1em; }

/* ---------- steps */
.steps { list-style: none; padding: 0; margin: var(--s5) 0; counter-reset: step; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 var(--s5) 2.75rem; border-left: 1px dashed var(--leader-faint); margin-left: 0.9rem; }
.steps > li:last-child { border-left-color: transparent; padding-bottom: var(--s3); }
.steps > li::before {
  content: counter(step); position: absolute; left: -0.95rem; top: -0.1rem; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 1.5px var(--accent-edge);
  font-family: var(--sans); font-weight: 700; font-size: 0.9375rem; display: grid; place-items: center;
}
.steps h3 { margin: 0 0 var(--s2); font-family: var(--serif); font-size: 1.3125rem; font-weight: 600; letter-spacing: -0.01em; }
.steps p { margin-bottom: var(--s3); }

/* ---------- screenshots */
.shot { margin: var(--s4) 0 var(--s2); }
.shot .frame { position: relative; max-width: 360px; border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; background: var(--bg); }
.shot img { width: 100%; }
.shot figcaption { font-family: var(--sans); font-size: 0.8125rem; line-height: 1.45; color: var(--muted); margin-top: var(--s2); max-width: 360px; }
.shot.center .frame, .shot.center figcaption { margin-left: auto; margin-right: auto; }
.shot.tight .frame { max-width: 300px; }
/* Callouts are drawn over the screenshot, never baked into it. */
.callout { position: absolute; border: 2.5px solid var(--accent-line); border-radius: 10px; box-shadow: 0 0 0 3px rgb(255 211 64 / 0.35); pointer-events: none; }
.callout .tag { position: absolute; right: -10px; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 1.5px var(--accent-edge); font: 700 0.75rem/22px var(--sans); text-align: center; }

/* ---------- receipt figure */
.receipt { margin: var(--s4) auto var(--s5); max-width: 22rem; background: var(--surface); color: var(--text); padding: var(--s5) var(--s5) var(--s4); font-family: var(--sans); font-size: 0.9375rem; position: relative;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  -webkit-mask: radial-gradient(circle at 50% 0, #0000 4px, #000 4.5px) 0 0 / 12px 51% repeat-x, radial-gradient(circle at 50% 100%, #0000 4px, #000 4.5px) 0 100% / 12px 51% repeat-x;
  mask: radial-gradient(circle at 50% 0, #0000 4px, #000 4.5px) 0 0 / 12px 51% repeat-x, radial-gradient(circle at 50% 100%, #0000 4px, #000 4.5px) 0 100% / 12px 51% repeat-x;
}
.receipt header { text-align: center; margin-bottom: var(--s4); }
.receipt .venue { font-family: var(--serif); font-weight: 600; font-size: 1.1875rem; letter-spacing: 0.01em; }
.receipt .meta { font-size: 0.8125rem; color: var(--muted); }
.receipt table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.receipt td { padding: 3px 0; vertical-align: baseline; }
.receipt td.v { text-align: right; white-space: nowrap; padding-left: var(--s3); }
.receipt td.d { width: 100%; }
.receipt .leader td.d { background: radial-gradient(circle, var(--leader) 0.7px, transparent 1px) 0 calc(100% - 0.42em) / 5px 3px repeat-x; }
.receipt .leader td.d span { background: var(--surface); padding-right: 6px; }
.receipt .qty { color: var(--muted); font-size: 0.8125rem; }
.receipt tr.rule td { border-top: 1px dashed var(--leader); padding-top: 7px; }
.receipt tr.adj td { color: var(--text); }
.receipt tr.adj td.d span::before { content: ""; }
.receipt tr.hl td { background: var(--accent-soft); }
.receipt tr.hl td:first-child { box-shadow: -6px 0 0 var(--accent-soft); }
.receipt tr.hl td:last-child { box-shadow: 6px 0 0 var(--accent-soft); }
.receipt tr.total td { border-top: 3px double var(--text); padding-top: 8px; font-weight: 700; font-size: 1.0625rem; }
.receipt tr.paid td { color: var(--muted); font-size: 0.8125rem; }
.receipt .fine { margin: var(--s4) 0 0; text-align: center; font-size: 0.75rem; color: var(--faint); letter-spacing: 0.04em; }
.receipt-note { font-family: var(--sans); font-size: 0.8125rem; color: var(--muted); text-align: center; margin: calc(-1 * var(--s3)) auto var(--s5); max-width: 22rem; }

/* ---------- small tables (bills, comparisons) */
.ledger { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 0.9375rem; margin: var(--s4) 0 var(--s5); font-variant-numeric: tabular-nums; }
.ledger caption { text-align: left; font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 650; padding-bottom: var(--s2); }
.ledger th, .ledger td { text-align: left; padding: 9px 8px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ledger thead th { font-size: 0.8125rem; color: var(--muted); font-weight: 600; border-bottom-color: var(--line-strong); }
.ledger td.num, .ledger th.num { text-align: right; padding-right: 0; white-space: nowrap; }
.ledger tbody th { font-weight: 650; }
.ledger .who { color: var(--muted); font-size: 0.875rem; }
.ledger tfoot td, .ledger tfoot th { border-bottom: 0; border-top: 1px solid var(--line-strong); font-weight: 700; }

/* ---------- receipt ladder (chapter 3) */
.ladder { list-style: none; margin: var(--s5) 0; padding: 0; font-family: var(--sans); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.ladder li { display: grid; grid-template-columns: 1fr auto; gap: var(--s3); padding: 10px 0 10px var(--s5); position: relative; border-bottom: 1px solid var(--line); }
.ladder li::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; border-left: 1.5px solid var(--leader); }
.ladder li::after { content: ""; position: absolute; left: 1px; top: 50%; width: 11px; height: 11px; margin-top: -6px; border-radius: 50%; border: 1.5px solid var(--ring); background: var(--bg); }
.ladder li.step-adj { color: var(--muted); }
.ladder li.step-adj::after { width: 7px; height: 7px; margin-top: -4px; left: 3px; border: 0; background: var(--leader); }
.ladder li.step-end::after { background: var(--accent); border-color: var(--accent-edge); }
.ladder li.step-end { font-weight: 700; border-bottom: 0; }
.ladder li:first-child::before { top: 50%; }
.ladder li:last-child::before { bottom: 50%; }
.ladder .v { text-align: right; white-space: nowrap; }
.ladder .sub { display: block; font-size: 0.8125rem; color: var(--muted); font-weight: 400; }

/* ---------- settlement diagram */
.flow { margin: var(--s4) 0 var(--s5); }
.flow svg { width: 100%; max-width: 30rem; margin: 0 auto; overflow: visible; }
.flow .edge { fill: none; stroke: var(--leader); stroke-width: 1.5; }
.flow .arrow { fill: var(--leader); }
.flow .ring { fill: var(--bg); stroke: var(--ring); stroke-width: 1.5; }
.flow .node { fill: var(--accent); stroke: var(--accent-edge); stroke-width: 1.5; }
.flow .name { fill: var(--text); font-family: var(--serif); font-size: 17px; font-weight: 600; }
.flow .note { fill: var(--muted); font-family: var(--sans); font-size: 12px; }
.flow .amt-label { fill: var(--text); font-family: var(--serif); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.flow .amt-bg { fill: var(--bg); }
.flow figcaption { font-family: var(--sans); font-size: 0.8125rem; color: var(--muted); text-align: center; margin-top: var(--s3); }
.flow-legend { display: flex; justify-content: center; gap: var(--s5); font-family: var(--sans); font-size: 0.8125rem; color: var(--muted); margin-top: var(--s2); flex-wrap: wrap; }
.flow-legend span { display: inline-flex; align-items: center; gap: 6px; }
.flow-legend i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.flow-legend .i-ring { border: 1.5px solid var(--ring); }
.flow-legend .i-node { background: var(--accent); box-shadow: 0 0 0 1.5px var(--accent-edge); }

/* side-by-side comparison */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); margin: var(--s5) 0; font-family: var(--sans); }
.compare > div { border-top: 1px solid var(--line-strong); padding-top: var(--s3); }
.compare .k { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
.compare .n { font-family: var(--serif); font-size: 2.25rem; line-height: 1.1; font-weight: 560; margin: var(--s2) 0 0; }
.compare .s { font-size: 0.875rem; color: var(--muted); }
.compare .together { border-top: 3px solid var(--accent); }

/* ---------- optional explanations (native disclosure) */
.aside { margin: var(--s4) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.aside + .aside { border-top: 0; margin-top: calc(-1 * var(--s4)); }
.aside > summary { list-style: none; cursor: pointer; padding: var(--s4) 2rem var(--s4) 0; position: relative; font-family: var(--sans); font-weight: 650; font-size: 1rem; line-height: 1.35; min-height: 44px; }
.aside > summary::-webkit-details-marker { display: none; }
.aside > summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 1.5rem/1 var(--sans); color: var(--muted); }
.aside[open] > summary::after { content: "−"; }
.aside > summary .kind { display: block; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--info); font-weight: 650; margin-bottom: 2px; }
.aside .body { padding: 0 0 var(--s4); font-size: 1.0625rem; }
.aside .body > :last-child { margin-bottom: 0; }

/* plain notes */
.note-box { font-family: var(--sans); font-size: 0.9375rem; line-height: 1.5; background: var(--sunken); border-radius: 12px; padding: var(--s4); margin: var(--s5) 0; }
.note-box strong { font-weight: 650; }
.note-box p:last-child { margin: 0; }
.quote { font-family: var(--sans); font-size: 0.9375rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: var(--s3) var(--s4); margin: var(--s3) 0 var(--s4); color: var(--text); }

/* try it yourself */
.try { margin: var(--s6) 0 var(--s4); padding-top: var(--s4); border-top: 2px solid var(--text); }
.try h2 { margin-top: 0; font-size: 1.25rem; }
.try dl { display: grid; grid-template-columns: auto 1fr; gap: 6px var(--s4); font-family: var(--sans); font-size: 0.9375rem; margin: 0 0 var(--s4); }
.try dt { color: var(--muted); }
.try dd { margin: 0; }
.button { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); box-shadow: inset 0 0 0 1.5px var(--accent-edge); font-family: var(--sans); font-weight: 700; text-decoration: none; }
.button:hover { filter: brightness(0.97); }

/* chapter pager */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin: var(--s6) 0 0; padding-top: var(--s4); border-top: 1px solid var(--line); font-family: var(--sans); }
.pager a, .pager span { display: block; text-decoration: none; color: var(--text); padding: var(--s2) 0; min-height: 44px; }
.pager .dir { display: block; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
.pager .t { font-family: var(--serif); font-size: 1.125rem; font-weight: 600; }
.pager .next { text-align: right; }
.pager .soon .t { color: var(--faint); }

.site-foot { max-width: var(--measure); margin: 0 auto; padding: var(--s5) var(--s4) var(--s7); font-family: var(--sans); font-size: 0.8125rem; color: var(--muted); border-top: 1px solid var(--line); }
.site-foot p { margin: 0 0 var(--s2); }
.proto-flag { display: inline-block; font-family: var(--sans); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--warn); border: 1px solid currentColor; border-radius: 999px; padding: 2px 8px; }

/* ---------- landing */
.cover { padding: var(--s5) 0 var(--s4); }
.cover .title { font-family: var(--serif); font-weight: 560; font-size: clamp(3rem, 15vw, 4.5rem); line-height: 0.98; letter-spacing: -0.03em; margin: 0 0 var(--s3); }
.cover .title .dot { color: var(--text); position: relative; }
.cover .subtitle { font-style: italic; font-size: 1.25rem; line-height: 1.3; color: var(--muted); margin: 0 0 var(--s3); max-width: 26rem; }
.cover .functional { font-family: var(--sans); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 var(--s3); }
.welcome { font-size: 1.0625rem; color: var(--text); margin: 0; }
.start-here { display: block; margin: var(--s3) 0 var(--s4); padding: var(--s3) var(--s4) var(--s3) var(--s4); border-left: 3px solid var(--accent); text-decoration: none; color: var(--text); border-radius: 0; }
.start-here .k { font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.start-here .t { display: block; font-size: 1.625rem; font-weight: 580; letter-spacing: -0.015em; line-height: 1.15; margin: 2px 0 4px; }
.start-here .s { font-family: var(--sans); font-size: 0.9375rem; color: var(--muted); }
.start-here .go { font-family: var(--sans); font-weight: 700; font-size: 0.9375rem; color: var(--text); display: inline-block; margin-top: var(--s3); border-bottom: 1.5px solid var(--accent-line); }
.situations { list-style: none; margin: var(--s3) 0 0; padding: 0; }
.situations li { border-bottom: 1px solid var(--line); }
.situations li:first-child { border-top: 1px solid var(--line); }
.situations a, .situations .soon-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--s3); padding: 14px 0; text-decoration: none; color: var(--text); min-height: 56px; }
.situations .q { font-size: 1.1875rem; line-height: 1.3; }
.situations .c { font-family: var(--sans); font-size: 0.8125rem; color: var(--muted); display: block; margin-top: 2px; }
.situations .arrow { font-family: var(--sans); color: var(--muted); }
.situations .soon-row .q { color: var(--faint); }
.saved-box { margin: var(--s5) 0; padding: var(--s4) var(--s4) var(--s4); border: 1px solid var(--line-strong); border-radius: 14px; font-family: var(--sans); font-size: 0.9375rem; line-height: 1.5; position: relative; }
.saved-box h2 { font-family: var(--serif); font-size: 1.375rem; margin: 0 0 var(--s2); }
.saved-box p { margin: 0 0 var(--s2); }
.saved-box ul { margin: 0 0 var(--s3); padding-left: 1.1em; }
.saved-box li { margin-bottom: 4px; }
.qa { margin-top: var(--s3); }
.contents { columns: 1; list-style: none; padding: 0; margin: var(--s3) 0 0; font-family: var(--sans); font-size: 0.9375rem; counter-reset: ch -1; }
.contents li { break-inside: avoid; border-bottom: 1px solid var(--line); }
.contents a, .contents span.row { display: flex; gap: 12px; align-items: baseline; padding: 11px 0; text-decoration: none; color: var(--text); min-height: 44px; }
.contents .n { font-family: var(--serif); color: var(--muted); width: 1.6em; flex: none; font-variant-numeric: tabular-nums; font-size: 1rem; }
.contents .soon .t { color: var(--faint); }

@media (min-width: 48rem) {
  body { font-size: 1.25rem; }
  main { padding-bottom: 96px; }
  .wide { margin-left: -4rem; margin-right: -4rem; }
  .shot-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); align-items: start; }
  .contents { columns: 2; column-gap: var(--s6); }
  .chapter-head { padding-top: 80px; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print {
  .masthead, .pager, .skip, .open-app, .toc-menu { display: none; }
  .aside[open] > summary::after, .aside > summary::after { content: ""; }
  body { background: #fff; color: #000; }
}

/* ---------- Stage 3 additions */
.cover .title { margin-bottom: var(--s2); }
.sharetext { margin: var(--s3) 0 var(--s2); }
.sharetext pre { font-family: var(--sans); font-size: 0.875rem; line-height: 1.5; white-space: pre-wrap; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--info); border-radius: 0 10px 10px 0; padding: var(--s3) var(--s4); margin: 0; max-width: 360px; color: var(--text); }
.sharetext figcaption { font-family: var(--sans); font-size: 0.8125rem; color: var(--muted); margin-top: var(--s2); }
ol.plain { padding-left: 1.3em; margin: 0 0 var(--s4); }
ol.plain li { margin-bottom: var(--s2); }
.plain-list { padding-left: 1.1em; margin: 0 0 var(--s4); }
.plain-list li { margin-bottom: var(--s2); }
dl.inputs { display: grid; grid-template-columns: auto 1fr; gap: 6px var(--s4); font-family: var(--sans); font-size: 0.9375rem; margin: 0 0 var(--s3); padding: var(--s3) var(--s4); background: var(--sunken); border-radius: 10px; }
dl.inputs dt { color: var(--muted); }
dl.inputs dt .ui { color: var(--text); }
dl.inputs dd { margin: 0; }
.items-list { font-family: var(--sans); font-size: 0.9375rem; padding-left: 1.1em; margin: 0 0 var(--s3); }
.items-list li { margin-bottom: 4px; }
.steps .aside { margin: var(--s3) 0; }
.receipt tr.who-row td { font-size: 0.75rem; color: var(--info); padding: 0 0 4px; font-style: italic; }
.glossary { margin: var(--s4) 0; }
.glossary dt { font-family: var(--sans); font-weight: 650; font-size: 1rem; margin-top: var(--s4); }
.glossary dd { margin: 4px 0 0; padding-bottom: var(--s3); border-bottom: 1px solid var(--line); }
.more-link { font-family: var(--sans); font-size: 0.9375rem; font-weight: 600; margin: var(--s3) 0 0; }
.shot-row .shot figcaption { max-width: none; }
.steps-head { font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 650; margin: var(--s5) 0 var(--s3); }
.brand, .open-app { min-height: 44px; display: inline-flex; align-items: center; }
.open-app { border-bottom: 0; text-decoration: underline; text-decoration-color: var(--accent-line); text-decoration-thickness: 1.5px; text-underline-offset: 0.3em; padding: 0 2px; }
@media (max-width: 380px) {
  .ledger { font-size: 0.8125rem; }
  .ledger th, .ledger td { padding-right: 4px; }
  .ledger td.num, .ledger th.num { padding-left: 2px; }
}
.ledger td.num, .ledger th.num { padding-left: 12px; }
@media (max-width: 380px) { .ledger td.num, .ledger th.num { padding-left: 6px; } }

/* Generated from the capture: overlay callout positions (percent of each screenshot crop). */
.callout-c1-equally { left: 34.19%; top: 68.58%; width: 31.63%; height: 15.37%; }
