/* gpuprice.com shared stylesheet. Used by the landing page, the legal pages and the
   tracker pages rendered by ../../tracker/src/render.js. See ../../dizajn.md.
   Rules: ink on paper, one yellow highlighter, wide type for words and narrow for numbers. */

@font-face { font-family: "Archivo"; src: url("fonts/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-italic-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: italic; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #FFFFFF; --ink: #0B0B0C; --ink-2: #55585E; --rule: #D9DADD; --wash: #F4F4F2;
  --mark: #FFE033; --on-mark: #0B0B0C; --down: #0B6B3A; --up: #B3261E;
  --hatch: rgba(11, 11, 12, .07);
  --maxw: 1080px;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0E0F11; --ink: #F2F2EE; --ink-2: #A4A7AD; --rule: #2A2C30; --wash: #17181B;
    --down: #5FD08E; --up: #FF8A80; --hatch: rgba(242, 242, 238, .08);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0E0F11; --ink: #F2F2EE; --ink-2: #A4A7AD; --rule: #2A2C30; --wash: #17181B;
  --down: #5FD08E; --up: #FF8A80; --hatch: rgba(242, 242, 238, .08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--sans); font-stretch: 100%; }
::selection { background: var(--mark); color: var(--on-mark); }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 5px var(--mark); }
h1, h2, h3, h4, p { margin: 0; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.measure { max-width: 68ch; }

/* Three voices of one typeface */
h1, .wide { font-stretch: 118%; font-weight: 750; letter-spacing: -0.012em; }
.fig, table.sheet, .dateline { font-stretch: 78%; font-variant-numeric: tabular-nums lining-nums; }
.code { font: 12.5px/1.4 var(--mono); font-stretch: 100%; color: var(--ink-2); }

/* The highlighter. At most three per screen. */
.hl { background: var(--mark); color: var(--on-mark); padding: 0 .22em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Header */
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
/* Wordmark: "gpuprice.com" in wide Archivo, with "price" run over by the one highlighter. */
.brand { display: inline-flex; align-items: baseline; color: var(--ink); text-decoration: none; font-size: 20px; line-height: 1; font-stretch: 125%; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.brand .wm-hl { background: var(--mark); color: var(--on-mark); padding: .1em .12em .06em; margin: 0 .04em; }
.brand:hover .wm-hl { background: var(--ink); color: var(--mark); }
header.top nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
header.top nav a.nl { text-decoration: none; }
header.top nav a.nl:hover { text-decoration: underline; }
@media (max-width: 700px) { header.top nav a.nl { display: none; } }

/* Dateline: one ruled line of condensed text under the header */
.dateline { border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--rule); font-size: 15px; line-height: 1.3; }
.dateline .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 22px; padding-top: 9px; padding-bottom: 9px; }
.dateline b { font-weight: 700; }
.dateline a { text-decoration: none; }
.dateline a:hover { text-decoration: underline; }
.dateline .end { margin-left: auto; }

/* Buttons */
.btn, .btn-line { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; font: 700 16px/1 var(--sans); font-stretch: 105%; text-decoration: none; border: 1.5px solid var(--ink); border-radius: 2px; cursor: pointer; white-space: nowrap; }
.btn { background: var(--mark); color: var(--on-mark); border-color: #0B0B0C; }
.btn:hover { background: #0B0B0C; color: var(--mark); }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn-line { background: transparent; color: var(--ink); min-height: 38px; padding: 0 14px; font-size: 14.5px; }
.btn-line:hover { background: var(--ink); color: var(--paper); }

/* Sections: a heavy rule with the heading sitting under it */
.sec { border-top: 1.5px solid var(--ink); padding: 14px 0 64px; }
.sec > h2, .sec-head h2 { font-size: 15px; font-weight: 700; font-stretch: 112%; letter-spacing: .01em; margin-bottom: 28px; }
.sec h3 { font-size: 17px; font-weight: 700; }
.note { font-size: 13.5px; color: var(--ink-2); margin-top: 12px; max-width: 78ch; }

/* Hero */
.hero { padding-top: 56px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(32px, 5.2vw, 58px); line-height: 1.04; max-width: 17em; }
.lede { font-size: 18px; color: var(--ink-2); max-width: 62ch; margin-top: 18px; }

/* The spec sentence */
.spec { font-size: clamp(21px, 2.7vw, 31px); line-height: 1.75; font-weight: 400; font-stretch: 96%; margin: 40px 0 0; max-width: 31em; }
.spec .cl { white-space: nowrap; }
@media (max-width: 520px) { .spec .cl { white-space: normal; } }
.spec select {
  font: inherit; font-weight: 700; color: var(--ink); max-width: 100%;
  appearance: none; -webkit-appearance: none; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0;
  background-color: transparent; background-repeat: no-repeat; background-position: right .15em center; background-size: .5em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23808389'/%3E%3C/svg%3E");
  padding: 0 .95em 0 .12em; min-height: 44px; line-height: 1.2; cursor: pointer; text-overflow: ellipsis;
}
.spec select:invalid { background-color: var(--wash); border-bottom-style: dashed; font-weight: 500; color: var(--ink-2); }
.spec select:hover { background-color: var(--wash); }
.spec select[aria-invalid="true"] { border-bottom-color: var(--up); color: var(--up); }
.spec option { font: 400 16px var(--sans); color: initial; }
.context { margin-top: 18px; font-size: 15.5px; color: var(--ink-2); max-width: 70ch; min-height: 1.55em; }
.context b { color: var(--ink); }

/* Form */
.callout { border-left: 3px solid var(--ink); padding: 2px 0 2px 14px; font-size: 15px; margin: 18px 0 0; max-width: 70ch; }
details.more { margin: 26px 0 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
details.more summary { cursor: pointer; padding: 13px 0; font-weight: 600; list-style: none; display: flex; gap: 10px; align-items: baseline; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "+"; font-weight: 700; width: 12px; }
details.more[open] summary::before { content: "−"; }
details.more .inner { padding: 6px 0 22px 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px; }
@media (max-width: 760px) { details.more .inner { grid-template-columns: 1fr; padding-left: 0; } }
.contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 20px; margin-top: 28px; }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
label, legend { font-size: 14px; font-weight: 600; }
.opt { font-weight: 400; color: var(--ink-2); }
input[type=text], input[type=email], textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--wash);
  border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 2px 2px 0 0; padding: 0 12px; min-height: 46px;
}
textarea { padding: 10px 12px; min-height: 96px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--ink-2); opacity: .8; }
[aria-invalid="true"]:not(select) { border-bottom-color: var(--up) !important; }
.inline-error { display: block; font-size: 13.5px; font-weight: 400; color: var(--up); font-stretch: 100%; line-height: 1.4; }
.spec .inline-error { margin: 2px 0 6px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 8px; }
.checks { display: grid; gap: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 400; padding: 7px 0; cursor: pointer; }
.check input, .consent input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: #0B0B0C; }
:root[data-theme="dark"] .check input, :root[data-theme="dark"] .consent input { accent-color: var(--mark); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .check input, :root:not([data-theme="light"]) .consent input { accent-color: var(--mark); } }
.stack { display: grid; gap: 18px; align-content: start; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; font-weight: 400; margin: 24px 0 0; max-width: 78ch; }
.send { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 24px; }
.send .btn { min-height: 52px; padding: 0 30px; font-size: 17px; }
.send p { font-size: 14px; color: var(--ink-2); max-width: 56ch; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { border: 1.5px solid var(--up); color: var(--up); padding: 10px 14px; font-size: 14.5px; margin: 20px 0 0; max-width: 78ch; }
.done { margin-top: 40px; border-top: 1.5px solid var(--ink); padding-top: 20px; max-width: 70ch; }
.done h2 { font-size: 26px; font-stretch: 118%; font-weight: 750; margin-bottom: 14px; }
.done ol { padding-left: 22px; margin: 0 0 18px; }
.done li { margin-bottom: 8px; }
.ref { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; margin-top: 14px; }
.ref code { font: 600 15px var(--mono); }
.ref button { font: 600 13px var(--sans); background: transparent; color: var(--ink); border: 1px solid var(--ink); border-radius: 2px; padding: 4px 10px; cursor: pointer; }
.ref button:hover { background: var(--ink); color: var(--paper); }

/* Timeline: real durations on one rule */
ol.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); }
ol.timeline li { position: relative; padding: 18px 24px 0 0; }
ol.timeline li::before { content: ""; position: absolute; top: -6px; left: 0; width: 1.5px; height: 11px; background: var(--ink); }
ol.timeline .when { display: block; font-stretch: 78%; font-weight: 700; font-size: 17px; margin-bottom: 8px; }
ol.timeline strong { display: block; font-weight: 700; margin-bottom: 4px; }
ol.timeline span.d { font-size: 15px; color: var(--ink-2); }
@media (max-width: 820px) {
  ol.timeline { grid-template-columns: 1fr; border-top: 0; border-left: 1.5px solid var(--ink); }
  ol.timeline li { padding: 0 0 26px 20px; }
  ol.timeline li:last-child { padding-bottom: 0; }
  ol.timeline li::before { top: 9px; left: -6px; width: 11px; height: 1.5px; }
}

/* Tables: ruled sheets, no boxes */
.scroll { overflow-x: auto; }
table.sheet { width: 100%; border-collapse: collapse; font-size: 16.5px; line-height: 1.3; }
table.sheet caption { text-align: left; caption-side: top; font-stretch: 100%; font-size: 13.5px; color: var(--ink-2); padding-bottom: 10px; }
table.sheet th, table.sheet td { text-align: left; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; font-weight: 400; }
table.sheet th:last-child, table.sheet td:last-child { padding-right: 0; }
table.sheet thead th { font-size: 14px; font-weight: 700; border-bottom: 1.5px solid var(--ink); vertical-align: bottom; white-space: nowrap; }
table.sheet tbody:last-child tr:last-child > * { border-bottom: 1.5px solid var(--ink); }
table.sheet .num { text-align: right; white-space: nowrap; }
table.sheet tbody th[scope=row] { font-weight: 700; }
table.sheet th.group { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding-top: 26px; border-bottom: 1px solid var(--ink); }
table.sheet tbody:first-of-type th.group { padding-top: 14px; }
table.sheet td a { text-decoration: none; font-weight: 700; }
table.sheet td a:hover { text-decoration: underline; }
table.sheet .lead { font-weight: 700; font-size: 18px; }
table.sheet .sub { display: block; font-size: 13.5px; color: var(--ink-2); font-weight: 400; white-space: normal; }
table.sheet .pct { font-size: 13px; color: var(--ink-2); margin-left: 6px; }
table.sheet .partner { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-left: 6px; }
table.sheet .partner a { font-weight: 700; }
table.sheet .old { font-size: 13px; color: var(--ink-2); margin-left: 6px; white-space: nowrap; }
table.sheet .bar { display: block; height: 3px; background: var(--ink); margin: 5px 0 0 auto; min-width: 2px; }
table.sheet tr.desk > * { background: repeating-linear-gradient(135deg, var(--hatch) 0 1px, transparent 1px 7px); }
table.sheet tr.desk td:first-child, table.sheet tr.desk th:first-child { padding-left: 10px; }
table.sheet tr.desk td:last-child { padding-right: 10px; }
table.sheet tr.pending > * { color: var(--ink-2); }
table.sheet svg { display: block; }

/* Offerings table: two lines per row on narrow screens, no sideways scroll */
@media (max-width: 640px) {
  table.offers thead { position: absolute; left: -10000px; }
  table.offers, table.offers tbody { display: block; }
  table.offers tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
  table.offers th, table.offers td { display: block; border: 0 !important; padding: 0; }
  table.offers tr:has(th.group) { border-bottom: 1px solid var(--ink); padding: 18px 0 8px; }
  table.offers td.c-prov { order: 1; flex: 1 1 55%; }
  table.offers td.c-od { order: 2; margin-left: auto; }
  table.offers td.c-cfg { order: 3; flex: 0 0 100%; font-size: 14px; color: var(--ink-2); }
  table.offers td.c-cfg .sub { display: inline; margin-left: 6px; }
  table.offers td.c-x { order: 4; text-align: left; font-size: 14.5px; }
  table.offers td.c-x::before { content: attr(data-l) " "; color: var(--ink-2); }
  table.offers td.c-x.empty { display: none; }
  table.offers .bar { display: none; }
  table.offers tr.desk { padding: 10px; }
  table.offers tr.desk td { flex: 0 0 100%; padding: 0 !important; text-align: left; order: 3; }
  table.offers tr.desk td.c-prov { order: 1; }
  table.offers tr.desk td.c-cta { order: 5; margin-top: 8px; }
}
table.offers td.c-od { min-width: 120px; }
table.sheet td.c-cta, table.sheet tr.desk td { vertical-align: middle; }

/* The board (overview) */
table.board { min-width: 720px; }
table.board td.c-gpu a { font-size: 17px; }
table.sheet.board td.strip { width: 200px; }
table.sheet.board th.strip { text-align: left; font-weight: 700; color: var(--ink); font-size: 14px; }
table.board .spark { display: inline-block; vertical-align: middle; }
table.board .spark .line { stroke-width: 1.5; }

/* Price ladder: one axis, every provider on it */
.lad { position: relative; height: calc(var(--lanes, 1) * 24px + 48px); }
.lad-axis { position: absolute; left: 0; right: 0; bottom: 22px; border-top: 1.5px solid var(--ink); }
.lad-tick { position: absolute; bottom: 0; height: 22px; padding-top: 7px; transform: translateX(-50%); font-size: 12.5px; line-height: 1; color: var(--ink-2); font-stretch: 78%; font-variant-numeric: tabular-nums; }
.lad-tick::before { content: ""; position: absolute; left: 50%; top: 0; height: 5px; border-left: 1px solid var(--ink); }
.lad-tick.first { transform: none; } .lad-tick.first::before { left: 0; }
.lad-tick.last { transform: translateX(-100%); } .lad-tick.last::before { left: auto; right: 0; }
.lad-item { position: absolute; bottom: 23px; width: 0; height: calc(var(--lane) * 24px + 26px); border-left: 1px solid var(--ink-2); }
.lad-item::after, .lad-key { content: ""; position: absolute; left: -6.5px; bottom: -7px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 1.5px var(--paper); }
.lad-item.k-hyperscaler::after, .lad-key.k-hyperscaler { background: var(--paper); border: 2px solid var(--ink); }
.lad-item.k-marketplace::after, .lad-key.k-marketplace { border-radius: 0; }
.lad-key { position: static; display: inline-block; box-shadow: none; flex: none; }
.lad-label { position: absolute; top: -3px; left: 0; white-space: nowrap; font-size: 13.5px; line-height: 1.25; font-stretch: 78%; font-variant-numeric: tabular-nums; background: var(--paper); padding: 0 5px 1px 6px; }
.lad-label .hl { padding: 0 4px; margin-left: -4px; }
.lad-item.r .lad-label { left: auto; right: 0; padding: 0 6px 1px 5px; }
.lad-item.nolabel { height: 0; border: 0; }
.lad-range { position: absolute; bottom: 20px; height: 5px; background: var(--ink); }
@media (max-width: 640px) {
  .lad { height: 100px; }
  .lad-item { height: 26px; } .lad-item.lo { height: 52px; }
  .lad-item.minor { height: 0; border: 0; } .lad-item.minor .lad-label { display: none; }
}
.chart .scroll svg { min-width: 720px; }

/* Lead figure on tracker pages */
.intro { padding-top: 44px; padding-bottom: 40px; }
.intro h1 { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.08; }
.leadfig { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; margin: 30px 0 18px; }
.leadfig .hl { font-size: clamp(54px, 9vw, 84px); line-height: 1; font-weight: 700; padding: .04em .14em 0; }
.leadfig p { font-size: 16px; max-width: 52ch; }
.summary { font-size: 19px; line-height: 1.5; max-width: 62ch; }
.blurb { color: var(--ink-2); max-width: 68ch; margin-top: 12px; }
.chg-down { color: var(--down); } .chg-up { color: var(--up); }

/* Price ladder and charts: ink only, shape carries meaning */
.ladder { margin: 34px 0 0; }
.ladder svg, .chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.viz .axis { stroke: var(--ink); stroke-width: 1.5; }
.viz .tick { stroke: var(--ink); stroke-width: 1; }
.viz .grid { stroke: var(--rule); stroke-width: 1; }
.viz text { fill: var(--ink-2); font: 500 12.5px var(--sans); font-stretch: 78%; font-variant-numeric: tabular-nums; }
.viz text.name { fill: var(--ink); font-weight: 700; }
.viz .dot { fill: var(--ink); stroke: var(--paper); stroke-width: 1.5; }
.viz .ring { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.viz .mkt { stroke: var(--ink); stroke-width: 5; }
.viz .best { fill: var(--mark); }
.viz .line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: miter; }
.viz .xhair { stroke: var(--ink-2); stroke-width: 1; }
.viz .hit { cursor: crosshair; } .viz .hit:focus { outline: none; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13.5px; color: var(--ink-2); margin-top: 8px; font-stretch: 78%; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend svg { width: 16px; height: 12px; }
.chart { position: relative; margin: 8px 0 0; }
.tip { position: absolute; top: 0; pointer-events: none; background: var(--paper); border: 1px solid var(--ink); padding: 5px 9px; font-size: 13px; white-space: nowrap; font-stretch: 78%; }
.tip b { display: block; font-size: 16px; }
details.data { margin-top: 12px; font-size: 14px; }
details.data summary { cursor: pointer; color: var(--ink-2); }
details.data table { max-width: 320px; margin-top: 8px; }

/* Numbered notes, colophon */
ol.notes { margin: 0; padding: 0 0 0 20px; columns: 2 320px; column-gap: 48px; font-size: 13.5px; color: var(--ink-2); }
ol.notes li { margin-bottom: 8px; break-inside: avoid; }
ol.notes b { color: var(--ink); }
sup { font-size: .7em; line-height: 0; }

/* Two-up layouts */
.two { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 32px 56px; align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
.rent-list { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.rent-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.rent-list a b { font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.rent-list a:hover b { text-decoration-thickness: 2px; }
.rent-list a span { color: var(--ink-2); font-size: 14.5px; }

/* Questions */
.qa { max-width: 68ch; }
.qa h3 { font-size: 13px; letter-spacing: .05em; text-transform: uppercase; font-weight: 700; border-bottom: 1px solid var(--ink); padding-bottom: 8px; margin: 40px 0 0; }
.qa h3:first-child { margin-top: 0; }
.qa dl { margin: 0; }
.qa dt { font-weight: 700; font-size: 17px; margin: 20px 0 4px; }
.qa dd { margin: 0; color: var(--ink-2); }

/* Footer */
footer.colophon { border-top: 1.5px solid var(--ink); padding: 18px 0 40px; font-size: 14px; color: var(--ink-2); }
footer.colophon .cols { display: grid; grid-template-columns: 1.3fr 1.3fr .8fr; gap: 28px 48px; }
@media (max-width: 760px) { footer.colophon .cols { grid-template-columns: 1fr; } }
footer.colophon h4 { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
footer.colophon p { margin-bottom: 6px; }
footer.colophon ul { list-style: none; margin: 0; padding: 0; }
footer.colophon li { margin-bottom: 5px; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 28px; padding-top: 12px; border-top: 1px solid var(--rule); font-stretch: 78%; font-size: 14px; }
.theme { display: inline-flex; gap: 4px; align-items: baseline; }
.theme button { font: inherit; color: inherit; background: none; border: 0; padding: 2px 4px; cursor: pointer; }
.theme button[aria-pressed="true"] { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Legal and plain text pages */
.doc { max-width: 720px; margin: 0 auto; padding: 48px 16px 72px; counter-reset: sec; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.08; margin-bottom: 10px; }
.doc h2 { counter-increment: sec; font-size: 18px; font-weight: 700; margin: 34px 0 8px; padding-top: 16px; border-top: 1px solid var(--rule); }
.doc h2::before { content: counter(sec) ". "; font-stretch: 78%; }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 14px; padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc .lede { margin: 0 0 8px; }
.doc .draft { border: 1.5px solid var(--ink); padding: 10px 14px; font-size: 14.5px; margin: 20px 0; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media print { header.top nav, .theme, .btn, .btn-line { display: none !important; } }

/* Dot strip column in the reference table */
table.sheet th.strip { font-weight: 400; color: var(--ink-2); font-size: 13px; text-align: right; }
table.sheet td.strip { width: 184px; vertical-align: middle; }
@media (max-width: 700px) { table.sheet:not(.board) .strip { display: none; } }
