/* Compute Factory, "Ledger": the Logits house style (paper, ink, one orange accent) set like a price sheet.
   Data first; hairline rules instead of floating boxes; every price, count and number in monospace.
   Type scale: 11 (mono labels) / 12 / 13 / 15 / 18 / 24 / 36. Weights 400, 500, 600.
   No external fonts or inline styles: the page's policy allows only this stylesheet. */
:root {
  color-scheme: light;
  --paper: #faf9f5; --surface: #ffffff; --panel: #f3f2ec; --stage: #f7f6f1;
  --ink: #141414; --ink-3: #262626; --muted: #5c5a51; --faint: #6e6b62; --mid: #8d8a80;
  --hairline: #e4e2da; --line-strong: #cfcdc4;
  /* accent: fills, rules and markers only (about 3.4:1 on white); accent-ink: text and links */
  --accent: #f04a00; --accent-ink: #c43d00; --accent-soft: #ffe9e2;
  --positive: #1a7f4b; --negative: #a52d4b; --caution: #a36100;
  --positive-line: #1a7f4b4d; --caution-line: #a361004d; --accent-line: #c43d004d;
  --caution-bg: #fcf3e6;
  --on-ink: #ffffff;
  --series-1: var(--ink); --series-2: var(--mid); --series-mark: var(--accent);
  --nav-h: 57px;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
/* Light whatever the system theme (owner's decision); data-theme="dark" still opts in, on warm ink */
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #131311; --surface: #1b1a17; --panel: #24231f; --stage: #1f1e1b;
  --ink: #f3f2ec; --ink-3: #e4e2da; --muted: #bdbab0; --faint: #a6a399; --mid: #8d8a80;
  --hairline: #2f2d29; --line-strong: #4a4842;
  --accent: #f04a00; --accent-ink: #ff8f61; --accent-soft: #3b1f12;
  --positive: #5fbf86; --negative: #e36a82; --caution: #e0a24a;
  --positive-line: #5fbf864d; --caution-line: #e0a24a4d; --accent-line: #ff8f614d;
  --caution-bg: #2b2213;
  --on-ink: #141414;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--muted); font: 15px/1.5 var(--sans); font-variant-numeric: tabular-nums; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; border-radius: 0; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--ink); font-weight: 600; letter-spacing: -.015em; }
:is(button, select, input, a, summary, [tabindex]):focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 20; padding: 8px 12px; border: 1px solid var(--ink); background: var(--surface); color: var(--ink); }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }
/* disclosures: a plain +/− instead of the browser's triangle */
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; display: inline-block; width: 1.15em; font-family: var(--mono); font-weight: 400; color: var(--mid); }
details[open] > summary::before { content: "\2212"; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.block { margin-top: 56px; }
/* a section opens on an ink rule, like a page of a ledger */
.block > .sh:first-child { padding-top: 12px; border-top: 1px solid var(--ink); }
#all > .block:first-child { margin-top: 32px; }
.eyebrow { font: 500 11px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.sm { font-size: 13px; color: var(--faint); }
.foot { margin-top: 12px; font-size: 12px; color: var(--faint); max-width: 900px; }
.sh { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 16px; }
.sh h2 { font-size: 18px; line-height: 1.3; }
.sh h1 { font-size: 24px; line-height: 1.2; }
.sh > .sm { font: 12px/1.5 var(--mono); color: var(--faint); }

/* Header */
.nav { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--hairline); background: var(--paper); }
.navrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 28px; min-height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); text-decoration: none; padding: 8px 0; }
.brand span { color: var(--ink); font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.links { display: flex; gap: 24px; font-size: 13px; font-weight: 500; align-self: stretch; }
.links a { display: inline-flex; align-items: center; color: var(--muted); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; padding-top: 2px; }
.links a:hover { color: var(--ink); border-bottom-color: var(--line-strong); }
.links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
body:has(#gpu:not([hidden])) .links a[data-home] { color: var(--ink); border-bottom-color: var(--ink); }
.links a:focus-visible { outline-offset: -2px; }
:is(#main, #trends, #compare, #deals-section, #api, #g-rail) { scroll-margin-top: calc(var(--nav-h) + 8px); }
.updated { font: 12px/1.6 var(--mono); color: var(--faint); }
.updated time { color: var(--ink-3); }
.refresh { margin-left: 8px; min-height: 26px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--surface); color: var(--ink); font: 500 12px/1 var(--mono); cursor: pointer; vertical-align: 1px; }
.refresh:hover { border-color: var(--ink); }
.refresh:disabled { color: var(--faint); border-color: var(--hairline); cursor: progress; }
.refresh-err, .refresh-note { margin-left: 4px; color: var(--faint); font-size: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.btn.primary:hover { background: var(--ink-3); border-color: var(--ink-3); }
.btn:disabled { color: var(--faint); cursor: progress; }
.btn > span[aria-hidden="true"] { margin-left: .3em; }
.linkbtn { min-height: 36px; color: var(--muted); font-size: 13px; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; cursor: pointer; align-self: flex-start; }
.linkbtn:hover { color: var(--ink); text-decoration-color: currentColor; }

.notice { margin-top: 16px; padding: 10px 14px; border: 1px solid var(--caution-line); border-left: 2px solid var(--caution); background: var(--caution-bg); color: var(--ink-3); font-size: 13px; }
.notice strong { color: var(--caution); }
.notice button { margin-left: 10px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
details.errors { margin-top: 12px; padding: 8px 14px; border: 1px solid var(--hairline); background: var(--surface); font-size: 12px; }
details.errors summary { color: var(--muted); }
details.errors ul { display: grid; gap: 4px; margin: 8px 0 4px; padding-left: 16px; }
details.errors code { font: 11px/1.5 var(--mono); overflow-wrap: anywhere; }

/* Home: a header strip (counts | updated) over the title and its note */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; padding-top: 28px; }
.badge { display: flex; align-items: center; gap: 10px; min-height: 30px; padding-bottom: 8px; border-bottom: 1px solid var(--hairline); font: 500 12px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.badge::before { content: ""; flex: 0 0 7px; height: 7px; background: var(--accent); }
.hero .updated { min-height: 30px; padding-bottom: 8px; border-bottom: 1px solid var(--hairline); text-align: right; }
.hero h1 { margin-top: 22px; font-size: 36px; line-height: 1.1; letter-spacing: -.025em; text-wrap: balance; }
.lede { justify-self: end; max-width: 540px; margin-top: 22px; padding-left: 24px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.hero + .block { margin-top: 28px; }

/* Home: the price board, GPU quotes sharing their rules; a short last row leaves a tinted blank, not a ragged edge */
.catalog { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); border-left: 1px solid var(--hairline); background: var(--panel); box-shadow: inset -1px -1px 0 var(--hairline); }
.gpucard { display: flex; flex-direction: column; min-width: 0; padding: 14px 18px 16px; box-shadow: inset -1px -1px 0 var(--hairline); background: var(--surface); color: var(--ink); text-decoration: none; transition: background-color .12s; }
.gpucard:hover { background: var(--stage); box-shadow: inset -1px -1px 0 var(--hairline), inset 0 2px 0 var(--accent); }
.gpucard:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: -2px; }
.gpucard .kicker { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 8px; font: 500 11px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.gpucard .name { margin-top: 8px; font-size: 18px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.gpucard .spec { margin-top: 1px; font: 12px/1.5 var(--mono); color: var(--muted); }
.gpucard .from { margin-top: auto; padding-top: 16px; font-size: 12px; color: var(--faint); }
.gpucard .big { margin-top: 1px; font: 600 24px/1.25 var(--mono); letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.gpucard .big.none { font: 500 13px/1.5 var(--sans); letter-spacing: 0; color: var(--muted); white-space: normal; }
.gpucard .unit { margin-left: 2px; font: 400 12px var(--mono); letter-spacing: 0; color: var(--faint); }
/* a list price with nothing available now is set quieter than a live one */
.gpucard .big.list { font-weight: 400; color: var(--faint); }
.gpucard .count { margin-top: 6px; font: 11px/1.5 var(--mono); color: var(--faint); }
.meter { display: block; margin-top: 10px; height: 3px; background: var(--hairline); overflow: hidden; }
.meter > span { display: block; height: 100%; width: 0; background: var(--positive); }

/* Home: price trends */
.trendstats { display: flex; flex-wrap: wrap; margin: 2px 0 18px; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.tstat { display: flex; flex-direction: column; gap: 1px; padding: 10px 32px 12px 0; }
.tstat + .tstat { padding-left: 24px; border-left: 1px solid var(--hairline); }
.tstat .tl { font: 500 11px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.tstat b { font: 600 24px/1.25 var(--mono); letter-spacing: -.02em; color: var(--ink); }
.tstat b.down { color: var(--positive); }
.tstat b.up { color: var(--negative); }
.tstat .ts { font-size: 12px; color: var(--muted); }

/* Home: compare */
.picks { display: flex; flex-wrap: wrap; gap: 6px; }
.pick { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 10px; border: 1px solid var(--hairline); border-radius: 2px; background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 500; cursor: pointer; }
.pick:hover { border-color: var(--line-strong); color: var(--ink); }
.pick:has(input:checked) { border-color: var(--ink); color: var(--ink); }
.pick input { width: 15px; height: 15px; margin: 0; accent-color: var(--ink); }
.pick:has(input:disabled) { color: var(--faint); border-color: var(--hairline); cursor: not-allowed; }
@supports selector(:has(*)) {
  .pick:has(input:focus-visible) { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
  .pick input:focus-visible { outline: 0; }
}
.cmp { min-width: 640px; table-layout: fixed; }
.cmp thead td { width: 248px; }
.cmp thead th { font: 600 15px/1.3 var(--sans); letter-spacing: -.01em; color: var(--ink); text-transform: none; text-align: right; white-space: normal; overflow-wrap: anywhere; }
.cmp tbody th { color: var(--muted); font-weight: 500; font-size: 13px; }
.cmp td { color: var(--ink); text-align: right; font-size: 13px; }
.cmp tbody tr:first-child td { font: 12px/1.5 var(--mono); color: var(--ink-3); }
.cmp tbody tr:last-child td { font: 13px/1.5 var(--mono); color: var(--ink-3); }
.cmp .who { display: block; font: 12px/1.4 var(--sans); color: var(--faint); overflow-wrap: anywhere; }
.cmp .val { font: 600 15px/1.4 var(--mono); }

/* GPU page */
.gpuhead { padding-top: 24px; }
.gpuhead .sh { margin: 0 0 14px; }
.searchbar { display: flex; flex-wrap: wrap; max-width: 760px; margin-bottom: 14px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--surface); }
.searchbar label { flex: 1 1 160px; display: flex; flex-direction: column; padding: 7px 14px 5px; cursor: pointer; }
.searchbar label + label { border-left: 1px solid var(--hairline); }
.searchbar span { font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.searchbar select { min-height: 30px; padding: 2px 0; border: 0; background: transparent; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; }
/* the terms as ruled quote cells: every term in view, wrapping onto a second row when needed (on phones one row
   that scrolls sideways) */
.terms-scroll { overflow-x: auto; scrollbar-width: thin; }
.terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); border-top: 1px solid var(--line-strong); border-left: 1px solid var(--hairline); background: var(--panel); box-shadow: inset -1px -1px 0 var(--hairline); }
.terms:empty, .presets:empty { border: 0; }
.termbtn { display: flex; flex-direction: column; min-width: 0; padding: 8px 12px 9px; border-right: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: var(--surface); text-align: left; cursor: pointer; }
.termbtn:hover { background: var(--stage); }
.termbtn:focus-visible { outline-offset: -2px; }
.termbtn .tl { font-size: 12px; color: var(--muted); }
.termbtn .tp { font: 600 18px/1.3 var(--mono); letter-spacing: -.02em; color: var(--ink); }
.termbtn .ts { font-size: 11px; line-height: 1.4; color: var(--faint); }
.termbtn .ts.free { color: var(--positive); font-weight: 600; }
/* nothing available on a term: a quiet cell, so the live prices read first */
.termbtn[data-free="0"] { background: var(--stage); }
.termbtn[data-free="0"] .tp { font-weight: 400; color: var(--faint); }
.termbtn[data-free="0"]:hover { background: var(--panel); }
.termbtn[aria-pressed="true"] { background: var(--surface); box-shadow: inset 0 -2px 0 var(--ink); }
.termbtn[aria-pressed="true"] .tl { color: var(--ink); font-weight: 600; }
.hint { margin-top: 12px; padding: 9px 14px; border-left: 2px solid var(--accent); background: var(--stage); color: var(--ink-3); font-size: 13px; }
.hint strong { font-family: var(--mono); color: var(--ink); }

.gpubody { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; margin-top: 24px; }
.rail { flex: 1 1 232px; max-width: 100%; display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.rail fieldset { margin: 0; padding: 10px 0 12px; border: 0; border-bottom: 1px solid var(--hairline); display: flex; flex-direction: column; min-width: 0; }
.rail legend { float: left; width: 100%; margin-bottom: 4px; padding: 0; font: 500 11px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.rail fieldset > :not(legend) { clear: both; }
.rail > .linkbtn { margin-top: 6px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 32px; color: var(--ink-3); font-size: 13px; line-height: 1.35; cursor: pointer; }
.check input { width: 15px; height: 15px; margin: 0; flex: 0 0 auto; accent-color: var(--ink); }
.check .n { margin-left: auto; padding-left: 8px; font: 12px var(--mono); color: var(--faint); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 32px; padding: 0 10px; border: 1px solid var(--hairline); border-radius: 2px; background: var(--surface); color: var(--ink-3); font-size: 13px; cursor: pointer; }
.chip:hover { border-color: var(--line-strong); }
.chip[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); font-weight: 600; }
.chip .n { margin-left: 6px; font: 11px var(--mono); color: var(--faint); }
.results { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
/* quick picks: three quotes in one ruled row */
.presets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); border: 1px solid var(--line-strong); border-radius: 2px; background: var(--surface); }
.preset { display: flex; flex-direction: column; gap: 2px; padding: 10px 16px 12px; text-align: left; cursor: pointer; }
.preset + .preset { border-left: 1px solid var(--hairline); }
.preset:hover { background: var(--stage); }
.preset[aria-pressed="true"] { box-shadow: inset 0 -2px 0 var(--ink); background: var(--surface); }
.preset:focus-visible { outline-offset: -2px; }
.preset b { font-size: 12px; font-weight: 500; color: var(--muted); }
.preset[aria-pressed="true"] b { color: var(--ink); font-weight: 600; }
.preset span { font: 500 13px/1.5 var(--mono); color: var(--ink); }
.rmeta { padding: 0 2px; font: 12px/1.6 var(--mono); color: var(--muted); }
.rmeta strong { color: var(--ink); font-weight: 600; }
.rmeta .subline { font-family: var(--sans); }
.rmeta .linkbtn { min-height: 0; font-size: 12px; }
/* the offers: ruled rows inside one panel, on one grid so prices and Rent line up */
.cards { display: flex; flex-direction: column; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--surface); }
.cards:has(> .empty), .cards:has(> .loading), .cards:has(> .notice) { border: 0; background: none; }
.cards > .notice { margin-top: 0; }
.offer { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) 104px 136px; grid-template-areas: "who vs cost go"; align-items: center; gap: 10px 24px; padding: 13px 18px; }
.offer + .offer { border-top: 1px solid var(--hairline); }
.offer.best { box-shadow: inset 3px 0 0 var(--accent); }
.offer .who { grid-area: who; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.offer h3 { font-size: 15px; letter-spacing: -.01em; line-height: 1.35; }
.offer h3 a { text-decoration: none; }
.offer h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.offer h3 .where { font-weight: 400; font-size: 13px; color: var(--faint); }
.offer .what { font-size: 13px; color: var(--muted); }
.offer .pills { display: flex; flex-wrap: wrap; gap: 2px 14px; }
/* status as text with a shape marker (dot, diamond, square), like the table's availability glyphs */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; line-height: 1.5; color: var(--faint); white-space: nowrap; }
.pill::before { content: ""; flex: 0 0 6px; height: 6px; border: 1px solid var(--mid); border-radius: 50%; }
.pill.good { color: var(--positive); }
.pill.good::before { border: 0; background: var(--positive); }
.pill.warn { color: var(--caution); }
.pill.warn::before { width: 6px; border: 0; border-radius: 0; background: var(--caution); transform: rotate(45deg); }
.pill.info { color: var(--accent-ink); }
.pill.info::before { border: 0; border-radius: 0; background: var(--accent); }
.offer .vs { grid-area: vs; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pbar { display: block; position: relative; height: 4px; background: var(--hairline); }
.pbar > .fill { display: block; height: 4px; width: 0; background: var(--mid); }
.offer.best .pbar > .fill { background: var(--accent); }
.pbar > .typ { position: absolute; top: -4px; width: 1px; height: 12px; background: var(--ink); left: 0; }
.offer .vs span.cmpx { font: 11px/1.4 var(--mono); color: var(--faint); }
.offer .cost { grid-area: cost; text-align: right; }
.offer .cost b { display: block; font: 600 24px/1.2 var(--mono); letter-spacing: -.02em; color: var(--ink); }
.offer .cost span { font-size: 11px; color: var(--faint); }
.offer .go { grid-area: go; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 0; }
.offer .go .tag.ref { margin-left: 0; }
.go-hint { font-size: 11px; line-height: 1.4; color: var(--faint); text-align: right; }
.more { align-self: center; margin-top: 6px; }
#table .more { display: flex; margin: 14px auto 0; }

/* Tables (deals, compare, all offers, history): a ledger, numerals right-aligned in mono */
.scroll { position: relative; overflow-x: auto; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--surface); }
/* separate borders keep the row rules under the sticky first column */
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th, td { padding: 9px 14px; text-align: left; vertical-align: baseline; border-bottom: 1px solid var(--hairline); }
tbody tr:last-child > * { border-bottom: 0; }
thead th, thead td { padding-top: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line-strong); background: var(--stage); vertical-align: bottom; }
thead th { font: 500 11px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
tbody tr:hover > * { background-color: var(--stage); }
.num { text-align: right; font-family: var(--mono); font-size: 13px; white-space: nowrap; }
thead th.num { font-size: 11px; }
.primary { color: var(--ink); font-weight: 600; }
.subline { display: block; font-size: 12px; color: var(--faint); }
.offers { min-width: 1120px; font-size: 13px; }
.offers td time { font: 12px var(--mono); color: var(--muted); white-space: nowrap; }
.sort { display: inline-flex; align-items: center; gap: 2px; min-height: 24px; color: inherit; cursor: pointer; white-space: nowrap; font: inherit; letter-spacing: inherit; text-transform: inherit; }
.sort:hover { color: var(--ink); }
th[aria-sort="ascending"], th[aria-sort="descending"] { box-shadow: inset 0 -2px 0 var(--ink); }
th[aria-sort="ascending"] .sort, th[aria-sort="descending"] .sort { color: var(--ink); }
/* every row two lines at most: short cells never wrap, and the seller's own wording gets a wide, small column
   with its Details disclosure running on after it */
.offers :is(td, th) { padding-left: 10px; padding-right: 10px; }
.offers :is(td, th):first-child { padding-left: 14px; }
.offers td { line-height: 1.4; }
.offers .subline:has(.rent) { white-space: nowrap; }
.term { min-width: 160px; max-width: 320px; font-size: 12px; color: var(--muted); }
.offers details.notes { display: inline; margin-left: 6px; font-size: 12px; color: var(--faint); line-height: 1.5; }
.offers details.notes summary { display: inline; color: var(--muted); white-space: nowrap; }
.offers details.notes[open] summary { margin-right: 4px; }
/* the GPU stays in view while the table scrolls sideways */
.offers .gpucell, .offers thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); white-space: nowrap; box-shadow: inset -1px 0 0 var(--hairline); }
.offers thead th:first-child { background: var(--stage); }
.cmp tbody th, .cmp thead td { position: sticky; left: 0; z-index: 1; background: var(--surface); }
.cmp thead td { background: var(--stage); }
.link { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.link:hover { text-decoration-color: currentColor; }
.stock { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 12px; color: var(--faint); }
.stock > span { width: 7px; height: 7px; flex: 0 0 7px; border: 1px dashed var(--faint); border-radius: 50%; }
.stock.in { color: var(--positive); font-weight: 600; }
.stock.in > span { background: var(--positive); border: 0; }
.stock.out { color: var(--negative); }
.stock.out > span { background: var(--negative); border: 0; border-radius: 0; transform: rotate(45deg); }
.stock.soon { color: var(--muted); }
.stock.soon > span { border-style: solid; border-color: var(--positive); }
.discount { color: var(--positive); font-weight: 600; }
tr.new > :first-child { box-shadow: inset 3px 0 0 var(--accent); }
.tag { display: inline-block; margin-left: 8px; padding: 0 5px; border: 1px solid; border-radius: 2px; font: 500 11px/1.5 var(--mono); letter-spacing: .03em; text-transform: uppercase; vertical-align: 1px; white-space: nowrap; }
.tag.newtag { color: var(--accent-ink); border-color: var(--accent-line); }
.tag.leaving { color: var(--caution); border-color: var(--caution-line); }
.tag.check { color: var(--caution); border-color: var(--caution-line); text-transform: none; }
.tag.cc { margin-left: 6px; color: var(--positive); border-color: var(--positive-line); }
.tag.ref { margin-left: 6px; color: var(--faint); border-color: var(--hairline); }
.rentcell { white-space: nowrap; }
.rent { font-weight: 600; color: var(--accent-ink); text-decoration-color: var(--accent-line); }
.skipped { display: block; margin-top: 2px; font-size: 12px; color: var(--caution); }

/* All offers: the filter bar as one ruled strip */
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 8px 14px; margin-bottom: 14px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--surface); font-size: 13px; }
.bar .check { min-height: 36px; }
.bar select, .search { min-height: 36px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--surface); color: var(--ink); font-size: 13px; max-width: 100%; }
.bar select { cursor: pointer; }
.bar select:hover, .search:hover { border-color: var(--mid); }
.search { flex: 1 1 200px; min-width: 0; }
.search::placeholder { color: var(--faint); }
.bar .linkbtn { margin-left: auto; align-self: center; }
/* segmented choices: a ruled box; the choice carries a 2px ink rule */
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--surface); }
.seg button { min-height: 34px; padding: 0 12px; color: var(--muted); font-size: 13px; cursor: pointer; white-space: nowrap; }
.seg button:hover { color: var(--ink); background: var(--stage); }
.seg button[aria-pressed="true"] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--ink); background: var(--surface); }
.seg button:focus-visible { outline-offset: -2px; }
#t-range button, #h-range button { font-family: var(--mono); font-size: 12px; }

/* Price history chart */
.hbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 14px; }
.legend { display: flex; gap: 18px; margin-bottom: 8px; font: 11px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.key { display: inline-flex; align-items: center; gap: 8px; }
.key i { display: inline-block; width: 18px; height: 0; border-top: 2px solid var(--series-1); }
.key.s2 i { border-top: 2px dashed var(--series-2); }
.chart { position: relative; border: 1px solid var(--hairline); border-top-color: var(--line-strong); border-radius: 2px; background: var(--surface); padding: 12px 6px 0; overflow: hidden; }
.chart svg { display: block; width: 100%; height: auto; }
.chart svg:focus-visible { outline-offset: -2px; }
.gridline { stroke: var(--hairline); stroke-width: 1; }
.axis { fill: var(--faint); font: 11px var(--mono); }
.line { fill: none; stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.line.s1 { stroke: var(--series-1); }
.line.s2 { stroke: var(--series-2); stroke-width: 1.5; stroke-dasharray: 4 3; }
.dot, .end, .hover { stroke: var(--surface); stroke-width: 2; }
.s1:is(.dot, .end, .hover) { fill: var(--series-1); }
.s2:is(.dot, .end, .hover) { fill: var(--series-2); }
.s1:is(.end, .hover) { fill: var(--series-mark); }
.cross { stroke: var(--mid); stroke-width: 1; stroke-dasharray: 2 2; }
.hit { fill: transparent; cursor: crosshair; }
.tip { position: absolute; top: 10px; min-width: 160px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--surface); font-size: 12px; pointer-events: none; }
.tipwhen { margin-bottom: 4px; font: 11px var(--mono); color: var(--faint); }
.tiprow { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.tiprow strong { font: 600 13px/1.6 var(--mono); color: var(--ink); }
.tiprow i { width: 12px; height: 0; border-top: 2px solid var(--series-1); }
.tiprow i.s2 { border-top: 2px dashed var(--series-2); }
.tipfrom { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--hairline); color: var(--muted); }
.hdetails { margin-top: 10px; font-size: 13px; }
.hdetails summary { color: var(--muted); }
.hdetails .scroll { margin-top: 8px; max-height: 360px; overflow: auto; }
.hdetails thead th { position: sticky; top: 0; z-index: 2; }
.hdetails thead th:first-child { left: auto; }
.htable { min-width: 560px; }

.empty { padding: 28px 20px; border: 1px solid var(--hairline); border-radius: 2px; background: var(--surface); text-align: center; }
.empty h3 { margin: 0 0 4px; font-size: 15px; }
.empty p { max-width: 560px; margin: 0 auto; font-size: 13px; }
.empty .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.quiet { padding: 10px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); color: var(--muted); font-size: 13px; }
.near-h { margin-top: 18px; font: 500 11px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.near { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--surface); }
.near li { padding: 10px 14px; font-size: 13px; color: var(--muted); }
.near li + li { border-top: 1px solid var(--hairline); }
.near b { color: var(--ink); font-weight: 600; }
.near strong { margin-left: 4px; font: 600 15px var(--mono); color: var(--ink); }
.near .sm { font-size: 12px; }
.near .rent { margin-left: 6px; }
#deals-meta:not(:empty)::after { content: " · "; }
details.rule summary { color: var(--muted); font-weight: 500; }
details.rule p { margin-top: 6px; }
/* room held while data loads, so the page does not jump when it lands */
.catalog > .loading { grid-column: 1 / -1; height: 440px; }
#trend, #history { min-height: 300px; }
.filters-jump { display: none; align-self: flex-start; }
.loading { height: 140px; background: linear-gradient(90deg, var(--panel), var(--stage), var(--panel)); background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .loading { animation: none; } .gpucard { transition: none; } }

/* Footer */
.footer { margin-top: 72px; border-top: 1px solid var(--ink); background: var(--stage); }
.footgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px 56px; padding-top: 24px; padding-bottom: 40px; }
.brandline { margin-bottom: 10px; font-weight: 600; font-size: 15px; color: var(--ink); letter-spacing: -.01em; }
.method { font-size: 13px; color: var(--faint); max-width: 760px; }
.method summary { color: var(--muted); font-weight: 500; }
.method p { margin-top: 8px; }
.method ul { margin: 8px 0 0; padding-left: 18px; }
.method li { margin-top: 6px; }
.method li::marker { color: var(--mid); }
.apibox { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.apibox code a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.apibox code a:hover { text-decoration-color: currentColor; }
.apibox code { padding: 10px 12px; border: 1px solid var(--hairline); border-radius: 2px; background: var(--surface); color: var(--ink); font: 12px/1.7 var(--mono); }
.apibox .sm { font-size: 13px; }

/* a strip that scrolls sideways fades at its right edge until it reaches the end (where scroll timelines exist) */
@supports (animation-timeline: scroll()) {
  @keyframes edge-fade {
    0%, 96% { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), #0000); mask-image: linear-gradient(to right, #000 calc(100% - 56px), #0000); }
    100% { -webkit-mask-image: none; mask-image: none; }
  }
}
/* from 1024px the filter rail sits beside the offers (a grid, so it never wraps above them) and stays in view
   beside a long list where the screen is tall enough for it */
@media (min-width: 1024px) {
  .gpubody { display: grid; grid-template-columns: 236px minmax(0, 1fr); }
}
@media (min-width: 1024px) and (min-height: 760px) {
  .rail { position: sticky; top: calc(var(--nav-h) + 16px); }
}
@media (max-width: 1099px) {
  .catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* below the two-column width the offers come first and the filters follow (Filters ↓ jumps there) */
@media (max-width: 1023px) {
  .gpubody { flex-direction: column; align-items: stretch; }
  .results { order: -1; flex: 1 1 auto; }
  .rail { flex: 1 1 auto; }
  .filters-jump { display: inline-flex; align-items: center; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero .updated { min-height: 28px; padding-top: 6px; padding-bottom: 0; border-bottom: 0; text-align: left; }
  .lede { justify-self: start; max-width: 620px; margin-top: 8px; padding-left: 0; }
  .hero h1 { margin-top: 14px; }
}
@media (max-width: 720px) {
  :root { --nav-h: 0px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .block { margin-top: 44px; }
  #all > .block:first-child { margin-top: 24px; }
  /* on a phone the header scrolls away with the page: it is two rows tall */
  .nav { position: static; }
  .navrow { flex-wrap: nowrap; flex-direction: column; align-items: stretch; gap: 0; min-height: 0; }
  .brand { padding: 10px 0 2px; }
  .links { width: 100%; justify-content: space-between; gap: 10px; overflow-x: auto; scrollbar-width: none; }
  .links::-webkit-scrollbar { display: none; }
  .links a { min-height: 42px; }
  .hero { padding-top: 16px; }
  .hero h1 { font-size: 24px; }
  .lede { font-size: 13px; }
  .hero + .block { margin-top: 18px; }
  .updated { font-size: 11px; }
  .refresh { min-height: 32px; margin-left: 6px; padding: 0 8px; font-size: 11px; }
  #t-gpu { flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
  @supports (animation-timeline: scroll()) { #t-gpu { animation: edge-fade linear both; animation-timeline: scroll(self inline); } }
  .sh h1 { font-size: 24px; }

  /* the board as a quote list: name and price on one line, the details under them */
  .catalog { grid-template-columns: minmax(0, 1fr); }
  .gpucard { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "kicker kicker" "name big" "spec from" "meter meter" "count count"; column-gap: 12px; padding: 10px 14px 12px; }
  .gpucard .kicker { grid-area: kicker; justify-content: flex-start; gap: 0 10px; }
  .gpucard .name { grid-area: name; margin-top: 2px; align-self: baseline; }
  .gpucard .spec { grid-area: spec; }
  .gpucard .from { grid-area: from; margin-top: 1px; padding-top: 0; text-align: right; align-self: start; }
  .gpucard .big { grid-area: big; margin-top: 2px; text-align: right; align-self: baseline; }
  .gpucard .meter { grid-area: meter; margin-top: 8px; }
  .gpucard .count { grid-area: count; margin-top: 4px; font: 12px/1.5 var(--sans); }

  .trendstats { display: grid; grid-template-columns: 1fr 1fr; }
  .tstat { padding: 9px 12px 10px 0; }
  .tstat + .tstat { padding-left: 12px; }
  .tstat:nth-child(3) { grid-column: 1 / -1; padding-left: 0; border-left: 0; border-top: 1px solid var(--hairline); }
  .seg button { min-height: 40px; padding: 0 11px; }
  .pick { min-height: 40px; }
  .check { min-height: 40px; }
  .chip { min-height: 40px; padding: 0 12px; }
  .linkbtn { min-height: 40px; }
  summary { padding: 9px 0; }

  /* the terms in one row that scrolls sideways, fading at the edge while there is more */
  .terms { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(max-content, 1fr); }
  .termbtn { min-width: 92px; white-space: nowrap; }
  @supports (animation-timeline: scroll()) { .terms-scroll { animation: edge-fade linear both; animation-timeline: scroll(self inline); } }
  /* the GPU, term and size stacked, each label beside its select, so no name is cut short */
  .searchbar { flex-direction: column; flex-wrap: nowrap; }
  .searchbar label { flex: 0 0 auto; flex-direction: row; align-items: center; gap: 10px; padding: 0 10px 0 12px; }
  .searchbar label + label { border-left: 0; border-top: 1px solid var(--hairline); }
  .searchbar span { flex: 0 0 40px; }
  .searchbar select { flex: 1 1 auto; min-width: 0; min-height: 40px; font-size: 14px; }
  .gpubody { margin-top: 18px; gap: 20px; }
  /* quick picks as three ruled rows: the pick on the left, its price on the right */
  .presets { grid-template-columns: 1fr; }
  .preset { gap: 0; padding: 7px 14px 8px; }
  .preset + .preset { border-left: 0; border-top: 1px solid var(--hairline); }
  .preset[aria-pressed="true"] { box-shadow: inset 2px 0 0 var(--ink); }
  /* an offer: who and where on the left; the price and Rent on the right; the bar under them */
  .offer { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who cost" "who go" "vs vs"; align-items: start; gap: 8px 14px; padding: 12px 14px; }
  .offer .vs { flex-direction: row; align-items: center; gap: 10px; }
  .offer .vs:empty { display: none; }
  .offer .vs .pbar { flex: 1 1 auto; }
  .offer .vs span.cmpx { flex: 0 0 auto; }
  .offer .cost b { font-size: 24px; }
  .offer .go { align-self: end; }
  .go-hint { max-width: 128px; }
  .bar { padding: 8px 12px; gap: 4px 12px; }
  .bar .linkbtn { margin-left: 0; }
  .bar .seg { order: -1; display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .bar select, .search { min-height: 40px; flex: 1 1 140px; }
  .bar .check { width: 100%; }
  th, td { padding: 9px 12px; }
  /* the GPU columns fit beside the row labels instead of scrolling out of view */
  .cmp { min-width: 0; }
  .cmp thead td { width: 96px; }
  .cmp thead th { font-size: 13px; }
  .cmp tbody th { font-size: 12px; padding-left: 10px; }
  .cmp td { font-size: 12px; }
  .cmp th, .cmp td { padding: 9px 7px; }
  .cmp .val { font-size: 13px; }
  .cmp .who { font-size: 11px; }
  .cmp tbody tr:first-child td { font-size: 11px; }
  .near .rent { display: inline-block; padding: 10px 8px; margin: -10px 0 -10px 4px; }
  .apibox code { white-space: normal; }
  .footer { margin-top: 56px; }
}
@media (max-width: 380px) {
  .links { gap: 8px; }
  .searchbar label { gap: 8px; }
  .searchbar span { flex-basis: 36px; }
  .searchbar select { font-size: 13px; }
}
