/* The card pages (templates/card.html, cards.html). Built on page.html's band
   and panels; every colour is a design-system token, so both themes hold. */

/* The prose pages keep a reading width; a card page is a page of tables, as wide as the chart. */
:root[data-look="banner"] .page-panel.card-panel { max-width: none; }
.card-panel + .card-panel,
.card-ph,
.card-split { margin-top: 18px; }
:root[data-look="banner"] .card-panel h2 { margin-top: 0; }

:root[data-look="banner"] .page-band .cat-disclose { margin-top: .7rem; }

.card-crumbs { font-size: .85rem; color: var(--text-3); margin: 0 0 1.1rem; }
:root[data-look="banner"] .page-panel .card-crumbs a { color: var(--text-2); }

.card-ranges { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 14px 28px; }
.card-range-num { font-size: clamp(1.6rem, 5vw, 2.1rem); font-weight: 800; letter-spacing: -.02em;
  color: var(--text); font-variant-numeric: tabular-nums; }
.card-range-what { font-size: .95rem; color: var(--text-2); margin-top: .1rem; }
.card-range-what b { color: var(--text); }
.card-range-sub { font-size: .85rem; color: var(--text-3); margin-top: .3rem; font-variant-numeric: tabular-nums; }
/* "Which RTX 4060 Ti?" (card_sizes.html): each size is a link to its own card. */
.card-size { display: block; color: inherit; text-decoration: none; }
.card-size:hover .card-range-what b, .card-size:focus-visible .card-range-what b { text-decoration: underline; }

:root[data-look="banner"] .page-panel .card-cta { display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px 14px; margin: 1.3rem 0 0; max-width: none; }
.card-cta span { font-size: .88rem; color: var(--text-3); }
:root[data-look="banner"] .page-panel a.card-all { display: inline-block; padding: .55rem 1rem; border-radius: 8px;
  background: var(--btn); color: #fff; font-weight: 700; text-decoration: none; }
:root[data-look="banner"] .page-panel a.card-all:hover { background: var(--btn-hi); }

/* The listings: a table on wide screens, stacked rows on a phone. */
.card-tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.card-tbl th { text-align: left; font-size: .74rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--text-3); padding: 0 10px 8px 0; border-bottom: 1px solid var(--border); }
.card-tbl td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text-2); }
.card-tbl .num { text-align: right; }
.card-l-title { display: block; color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.card-l-board { display: block; font-size: .8rem; color: var(--text-3); }
.card-price { font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
:root[data-look="banner"] .page-panel a.card-buy { display: inline-block; padding: .3rem .7rem; border-radius: 6px;
  background: var(--btn); color: #fff; font-weight: 700; font-size: .82rem; text-decoration: none; white-space: nowrap; }
:root[data-look="banner"] .page-panel a.card-buy:hover { background: var(--btn-hi); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:root[data-look="banner"] .page-panel .card-note { font-size: .85rem; color: var(--text-3); margin: .9rem 0 0; max-width: none; }

@media (max-width: 40rem) {
  .card-tbl thead { display: none; }
  .card-tbl tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px;
    padding: 10px 0; border-bottom: 1px solid var(--border); }
  .card-tbl td { padding: 0; border: 0; }
  .card-tbl td.card-l { grid-column: 1 / -1; }
  .card-tbl td:nth-child(2) { grid-column: 1; grid-row: 2; font-size: .85rem; }
  .card-tbl td:nth-child(3) { grid-column: 1; grid-row: 3; }
  .card-tbl td.card-price { grid-column: 2; grid-row: 2; }
  .card-tbl td:last-child { grid-column: 2; grid-row: 3; text-align: right; }
}

.card-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 18px; align-items: start; }
.card-split .card-panel { margin-top: 0; }
:root[data-look="banner"] .page-panel .card-boards,
:root[data-look="banner"] .page-panel .card-links { list-style: none; margin: 0; padding: 0; }
:root[data-look="banner"] .page-panel .card-boards li { display: flex; justify-content: space-between; gap: 12px;
  padding: 7px 0; border-bottom: 1px solid var(--border); font-size: .92rem; max-width: none; line-height: 1.45; }
.card-boards-n { color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.card-specs { margin: 0; }
.card-specs div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: .92rem; }
.card-specs dt { color: var(--text-3); }
.card-specs dd { margin: 0; color: var(--text); font-weight: 600; text-align: right; }
/* Questions (routes/cards.py _questions): the search, then the answer. */
.card-qa { margin: 0; display: grid; gap: 16px; }
.card-qa dt { font-weight: 700; color: var(--text); font-size: 1rem; }
.card-qa dd { margin: 4px 0 0; color: var(--text-2); line-height: 1.6; max-width: 66ch; }
:root[data-look="banner"] .page-panel .card-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 1rem; }
:root[data-look="banner"] .page-panel .card-links li { margin: 0; font-size: .95rem; max-width: none; }
.card-links span { color: var(--text-3); font-size: .82rem; }

/* ------------------------------------------------------------ fresh as of, and a against b */
:root[data-look="banner"] .page-panel .card-updated { margin: .7rem 0 0; font-size: .82rem; color: var(--text-3); }
:root[data-look="banner"] .page-panel .card-note-top { margin: 0 0 .8rem; }
:root[data-look="banner"] .page-panel .cmp-lines { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
:root[data-look="banner"] .page-panel .cmp-lines li { margin: 0; max-width: 70ch; font-size: 1.08rem; line-height: 1.5;
  color: var(--text); font-weight: 600; text-wrap: pretty; }
.cmp-wrap { overflow-x: auto; }
.cmp-tbl { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
.cmp-tbl thead th { text-align: left; font-size: 1rem; font-weight: 800; padding: 0 12px 10px 0; vertical-align: bottom; }
:root[data-look="banner"] .page-panel .cmp-tbl thead th a { color: var(--text); }
.cmp-tbl tbody th { text-align: left; font-weight: 600; color: var(--text-2); padding: 11px 14px 11px 0;
  border-top: 1px solid var(--border); vertical-align: top; width: 34%; }
.cmp-tbl td { padding: 11px 12px 11px 0; border-top: 1px solid var(--border); vertical-align: top; color: var(--text-2); }
.cmp-tbl thead td { border: 0; }
.cmp-tbl td b { color: var(--text); font-size: 1.02rem; }
.cmp-sub { display: block; margin-top: 2px; font-size: .78rem; font-weight: 500; color: var(--text-3); }
.cmp-tbl .card-buy { display: inline-block; margin-top: 6px; }
@media (max-width: 560px) {
  .cmp-tbl { font-size: .86rem; }
  .cmp-tbl tbody th { width: 30%; padding-right: 8px; }
  .cmp-tbl thead th { font-size: .92rem; }
}

/* a comparison's three findings as three labelled rows, not a paragraph */
:root[data-look="banner"] .page-panel .cmp-facts { margin: 0; display: grid; gap: 0; }
.cmp-facts div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 4px 16px; padding: 11px 0;
  border-top: 1px solid var(--border); align-items: baseline; }
.cmp-facts div:first-child { border-top: 0; padding-top: 0; }
.cmp-facts dt { font-size: .7rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.cmp-facts dd { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--text); max-width: 62ch; text-wrap: pretty; }
@media (max-width: 560px) {
  .cmp-facts div { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------------------------------------------------------------- compare: head to head, size to scale
   (templates/compare.html; routes/answers.py duel, size_drawing). Card A is the
   site blue, card B a violet that reads beside it in both modes; the better side
   of each row is marked in words, not only in colour. */
:root { --cmp-a: var(--accent); --cmp-b: #7a4fd6; --cmp-b-dim: rgba(122, 79, 214, .14); }
:root[data-look="banner"][data-mode="dark"] { --cmp-b: #b493ff; --cmp-b-dim: rgba(180, 147, 255, .16); }
.h2h-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; }
:root[data-look="banner"] .page-panel .h2h-head h2 { margin: 0; }
.h2h-key { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; font-size: .82rem; font-weight: 600; color: var(--text-2); }
.h2h-sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-left: 6px; }
.h2h-sw:first-child { margin-left: 0; }
.h2h-sw.a { background: var(--cmp-a); } .h2h-sw.b { background: var(--cmp-b); }
.h2h-rows { display: grid; gap: 18px; margin-top: 16px; }
.h2h-row { display: grid; gap: 6px; }
:root[data-look="banner"] .page-panel .h2h-q { margin: 0 0 2px; font-size: .74rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); }
.h2h-q span { margin-left: 8px; font-weight: 500; letter-spacing: 0; text-transform: none; }

.fit-scroll { overflow-x: auto; margin-top: 12px; }
.fit-svg { display: block; width: 100%; min-width: 540px; height: auto; font-variant-numeric: tabular-nums; }
.fit-grid { stroke: var(--border); stroke-width: 1; }
.fit-tick, .fit-lab { fill: var(--text-3); font-size: 11px; font-weight: 600; }
.fit-name { font-size: 13px; font-weight: 800; }
.fit-name.a { fill: var(--cmp-a); } .fit-name.b { fill: var(--cmp-b); }
.fit-name-mm { fill: var(--text-3); font-weight: 600; font-size: 11.5px; }
.fit-bracket { fill: var(--text-3); opacity: .6; }
.fit-pcb { fill: #2d6b3f; opacity: .9; }
.fit-shroud { stroke-width: 2; }
.fit-shroud.a { fill: var(--accent-dim); stroke: var(--cmp-a); }
.fit-shroud.b { fill: var(--cmp-b-dim); stroke: var(--cmp-b); }
.fit-lane.a .fit-fan { stroke: var(--cmp-a); } .fit-lane.b .fit-fan { stroke: var(--cmp-b); }
.fit-fan circle { fill: var(--bg-elev); fill-opacity: .55; stroke-width: 1.5; }
.fit-fan .hub { fill: currentColor; fill-opacity: .25; }
.fit-fan .blade { fill: none; stroke-width: 1.4; stroke-linecap: round; opacity: .8; }
.fit-pcie { fill: #c9a227; }
.fit-long { fill: none; stroke-width: 2; stroke-dasharray: 5 4; }
.fit-long.a { stroke: var(--cmp-a); } .fit-long.b { stroke: var(--cmp-b); }
.fit-wall-zone { fill: url(#fit-hatch); }
.fit-hatch-bg { fill: var(--down-dim); }
.fit-hatch-ln { stroke: var(--down); stroke-width: 1.2; opacity: .35; }
.fit-wall-ln { stroke: var(--down); stroke-width: 2.5; }
.fit-wall-lab { fill: var(--down); font-size: 12px; font-weight: 800; }
.fit-over { fill: var(--down); fill-opacity: .28; stroke: var(--down); stroke-width: 1.5; }
.fit-wall[hidden], .fit-over[hidden] { display: none; }
:root[data-look="banner"] .page-panel .fit-out { margin: 10px 0 0; font-size: .92rem; color: var(--text-3); max-width: 75ch; }
:root[data-look="banner"] .page-panel .fit-out.on { color: var(--text); font-weight: 650; }
.slots { margin-top: 16px; display: grid; gap: 10px; }
:root[data-look="banner"] .page-panel .slots-h { margin: 0; font-size: .74rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); }
.slots-row { display: grid; grid-template-columns: minmax(6rem, 11rem) 13rem minmax(0, 1fr); align-items: center; gap: 12px; }
.slots-name { font-size: .88rem; font-weight: 650; color: var(--text-2); }
.slots-cells { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; height: 22px; }
.slots-cell { border: 1px solid var(--border-strong); border-radius: 3px; background: var(--surface); }
.slots-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; opacity: .8; }
.slots-row.a .slots-fill { background: var(--cmp-a); } .slots-row.b .slots-fill { background: var(--cmp-b); }
.slots-val { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: .9rem; color: var(--text-2); }
.slots-val b { color: var(--text); }
.slots-note { font-size: .74rem; font-weight: 700; color: var(--warn); }
@media (max-width: 620px) { .slots-row { grid-template-columns: 1fr; gap: 4px; } .slots-cells { max-width: 14rem; } }

/* ---------------------------------------------------------------- the versus (templates/compare.html, static/js/versus.js)
   Two contenders on one panel, a "vs" mark between them, the verdict below in
   large type. Card A blue, card B violet, as everywhere on the page. The value
   winner wears the one orange thing on the panel. */
.vs { padding: 22px 24px 18px; }
.vs .card-crumbs { margin-bottom: 0; }
.vs-res { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px; margin-top: -22px; }
.vs-res-l { font-size: .74rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); margin-right: 6px; }
.vs-res button, .vsc-range button { font: inherit; font-size: .84rem; font-weight: 650; padding: 6px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: var(--bg-elev); color: var(--text-2); }
.vs-res button[aria-pressed="true"], .vsc-range button[aria-pressed="true"] { background: var(--btn); border-color: var(--btn); color: #fff; }
.vs-res button:focus-visible, .vsc-range button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.vs-duo { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 0 18px; margin-top: 16px; }
.vs-card { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 18px 20px; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: var(--surface); }
.vs-card::before { content: ""; position: absolute; left: 18px; right: 18px; top: -1px; height: 3px; border-radius: 0 0 3px 3px; }
.vs-card.a::before { background: var(--cmp-a); }
.vs-card.b::before { background: var(--cmp-b); }
.vs-tags { display: flex; flex-wrap: wrap; gap: 6px; min-height: 22px; }
.vs-tag { font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
  color: var(--good); background: var(--good-dim); }
.vs-tag.gold { color: var(--orange-ink); background: var(--orange-dim); }
:root[data-look="banner"] .page-panel .vs-name { margin: 0; font-size: clamp(1.35rem, 2.6vw, 1.85rem); font-weight: 850; letter-spacing: -.02em; line-height: 1.1; }
:root[data-look="banner"] .page-panel .vs-name a { color: var(--text); text-decoration: none; }
:root[data-look="banner"] .page-panel .vs-name a:hover { text-decoration: underline; }
.vs-swap { position: relative; margin-top: -4px; }
.vs-swap-btn { font: inherit; font-size: .78rem; font-weight: 650; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; }
.vs-swap-btn:hover { text-decoration: underline; }
.vs-swap-box { position: absolute; z-index: 30; left: 0; top: calc(100% + 6px); width: min(320px, 100%); padding: 8px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg-elev); box-shadow: var(--shadow); }
.vs-swap-box[hidden] { display: none; }
.vs-swap-q { width: 100%; font: inherit; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); }
.vs-swap-q:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-dim); }
.vs-swap-list { list-style: none; margin: 6px 0 0; padding: 0; }
.vs-swap-list button { display: block; width: 100%; text-align: left; font: inherit; font-size: .9rem; padding: 7px 8px; border: 0; border-radius: 6px;
  background: none; color: var(--text); cursor: pointer; }
.vs-swap-list button:hover, .vs-swap-list button:focus-visible { background: var(--hover); outline: none; }
.vs-price { display: grid; gap: 2px; }
.vs-price b { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 900; letter-spacing: -.03em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.vs-price span { font-size: .82rem; color: var(--text-3); }
:root[data-look="banner"] .page-panel .vs-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 2px 0 0; padding-top: 12px;
  border-top: 1px solid var(--border); }
.vs-stats dt { font-size: .66rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); }
.vs-stats dd { margin: 2px 0 0; font-size: 1.05rem; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.vs-stats dd span { font-size: .74rem; font-weight: 600; color: var(--text-3); }
.vs-go { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: auto; padding-top: 6px; }
.vs-buy { font-size: .88rem; }
.vs-more { font-size: .82rem; font-weight: 600; }
.vs-verdict { margin-top: 18px; padding: 16px 18px; border-radius: var(--radius-lg); background: var(--accent-dim); border: 1px solid var(--accent-line); }
:root[data-look="banner"] .page-panel .vs-head { margin: 0; font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 800; line-height: 1.35; color: var(--text); max-width: 60ch; text-wrap: balance; }
:root[data-look="banner"] .page-panel .vs-even { margin: 6px 0 0; font-size: .95rem; color: var(--text-2); }
.vs-even b { color: var(--text); }
@media (max-width: 760px) {
  .vs { padding: 18px 16px 14px; }
  .vs-res { margin-top: 8px; justify-content: flex-start; }
  .vs-duo { grid-template-columns: 1fr; gap: 10px; }
}

/* price chart */
.vsc-range { display: inline-flex; gap: 4px; }
:root[data-look="banner"] .page-panel .vsc-key { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 8px 0 0; font-size: .86rem; font-weight: 650; color: var(--text-2); }
.vsc-key b { font-weight: 750; color: var(--text-3); margin-right: 10px; }
.vsc-key b.up { color: var(--down); }
.vsc-key b.down { color: var(--good); }
.vsc-chart { position: relative; margin-top: 10px; min-height: 240px; }
.vsc-svg { display: block; width: 100%; height: auto; font-variant-numeric: tabular-nums; touch-action: pan-y; }
.vsc-grid { stroke: var(--border); stroke-width: 1; }
.vsc-ax { fill: var(--text-3); font-size: 11px; font-weight: 600; }
.vsc-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.vsc-line.a { stroke: var(--cmp-a); }
.vsc-line.b { stroke: var(--cmp-b); }
.vsc-area { stroke: none; opacity: .08; }
.vsc-area.a { fill: var(--cmp-a); }
.vsc-area.b { fill: var(--cmp-b); }
.vsc-dot { stroke: var(--bg-elev); stroke-width: 2; }
.vsc-dot.a { fill: var(--cmp-a); }
.vsc-dot.b { fill: var(--cmp-b); }
.vsc-cur { stroke: var(--text-3); stroke-dasharray: 3 3; }
.vsc-tip { position: absolute; top: 6px; pointer-events: none; padding: 8px 10px; border-radius: 8px; font-size: .8rem; white-space: nowrap;
  background: var(--bg-elev); border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--text); }
.vsc-tip[hidden] { display: none; }
.vsc-tip-r { font-variant-numeric: tabular-nums; }
.vsc-tip-r::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.vsc-tip-r.a::before { background: var(--cmp-a); }
.vsc-tip-r.b::before { background: var(--cmp-b); }

/* cheapest listings, side by side */
.case-bar-in { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.vsl-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin-top: 14px; }
:root[data-look="banner"] .page-panel .vsl-col h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: .95rem; font-weight: 800; }
.vsl-col h3 .h2h-sw { margin: 0; }
.vsl-list { list-style: none; margin: 0; padding: 0; }
.vsl-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--border); }
.vsl-list li[hidden] { display: none; }
.vsl-what { display: grid; min-width: 0; }
.vsl-what .fitb-slot { display: block; margin: 0 0 3px; }
.vsl-what .fitb-slot:empty { display: none; }
.vsl-title { font-size: .88rem; font-weight: 650; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vsl-sub { font-size: .76rem; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vsl-price { display: grid; justify-items: end; gap: 2px; font-variant-numeric: tabular-nums; }
.vsl-price b { font-size: 1rem; color: var(--text); }
.vsl-buy { font-size: .8rem; padding: 6px 10px; }
@media (max-width: 760px) { .vsl-cols { grid-template-columns: 1fr; } }

/* board pickers on the drawing */
.fit-boards { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 10px; }
.fit-board { display: grid; gap: 4px; font-size: .78rem; font-weight: 700; color: var(--text-3); min-width: 0; flex: 1 1 260px; }
.fit-board > span { display: flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: .05em; }
.fit-board .h2h-sw { margin: 0; }
.fit-board select { font: inherit; font-size: .9rem; font-weight: 600; text-transform: none; letter-spacing: 0; padding: 7px 10px; border-radius: var(--radius);
  border: 1px solid var(--border-strong); background: var(--bg-elev); color: var(--text); max-width: 100%; }
.h2h-q .h2h-ql { margin-left: 0; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.vsl-price .chk { font-size: .66rem; font-weight: 750; letter-spacing: .03em; padding: 1px 6px; border-radius: 999px; white-space: nowrap; }
.vsl-price .chk-low, .vsl-price .chk-unusual { color: var(--good); background: var(--good-dim); }
.vsl-price .chk-typical { color: var(--text-3); background: var(--surface-2, var(--surface)); }
.vsl-price .chk-high { color: var(--warn); background: var(--warn-dim); }

/* ---------------------------------------------------------------- every board, to scale (templates/card.html, static/js/boards.js)
   One row per board: name, a bar from the bracket at its real length on a shared
   ruler, and its cheapest listing. A picked case is a red line through every bar
   (--wall), with a tinted band where it fits only in some setups (--wall-min). */
:root[data-look="banner"] .page-panel .bst-lede { margin: 6px 0 0; color: var(--text-2); font-size: .92rem; max-width: 70ch; }
.bst-lede b { color: var(--text); }
.bst-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 12px; }
.bst-sort span { font-size: .74rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); margin-right: 6px; }
.bst-sort button { font: inherit; font-size: .82rem; font-weight: 650; padding: 5px 11px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: var(--bg-elev); color: var(--text-2); }
.bst-sort button[aria-pressed="true"] { background: var(--btn); border-color: var(--btn); color: #fff; }
.bst-sort button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.bst-grid { margin-top: 12px; }
.bst-ruler, .bst-list li { display: grid; grid-template-columns: minmax(9rem, 15rem) minmax(0, 1fr) 8.5rem; align-items: center; gap: 14px; }
.bst-ticks { position: relative; height: 18px; }
.bst-ticks i { position: absolute; transform: translateX(-50%); font-style: normal; font-size: .7rem; font-weight: 650; color: var(--text-3);
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.bst-ticks i:first-child { transform: none; }
.bst-ticks i:last-child { transform: translateX(-100%); }
.bst-list { list-style: none; margin: 0; padding: 0; }
.bst-list li { padding: 8px 0; border-top: 1px solid var(--border); }
.bst-list li[hidden] { display: none; }
.bst-name { display: grid; min-width: 0; }
.bst-name .fitb-slot { display: block; margin: 0 0 3px; }
.bst-name .fitb-slot:empty { display: none; }
.bst-name b { font-size: .9rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bst-name > span:last-child { font-size: .74rem; color: var(--text-3); }
.bst-track { position: relative; height: 26px; border-radius: 6px;
  background: repeating-linear-gradient(90deg, transparent 0 calc(100% / var(--steps, 7) - 1px), var(--border) calc(100% / var(--steps, 7) - 1px) calc(100% / var(--steps, 7))); }
.bst-bar { position: absolute; left: 0; top: 3px; bottom: 3px; display: flex; align-items: center; justify-content: flex-end; padding-right: 8px;
  border-radius: 2px 6px 6px 2px; background: var(--accent-dim); border: 1.5px solid var(--accent-line); border-left: 4px solid var(--text-3);
  transition: background-color .2s, border-color .2s; }
.bst-mm { font-size: .74rem; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bst-list li.fit-yes .bst-bar { background: var(--good-dim); border-color: var(--good); border-left-color: var(--text-3); }
.bst-list li.fit-tight .bst-bar { background: var(--warn-dim); border-color: var(--warn); border-left-color: var(--text-3); }
.bst-list li.fit-no .bst-bar { background: var(--down-dim); border-color: var(--down); border-left-color: var(--text-3); }
.bst[data-wall] .bst-track::before { content: ""; position: absolute; top: -9px; bottom: -9px; left: var(--wall-min); width: calc(var(--wall) - var(--wall-min));
  background: var(--warn-dim); pointer-events: none; }
.bst[data-wall] .bst-track::after { content: ""; position: absolute; top: -9px; bottom: -9px; left: var(--wall); width: 2px; margin-left: -1px;
  background: var(--down); pointer-events: none; z-index: 2; }
.bst-buy { justify-self: end; }
.bst-buy .byb { font-size: .82rem; padding: 7px 12px; white-space: nowrap; }
.bst-buy .dim { font-size: .78rem; }
.bst-more { display: block; width: 100%; margin-top: 10px; font: inherit; font-size: .84rem; font-weight: 650; padding: 8px; border-radius: var(--radius);
  border: 1px dashed var(--border-strong); background: var(--surface); color: var(--text-2); cursor: pointer; }
.bst-more:hover { color: var(--text); border-color: var(--accent); }
.bst-more[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .bst-bar { transition: none; } }
@media (max-width: 680px) {
  .bst-ruler { grid-template-columns: 1fr; }
  .bst-ruler > span:first-child, .bst-ruler > span:last-child { display: none; }
  .bst-list li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name buy" "track track"; gap: 6px 12px; }
  .bst-name { grid-area: name; } .bst-track { grid-area: track; } .bst-buy { grid-area: buy; }
}
:root[data-look="banner"] .page-panel .bst-list li, :root[data-look="banner"] .page-panel .vsl-list li { max-width: none; }
.bst[data-wall] .bst-ticks::after { content: attr(data-case); position: absolute; left: var(--wall); bottom: 100%; transform: translateX(-50%);
  padding: 1px 7px; border-radius: 999px; font-size: .68rem; font-weight: 800; white-space: nowrap; color: #fff; background: var(--down); }
.bst[data-wall] .bst-ruler { margin-top: 16px; }

.fit-board { max-width: 100%; }
.fit-board select { width: 100%; min-width: 0; text-overflow: ellipsis; }
@media (max-width: 680px) { .bst-ticks i:nth-child(even) { display: none; } }
.vs-copy { position: absolute; top: 22px; right: 24px; font: inherit; font-size: .8rem; font-weight: 650; padding: 5px 11px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: none; color: var(--text-2); }
.vs-copy:hover { color: var(--text); border-color: var(--accent); }
.vs { position: relative; }
.vs-res { margin-right: 108px; }
@media (max-width: 760px) { .vs-copy { position: static; justify-self: start; margin-top: 8px; } .vs-res { margin-right: 0; } }

/* The drawing: no wider than it needs to be on a big screen, and on a phone
   the whole of it in view with its words sized up to stay readable. */
.fit-scroll { max-width: 880px; margin-left: auto; margin-right: auto; }
@media (max-width: 620px) {
  .fit-svg { min-width: 0; }
  .fit-name { font-size: 31px; }
  .fit-name-mm { display: none; }
  .fit-tick { font-size: 24px; }
  .fit-wall-lab { font-size: 27px; }
  /* At a size a phone can read, these two would run off the edge and into the
     board below: the ruler drops its unit, the PCIe label sits out. */
  .fit-tick-u { display: none; }
  .fit-lab { display: none; }
}

/* ---------------------------------------------------------------- the versus, with some life (Nick, Nov 28 2026:
   "more visually fun and cool and interesting"). Each side carries its own colour
   (--side): a glow behind the card, its board drawn to scale at the top, pips for
   the rounds it wins; the better buy's card lights up. The head to head is a tug
   of war from the middle, and the verdict shows the break-even price on a strip. */
.vs-card.a { --side: var(--cmp-a); --side-dim: var(--accent-dim); }
.vs-card.b { --side: var(--cmp-b); --side-dim: var(--cmp-b-dim); }
.vs-card { background: radial-gradient(130% 80% at 85% -10%, var(--side-dim) 0%, transparent 60%), var(--surface);
  transition: border-color .3s ease, box-shadow .3s ease; }
.vs-card.lead { border-color: color-mix(in srgb, var(--side) 70%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--side) 45%, transparent), 0 18px 44px -18px var(--side); }

.vs-art-box { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin: 2px 0 4px; }
.vs-art { display: block; width: 100%; max-width: 330px; height: auto; overflow: visible;
  filter: drop-shadow(0 6px 14px color-mix(in srgb, var(--side) 35%, transparent)); }
.vs-art-sh { fill: var(--side-dim); stroke: var(--side); stroke-width: 2; }
.vs-art-fan circle { fill: none; stroke: var(--side); stroke-width: 1.6; }
.vs-art-fan path { fill: none; stroke: var(--side); stroke-width: 1.4; stroke-linecap: round; opacity: .85; }
.vs-art-fan .hub { fill: var(--side); stroke: none; opacity: .4; }
.vs-art-pcb { fill: #2f7a4a; opacity: .65; }
.vs-art-pcie { fill: #d6a734; }
.vs-art-br { fill: var(--text-3); opacity: .7; }
.vs-art-fan { transform-box: view-box; }
.vs-art-mm { flex: none; font-size: .74rem; font-weight: 700; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
@keyframes vs-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: no-preference) {
  .vs-card.lead .vs-art-fan { animation: vs-spin 5s linear infinite; }
  .vs-card:hover .vs-art-fan { animation: vs-spin 1.1s linear infinite; }
}

.vs-mid { position: relative; display: grid; place-items: center; align-self: stretch; }
.vs-mid::before { content: ""; position: absolute; top: 8%; bottom: 8%; left: 50%; width: 2px; transform: translateX(-50%); border-radius: 2px;
  background: linear-gradient(var(--cmp-a), transparent 42%, transparent 58%, var(--cmp-b)); opacity: .6; }
.vs-mark { position: relative; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  font-size: 1.05rem; font-weight: 900; font-style: italic; letter-spacing: .02em; color: var(--text);
  border: 2px solid transparent;
  background: linear-gradient(var(--bg-elev), var(--bg-elev)) padding-box, conic-gradient(from 200deg, var(--cmp-a), var(--cmp-b), var(--cmp-a)) border-box;
  box-shadow: 0 0 22px -6px var(--cmp-a), 0 0 22px -6px var(--cmp-b); }

:root[data-look="banner"] .page-panel .vs-rounds { display: flex; align-items: center; gap: 10px; margin: 0; font-size: .82rem; color: var(--text-3); }
.vs-rounds b { color: var(--text); font-weight: 800; }
.vs-pips { display: inline-flex; gap: 5px; }
.vs-pip { width: 18px; height: 7px; border-radius: 4px; border: 1px solid var(--border-strong); transition: background .3s ease, box-shadow .3s ease; }
.vs-pip.on { background: var(--side); border-color: var(--side); box-shadow: 0 0 10px -2px var(--side); }

.vs-verdict { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; align-items: start; }
.vs-trophy { width: 38px; height: 38px; padding: 7px; border-radius: 12px; color: var(--orange-ink); background: var(--orange-dim); }
.vs-strip { margin-top: 14px; max-width: 560px; }
.vs-strip[hidden] { display: none; }
.vs-strip-bar { position: relative; height: 12px; margin: 40px 0 60px; border-radius: 6px; background: var(--surface); }
.vs-strip-z { position: absolute; top: 0; bottom: 0; transition: left .4s ease, width .4s ease; }
.vs-strip-z.lo { left: 0; border-radius: 6px 0 0 6px; }
.vs-strip-z.hi { right: 0; border-radius: 0 6px 6px 0; }
.vs-strip-z.a { background: color-mix(in srgb, var(--cmp-a) 55%, transparent); }
.vs-strip-z.b { background: color-mix(in srgb, var(--cmp-b) 55%, transparent); }
.vs-strip-even, .vs-strip-now { position: absolute; display: grid; justify-items: center; transform: translateX(-50%); transition: left .4s ease;
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.vs-strip-even { bottom: -6px; padding-bottom: 26px; }
.vs-strip-even::after { content: ""; position: absolute; bottom: 0; width: 3px; height: 24px; border-radius: 2px; background: var(--text); }
.vs-strip-now { top: -5px; padding-top: 34px; }
.vs-strip-now::before { content: ""; position: absolute; top: 0; width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--bg-elev);
  box-shadow: 0 0 0 2px currentColor, 0 0 16px -2px currentColor; background: currentColor; }
.vs-strip-now.a { color: var(--cmp-a); } .vs-strip-now.b { color: var(--cmp-b); }
.vs-strip-even b, .vs-strip-now b { font-size: .95rem; font-weight: 850; color: var(--text); line-height: 1.1; }
.vs-strip-even small, .vs-strip-now small { font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.vs-strip-even b { order: 0; } .vs-strip-even small { order: 1; }
.vs-strip-key { display: flex; justify-content: space-between; gap: 12px; margin-top: 0; font-size: .78rem; font-weight: 700; }
.vs-strip-key .lo, .vs-strip-key .hi { max-width: 48%; }
.vs-strip-key .hi { text-align: right; }
@media (max-width: 760px) {
  .vs-mid { align-self: center; width: 100%; height: 44px; }
  .vs-mid::before { top: 50%; bottom: auto; left: 8%; right: 8%; width: auto; height: 2px; transform: translateY(-50%);
    background: linear-gradient(90deg, var(--cmp-a), transparent 40%, transparent 60%, var(--cmp-b)); }
  .vs-mark { width: 46px; height: 46px; font-size: .9rem; }
  .vs-verdict { grid-template-columns: 1fr; }
  .vs-trophy { width: 34px; height: 34px; }
}

/* head to head: a tug of war from the middle */
.h2h-sides { display: flex; justify-content: space-between; gap: 12px; margin: 10px 0 0; font-size: .92rem; font-weight: 800; }
.h2h-sides .a { color: var(--cmp-a); display: inline-flex; align-items: center; gap: 8px; }
.h2h-sides .b { color: var(--cmp-b); display: inline-flex; align-items: center; gap: 8px; text-align: right; }
.h2h-sides .h2h-sw { margin: 0; }
.h2h-rows { gap: 0; margin-top: 6px; }
.h2h-row { padding: 16px 0 14px; border-top: 1px solid var(--border); gap: 10px; }
.h2h-row:first-child { border-top: 0; }
:root[data-look="banner"] .page-panel .h2h-q { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 8px; margin: 0; text-align: center; }
.h2h-q span { margin-left: 0; }
.h2h-ico { width: 18px; height: 18px; color: var(--text-2); }
.h2h-duel { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; }
.h2h-bar { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; font-variant-numeric: tabular-nums; }
.h2h-bar.b { grid-template-columns: minmax(0, 1fr) auto; }
.h2h-bar.b .h2h-val { order: 2; } .h2h-bar.b .h2h-track { order: 1; }
.h2h-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.h2h-track { display: flex; height: 16px; border-radius: 8px; background: var(--surface-2, var(--surface)); overflow: hidden; }
.h2h-bar.a .h2h-track { justify-content: flex-end; }
.h2h-fill { height: 100%; border-radius: 8px; opacity: .42; transition: width .5s ease, opacity .3s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.h2h-bar.a .h2h-fill { transform-origin: right center; background: linear-gradient(270deg, var(--cmp-a), color-mix(in srgb, var(--cmp-a) 70%, #fff)); }
.h2h-bar.b .h2h-fill { transform-origin: left center; background: linear-gradient(90deg, var(--cmp-b), color-mix(in srgb, var(--cmp-b) 70%, #fff)); }
.h2h-bar.win .h2h-fill { opacity: 1; }
.h2h-bar.a.win .h2h-track { box-shadow: 0 0 18px -6px var(--cmp-a); }
.h2h-bar.b.win .h2h-track { box-shadow: 0 0 18px -6px var(--cmp-b); }
.h2h-val { display: inline-flex; align-items: center; gap: 8px; font-size: 1.02rem; font-weight: 800; color: var(--text); white-space: nowrap; }
.h2h-bar:not(.win) .h2h-val { color: var(--text-2); font-weight: 700; }
.h2h-bar.b .h2h-val { flex-direction: row-reverse; }
.h2h-tag { font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px;
  color: var(--good); background: var(--good-dim); }
.h2h-diff { min-width: 74px; padding: 5px 10px; border-radius: 999px; text-align: center; font-size: .82rem; font-weight: 850; white-space: nowrap;
  font-variant-numeric: tabular-nums; color: var(--text-3); background: var(--bg-elev); border: 1px solid var(--border); transition: color .3s ease, border-color .3s ease; }
.h2h-diff.a { color: var(--cmp-a); border-color: color-mix(in srgb, var(--cmp-a) 60%, transparent); }
.h2h-diff.b { color: var(--cmp-b); border-color: color-mix(in srgb, var(--cmp-b) 60%, transparent); }
.h2h-wait .h2h-fill { transform: scaleX(0); }
.h2h-go .h2h-row:nth-child(2) .h2h-fill { transition-delay: 0s, 0s, .12s; }
.h2h-go .h2h-row:nth-child(3) .h2h-fill { transition-delay: 0s, 0s, .24s; }
@media (max-width: 620px) {
  .h2h-duel { gap: 8px; }
  .h2h-bar, .h2h-bar.b { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .h2h-bar.b .h2h-val { order: 0; } .h2h-bar.b .h2h-track { order: 1; }
  .h2h-val { white-space: normal; flex-wrap: wrap; font-size: .9rem; gap: 2px 6px; }
  .h2h-bar.a .h2h-val { justify-content: flex-start; }
  .h2h-bar.b .h2h-val { flex-direction: row; justify-content: flex-end; text-align: right; }
  .h2h-diff { min-width: 0; padding: 4px 8px; font-size: .74rem; align-self: end; margin-bottom: 1px; }
  .h2h-sides { font-size: .82rem; }
}
/* every row's bars on one width, so the rows line up */
.h2h-bar { grid-template-columns: 11.5rem minmax(0, 1fr); }
.h2h-bar.b { grid-template-columns: minmax(0, 1fr) 11.5rem; }
.h2h-val { white-space: normal; flex-wrap: wrap; row-gap: 2px; }
.h2h-bar.b .h2h-val { flex-wrap: wrap-reverse; justify-content: flex-start; text-align: right; }
:root[data-look="banner"] .page-panel .h2h-q { max-width: none; }
.vs-art-box { justify-content: flex-start; }
@media (max-width: 620px) {
  .h2h-duel { align-items: end; }
  .h2h-bar, .h2h-bar.b { grid-template-columns: minmax(0, 1fr); align-content: end; }
  .h2h-bar.b .h2h-val { flex-wrap: wrap; justify-content: flex-end; }
}
@media (max-width: 900px) and (min-width: 621px) {
  .h2h-bar { grid-template-columns: 8.5rem minmax(0, 1fr); }
  .h2h-bar.b { grid-template-columns: minmax(0, 1fr) 8.5rem; }
}
.vs-art { flex: 1 1 0; min-width: 0; }
