/* gpu.gl — system fonts only, no external requests. */
:root {
  --bg: #ffffff;
  --fg: #16181b;
  --muted: #5b626b;
  --line: #e3e6ea;
  --soft: #f5f7f9;
  --accent: #0b7a5c;
  --accent-fg: #ffffff;
  --warn: #9a4b00;
  --warn-bg: #fff3e0;
  --spot: #5a3fb0;
  --res: #8a5a00;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101214;
    --fg: #e8eaed;
    --muted: #a3aab3;
    --line: #2a2f35;
    --soft: #181b1f;
    --accent: #38c79a;
    --accent-fg: #0b1512;
    --warn: #ffb35c;
    --warn-bg: #2b1d0c;
    --spot: #b9a6ff;
    --res: #e6b65c;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.55 var(--sans); }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--accent-fg); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

header.site { border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 8px 24px; min-height: 56px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 6px; }
.brand { font: 700 22px/1 var(--mono); color: var(--fg); text-decoration: none; letter-spacing: -0.02em; }
.brand::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--accent); margin-right: 8px; vertical-align: 2px; }
nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; }
nav a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 6px 0; display: inline-block; }
nav a:hover, nav a[aria-current="page"] { color: var(--fg); }
nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }

main { padding: 24px 16px 48px; }
h1 { font-size: clamp(26px, 4vw, 36px); line-height: 1.15; margin: 8px 0 12px; letter-spacing: -0.02em; }
h2 { font-size: 21px; margin: 36px 0 10px; letter-spacing: -0.01em; }
h3 { font-size: 17px; margin: 24px 0 8px; }
.lede { font-size: 18px; color: var(--muted); max-width: 820px; margin: 0 0 20px; }
.note, .small { color: var(--muted); font-size: 14px; max-width: 900px; }
.muted { color: var(--muted); }
p, li { max-width: 860px; }
code { font: 13px var(--mono); background: var(--soft); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.crumbs { font-size: 14px; color: var(--muted); }

#freshness { margin-top: 12px; }
#freshness p { margin: 0; padding: 10px 14px; background: var(--warn-bg); color: var(--warn); border-radius: 6px; font-size: 15px; max-width: none; }

.cards { list-style: none; padding: 0; margin: 0 0 8px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cards li { max-width: none; }
.card { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--fg); height: 100%; }
.card:hover { border-color: var(--accent); }
.card-name { font-weight: 650; }
.card-price { font: 600 22px/1.2 var(--mono); color: var(--accent); }
.card-unit { font-size: 13px; color: var(--muted); }
.card-meta { font-size: 13px; color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; padding: 14px 16px; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; margin: 12px 0; }
.filters div { display: flex; flex-direction: column; gap: 4px; }
.filters label { font-size: 13px; font-weight: 600; color: var(--muted); }
select, button { font: inherit; font-size: 15px; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; min-height: 40px; }
select:hover, button:hover { border-color: var(--muted); }
.filters button[type="reset"] { cursor: pointer; }
.f-count { flex-basis: 100%; margin: 0; font-size: 14px; color: var(--muted); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; margin: 8px 0 16px; }
table.prices { border-collapse: collapse; width: 100%; font-size: 14.5px; }
table.prices caption { text-align: left; padding: 8px 12px; color: var(--muted); font-size: 13px; caption-side: top; }
table.prices th, table.prices td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; white-space: nowrap; }
table.prices tbody tr:last-child > * { border-bottom: 0; }
table.prices thead th { position: sticky; top: 0; background: var(--soft); font-size: 13px; font-weight: 650; color: var(--muted); }
table.prices thead th button { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
table.prices thead th button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
table.prices thead th[aria-sort="ascending"] button::after { content: "▲"; font-size: 10px; }
table.prices thead th[aria-sort="descending"] button::after { content: "▼"; font-size: 10px; }
table.prices tbody th { font-weight: 600; }
table.prices tbody tr:hover > * { background: var(--soft); }
.num { text-align: right !important; font-variant-numeric: tabular-nums; }
.price .v { font: 600 15px var(--mono); }
.native { display: block; font: 12px var(--mono); color: var(--muted); }
.cfg { white-space: normal !important; min-width: 180px; max-width: 320px; color: var(--muted); }
.type { font-size: 13px; padding: 1px 7px; border-radius: 999px; border: 1px solid currentColor; }
.t-on-demand { color: var(--accent); }
.t-spot { color: var(--spot); }
.t-reserved-1y, .t-reserved-3y { color: var(--res); }
.ts { font-variant-numeric: tabular-nums; }
.age { color: var(--muted); font-size: 12px; margin-left: 4px; }
.badge-stale { font-size: 11px; font-weight: 700; color: var(--warn); background: var(--warn-bg); padding: 1px 6px; border-radius: 4px; text-transform: uppercase; }
tr[hidden] { display: none; }

.statgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 16px 0 8px; }
.stat { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.stat-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.stat-value { font: 600 26px/1.2 var(--mono); }
.stat-meta { font-size: 13px; color: var(--muted); }

table.spec { border-collapse: collapse; margin: 8px 0; min-width: 320px; }
table.spec th, table.spec td { text-align: left; padding: 6px 16px 6px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
table.spec th { font-weight: 600; color: var(--muted); }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 16px 0; font-size: 15px; }
dl.facts dt { font-weight: 600; color: var(--muted); }
dl.facts dd { margin: 0; }
@media (max-width: 640px) { dl.facts { grid-template-columns: 1fr; } dl.facts dd { margin-bottom: 8px; } }

.chart { width: 100%; max-width: 760px; height: auto; display: block; margin: 8px 0; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font: 12px var(--sans); }
.chart .series-low { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.chart .series-median { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 4; }
.legend { font-size: 14px; color: var(--muted); }
.key { display: inline-block; width: 18px; height: 0; vertical-align: middle; margin: 0 4px 0 0; }
.key-low { border-top: 3px solid var(--accent); }
.key-median { border-top: 2px dashed var(--muted); margin-left: 8px; }
details summary { cursor: pointer; color: var(--accent); margin: 8px 0; }

.pill-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list a { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; text-decoration: none; }
.pill-list a:hover { border-color: var(--accent); }
ol.log li { margin-bottom: 8px; }
ol.log time { font: 13px var(--mono); color: var(--muted); margin-right: 8px; }

.estimator { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); padding: 16px; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; margin: 12px 0; }
.estimator div { display: flex; flex-direction: column; gap: 4px; }
.estimator label { font-size: 13px; font-weight: 600; color: var(--muted); }
.estimator input { font: inherit; font-size: 15px; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; min-height: 40px; }
.est-out { font-size: 18px; }

footer.site { border-top: 1px solid var(--line); padding: 20px 0 32px; font-size: 14px; color: var(--muted); }
footer.site p { margin: 6px 0; max-width: none; }
footer.site .contact { font-size: 15px; color: var(--fg); }
