/* GPU Desk. One typeface: the system UI face (SF Pro, Segoe UI, Roboto), with tabular figures. No web font.
   Colour: ink, paper and one petrol accent, used for links, focus, the current page and the primary button.
   Contrast checked for light and dark: text 4.5:1 or more, control borders 3:1 or more. */
:root {
  --paper: oklch(0.99 0.002 230);
  --paper-2: oklch(0.965 0.004 230);
  --ink: oklch(0.22 0.012 240);
  --muted: oklch(0.46 0.012 240);
  --stale: oklch(0.52 0.01 240);
  --accent: oklch(0.47 0.09 215);
  --accent-hover: oklch(0.38 0.08 215);
  --rule: oklch(0.90 0.005 240);
  --control: oklch(0.58 0.01 240);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: oklch(0.18 0.006 240);
    --paper-2: oklch(0.225 0.008 240);
    --ink: oklch(0.93 0.006 240);
    --muted: oklch(0.73 0.01 240);
    --stale: oklch(0.64 0.01 240);
    --accent: oklch(0.78 0.085 210);
    --accent-hover: oklch(0.86 0.07 210);
    --rule: oklch(0.31 0.008 240);
    --control: oklch(0.56 0.01 240);
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 var(--font);
  font-variant-numeric: tabular-nums;
  accent-color: var(--accent);
}
a { color: var(--accent); text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.wrap { max-width: 76rem; margin: 0 auto; padding: 0 16px; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }
.skip { position: absolute; left: -10000px; }
.skip:focus { left: 16px; top: 8px; z-index: 9; background: var(--paper); padding: 8px 12px; }
.sample {
  margin: 0; padding: 8px 16px; text-align: center;
  background: var(--paper-2); color: var(--ink); border-bottom: 2px solid var(--ink);
  font-size: .8125rem; font-weight: 700; letter-spacing: .02em;
}

/* Header */
header.site { border-bottom: 1px solid var(--rule); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; text-decoration: none; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.brand img { display: block; }
header nav { display: flex; gap: 18px; }
header nav a { color: var(--ink); text-decoration: none; padding: 8px 0; font-size: .9375rem; }
header nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--control); text-underline-offset: 6px; }
header nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Type */
h1 { font-size: 1.375rem; line-height: 1.25; letter-spacing: -.012em; margin: 20px 0 6px; font-weight: 700; }
h2 { font-size: 1.125rem; line-height: 1.3; margin: 44px 0 10px; letter-spacing: -.005em; }
@media (min-width: 64rem) { h1 { font-size: 1.5rem; margin-top: 24px; } }
.lede { color: var(--muted); margin: 0 0 6px; max-width: 75ch; }
.meta { margin: 0; font-size: .875rem; color: var(--muted); }
.meta a { color: inherit; }
.meta a:hover { color: var(--accent); }
.crumb { margin: 16px 0 0; font-size: .875rem; color: var(--muted); }
.crumb a { color: inherit; }
.small { font-size: .875rem; color: var(--muted); }
.muted { display: block; color: var(--muted); font-size: .8125rem; }
.nw { white-space: nowrap; }

/* Toolbar: filters and the result count */
select, input, textarea, button { font: inherit; color: inherit; }
.toolbar { margin: 16px 0 0; }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; align-items: end; font-size: .875rem; }
.fld { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fld > span:first-child { color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: .01em; }
.fld.chk { flex-direction: row; align-items: center; gap: 8px; min-height: 34px; }
.fld.chk span { color: var(--ink); font-size: .875rem; font-weight: 400; letter-spacing: 0; }
.fld.chk input { width: 16px; height: 16px; margin: 0; }
.sel { position: relative; display: block; }
.sel::after {
  content: ""; position: absolute; right: 11px; top: 50%; width: 6px; height: 6px; margin-top: -5px;
  border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); pointer-events: none;
}
.sel select {
  appearance: none; -webkit-appearance: none; display: block; width: 100%;
  height: 34px; padding: 0 30px 0 10px; border: 1px solid var(--control); border-radius: 6px;
  background: var(--paper); color: var(--ink); text-overflow: ellipsis;
}
.toolbar .fgpu { grid-column: 1 / -1; }
.seg { display: inline-flex; border: 1px solid var(--control); border-radius: 6px; padding: 0; margin: 0; min-width: 0; height: 34px; justify-self: start; }
.seg label { position: relative; display: flex; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.seg span { display: flex; align-items: center; padding: 0 12px; white-space: nowrap; cursor: pointer; color: var(--muted); }
.seg label:first-of-type span { border-radius: 5px 0 0 5px; }
.seg label:last-of-type span { border-radius: 0 5px 5px 0; }
.seg input:checked + span { background: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.count { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 10px 0 0; font-size: .8125rem; color: var(--muted); min-height: 1.5em; }
.count #count { color: var(--ink); font-weight: 600; }
.clear {
  visibility: hidden; justify-self: end; align-self: center; padding: 8px 0; border: 0; background: none; cursor: pointer;
  color: var(--accent); text-decoration: underline; text-underline-offset: 2px; font-size: .8125rem;
}
.clear.on { visibility: visible; }
.clear:hover { color: var(--accent-hover); }
@media (min-width: 40rem) {
  .filters { display: flex; flex-wrap: wrap; gap: 10px 14px; }
  .toolbar .fgpu { min-width: 15rem; }
  .fld:not(.chk) { min-width: 9.5rem; }
  .clear { align-self: center; }
}

/* Price table */
.prices {
  width: calc(100% + 16px); margin: 4px -8px 0; border-collapse: separate; border-spacing: 0;
  font-size: .875rem; line-height: 1.4;
}
.prices caption { caption-side: top; text-align: left; font-size: .8125rem; color: var(--muted); padding: 10px 8px 8px; }
.prices caption .gst { display: grid; }
.prices caption .gst > span { grid-area: 1 / 1; }
.prices caption .off { visibility: hidden; }
.prices caption .hpm { display: block; }
.prices caption .ref { display: block; margin-top: 2px; }
.prices caption a { color: inherit; }
.prices caption a:hover { color: var(--accent); }
.prices th, .prices td { padding: 9px 8px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); overflow-wrap: break-word; }
.prices thead th {
  position: sticky; top: 0; z-index: 1;
  background: var(--paper); color: var(--muted);
  font-size: .75rem; font-weight: 600; line-height: 1.3; vertical-align: bottom;
  border-bottom: 1px solid var(--control); overflow-wrap: normal;
}
.prices thead th[aria-sort] { color: var(--ink); }
.prices thead th.nh { white-space: nowrap; } /* two fixed lines; a third wrap would push the arrow away from the label */
.prices .sub { display: block; font-weight: 400; color: var(--muted); }
.prices thead th button {
  display: inline-flex; align-items: flex-end; gap: 4px; padding: 0; margin: 0; border: 0;
  background: none; color: inherit; font: inherit; text-align: inherit; cursor: pointer;
}
.prices thead th.num button { flex-direction: row-reverse; text-align: right; }
.prices thead th .arr { flex: none; width: .75em; text-align: center; opacity: .35; }
.prices thead th[aria-sort] .arr { opacity: 1; }
.prices thead th button:focus-visible .arr { opacity: 1; }
.prices tbody th { font-weight: 600; scroll-margin-top: 72px; }
.prices .num { text-align: right; }
.prices .p { white-space: nowrap; }
.prices .p .v { display: block; font-weight: 700; font-size: .9375rem; }
.prices time { white-space: nowrap; color: var(--muted); }
.prices .mt { display: block; font-size: .75rem; }
.prices .mg { color: var(--ink); }
.prices .m, .prices .nt { display: block; margin-top: 1px; font-size: .8125rem; font-weight: 400; color: var(--muted); }
.prices tbody th .tag { margin: 0 0 0 2px; vertical-align: 2px; }
.prices .nt summary { display: block; list-style: none; cursor: pointer; border-radius: 2px; }
.prices .nt summary::-webkit-details-marker { display: none; }
.prices .nt { contain: inline-size; }
.prices .nt summary > span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; line-clamp: 1; overflow: hidden; }
.prices .nt[open] summary > span { display: block; -webkit-line-clamp: none; line-clamp: none; }
.prices .m a, .prices .src a { color: var(--muted); }
.prices .m a:hover, .prices .src a:hover { color: var(--accent); }
.prices tr.stale > *, .prices tr.stale time, .prices tr.stale .m, .prices tr.stale .nt { color: var(--stale); }
.prices tr.stale .p .v { font-weight: 400; }
.prices tr.gh th {
  padding: 14px 8px 8px; background: var(--paper-2); border-top: 1px solid var(--control);
  font-size: .8125rem; font-weight: 600; color: var(--ink); line-height: 1.4;
}
.prices tbody.empty td { padding: 20px 8px; color: var(--muted); }
.prices tbody.empty button {
  margin-left: 4px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--accent); text-decoration: underline; text-underline-offset: 2px;
}
@media (hover: hover) and (pointer: fine) {
  .prices tbody tr:not(.gh):hover > * { background: var(--paper-2); }
  .prices .nt summary:hover { color: var(--ink); }
}
.prices tbody.more td { padding: 14px 8px; border-bottom: 0; }
.prices tbody.more button {
  min-height: 36px; padding: 6px 14px; border: 1px solid var(--control); border-radius: 6px;
  background: var(--paper); color: var(--ink); cursor: pointer; font-size: .875rem; font-weight: 600;
  transition: transform 140ms var(--ease-out);
}
.prices tbody.more button:active { transform: scale(.97); }
/* Columns by width: under 40rem, 2 columns (offer, price); 40 to 72rem, 4; from 72rem, all 8. */
.prices .d, .prices .g, .prices .t { display: none; }
@media (min-width: 40rem) {
  .prices .g, .prices .t { display: table-cell; }
  .prices .mg, .prices .mt { display: none; }
  .prices td.g { min-width: 6rem; max-width: 13rem; }
  .prices .per { display: block; white-space: normal; font-size: .8125rem; color: var(--muted); }
}
@media (min-width: 72rem) {
  .prices { font-size: .9375rem; }
  .prices .d { display: table-cell; }
  .prices .m, .prices .per { display: none; }
  .prices td.nw, .prices th.pr { white-space: nowrap; }
  .prices th.nh { min-width: 5rem; }
  .prices .p .v { font-size: 1rem; }
  .prices .src a { display: inline-block; max-width: 8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
  .prices thead th:first-child { width: 24%; min-width: 13rem; }
  .prices .rg { max-width: 12rem; }
}
@media (min-width: 80rem) {
  .prices thead th:first-child { width: 26%; }
  .prices .src a { max-width: 11rem; }
}
@media (hover: hover) and (pointer: fine) {
  .prices tbody.more button:hover { border-color: var(--ink); }
}
.prices.one-gpu .g, .prices.one-gpu .mg { display: none; }

.tag {
  display: inline-block; margin: 2px 4px 2px 0; padding: 0 5px;
  border: 1px solid currentColor; border-radius: 3px;
  font-size: .6875rem; font-weight: 700; letter-spacing: .04em; line-height: 1.45;
  white-space: nowrap; vertical-align: 1px;
}
.t-unv { color: var(--ink); }
.t-rev { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.t-stale { color: var(--stale); }

.cta { margin: 28px 0 0; padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); max-width: 75ch; }

/* Plain tables and definition lists */
.plain { width: 100%; max-width: 60rem; border-collapse: collapse; font-size: .9375rem; }
.plain caption { caption-side: top; text-align: left; font-size: .8125rem; color: var(--muted); padding: 0 0 8px; }
.plain th, .plain td { text-align: left; vertical-align: top; padding: 9px 16px 9px 0; border-bottom: 1px solid var(--rule); }
.plain thead th { font-size: .75rem; font-weight: 600; color: var(--muted); border-bottom-color: var(--control); }
.plain tbody th { font-weight: 600; }
.plain tbody th a { color: var(--ink); text-decoration-color: var(--control); }
.plain tbody th a:hover { color: var(--accent); text-decoration-color: currentColor; }
.plain .num { text-align: right; }
.plain .pb { font-weight: 700; }
.plain .none { color: var(--muted); font-size: .875rem; }
.plain .d2 { display: none; }
@media (min-width: 40rem) { .plain .d2 { display: table-cell; } }

.defs { display: grid; grid-template-columns: 1fr; gap: 2px 24px; max-width: 80ch; margin: 0; }
.defs dt { font-weight: 600; margin-top: 10px; }
.defs dd { margin: 0; }
@media (min-width: 40rem) {
  .defs { grid-template-columns: 10rem 1fr; column-gap: 0; }
  .defs dt, .defs dd { margin-top: 0; padding: 8px 0; border-bottom: 1px solid var(--rule); }
  .defs dd { padding-left: 24px; }
  .defs dt .tag { margin-top: 0; }
}
.links { padding-left: 1.2em; }
.links li { margin: 6px 0; }

/* Long-form pages */
.prose { max-width: 70ch; }
.prose h1 { margin-top: 24px; }
.prose h2 { font-size: 1.125rem; margin: 32px 0 8px; }
.prose h3 { font-size: 1rem; margin: 24px 0 6px; }
.prose li { margin: 4px 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose .facts { max-width: none; }
.notice { padding: 12px 14px; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 6px; }
code { font-size: .9em; }

/* Quote form */
.quote { max-width: 40rem; margin-top: 16px; }
.quote fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.quote legend { padding: 0; margin-bottom: 12px; font-weight: 700; font-size: 1rem; }
.quote .f { margin: 0 0 16px; }
.quote .f > label:not(.consent) { display: block; margin-bottom: 4px; font-size: .9375rem; font-weight: 600; }
.opt { font-weight: 400; color: var(--muted); }
.quote input:not([type="checkbox"]), .quote select, .quote textarea {
  display: block; width: 100%; min-height: 42px; padding: 8px 10px;
  border: 1px solid var(--control); border-radius: 6px;
  background: var(--paper); color: var(--ink); font-weight: 400;
}
.quote .sel select { height: 42px; padding-right: 30px; }
.quote textarea { resize: vertical; min-height: 6.5rem; }
.quote ::placeholder { color: var(--muted); opacity: 1; }
.quote input[aria-invalid="true"]:not([type="checkbox"]), .quote select[aria-invalid="true"], .quote textarea[aria-invalid="true"] { border: 2px solid var(--ink); padding: 7px 9px; }
.quote .sel select[aria-invalid="true"] { padding-right: 29px; }
.quote .err { display: block; margin-top: 4px; font-size: .875rem; font-weight: 600; color: var(--ink); }
.quote .grid { display: grid; gap: 0 16px; }
@media (min-width: 36rem) { .quote .grid { grid-template-columns: 1fr 1fr; } }
.quote .fc { margin: 4px 0 14px; }
.quote .consent { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: .9375rem; }
.quote .consent input { width: 18px; height: 18px; margin: 2px 0 0; }
.quote .fc .err { padding-left: 28px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.quote button[type="submit"] {
  min-height: 44px; padding: 10px 22px; border: 0; border-radius: 6px; cursor: pointer;
  background: var(--accent); color: var(--paper); font-weight: 700;
  transition: transform 140ms var(--ease-out), background-color 140ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .quote button[type="submit"]:hover { background: var(--accent-hover); }
}
.quote button[type="submit"]:active { transform: scale(.97); }
.quote button[aria-disabled="true"] { cursor: progress; opacity: .75; }
.errors { padding-left: 1.2em; }

/* Footer */
footer.site { margin-top: 56px; padding: 20px 0 40px; border-top: 1px solid var(--rule); font-size: .8125rem; color: var(--muted); }
footer.site p { margin: 0 0 8px; max-width: 90ch; }
footer.site a { color: inherit; }
footer.site a:hover { color: var(--accent); }
footer.site nav { display: flex; flex-wrap: wrap; gap: 0 16px; margin: 0 0 8px; }
footer.site nav a { padding: 4px 0; color: var(--ink); }
footer.site .co { line-height: 1.6; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
  .quote button[type="submit"]:active { transform: none; }
}
