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

html { scroll-behavior: smooth; }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* Makeup skin: warm, minimal, editorial clean-beauty (Merit / Nude by Nature direction).
   Bone/ivory ground, espresso text, clay→rose accent, Fraunces serif headlines.
   Defines the same design-token contract engine/styles.base.css consumes — swap the values,
   keep the keys. */
:root {
  --bg: #f6f1ea;
  --surface: #fffdf9;
  --surface-hover: #f1e9dd;
  --border: rgba(43, 31, 36, 0.10);
  --border-strong: rgba(43, 31, 36, 0.20);
  --text: #2b1f24;
  --muted: #6f6158;
  --faint: #9c8d80;
  --violet: #b25f4a; /* primary accent: clay/terracotta */
  --pink: #cf8a7a;   /* secondary accent: soft rose */
  --blue: #b25f4a;
  --up: #7a9b74;     /* riser: muted sage */
  --down: #a8766e;   /* faller: muted rose-brown */
  --grad: linear-gradient(90deg, var(--violet), var(--pink));
  --radius: 12px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Inter", ui-sans-serif, system-ui, sans-serif;

  /* RGB triplets, so component tints can be rgba(var(--x-rgb), a) and follow the theme.
     On a light ground the "white" overlay reads as a subtle espresso tint, and "bg"/"black"
     carry the translucent-surface and soft-shadow colours. */
  --violet-rgb: 178, 95, 74;
  --pink-rgb: 207, 138, 122;
  --up-rgb: 122, 155, 116;
  --down-rgb: 168, 118, 110;
  --white-rgb: 43, 31, 36;
  --bg-rgb: 246, 241, 234;
  --black-rgb: 43, 31, 36;
  /* One-off accents used on coloured backgrounds */
  --on-up: #2d3a29;
  --on-up-dim: #4a5a44;
  --on-violet: #9c4f3c;
  --on-pink: #a85a48;
  --surface-high: #ffffff;
  --meta-total-muted: #b8a99d;
  --white: #fff;
  --black: #2b1f24;
  --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='%236f6158' stroke-width='1.5'/%3E%3C/svg%3E");
}

/* Decorative hero wash — soft, warm, no tech grid (editorial stays clean). */
body {
  background-image:
    radial-gradient(ellipse 55% 40% at 12% -8%, rgba(var(--violet-rgb), 0.12), transparent 70%),
    radial-gradient(ellipse 45% 32% at 88% -2%, rgba(var(--pink-rgb), 0.10), transparent 70%);
  background-repeat: no-repeat;
}

/* Serif display for headlines + the wordmark, the signature of the editorial look. */
.logo,
h1, h2,
.spot-name,
.part.top .part-name,
.answer h1, .answer h2,
.post h1, .post-list h1, .post-list h2,
.meta-total strong {
  font-family: var(--serif);
  font-weight: 600;
}
h1, .answer h1, .post h1 { letter-spacing: -0.01em; }
.logo { letter-spacing: 0; }
.grad { font-family: var(--serif); }

/* Makeup gets its own editorial page rhythm, independent of the Parts dashboard. */
:root {
  --bg: #fcfaf6; --surface: #fffdfa; --surface-hover: #f2ece6;
  --text: #332c29; --muted: #756b64; --faint: #8d7c70;
  --border: #e7dfd5; --border-strong: #cfc0b3;
  --violet: #8a3e31; --pink: #a65a4d; --on-pink: #874236;
  --serif: "Cormorant Garamond", Georgia, serif;
  --radius: 0;
}
body { background-image: none; }
a { text-underline-offset: 5px; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 99; padding: 12px; background: var(--text); color: var(--bg); }
.skip-link:focus { top: 16px; }
.edition-note { padding: 9px 20px; background: #ede5da; text-align: center; font-size: 9px; letter-spacing: .14em; }
.topbar { position: relative; background: var(--bg); backdrop-filter: none; padding: 24px max(28px, calc((100% - 1280px) / 2)); gap: 32px; }
.logo { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0; width: 198px; font: 500 31px/1 var(--serif); letter-spacing: -.06em; }
.logo span { color: inherit; font-style: italic; }
.logo i { display: block; width: 100%; margin-top: 7px; font: 9px var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.nav { justify-content: center; gap: 20px; margin: 0 auto; }
.nav a { border-radius: 0; padding: 6px 0; font-size: 12px; border-bottom: 1px solid transparent; }
.nav a.active, .nav a:hover { background: none; border-color: var(--text); }
.method-link { font-size: 10px; color: var(--muted); text-decoration: none; white-space: nowrap; }
main { max-width: 1336px; padding: 0 28px; }
.hero { display: grid; grid-template-columns: 1fr 1.08fr; align-items: stretch; gap: 7%; padding: 46px 0 38px; margin: 0; }
.hero-copy { padding: 40px 0 30px; align-self: center; }
.edition-label { color: var(--muted); font-size: 9px; font-weight: 500; letter-spacing: .18em; line-height: 1.7; }
.hero .eyebrow { display: block; width: fit-content; margin: 10px 0 30px; padding: 0; border: 0; border-radius: 0; background: none; font-size: 11px; }
.hero h1 { font: 400 clamp(62px, 6.8vw, 100px)/.88 var(--serif); letter-spacing: -.045em; }
.hero h1 .grad { display: inline-block; margin-top: 8px; background: none; color: #874c3e; font-weight: 400; }
.hero .lede { max-width: 360px; margin-top: 28px; font-size: 13px; line-height: 1.9; }
.editorial-cta { display: inline-flex; align-items: center; gap: 42px; padding: 14px 20px; margin-top: 25px; background: var(--text); color: var(--bg); text-decoration: none; font-size: 11px; }
.editorial-cta:hover { background: #804e3d; }
.editorial-cta span { font-size: 18px; }
.hero-footnote { max-width: 300px; margin-top: 21px; font-size: 10px; line-height: 1.6; color: var(--muted); }
.hero-still-life { position: relative; min-height: 530px; overflow: hidden; background: #ecdbcd; isolation: isolate; }
.hero-still-life::before { content: ''; position: absolute; width: 74%; height: 75%; border-radius: 50% 50% 0 0; bottom: 0; left: 14%; background: #e1c0aa; z-index: -1; }
.feature-type { position: absolute; left: 25px; top: 24px; font-size: 9px; letter-spacing: .2em; }
.feature-product { position: absolute; object-fit: contain; mix-blend-mode: multiply; filter: drop-shadow(10px 18px 9px rgba(75, 43, 24, .12)); }
.feature-one { width: 66%; height: 75%; left: -2%; top: 8%; transform: rotate(-12deg); }
.feature-two { width: 56%; height: 65%; right: -1%; top: 24%; transform: rotate(12deg); }
.feature-stamp { position: absolute; right: 24px; top: 50px; font-size: 8px; text-align: center; letter-spacing: .17em; transform: rotate(9deg); line-height: 1.5; border: 1px solid #87624e; border-radius: 50%; width: 94px; height: 94px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.feature-stamp em { font: italic 26px/1 var(--serif); letter-spacing: 0; }
.feature-caption { position: absolute; display: flex; align-items: center; justify-content: space-between; gap: 20px; bottom: 0; width: 100%; background: #f5ede4e8; padding: 20px 24px; color: var(--text); text-decoration: none; font: 400 23px/1.1 var(--serif); }
.feature-caption small { font: 9px/1.8 var(--sans); color: var(--muted); }
.feature-caption b { font: 25px var(--serif); }
.preview-disclosure { display: flex; align-items: center; gap: 20px; font-size: 10px; line-height: 1.7; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 12px 0; color: var(--muted); }
.preview-disclosure > span { flex-shrink: 0; font-size: 8px; letter-spacing: .12em; color: var(--text); }
.discover { padding: 54px 0 65px; }
.editorial-section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 26px; }
.editorial-section-head h2, .section-head h2 { font: 400 clamp(32px, 3.5vw, 46px)/1.1 var(--serif); letter-spacing: -.025em; margin-top: 8px; }
.editorial-section-head > a { color: var(--text); font-size: 10px; text-decoration: none; border-bottom: 1px solid var(--border-strong); padding-bottom: 4px; }
.editorial-section-head > p { color: var(--muted); font-size: 11px; line-height: 1.8; }
.spotlight { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); margin: 0; gap: 22px; }
.spot { min-width: 0; min-height: 0; display: flex; padding: 0 0 13px; border: 0; background: none; border-radius: 0; overflow: visible; text-decoration: none; color: var(--text); transition: none; }
.spot:hover { transform: none; border: 0; background: none; box-shadow: none; }
.spot-photo { display: block; height: 225px; width: 100%; background: #f0ebe4; margin-bottom: 15px; overflow: hidden; }
.spot:nth-child(2n) .spot-photo { background: #efe2dc; }
.spot:nth-child(3n) .spot-photo { background: #e8e8df; }
.spot-photo .thumb { width: 100%; height: 100%; padding: 22px; background: transparent; border: 0; border-radius: 0; display: block; }
.spot-photo img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: none; }
.spot:hover .spot-photo img { transform: none; }
.spot::after { content: none; }
.spot:hover .spot-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.spot-label { font-size: 8px; letter-spacing: .14em; color: #85533f; margin-bottom: 8px; }
.spot-brand { font-size: 9px; letter-spacing: .1em; margin-bottom: 3px; }
.spot-name { font: 400 23px/1.08 var(--serif); letter-spacing: -.02em; margin-bottom: 8px; }
.spot-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); font-size: 8px; line-height: 1.6; color: var(--muted); }
.spot-foot b { font-size: 11px; font-weight: 500; }
.spot-foot .sparkline, .spot-foot .delta, .spot-bg { display: none; }
.shortlist-section { padding: 48px 0; border-top: 1px solid var(--border-strong); scroll-margin-top: 25px; }
.browse-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 35px; }
.chips { gap: 13px; }
.chip { border: 0; border-bottom: 1px solid transparent; border-radius: 0; padding: 5px 0; font-size: 10px; background: none; }
.chip.active, .chip:hover { color: var(--text); background: none; border-color: var(--text); }
.controls { flex-shrink: 0; gap: 6px; }
.controls select { border-radius: 0; border: 0; font-size: 9px; padding-left: 6px; max-width: 145px; }
.month-picker { border: 0; background: none; border-radius: 0; }
.step { width: 24px; }
.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px; }
.card { min-width: 0; border: 0; border-radius: 0; padding: 0; background: none; animation: none; overflow: visible; }
.card:hover { border: 0; }
.card-head { padding: 0 0 15px; gap: 8px; border-bottom: 1px solid var(--border-strong); flex-wrap: wrap; }
.card-head > .icon { display: none; }
.card-head h3 { font: 400 33px var(--serif); letter-spacing: -.025em; }
.seg { border: 0; border-radius: 0; background: none; padding: 0; }
.seg button { font-size: 9px; padding: 5px 7px; border-radius: 0; }
.part, .part.has-thumb { grid-template-columns: 24px 62px minmax(0, 1fr); padding: 14px 0; column-gap: 12px; position: relative; }
.part .rank-col { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
.part .rank { font: italic 21px var(--serif); padding: 0; }
.part .delta { font-size: 8px; }
.part .thumb-link { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.part .thumb { display: block; width: 62px; height: 76px; padding: 5px; border: 0; background: #eee8e0; border-radius: 0; }
.part .thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.part .part-main { grid-column: 3; }
.part .part-side { grid-column: 3; display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 5px 10px; margin-top: 6px; }
.part .part-brand { font-size: 8px; letter-spacing: .1em; color: var(--muted); }
.part .part-name { font-size: 12px; line-height: 1.4; font-weight: 400; letter-spacing: 0; margin: 2px 0 4px; }
.part .tag { display: none; }
.part .bar { display: none; }
.part .share { font-size: 9px; color: var(--muted); }
.part .share::after { content: ' estimated share'; font: 8px var(--sans); }
.part .price { font-size: 10px; }
.part .buy { padding: 0; border: 0; border-radius: 0; font-size: 9px; text-decoration: underline; background: none; color: var(--text); }
.part .buy::after { content: ' ↗'; }
.part .offers { font-size: 8px; }
.part .offers ul { z-index: 8; background: var(--surface); }
.part.top, .part.top.has-thumb { grid-template-columns: 24px 150px minmax(0, 1fr); padding: 22px 0; min-height: 224px; }
.part.top .thumb { width: 150px; height: 185px; padding: 16px; }
.part.top .rank { font: italic 30px var(--serif); background: none; color: #8a4d39; }
.part.top .part-name { font: 400 27px/1.05 var(--serif); letter-spacing: -.02em; margin: 7px 0 12px; }
.part.top .buy { background: none; color: var(--text); border: 0; }
.card-foot { padding: 12px 0; border-top: 1px solid var(--border); }
.basis { font-size: 8px; line-height: 1.7; }
.card-more { font-size: 10px; }
.meta-build { border-top: 1px solid var(--border-strong); padding: 40px 0; margin: 0; }
.meta-strip { border: 0; border-radius: 0; background: none; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.meta-item { padding: 15px; display: flex; flex-direction: column; align-items: start; background: #f0ebe4; gap: 12px; border: 0; }
.meta-item .thumb { width: 100%; height: 150px; background: transparent; padding: 10px; border: 0; }
.meta-item .thumb img { object-fit: contain; height: 100%; width: 100%; mix-blend-mode: multiply; }
.meta-item p { font: 400 21px/1.15 var(--serif); }
.meta-item small { font-size: 8px; }
.meta-price { font-size: 11px; }
.meta-total { grid-column: auto; justify-content: center; background: #e8d9cb; color: var(--text); }
.meta-total small { color: var(--muted); }
.meta-total strong { font: 400 36px var(--serif); }
.editorial-note { padding: 52px; margin: 30px 0 65px; display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: center; background: #eae5db; }
.editorial-note > span { font: italic 110px var(--serif); text-align: center; color: #936952; }
.editorial-note h2 { font: 400 43px/1.1 var(--serif); margin: 8px 0 18px; }
.editorial-note div > p:not(.edition-label) { font-size: 12px; line-height: 1.9; max-width: 450px; color: var(--muted); }
.editorial-note a { display: inline-block; font-size: 10px; color: var(--text); margin-top: 18px; }
footer { max-width: none; padding: 45px max(28px, calc((100% - 1280px) / 2)); display: grid; grid-template-columns: 1fr 1.5fr; gap: 25px 70px; border-top: 1px solid var(--border); margin: 0; }
.footer-wordmark { font: 400 39px var(--serif); color: var(--text); text-decoration: none; letter-spacing: -.04em; }
footer div p { font-size: 9px; line-height: 1.8; margin-bottom: 5px; }
.footer-credit { grid-column: 1 / -1; font-size: 9px; color: var(--muted); }
.ads:empty { display: none; }
@media (max-width: 1000px) {
  .method-link { display: none; }
  .topbar { gap: 20px; }
  .hero { gap: 4%; }
  .hero-still-life { min-height: 460px; }
  .hero h1 { font-size: 70px; }
  .browse-toolbar { align-items: start; flex-direction: column; }
  .spotlight { gap: 14px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
  .spot-photo { height: 200px; }
  .grid { gap: 25px; }
  .part.top, .part.top.has-thumb { grid-template-columns: 20px 110px minmax(0, 1fr); }
  .part.top .thumb { width: 110px; height: 165px; }
  .part.top .part-name { font-size: 24px; }
}
@media (max-width: 700px) {
  .edition-note { font-size: 8px; }
  .edition-note span { display: none; }
  .topbar { padding: 20px; justify-content: center; gap: 18px; }
  .logo { width: auto; text-align: center; justify-content: center; font-size: 34px; }
  .nav { order: 3; width: 100%; justify-content: center; gap: 25px; }
  main { padding: 0 20px; }
  .hero { grid-template-columns: 1fr; padding-top: 0; gap: 20px; }
  .hero-copy { padding: 34px 0 5px; }
  .hero .eyebrow { margin-bottom: 21px; }
  .hero h1 { font-size: clamp(65px, 15vw, 95px); }
  .hero .lede { font-size: 12px; margin-top: 20px; max-width: 350px; }
  .hero-still-life { min-height: 440px; }
  .hero-footnote { margin-bottom: 15px; }
  .preview-disclosure { align-items: start; gap: 12px; font-size: 9px; }
  .discover { padding: 38px 0; }
  .editorial-section-head { align-items: start; }
  .editorial-section-head h2 { font-size: 34px; }
  .editorial-section-head > a { max-width: 100px; font-size: 9px; }
  .editorial-section-head > p { display: none; }
  .spotlight { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .spot-photo { height: 205px; }
  .spot-name { font-size: 22px; }
  .spot-foot { font-size: 8px; }
  .grid { grid-template-columns: 1fr; gap: 32px; }
  .part.top, .part.top.has-thumb { grid-template-columns: 24px 145px minmax(0, 1fr); }
  .part.top .thumb { width: 145px; height: 180px; }
  .shortlist-section { padding-top: 35px; }
  .editorial-note { padding: 30px 22px; grid-template-columns: 1fr; gap: 15px; margin-bottom: 40px; }
  .editorial-note > span { font-size: 65px; text-align: left; }
  .editorial-note h2 { font-size: 38px; }
  footer { display: block; padding: 30px 20px; }
  .footer-wordmark { display: block; margin-bottom: 20px; }
  .footer-credit { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 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: 20px; padding-left: 14px; }
.logo { width: 240px; align-items: center; }
.logo .logo-mark { margin-right: 9px; }
@media(max-width:600px) { .logo { width: auto; } }
