/* DefiSpace shared styles (storefront and hub). Dark-first, one blue accent. */
:root {
  color-scheme: dark;
  --bg: #0f1013;
  --panel: #16171b;
  --raised: #1d1f24;
  --line: #2a2d33;
  --text: #ececef;
  --muted: #a0a3ab;
  --faint: #6f737c;
  --accent: #2f6bff;
  --accent-hover: #2559db;
  --on-accent: #ffffff;
  --accent-tint: rgba(47, 107, 255, 0.16);
  --up: #3cc48f;
  --down: #f06a74;
  --series-free: #d95926;
  --shadow: rgba(0, 0, 0, 0.25);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f6f7f9;
    --panel: #ffffff;
    --raised: #f0f2f5;
    --line: #e1e4ea;
    --text: #111318;
    --muted: #5d626d;
    --faint: #6f7480;
    --accent: #2459e6;
    --accent-hover: #1c49c2;
    --on-accent: #ffffff;
    --accent-tint: rgba(36, 89, 230, 0.10);
    --up: #13875b;
    --down: #c83c48;
    --series-free: #eb6834;
    --shadow: rgba(17, 19, 24, 0.12);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f7f9;
  --panel: #ffffff;
  --raised: #f0f2f5;
  --line: #e1e4ea;
  --text: #111318;
  --muted: #5d626d;
  --faint: #6f7480;
  --accent: #2459e6;
  --accent-hover: #1c49c2;
  --on-accent: #ffffff;
  --accent-tint: rgba(36, 89, 230, 0.10);
  --up: #13875b;
  --down: #c83c48;
  --series-free: #eb6834;
  --shadow: rgba(17, 19, 24, 0.12);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select { font-family: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.tnum { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 32px; padding-block: 14px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.logo svg { width: 22px; height: 22px; color: var(--accent); }
nav.main { display: flex; gap: 24px; flex: 1; flex-wrap: wrap; font-size: 14px; font-weight: 500; }
nav.main a { text-decoration: none; color: var(--muted); }
nav.main a:hover { color: var(--text); }
nav.main a[aria-current="page"] { color: var(--text); }
.signin { display: inline-block; text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; }
.signin:hover { background: var(--raised); }

@media (max-width: 560px) {
  header.top .wrap { gap: 10px 16px; }
  header.top .signin { margin-left: auto; }
  nav.main { order: 3; flex: 1 1 100%; gap: 20px; }
  .panel-head .live { flex-basis: 100%; margin-left: 0; }
}

/* Ticker */
.ticker { border-bottom: 1px solid var(--line); overflow: hidden; min-height: 33px; }
.ticker-track { display: flex; gap: 36px; padding-block: 9px; padding-right: 36px; white-space: nowrap; width: max-content; }
.tick { display: inline-flex; gap: 8px; align-items: baseline; font: 400 13px/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.tick b { font-weight: 500; color: var(--text); }
.up { color: var(--up); }
.down { color: var(--down); }
@media (prefers-reduced-motion: no-preference) {
  .ticker-track { animation: slide 60s linear infinite; }
  .ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
  @keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  .live-dot { animation: blink 1.8s ease-in-out infinite; }
  @keyframes blink { 50% { opacity: 0.3; } }
}
@media (prefers-reduced-motion: reduce) {
  .ticker { overflow-x: auto; }
  .ticker-track { padding-left: max(16px, env(safe-area-inset-left, 0px)); }
  .ticker-track .dup { display: none; }
}

/* Headline */
.headline { padding-block: 36px 22px; display: flex; justify-content: space-between; gap: 24px; align-items: end; flex-wrap: wrap; }
.headline h1 { margin: 0; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.05; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; }
.headline p { margin: 10px 0 0; color: var(--muted); font-size: 16px; max-width: 68ch; }
.stats { display: flex; gap: 32px; flex-wrap: wrap; }
.stat small { display: block; font-size: 12px; color: var(--faint); margin-bottom: 4px; }
.stat b { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* Main grid */
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 16px; align-items: start; padding-bottom: 16px; }
@media (max-width: 980px) { .grid { grid-template-columns: minmax(0, 1fr); } .swap-col { order: -1; } }
.grid > * { min-width: 0; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.panel-head { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-head h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.tabs { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.tabs button { font-size: 13px; font-weight: 500; padding: 6px 10px; border-radius: 7px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-pressed="true"] { background: var(--raised); color: var(--text); }
.panel-head .live { margin-left: auto; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--up); flex: none; }
.live.stale, .live.failed { color: var(--down); }
.live.stale .live-dot, .live.failed .live-dot { background: var(--faint); animation: none; }

/* Live-data states */
.data-dim { transition: opacity 160ms ease; }
.is-stale .data-dim { opacity: 0.6; }
.state { padding: 28px 16px; text-align: center; color: var(--muted); font-size: 14px; display: grid; gap: 10px; justify-items: center; }
.state b { color: var(--text); font-weight: 600; }
.state[hidden] { display: none; }
.linkbtn { font-size: 13px; font-weight: 500; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; }
.linkbtn:hover { background: var(--raised); }

.scroll { overflow-x: auto; position: relative; }
table.mkt { width: 100%; border-collapse: collapse; min-width: 620px; }
table.mkt th { text-align: left; padding: 10px 16px; font-size: 12px; font-weight: 500; color: var(--faint); border-bottom: 1px solid var(--line); white-space: nowrap; }
table.mkt th.r, table.mkt td.r { text-align: right; }
table.mkt td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.mkt tr:last-child td { border-bottom: 0; }
table.mkt tbody tr { cursor: pointer; transition: background-color 120ms ease; }
table.mkt tbody tr:hover, table.mkt tbody tr.sel { background: var(--raised); }
table.mkt tbody tr.none { cursor: default; }
table.mkt tbody tr.none:hover { background: transparent; }
table.mkt tbody tr.none td { text-align: center; color: var(--muted); font-size: 14px; }
.model small { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.06em; color: var(--faint); margin-bottom: 3px; }
.model b { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.model span { font-size: 12px; font-weight: 500; color: var(--faint); margin-left: 5px; }
.price { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price span { font-size: 13px; color: var(--faint); font-weight: 400; }
.price.na { color: var(--faint); }
.psub { display: block; margin-top: 2px; font-size: 12px; color: var(--faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.chg { font-size: 13px; font-variant-numeric: tabular-nums; }
.chg.flat { color: var(--faint); }
.depth { position: relative; height: 24px; min-width: 140px; border-radius: 6px; background: var(--raised); overflow: hidden; }
.depth i { position: absolute; inset: 0 auto 0 0; background: var(--accent-tint); }
.depth .lbl { position: relative; display: flex; align-items: center; height: 100%; padding: 0 9px; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.depth.none .lbl { color: var(--muted); }
tr.sel .depth, tr:hover .depth { background: var(--panel); }
.rent { font-size: 13px; font-weight: 500; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; }
tr.sel .rent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.foot { padding: 11px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); }
.foot-rel { display: block; margin-bottom: 4px; }
.foot-rel[hidden] { display: none; }

/* GPUs per server */
.toolbar { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.tb-label { font-size: 13px; color: var(--muted); }
.tb-hint { font-size: 12px; color: var(--faint); margin-left: auto; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--raised); }
.seg button { min-width: 44px; padding: 7px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; cursor: pointer; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
@media (max-width: 560px) { .tb-hint { margin-left: 0; flex-basis: 100%; } }

/* "Reliable providers only" switch */
.rel[hidden] { display: none; }
.switch { display: inline-flex; align-items: center; gap: 10px; padding: 4px 0; margin: -4px 0; border: 0; border-radius: 8px; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
/* With the switch there the toolbar is a row of controls and the hint is its caption row below. */
.rel:not([hidden]) ~ .tb-hint { flex-basis: 100%; margin-left: 0; }
.switch:hover .rel-txt b { color: var(--text); }
.track { position: relative; flex: none; width: 36px; height: 20px; border-radius: 999px; border: 1px solid var(--faint); background: var(--raised); }
.track i { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--faint); }
.switch[aria-checked="true"] .track { background: var(--accent); border-color: var(--accent); }
.switch[aria-checked="true"] .track i { background: var(--on-accent); transform: translateX(16px); }
@media (prefers-reduced-motion: no-preference) {
  .track, .track i { transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease; }
}
.rel-txt { display: grid; gap: 1px; }
.rel-txt b { font-size: 13px; font-weight: 500; color: var(--muted); }
.rel-txt small { font-size: 12px; color: var(--faint); }

/* Reserved terms strip */
.reserved { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 14px 16px; border-top: 1px solid var(--line); }
.reserved b { display: block; font-size: 14px; font-weight: 600; }
.reserved span { display: block; margin-top: 2px; max-width: 62ch; font-size: 13px; color: var(--muted); }
.linkbtn:disabled { opacity: 0.5; cursor: default; }
.linkbtn:disabled:hover { background: transparent; }

/* Price chart */
.left { display: grid; gap: 16px; min-width: 0; }
.left > * { min-width: 0; }
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px 6px; flex-wrap: wrap; }
.pairsum { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pairsum b { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.pairsum b i { font-style: normal; color: var(--faint); font-weight: 500; }
.pairsum .now { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pairsum .now span { font-size: 14px; color: var(--faint); font-weight: 400; }
.chart-head .tabs { flex: none; }
.chart-wrap { position: relative; padding: 0 8px 4px; }
.chart-wrap svg { display: block; width: 100%; height: auto; }
.chart-wrap svg:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 8px; }
.ax { fill: var(--faint); font: 400 11px var(--sans); font-variant-numeric: tabular-nums; }
.ax-title { fill: var(--muted); font: 500 11px var(--sans); }
.ax-msg { fill: var(--muted); font: 400 13px var(--sans); }
.endlbl { fill: var(--text); font: 600 12px var(--sans); font-variant-numeric: tabular-nums; }
.gl { stroke: var(--line); stroke-width: 1; }
.cross { stroke: var(--muted); stroke-width: 1; }
.ln-price { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ln-free { fill: none; stroke: var(--series-free); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.area-free { fill: var(--series-free); fill-opacity: 0.1; stroke: none; }
.dot { stroke: var(--panel); stroke-width: 2; }
.dot-price { fill: var(--accent); }
.dot-free { fill: var(--series-free); }
.tip { position: absolute; top: 8px; pointer-events: none; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 12px; box-shadow: 0 6px 18px var(--shadow); min-width: 150px; }
.tip[hidden] { display: none; }
.tip .t { color: var(--faint); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.tip .row { display: flex; align-items: center; gap: 8px; }
.tip .row + .row { margin-top: 3px; }
.tip .key { width: 12px; height: 2px; border-radius: 1px; flex: none; }
.tip .key.k-price { background: var(--accent); }
.tip .key.k-free { background: var(--series-free); }
.tip .row b { font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.tip .row span { color: var(--muted); }
.chart-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 6px 16px 12px; font-size: 12px; color: var(--faint); }
.dt-wrap { padding: 0 16px 14px; }
.dt-wrap[hidden] { display: none; }
.dt-wrap .scroll { max-height: 320px; overflow: auto; }
table.dt { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; min-width: 360px; }
table.dt caption { text-align: left; color: var(--faint); font-size: 12px; padding: 0 8px 6px; }
table.dt th { text-align: left; font-weight: 500; color: var(--faint); padding: 6px 8px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); }
table.dt td { padding: 6px 8px; border-bottom: 1px solid var(--line); }
table.dt th.r, table.dt td.r { text-align: right; }
.tblbtn { font-size: 12px; font-weight: 500; padding: 5px 9px; border-radius: 7px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.tblbtn:hover { color: var(--text); }

/* Order box, swap style */
.swap { padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.swap > * { min-width: 0; }
.swap h2 { margin: 0 2px 6px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.leg { background: var(--raised); border: 1px solid transparent; border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; }
.leg:focus-within { border-color: var(--accent); }
.leg > label { font-size: 13px; color: var(--muted); }
.leg-row { display: flex; align-items: center; gap: 10px; }
.leg input { flex: 1 1 0; width: 100%; min-width: 0; background: transparent; border: 0; color: var(--text); font-size: 28px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; padding: 0; }
.leg input:focus { outline: none; }
.leg input::placeholder { color: var(--faint); }
.token { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; padding: 6px 10px 6px 7px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); white-space: nowrap; }
.token .coin { width: 18px; height: 18px; border-radius: 50%; background: #2775ca; display: grid; place-items: center; color: #ffffff; font-size: 10px; font-weight: 600; }
.token select { background: transparent; border: 0; color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer; padding-left: 4px; padding-right: 6px; max-width: 200px; }
.token select:disabled { cursor: default; color: var(--muted); }
.token select option { background: var(--panel); color: var(--text); }
.leg small { font-size: 12px; color: var(--faint); }
/* "8 hours": the number sizes to its content (set by gpu.js) and the unit follows it. */
.amount { flex: 1 1 0; min-width: 0; display: flex; align-items: baseline; gap: 6px; }
.leg .amount input { flex: 0 1 auto; width: 2.4ch; max-width: 100%; }
.amount .unit { font-size: 18px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.flip { justify-self: center; margin: -15px 0; z-index: 1; width: 32px; height: 32px; border-radius: 9px; border: 3px solid var(--panel); background: var(--raised); color: var(--muted); display: grid; place-items: center; }
.flip svg { width: 14px; height: 14px; }
.terms { display: grid; gap: 7px; margin: 6px 2px 2px; font-size: 13px; }
.terms div { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.terms dt { color: var(--muted); }
.terms dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.cta { display: block; text-align: center; text-decoration: none; margin-top: 6px; font-size: 15px; font-weight: 600; padding: 14px; border-radius: 10px; border: 0; background: var(--accent); color: var(--on-accent); cursor: pointer; width: 100%; }
.cta:hover { background: var(--accent-hover); }
.cta:disabled { background: var(--raised); color: var(--faint); cursor: not-allowed; }
.err { margin: 2px 2px 0; font-size: 13px; color: var(--down); }
.err[hidden] { display: none; }
.fine { font-size: 12px; color: var(--faint); text-align: center; margin: 2px 0 0; }
.note { margin: 2px 2px 0; font-size: 12px; line-height: 1.45; color: var(--muted); }
.note[hidden] { display: none; }
.terms dd small { display: block; font-size: 12px; color: var(--faint); }
.custom { display: grid; gap: 8px; margin-top: 4px; padding: 10px 12px; border-radius: 10px; background: var(--raised); font-size: 13px; line-height: 1.45; color: var(--muted); }
.custom[hidden] { display: none; }
.custom p { margin: 0; }
.custom code { display: inline-block; margin-top: 2px; padding: 2px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--text); font: 500 13px/1.4 var(--mono); user-select: all; -webkit-user-select: all; }
.custom-act { display: flex; align-items: center; gap: 10px; }
.custom-act span { font-size: 12px; color: var(--faint); }

/* Below the fold */
.lower { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 16px; padding-bottom: 32px; align-items: start; }
@media (max-width: 980px) { .lower { grid-template-columns: minmax(0, 1fr); } }
.lower > * { min-width: 0; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 680px) { .facts { grid-template-columns: minmax(0, 1fr); } }
.fact { padding: 16px; border-right: 1px solid var(--line); display: grid; gap: 4px; align-content: start; }
.fact:last-child { border-right: 0; }
@media (max-width: 680px) { .fact { border-right: 0; border-bottom: 1px solid var(--line); } .fact:last-child { border-bottom: 0; } }
.fact b { font-size: 14px; font-weight: 600; }
.fact span { color: var(--muted); font-size: 14px; }
.steps { list-style: none; margin: 0; padding: 6px 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; padding: 10px 16px; align-items: start; font-size: 14px; }
.steps li::before { content: counter(step); width: 24px; height: 24px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; font: 500 12px var(--mono); }
.steps b { display: block; font-weight: 600; }
.steps span { color: var(--muted); }

/* FAQ (storefront): answers are always visible, no JS needed */
.faq { margin-bottom: 32px; overflow: hidden; }
.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); }
@media (max-width: 680px) { .faq-list { grid-template-columns: minmax(0, 1fr); } }
.faq-item { background: var(--panel); padding: 16px; display: grid; gap: 4px; align-content: start; }
.faq-item h3 { margin: 0; font-size: 14px; font-weight: 600; }
.faq-item p { margin: 0; color: var(--muted); font-size: 14px; }

/* Hub */
.hero { padding-block: 56px 28px; }
.hero h1 { margin: 0; font-size: clamp(32px, 5.4vw, 60px); line-height: 1.04; font-weight: 600; letter-spacing: -0.04em; text-wrap: balance; max-width: 18ch; }
.hero p { margin: 14px 0 0; color: var(--muted); font-size: 17px; max-width: 60ch; }
.board-list { list-style: none; margin: 0; padding: 0; }
.board-list li + li { border-top: 1px solid var(--line); }
.brow { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.4fr) 64px; gap: 8px 16px; align-items: center; padding: 14px 16px; text-decoration: none; transition: background-color 120ms ease; }
.brow:hover { background: var(--raised); }
.brow .price { text-align: right; }
.brow .psub { white-space: normal; }
.brow .chg { text-align: right; }
.brow .st { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.brow .st b { font-weight: 500; color: var(--up); }
.brow .st.req { color: var(--faint); }
.brow .model b { font-size: 16px; }
@media (max-width: 560px) {
  .brow { grid-template-columns: minmax(0, 1fr) auto auto; }
  .brow .st { grid-column: 1 / -1; grid-row: 2; }
}
.board-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-top: 1px solid var(--line); }
.board-foot span { font-size: 12px; color: var(--faint); }
.btn { display: inline-block; text-decoration: none; font-size: 14px; font-weight: 600; padding: 11px 18px; border-radius: 10px; background: var(--accent); color: var(--on-accent); }
.btn:hover { background: var(--accent-hover); }
.products, .growth { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-block: 16px 0; }
.growth { padding-block: 12px 40px; }
@media (max-width: 680px) { .products, .growth { grid-template-columns: minmax(0, 1fr); } }
.sec-title { margin: 40px 0 0; font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }
.card { display: grid; gap: 8px; align-content: start; padding: 20px; }
.card h3 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.card .contact { color: var(--text); user-select: text; -webkit-user-select: text; }
.card .btn { justify-self: start; margin-top: 6px; }
.card .alt { font-size: 13px; color: var(--faint); }
.card .alt .contact { color: var(--muted); }
.product { display: grid; gap: 8px; align-content: start; padding: 20px; text-decoration: none; transition: background-color 120ms ease; }
.product:hover { background: var(--raised); }
.product h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.product p { margin: 0; color: var(--muted); font-size: 14px; }
.product .go { margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--accent); }

footer.site { border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }
footer.site .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-block: 18px 28px; }
footer.site .contact { user-select: text; -webkit-user-select: text; }
footer.site a { color: var(--muted); }
.theme { font-size: 12px; font-weight: 500; padding: 6px 10px; border-radius: 7px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; }
.theme:hover { background: var(--raised); }

/* Under the product cards on the hub: a pointer for people who came for an agent, not a server. */
.products-note { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.products-note a { color: var(--text); }

/* Per-GPU pages (gpu.defispace.com/<slug>, main#mp) and the GPU models grid */
.crumbs { padding-top: 18px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--faint); }
.crumbs li + li::before { content: "\203A"; margin-right: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.crumbs + .headline { padding-top: 14px; }
.stat-note { margin-left: 8px; font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--faint); }
#mp .swap-col { display: grid; gap: 16px; align-content: start; }
@media (max-width: 980px) { #mp .swap-col { order: 0; } }

table.mkt.plain { min-width: 0; }
table.mkt.plain th, table.mkt.plain td { padding-left: 12px; padding-right: 12px; }
table.mkt.plain th:first-child, table.mkt.plain td:first-child { padding-left: 16px; }
table.mkt.plain th:last-child, table.mkt.plain td:last-child { padding-right: 16px; }
table.mkt.plain td { padding-block: 12px; }
@media (max-width: 560px) {
  table.mkt.plain th, table.mkt.plain td { padding-left: 8px; padding-right: 8px; }
  table.mkt.plain th:first-child, table.mkt.plain td:first-child { padding-left: 14px; }
  table.mkt.plain th:last-child, table.mkt.plain td:last-child { padding-right: 12px; }
}
table.mkt.plain tbody tr { cursor: default; }
table.mkt.plain tbody tr:hover { background: transparent; }
.gpus { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.avail { font-size: 13px; font-weight: 500; color: var(--up); white-space: nowrap; }
.avail.none { color: var(--faint); font-weight: 400; }
a.rent { display: inline-block; text-decoration: none; white-space: nowrap; }
a.rent:hover { background: var(--raised); }
.spot { border-top: 1px solid var(--line); }
.spot h3 { margin: 0; padding: 14px 16px 2px; font-size: 14px; font-weight: 600; }
.spot .mp-note { padding: 0 16px 8px; }
.spot[hidden] { display: none; }
.mp-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.mp-note a { color: var(--text); }

.mp-cta { padding: 16px; display: grid; gap: 10px; }
.mp-cta h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.mp-cta p { margin: 0; font-size: 14px; color: var(--muted); }
.mp-cta .terms { margin: 4px 2px 0; }
.specs { margin: 0; padding: 14px 16px 16px; }
.specs dd { flex: 1 1 55%; }
.mp-body { padding: 16px; display: grid; gap: 10px; }
.mp-body p { margin: 0; color: var(--muted); font-size: 14px; }
.mp-body .mp-note { font-size: 13px; }
.mp-body h3 { margin: 10px 0 0; font-size: 14px; font-weight: 600; }
.mp-list { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; display: grid; gap: 4px; }
.mp-pad { padding: 4px 16px 16px; display: grid; gap: 12px; }
.fit-scroll { border: 1px solid var(--line); border-radius: 10px; }
.fit-scroll[hidden] { display: none; }
table.fit { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
table.fit th, table.fit td { padding: 9px 14px; border-bottom: 1px solid var(--line); text-align: left; }
table.fit thead th { font-size: 12px; font-weight: 500; color: var(--faint); }
table.fit tbody th { font-weight: 500; }
table.fit th.r, table.fit td.r { text-align: right; }
table.fit tbody tr:last-child > * { border-bottom: 0; }
.faq-list .faq-item:last-child:nth-child(odd) { grid-column: 1 / -1; }

.models { margin-bottom: 32px; overflow: hidden; }
.models .mp-intro { margin: 0; padding: 12px 16px 0; color: var(--muted); font-size: 14px; }
.mp-all { margin-left: auto; font-size: 13px; color: var(--muted); text-decoration: none; }
.mp-all:hover { color: var(--text); }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; padding: 16px; }
.mcard { display: grid; gap: 2px; align-content: start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; transition: background-color 120ms ease; }
.mcard:hover { background: var(--raised); }
.mc-name { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.mc-sub { font-size: 12px; color: var(--faint); }
.mc-price { margin-top: 4px; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.chart-about { margin: 0; padding: 0 16px 12px; font-size: 13px; }
.chart-about a { color: var(--accent); text-decoration: none; }
.chart-about a:hover { text-decoration: underline; }

/* GPU Index (defispace.com/gpu-index): the landing and the weekly issue pages, built by tools/build-index.mjs */
.ix-panel { margin-bottom: 16px; overflow: hidden; }
.ix-pad { padding: 10px 16px 14px; }
.ix-unit { font-size: 12px; color: var(--faint); }
.ix-tiles { list-style: none; margin: 0; padding: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.ix-tile { display: grid; gap: 3px; align-content: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--raised); }
.ix-tile small { font-size: 12px; color: var(--faint); }
.ix-tile .ix-m { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.ix-tile b { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ix-tile .ix-d { font-size: 13px; color: var(--muted); }
table.ix-table { width: 100%; border-collapse: collapse; min-width: 880px; font-variant-numeric: tabular-nums; }
table.ix-table th, table.ix-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; white-space: nowrap; font-size: 14px; }
table.ix-table thead th { font-size: 12px; font-weight: 500; color: var(--faint); }
table.ix-table th.r, table.ix-table td.r { text-align: right; }
table.ix-table tbody tr:last-child > * { border-bottom: 0; }
table.ix-table tbody th { font-weight: 400; position: sticky; left: 0; background: var(--panel); z-index: 1; padding-left: 16px; }
table.ix-table .ix-name { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
table.ix-table .ix-name a { text-decoration: none; }
table.ix-table .ix-name a:hover { text-decoration: underline; }
table.ix-table .ix-vram { margin-left: 8px; font-size: 12px; color: var(--faint); }
.ix-pill { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); background: var(--raised); color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: 0; vertical-align: 1px; }
.ix-sparkcell { width: 150px; }
.ix-spark { display: block; width: 130px; height: 28px; overflow: visible; }
.ix-spark path { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ix-dl { margin: 0; display: grid; }
.ix-dl > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 4px 24px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.ix-dl > div:last-child { border-bottom: 0; }
.ix-dl dt { font-size: 14px; font-weight: 600; }
.ix-dl dd { margin: 0; font-size: 14px; color: var(--muted); max-width: 78ch; }
@media (max-width: 680px) { .ix-dl > div { grid-template-columns: minmax(0, 1fr); } }
.ix-first { font-size: 18px; color: var(--text); }
#gpu-index .mp-body .ix-issue { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.ix-issue a { text-decoration: none; }
.ix-issue a:hover { text-decoration: underline; }
.ix-archive { list-style: none; margin: 0; padding: 0; }
.ix-archive li { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr) auto; gap: 4px 16px; align-items: baseline; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.ix-archive li:last-child { border-bottom: 0; }
.ix-archive li > a { font-weight: 600; }
.ix-archive span { color: var(--muted); }
.ix-archive .ix-files a { color: var(--muted); }
@media (max-width: 680px) { .ix-archive li { grid-template-columns: minmax(0, 1fr); } }
.ix-narrow-note { display: none; }
@media (max-width: 680px) {
  table.ix-table { min-width: 0; }
  table.ix-table th, table.ix-table td { padding: 10px 6px; font-size: 13px; }
  table.ix-table thead th { white-space: normal; line-height: 1.25; vertical-align: bottom; }
  table.ix-table tbody th { padding-left: 14px; }
  table.ix-table .ix-opt, table.ix-table .ix-vram { display: none; }
  table.ix-table .ix-name { font-size: 14px; }
  .ix-sparkcell { width: 76px; }
  .ix-spark { width: 64px; }
  .ix-pill { display: block; width: fit-content; margin: 3px 0 0; }
  .ix-narrow-note { display: block; padding-top: 0; }
}
#gpu-index .headline p { max-width: 72ch; }
#gpu-index .mp-body p a, #gpu-index .mp-list a { color: var(--accent); }

/* Market page: "How it works" sits under the order box; the facts row below spans the width. */
.swap-col { display: grid; gap: 16px; align-content: start; }
.lower-single { grid-template-columns: minmax(0, 1fr); }
