/* Stocklet design system — tokens and components shared by every page.
   Loaded by index, app, leaderboard, list, terms and privacy; nothing page-specific belongs here.
   Palette and motif come from brand/stocklet/source; see brand/stocklet/README.md. */

/* Figtree (SIL Open Font License 1.1) — self-hosted so the pages need no
   third-party request and keep their typography offline. Variable weight 300-900:
   one file covers body text through the heavy display weights.
   Source: https://fonts.google.com/specimen/Figtree */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/fonts/figtree-latin.woff2") format("woff2");
  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: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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;
}

/* ---------------------------------------------------------------- tokens */
:root {
  /* colour */
  --vermilion: #FF5B35;        /* fills and large shapes only: 2.8:1 on warm white */
  --vermilion-deep: #ED441D;   /* hover/pressed */
  --vermilion-ink: #C43A17;    /* the accent as small text: 4.8:1 on warm white */
  --vermilion-wash: #FFEDE7;
  --graphite: #171A19;
  --graphite-soft: #2B302E;
  --graphite-line: #3A403D;
  --warm-white: #F5F3ED;
  --white: #FFFFFF;

  --ink: var(--graphite);
  --ink-2: #565C59;          /* secondary text: 6.5:1 on warm white */
  --ink-3: #666C69;          /* tertiary text: 4.8:1 on warm white, 5.4:1 on white */
  --on-dark: var(--warm-white);
  --on-dark-2: #A9AFAC;      /* secondary text on graphite: 6.8:1 */

  --line: #DEDBD2;           /* hairline on warm white */
  --line-2: #E9E6DE;         /* quieter hairline on white */
  --rule: var(--graphite);   /* the heavy rule that opens a data block */

  /* status: never hue alone — each state also carries a label and a dot */
  --go: #1A6B3C;
  --go-wash: #E6F0E8;
  --stop: #A3281A;
  --stop-wash: #FAE8E4;
  --wait: #7A5200;
  --wait-wash: #F7EEDC;

  /* type */
  --display: "Figtree", "Inter Tight", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --body: "Figtree", "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --fs-d1: clamp(52px, 9vw, 104px);
  --fs-d2: clamp(32px, 4.6vw, 52px);
  --fs-d3: clamp(24px, 3vw, 34px);
  --fs-h: 21px;
  --fs-body: 17px;
  --fs-sm: 15px;
  --fs-xs: 13.5px;

  /* space */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  /* radii — the mark's own corner language: generous, but still square */
  --r-s: 6px; --r-m: 12px; --r-l: 20px; --r-xl: 28px; --r-pill: 999px;

  /* motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 120ms;
  --t-mid: 200ms;
  --t-slow: 320ms;

  --measure: 34em;           /* comfortable reading width */
  --page: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
}

@media (prefers-reduced-motion: reduce) {
  :root { --t-fast: 1ms; --t-mid: 1ms; --t-slow: 1ms; }
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--warm-white);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}
h1 { font-size: var(--fs-d2); }
h2 { font-size: var(--fs-d3); }
h3 { font-size: var(--fs-h); letter-spacing: -0.02em; }
h4 { font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0; }
p { margin: 0; }
p + p { margin-top: var(--s4); }
ul, ol { margin: 0; padding-left: 1.2em; }
li + li { margin-top: var(--s2); }

a { color: inherit; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { text-decoration-color: var(--vermilion); }

code, kbd, samp { font-family: var(--mono); font-size: 0.93em; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--graphite);
  outline-offset: 2px;
  border-radius: var(--r-s);
}
.on-accent :focus-visible, .on-dark :focus-visible { outline-color: var(--warm-white); }

.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;
}

/* skip link */
.skip {
  position: absolute; left: var(--s4); top: -100px; z-index: 50;
  background: var(--graphite); color: var(--on-dark);
  padding: var(--s3) var(--s4); border-radius: var(--r-m); text-decoration: none;
}
.skip:focus { top: var(--s4); }

/* --------------------------------------------------------------- layout */
.page { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: var(--gutter); }
.page--narrow { max-width: 760px; }
.band { padding-block: var(--s9); }
.band--tight { padding-block: var(--s7); }
.band + .band { border-top: 1px solid var(--line); }
.stack > * + * { margin-top: var(--s4); }
.stack-lg > * + * { margin-top: var(--s6); }
.measure { max-width: var(--measure); }

.eyebrow {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.lede { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); max-width: var(--measure); }
.fine { font-size: var(--fs-xs); color: var(--ink-3); }
.fine a { color: var(--ink-2); }

/* section heading with the heavy opening rule */
.section-head { border-top: 2px solid var(--rule); padding-top: var(--s4); margin-bottom: var(--s5); }
.section-head .eyebrow { display: block; margin-bottom: var(--s3); }

/* ---------------------------------------------------------------- header */
.masthead { background: var(--warm-white); border-bottom: 1px solid var(--line); }
.masthead .page {
  display: flex; align-items: center; gap: var(--s5);
  min-height: 76px; padding-block: var(--s3);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand img { width: 128px; height: auto; }
.brand--sm img { width: 112px; }
/* Display is left to .only-wide / .menu below so the narrow-screen rule isn't
   outranked by this selector's higher specificity. */
.masthead nav { margin-left: auto; align-items: center; gap: var(--s5); }
.masthead nav a.navlink {
  text-decoration: none; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2);
  padding: var(--s2) 0; border-bottom: 2px solid transparent; transition: color var(--t-fast) var(--ease);
}
.masthead nav a.navlink:hover { color: var(--ink); border-bottom-color: var(--vermilion); }
.masthead nav a.navlink[aria-current="page"] { color: var(--ink); border-bottom-color: var(--graphite); }

/* disclosure menu for narrow screens — no script needed */
.menu { position: relative; margin-left: auto; }
.menu > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: var(--s2);
  height: 44px; padding: 0 var(--s4); border-radius: var(--r-m);
  border: 1px solid var(--line); background: var(--white);
  font-size: var(--fs-sm); font-weight: 600;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.menu[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.menu-sheet {
  position: absolute; right: 0; top: calc(100% + var(--s2)); z-index: 40;
  min-width: 232px; padding: var(--s3);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-l);
  box-shadow: 0 18px 40px -24px rgba(23, 26, 25, 0.45);
  display: grid; gap: var(--s1);
}
.menu-sheet a {
  text-decoration: none; font-weight: 600; font-size: var(--fs-sm);
  padding: var(--s3); border-radius: var(--r-m);
}
.menu-sheet a:hover { background: var(--warm-white); }
.only-wide { display: none; }
@media (min-width: 900px) {
  .only-wide { display: flex; }
  .menu { display: none; }
}

/* ---------------------------------------------------------------- button */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 var(--s5);
  border: 1px solid transparent; border-radius: var(--r-m);
  background: var(--vermilion); color: var(--graphite);
  font-family: var(--display); font-weight: 700; font-size: var(--fs-sm); letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn:hover { background: var(--vermilion-deep); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--dark { background: var(--graphite); color: var(--on-dark); }
.btn--dark:hover { background: var(--graphite-soft); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--white); border-color: var(--graphite); }
.btn--on-accent { background: var(--graphite); color: var(--on-dark); }
.btn--on-accent:hover { background: var(--graphite-soft); }
.btn--sm { min-height: 40px; padding: 0 var(--s4); font-size: var(--fs-xs); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn[data-busy="true"] { cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }

/* ---------------------------------------------------------------- surface */
.card {
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--r-l);
  padding: var(--s5);
}
.card--flat { background: transparent; border-color: var(--line); }
.card--dark { background: var(--graphite); border-color: var(--graphite); color: var(--on-dark); }
.card--dark .fine, .card--dark .lede { color: var(--on-dark-2); }
.card--accent { background: var(--vermilion); border-color: var(--vermilion); color: var(--graphite); }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s4); }

/* --------------------------------------------------------------- receipt */
/* Financial rows read top-down: what it is, then the number, then the terms. */
.receipt { border-top: 2px solid var(--rule); }
.receipt-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s4);
  align-items: center; padding: var(--s4) 0; border-bottom: 1px solid var(--line);
}
.receipt-row .asset { display: flex; align-items: center; gap: var(--s3); min-width: 0; }
.receipt-row .ticker { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.receipt-row .meta { font-size: var(--fs-xs); color: var(--ink-3); }
.receipt-row .amount {
  font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.03em;
  text-align: right; font-variant-numeric: tabular-nums; line-height: 1.05;
}
.receipt-row .terms { font-size: var(--fs-xs); color: var(--ink-3); text-align: right; margin-top: 2px; }
.receipt-row[data-zero="true"] .amount { color: var(--ink-3); }
.receipt-row.is-total { border-bottom: 0; border-top: 2px solid var(--rule); }

.amount-neg { color: var(--stop); }
.amount-pos { color: var(--go); }

/* asset glyph — the mark, tinted, standing in for a token */
.glyph {
  width: 34px; height: 34px; flex: none; border-radius: var(--r-s);
  display: grid; place-items: center;
  background: var(--vermilion-wash); color: var(--vermilion);
  font-family: var(--display); font-weight: 800; font-size: 12px; letter-spacing: -0.02em;
  overflow: hidden;
}
.glyph svg { width: 17px; height: auto; }

/* ----------------------------------------------------------------- forms */
/* align-content keeps label/input/hint at their natural heights when a field sits
   next to a taller one in a .field-row, instead of stretching apart */
.field { display: grid; gap: var(--s2); align-content: start; }
.field > label { font-size: var(--fs-sm); font-weight: 600; }
.field .hint { font-size: var(--fs-xs); color: var(--ink-3); }
.field-row { display: grid; gap: var(--s4); grid-template-columns: 1fr 1fr; }
@media (max-width: 680px) { .field-row { grid-template-columns: 1fr; } }

input[type="text"], input[type="email"], input:not([type]), select, textarea {
  width: 100%; min-height: 48px; padding: var(--s3) var(--s4);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m);
  font-size: 16px; /* never smaller: iOS zooms below 16px */
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
select { appearance: none; padding-right: var(--s8);
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: right 26px center, right 20px center;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-3); }
input:focus, select:focus, textarea:focus { border-color: var(--graphite); box-shadow: inset 0 0 0 1px var(--graphite); outline: none; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--stop); box-shadow: inset 0 0 0 1px var(--stop); }
input[disabled], select[disabled], textarea[disabled] { background: var(--warm-white); color: var(--ink-3); cursor: not-allowed; }
::placeholder { color: var(--ink-3); opacity: 1; }

.input-affix { position: relative; display: flex; align-items: center; }
.input-affix input { padding-right: 84px; }
.input-affix .affix {
  position: absolute; right: var(--s2);
  border: 0; background: var(--warm-white); color: var(--ink);
  height: 34px; padding: 0 var(--s3); border-radius: var(--r-s);
  font-size: var(--fs-xs); font-weight: 700; cursor: pointer;
}
.input-affix .affix:hover { background: var(--vermilion-wash); }

.honeypot { position: absolute; left: -9999px; top: -9999px; }

/* ---------------------------------------------------------------- status */
.note {
  display: flex; gap: var(--s3); align-items: flex-start;
  padding: var(--s4); border-radius: var(--r-m);
  border: 1px solid var(--line); background: var(--white);
  font-size: var(--fs-sm);
}
.note::before {
  content: ""; width: 10px; height: 10px; border-radius: 3px; flex: none;
  margin-top: 6px; background: var(--ink-3);
}
.note b { display: block; }
.note--ok { background: var(--go-wash); border-color: #C6DDCC; }
.note--ok::before { background: var(--go); }
.note--bad { background: var(--stop-wash); border-color: #EFCAC1; }
.note--bad::before { background: var(--stop); }
.note--wait { background: var(--wait-wash); border-color: #E4D3AE; }
.note--wait::before { background: var(--wait); }

.inline-msg { font-size: var(--fs-sm); color: var(--ink-2); min-height: 1.5em; }
.inline-msg--ok { color: var(--go); font-weight: 600; }
.inline-msg--bad { color: var(--stop); font-weight: 600; }

.pill {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: 4px var(--s3); border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--white);
  font-size: var(--fs-xs); font-weight: 600; white-space: nowrap;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--ink-3); }
.pill--ok { background: var(--go-wash); border-color: #C6DDCC; color: var(--go); }
.pill--ok::before { background: var(--go); }
.pill--wait { background: var(--wait-wash); border-color: #E4D3AE; color: var(--wait); }
.pill--wait::before { background: var(--wait); }
.pill--bad { background: var(--stop-wash); border-color: #EFCAC1; color: var(--stop); }
.pill--bad::before { background: var(--stop); }
.pill--plain::before { display: none; }
.pill--mono { font-family: var(--mono); font-weight: 500; }

/* ----------------------------------------------------------------- chips */
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip {
  display: inline-flex; align-items: center; gap: var(--s2);
  min-height: 40px; padding: 0 var(--s4);
  border: 1px solid var(--line); border-radius: var(--r-m);
  background: var(--white); cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: var(--fs-xs);
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.chip:hover { border-color: var(--graphite); }
.chip[aria-pressed="true"], .chip[aria-selected="true"] {
  background: var(--vermilion); border-color: var(--vermilion); color: var(--graphite);
}

/* ---------------------------------------------------------------- tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
table.data th {
  text-align: left; font-size: var(--fs-xs); font-weight: 700; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0 var(--s4) var(--s3) 0; border-bottom: 2px solid var(--rule); white-space: nowrap;
}
table.data td { padding: var(--s4) var(--s4) var(--s4) 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th:last-child, table.data td:last-child { padding-right: 0; }
table.data .num {
  font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right;
}
table.data th.num-h { text-align: right; }
table.data .num--l, table.data th.num--l { text-align: left; }
table.data .rank { font-family: var(--mono); font-size: var(--fs-xs); color: var(--ink-3); margin-right: var(--s3); }
table.data tr:last-child td { border-bottom: 0; }

/* --------------------------------------------------------------- loading */
.skeleton { position: relative; overflow: hidden; background: var(--line-2); border-radius: var(--r-s); color: transparent; }
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  animation: sweep 1.3s infinite;
}
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .skeleton::after { animation: none; } }
.skeleton-row { height: 62px; margin-bottom: var(--s2); }

.empty {
  padding: var(--s7) var(--s5); text-align: center;
  border: 1px dashed var(--line); border-radius: var(--r-l); color: var(--ink-2);
}
.empty h3 { margin-bottom: var(--s2); }

/* ----------------------------------------------------------------- motif */
/* The one signature graphic: a block whose corner has come away.
   Used large and cropped in campaign bands, and small as a success beat. */
.motif { color: var(--graphite); }
.motif svg { width: 100%; height: auto; }
.motif--crop { position: absolute; pointer-events: none; }

.band--accent {
  background: var(--vermilion); color: var(--graphite);
  position: relative; overflow: hidden;
}
.band--accent .page { position: relative; z-index: 1; }
/* Composed like the campaign banner: the block runs off the bottom edge while the
   corner that came away stays whole, tilted just off square. */
.band--accent .motif--crop {
  right: clamp(8px, 3vw, 52px); bottom: -28%;
  width: min(50vw, 500px); color: var(--graphite);
  transform: rotate(-8deg);
}
@media (max-width: 860px) {
  /* behind the copy rather than beside it, so the text keeps its measure */
  .band--accent .motif--crop { right: -18%; bottom: -14%; width: 74vw; opacity: 0.14; }
}

.corner-pop .corner { transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .corner-pop .corner { animation: pop var(--t-slow) var(--ease) both; }
  @keyframes pop {
    from { transform: translate(-14%, 18%) scale(0.82); opacity: 0; }
    to { transform: none; opacity: 1; }
  }
}

/* ---------------------------------------------------------------- footer */
.footer { background: var(--graphite); color: var(--on-dark); padding-block: var(--s8) var(--s7); }
.footer a { color: var(--on-dark); text-decoration: none; }
.footer a:hover { text-decoration: underline; text-decoration-color: var(--vermilion); }
.footer-grid { display: grid; gap: var(--s7); grid-template-columns: minmax(220px, 1fr) repeat(2, auto); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: var(--s6); } }
.footer h4 { color: var(--on-dark-2); text-transform: uppercase; letter-spacing: 0.1em; font-size: var(--fs-xs); margin-bottom: var(--s3); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.footer .brand img { width: 136px; }
.footer .legal { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--graphite-line); color: var(--on-dark-2); font-size: var(--fs-xs); display: grid; gap: var(--s3); }
.footer .legal p { max-width: 72ch; }

/* --------------------------------------------------------------- utility */
.mono { font-family: var(--mono); }
.break { overflow-wrap: anywhere; }
.nowrap { white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
.mt0 { margin-top: 0; }
.mt3 { margin-top: var(--s3); }
.mt4 { margin-top: var(--s4); }
.mt5 { margin-top: var(--s5); }
.mt6 { margin-top: var(--s6); }
.mt7 { margin-top: var(--s7); }
.mt8 { margin-top: var(--s8); }

/* a command the reader is meant to copy, e.g. the reply that sends a tip */
.command {
  display: inline-flex; align-items: center; gap: var(--s3); flex-wrap: wrap;
  font-family: var(--mono); font-size: var(--fs-sm);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m);
  padding: var(--s3) var(--s4);
}
.command b { font-weight: 700; }
.card--dark .command { background: var(--graphite-soft); border-color: var(--graphite-line); }
.copy {
  border: 0; background: transparent; color: inherit; cursor: pointer;
  font-family: var(--body); font-size: var(--fs-xs); font-weight: 700;
  text-decoration: underline; text-underline-offset: 2px; padding: var(--s1) var(--s2);
}

/* ------------------------------------------------------------------ prose */
/* Terms and Privacy: one column, generous leading, headings that scan. */
.prose { max-width: 40em; }
.prose > h2 {
  margin-top: var(--s8); padding-top: var(--s4);
  border-top: 2px solid var(--rule);
  font-size: clamp(21px, 2.2vw, 26px);
}
.prose > h2:first-of-type { margin-top: var(--s7); }
.prose > p, .prose > ul { margin-top: var(--s4); }
.prose > ul { padding-left: 1.1em; }
.prose li { margin-top: var(--s2); }
.prose code { background: var(--white); border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 5px; }
.updated { font-size: var(--fs-xs); color: var(--ink-3); margin-top: var(--s3); }
.toc { margin-top: var(--s6); padding: var(--s4) var(--s5); background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r-l); }
.toc h2 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); }
.toc ul { list-style: none; padding: 0; margin: var(--s3) 0 0; columns: 2; column-gap: var(--s6); }
@media (max-width: 620px) { .toc ul { columns: 1; } }
.toc li { margin-top: var(--s1); font-size: var(--fs-sm); }

/* Phones: a financial row reads better stacked than squeezed into two columns. */
@media (max-width: 560px) {
  .receipt-row { grid-template-columns: 1fr; gap: var(--s1); }
  .receipt-row .amount, .receipt-row .terms { text-align: left; }
  .receipt-row .amount { margin-top: var(--s2); }
}
