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


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

/* Give every ranked product the former lead-image footprint. */
.part, .part.has-thumb { grid-template-columns: 24px 150px minmax(0, 1fr); column-gap: 12px; }
.part .thumb { width: 150px; height: 185px; padding: 8px; }
.part > .thumb { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.part.top, .part.top.has-thumb { grid-template-columns: 24px 180px minmax(0, 1fr); }
.part.top .thumb { width: 180px; height: 222px; padding: 10px; }
.part .part-name { overflow-wrap: anywhere; }
@media (min-width: 701px) and (max-width: 1200px) { .grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) {
  .part, .part.has-thumb, .part.top, .part.top.has-thumb { grid-template-columns: 18px 150px minmax(0, 1fr); column-gap: 8px; }
  .part.top .thumb { width: 150px; height: 205px; }
  .part.top .part-name { font-size: 22px; }
}

/* Bags are a personal beauty edit, using the existing shortlist's still-life cards. */
.app-page { max-width:1160px; padding:48px 28px 90px; }
.collection-head { text-align:center; padding:10px 0 38px; }
.collection-eyebrow,.detail-kicker,.c-share-kicker { font:9px/1.8 var(--sans); color:var(--muted); text-transform:uppercase; letter-spacing:.17em; }
.collection-head h1 { margin:18px 0; font:400 clamp(52px,7vw,86px)/.95 var(--serif); letter-spacing:-.045em; }
.collection-lede { font:12px/1.9 var(--sans); max-width:430px; margin:0 auto; }
.c-back { font:10px var(--sans); margin-bottom:32px; color:var(--muted); text-decoration:none; }
.detail-head { text-align:center; }
.detail-name { border:0; border-bottom:1px solid transparent; border-radius:0; padding:0; margin:16px 0; background:none; text-align:center; font:400 clamp(46px,6.5vw,78px)/1.05 var(--serif); letter-spacing:-.035em; }
.detail-name:hover { border-color:var(--border); }
.detail-sub { font:10px var(--sans); color:var(--muted); margin-bottom:38px; }
.c-summary { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:15px 30px; border-block:1px solid var(--border); padding:22px 0; margin-bottom:36px; }
.c-region { display:flex; align-items:center; gap:10px; margin:0; font:10px var(--sans); }
.c-region-sel { border:0; border-bottom:1px solid var(--border-strong); background:none; border-radius:0; font:11px var(--sans); }
.c-total { border:0; padding:0; margin:0; gap:16px; }
.c-total>span { font:10px var(--sans); color:var(--muted); }
.c-total strong { font:400 38px/1 var(--serif); }
.c-counts { grid-column:1/-1; font:10px/1.7 var(--sans); color:var(--muted); margin:0; }
.collection-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:30px; }
.module.beauty-module { border:0; border-radius:0; background:none; overflow:visible; }
.bag-product { display:flex; flex-direction:column; color:var(--text); text-decoration:none; flex:1; }
.bag-product .spot-photo { position:relative; height:310px; margin-bottom:20px; }
.beauty-module:nth-child(3n+2) .spot-photo { background:#efe2dc; }
.beauty-module:nth-child(3n) .spot-photo { background:#e8e8df; }
.bag-product .spot-photo .thumb { display:flex; align-items:center; justify-content:center; padding:36px; border:0; border-radius:0; }
.bag-product .spot-photo img { width:100%; height:100%; max-height:260px; object-fit:contain; mix-blend-mode:multiply; }
.bag-item-number { position:absolute; bottom:14px; left:16px; font:9px var(--sans); letter-spacing:.12em; color:var(--muted); }
.bag-product .spot-label { text-transform:uppercase; }
.bag-product .spot-brand { font:9px var(--sans); color:var(--muted); letter-spacing:.1em; text-transform:uppercase; }
.bag-product .spot-name { margin:6px 0 18px; font:400 27px/1.05 var(--serif); letter-spacing:-.02em; }
.bag-product .spot-foot { margin-top:auto; font:9px/1.7 var(--sans); }
.module-remove { top:12px; right:12px; width:25px; height:25px; border:0; border-radius:50%; background:var(--bg); color:var(--muted); font:18px var(--sans); }
.c-share { display:flex; align-items:center; justify-content:space-between; gap:30px; margin-top:46px; padding:30px 0; border:0; border-block:1px solid var(--border); border-radius:0; background:none; }
.c-share h2 { font:400 35px/1.05 var(--serif); letter-spacing:-.02em; max-width:350px; margin:10px 0; }
.c-share-note { font:10px/1.8 var(--sans); margin:0; color:var(--muted); }
.c-copy,.new-list-form button { display:inline-flex; justify-content:space-between; gap:26px; border:0; border-radius:0; padding:14px 22px; background:var(--text); color:var(--bg); font:11px var(--sans); }
.c-copy:hover { background:var(--violet); opacity:1; }
.c-link-details { font:10px var(--sans); color:var(--muted); text-align:right; margin-top:14px; }
.c-link-details summary { cursor:pointer; }
.c-link-details .c-share-url { width:250px; font:10px var(--sans); margin-top:8px; }
.collection-new { max-width:530px; margin:0 auto 45px; }
.new-list-form input { padding:12px 0; border:0; border-bottom:1px solid var(--border-strong); border-radius:0; background:none; font:12px var(--sans); }
.list-cards { grid-template-columns:repeat(3,minmax(0,1fr)); gap:30px; }
.list-card { background:none; border:0; border-radius:0; }
.list-card-main { padding:0; }
.lc-covers { background:#f0ebe4; padding:22px; height:210px; margin-bottom:12px; }
.list-card:nth-child(2n) .lc-covers { background:#efe2dc; }
.lc-cover { background:none; }
.lc-cover .thumb { border:0; background:none; padding:0; }.lc-cover img{mix-blend-mode:multiply}
.lc-name { font:400 30px/1.1 var(--serif); }
.lc-meta { font:10px var(--sans); color:var(--muted); }
.lc-actions { border-top:1px solid var(--border); padding:14px 0; margin-top:16px; gap:22px; }
.lc-btn,.c-danger { padding:0; border:0; border-radius:0; background:none; font:10px var(--sans); color:var(--muted); text-decoration:underline; text-underline-offset:5px; }
.add-picker { background:var(--bg); border:1px solid var(--border); border-radius:0; padding:24px; box-shadow:0 12px 30px color-mix(in srgb,var(--text) 8%,transparent); }
.add-picker-head { font:8px var(--sans); text-transform:uppercase; letter-spacing:.15em; margin-bottom:9px; color:var(--muted); }
.add-picker-product { font:400 25px/1.05 var(--serif); letter-spacing:-.02em; margin-bottom:20px; }
.add-picker-row { border:0; border-bottom:1px solid var(--border); border-radius:0; background:none; font:12px var(--sans); padding:12px 0; }
.apr-check { border-radius:50%; }.add-picker-row[aria-pressed="true"] .apr-check{background:var(--violet)}
.add-picker-new input { padding:12px 0; border:0; border-bottom:1px solid var(--border-strong); border-radius:0; background:none; font:11px var(--sans); }
.add-picker-new button { flex:0 0 42px; align-self:center; height:42px; padding:0; border:0; border-radius:50%; background:var(--text); color:var(--bg); }
.collection-tray { border-radius:0; padding:14px 19px; box-shadow:none; gap:20px; background:var(--text); color:var(--bg); font:11px var(--sans); }
.collection-tray .tray-label { font:italic 21px/1 var(--serif); }.collection-tray .tray-count { background:none; color:var(--bg); border-radius:0; border-left:1px solid var(--muted); padding-left:14px; font:10px var(--sans); }
@media(max-width:760px){ .app-page{padding:30px 20px 65px}.collection-grid,.list-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.bag-product .spot-photo{height:245px}.bag-product .spot-photo .thumb{padding:24px}.bag-product .spot-name{font-size:25px}.c-share{flex-direction:column;align-items:flex-start;gap:22px}.c-summary{grid-template-columns:1fr}.c-total{justify-content:space-between} }
@media(max-width:480px){ .collection-grid,.list-cards{grid-template-columns:1fr}.bag-product .spot-photo{height:340px}.bag-product .spot-photo .thumb{padding:35px}.collection-head h1{font-size:56px}.new-list-form button{width:auto}.c-share h2{font-size:32px} }

/* Keep white-backed retailer photography on the beauty edit's warm paper. */
.bag-product .spot-photo { isolation:isolate; }
.bag-product .spot-photo .thumb { background:transparent; }
.bag-product .spot-photo img { mix-blend-mode:multiply; }
.shared-hero { display:flex; flex-direction:column; align-items:center; text-align:center; padding:10px 0 40px; margin-bottom:38px; border-bottom:1px solid var(--border); }
.shared-hero h1 { font:400 clamp(54px,7vw,90px)/.98 var(--serif); letter-spacing:-.04em; max-width:850px; margin:20px 0; overflow-wrap:anywhere; }
.shared-description { font:11px var(--sans); color:var(--muted); }
.shared-credit { margin:18px 0 26px; font:9px var(--sans); letter-spacing:.06em; color:var(--muted); text-decoration:none; }
.shared-hero .c-save { display:inline-flex; align-items:center; gap:38px; padding:14px 22px; border:0; border-radius:0; font:11px var(--sans); background:var(--text); color:var(--bg); }
.collection-invite { text-align:center; margin-top:65px; padding:45px 20px; background:#f0ebe4; }
.collection-invite h2 { font:400 46px/1 var(--serif); letter-spacing:-.03em; margin:16px 0; }
.collection-invite p:not(.collection-eyebrow) { max-width:360px; margin:0 auto; font:12px/1.9 var(--sans); color:var(--muted); }
.collection-invite>a { display:inline-flex; align-items:center; gap:38px; background:var(--text); color:var(--bg); text-decoration:none; margin-top:25px; padding:14px 22px; font:11px var(--sans); }
@media(max-width:480px){ .shared-hero h1{font-size:56px}.collection-invite h2{font-size:38px} }

/* Keep the hero's photo canvases from casting rectangular shadows or taking
   on a second tint where the decorative arch crosses them. */
#heroFeature { background:#f0ebe4; }
#heroFeature::before { display:none; }
#heroFeature .feature-product { filter:none; mix-blend-mode:multiply; }
#heroFeature .feature-one { width:54%; height:68%; left:1%; top:12%; transform:rotate(-6deg); }
#heroFeature .feature-two { width:46%; height:59%; right:1%; top:26%; transform:rotate(6deg); }
#heroFeature .feature-caption { background:#f5ede4; }

.meta-strip { align-items:stretch; }
.meta-save { align-items:stretch; }
.meta-save>.meta-item { align-self:stretch; width:100%; padding:15px; }
.meta-save[data-save-item]>.add { top:23px; right:23px; }
.meta-save>.meta-item>.thumb,.meta-save>.meta-item>.icon { width:100%; height:150px; 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; }

@supports(grid-template-rows:subgrid){
  @media(min-width:1201px){
    #grid.grid { row-gap:0; }
    #grid>.card { display:grid; grid-row:span 8; grid-template-rows:subgrid; row-gap:0; padding-bottom:38px; }
    #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:1201px){
  #grid>.card>.part>.part-main { align-self:start; }
  #grid>.card>.part>.part-side { align-self:end; }
} }
/* Restore the original photo height without returning to uneven wrappers. */
.meta-save>.meta-item>.thumb,.meta-save>.meta-item>.icon { height:150px; aspect-ratio:auto; }

/* A beauty address book, with the typography and warm palette of the edit. */
.retailers-section { padding:45px 0 10px; margin:50px 0 65px; border-color:var(--border); }
.retailers-eyebrow { font:8px var(--sans); letter-spacing:.16em; }
.retailers-heading h2 { font:400 clamp(38px,4vw,52px)/1 var(--serif); letter-spacing:-.025em; }
.retailers-lede { font:11px/1.9 var(--sans); }
.retailers-region { font:10px var(--sans); }
.retailer-grid { gap:20px; }
.retailer-card { background:#f0ebe4; border:0; padding:25px; min-height:220px; }
.retailer-card:nth-child(3n+2) { background:#efe2dc; }.retailer-card:nth-child(3n){background:#e8e8df}
.retailer-card-name { font:400 34px/1.05 var(--serif); letter-spacing:-.025em; }
.retailer-card-top { font:8px var(--sans); letter-spacing:.05em; }
.retailer-card-name>span { font:25px var(--serif); }
.retailer-description { font:10px/1.7 var(--sans); }
.retailer-domain { font:9px var(--sans); }
.retailer-card:hover .retailer-card-name { text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:5px; }
.retailers-footnote,.retailers-scope { font:9px/1.8 var(--sans); }
@media(max-width:700px){ .retailer-grid{gap:12px}.retailer-card{padding:18px}.retailer-card-name{font-size:28px} }

/* ============================================================
   Bag page — the clean-beauty pass.
   The upgraded bag features (starter looks, the budget / price-
   watch tools, reorder controls and notes) shipped on the engine
   defaults: boxy cards, accent-tinted chips, hard mono labels.
   Re-dress them in the edit's own hand — warm panels, Fraunces
   display, wide-tracked labels, soft ink — so the whole page
   reads as one edit.
   ============================================================ */

/* Empty covers: a soft taupe glyph on the warm panel, never the clay-tinted chip. */
.lc-cover .icon { width:auto; height:auto; background:none; border:0; border-radius:0; color:#bcac9f; }
.lc-cover .icon svg { width:46px; height:46px; opacity:1; }

/* Starter looks read as the same edit as your saved bags. */
.collection-templates { margin:62px 0 10px; padding-top:42px; border-top:1px solid var(--border); text-align:center; }
.ct-head { font:400 clamp(34px,4.6vw,54px)/1 var(--serif); letter-spacing:-.03em; margin:0 0 14px; }
.ct-sub { font:12px/1.9 var(--sans); color:var(--muted); max-width:440px; margin:0 auto 36px; }
.tpl-cards { grid-template-columns:repeat(3,minmax(0,1fr)); gap:30px; text-align:left; }
.tpl-card { background:none; border:0; border-radius:0; padding:0; gap:0; }
.tpl-card .lc-covers { height:210px; }
.tpl-card:nth-child(2n) .lc-covers { background:#efe2dc; }
.tpl-name { font:400 30px/1.1 var(--serif); margin-top:2px; }
.tpl-note { font:11px/1.7 var(--sans); color:var(--muted); margin:9px 0 0; }
.tpl-meta { font:10px var(--sans); color:var(--muted); letter-spacing:.11em; text-transform:uppercase; margin-top:13px; }
.tpl-use { margin-top:18px; display:inline-flex; align-items:center; justify-content:space-between; gap:24px; width:100%; padding:14px 20px; border:0; border-radius:0; background:var(--text); color:var(--bg); font:11px var(--sans); letter-spacing:.02em; }
.tpl-use::after { content:"\2197"; font:13px var(--sans); }
.tpl-use:hover { background:var(--violet); color:var(--bg); }

/* Detail utilities: warm panels, serif numerals, soft rounded meters. */
.detail-tools { grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:18px; margin:32px 0; }
.c-tool { background:#f0ebe4; border:0; border-radius:0; padding:22px; gap:12px; }
.c-tool-label { font:9px var(--sans); text-transform:uppercase; letter-spacing:.15em; color:var(--muted); }
.cb-form { border:1px solid var(--border-strong); border-radius:0; background:var(--surface); }
.cb-cur { background:transparent; border-right:1px solid var(--border); font:11px var(--sans); color:var(--muted); }
.cb-input { background:transparent; font:12px var(--sans); }
.cb-set { border-left:0; background:var(--text); color:var(--bg); border-radius:0; font:11px var(--sans); letter-spacing:.02em; }
.cb-set:hover { background:var(--violet); }
.cb-bar { height:6px; border-radius:999px; background:color-mix(in srgb,var(--text) 9%,transparent); }
.cb-bar>span { background:var(--violet); }
.c-budget.over .cb-bar>span { background:var(--down); }
.cb-status,.cb-hint { font:10px/1.7 var(--sans); color:var(--muted); }
.cb-status strong { color:var(--text); }
.cb-clear { font:10px var(--sans); text-decoration:underline; text-underline-offset:4px; color:var(--muted); }
.c-power .cp-num { font:400 34px/1 var(--serif); color:var(--text); }
.c-watch p { font:10px/1.7 var(--sans); }
.c-watch.has-drop { box-shadow:inset 3px 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:999px; background:var(--surface); color:var(--text); font:10px var(--sans); text-transform:uppercase; letter-spacing:.08em; padding:8px 14px; }
.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: soft pills. */
.detail-viewbar { gap:16px; margin:10px 0 24px; }
.c-group-toggle { border:1px solid var(--border-strong); border-radius:999px; background:none; color:var(--text); font:10px var(--sans); text-transform:uppercase; letter-spacing:.09em; padding:9px 17px; }
.c-group-toggle[aria-pressed="true"] { background:var(--text); color:var(--bg); border-color:var(--text); }
.dv-hint { font:10px var(--sans); color:var(--muted); }
.collection-group { margin:0 0 34px; }
.cg-head { font:400 25px/1.1 var(--serif); letter-spacing:-.02em; border-bottom:1px solid var(--border); padding-bottom:12px; }
.cg-head span { font:10px var(--sans); color:var(--muted); letter-spacing:.06em; }

/* In-card controls: soft circles with a whisper of shadow. */
.module-controls { top:12px; right:12px; gap:6px; }
.m-ctl { width:28px; height:28px; border:0; border-radius:50%; background:var(--bg); color:var(--muted); font:14px var(--sans); box-shadow:0 1px 5px color-mix(in srgb,var(--text) 12%,transparent); }
.m-ctl:hover:not(:disabled) { background:var(--surface); color:var(--text); }
.m-cover.on { background:var(--violet); color:var(--bg); }
.m-remove:hover { background:var(--text); color:var(--bg); }
.module-cover-badge { top:14px; left:16px; border-radius:999px; background:var(--text); color:var(--bg); font:8px var(--sans); text-transform:uppercase; letter-spacing:.12em; padding:4px 10px; }
.module.dragging { outline:none; opacity:.4; }

/* Notes: a handwritten aside, set in serif italic. */
.module-note { border-top:1px solid var(--border); padding:12px 0; }
.module-note .mn-text { font:italic 13px/1.6 var(--serif); color:var(--text); }
.mn-edit { font:10px var(--sans); color:var(--muted); letter-spacing:.04em; text-decoration:underline; text-underline-offset:4px; }
.mn-form textarea { border:1px solid var(--border-strong); border-radius:0; background:var(--surface); font:12px/1.6 var(--sans); }
.mn-actions button,.mn-cancel { border:1px solid var(--border-strong); border-radius:999px; background:var(--surface); color:var(--text); font:10px var(--sans); text-transform:uppercase; letter-spacing:.07em; padding:7px 15px; }
.mn-actions button[type="submit"] { background:var(--text); color:var(--bg); border-color:var(--text); }

/* Storage-blocked note: a soft warm strip, not a tinted lozenge. */
.c-degraded { border-radius:0; background:#f0ebe4; border:0; border-left:3px solid var(--violet); font:11px/1.7 var(--sans); color:var(--muted); padding:14px 18px; }

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

@media(max-width:760px){
  .tpl-cards { grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; }
  .detail-tools { grid-template-columns:1fr; }
}
@media(max-width:480px){ .tpl-cards { grid-template-columns:1fr; } }
