/* 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); }

/* Price-drop alert: a small signup panel under the Buy button */
.notify { font-size: 0.75rem; }
.part-side .notify { grid-column: 1 / -1; }
.notify summary {
  cursor: pointer;
  color: var(--faint);
  list-style: none;
  white-space: nowrap;
}
.notify summary::-webkit-details-marker { display: none; }
.notify summary:hover { color: var(--text); }
.notify-form {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 11;
  width: 260px;
  max-width: min(260px, 78vw);
  display: grid;
  gap: 8px;
  padding: 14px;
  text-align: left;
  background: var(--surface-high);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: 0 20px 40px -12px rgba(var(--black-rgb), 0.7);
}
.notify-lead { margin: 0; color: var(--muted); font-size: 0.72rem; }
.notify-target { display: flex; align-items: center; gap: 6px; }
.notify-target span { color: var(--faint); font-family: var(--mono); }
.notify-form input {
  width: 100%;
  padding: 7px 10px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font: inherit;
}
.notify-target input { flex: 1; width: auto; font-family: var(--mono); }
.notify-form button {
  padding: 7px 12px;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--bg);
  background: var(--text);
  border: 1px solid var(--text);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}
.notify-form button:hover:not(:disabled) { background: transparent; color: var(--text); }
.notify-form button:disabled { opacity: 0.6; cursor: default; }
.notify-msg { margin: 0; color: var(--muted); font-size: 0.72rem; }
.notify-msg:empty { display: none; }
.notify-msg.ok { color: var(--up); }

.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; } }

/* Shared square identity; the content pack supplies its own pictogram. */
.logo .logo-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 9px; flex: 0 0 28px; border-radius: 2px; background: var(--violet); color: var(--bg); -webkit-background-clip: border-box; background-clip: border-box; font-style: normal; }
.logo .logo-mark svg { display: block; width: 18px; height: 18px; }

/* Shared footer access across every content pack and generated page. */
footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 12px 22px;
  font-size: 11px;
  line-height: 1.6;
}
footer .footer-links a { white-space: nowrap; }

/* Keep the product's image column when a retailer image cannot load. */
.thumb.thumb-unavailable { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.thumb-unavailable .icon { width: 40px; height: 40px; background: transparent; border: 0; padding: 0; }
.photo-status { font: 10px/1.4 var(--sans); text-align: center; color: var(--muted); }
.thumb-sm .photo-status { display: none; }

/* ---------- Collection: add button, tray, page (build / makeup bag) ---------- */
/* All colour via var(--…) from the site's theme.css, like the rest of this file. */

/* Small centered SVGs share a 24px interaction target and a 17px visual circle. */
.add { position:relative; width:24px; height:24px; margin:0; padding:0; display:grid; place-items:center; flex:0 0 24px; align-self:center; border:0; border-radius:0; background:transparent; color:var(--muted); cursor:pointer; }
.add::before { content:""; position:absolute; width:17px; height:17px; border:1px solid var(--border-strong); border-radius:50%; }
.add:hover { color:var(--text); background:transparent; }
.add:hover::before { border-color:var(--text); }
.add:focus-visible { outline:2px solid var(--violet); outline-offset:1px; }
.add .add-glyph { position:relative; width:11px; height:11px; display:block; }
.add .add-check { display:none; }
.add.on { color:var(--violet); background:transparent; }
.add.on::before { border-color:var(--violet); }
.add.on .add-plus { display:none; }
.add.on .add-check { display:block; }
.part .rank-col { display:grid; grid-template-rows:24px 12px; justify-items:center; align-content:center; gap:0; }
.part .rank-col>.rank { grid-row:1; align-self:center; }
.part .rank-col>.delta { grid-row:2; align-self:center; line-height:12px; }

/* Floating tray linking to the collection page */
.collection-tray {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: var(--text); color: var(--bg); text-decoration: none; font-weight: 600; font-size: 0.85rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}
.collection-tray[hidden] { display: none; }
.collection-tray .tray-ico { font-weight: 700; }
.collection-tray .tray-label { text-transform: capitalize; }
.collection-tray .tray-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg); color: var(--text); font-size: 0.75rem;
}

/* Collection / app page shell */
.app-page { max-width: 820px; margin: 0 auto; padding: 32px 20px 80px; }
.collection-eyebrow { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin: 0 0 6px; }
.collection-head h1 { font-size: 2rem; letter-spacing: -0.03em; margin: 0 0 6px; }
.collection-lede { color: var(--muted); margin: 0; }
.collection-head { margin-bottom: 20px; }
.c-emptymsg { color: var(--muted); margin: 24px 0; }

.c-list { list-style: none; margin: 8px 0 0; padding: 0; }
.c-item { display: grid; grid-template-columns: 48px 1fr auto auto; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--border); }
.c-thumb { display: inline-flex; }
.c-item .thumb { width: 48px; height: 48px; }
.c-main { min-width: 0; display: flex; flex-direction: column; }
.c-brand { font-size: 0.72rem; color: var(--faint); font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.04em; }
.c-name { font-weight: 600; letter-spacing: -0.01em; }
.c-price { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.c-price.approx { color: var(--muted); }
.c-price.c-noprice { color: var(--faint); font-size: 0.8rem; }
.c-actions { display: inline-flex; align-items: center; gap: 10px; }
.c-remove { width: 26px; height: 26px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--muted); cursor: pointer; font-size: 1.1rem; line-height: 1; }
.c-remove:hover { border-color: var(--down); color: var(--down); }

.c-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; padding-top: 16px; border-top: 2px solid var(--border-strong); font-size: 1.05rem; }
.c-total strong { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 1.4rem; }
.c-counts { color: var(--faint); font-size: 0.8rem; margin: 8px 0 0; }

.c-share { margin-top: 28px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.c-region { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 12px; }
.c-region-sel { font: inherit; padding: 4px 8px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--bg); color: var(--text); }
.c-share-row { display: flex; gap: 8px; }
.c-share-url { flex: 1; min-width: 0; font: inherit; font-size: 0.85rem; padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--bg); color: var(--text); }
.c-copy { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--text); color: var(--bg); font-weight: 600; cursor: pointer; white-space: nowrap; }
.c-copy:hover { opacity: 0.9; }
.c-share-note { color: var(--faint); font-size: 0.78rem; margin: 10px 0 0; }

.c-sharednote, .c-degraded { margin: 0 0 18px; padding: 12px 16px; border-radius: var(--radius); background: rgba(var(--violet-rgb), 0.08); border: 1px solid rgba(var(--violet-rgb), 0.2); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.c-sharednote p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.c-degraded { color: var(--muted); font-size: 0.9rem; }
.c-save { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--violet); background: var(--violet); color: var(--on-violet, #fff); font-weight: 600; cursor: pointer; white-space: nowrap; }

@media (max-width: 560px) {
  .c-item { grid-template-columns: 40px 1fr auto; grid-template-areas: "thumb main price" "thumb main actions"; row-gap: 4px; column-gap: 12px; }
  .c-thumb { grid-area: thumb; align-self: start; }
  .c-main { grid-area: main; }
  .c-item > .c-price { grid-area: price; justify-self: end; }
  .c-actions { grid-area: actions; justify-self: end; }
  .c-item .thumb { width: 40px; height: 40px; }
}

/* ---------- Car Finder (filter + sort) ---------- */
.finder-head h1 { font-size: 2rem; letter-spacing: -0.03em; margin: 0 0 6px; }
.finder-lede { color: var(--muted); margin: 0 0 20px; max-width: 60ch; }
.finder-controls { padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-bottom: 20px; }
.f-facet { display: flex; align-items: baseline; gap: 12px; padding: 8px 0; border-top: 1px solid var(--border); }
.f-facet:first-child { border-top: 0; padding-top: 0; }
.f-facet-label { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); min-width: 54px; padding-top: 4px; }
.f-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.f-chip { font-size: 0.8rem; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--bg); color: var(--text); cursor: pointer; transition: all 0.12s; }
.f-chip:hover { border-color: var(--text); }
.f-chip:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.f-chip[aria-pressed="true"] { background: var(--violet); border-color: var(--violet); color: var(--on-violet, #fff); }
.f-facet-inline { gap: 20px; flex-wrap: wrap; align-items: center; }
.f-toggle, .f-sort { font-size: 0.85rem; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.f-sort-sel { font: inherit; padding: 4px 8px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--bg); color: var(--text); }
.f-note { color: var(--faint); font-size: 0.78rem; margin: 10px 0 0; max-width: 70ch; }
.f-count { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); margin: 0 0 8px; }

.f-list { list-style: none; margin: 0; padding: 0; }
.f-row { display: grid; grid-template-columns: 28px 48px 1fr auto auto; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--border); }
.f-rank { font-family: var(--mono); color: var(--faint); font-size: 0.95rem; text-align: right; }
.f-thumb { display: inline-flex; }
.f-row .thumb { width: 48px; height: 48px; }
.f-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.f-brand { font-size: 0.72rem; color: var(--faint); font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.04em; }
.f-name { font-weight: 600; letter-spacing: -0.01em; }
.f-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.f-badge { font-size: 0.66rem; padding: 1px 7px; border-radius: 999px; background: var(--surface-hover); color: var(--muted); font-family: var(--sans); }
.f-badge.f-ev { background: rgba(var(--up-rgb), 0.14); color: var(--up); }
.f-badge.f-mixed { background: rgba(var(--violet-rgb), 0.12); color: var(--violet); }
.f-share { text-align: right; white-space: nowrap; }
.f-share strong { font-family: var(--mono); font-variant-numeric: tabular-nums; display: block; }
.f-share small { font-size: 0.66rem; color: var(--faint); }
.f-prices { text-align: right; white-space: nowrap; display: flex; flex-direction: column; gap: 2px; }
.f-retail { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.f-lease { font-size: 0.8rem; color: var(--muted); font-family: var(--mono); }
.f-na { color: var(--faint); font-family: var(--sans); font-size: 0.75rem; }
.f-empty { padding: 24px 0; color: var(--muted); }

@media (max-width: 600px) {
  .f-row { grid-template-columns: 24px 40px 1fr auto; grid-template-areas: "rank thumb main share" "rank thumb main prices"; row-gap: 4px; column-gap: 12px; }
  .f-rank { grid-area: rank; align-self: start; padding-top: 4px; }
  .f-thumb { grid-area: thumb; align-self: start; }
  .f-main { grid-area: main; }
  .f-share { grid-area: share; }
  .f-prices { grid-area: prices; }
  .f-row .thumb { width: 40px; height: 40px; }
}

/* Named collections: picker, list library and editorial product modules. */
.add-picker { position:fixed; z-index:100; width:min(320px,calc(100vw - 16px)); max-height:calc(100dvh - 24px); overflow:auto; padding:16px; border:1px solid var(--border-strong); border-radius:var(--radius); background:var(--surface); color:var(--text); box-shadow:0 12px 36px color-mix(in srgb,var(--text) 16%,transparent); }
.add-picker-head { font-weight:600; margin-bottom:12px; }
.add-picker-empty,.add-picker-status { font-size:.8rem; color:var(--muted); margin-bottom:10px; }
.add-picker-status:empty { display:none; }
.add-picker-lists { display:grid; gap:6px; max-height:240px; overflow:auto; margin-bottom:12px; }
.add-picker-row { width:100%; display:flex; align-items:center; gap:10px; padding:10px; border:1px solid var(--border); background:var(--bg); color:var(--text); text-align:left; font:inherit; cursor:pointer; border-radius:var(--radius); }
.apr-name { flex:1; min-width:0; overflow-wrap:anywhere; }
.apr-count { color:var(--muted); font: .75rem var(--mono); }
.apr-check { width:15px; height:15px; flex:0 0 auto; border:1px solid var(--border-strong); }
.add-picker-row[aria-pressed="true"] .apr-check { background:var(--violet); border-color:var(--violet); }
.add-picker-row[aria-pressed="true"] .apr-check::after { content:'✓'; display:block; color:var(--bg); font-size:12px; line-height:14px; text-align:center; }
.add-picker-new,.new-list-form { display:flex; gap:8px; }
.add-picker-new input,.new-list-form input,.detail-name { min-width:0; width:100%; font:inherit; border:1px solid var(--border-strong); background:var(--bg); color:var(--text); border-radius:var(--radius); padding:10px 12px; }
.add-picker-new button,.new-list-form button,.lc-btn,.c-danger { font:inherit; color:var(--text); border:1px solid var(--border-strong); background:var(--surface); border-radius:var(--radius); padding:9px 12px; cursor:pointer; }
.new-list-form button { white-space:nowrap; }
.collection-new { margin:24px 0; }
.list-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr)); gap:20px; }
.list-card { min-width:0; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; }
.list-card-main { display:flex; flex-direction:column; gap:8px; padding:16px; text-decoration:none; color:var(--text); }
.lc-covers { display:block; height:170px; background:var(--bg); border:1px solid var(--border); border-radius:calc(var(--radius) - 2px); overflow:hidden; }
.lc-cover { display:grid; place-items:center; width:100%; height:100%; overflow:hidden; }
.lc-cover .thumb,.lc-cover .icon { display:grid; place-items:center; width:100%; height:100%; }
/* Covers wear the main-page photo treatment: fill the padded panel and contain
   (breathing room comes from .lc-covers padding), never a small capped thumbnail. */
.lc-cover .thumb img,.lc-cover>img { width:100%; height:100%; max-width:100%; max-height:100%; object-fit:contain; }
/* The empty-cover glyph is a quiet neutral mark — a theme may retint it, but it must
   never inherit the accent-tinted .icon chip used on ranking rows. */
.lc-cover .icon { background:none; border:0; border-radius:0; color:var(--faint); }
.lc-cover .icon svg { width:46px; height:46px; opacity:1; }
.lc-cover.lc-empty { background:repeating-linear-gradient(45deg,transparent,transparent 9px,color-mix(in srgb,var(--text) 5%,transparent) 9px,color-mix(in srgb,var(--text) 5%,transparent) 18px); }
.lc-name { font-size:1.1rem; font-weight:600; overflow-wrap:anywhere; }
.lc-meta { color:var(--muted); font-size:.8rem; }
.lc-actions { display:flex; gap:8px; padding:0 16px 16px; }
.c-back { display:inline-block; margin-bottom:20px; color:var(--muted); }
.detail-name { font-size:clamp(1.4rem,4vw,2rem); font-weight:600; }
.detail-sub { margin:8px 0 20px; color:var(--muted); }
.detail-foot { margin-top:28px; }
.c-danger { color:var(--down); }
.collection-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr)); gap:22px; margin:24px 0; }
.module { position:relative; min-width:0; display:flex; flex-direction:column; border:1px solid var(--border); background:var(--surface); border-radius:var(--radius); overflow:hidden; }
.module-top { display:flex; justify-content:space-between; gap:12px; font:.65rem var(--mono); color:var(--muted); padding:16px 42px 12px 16px; }
.module-stage { position:relative; display:grid; place-items:center; aspect-ratio:1.2; overflow:hidden; padding:24px; background:var(--bg); }
.module-stage>.thumb { width:100%; height:100%; }
.module-img,.module-stage img { position:relative; z-index:1; max-width:85%; max-height:210px; object-fit:contain; }
.module-ghost { position:absolute; font:600 clamp(2.5rem,6vw,4rem) var(--sans); opacity:.06; letter-spacing:-.05em; }
.module-fallback { text-align:center; color:var(--faint); font:.7rem/1.7 var(--mono); }
.module-cross { position:absolute; font: .8rem var(--mono); color:var(--faint); }
.module-cross-one { top:12px; left:12px; }.module-cross-two { bottom:12px; right:12px; }
.module-bottom { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:18px; color:var(--text); text-decoration:none; flex:1; }
.module-bottom h3 { margin:6px 0; font-size:1.1rem; line-height:1.35; overflow-wrap:anywhere; }
.module-bottom p { font-size:.75rem; color:var(--muted); }
.module-arrow { font-size:1.4rem; flex:0 0 auto; }
.module-remove { position:absolute; right:10px; top:10px; z-index:2; width:26px; height:26px; font:1.1rem var(--sans); border:1px solid var(--border-strong); border-radius:50%; color:var(--text); background:var(--surface); cursor:pointer; }
.add-picker :focus-visible,.collection-page :focus-visible,.finder :focus-visible { outline:2px solid var(--violet); outline-offset:3px; }
@media(max-width:560px){ .f-facet { flex-direction:column; gap:8px; }.f-facet-inline { align-items:flex-start; }.f-row { gap:8px; }.f-name { overflow-wrap:anywhere; }.new-list-form { flex-wrap:wrap; }.new-list-form button { width:100%; } }
@media(prefers-reduced-motion:reduce){ .add,.f-chip { transition:none; } }
.spot-entry { position:relative; min-width:0; }
.spot-entry>.spot { height:100%; }
.spot-entry>.add { position:absolute; z-index:2; top:12px; right:12px; }
.meta-save { display:flex; align-items:center; gap:8px; min-width:0; }
.meta-save>.meta-item { flex:1; min-width:0; }
.f-more { grid-column:3 / -1; min-width:0; color:var(--muted); font-size:.8rem; }
.f-more>summary { cursor:pointer; padding:6px 0; }
.f-more .car-pricing { max-width:100%; }
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.module-stage>.thumb { max-height:250px; display:flex; justify-content:center; align-items:center; background:transparent; }
.module-stage>.thumb img { max-height:210px; object-fit:contain; }

/* One save-control position across ranking rows, featured cards and build strips. */
[data-save-item] { position:relative; }
[data-save-item]>.add { position:absolute; top:8px; right:8px; z-index:3; margin:0; }
.part.collection-item[data-save-item] { padding-inline-end:36px; }
.meta-save>.meta-item { padding-inline-end:40px; }

/* Regional retailer directory: site packs supply the editorial treatment. */
.retailers-section { margin:60px 0; padding-top:36px; border-top:1px solid var(--border-strong); }
.retailers-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:28px; margin-bottom:28px; }
.retailers-eyebrow { color:var(--muted); font-size:.65rem; letter-spacing:.1em; margin-bottom:10px; }
.retailers-heading h2 { margin:0 0 12px; font-size:2.25rem; line-height:1.1; }
.retailers-lede { max-width:500px; color:var(--muted); font-size:.8rem; line-height:1.8; }
.retailers-region { display:flex; flex-direction:column; flex-shrink:0; gap:8px; color:var(--muted); font-size:.7rem; }
.retailers-region select { display:block; box-sizing:border-box; appearance:none; width:260px; max-width:100%; min-height:42px; margin:0; padding:11px 40px 11px 14px; border:1px solid var(--border-strong); border-radius:var(--radius); background-color:var(--surface); background-position:right 14px center; color:var(--text); font:11px/1.4 var(--sans); }
.retailer-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); gap:18px; }
.retailer-card { display:flex; flex-direction:column; min-width:0; min-height:190px; padding:22px; border:1px solid var(--border); color:var(--text); background:var(--surface); text-decoration:none; }
.retailer-card-top { display:flex; justify-content:space-between; align-items:center; gap:10px; font-size:.6rem; color:var(--muted); }
.retailer-card-name { display:flex; justify-content:space-between; gap:18px; font-size:1.5rem; line-height:1.15; margin:25px 0 12px; overflow-wrap:anywhere; }
.retailer-card-name>span { flex-shrink:0; }
.retailer-description { color:var(--muted); font-size:.7rem; line-height:1.6; }
.retailer-domain { margin-top:auto; padding-top:20px; color:var(--muted); font-size:.65rem; }
.retailer-source .retailer-badge { color:var(--violet); }
.retailer-card.retailer-best { box-shadow:inset 0 0 0 2px var(--text); }
.retailer-best .retailer-badge { background:var(--text); color:var(--bg); padding:4px 6px; font-weight:700; }
.retailer-best-total { margin-top:12px; font-size:.75rem; font-weight:700; }
.retailers-footnote,.retailers-scope { color:var(--muted); font-size:.65rem; line-height:1.8; margin-top:16px; }
.retailers-scope { margin-top:5px; }
.retailer-card:focus-visible,.retailers-region select:focus-visible { outline:2px solid var(--violet); outline-offset:3px; }
@media(max-width:700px){ .retailers-heading{align-items:flex-start;flex-direction:column;gap:22px}.retailers-region{width:100%}.retailers-region select{width:100%;max-width:100%}.retailer-grid{grid-template-columns:1fr 1fr;gap:12px}.retailer-card{padding:16px;min-height:185px}.retailer-card-name{font-size:1.2rem;gap:8px} }
@media(max-width:380px){ .retailer-grid{grid-template-columns:1fr} }
.retailer-card-top { min-height:24px; }

/* ---------- Collection v2 extras: tools, controls, notes, templates, poster ----------
 * SKIN CHECKLIST — everything below is an ENGINE DEFAULT (generic rounded chips, soft
 * accent tints). Any site with SITE.collection must RE-SKIN each group in its own
 * sites/<id>/theme.css, or new build/bag UI lands here looking off-theme. Groups:
 *   · templates   .collection-templates .ct-head .ct-sub .tpl-card .tpl-name/.tpl-note/.tpl-meta .tpl-use
 *   · tools        .detail-tools .c-tool .c-budget/.cb-* .c-power/.cp-* .c-watch/.c-watch-*
 *   · view/group   .detail-viewbar .c-group-toggle .collection-group .cg-head
 *   · controls     .module-controls .m-ctl .m-cover .m-remove .module-cover-badge
 *   · notes        .module-note .mn-text .mn-edit .mn-form .mn-actions
 *   · covers       .lc-covers/.lc-cover panel colour (the photo + empty-glyph treatment is shared, above)
 * Skinned for parts (hardware journal) and makeup (clean-beauty). Add a block when you add UI.
 */
.detail-tools { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px; margin:22px 0; }
.c-tool { border:1px solid var(--border-strong); border-radius:var(--radius); padding:16px; background:var(--surface); display:flex; flex-direction:column; gap:8px; }
.c-tool-label { font:600 .62rem var(--mono); letter-spacing:.08em; text-transform:uppercase; color:var(--muted); }
.c-budget { gap:10px; }
.cb-form { display:flex; align-items:stretch; border:1px solid var(--border-strong); border-radius:var(--radius); overflow:hidden; }
.cb-cur { display:grid; place-items:center; padding:0 11px; background:var(--bg); color:var(--muted); font:600 .72rem var(--mono); border-right:1px solid var(--border); }
.cb-input { flex:1; min-width:0; width:100%; appearance:textfield; font:inherit; border:0; background:var(--bg); color:var(--text); padding:10px 11px; text-align:right; }
.cb-input::-webkit-outer-spin-button,.cb-input::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
.cb-set { border:0; border-left:1px solid var(--border); background:var(--surface); color:var(--text); padding:0 16px; font:600 .75rem var(--sans); cursor:pointer; white-space:nowrap; }
.cb-set:hover { background:var(--violet); color:var(--bg); }
.cb-clear { border:0; background:none; color:var(--muted); font:600 .7rem var(--sans); text-decoration:underline; cursor:pointer; padding:0; }
.cb-clear:hover { color:var(--text); }
.c-budget .cb-bar { margin-top:2px; }
.cb-bar { height:8px; border-radius:6px; background:color-mix(in srgb,var(--text) 10%,transparent); overflow:hidden; }
.cb-bar>span { display:block; height:100%; background:var(--violet); transition:width .25s ease; }
.c-budget.over .cb-bar>span { background:#c0392b; }
.cb-status,.cb-hint,.cp-note { font-size:.72rem; color:var(--muted); line-height:1.5; }
.cb-status strong { color:var(--text); }
.c-power .cp-main { display:flex; align-items:baseline; gap:10px; }
.c-power .cp-num { font:700 1.6rem var(--sans); letter-spacing:-.02em; color:var(--text); }
.c-watch p { font-size:.74rem; line-height:1.5; margin:0; }
.c-watch.has-drop { border-color:var(--violet); }
.c-watch.has-drop strong { color:var(--violet); }
.c-watch-actions { display:flex; gap:8px; flex-wrap:wrap; }
.c-watch-on,.c-watch-off,.c-watch-actions button { font:600 .7rem var(--sans); border:1px solid var(--border-strong); background:var(--bg); color:var(--text); border-radius:var(--radius); padding:6px 10px; cursor:pointer; align-self:flex-start; }
.detail-viewbar { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin:4px 0 14px; }
.c-group-toggle { font:600 .72rem var(--sans); border:1px solid var(--border-strong); background:var(--surface); color:var(--text); border-radius:var(--radius); padding:8px 14px; cursor:pointer; }
.c-group-toggle[aria-pressed="true"] { background:var(--violet); color:var(--bg); border-color:var(--violet); }
.dv-hint { font-size:.68rem; color:var(--muted); }
.collection-group { margin:0 0 26px; }
.cg-head { display:flex; align-items:baseline; gap:8px; font:600 .95rem var(--sans); margin:0 0 12px; padding-bottom:6px; border-bottom:1px solid var(--border); }
.cg-head span { font:600 .62rem var(--mono); color:var(--muted); }
.module { position:relative; }
.module-controls { position:absolute; top:8px; right:8px; z-index:3; display:flex; gap:4px; opacity:0; transition:opacity .15s ease; }
.module:hover .module-controls,.module:focus-within .module-controls { opacity:1; }
.m-ctl { width:26px; height:26px; display:grid; place-items:center; font-size:14px; line-height:1; border:1px solid var(--border-strong); border-radius:50%; background:var(--bg); color:var(--text); cursor:pointer; padding:0; }
.m-ctl:hover { background:var(--surface); }
.m-ctl:disabled { opacity:.3; cursor:default; }
.m-cover.on { background:var(--violet); color:var(--bg); border-color:var(--violet); }
.m-remove:hover { background:#c0392b; color:#fff; border-color:#c0392b; }
.module-cover-badge { position:absolute; top:10px; left:10px; z-index:3; font:600 .55rem var(--mono); letter-spacing:.08em; text-transform:uppercase; background:var(--violet); color:var(--bg); padding:3px 7px; border-radius:3px; }
.module.reorderable { cursor:grab; }
.module.dragging { opacity:.45; outline:2px dashed var(--violet); }
.module-note { border-top:1px solid var(--border); padding:10px 14px; display:flex; flex-direction:column; gap:6px; align-items:flex-start; }
.module-note .mn-text { font-size:.76rem; line-height:1.5; color:var(--text); margin:0; font-style:italic; }
.mn-edit { font:600 .68rem var(--sans); color:var(--muted); background:none; border:0; padding:0; cursor:pointer; text-decoration:underline; }
.mn-edit:hover { color:var(--text); }
.mn-form { width:100%; display:flex; flex-direction:column; gap:6px; }
.mn-form textarea { width:100%; font:inherit; font-size:.78rem; border:1px solid var(--border-strong); border-radius:var(--radius); background:var(--bg); color:var(--text); padding:8px; resize:vertical; }
.mn-actions { display:flex; gap:8px; }
.mn-actions button,.mn-cancel { font:600 .7rem var(--sans); border:1px solid var(--border-strong); background:var(--bg); color:var(--text); border-radius:var(--radius); padding:5px 12px; cursor:pointer; }
.detail-from { font-size:.72rem; color:var(--muted); }
.collection-templates { margin:40px 0 20px; }
.ct-head { font:600 1.1rem var(--sans); margin:0 0 4px; }
.ct-sub { color:var(--muted); font-size:.8rem; margin:0 0 18px; }
.tpl-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:16px; }
.tpl-card { border:1px solid var(--border-strong); border-radius:var(--radius); padding:16px; background:var(--surface); display:flex; flex-direction:column; gap:8px; }
.tpl-card .lc-covers { height:140px; }
.tpl-name { font:600 1rem var(--sans); }
.tpl-note { font-size:.74rem; color:var(--muted); line-height:1.5; }
.tpl-meta { font:600 .62rem var(--mono); color:var(--muted); letter-spacing:.06em; text-transform:uppercase; }
.tpl-use { margin-top:auto; font:600 .78rem var(--sans); border:1px solid var(--border-strong); background:var(--bg); color:var(--text); border-radius:var(--radius); padding:9px 12px; cursor:pointer; }
.tpl-use:hover { background:var(--violet); color:var(--bg); border-color:var(--violet); }
.c-poster { font:600 .78rem var(--sans); border:1px solid var(--border-strong); background:var(--surface); color:var(--text); border-radius:var(--radius); padding:9px 16px; cursor:pointer; }
.c-poster:hover { background:var(--bg); }
.detail-tools :focus-visible,.module-controls :focus-visible,.collection-templates :focus-visible { outline:2px solid var(--violet); outline-offset:2px; }
.cb-form :focus-visible { outline-offset:-2px; }
@media(max-width:560px){ .detail-tools{grid-template-columns:1fr} .module-controls{opacity:1} }


/* Part Guide: 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;
  --brand-red-rgb: 189, 59, 28; --brand-red: rgb(var(--brand-red-rgb));
  --brand-red-hover: #a63518;
  --violet: var(--brand-red); --pink: var(--brand-red); --blue: var(--brand-red);
  --up: #39724d; --down: #ad4934; --grad: linear-gradient(90deg, var(--brand-red), var(--brand-red));
  --radius: 3px;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --violet-rgb: var(--brand-red-rgb); --pink-rgb: var(--brand-red-rgb);
  --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: var(--brand-red-hover); --on-pink: var(--brand-red-hover);
  --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-block; color: var(--black); font-family: var(--sans); font-size: 28px; font-weight: 800; letter-spacing: -.025em; white-space: nowrap; }
.logo.logo-image { display:inline-flex; align-items:center; }
.logo-image img { display:block; width:clamp(126px,13vw,166px); height:auto; }
.logo > span, .footer-brand > a > span { color: var(--brand-red); 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; color: var(--brand-red); border-color: currentColor; }
.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(--brand-red); text-decoration: none; font-size: 11px; font-weight: 500; border: 1px solid var(--brand-red); }
.primary-action span { font-size: 18px; }
.primary-action:hover { background: var(--brand-red-hover); border-color: var(--brand-red-hover); }
.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(--brand-red); border-color: var(--brand-red); }
.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: 800; letter-spacing: -.025em; color: var(--black); text-decoration: none; }
.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); }

/* Photography stays legible throughout the chart, including narrow screens. */
.part.has-thumb, .part.top.has-thumb { grid-template-columns: 24px 100px minmax(0, 1fr); }
.part.has-thumb .rank-col { grid-column: 1; grid-row: 1 / span 2; }
.part.has-thumb > .thumb, .part.has-thumb .thumb-link { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.part.has-thumb .part-main, .part.has-thumb .part-side,
.part:not(.top).has-thumb .part-side { grid-column: 3; grid-row: auto; min-width: 0; justify-content: start; justify-items: start; }
.part.has-thumb .thumb, .part:not(.top).has-thumb .thumb { width: 100px; height: 112px; padding: 5px; }
.part.top.has-thumb { grid-template-columns: 24px 136px minmax(0, 1fr); }
.part.top .thumb { width: 136px; height: 152px; padding: 7px; }
.part-name { overflow-wrap: anywhere; }
@media (min-width: 701px) and (max-width: 1050px) { .grid { grid-template-columns: 1fr; } }
@media (max-width: 380px) {
  .part.has-thumb, .part.top.has-thumb { column-gap: 8px; grid-template-columns: 18px 100px minmax(0, 1fr); }
  .part.top .thumb { width: 100px; height: 124px; }
  .part.top .part-name { font-size: 20px; }
}

/* Builds belong to the hardware journal: reuse the feature panel, not a new card system. */
.app-page { max-width:1336px; padding:48px 28px 90px; }
.collection-head { padding:10px 0 28px; border-bottom:1px solid var(--border-strong); }
.collection-eyebrow,.detail-kicker,.c-share-kicker { font:9px/1.7 var(--mono); letter-spacing:.06em; color:var(--muted); text-transform:uppercase; }
.collection-head h1 { margin:20px 0 16px; font:600 clamp(44px,6vw,80px)/1 var(--sans); letter-spacing:-.065em; }
.collection-lede { max-width:480px; font-size:12px; line-height:1.9; }
.c-back { font:10px var(--mono); text-decoration:none; margin-bottom:32px; }
.detail-name { display:block; padding:0; margin:14px 0; border:0; border-bottom:1px solid transparent; background:transparent; border-radius:0; font:600 clamp(38px,5.6vw,76px)/1.1 var(--sans); letter-spacing:-.06em; }
.detail-name:hover { border-bottom-color:var(--border); }
.detail-sub { font:10px var(--mono); margin:0 0 34px; }
.c-summary { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:14px 30px; border-top:1px solid var(--border-strong); border-bottom:1px solid var(--border-strong); padding:20px 0; margin-bottom:34px; }
.c-region { display:flex; align-items:center; gap:14px; margin:0; font:9px var(--mono); text-transform:uppercase; }
.c-region-sel { font:10px var(--mono); padding:8px 24px 8px 8px; background:transparent; border:0; border-bottom:1px solid var(--border-strong); border-radius:0; }
.c-total { border:0; margin:0; padding:0; gap:20px; }
.c-total>span { font:9px var(--mono); text-transform:uppercase; color:var(--muted); }
.c-total strong { font:500 clamp(26px,3vw,38px)/1 var(--mono); letter-spacing:-.05em; }
.c-counts { grid-column:1/-1; margin:0; font:9px/1.8 var(--mono); max-width:650px; }
.collection-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px; }
.module.hardware-feature { border:0; border-radius:0; background:#e4e5df; }
.module .feature-image-stage { height:345px; }
.module .feature-image-stage>.thumb { width:90%; height:88%; z-index:1; display:flex; align-items:center; justify-content:center; background:none; border:0; }
.module .feature-image-stage img { width:100%; height:100%; max-height:310px; object-fit:contain; mix-blend-mode:multiply; }
.module .feature-ghost { font-size:clamp(42px,5.5vw,78px); }
.module .feature-bottom { flex:1; margin-top:0; }
.module .feature-bottom h3 { font:500 22px/1.25 var(--sans); letter-spacing:-.04em; margin:4px 0 8px; }
.module .feature-topline { padding-right:64px; }
.module-remove { width:25px; height:25px; top:15px; right:18px; border:1px solid #bfc3b6; border-radius:0; background:transparent; font:16px var(--mono); color:var(--muted); }
.module-remove:hover { background:var(--text); color:var(--bg); border-color:var(--text); }
.c-share { display:flex; align-items:center; justify-content:space-between; gap:32px; margin-top:40px; padding:28px 0; background:none; border:0; border-top:1px solid var(--border-strong); border-bottom:1px solid var(--border-strong); border-radius:0; }
.c-share h2 { font:500 32px/1.1 var(--sans); letter-spacing:-.045em; margin:8px 0; }
.c-share-note { font:10px/1.7 var(--sans); max-width:390px; margin:0; }
.c-share-actions { flex:0 0 auto; display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
.c-share-actions .c-link-details { flex:1 0 100%; }
.c-poster { border-radius:0; padding:14px 18px; font:500 11px var(--sans); border-color:var(--border-strong); }
.c-poster:hover { background:var(--surface-hover); }
.c-copy,.new-list-form button { display:inline-flex; align-items:center; justify-content:space-between; gap:36px; padding:14px 18px; background:var(--text); color:var(--bg); border:1px solid var(--text); border-radius:0; font:500 11px var(--sans); }
.c-copy:hover { opacity:1; background:var(--violet); border-color:var(--violet); }
.c-link-details { margin-top:12px; font:9px var(--mono); text-align:right; }
.c-link-details summary { color:var(--muted); cursor:pointer; }
.c-link-details .c-share-url { width:260px; margin-top:10px; font:10px var(--mono); }
.collection-new { max-width:560px; margin:32px 0 40px; }
.new-list-form input { padding:12px 0; border:0; border-bottom:1px solid var(--border-strong); border-radius:0; background:transparent; font:13px var(--sans); }
.list-cards { grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px; }
.list-card { background:none; border:0; border-radius:0; }
.list-card-main { padding:0; }
/* Match the index spotlight photo: same 3:2 frame, panel colour and inset, so a
   build cover reads like a product tile on the front page (not a wide letterbox). */
.lc-covers { background:#e7e8e1; padding:26px; height:auto; aspect-ratio:3 / 2; margin-bottom:12px; }
.lc-cover { background:none; }
.lc-cover .thumb { padding:0; border:0; background:transparent; }
.lc-cover img { mix-blend-mode:multiply; }
.lc-name { font:500 23px/1.15 var(--sans); letter-spacing:-.04em; }
.lc-meta { font:9px var(--mono); }
.lc-actions { padding:16px 0; margin-top:16px; border-top:1px solid var(--border); gap:22px; }
.lc-btn,.c-danger { padding:0; border:0; border-radius:0; background:none; font:10px var(--mono); text-decoration:underline; text-underline-offset:5px; }
.c-danger { color:var(--muted); }
.add-picker { border-radius:0; border-color:var(--border-strong); padding:23px; background:var(--surface); box-shadow:0 12px 30px color-mix(in srgb,var(--text) 9%,transparent); }
.add-picker-head { font:9px var(--mono); text-transform:uppercase; letter-spacing:.06em; color:var(--muted); margin-bottom:8px; }
.add-picker-product { font:500 20px/1.2 var(--sans); letter-spacing:-.035em; margin-bottom:20px; }
.add-picker-row { border:0; border-bottom:1px solid var(--border); padding:12px 0; background:none; border-radius:0; font-size:12px; }
.add-picker-new input { border:0; border-bottom:1px solid var(--border-strong); border-radius:0; padding:10px 0; font-size:11px; background:none; }
.add-picker-new button { border-radius:0; background:var(--text); color:var(--bg); border:0; width:36px; }
.collection-tray { border-radius:0; box-shadow:none; padding:13px 16px; gap:20px; font:10px var(--mono); border:1px solid var(--text); }
.collection-tray .tray-count { background:none; color:var(--bg); border-left:1px solid var(--muted); border-radius:0; padding-left:15px; font:10px var(--mono); }
@media(max-width:720px){ .app-page{padding:30px 20px 60px}.collection-grid,.list-cards{grid-template-columns:1fr}.c-summary{grid-template-columns:1fr}.c-total{justify-content:space-between}.c-share{align-items:flex-start;flex-direction:column;gap:20px}.c-share h2{font-size:28px}.module .feature-image-stage{height:285px}.module .feature-ghost{font-size:50px}.new-list-form button{width:auto}.list-cards{gap:32px} }

/* Retailer photos often have white canvases. Blend the canvas into the same
   neutral stock as hardwareFeature, and never upscale a small source image. */
.module.hardware-feature .feature-image-stage { background:#e4e5df; isolation:isolate; height:300px; }
.module.hardware-feature .feature-image-stage>.thumb { background:transparent; padding:0; }
.module.hardware-feature .feature-image-stage img { width:auto; height:auto; max-width:76%; max-height:240px; object-fit:contain; mix-blend-mode:multiply; }
.module.hardware-feature .feature-ghost { color:#d0d2c8; opacity:.6; }
.part .thumb img,.spot-photo img,.lc-cover img { mix-blend-mode:multiply; }
.module.hardware-feature .thumb-unavailable { color:var(--muted); }
.module.hardware-feature .thumb-unavailable .icon { width:48px; height:48px; opacity:.5; }
.module.hardware-feature .thumb-unavailable .photo-status { display:block; font:9px var(--mono); letter-spacing:.04em; }
@media(max-width:720px){ .module.hardware-feature .feature-image-stage{height:270px}.module.hardware-feature .feature-image-stage img{max-height:210px} }
.shared-hero { display:flex; justify-content:space-between; align-items:flex-end; gap:30px; padding:12px 0 34px; margin-bottom:32px; border-bottom:1px solid var(--border-strong); }
.shared-hero h1 { max-width:900px; font:600 clamp(46px,6.5vw,88px)/1.03 var(--sans); letter-spacing:-.065em; margin:18px 0 20px; overflow-wrap:anywhere; }
.shared-description { font:11px var(--mono); color:var(--muted); }
.shared-credit { display:inline-block; margin-top:20px; font:9px var(--mono); color:var(--muted); text-decoration:none; }
.shared-hero .c-save { display:flex; align-items:center; gap:28px; white-space:nowrap; padding:15px 18px; border:1px solid var(--text); border-radius:0; background:var(--text); color:var(--bg); font:500 11px var(--sans); }
.collection-invite { margin-top:65px; padding:38px 0; border-top:1px solid var(--border-strong); }
.collection-invite h2 { font:500 38px/1.1 var(--sans); letter-spacing:-.05em; margin:12px 0; }
.collection-invite p:not(.collection-eyebrow) { font:12px/1.8 var(--sans); max-width:400px; color:var(--muted); }
.collection-invite>a { display:inline-flex; justify-content:space-between; gap:40px; margin-top:24px; padding:14px 18px; font:11px var(--sans); background:var(--text); color:var(--bg); text-decoration:none; }
@media(max-width:720px){ .shared-hero{align-items:flex-start;flex-direction:column;gap:24px}.shared-hero h1{font-size:48px}.collection-invite h2{font-size:32px} }
.module.hardware-feature .feature-ghost-long { font-size:clamp(30px,4vw,58px); }
@media(max-width:720px){ .module.hardware-feature .feature-ghost-long{font-size:34px} }

/* The positioned thumbnail is its own compositing group. Blend that group
   against the panel; blending only its child image cannot reach the panel. */
.module.hardware-feature .feature-image-stage>.thumb { mix-blend-mode:multiply; isolation:auto; }
.module.hardware-feature .feature-image-stage>.thumb img { mix-blend-mode:normal; }

/* A single image rhythm for every item in the meta build. */
.meta-strip { align-items:stretch; }
.meta-save { align-items:stretch; }
.meta-save>.meta-item { align-self:stretch; width:100%; padding:16px; }
.meta-save[data-save-item]>.add { top:24px; right:24px; }
.meta-save>.meta-item>.thumb,.meta-save>.meta-item>.icon { width:100%; height:110px; min-height:0; aspect-ratio:auto; flex:none; margin:0; padding:10px; display:flex; align-items:center; justify-content:center; overflow:hidden; }
/* Preserve natural product proportions within the padded photo panel. */
.meta-save>.meta-item>.thumb img { display:block; width:auto; height:auto; max-width:100%; max-height:100%; padding:0; object-fit:contain; }
.meta-save>.meta-item>div { flex:1; }
.meta-save .meta-price { margin-top:auto; }

/* Paired shortlists share header, rank and footer tracks, including long names. */
@supports(grid-template-rows:subgrid){
  @media(min-width:1051px){
    #grid.grid { row-gap:0; }
    #grid>.card { display:grid; grid-row:span 8; grid-template-rows:subgrid; row-gap:0; padding-bottom:28px; }
    #grid>.card>.card-head { grid-row:1; align-self:stretch; }
    #grid>.card>.part { align-self:stretch; }
    #grid>.card>.card-foot { grid-row:7; align-self:start; }
    #grid>.card>.quip { grid-row:8; align-self:start; }
  }
}
@supports(grid-template-rows:subgrid){ @media(min-width:1051px){
  #grid>.card>.part>.part-main { align-self:start; }
  #grid>.card>.part>.part-side { align-self:end; }
} }
/* Keep aligned meta cards at their original compact photo height. */
.meta-save>.meta-item>.thumb,.meta-save>.meta-item>.icon { height:110px; aspect-ratio:auto; }
@media(max-width:700px){ .meta-save>.meta-item>.thumb,.meta-save>.meta-item>.icon{height:100px} }

/* Hardware retailer index — the same paper, rules and type as the shortlist. */
.retailers-section { padding-top:40px; margin:55px 0 65px; }
.retailers-eyebrow,.retailers-region,.retailer-card-top,.retailer-domain,.retailers-footnote { font-family:var(--mono); }
.retailers-eyebrow { font-size:9px; letter-spacing:.04em; }
.retailers-heading h2 { font:500 clamp(32px,3.5vw,46px)/1.1 var(--sans); letter-spacing:-.055em; }
.retailers-lede { font-size:11px; }
.retailers-region { font-size:9px; }
.retailer-grid { gap:1px; background:var(--border-strong); border:1px solid var(--border-strong); }
.retailer-card { background:#e4e5df; border:0; padding:23px; min-height:205px; }
.retailer-card:hover { background:var(--surface-hover); }
.retailer-card-top { font-size:8px; letter-spacing:.02em; }
.retailer-card-name { font:500 25px/1.15 var(--sans); letter-spacing:-.04em; }
.retailer-card-name>span { color:#000; }
.retailer-description { font-size:10px; }
.retailer-domain { font-size:9px; }
.retailers-footnote { font-size:8px; }
@media(max-width:700px){ .retailer-card{padding:17px}.retailer-card-name{font-size:21px} }

/* ============================================================
   Build page — the journal pass.
   The upgraded builds features (starter templates, the budget /
   power / price-watch tools, reorder controls and notes) shipped
   on the engine defaults: rounded cards, soft accent fills, pill
   buttons. Re-skin every one of them to the hardware journal —
   flat panels, hairline rules, mono labels, square ink — so the
   whole page reads as one edition.
   ============================================================ */

/* Empty covers: a quiet monochrome glyph on the stock panel, never the accent-tinted chip. */
.lc-cover .icon { width:auto; height:auto; background:none; border:0; border-radius:0; color:#9aa08f; }
.lc-cover .icon svg { width:48px; height:48px; opacity:1; }

/* Starter builds read as the same family as your saved builds. */
.collection-templates { margin:48px 0 10px; }
.ct-head { font:500 clamp(28px,3.1vw,38px)/1.05 var(--sans); letter-spacing:-.05em; margin:0 0 12px; }
.ct-sub { font:10px/1.7 var(--mono); color:var(--muted); letter-spacing:.02em; margin:0 0 30px; }
.tpl-cards { grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px; }
.tpl-card { background:none; border:0; border-radius:0; padding:0; gap:0; }
.tpl-card .lc-covers { height:auto; }
.tpl-name { font:500 23px/1.15 var(--sans); letter-spacing:-.04em; margin-top:2px; }
.tpl-note { font:10px/1.7 var(--mono); color:var(--muted); margin:7px 0 0; }
.tpl-meta { font:9px var(--mono); color:var(--muted); letter-spacing:.04em; margin-top:11px; }
.tpl-use { margin-top:18px; display:inline-flex; align-items:center; justify-content:space-between; gap:24px; width:100%; padding:13px 16px; border:1px solid var(--text); border-radius:0; background:var(--text); color:var(--bg); font:500 11px var(--sans); }
.tpl-use::after { content:"\2197"; font:400 16px var(--mono); }
.tpl-use:hover { background:var(--violet); border-color:var(--violet); color:var(--bg); }

/* Detail utilities: a boxed row of hairline-separated spec panels. */
.detail-tools { grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:1px; margin:30px 0; background:var(--border-strong); border:1px solid var(--border-strong); }
.c-tool { background:var(--surface); border:0; border-radius:0; padding:19px 20px; gap:11px; }
.c-tool-label { font:9px var(--mono); letter-spacing:.06em; text-transform:uppercase; color:var(--muted); }
.cb-form { border:1px solid var(--border-strong); border-radius:0; background:var(--bg); }
.cb-cur { background:transparent; border-right:1px solid var(--border-strong); font:10px var(--mono); }
.cb-input { background:transparent; font:12px var(--mono); }
.cb-set { border-left:1px solid var(--text); background:var(--text); color:var(--bg); border-radius:0; font:500 10px var(--sans); letter-spacing:.02em; }
.cb-set:hover { background:var(--violet); }
.cb-bar { height:6px; border-radius:0; background:#cdcfc4; }
.cb-bar>span { background:var(--violet); }
.c-budget.over .cb-bar>span { background:var(--down); }
.cb-status,.cb-hint,.cp-note { font:9px/1.7 var(--mono); }
.cb-clear { font:9px var(--mono); text-transform:uppercase; letter-spacing:.03em; }
.c-power .cp-num { font:500 30px/1 var(--mono); letter-spacing:-.03em; color:var(--text); }
.c-watch p { font:10px/1.7 var(--mono); }
.c-watch.has-drop { box-shadow:inset 2px 0 0 var(--violet); }
.c-watch.has-drop strong { color:var(--violet); }
.c-watch-on,.c-watch-off,.c-watch-actions button { border:1px solid var(--border-strong); border-radius:0; background:var(--bg); color:var(--text); font:9px var(--mono); text-transform:uppercase; letter-spacing:.04em; padding:8px 11px; }
.c-watch-on:hover,.c-watch-off:hover,.c-watch-actions button:hover { background:var(--text); color:var(--bg); border-color:var(--text); }

/* View bar + grouping: the chip language from the rankings toolbar. */
.detail-viewbar { gap:16px; margin:8px 0 22px; }
.c-group-toggle { border:1px solid var(--border-strong); border-radius:0; background:transparent; color:var(--text); font:9px var(--mono); letter-spacing:.05em; text-transform:uppercase; padding:9px 13px; }
.c-group-toggle[aria-pressed="true"] { background:var(--text); color:var(--bg); border-color:var(--text); }
.dv-hint { font:9px var(--mono); color:var(--muted); }
.collection-group { margin:0 0 32px; }
.cg-head { font:500 19px/1.2 var(--sans); letter-spacing:-.035em; border-bottom:1px solid var(--border-strong); padding-bottom:11px; }
.cg-head span { font:9px var(--mono); color:var(--muted); }

/* In-card controls: square ink, not pills; opaque so they read over the topline. */
.module-controls { top:13px; right:16px; gap:5px; }
.m-ctl { width:27px; height:27px; border:1px solid var(--border-strong); border-radius:0; background:var(--surface); color:var(--text); font:13px var(--mono); }
.m-ctl:hover:not(:disabled) { background:var(--surface-hover); }
.m-cover.on { background:var(--violet); color:var(--bg); border-color:var(--violet); }
.m-remove:hover { background:var(--text); color:var(--bg); border-color:var(--text); }
.module-cover-badge { top:58px; left:23px; border-radius:0; background:var(--text); color:var(--bg); font:8px var(--mono); letter-spacing:.06em; padding:3px 7px; }
.module.dragging { outline:1px dashed var(--violet); outline-offset:-1px; }

/* Notes: set in the journal's own hand. */
.module-note { border-top:1px solid #bfc3b6; padding:14px 23px; }
.module-note .mn-text { font:11px/1.6 var(--sans); font-style:normal; color:var(--text); }
.mn-edit { font:9px var(--mono); letter-spacing:.03em; text-decoration:underline; text-underline-offset:4px; }
.mn-form textarea { border:1px solid var(--border-strong); border-radius:0; background:var(--bg); font:11px/1.6 var(--sans); }
.mn-actions button,.mn-cancel { border:1px solid var(--border-strong); border-radius:0; background:var(--bg); color:var(--text); font:9px var(--mono); text-transform:uppercase; letter-spacing:.04em; padding:7px 12px; }
.mn-actions button[type="submit"] { background:var(--text); color:var(--bg); border-color:var(--text); }

/* Storage-blocked note: a hairline strip, not a tinted lozenge. */
.c-degraded { border-radius:0; background:#e4e5df; border:0; border-left:2px solid var(--violet); font:10px/1.6 var(--mono); color:var(--muted); padding:13px 16px; }

/* "Where to get it" closes the build page as its own ruled section. */
.app-page .retailers-section { border-top:1px solid var(--border-strong); margin:64px 0 0; padding-top:46px; }

/* Name-a-build sits to the right of the title, both above the header rule. */
.collection-index-head { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,420px); column-gap:40px; align-items:center; padding:10px 0 22px; border-bottom:1px solid var(--border-strong); margin-bottom:34px; }
.collection-index-head .collection-head { padding:0; margin:0; border:0; }
.collection-index-head .collection-new { margin:0; }
@media(max-width:720px){
  .collection-index-head { display:block; }
  .collection-index-head .collection-new { margin:18px 0 0; }
}

@media(max-width:720px){
  .tpl-cards { grid-template-columns:1fr; gap:34px; }
  .collection-templates { margin-top:44px; }
  .detail-tools { grid-template-columns:1fr; }
}
