/* Boogie Data site stylesheet: the Ledger system (design merge 2026-11-04). Tokens below are the only colours
   and sizes. Schibsted Grotesk sets text and headings; Public Sans sets figures and tables, because its tabular
   cut keeps a narrow decimal point (Schibsted's widens it). Both are self-hosted OFL woff2 (static/fonts/). */
@font-face { font-family: "Schibsted Grotesk"; src: url("/fonts/schibsted-grotesk.woff2") format("woff2");
             font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans.woff2") format("woff2");
             font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  --paper: #ffffff; --sheet: #f5f9f6; --band: rgb(28 110 58 / .09); --bar: #e7f0e9; --bar-strong: #cfe0d3;
  --ink: #142b22; --graphite: #48594f; --rule: #bfd0c3; --control: #5f7266;
  --carbon: #2f4ba0; --carbon-strong: #233a80; --carbon-soft: #c9d3f0; --on-carbon: #ffffff;
  --green: #3d8b5a; --flag: #ffe58a; --on-flag: #2b2200; --flag-edge: #c99a00; --mark: #fbe2a2;
  --live: #1f7a45; --pending: #a35f00; --shade: rgb(20 43 34 / .22);
  --text: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --figures: "Public Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4.5rem;
  --r-s: 3px; --r-m: 6px;
  --frame: 77.5rem; --measure: 42rem; --gutter: 1rem;
  --edge: max(var(--gutter), calc((100% - var(--frame)) / 2 + var(--gutter)));
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #0f1c17; --sheet: #13231c; --band: rgb(150 220 175 / .07); --bar: #17291f; --bar-strong: #24402f;
          --ink: #e3eee6; --graphite: #a7bbad; --rule: #2c4436; --control: #7f978a;
          --carbon: #a9b9ff; --carbon-strong: #c8d2ff; --carbon-soft: #34427a; --on-carbon: #0f1c17;
          --green: #6fcf97; --flag: #4a3d0a; --on-flag: #ffe58a; --flag-edge: #d6a91c; --mark: #5a4410;
          --live: #5fd08a; --pending: #f2b544; --shade: rgb(0 0 0 / .55); }
}
@media (min-width: 48rem) { :root { --gutter: 2rem; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.55 var(--text);
       overflow-wrap: break-word; }
a { color: var(--carbon); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 700; }
mark { background: var(--mark); color: inherit; padding: 0 .15em; border-radius: 2px; }

/* Type scale (17px base, about 1.25): one face, weight and size carry the hierarchy. */
h1, h2, h3 { font-weight: 800; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.5rem + 1.9vw, 2.75rem); line-height: 1.08; max-width: 26ch; }
h2 { font-size: 1.55rem; line-height: 1.15; }
h3 { font-size: 1.15rem; line-height: 1.3; font-weight: 700; letter-spacing: -.005em; }
h4, h5, h6 { font-size: 1rem; font-weight: 700; }
.lead, .summary { font-size: 1.15rem; line-height: 1.5; }
.lead { color: var(--graphite); }
.fine, .count, caption, .breadcrumbs { color: var(--graphite); }
.fine { font-size: .9rem; }
.count { font-size: .9rem; font-family: var(--figures); font-variant-numeric: tabular-nums; }

/* Honesty band: the flag colour means "read this before you trust the data" and nothing else. */
.preview-banner { margin: 0; padding: var(--s2) var(--edge); background: var(--flag); color: var(--on-flag);
                  font-size: .92rem; line-height: 1.45; }
.preview-banner strong { font-weight: 800; }

/* Frame: header and footer run full width; their content aligns to main's frame. */
.site-header { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); align-items: center;
               padding: var(--s3) var(--edge); border-bottom: 2px solid var(--ink); }
.brand { display: inline-flex; align-items: center; gap: .55rem; margin-right: auto; color: var(--ink);
         font: 800 1.2rem/1 var(--text); letter-spacing: -.02em; text-decoration: none; min-height: 44px; }
/* The mark: three ledger bars, the middle one green-bar. */
.brand::before { content: ""; width: 1.1rem; height: 1rem; flex: none;
  background: linear-gradient(var(--ink), var(--ink)) 0 0 / 100% 26% no-repeat,
              linear-gradient(var(--green), var(--green)) 0 50% / 100% 26% no-repeat,
              linear-gradient(var(--ink), var(--ink)) 0 100% / 100% 26% no-repeat; }
nav { display: flex; flex-wrap: wrap; gap: 0 var(--s4); }
.site-header nav a { color: var(--ink); text-decoration: none; font-size: .94rem; font-weight: 500; }
.site-header nav a:hover { color: var(--carbon); text-decoration: underline; }

/* Main: a left-aligned reading column with a free right track; wide objects span both. */
main { display: grid; grid-template-columns: minmax(0, var(--measure)) minmax(0, 1fr); max-width: var(--frame);
       margin: 0 auto; padding: var(--s5) var(--gutter) var(--s8); }
main > section { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; }
:where(main, main > section) > * { grid-column: 1; min-width: 0; margin-block: 0; }
:where(main, main > section) > * + * { margin-top: var(--s4); }
:where(main) > section { margin-top: var(--s8); padding-top: var(--s5); border-top: 2px solid var(--ink); }
:where(main) > section.hero { margin-top: var(--s4); padding-top: 0; border-top: 0; }
:where(main, main > section) > h1 { grid-column: 1 / -1; margin-top: var(--s5); }
:where(main, main > section) > h2 { margin-top: var(--s7); }
:where(main, main > section) > h3 { margin-top: var(--s6); }
:where(main, main > section) > :is(h1, h2, h3) + * { margin-top: var(--s3); }
:where(main > section) > h2:first-child { margin-top: 0; }
:where(main, main > section) > :is(.table-wrap, .cards, .panes, .lede, .catalog, .audiences, .questions) { grid-column: 1 / -1; }
:where(main, main > section) > :is(pre, h3:has(+ pre)) { grid-column: 1 / -1; width: min(100%, 58rem); }
ul, ol { padding-left: 1.25rem; }
li + li { margin-top: var(--s2); }
li > ul { margin-top: var(--s2); }

/* Breadcrumbs and report stamps. */
.breadcrumbs { font-size: .85rem; grid-column: 1 / -1; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2); list-style: none; margin: 0; padding: 0; }
.breadcrumbs li + li { margin-top: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: var(--s2); color: var(--graphite); }
.breadcrumbs a { color: var(--graphite); }
.edition { display: inline-block; justify-self: start; padding: var(--s1) var(--s3); border: 2px solid var(--ink);
           border-radius: var(--r-s); font-weight: 600; font-size: .92rem; }

/* Home hero: headline column beside the ledger; the calls to action run under both. */
main > section.hero { grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); grid-template-rows: auto auto auto 1fr;
                      column-gap: var(--s7); }
.hero > h1 { font-size: clamp(2.1rem, 1.3rem + 2.3vw, 3.05rem); line-height: 1.06; letter-spacing: -.022em;
             max-width: 19ch; }
.hero > .lead { color: var(--ink); font-size: 1.1rem; }
.hero > .badge { grid-row: 1; }
.hero > h1 { grid-column: 1; grid-row: 2; }
.hero > .lead { grid-row: 3; }
.hero > .ledger { grid-column: 2; grid-row: 1 / span 4; margin: 0; align-self: start; }
.hero > .ctas { grid-column: 1; grid-row: 4; align-self: start; }
.badge, .tag { display: inline-block; justify-self: start; padding: .1rem .5rem; border-radius: var(--r-s);
               background: var(--flag); color: var(--on-flag); font-size: .85rem; font-weight: 700;
               line-height: 1.5; vertical-align: middle; }
.badge { margin: 0; }
.ctas { list-style: none; padding: 0; display: grid; gap: 0;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); border-top: 2px solid var(--ink); }
:where(main) .hero > .ctas { margin-top: var(--s5); grid-template-columns: minmax(0, 1fr); }
.ctas > li { margin: 0; padding: var(--s3) 0 var(--s2); }
.ctas > li + li { border-top: 1px solid var(--rule); }
.ctas p { margin: 0 0 var(--s2); }
.cta-who { font-weight: 700; }

/* The ledger: green-bar rows, range bars on one shared axis. The sprocket margin is the hero's alone. */
.ledger { border: 2px solid var(--ink); border-radius: var(--r-m); padding: 0 var(--s3) var(--s3); background: var(--paper);
          font-family: var(--figures); }
.ledger.sprocket { padding-inline: 1.6rem;
  background: radial-gradient(circle, var(--paper) 3.5px, transparent 4px) left 5px top 10px / 10px 22px repeat-y,
              radial-gradient(circle, var(--paper) 3.5px, transparent 4px) right 5px top 10px / 10px 22px repeat-y,
              linear-gradient(var(--bar-strong), var(--bar-strong)) left / 20px 100% no-repeat,
              linear-gradient(var(--bar-strong), var(--bar-strong)) right / 20px 100% no-repeat, var(--paper); }
.ledger-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
               gap: var(--s1) var(--s4); padding: var(--s3) var(--s2) var(--s2); border-bottom: 2px solid var(--ink); }
.ledger-head h2 { font: 800 1.02rem/1.3 var(--text); letter-spacing: 0; margin: 0; }
.ledger-key { margin: 0; font-size: .8rem; color: var(--graphite); }
.key-band::before, .key-tick::before { content: ""; display: inline-block; vertical-align: -1px; margin-right: 5px; }
.key-band::before { width: 20px; height: 9px; background: var(--carbon-soft); border: 1.5px solid var(--carbon);
                    border-radius: 2px; }
.key-tick::before { width: 3px; height: 13px; background: var(--ink); margin-left: var(--s2); }
.ledger table { min-width: 0; font-size: .9rem; }
.ledger th, .ledger td { padding: .38rem var(--s2); border: 0; vertical-align: middle; }
.ledger thead th { font-size: .78rem; border-bottom: 1px solid var(--rule); }
.ledger tr.group th { padding-top: var(--s4); font-family: var(--text); font-weight: 800; font-size: .86rem; }
.ledger tr.group th a { color: var(--ink); }
.ledger tr.group span { font-weight: 400; color: var(--graphite); }
.ledger tbody tr.row:nth-child(even) { background: var(--bar); }
.ledger tbody tr.row th { font-weight: 600; font-family: var(--text); }
.ledger tbody tr.row th a { color: var(--ink); text-decoration-color: var(--rule); }
.ledger tbody tr.row th a:hover { color: var(--carbon); text-decoration-color: currentColor; }
.ledger td.range { width: 34%; min-width: 7rem; }
.ledger-note { margin: var(--s3) var(--s2) 0; font: .8rem/1.45 var(--text); color: var(--graphite); }
.rb { display: block; width: 100%; height: 16px; overflow: visible; }
.rb-axis { stroke: var(--rule); stroke-width: 2; stroke-dasharray: 2 4; }
.rb-iqr { fill: var(--carbon-soft); stroke: var(--carbon); stroke-width: 1.5; }
.rb-md { fill: var(--ink); }
.num { text-align: right; white-space: nowrap; }
.dp { visibility: hidden; }
/* Tabular figures belong to Public Sans only: Schibsted's tabular cut widens the comma and the decimal point. */
:is(.ledger tr.group th, .ledger tr.row th, caption, .fig small, .lines small, .sheet-head) { font-variant-numeric: normal; }

/* Report lede (Journal): the finding as headline with its caveat, the annotated chart, the market sheet. */
main > h1:has(+ .lede .finding) { font-size: 1.1rem; line-height: 1.35; letter-spacing: 0; font-weight: 700;
                                  max-width: none; }
.lede { display: grid; grid-template-columns: subgrid; align-items: start; }
.lede-main { grid-column: 1; min-width: 0; }
.lede-main > * { margin: 0; }
.lede-main > * + * { margin-top: var(--s4); }
.lede .sheet { grid-column: 2; margin-left: var(--s5); }
.finding { font-size: clamp(1.7rem, 1.25rem + 1.7vw, 2.45rem); font-weight: 800; line-height: 1.12;
           letter-spacing: -.02em; text-wrap: balance; max-width: 30ch; }
.standfirst { font-size: 1.15rem; line-height: 1.5; }
.caveat { padding-left: var(--s3); border-left: 3px solid var(--flag-edge); color: var(--graphite); font-size: .95rem; }
.chart { padding-top: var(--s3); border-top: 2px solid var(--ink); }
.chart > p, .chart figcaption { margin: 0; }
.chart-title { font-weight: 800; }
.chart-sub, .chart figcaption { font-size: .85rem; color: var(--graphite); }
.chart figcaption { margin-top: var(--s2); }
.chart-svg { display: block; width: 100%; height: auto; margin-top: var(--s3); overflow: visible;
             font-family: var(--figures); }
.chart-svg.m { display: none; }
.chart-svg .grid { stroke: var(--rule); stroke-width: 1; }
.chart-svg .axis { stroke: var(--ink); stroke-width: 1.5; }
.chart-svg .tick { fill: var(--graphite); font-size: 12px; }
.chart-svg .lbl { fill: var(--ink); font: 700 14px var(--text); }
.chart-svg .val { fill: var(--ink); font-size: 13px; font-weight: 600; }
.chart-svg .band { stroke-width: 10; stroke-linecap: round; }
.chart-svg .band.a { stroke: var(--carbon-soft); }
.chart-svg .band.b { stroke: var(--bar-strong); }
.chart-svg .dot.a { fill: var(--carbon); }
.chart-svg .dot.b { fill: var(--green); }
.chart-svg .pip { fill: var(--carbon); fill-opacity: .4; }
.chart-svg .pip.on { fill: var(--ink); fill-opacity: 1; }
.chart-svg .lead-line { stroke: var(--graphite); stroke-width: 1; }

/* Market sheet (Product's object, in the Ledger system): one line per dataset for one market. */
.sheet { border: 2px solid var(--ink); border-radius: var(--r-m); background: var(--paper); }
.sheet-head { padding: var(--s3) var(--s4); border-bottom: 2px solid var(--ink); background: var(--bar); }
.sheet-head h2 { margin: 0; font-size: 1.15rem; }
.sheet-head p { margin: var(--s1) 0 0; font-size: .85rem; color: var(--graphite); }
.lines { list-style: none; margin: 0; padding: 0; }
.lines li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s1) var(--s4); margin: 0;
            padding: var(--s3) var(--s4); }
.lines .what { flex: 1 1 11rem; }
.lines .fig { flex: 0 1 auto; margin-left: auto; }
.lines li:nth-child(even) { background: var(--bar); }
.lines small { display: block; font-size: .8rem; font-weight: 400; color: var(--graphite); }
.what { font-weight: 700; }
.what a { color: var(--ink); }
.fig { text-align: right; font: 700 1.05rem/1.3 var(--figures); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fig small { white-space: normal; font-family: var(--text); }
.sheet-foot { margin: 0; padding: var(--s3) var(--s4); border-top: 1px solid var(--rule); font-size: .82rem;
              color: var(--graphite); }

/* Developer section (Instrument): one report read three ways, with status lamps. */
.panes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 2px solid var(--ink);
         border-radius: var(--r-m); }
.panes.one { grid-template-columns: minmax(0, 1fr); }
.pane { min-width: 0; padding: var(--s4) var(--s4) var(--s2); }
.pane + .pane { border-left: 1px solid var(--rule); }
.pane > * { margin: 0 0 var(--s3); }
.pane-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s2);
             padding-bottom: var(--s2); border-bottom: 2px solid var(--ink); }
.pane-name { font-weight: 800; }
.lamp { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 600; }
.lamp::before { content: ""; width: .65rem; height: .65rem; border-radius: 50%; flex: none; }
.lamp.live::before { background: var(--live); }
.lamp.pending::before { border: 2px solid var(--pending); }
.pane-text { font-size: .98rem; }
.readouts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: var(--s5);
            margin: 0 0 var(--s3); }
.readouts dt { font-size: .78rem; color: var(--graphite); }
.readouts dd { margin: 0; font: 700 1.2rem/1.3 var(--figures); font-variant-numeric: tabular-nums; }
.pane pre, .pane h3:has(+ pre) { width: 100%; }
.pane h3 { margin: var(--s4) 0 0; }
.pane h3 + pre { margin-top: 0; border-radius: 0 0 var(--r-m) var(--r-m); }
/* The Markdown excerpt wraps so the marked figure stays in view at every width. */
.pane-code { font-size: .78rem; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Index rows (use cases, plans): an ink rule on top, no box. */
.cards { list-style: none; padding: 0; display: grid; gap: var(--s6) var(--s5);
         grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.cards > li + li { margin-top: 0; }
.card { padding-top: var(--s3); border-top: 2px solid var(--ink); }
.card > * { margin: 0; }
.card > * + * { margin-top: var(--s3); }
.card h2, .card h3 { font: 800 1.2rem/1.2 var(--text); letter-spacing: -.01em; }
.card h2 a, .card h3 a { color: var(--ink); text-decoration-color: var(--rule); }
.card h2 a:hover, .card h3 a:hover { color: var(--carbon); text-decoration-color: currentColor; }
.plan h3 { font-size: 1.45rem; }
.plans .plan { border-top-color: var(--carbon); }
.price { font-family: var(--figures); font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 700; }
/* Home catalog: a chart of accounts in the ledger's green bars, the dataset count in the account-number column.
   Each row labels itself, so the same markup reads as one line on a wide screen and a stack on a phone. */
.catalog { list-style: none; padding: 0; border: 2px solid var(--ink); border-radius: var(--r-m); }
.catalog > li { display: grid; grid-template-columns: 5.25rem minmax(0, 13rem) minmax(0, 1fr) minmax(0, 14rem) 10.5rem;
                gap: var(--s1) var(--s5); align-items: baseline; margin: 0; padding: var(--s3) var(--s4); }
.catalog > li:nth-child(even) { background: var(--bar); }
.catalog > li + li { border-top: 1px solid var(--rule); }
.catalog p, .catalog h3 { margin: 0; }
.catalog h3 { font-size: 1.05rem; line-height: 1.25; font-weight: 800; }
.cat-n { font: 800 1.45rem/1.1 var(--figures); font-variant-numeric: tabular-nums; }
.cat-n small { display: block; font: 400 .78rem/1.3 var(--text); color: var(--graphite); }
.cat-holds { font-size: .95rem; line-height: 1.4; }
.cat-fact { margin-top: var(--s1); font-weight: 650; font-family: var(--figures); font-size: .9rem; }
.catalog .cat-fact { margin-top: var(--s1); }
.cat-sources { font-size: .85rem; line-height: 1.4; color: var(--graphite); }
.cat-link { font-size: .92rem; line-height: 1.3; font-weight: 600; }
.proof { min-width: 0; }
.proof .observed { white-space: normal; }
.audiences { list-style: none; padding: 0; display: grid; gap: var(--s4) var(--s5);
             grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.audiences > li { margin: 0; padding-top: var(--s2); border-top: 2px solid var(--ink); }
.audiences a { display: block; font-weight: 700; color: var(--ink); text-decoration-color: var(--rule); }
.audiences a:hover { color: var(--carbon); text-decoration-color: currentColor; }
.audiences span { color: var(--graphite); font-size: .95rem; }
/* Home sections below the hero sit closer together. */
:where(main) > section.tight { margin-top: var(--s7); padding-top: var(--s4); }
:where(main) > section.tight > h2 + * { margin-top: var(--s4); }
:where(main > section) > .checks { grid-column: 1 / -1; }
.scroll-hint { display: none; }
/* Wide screens: a short section's heading sits in a left column beside its content. */
@media (min-width: 64.01rem) {
  :where(main) > section.side { grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); column-gap: var(--s6); }
  main > section.side > * { grid-column: 2; }
  main > section.side > h2 { grid-column: 1; grid-row: 1 / span 6; margin-top: 0; }
  main > section.side > h2 + * { margin-top: 0; }
}
:where(main) > .questions { margin-top: var(--s8); padding-top: var(--s4); border-top: 1px solid var(--rule); }

/* Tables: green-bar banding, an ink rule under the head, figures in Public Sans tabular. The wrapper scrolls on
   its own and shows a shadow at an edge that has more columns behind it. */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--r-m); }
/* The scroll cue, shared with the hero ledger's tables. */
.table-wrap, .ledger-scroll { overflow-x: auto;
  background: linear-gradient(to right, var(--paper) 40%, transparent) left / 2.5rem 100% no-repeat local,
              linear-gradient(to left, var(--paper) 40%, transparent) right / 2.5rem 100% no-repeat local,
              radial-gradient(farthest-side at 0 50%, var(--shade), transparent) left / .8rem 100% no-repeat scroll,
              radial-gradient(farthest-side at 100% 50%, var(--shade), transparent) right / .8rem 100% no-repeat scroll,
              var(--paper); }
table { border-collapse: collapse; width: 100%; min-width: 32rem; font-family: var(--figures);
        font-variant-numeric: tabular-nums lining-nums; font-size: .93rem; line-height: 1.45; }
caption { caption-side: top; text-align: left; font: .85rem/1.45 var(--text); padding: var(--s3) var(--s4) var(--s2); }
th, td { padding: .55rem var(--s4); text-align: left; vertical-align: top; }
thead th { vertical-align: bottom; font-size: .8rem; font-weight: 650; color: var(--graphite);
           border-bottom: 2px solid var(--ink); }
tbody tr:nth-child(even) { background: var(--band); }
tbody th { font-weight: 650; }
td[data-cents] { text-align: right; white-space: nowrap; }
.prices thead th + th { text-align: right; }
td code { white-space: nowrap; }

/* Code: a label bar (the h3 a code block opens with) joined to its block. */
code, pre { font-family: var(--mono); font-size: .86rem; font-variant-numeric: normal; }
code { background: var(--bar); padding: .05rem .3rem; border-radius: 2px; overflow-wrap: anywhere; }
pre { background: var(--sheet); border: 1px solid var(--rule); padding: var(--s4); border-radius: var(--r-m);
      overflow-x: auto; line-height: 1.55; }
pre code { padding: 0; background: none; overflow-wrap: normal; }
h3:has(+ pre) { padding: var(--s2) var(--s4); background: var(--bar); border: 1px solid var(--rule);
                border-bottom: 0; border-radius: var(--r-m) var(--r-m) 0 0; font: 700 .85rem/1.4 var(--text); }
:where(main, main > section) > h3 + pre { margin-top: 0; border-radius: 0 0 var(--r-m) var(--r-m); }

/* Calls to action. */
.button { display: inline-flex; align-items: center; min-height: 44px; padding: .55rem 1.1rem;
          border: 2px solid var(--carbon); border-radius: var(--r-s); background: var(--carbon); color: var(--on-carbon);
          font: 700 1rem/1.2 var(--text); text-decoration: none; }
.button:hover { background: var(--carbon-strong); border-color: var(--carbon-strong); text-decoration: none; }
.button.alt { background: transparent; color: var(--carbon); }
.button.alt:hover { background: var(--carbon); border-color: var(--carbon); color: var(--on-carbon); }

/* Forms: fee calculator (tools/fees) and the launch waitlist share field sizing and 44px targets. */
.fee-calc, .waitlist { background: var(--sheet); border: 2px solid var(--ink); border-radius: var(--r-m);
                       padding: var(--s2) var(--s5) var(--s4); }
.fee-calc label, .waitlist label { font-weight: 700; }
.fee-calc select, .fee-calc input, .waitlist select, .waitlist input {
  font: inherit; min-height: 44px; width: min(100%, 24rem); margin-top: var(--s1); padding: .35rem .6rem;
  border: 1.5px solid var(--control); border-radius: var(--r-s); background: var(--paper); color: inherit; }
.fee-calc button, .waitlist button { font: inherit; font-weight: 700; cursor: pointer; }
/* Any other form (the collectible search) gets the same controls. */
main form:not(.fee-calc, .waitlist) :is(input, select) { font: inherit; min-height: 44px; width: min(100%, 24rem);
  margin: var(--s1) 0 var(--s2); padding: .35rem .6rem; border: 1.5px solid var(--control); border-radius: var(--r-s);
  background: var(--paper); color: inherit; }
main form:not(.fee-calc, .waitlist) label { display: block; font-weight: 700; }
main form:not(.fee-calc, .waitlist) button { min-height: 44px; padding: .55rem 1.1rem; border: 2px solid var(--carbon);
  border-radius: var(--r-s); background: var(--carbon); color: var(--on-carbon); font: 700 1rem/1.2 var(--text);
  cursor: pointer; }
/* .hp holds the waitlist honeypot field off screen (not display:none, which some bots skip); aria-hidden and
   tabindex=-1 keep it from people. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer. */
.site-footer { margin-top: var(--s7); padding: var(--s6) var(--edge) var(--s7); border-top: 2px solid var(--ink);
               color: var(--graphite); font-size: .9rem; }
.site-footer > * { max-width: var(--measure); }
.site-footer a { color: var(--ink); }
.footer-links { list-style: none; padding: 0; margin: 0 0 var(--s4); display: flex; flex-wrap: wrap; gap: var(--s1) var(--s5); }
.footer-links li + li { margin-top: 0; }

/* Accessibility (WCAG 2.2 AA): skip link, visible focus, 24px targets, reduced motion. */
.skip { position: absolute; left: -999px; top: .5rem; padding: .5rem 1rem; background: var(--paper); color: var(--carbon);
        border: 2px solid var(--carbon); border-radius: var(--r-s); z-index: 10; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--carbon); outline-offset: 2px; border-radius: 2px; }
.button:focus-visible { outline-color: var(--ink); }
nav a, .footer-links a { display: inline-block; min-height: 24px; min-width: 24px; padding: .3rem 0; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Below a full frame the catalog's sources and link drop under the description. */
@media (max-width: 80rem) {
  .catalog > li { grid-template-columns: 5.25rem minmax(0, 13rem) minmax(0, 1fr); }
  .cat-sources, .cat-link { grid-column: 3; }
}
/* Medium screens: the hero ledger, the sheet and the panes drop under their text. */
@media (max-width: 64rem) {
  main > section.hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .hero > :is(.badge, h1, .lead, .ledger, .ctas) { grid-column: 1; grid-row: auto; }
  .hero > .ledger { margin-top: var(--s5); }
  .catalog > li { grid-template-columns: 4.75rem minmax(0, 1fr); }
  .catalog > li > :not(.cat-n) { grid-column: 2; }
  .catalog .cat-n { grid-row: 1 / span 4; }
  .lede .sheet { grid-column: 1 / -1; margin: var(--s5) 0 0; max-width: var(--measure); }
  .panes { grid-template-columns: minmax(0, 1fr); }
  .pane + .pane { border-left: 0; border-top: 1px solid var(--rule); }
}
/* Narrow screens: one column; CTA columns stack with a rule between them; charts use their narrow drawing. */
@media (max-width: 40rem) {
  main { grid-template-columns: minmax(0, 1fr); }
  .site-header { gap: var(--s1) var(--s4); }
  .scroll-hint { display: block; }
  :where(main, main > section) > .scroll-hint + .table-wrap { margin-top: var(--s2); }
  .fee-calc, .waitlist { padding-inline: var(--s4); }
  .ledger.sprocket { padding-inline: .9rem; background-size: 6px 22px, 6px 22px, 11px 100%, 11px 100%; }
  .ledger.sprocket { background-position: left 2.5px top 10px, right 2.5px top 10px, left, right; }
  .ledger th, .ledger td { padding: .35rem .3rem; }
  .ledger .observed { display: none; }
  .ledger td.range { min-width: 4.5rem; width: 28%; }
  .chart-svg.d { display: none; }
  .chart-svg.m { display: block; }
  .lines li { padding-inline: var(--s3); }
  .readouts { gap: var(--s4); }
}

/* Print (reports): content and the honesty band only, black on white. */
@media print {
  :root { --paper: #fff; --sheet: #fff; --bar: #eee; --band: #f2f2f2; --ink: #000; --graphite: #333; --rule: #999;
          --carbon: #000; --shade: transparent; }
  body { font-size: 11pt; }
  .skip, .site-header nav, .footer-links, .breadcrumbs, .button, form { display: none; }
  .preview-banner { background: none; color: #000; border: 1px solid #000; padding: .5rem; }
  main { display: block; padding: 0; max-width: none; }
  .lede { display: block; }
  .lede .sheet { margin: 1rem 0 0; }
  .site-footer { padding: 1rem 0 0; }
  .table-wrap { overflow: visible; border: 0; }
  table { min-width: 0; }
  tr { break-inside: avoid; }
  h2, h3 { break-after: avoid-page; }
  a { color: inherit; }
}
