/* Engine base stylesheet: structure + components. All colour via var(--…) from the site's theme.css. */
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01";
}

.mono, .rank, .share, .delta, .price, .meta-price, .spot-foot b { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px max(24px, calc((100% - 1152px) / 2));
  background: rgba(var(--bg-rgb), 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
}
.logo span { color: var(--muted); }
.logo-mark {
  margin-right: 4px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav { display: flex; gap: 4px; margin-right: auto; margin-left: 24px; }
.nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}
.nav a:hover { color: var(--text); background: var(--surface-hover); }
.nav a.active { color: var(--text); background: rgba(var(--white-rgb), 0.08); }

.controls { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .nav { order: 3; width: 100%; margin: 0; overflow-x: auto; }
}
.month-picker {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
}
.month-picker select { border: none; background-color: transparent; padding-left: 4px; }
.step {
  font: inherit;
  font-size: 1rem;
  width: 34px;
  height: 36px;
  border: none;
  background: none;
  color: var(--text);
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.15s;
}
.step:hover:not(:disabled) { background: var(--surface-hover); }
.step:disabled { opacity: 0.25; cursor: default; }
select {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  background: var(--surface) var(--select-arrow) no-repeat right 12px center;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 8px 32px 8px 14px;
  appearance: none;
  cursor: pointer;
}
select option { background: var(--surface); color: var(--text); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Hero ---------- */
.hero { padding: 64px 0 0; margin-bottom: 64px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  padding: 5px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(var(--white-rgb), 0.03);
  margin-bottom: 24px;
}
.eyebrow strong { color: var(--pink); font-weight: 600; }
.live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 0 rgba(var(--up-rgb), 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 7px rgba(var(--up-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--up-rgb), 0); }
}
h1 {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 800;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  max-width: 560px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.08rem;
}

/* ---------- Spotlight tiles (#1 per category + fastest climber) ---------- */
.spotlight {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 14px;
  margin-top: 44px;
}
.spot {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(140deg, rgba(var(--violet-rgb), 0.6), rgba(var(--pink-rgb), 0.25) 45%, rgba(var(--white-rgb), 0.06)) border-box;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.spot:hover { transform: translateY(-3px); box-shadow: 0 18px 50px -20px rgba(var(--violet-rgb), 0.55); }
.spot::after {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(var(--violet-rgb), 0.22), transparent 65%);
  pointer-events: none;
}
.spot-bg { position: absolute; right: 18px; top: 18px; opacity: 0.5; }
.spot-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pink);
  margin-bottom: auto;
  padding-bottom: 28px;
}
.spot-brand { font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.spot-name { font-size: 1.55rem; font-weight: 700; letter-spacing: -0.035em; line-height: 1.15; }
.spot-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--muted);
}
.spot-foot b { color: var(--text); font-weight: 600; font-size: 0.95rem; }
.spot-foot b.up { color: var(--up); }
.spot-foot .delta { min-width: 0; margin-left: 6px; }
.spark { width: 120px; height: 36px; flex-shrink: 0; overflow: visible; }
.spot-riser {
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(140deg, rgba(var(--up-rgb), 0.55), rgba(var(--up-rgb), 0.1) 50%, rgba(var(--white-rgb), 0.06)) border-box;
}
.spot-riser .spot-label { color: var(--up); }
.spot-riser::after { background: radial-gradient(circle, rgba(var(--up-rgb), 0.16), transparent 65%); }

/* ---------- Section heads ---------- */
section { margin-bottom: 72px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
h2 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.04em; }
.section-head p { color: var(--muted); font-size: 0.9rem; }

/* ---------- Meta build strip ---------- */
.meta-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.meta-item {
  background: var(--surface);
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: center;
  color: inherit;
  text-decoration: none;
  transition: background 0.15s;
}
a.meta-item:hover { background: var(--surface-hover); }
.meta-item > div { flex: 1; min-width: 0; }
.meta-item small {
  color: var(--faint);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.meta-item p { font-weight: 600; font-size: 0.92rem; }
.meta-price { font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.meta-total { grid-column: 1 / -1; background: var(--text); color: var(--bg); justify-content: space-between; }
.meta-total small { color: var(--meta-total-muted); }
.meta-total strong { font-size: 1.4rem; letter-spacing: -0.03em; }
/* Partner deal: reduced price on an item and on the build total */
.meta-price s { color: var(--faint); margin-right: 3px; font-weight: 400; }
.meta-total-nums { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.meta-total.meta-deal { background: var(--up); color: var(--on-up); }
.meta-total.meta-deal small { color: var(--on-up-dim); }
.meta-total .was { color: var(--on-up-dim); text-decoration: line-through; font-family: var(--mono); font-size: 1rem; opacity: 0.7; }
.meta-savings {
  font-family: var(--mono); font-weight: 700; font-size: 0.78rem;
  background: var(--on-up); color: var(--up);
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}

/* ---------- Video carousel (full page width) ---------- */
.videos { width: 100vw; margin-left: calc(50% - 50vw); margin-bottom: 40px; }
.videos .section-head { padding: 0 max(24px, calc((100vw - 1152px) / 2)); }
.video-rail {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity;
  padding: 4px max(24px, calc((100vw - 1152px) / 2)) 14px;
  scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent;
}
.video-rail::-webkit-scrollbar { height: 8px; }
.video-rail::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }
.video-card {
  flex: 0 0 300px; scroll-snap-align: start; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; color: inherit; text-decoration: none; text-align: left;
  font: inherit; padding: 0; transition: border-color 0.15s, transform 0.15s;
}
.video-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.video-thumb {
  position: relative; aspect-ratio: 16 / 9; background-size: cover; background-position: center;
  background-color: var(--surface-hover); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
}
.video-thumb-ph { background: var(--grad); }
.video-ph-name { padding: 0 16px; text-align: center; font-weight: 700; font-size: 1.02rem; color: var(--white); text-shadow: 0 1px 10px rgba(var(--black-rgb), 0.45); }
.video-play { width: 46px; height: 46px; border-radius: 999px; background: rgba(var(--bg-rgb), 0.72); border: 1px solid rgba(var(--white-rgb), 0.3); position: relative; flex: none; }
.video-play::after {
  content: ""; position: absolute; top: 50%; left: 53%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 8px 0 8px 14px; border-color: transparent transparent transparent var(--white);
}
.video-card:hover .video-play { background: var(--pink); border-color: transparent; }
.video-meta { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.video-meta small { color: var(--faint); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; }
.video-meta p { font-weight: 600; font-size: 0.92rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-chan { color: var(--muted); font-size: 0.8rem; font-family: var(--mono); }
.video-embed { flex: 0 0 min(560px, 86vw); scroll-snap-align: start; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--black); }
.video-embed iframe { width: 100%; height: 100%; display: block; border: 0; }

/* ---------- Meta build sponsor ---------- */
.sponsor {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
  text-decoration: none;
  transition: border-color 0.15s;
}
.sponsor:hover { border-color: var(--faint); }
.sponsor strong { color: var(--text); font-weight: 600; }
.sponsor img { height: 20px; width: auto; display: block; }
.sponsor-label {
  font-size: 0.6rem;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-right: 10px;
  border-right: 1px solid var(--border-strong);
}

/* ---------- Ads ---------- */
.ads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 72px;
}
.meta-build { margin-bottom: 48px; }
.ad {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.ad:hover { border-color: var(--border-strong); background: var(--surface-hover); }
.ad-label {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 0.62rem;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ad-advertiser { font-size: 0.7rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; }
.ad-headline { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; }
.ad-text { font-size: 0.85rem; color: var(--muted); flex: 1; }
.ad-cta { font-size: 0.8rem; font-weight: 600; margin-top: 8px; }
.ad:hover .ad-cta { text-decoration: underline; }
.ad-banner { padding: 0; overflow: hidden; }
.ad-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ad-banner .ad-label { background: rgba(var(--black-rgb), 0.6); padding: 2px 6px; border-radius: 4px; }

/* ---------- Chips ---------- */
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.filters #pageFilter:empty { display: none; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}
.chip:hover { color: var(--text); border-color: var(--faint); }
.chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- Chart cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(460px, 100%), 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 24px 20px;
  animation: rise 0.45s ease both;
  scroll-margin-top: 90px;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  flex-wrap: wrap;
}
.card-head h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; flex: 1; }
.icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(var(--violet-rgb), 0.12);
  border: 1px solid rgba(var(--violet-rgb), 0.3);
  color: var(--on-violet);
  flex-shrink: 0;
}
.icon svg { width: 17px; height: 17px; }

/* Brand filter (segmented control) */
.seg {
  display: flex;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 3px;
}
.seg button {
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 11px;
  border: none;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.seg button:hover { color: var(--text); }
.seg button.active { background: rgba(var(--white-rgb), 0.1); color: var(--text); }

/* One row per product: rank + movement | name + bar | price + buy */
.part {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  column-gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.rank-col { display: flex; flex-direction: column; align-items: center; gap: 4px; align-self: start; }
.rank { font-size: 1.35rem; font-weight: 500; color: var(--faint); line-height: 1; padding-top: 2px; }
.part-main { min-width: 0; }
.part-top { display: flex; align-items: center; gap: 8px; }
.part-brand {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.part-name { font-weight: 600; font-size: 1rem; letter-spacing: -0.015em; margin: 1px 0 8px; }
.tag {
  font-size: 0.68rem;
  font-weight: 500;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(var(--pink-rgb), 0.12);
  color: var(--on-pink);
  white-space: nowrap;
}

/* The #1 row stands out */
.part.top { padding: 20px 0; }
.part.top .rank {
  font-size: 2.3rem;
  font-weight: 600;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.part.top .part-name { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.03em; }
.part.top .bar { height: 8px; }
.part.top .bar i { background: var(--grad); box-shadow: 0 0 16px rgba(var(--pink-rgb), 0.45); }
.part.top .share { color: var(--text); font-size: 0.9rem; }
.part.top .buy { background: var(--text); color: var(--bg); border-color: var(--text); }
.part.top .buy:hover { background: transparent; color: var(--text); }

.part-side {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-items: end;
  column-gap: 12px;
  row-gap: 6px;
  position: relative;
  align-self: start;
}
.part-side .offers { grid-column: 1 / -1; }
.price { font-size: 0.92rem; font-weight: 500; white-space: nowrap; }
.price:empty { display: none; }
.price small { font-family: var(--sans); font-size: 0.7rem; color: var(--faint); font-weight: 400; }
.buy {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s;
}
.buy:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Price comparison: a small dropdown under the Buy button */
.offers { font-size: 0.75rem; }
.offers summary {
  cursor: pointer;
  color: var(--faint);
  list-style: none;
  white-space: nowrap;
}
.offers summary::-webkit-details-marker { display: none; }
.offers summary::after { content: " ▾"; }
.offers[open] summary::after { content: " ▴"; }
.offers summary:hover { color: var(--text); }
.offers ul {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 10;
  min-width: 240px;
  list-style: none;
  background: var(--surface-high);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px -12px rgba(var(--black-rgb), 0.7);
}
.offers li + li { border-top: 1px solid var(--border); }
.offers a {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  padding: 10px 14px;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.15s;
}
.offers a:hover { background: var(--surface-hover); color: var(--text); }
.offers .best a { color: var(--text); }
.offers .best .offer-price { color: var(--up); }
.offer-price { font-family: var(--mono); }
.offer-go { color: var(--faint); }

.bar-row { display: flex; align-items: center; gap: 12px; }
.bar {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: rgba(var(--white-rgb), 0.06);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: rgba(var(--violet-rgb), 0.55);
  width: 0;
  transition: width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.share { font-size: 0.8rem; color: var(--muted); min-width: 44px; text-align: right; }

/* Movement vs last month */
.delta { font-size: 0.68rem; font-weight: 600; color: var(--faint); white-space: nowrap; }
.delta:empty { display: none; }
.delta.up, .delta.down, .delta.new { padding: 1px 6px; border-radius: 999px; }
.delta.up { color: var(--up); background: rgba(var(--up-rgb), 0.12); }
.delta.down { color: var(--down); background: rgba(var(--down-rgb), 0.12); }
.delta.new { color: var(--on-violet); background: rgba(var(--violet-rgb), 0.18); font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.6rem; }

/* Pre-rendered rankings from build.mjs (visible until app.js takes over, and without JS) */
.seo-list { padding: 0 0 8px 22px; color: var(--muted); font-size: 0.9rem; }
.seo-list li { padding: 6px 0; }

.empty { color: var(--faint); font-size: 0.9rem; padding: 24px 0; border-top: 1px solid var(--border); }

.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.basis { font-size: 0.75rem; color: var(--faint); }
.basis a { color: var(--muted); }
.basis strong { color: var(--pink); font-weight: 600; }
.card-more { font-size: 0.8rem; font-weight: 500; color: var(--text); text-decoration: none; }
.card-more:hover { color: var(--pink); }

.quip {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  font-size: 0.8rem;
  color: var(--muted);
}
.quip::before { content: "// "; color: var(--pink); }

/* ---------- Footer ---------- */
footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
}
.muted { color: var(--faint); margin-top: 6px; }

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .card { padding: 4px 16px 16px; }
  .hero { padding: 40px 0 0; margin-bottom: 48px; }
  .part { grid-template-columns: 32px 1fr auto; column-gap: 12px; }
  .part.top .rank { font-size: 1.8rem; }
  .spot-name { font-size: 1.3rem; }
}

/* ---------- Product thumbnails (only for products with an `image`) ---------- */
.thumb {
  position: relative;
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--white);
  overflow: hidden;
  flex-shrink: 0;
}
.thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; display: block; }
.thumb-sm { width: 32px; height: 32px; }
.thumb-sm img { padding: 2px; }
.part.has-thumb { grid-template-columns: 44px 48px 1fr auto; }
.thumb-link { align-self: start; }
@media (max-width: 560px) {
  .part.has-thumb { grid-template-columns: 32px 40px 1fr auto; }
  .part .thumb { width: 40px; height: 40px; }
}

/* ---------- Blog ---------- */
.blog { max-width: 720px; margin: 0 auto; padding: 48px 24px 24px; }
.blog a { color: var(--text); }
.blog .eyebrow { color: var(--faint); font-size: 0.75rem; margin-bottom: 12px; }
.blog .eyebrow a { color: var(--muted); text-decoration: none; }
.post h1, .post-list h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 14px; }
.post-dek { color: var(--muted); font-size: 1rem; margin-bottom: 36px; }
.post-body { font-size: 0.95rem; line-height: 1.75; }
.post-body p, .post-body ul, .post-body blockquote { margin-bottom: 18px; }
.post-body h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 40px 0 14px; padding-top: 20px; border-top: 1px solid var(--border); }
.post-body h3 { font-size: 1rem; margin: 28px 0 10px; }
.post-body ul { padding-left: 20px; }
.post-body li { margin-bottom: 10px; }
.post-body blockquote { border-left: 3px solid var(--border-strong); padding-left: 14px; color: var(--muted); }
.post-body a { text-decoration-color: var(--faint); text-underline-offset: 3px; }
.post-body a:hover { text-decoration-color: var(--text); }
.post-list article { padding: 24px 0; border-bottom: 1px solid var(--border); }
.post-list h2 { font-size: 1.15rem; margin-bottom: 8px; }
.post-list h2 a { text-decoration: none; }
.post-list h2 a:hover { text-decoration: underline; }
.post-list p { color: var(--muted); font-size: 0.9rem; }
footer a { color: var(--muted); }

/* ---------- Answer pages (/best/) ---------- */
.answer h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 18px; }
.answer h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 40px 0 14px; padding-top: 20px; border-top: 1px solid var(--border); }
.answer h3 { font-size: 0.95rem; margin: 22px 0 6px; }
.answer p { margin-bottom: 12px; line-height: 1.7; font-size: 0.92rem; }
.answer-box { border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); padding: 20px 22px; margin: 8px 0 12px; }
.answer-box p:last-child, .answer-box ul:last-child { margin-bottom: 0; }
.answer-box ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 10px; font-size: 0.85rem; color: var(--muted); }
.answer-box ul strong { color: var(--text); }
.sample-note { border: 1px dashed var(--border-strong); border-radius: 8px; padding: 8px 12px; color: var(--muted); font-size: 0.8rem !important; }
.rank-table, .trend-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.rank-table th, .trend-table th { text-align: left; color: var(--faint); font-weight: 500; font-size: 0.72rem; padding: 6px 8px; border-bottom: 1px solid var(--border-strong); }
.rank-table td, .trend-table td { padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.rank-table td.up { color: var(--up); }
.rank-table td.down { color: var(--down); }
.rank-table .tag { font-size: 0.7rem; color: var(--muted); border: 1px solid var(--border-strong); border-radius: 6px; padding: 1px 6px; margin-left: 6px; white-space: nowrap; }
.trend-table { display: block; overflow-x: auto; }
.trend-table th, .trend-table td { text-align: center; white-space: nowrap; }
.answer .small { font-size: 0.75rem; color: var(--faint); margin-top: 10px; }
.answer .related a, .answer .small a { color: var(--muted); }
.lede-sm { color: var(--muted); }
.hub-list { list-style: none; }
.hub-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.hub-list span { color: var(--muted); text-align: right; }
.card-more { display: block; margin-top: 12px; font-size: 0.75rem; color: var(--muted); text-decoration: none; }
.card-more:hover { color: var(--text); }
@media (max-width: 560px) {
  .rank-table th:nth-child(4), .rank-table td:nth-child(4) { display: none; }
  .hub-list li { flex-direction: column; gap: 4px; }
  .hub-list span { text-align: left; }
}

.methodology ol, .methodology ul { padding-left: 1.4em; }
.methodology li { margin-bottom: 8px; }

@media (max-width: 560px) {
  .part-side { grid-template-columns: auto; }
  .part-side .offers { grid-column: auto; }
}

/* Same width for every row's price column, so the bars line up */
.part-side { min-width: 160px; justify-content: end; }
@media (max-width: 560px) { .part-side { min-width: 84px; } }

/* Ask Bestie Computers: an industrial hardware journal. Layout and surface tokens are site-owned. */
:root {
  --bg: #f3f3ef; --surface: #fafaf7; --surface-hover: #e9e9e3;
  --border: #dcdcd5; --border-strong: #bdbfb5; --text: #20231f;
  --muted: #63685f; --faint: #75796f;
  --violet: #d64824; --pink: #d64824; --blue: #d64824;
  --up: #39724d; --down: #ad4934; --grad: linear-gradient(90deg, #d64824, #d64824);
  --radius: 3px;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --violet-rgb: 214, 72, 36; --pink-rgb: 214, 72, 36;
  --up-rgb: 57, 114, 77; --down-rgb: 173, 73, 52;
  --white-rgb: 32, 35, 31; --bg-rgb: 243, 243, 239; --black-rgb: 0, 0, 0;
  --on-up: #e8f4e9; --on-up-dim: #d7e9da; --on-violet: #a63518; --on-pink: #a63518;
  --surface-high: #ffffff; --meta-total-muted: #c8c9bf; --white: #fff; --black: #161915;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2363685f' stroke-width='1.5'/%3E%3C/svg%3E");
}
body { background-image: none; }
a { text-underline-offset: 4px; }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 50; padding: 12px 18px; background: var(--text); color: var(--bg); }
.skip-link:focus { top: 12px; }
.topbar { position: relative; padding: 23px max(28px, calc((100% - 1280px) / 2)); min-height: 88px; background: var(--bg); backdrop-filter: none; border-bottom: 1px solid var(--border-strong); gap: 30px; }
.logo { display: inline-flex; align-items: center; font-size: 28px; font-weight: 700; letter-spacing: -.065em; white-space: nowrap; }
.logo span { color: var(--text); }
.logo .logo-mark { display: inline-grid; place-items: center; height: 28px; width: 28px; margin-right: 9px; background: var(--violet); color: var(--bg); font: 400 27px/1 var(--mono); border-radius: 2px; }
.logo > span:last-child { color: var(--muted); font-weight: 400; }
.nav { margin: 0 auto; gap: 25px; }
.nav a { padding: 8px 0; border-radius: 0; border-bottom: 1px solid transparent; font-size: 11px; font-weight: 500; }
.nav a.active, .nav a:hover { background: none; border-color: var(--text); }
.header-method { font: 9px var(--mono); color: var(--text); text-decoration: none; white-space: nowrap; }
.header-method span { color: var(--violet); font-size: 18px; margin-left: 18px; }
main { max-width: 1336px; padding: 0 28px; }
.issue-bar { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; font: 9px/1.5 var(--mono); color: var(--muted); letter-spacing: .04em; }
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 6%; padding: 17px 0 36px; margin: 0; }
.hero-copy { align-self: center; padding: 38px 0; }
.hero-kicker { display: flex; align-items: center; gap: 10px; font: 9px var(--mono); letter-spacing: .02em; margin-bottom: 25px; }
.hero-kicker > span { width: 7px; height: 7px; background: var(--violet); }
.hero h1 { font: 600 clamp(58px, 6.7vw, 91px)/.99 var(--sans); letter-spacing: -.075em; }
.hero .grad { background: none; color: #8a8f83; }
.hero .lede { font-size: 13px; line-height: 1.9; max-width: 395px; margin-top: 26px; }
.hero-actions { display: flex; gap: 25px; align-items: center; flex-wrap: wrap; margin-top: 29px; }
.primary-action { display: inline-flex; gap: 25px; align-items: center; padding: 14px 18px; color: var(--surface); background: var(--text); text-decoration: none; font-size: 11px; font-weight: 500; border: 1px solid var(--text); }
.primary-action span { font-size: 18px; }
.primary-action:hover { background: #3a4036; }
.text-action { font-size: 11px; font-weight: 500; color: var(--text); text-decoration: none; }
.text-action:hover { text-decoration: underline; }
.hero-provenance { display: flex; align-items: center; gap: 14px; margin-top: 36px; max-width: 395px; }
.crosshair { font: 37px/1 var(--mono); color: var(--muted); }
.hero-provenance p { font-size: 10px; line-height: 1.7; color: var(--muted); }
.hero-provenance b { font-weight: 500; color: var(--text); }
.provenance-line { flex: 1; height: 1px; background: var(--border-strong); margin-left: 10px; }
.small-mono { font: 8px/1.7 var(--mono); color: var(--muted); letter-spacing: .05em; }
.hardware-feature { position: relative; background: #e4e5df; min-width: 0; display: flex; flex-direction: column; }
.feature-topline { display: flex; justify-content: space-between; gap: 12px; font: 8px var(--mono); letter-spacing: .04em; padding: 21px 23px; }
.feature-image-stage { position: relative; display: grid; place-items: center; height: 345px; min-width: 0; overflow: hidden; }
.feature-ghost { position: absolute; top: 18px; left: 22px; right: 22px; color: #d0d2c8; font: 700 clamp(45px, 5.7vw, 80px)/1 var(--sans); letter-spacing: -.07em; text-align: center; }
#featureImage { z-index: 1; object-fit: contain; width: 90%; height: 88%; max-height: 310px; mix-blend-mode: multiply; }
.stage-cross { position: absolute; font: 20px var(--mono); color: #909688; }
.stage-cross-one { top: 0; right: 22px; }
.stage-cross-two { bottom: 5px; left: 22px; }
.feature-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid #bfc3b6; padding: 22px 23px; margin-top: auto; color: var(--text); text-decoration: none; }
.feature-bottom h2 { font-size: 22px; font-weight: 500; line-height: 1.25; letter-spacing: -.04em; margin: 4px 0 8px; }
.feature-bottom p { font: 9px/1.7 var(--mono); color: var(--muted); }
.feature-arrow { display: grid; place-items: center; font-size: 23px; flex-shrink: 0; width: 43px; height: 43px; color: var(--bg); background: var(--text); }
.feature-bottom:hover .feature-arrow { background: var(--violet); }
.signal-strip { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong); padding: 13px 0; }
.signal-strip .eyebrow { border: 0; background: none; padding: 0; margin: 0; font: 9px var(--mono); gap: 8px; border-radius: 0; }
.signal-strip .eyebrow .live { background: var(--violet); box-shadow: none; animation: none; width: 6px; height: 6px; }
.signal-strip > span, .signal-strip > a { font: 8px var(--mono); color: var(--muted); letter-spacing: .02em; text-decoration: none; }
.signal-strip > a { color: var(--text); }
.leaders-section { padding: 45px 0 60px; }
.pg-section-head { display: flex; justify-content: space-between; align-items: end; gap: 25px; margin-bottom: 25px; }
.section-index { font: 9px/1.7 var(--mono); color: var(--muted); letter-spacing: .02em; }
.pg-section-head h2, .section-head h2 { font: 500 clamp(30px, 3.1vw, 41px)/1.1 var(--sans); letter-spacing: -.055em; margin-top: 11px; }
.section-aside { font-size: 11px; color: var(--muted); line-height: 1.7; }
.spotlight { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin: 0; }
.spot { display: flex; flex-direction: column; padding: 0; min-height: 0; min-width: 0; background: none; border: 0; border-radius: 0; overflow: visible; transition: none; }
.spot::after { content: none; }
.spot:hover { transform: none; box-shadow: none; }
.spot-photo { display: block; height: 210px; width: 100%; margin-bottom: 16px; background: #e7e8e1; border-bottom: 2px solid transparent; }
.spot:hover .spot-photo { border-bottom-color: var(--violet); }
.spot-photo .thumb { height: 100%; width: 100%; display: block; padding: 26px; background: none; border: 0; border-radius: 0; }
.spot-photo img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.spot-bg { position: relative; right: auto; top: auto; display: grid; place-items: center; width: 100%; height: 210px; background: #e7e8e1; margin-bottom: 16px; opacity: 1; }
.spot-bg .icon { width: 70px; height: 70px; color: var(--muted); }
.spot-label { font: 8px var(--mono); letter-spacing: .04em; color: var(--violet); margin: 0 0 8px; padding: 0; }
.spot-brand { font: 9px var(--mono); color: var(--muted); margin-bottom: 3px; }
.spot-name { font-size: 19px; font-weight: 500; line-height: 1.18; letter-spacing: -.035em; margin-bottom: 12px; }
.spot-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); font: 8px/1.6 var(--mono); align-items: center; }
.spot-foot b { font-size: 13px; font-weight: 500; }
.spot-foot .sparkline { width: 54px; color: var(--muted); }
.spot-foot .delta { font-size: 8px; }
.rankings-section { border-top: 1px solid var(--border-strong); padding-top: 40px; scroll-margin-top: 20px; }
.ranking-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 0; margin: 10px 0 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.chips { gap: 5px; }
.chip { font-size: 10px; padding: 7px 11px; border-radius: 2px; border: 1px solid transparent; background: none; transition: none; }
.chip.active { color: var(--bg); background: var(--text); border-color: var(--text); }
.chip:hover:not(.active) { background: #e4e6dc; border-color: transparent; }
.controls { flex-shrink: 0; gap: 6px; }
.month-picker { border-radius: 2px; border-color: var(--border-strong); background: transparent; }
.controls select { font: 9px var(--mono); border-radius: 2px; padding-left: 8px; max-width: 155px; background-color: transparent; }
.step { width: 25px; height: 30px; }
.ranking-legend { display: flex; justify-content: space-between; font: 8px var(--mono); letter-spacing: .04em; color: var(--muted); padding: 15px 0; }
.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.card { min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; animation: none; }
.card-head { padding: 18px 0; gap: 10px; border-bottom: 1px solid var(--border-strong); }
.card-head > .icon { width: 22px; height: 22px; padding: 0; border: 0; background: none; color: var(--text); }
.card-head h3 { font-size: 21px; font-weight: 500; letter-spacing: -.04em; }
.seg { border: 0; border-radius: 2px; background: var(--surface-hover); padding: 2px; }
.seg button { font-size: 9px; padding: 4px 7px; border-radius: 1px; }
.seg button.active { background: var(--surface); }
.part, .part.has-thumb { grid-template-columns: 25px minmax(0, 1fr) auto; gap: 12px; padding: 16px 0; }
.part.has-thumb { grid-template-columns: 25px 53px minmax(0, 1fr) auto; }
.rank-col { align-self: center; }
.part .rank { font: 12px var(--mono); color: var(--muted); }
.part .delta { font-size: 8px; }
.part .thumb { display: block; width: 53px; height: 58px; padding: 5px; background: #e7e8e1; border: 0; border-radius: 2px; }
.part .thumb img { height: 100%; width: 100%; object-fit: contain; mix-blend-mode: multiply; }
.part-brand { font: 8px var(--mono); letter-spacing: .02em; color: var(--muted); }
.part-name { font-size: 12px; font-weight: 500; letter-spacing: -.015em; margin: 3px 0 7px; }
.part-top { flex-wrap: wrap; gap: 3px 8px; }
.tag { font-size: 8px; padding: 1px 4px; border-radius: 1px; }
.part-side { min-width: 90px; column-gap: 8px; grid-template-columns: auto auto; align-self: center; }
.part .price { font: 11px var(--mono); }
.part .price small { font-size: 8px; }
.buy { font-size: 9px; padding: 5px 9px; border-radius: 2px; transition: none; }
.buy:hover { background: var(--text); color: var(--bg); }
.offers { font-size: 8px; }
.offers ul { z-index: 8; background: var(--surface); }
.bar { height: 3px; border-radius: 0; background: #d9dcd1; }
.bar i { border-radius: 0; background: #989e90; }
.share { font: 9px var(--mono); }
.part.top { padding: 23px 0; min-height: 155px; }
.part.top.has-thumb { grid-template-columns: 25px 100px minmax(0, 1fr); }
.part.top .thumb-link { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.part.top .thumb { width: 100px; height: 112px; padding: 9px; }
.part.top.has-thumb .rank-col { grid-column: 1; grid-row: 1 / span 2; }
.part.top.has-thumb .part-main, .part.top.has-thumb .part-side { grid-column: 3; }
.part.top.has-thumb .part-side { justify-content: start; justify-items: start; align-self: start; }
.part.top .rank { font: 21px var(--mono); background: none; color: var(--violet); }
.part.top .part-name { font-size: 23px; font-weight: 500; letter-spacing: -.04em; line-height: 1.15; margin: 6px 0 10px; }
.part.top .bar { height: 3px; }
.part.top .bar i { background: var(--violet); box-shadow: none; }
.part.top .share { font-size: 11px; }
.part.top .buy { background: var(--text); color: var(--bg); border-color: var(--text); }
.part.top .buy:hover { background: #3a4036; color: var(--bg); }
.card-foot { padding: 12px 0 20px; border-top: 1px solid var(--border); }
.basis { font-size: 9px; line-height: 1.8; }
.card-more { font-size: 10px; margin-top: 8px; }
.meta-build { margin: 45px 0; padding: 35px; background: #232720; color: #f2f3ed; border-radius: 3px; }
.meta-build .section-index, .meta-build .section-head p { color: #b2b8a7; }
.meta-build .section-head h2 { color: #f2f3ed; font-size: 36px; }
.meta-strip { background: none; border: 0; border-radius: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; }
.meta-item { padding: 17px; flex-direction: column; align-items: start; gap: 12px; background: #30362b; color: #f2f3ed; min-width: 0; }
a.meta-item:hover { background: #3b4235; }
.meta-item .thumb { width: 100%; height: 110px; padding: 10px; background: #f0f1e9; border: 0; border-radius: 1px; }
.meta-item .thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.meta-item .icon { background: none; color: #c9d0bd; }
.meta-item small { font: 8px var(--mono); color: #bcc4af; }
.meta-item p { font-size: 12px; font-weight: 500; line-height: 1.4; }
.meta-price { color: #d4dacb; font-size: 10px; }
.meta-total { grid-column: 1 / -1; flex-direction: row; align-items: center; background: var(--violet); padding: 20px; }
.meta-total small { color: #fff4ec; }
.meta-total strong { font: 500 27px var(--mono); }
.build-context { font-size: 9px; line-height: 1.7; color: #b8c0ad; margin-top: 18px; }
.sponsor { color: #ccd1c3; border-color: #5f6856; border-radius: 2px; font-size: 9px; }
.sponsor strong { color: #f3f4ed; }
.method-panel { display: grid; grid-template-columns: 1fr 1.5fr; gap: 55px; margin: 55px 0 65px; padding: 45px; background: #e3e6da; }
.method-mark { display: grid; place-items: center; font: 150px/1 var(--sans); color: #8a9580; border: 1px solid #b9c1b0; aspect-ratio: 1; max-width: 240px; }
.method-panel h2 { font: 500 clamp(34px, 4vw, 53px)/1.05 var(--sans); letter-spacing: -.055em; margin: 15px 0 21px; }
.method-panel div > p:not(.section-index) { font-size: 12px; line-height: 1.9; max-width: 420px; color: var(--muted); margin-bottom: 20px; }
.ads { gap: 15px; margin-bottom: 30px; }
.ads:empty { display: none; }
.ad { min-height: 140px; border-radius: 2px; background: transparent; padding: 20px; }
.ad-headline { font-size: 16px; letter-spacing: -.03em; font-weight: 500; }
.ad-text { font-size: 11px; }
.ad-advertiser, .ad-label { font: 8px var(--mono); }
.ad-cta { font-size: 10px; }
.video-card, .video-embed { border-radius: 2px; }
.video-card:hover { transform: none; }
.videos .section-head { padding: 0 max(28px, calc((100vw - 1280px) / 2)); }
.video-rail { padding-left: max(28px, calc((100vw - 1280px) / 2)); padding-right: max(28px, calc((100vw - 1280px) / 2)); }
footer { max-width: none; margin: 0; padding: 40px max(28px, calc((100% - 1280px) / 2)); display: grid; grid-template-columns: 1fr 1fr; gap: 30px 60px; border-top: 1px solid var(--border-strong); }
.footer-brand > a { font-size: 32px; font-weight: 600; letter-spacing: -.065em; color: var(--text); text-decoration: none; }
.footer-brand > a span { font-weight: 400; color: var(--muted); }
.footer-brand > p { margin-top: 8px; font-size: 11px; }
.footer-details p { font-size: 9px; line-height: 1.8; margin-bottom: 7px; }
.footer-base { font: 8px var(--mono); color: var(--muted); text-decoration: none; margin: 0; }
a.footer-base { justify-self: end; }
@media (max-width: 1100px) {
  .hero { gap: 4%; }
  .hero h1 { font-size: 70px; }
  .nav { gap: 17px; }
  .header-method { display: none; }
  .spotlight { gap: 16px; }
  .spot-photo, .spot-bg { height: 180px; }
  .ranking-toolbar { flex-direction: column; align-items: start; }
  .part.has-thumb { grid-template-columns: 20px 43px minmax(0, 1fr); }
  .part:not(.top).has-thumb .part-side { grid-column: 3; justify-content: start; justify-items: start; }
  .part:not(.top).has-thumb .thumb-link { grid-row: 1 / span 2; grid-column: 2; }
  .part:not(.top).has-thumb .rank-col { grid-row: 1 / span 2; grid-column: 1; }
  .part:not(.top).has-thumb .thumb { width: 43px; height: 52px; }
}
@media (max-width: 700px) {
  main { padding: 0 20px; }
  .topbar { padding: 19px 20px 12px; gap: 18px; justify-content: space-between; }
  .logo { font-size: 28px; }
  .header-method { display: block; font-size: 8px; }
  .header-method span { margin-left: 8px; }
  .nav { order: 3; width: 100%; margin: 0; gap: 28px; justify-content: start; }
  .issue-bar { font-size: 7px; gap: 12px; padding: 12px 0; }
  .issue-bar > span:first-child { max-width: 150px; }
  .issue-bar > span:last-child { text-align: right; }
  .hero { grid-template-columns: 1fr; gap: 5px; padding-top: 0; padding-bottom: 25px; }
  .hero-copy { padding: 27px 0; }
  .hero h1 { font-size: clamp(59px, 13.5vw, 83px); }
  .hero-kicker { font-size: 8px; margin-bottom: 20px; }
  .hero .lede { font-size: 12px; margin-top: 21px; }
  .hero-actions { gap: 20px; margin-top: 24px; }
  .hero-provenance { margin-top: 25px; }
  .feature-image-stage { height: 300px; }
  .feature-ghost { font-size: 60px; }
  .feature-topline { padding: 17px; }
  .feature-bottom { padding: 19px; }
  .signal-strip { align-items: start; gap: 10px; }
  .signal-strip > span { display: none; }
  .signal-strip .eyebrow { font-size: 8px; flex-wrap: wrap; }
  .signal-strip > a { font-size: 7px; text-align: right; max-width: 105px; }
  .leaders-section { padding: 33px 0 38px; }
  .pg-section-head { align-items: start; gap: 15px; }
  .pg-section-head h2 { font-size: 31px; }
  .pg-section-head .text-action { font-size: 9px; max-width: 90px; margin-top: 23px; }
  .section-index { font-size: 8px; }
  .section-aside { display: none; }
  .spotlight { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .spot-photo, .spot-bg { height: 170px; }
  .spot-photo .thumb { padding: 15px; }
  .spot-name { font-size: 17px; }
  .spot-foot { font-size: 7px; }
  .spot-foot .sparkline { display: none; }
  .rankings-section { padding-top: 30px; }
  .grid { grid-template-columns: 1fr; gap: 18px; }
  .card-head h3 { font-size: 22px; }
  .part.has-thumb { grid-template-columns: 25px 53px minmax(0, 1fr) auto; }
  .part:not(.top).has-thumb .part-side { grid-column: 4; justify-content: end; justify-items: end; grid-row: 1 / span 2; }
  .part:not(.top).has-thumb .thumb { width: 53px; height: 58px; }
  .part.top.has-thumb { grid-template-columns: 25px 100px minmax(0, 1fr); }
  .part.top .part-name { font-size: 23px; }
  .part-side { min-width: 72px; grid-template-columns: auto; }
  .meta-build { padding: 23px 18px; margin: 30px -20px; border-radius: 0; }
  .meta-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meta-build .section-head { align-items: start; gap: 15px; }
  .meta-build .section-head h2 { font-size: 30px; }
  .meta-item .thumb { height: 100px; }
  .meta-total strong { font-size: 22px; }
  .method-panel { padding: 25px; grid-template-columns: 1fr; gap: 23px; margin: 35px 0 40px; }
  .method-mark { font-size: 60px; height: 90px; width: 90px; }
  .method-panel h2 { font-size: 38px; }
  footer { padding: 28px 20px; grid-template-columns: 1fr; gap: 25px; }
  a.footer-base { justify-self: start; }
}
@media (max-width: 380px) {
  .part.has-thumb { grid-template-columns: 20px 43px minmax(0, 1fr); }
  .part:not(.top).has-thumb .part-side { grid-column: 3; grid-row: auto; justify-content: start; justify-items: start; grid-template-columns: auto auto; }
  .part.top.has-thumb { grid-template-columns: 20px 85px minmax(0, 1fr); }
  .part.top .thumb { width: 85px; height: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.feature-fallback { position: relative; z-index: 2; font: 10px/1.9 var(--mono); text-align: center; color: var(--muted); border: 1px solid var(--border-strong); padding: 24px; background: #e4e5df; }
.hero:has(.hardware-feature[hidden]) { grid-template-columns: 1fr; }

/* Keep market selection visible before the rankings, including on mobile. */
.region-picker { display: grid; gap: 5px; flex-shrink: 0; order: 2; }
.region-picker > span { font: 9px var(--mono); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.region-picker select { min-height: 38px; width: 180px; max-width: 100%; border: 1px solid var(--border-strong); background-color: var(--surface); color: var(--text); font: 11px var(--sans); }
.region-picker select:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
@media (max-width: 700px) {
  .topbar { flex-wrap: wrap; gap: 16px; }
  .region-picker { margin-left: auto; order: 0; }
  .region-picker select { width: 160px; }
  .topbar .nav { order: 3; width: 100%; margin: 0; overflow-x: auto; }
}
.region-picker select { border-radius: 2px; font-family: var(--mono); }
