/* Illuminate Coffee: slate-grey page, thermal-receipt centerpiece, lit where the evidence is */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 900; font-stretch: 62% 125%; font-display: swap; src: url(fonts/archivo-latin.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/plexmono-400-latin.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/plexmono-500-latin.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/plexmono-600-latin.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --ground: #b4bfca;
  --ground-rgb: 180, 191, 202;
  --paper: #fdfcf9;
  --rpaper: #fffefb;
  --ink: #12171b;
  --ink-2: #414950;
  --ink-3: #5f6770;
  --rule: #ccd2d7;
  --rule-soft: #e5e8ec;
  --red: #be241f;
  --light: 255, 226, 160;
  /* ordinal ramp, farm -> boardroom (validated, one hue, light -> dark) */
  --s1: #a6b6c7; --s2: #8ca1b7; --s3: #6f89a3; --s4: #57728e; --s5: #425b75; --s6: #30455a; --s7: #1e2a38;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--font-display); font-size: 1.0625rem; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
button { font: inherit; color: inherit; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 4px; }
.skip:focus { top: 12px; }
.mono { font-family: var(--font-mono); }
.wrap { max-width: 1120px; margin-inline: auto; }
.lamp { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 10px; vertical-align: 1px; background: #ffd66b; box-shadow: 0 0 10px 2px rgba(255, 214, 107, .85); }
.foot .lamp { box-shadow: 0 0 12px 3px rgba(255, 214, 107, .7); }

/* ---------- masthead: sticky on wide screens, with the current section marked ---------- */
.masthead { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px var(--gutter); background: rgba(var(--ground-rgb), .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(18, 23, 27, .25); }
.wordmark { display: inline-block; padding: 8px 0; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; font-size: 1rem; white-space: nowrap; }
.topnav { display: flex; gap: 4px; }
.topnav a { text-decoration: none; font-weight: 500; padding: 8px 14px; border-radius: 999px; transition: background .15s, color .15s; }
.topnav a:hover { background: rgba(18, 23, 27, .08); }
.topnav a[aria-current="true"] { background: var(--ink); color: var(--ground); font-weight: 600; }
main > section { scroll-margin-top: 64px; }
.tabbar { display: none; }

/* ---------- hero: receipt on the left; copy, share tiles, chips and assumptions on the right ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  grid-template-rows: auto auto auto 1fr;
  grid-template-areas: "receipt copy" "receipt shares" "receipt chips" "receipt assume";
  column-gap: clamp(28px, 5vw, 72px); row-gap: 0;
  padding: clamp(36px, 6vw, 84px) var(--gutter) clamp(48px, 7vw, 96px);
  align-items: start; max-width: 1200px; margin-inline: auto;
  background: radial-gradient(ellipse 46% 60% at 27% 50%, rgba(var(--light), .62) 0%, rgba(var(--light), .22) 48%, rgba(var(--light), 0) 74%), var(--ground);
}
.hero__copy { grid-area: copy; }
.picker { grid-area: chips; }
.hero__assume { grid-area: assume; }
.shares { grid-area: shares; }
.receipt-wrap { grid-area: receipt; justify-self: center; width: min(100%, 440px); }

h1 { margin: 0 0 .45em; font-size: clamp(2.6rem, 6.4vw, 5.4rem); line-height: .94; letter-spacing: -.025em; font-weight: 900; font-stretch: 108%; text-wrap: balance; }
.dek { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.4; max-width: 34em; margin: 0 0 1.6em; color: var(--ink-2); }
h2 { margin: 0 0 .35em; font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: .98; letter-spacing: -.02em; font-weight: 900; font-stretch: 106%; text-wrap: balance; }
h3 { margin: 0 0 .4em; font-size: 1.2rem; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.og-only { display: none; }

/* item picker: pills on wide screens, a segmented control on phones */
.picker { margin: 0 0 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; min-inline-size: 0; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip__label { display: inline-block; padding: 7px 14px; border: 1.5px solid var(--ink); border-radius: 999px; font-weight: 600; font-size: .95rem; line-height: 1.2; transition: background .15s, color .15s; }
.chip__short { display: none; }
.chip:hover .chip__label { background: rgba(18, 23, 27, .08); }
.chip input:checked + .chip__label { background: var(--ink); color: var(--ground); }
.chip input:focus-visible + .chip__label { outline: 2px solid var(--ink); outline-offset: 3px; }

/* assumption slider */
.assume { margin: 0 0 24px; max-width: 36em; }
.assume__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; }
.assume__row output { font-weight: 500; font-size: .95rem; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; margin: 6px 0 4px; background: transparent; --fill: 50%; --knob-ring: var(--ground); }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--ink) var(--fill), rgba(18, 23, 27, .22) var(--fill)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11px; border-radius: 50%; background: var(--ink); border: 3px solid var(--knob-ring); box-shadow: 0 0 0 1.5px var(--ink); cursor: pointer; }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(18, 23, 27, .22); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--ink); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--ink); border: 3px solid var(--knob-ring); box-shadow: 0 0 0 1.5px var(--ink); cursor: pointer; }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1.5px var(--ink), 0 0 0 5px var(--knob-ring), 0 0 0 7px var(--ink); }
.whatif input[type="range"] { --knob-ring: var(--paper); }
.assume__note, .fineprint { font-size: .9rem; line-height: 1.45; color: var(--ink-2); margin: 0; max-width: 40em; }
.fineprint { border-top: 1px solid rgba(18, 23, 27, .3); padding-top: 14px; }

/* benchmark price chart */
.chart { margin: 18px 0 0; }
.chart__cap { font-size: .82rem; line-height: 1.35; color: var(--ink-2); margin-bottom: 8px; }
.chart__cap span + span::before { content: " · "; }
.chart__src { color: var(--ink-3); }
.chart__svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart__grid { stroke: rgba(18, 23, 27, .14); stroke-width: 1; }
.chart__tick, .chart__val { font-family: var(--font-mono); font-size: 10.5px; fill: var(--ink-2); }
.chart__val { font-weight: 600; fill: var(--ink); paint-order: stroke; stroke: var(--ground); stroke-width: 2.5px; stroke-linejoin: round; }
.chart__note, .chart__you text { font-family: var(--font-display); font-size: 11px; fill: var(--ink-3); paint-order: stroke; stroke: var(--ground); stroke-width: 2.5px; stroke-linejoin: round; }
.chart__loss { fill: rgba(190, 36, 31, .07); }
.chart__be { stroke: rgba(190, 36, 31, .55); stroke-width: 1; }
.chart__line { fill: none; stroke: var(--s6); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart__pt { fill: var(--s6); stroke: var(--ground); stroke-width: 2; }
.chart__pt.is-below { fill: var(--red); }
.chart__pt.is-partial { fill: var(--ground); stroke: var(--s6); }
.chart__pt.is-partial.is-below { stroke: var(--red); }
.chart__hit { fill: transparent; cursor: default; }
.chart__hit:focus-visible { outline: none; stroke: var(--ink); stroke-width: 2; }
.chart__you line { stroke: rgba(18, 23, 27, .55); stroke-width: 1; }
.chart__you text { fill: var(--ink); font-weight: 600; }
.chart__table { margin-top: 8px; }
.chart__table summary { cursor: pointer; color: var(--ink-2); font-size: .85rem; padding: 10px 0; }
.chart__table table { border-collapse: collapse; margin-top: 8px; font-family: var(--font-mono); font-size: .78rem; font-variant-numeric: tabular-nums; }
.chart__table th, .chart__table td { text-align: left; padding: 4px 14px 4px 0; border-bottom: 1px solid rgba(18, 23, 27, .15); font-weight: 500; }
.chart__table th[scope="col"] { color: var(--ink-2); font-weight: 600; }

/* the farmer's share of every item, above the fold: five stat tiles that also pick the item, the chosen one lit */
.shares { margin: 0 0 26px; }
.shares__cap { margin: 0 0 8px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.shares__row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.share { display: block; min-width: 0; padding: 8px 10px 9px; border: 1px solid rgba(18, 23, 27, .25); border-radius: 6px; cursor: pointer; transition: background .15s, border-color .15s; }
.share:hover { background: rgba(18, 23, 27, .06); border-color: rgba(18, 23, 27, .55); }
.share.is-current { background: linear-gradient(180deg, rgba(var(--light), .85), rgba(var(--light), .5)); border-color: var(--ink); }
.share__name { display: block; font-size: .76rem; font-weight: 600; line-height: 1.2; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.share.is-current .share__name { color: var(--ink); }
.share__n { display: block; margin-top: 3px; font-size: clamp(1.5rem, 2.1vw, 1.9rem); font-weight: 900; line-height: 1; letter-spacing: -.03em; font-stretch: 106%; }
.share__short { display: none; }
.shares__note { margin: 10px 0 0; font-size: .95rem; line-height: 1.4; color: var(--ink-2); }

/* ---------- the receipt ---------- */
.receipt-wrap { filter: drop-shadow(0 0 30px rgba(255, 212, 110, .6)) drop-shadow(0 12px 18px rgba(18, 23, 27, .2)); }
.receipt { display: block; color: var(--ink); }
.receipt__edge { height: 10px; background-repeat: repeat-x; background-size: 20px 10px; }
.receipt__edge--top { background-image: conic-gradient(from 135deg at 50% 0, var(--rpaper) 90deg, transparent 0); }
.receipt__edge--bottom { background-image: conic-gradient(from -45deg at 50% 100%, var(--rpaper) 90deg, transparent 0); }
.receipt__paper { position: relative; overflow: hidden; background: var(--rpaper); padding: 22px 26px 18px; font-family: var(--font-mono); font-size: .92rem; line-height: 1.35; }
.receipt__paper::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 45%;
  background: linear-gradient(180deg, rgba(255, 246, 210, 0) 0%, rgba(255, 240, 180, .7) 50%, rgba(255, 246, 210, 0) 100%);
  transform: translateY(-110%); opacity: 0; pointer-events: none;
}
.receipt.is-printing .receipt__paper::after { animation: sweep 1.15s cubic-bezier(.4, 0, .6, 1) .05s both; }
@keyframes sweep { 0% { transform: translateY(-110%); opacity: 1; } 100% { transform: translateY(260%); opacity: .2; } }

.receipt__head { text-align: center; border-bottom: 1px dashed var(--ink); padding-bottom: 12px; margin-bottom: 14px; }
.receipt__brand { margin: 0; font-weight: 600; letter-spacing: .14em; font-size: .85rem; }
.receipt__sub { margin: 2px 0 0; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; color: var(--ink-2); }
.receipt__meta { margin: 8px 0 0; font-size: .72rem; color: var(--ink-3); }
.receipt__item { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.receipt__name { margin: 0; font-family: var(--font-display); font-size: 1.45rem; font-weight: 900; letter-spacing: -.02em; line-height: 1.05; }
.receipt__size { margin: 4px 0 0; font-size: .74rem; color: var(--ink-3); }
.receipt__price { margin: 0; font-size: 1.45rem; font-weight: 600; white-space: nowrap; }

/* the dollar bar */
.bar { display: flex; gap: 2px; height: 22px; width: 100%; margin: 0 0 6px; }
.bar--sm { height: 14px; margin: 0; }
.seg { position: relative; display: block; margin: 0; padding: 0; border: 0; flex-grow: var(--share); flex-shrink: 1; flex-basis: 0%; min-width: 3px; background: var(--c); cursor: default; overflow: visible; transition: opacity .15s, filter .15s; }
.bar .seg:last-child { border-radius: 0 4px 4px 0; }
.seg:hover { filter: brightness(1.1); }
.seg:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; z-index: 2; }
.seg__label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; font-family: var(--font-mono); font-size: .68rem; font-weight: 500; letter-spacing: .02em; color: var(--ink-on); pointer-events: none; }
.seg__label[hidden] { display: none; }
.bar__cap { display: flex; justify-content: space-between; font-size: .68rem; color: var(--ink-3); margin: 0 0 12px; }

/* receipt lines */
.receipt__group { display: flex; justify-content: space-between; gap: 12px; margin: 12px 0 4px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; border-bottom: 1px solid var(--rule-soft); padding-bottom: 3px; }
.line { display: grid; grid-template-columns: 14px 1fr auto auto; column-gap: 8px; align-items: baseline; padding: 5px 0; transition: opacity .15s; }
.line__sw { width: 10px; height: 10px; border-radius: 2px; background: var(--c); align-self: center; }
.line__label { font-weight: 500; }
.line__sub { grid-column: 2 / -1; font-size: .7rem; color: var(--ink-3); line-height: 1.3; margin-top: 1px; }
.line__pct { font-size: .74rem; color: var(--ink-3); min-width: 3.4em; text-align: right; }
.line__amt { min-width: 4.6em; text-align: right; font-variant-numeric: tabular-nums; }
.line--profit .line__label, .line--profit .line__amt { font-weight: 600; }
.line--sub { padding: 2px 0; font-size: .8rem; color: var(--ink-2); }
.line--sub .line__pct { min-width: 3.9em; }
.line--nested .line__label { padding-left: 14px; }
.is-loss .line__amt, td.is-loss { color: var(--red); font-weight: 600; }
.receipt[data-hot] .seg:not(.is-hot) { opacity: .4; }
.receipt[data-hot] .line[data-key]:not(.is-hot) { opacity: .45; }
.receipt .line.is-hot { background: linear-gradient(90deg, rgba(var(--light), .7), rgba(var(--light), .15)); margin-inline: -8px; padding-inline: 8px; border-radius: 3px; }
.receipt .seg.is-hot { box-shadow: 0 0 0 2px var(--rpaper), 0 0 14px 3px rgba(255, 212, 110, .9); z-index: 1; }

.receipt__total { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--ink); font-weight: 600; font-size: 1.05rem; }
.receipt__insight { margin: 14px 0 0; padding: 10px 12px; background: #fdf3cf; border-left: 3px solid var(--red); font-size: .8rem; line-height: 1.4; }
.receipt__foot { text-align: center; margin-top: 16px; font-size: .7rem; color: var(--ink-3); }
.barcode { height: 34px; margin: 0 auto 8px; width: 78%; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 13px); }

@keyframes print { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
.receipt.is-printing .line, .receipt.is-printing .receipt__group, .receipt.is-printing .bar,
.receipt.is-printing .receipt__total, .receipt.is-printing .receipt__insight, .receipt.is-printing .receipt__item { animation: print .32s ease both; animation-delay: calc(var(--i, 0) * 34ms); }
@media (prefers-reduced-motion: reduce) { .receipt.is-printing *, .receipt.is-printing .receipt__paper::after { animation: none !important; } }

/* receipt tools */
.tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; align-items: center; }
.tools button { font: 500 .8rem var(--font-mono); min-height: 40px; padding: 8px 14px; border: 1.5px solid rgba(18, 23, 27, .5); border-radius: 999px; background: transparent; cursor: pointer; }
.tools button:hover { background: rgba(18, 23, 27, .08); border-color: var(--ink); }
.tools button[aria-expanded="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.tools__status { flex-basis: 100%; margin: 2px 0 0; font-family: var(--font-mono); font-size: .74rem; color: var(--ink-2); min-height: 1.1em; word-break: break-all; }
.embed-box { flex-basis: 100%; }
.embed-box label { display: block; font-size: .85rem; color: var(--ink-2); margin-bottom: 6px; }
.embed-box textarea { width: 100%; font: .74rem/1.4 var(--font-mono); padding: 8px; border: 1px solid rgba(18, 23, 27, .4); border-radius: 4px; background: var(--paper); color: var(--ink); resize: vertical; }
.embed-credit { display: none; }

/* tooltip */
.tip { position: absolute; z-index: 50; background: var(--ink); color: #fff; padding: 8px 10px; border-radius: 4px; font-family: var(--font-mono); font-size: .76rem; line-height: 1.3; pointer-events: none; max-width: 260px; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.tip strong { display: block; font-size: 1rem; font-weight: 600; margin-bottom: 2px; }
.tip[hidden] { display: none; }

/* ---------- sections ---------- */
.section { padding: clamp(44px, 7vw, 96px) var(--gutter); }
.section--paper { background: var(--paper); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 40px; flex-wrap: wrap; margin-bottom: 24px; }
.section__dek { margin: 0; color: var(--ink-2); max-width: 44em; }
.section__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.section__foot { margin: 18px 0 0; color: var(--ink-2); font-size: .95rem; }
.toggle { border: 1.5px solid var(--ink); background: transparent; border-radius: 999px; padding: 8px 16px; font-weight: 600; cursor: pointer; }
.toggle:hover { background: rgba(18, 23, 27, .06); }
.toggle[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.toggle--quiet { border-color: rgba(18, 23, 27, .35); font-weight: 500; }

.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 0 0 18px; font-family: var(--font-mono); font-size: .76rem; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend .sw { width: 12px; height: 12px; border-radius: 2px; background: var(--c); flex: none; }

.rows { border-bottom: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: 200px 72px minmax(0, 1fr) 90px 90px; gap: 6px 18px; align-items: center; padding: 12px 0; border-top: 1px solid var(--rule); }
.row:hover { background: linear-gradient(90deg, rgba(var(--light), .45), rgba(var(--light), 0) 70%); }
.row__name { font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.row__name small { display: block; font-weight: 400; color: var(--ink-3); font-size: .78rem; margin-top: 2px; }
.row__price { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; }
.row__stat { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; font-size: .9rem; line-height: 1.2; }
.row__stat small { display: block; font-size: .68rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 760px) {
  .row { grid-template-columns: 1fr auto auto; }
  .row__name { grid-column: 1; }
  .row__price { grid-column: 2 / -1; }
  .row .bar { grid-column: 1 / -1; }
  .row__stat { grid-column: auto; text-align: left; }
  .row__stat + .row__stat { text-align: right; grid-column: 2 / -1; }
}

.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table__note { margin: 0 0 12px; font-size: .9rem; color: var(--ink-2); max-width: 60em; }
.tablewrap table { border-collapse: collapse; width: 100%; font-family: var(--font-mono); font-size: .78rem; font-variant-numeric: tabular-nums; }
.tablewrap th, .tablewrap td { text-align: right; padding: 7px 8px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.tablewrap th { font-weight: 600; color: var(--ink-2); border-bottom: 1.5px solid var(--ink); vertical-align: bottom; }
.tablewrap th:first-child, .tablewrap td:first-child { text-align: left; font-family: var(--font-display); font-weight: 600; position: sticky; left: 0; background: var(--paper); }

/* ---------- farmers ---------- */
.farmers .wrap { display: grid; gap: clamp(32px, 5vw, 56px); }
.big { font-size: clamp(1.45rem, 2.9vw, 2.3rem); line-height: 1.18; font-weight: 600; letter-spacing: -.02em; max-width: 28em; margin: 0; text-wrap: pretty; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; border-top: 1px solid rgba(18, 23, 27, .3); padding-top: 24px; }
.fact p { margin: 0; }
.fact__n { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 900; line-height: 1; letter-spacing: -.03em; font-stretch: 106%; margin: 0 0 10px !important; }
@media (max-width: 720px) { .facts { grid-template-columns: 1fr; } }

.whatif { background: var(--paper); border-radius: 6px; padding: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 40px; align-items: start; }
.whatif__copy p { margin: 0 0 12px; color: var(--ink-2); }
.whatif__lede { color: var(--ink) !important; font-weight: 600; }
.whatif__list { list-style: none; margin: 0; padding: 0; font-family: var(--font-mono); font-size: .88rem; font-variant-numeric: tabular-nums; }
.whatif__list li { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; padding: 7px 0; border-bottom: 1px dotted var(--rule); }
.whatif__list li span:first-child { font-family: var(--font-display); font-weight: 600; }
.whatif__list .delta { color: var(--red); font-weight: 600; }
.whatif__list .newp { color: var(--ink-3); }
@media (max-width: 860px) { .whatif { grid-template-columns: 1fr; } }

.dowell ol { padding-left: 1.3em; margin: 0 0 18px; max-width: 46em; }
.dowell li { margin-bottom: 12px; }
.dowell__you { max-width: 46em; margin: 0; padding-top: 16px; border-top: 1px solid rgba(18, 23, 27, .3); }

/* ---------- method ---------- */
.method__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px 36px; margin: 32px 0 40px; }
.method__grid p { margin: 0; font-size: .96rem; color: var(--ink-2); }
.sources { padding-left: 1.2em; margin: 0 0 24px; max-width: 52em; }
.sources li { margin-bottom: 6px; font-size: .96rem; }
.disclaimer { font-size: .9rem; color: var(--ink-2); max-width: 52em; border-top: 1px solid var(--rule); padding-top: 16px; margin: 0; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--ground); padding: 32px var(--gutter); font-size: .92rem; }
.foot .wrap { display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; }
.foot p { margin: 0; }

/* ---------- phones and narrow screens ---------- */
@media (max-width: 900px) {
  /* phones: the receipt is the first thing on the page, right under the pinned chips */
  .hero { grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas: "chips" "shares" "receipt" "copy" "assume"; padding-top: 0; background: radial-gradient(ellipse 100% 40% at 50% 22%, rgba(var(--light), .55) 0%, rgba(var(--light), 0) 72%), var(--ground); }
  .hero__copy { margin-top: 34px; }
  /* phones: a plain brand bar on top, the sections in a fixed bottom tab bar */
  .masthead { position: static; padding: 8px var(--gutter); background: var(--ground); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .topnav { display: none; }
  main > section { scroll-margin-top: 0; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px var(--gutter) calc(6px + env(safe-area-inset-bottom)); background: rgba(var(--ground-rgb), .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid rgba(18, 23, 27, .25); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 48px; padding: 4px 2px; border-radius: 10px; text-decoration: none; font-size: .78rem; font-weight: 600; color: var(--ink-2); }
  .tabbar a:active { background: rgba(18, 23, 27, .08); }
  .tabbar__dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(18, 23, 27, .22); transition: background .2s, box-shadow .2s; }
  .tabbar a[aria-current="true"] { color: var(--ink); }
  .tabbar a[aria-current="true"] .tabbar__dot { background: #ffd66b; box-shadow: 0 0 8px 2px rgba(255, 214, 107, .85); }
  /* the picker pins to the top as one segmented control showing all five items */
  .picker { position: sticky; top: 0; z-index: 5; margin: 0 calc(-1 * var(--gutter)) 24px; padding: 10px var(--gutter); background: var(--ground); border-bottom: 1px solid rgba(18, 23, 27, .2); }
  .chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; padding: 3px; border: 1.5px solid var(--ink); border-radius: 999px; background: rgba(255, 255, 255, .16); }
  .chip { min-width: 0; }
  .chip__label { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 40px; padding: 4px 2px; border: 0; border-radius: 999px; text-align: center; font-size: .84rem; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .chip__full { display: none; }
  .chip__short { display: inline; }
  .chip + .chip .chip__label::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 1px; background: rgba(18, 23, 27, .25); }
  .chip input:checked + .chip__label::before, .chip:has(input:checked) + .chip .chip__label::before { display: none; }
  /* the share tiles sit under the pinned picker, one column per item like the segmented control above them */
  .shares { margin: 0 0 22px; }
  .shares__cap { font-size: .68rem; margin-bottom: 6px; }
  .shares__row { gap: 2px; }
  .share { padding: 6px 2px 7px; border: 0; border-radius: 8px; text-align: center; }
  .share__full { display: none; }
  .share__short { display: inline; }
  .share__name { font-size: .7rem; }
  .share__n { font-size: 1.25rem; margin-top: 2px; }
  .shares__note { font-size: .9rem; }
  .receipt-wrap { justify-self: start; scroll-margin-top: 74px; }
  .toggle { min-height: 44px; }
}
@media (max-width: 480px) {
  .chip__label { font-size: .78rem; padding: 4px 1px; }
}
@media (max-width: 345px) {
  .chip__label { font-size: .72rem; letter-spacing: -.01em; }
  .receipt__paper { padding: 18px 16px 14px; font-size: .9rem; }
  .line__sub { font-size: .72rem; }
  .receipt__meta, .receipt__sub { font-size: .74rem; }
  .bar__cap { font-size: .72rem; }
  .receipt__insight { font-size: .84rem; }
  .share__n { font-size: 1.1rem; }
}

/* ---------- embed mode (?embed=1): the receipt alone, for iframes ---------- */
body.is-embed .masthead, body.is-embed .tabbar, body.is-embed .skip, body.is-embed .hero__copy, body.is-embed .picker, body.is-embed .hero__assume,
body.is-embed .shares, body.is-embed .tools, body.is-embed .section, body.is-embed .foot { display: none; }
body.is-embed { padding-bottom: 0; }
body.is-embed .hero { grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas: "receipt"; padding: 16px; max-width: none; background: var(--ground); }
body.is-embed .receipt-wrap { justify-self: center; }
body.is-embed .embed-credit { display: block; text-align: center; font-family: var(--font-mono); font-size: .72rem; color: var(--ink-2); margin: 12px 0 0; }

/* ---------- social preview mode (?og=1): a fixed 1200x630 card ---------- */
body.is-og { width: 1200px; height: 630px; overflow: hidden; }
body.is-og .masthead, body.is-og .tabbar, body.is-og .skip, body.is-og .dek, body.is-og .picker, body.is-og .hero__assume,
body.is-og .tools, body.is-og .section, body.is-og .foot { display: none; }
body.is-og .hero { grid-template-columns: 560px minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "copy receipt" "shares receipt"; grid-template-rows: auto 1fr; width: 1200px; height: 630px; max-width: none; padding: 60px 72px; column-gap: 56px; align-items: start; background: radial-gradient(ellipse 40% 70% at 74% 40%, rgba(var(--light), .7), rgba(var(--light), 0) 72%), var(--ground); }
body.is-og h1 { font-size: 82px; margin: 0 0 26px; }
body.is-og .og-only { display: block; font-family: var(--font-mono); font-size: 19px; color: var(--ink-2); margin: 0; }
body.is-og .receipt-wrap { width: 470px; justify-self: end; }
body.is-og .shares { margin: 30px 0 0; }
body.is-og .shares__cap { font-size: 15px; }
body.is-og .shares__row { gap: 8px; }
body.is-og .share__full { display: none; }
body.is-og .share__short { display: inline; }
body.is-og .share__name { font-size: 15px; }
body.is-og .share__n { font-size: 38px; }
body.is-og .shares__note { font-size: 18px; margin-top: 14px; }

/* ---------- print: just the receipt ---------- */
@media print {
  body { background: #fff; }
  .masthead, .tabbar, .skip, .hero__copy, .picker, .hero__assume, .shares, .tools, .section, .foot, .embed-credit, .tip { display: none !important; }
  .hero { display: block; padding: 0; background: none; max-width: none; }
  .receipt-wrap { filter: none; width: 420px; margin: 0 auto; }
  .receipt__paper { border: 1px solid #ccc; }
}
