@import url("fonts/fonts.css");

/* ── Tokens (from the Pickup Atlas design canvas) ────────────────────── */
:root {
  color-scheme: light;
  --bg: #f3f1ed; --sf: #fff; --sf2: #f8f6f2; --sf3: #ece8e1; --ln: #e3dfd8; --ln2: #cfc9bf;
  --tx: #1c1a17; --tx2: #57524b; --tx3: #736d64;
  --ac: #e8590c; --acs: #c2410c; --acon: #fff; --acw: #fdeee4; --actx: #9a3412;
  --ink: #1c1a17; --onink: #fff; --water: #e6e4df; --scrim: rgba(28, 26, 23, .42);
  --ok: #2f9e5a;
  --sh1: 0 1px 2px rgba(28,26,23,.06), 0 1px 1px rgba(28,26,23,.04);
  --sh2: 0 1px 2px rgba(28,26,23,.05), 0 8px 24px -6px rgba(28,26,23,.14);
  --sh3: 0 2px 6px rgba(28,26,23,.06), 0 28px 56px -12px rgba(28,26,23,.28);
  --ice: #4a4f57; --iceb: #eceef0; --icet: #33373d;
  --hyb: #2f9e5a; --hybb: #e3f4e9; --hybt: #1d6b3c;
  --phev: #2f6fe0; --phevb: #e5eefc; --phevt: #1f4fa8;
  --erev: #7c4ddb; --erevb: #efe8fb; --erevt: #5a32a8;
  --ev: #0e9494; --evb: #ddf3f2; --evt: #0b6767;
  --display: "Archivo", "Arial Narrow", sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --top: 64px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-in: cubic-bezier(.4, 0, 1, 1);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #151412; --sf: #1e1c1a; --sf2: #252320; --sf3: #2e2b28; --ln: #34312d; --ln2: #4a4640;
  --tx: #f2efea; --tx2: #c4bdb3; --tx3: #9a938a;
  --ac: #f97a36; --acs: #f07b3c; --acon: #1a0f08; --acw: #3a2316; --actx: #ffb489;
  --ink: #f2efea; --onink: #151412; --water: #1f1e1c; --scrim: rgba(0, 0, 0, .6); --ok: #4cc47b;
  --sh1: 0 1px 2px rgba(0,0,0,.4);
  --sh2: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -6px rgba(0,0,0,.5);
  --sh3: 0 2px 6px rgba(0,0,0,.4), 0 28px 56px -12px rgba(0,0,0,.7);
  --ice: #9aa1aa; --iceb: #2c2f33; --icet: #d3d7dc;
  --hyb: #4cc47b; --hybb: #17301f; --hybt: #8fe0ad;
  --phev: #6b9cf5; --phevb: #172540; --phevt: #a9c5ff;
  --erev: #a685f0; --erevb: #271d40; --erevt: #cdb8ff;
  --ev: #2cc2c0; --evb: #0f3030; --evt: #86e3e0;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #151412; --sf: #1e1c1a; --sf2: #252320; --sf3: #2e2b28; --ln: #34312d; --ln2: #4a4640;
    --tx: #f2efea; --tx2: #c4bdb3; --tx3: #9a938a;
    --ac: #f97a36; --acs: #f07b3c; --acon: #1a0f08; --acw: #3a2316; --actx: #ffb489;
    --ink: #f2efea; --onink: #151412; --water: #1f1e1c; --scrim: rgba(0, 0, 0, .6); --ok: #4cc47b;
    --sh1: 0 1px 2px rgba(0,0,0,.4);
    --sh2: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -6px rgba(0,0,0,.5);
    --sh3: 0 2px 6px rgba(0,0,0,.4), 0 28px 56px -12px rgba(0,0,0,.7);
    --ice: #9aa1aa; --iceb: #2c2f33; --icet: #d3d7dc;
    --hyb: #4cc47b; --hybb: #17301f; --hybt: #8fe0ad;
    --phev: #6b9cf5; --phevb: #172540; --phevt: #a9c5ff;
    --erev: #a685f0; --erevb: #271d40; --erevt: #cdb8ff;
    --ev: #2cc2c0; --evb: #0f3030; --evt: #86e3e0;
  }
}

/* ── Base ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 16px); }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--tx);
  font: 15px/1.5 var(--sans); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
a { color: var(--acs); }
a:hover { color: var(--actx); }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; border-radius: 4px; }
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus, #main:focus { outline: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 3000; background: var(--ink); color: var(--onink); padding: 10px 14px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; color: var(--onink); }
.muted { color: var(--tx3); font-weight: 400; }
.small { font-size: 13px; }
.flag { width: 20px; height: 15px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.08); flex: none; }
.display, .wordmark { font-family: var(--display); font-stretch: 75%; font-weight: 700; letter-spacing: -.01em; }
.fine { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--tx3); }
.fine.rule { padding-top: 16px; border-top: 1px solid var(--ln); }
kbd {
  min-width: 20px; height: 22px; padding: 0 5px; border-radius: 6px; border: 1px solid var(--ln2); background: var(--sf);
  font: 12px/20px var(--sans); color: var(--tx2); text-align: center; box-shadow: 0 1px 0 var(--ln2);
}
code { font-family: ui-monospace, Menlo, monospace; font-size: .92em; background: var(--sf3); padding: 1px 5px; border-radius: 5px; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px;
  border-radius: 12px; border: 1px solid var(--acs); background: var(--acs); color: var(--acon) !important;
  font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .12s, border-color .12s, transform .1s;
}
.btn:hover { filter: brightness(.94); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: var(--sf); border-color: var(--ln2); color: var(--tx) !important; }
.btn.ghost:hover { background: var(--sf2); filter: none; }
.btn.sm { height: 36px; padding: 0 12px; border-radius: 10px; font-size: 13px; }
.link-btn { border: 0; background: none; padding: 4px 0; color: var(--acs); font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; flex: none;
  border: 0; background: transparent; color: var(--tx2); cursor: pointer; text-decoration: none; position: relative;
}
.icon-btn:hover { background: var(--sf3); color: var(--tx); }
.btn-cmp {
  height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--ln2); background: var(--sf); color: var(--tx);
  font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap;
  transition: background .18s var(--ease-out), border-color .18s, color .18s;
}
.btn-cmp:hover { border-color: var(--acs); }
.btn-cmp.on { background: var(--acs); border-color: var(--acs); color: var(--acon); }
.btn-cmp.lg { height: 44px; padding: 0 16px; font-size: 14px; }

/* ── Header ──────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 1100; height: var(--top); background: var(--sf); border-bottom: 1px solid var(--ln);
}
.hdr { height: 100%; padding: 0 24px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tx); flex: none; }
.brand:hover { color: var(--tx); }
.brand svg rect { fill: var(--ink); }
.brand svg path { stroke: var(--onink); }
.brand .wordmark { font-size: 22px; }
.nav { display: flex; align-self: stretch; gap: 4px; }
.nav a {
  display: flex; align-items: center; gap: 8px; padding: 0 12px; text-decoration: none; font-size: 14px; font-weight: 500;
  color: var(--tx2); box-shadow: inset 0 -2px 0 transparent; transition: color .12s, box-shadow .12s;
}
.nav a:hover { color: var(--tx); }
.nav a[aria-current="page"] { color: var(--tx); font-weight: 600; box-shadow: inset 0 -2px 0 var(--ac); }
.count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--acs); color: var(--acon);
  font-size: 12px; font-weight: 700; display: inline-grid; place-items: center;
}
.hdr-spacer { flex: 1; }
.search { position: relative; display: flex; align-items: center; width: 340px; }
.search svg { position: absolute; left: 12px; color: var(--tx3); pointer-events: none; }
.search input {
  width: 100%; height: 40px; border-radius: 10px; border: 1px solid var(--ln); background: var(--sf2);
  padding: 0 40px 0 38px; font-size: 14px; outline: none; transition: border-color .12s, background .12s, box-shadow .12s;
}
.search input::placeholder { color: var(--tx3); }
.search input:focus { background: var(--sf); border-color: var(--ac); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ac) 22%, transparent); }
.search kbd { position: absolute; right: 10px; pointer-events: none; }
.search input:focus ~ kbd, .search input:not(:placeholder-shown) ~ kbd { display: none; }
.hdr-mobile { display: none; }
.settings-wrap { position: relative; }
.popover {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 1200; width: 300px; padding: 16px; border-radius: 14px;
  background: var(--sf); box-shadow: var(--sh3), 0 0 0 1px var(--ln); display: flex; flex-direction: column; gap: 14px;
}
.popover h2 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--tx3); }
.seg-row { display: flex; flex-direction: column; gap: 6px; }
.seg-row > span { font-size: 13px; font-weight: 600; }
.seg { display: flex; padding: 3px; border-radius: 10px; background: var(--sf3); }
.seg button {
  flex: 1; height: 34px; border: 0; border-radius: 8px; background: transparent; font-size: 13px; font-weight: 600; color: var(--tx2); cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--sf); color: var(--tx); box-shadow: var(--sh1); }
.popover .select select { width: 100%; }
.popover .fine { font-size: 12px; }

/* Mobile menu sheet */
.menu-sheet {
  position: fixed; inset: 56px 0 auto 0; z-index: 1150; background: var(--sf); border-bottom: 1px solid var(--ln);
  box-shadow: var(--sh3); padding: 8px 16px 20px; display: flex; flex-direction: column; gap: 4px;
}
.menu-sheet nav a {
  display: flex; align-items: center; justify-content: space-between; min-height: 48px; font-size: 17px; font-weight: 600;
  color: var(--tx); text-decoration: none; border-bottom: 1px solid var(--ln);
}
.menu-sheet nav a[aria-current="page"] { color: var(--acs); }
.menu-sheet .menu-settings { padding-top: 14px; display: flex; flex-direction: column; gap: 14px; }

/* ── Views ───────────────────────────────────────────────────────────── */
.view { display: none; }
body[data-view="map"] .v-map,
body[data-view="browse"] .v-browse,
body[data-view="compare"] .v-compare,
body[data-view="page"] .v-page { display: block; }
body[data-view="map"] .site-footer { display: none; }
.main-wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 40px 24px 0; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.page-head h1 { font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: 52px; line-height: .95; letter-spacing: -.015em; margin-bottom: 8px; }
.page-head p { margin: 0; font-size: 15px; color: var(--tx2); }
.page-head p strong { color: var(--tx); }

/* Select */
.select { position: relative; display: flex; align-items: center; }
.select select {
  appearance: none; -webkit-appearance: none; height: 40px; min-width: 200px; border-radius: 10px; border: 1px solid var(--ln2);
  background: var(--sf); padding: 0 38px 0 14px; font-size: 14px; font-weight: 500; cursor: pointer;
}
.select::after {
  content: ""; position: absolute; right: 14px; width: 8px; height: 8px; border-right: 2px solid var(--tx2); border-bottom: 2px solid var(--tx2);
  transform: translateY(-2px) rotate(45deg); pointer-events: none;
}
.sort { display: flex; align-items: center; gap: 10px; }
.sort label { font-size: 13px; font-weight: 600; color: var(--tx2); }

/* ── Map view ────────────────────────────────────────────────────────── */
.v-map { position: fixed; inset: var(--top) 0 0 0; }
#map { position: absolute; inset: 0; background: var(--water); }
.map-fallback {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 24px 24px 24px 420px; text-align: center; color: var(--tx2);
  background: repeating-linear-gradient(135deg, var(--sf2) 0 10px, var(--sf3) 10px 11px);
}
.map-fallback div { max-width: 360px; display: flex; flex-direction: column; gap: 10px; align-items: center; background: var(--sf); padding: 24px; border-radius: 16px; box-shadow: var(--sh2); }
.map-fallback b { font-size: 16px; color: var(--tx); }
.panel {
  position: absolute; left: 16px; top: 16px; bottom: 16px; width: 380px; z-index: 900; background: var(--sf);
  border-radius: 16px; box-shadow: var(--sh3); display: flex; flex-direction: column; overflow: hidden;
}
.panel-head { padding: 22px 22px 6px; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.panel-head h1 { font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: 32px; line-height: 1.02; letter-spacing: -.01em; }
.panel-head p { margin: 6px 0 0; font-size: 13px; color: var(--tx2); }
.panel-head p strong { color: var(--tx); }
.panel-close { display: none; margin: -6px -10px 0 0; }
.panel-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.panel .filters { padding: 10px 22px 18px; }
.list-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 22px 8px; border-top: 1px solid var(--ln); }
.list-head h2, .f-head h2 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--tx3); }
.list-head span { font-size: 12px; color: var(--tx3); }
.mk-country {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 10px 22px 6px; font-size: 12px; font-weight: 600;
  color: var(--tx2); background: var(--sf2); border-top: 1px solid var(--ln); border-bottom: 1px solid var(--ln);
}
.mk-country .flag { width: 18px; height: 13px; }
.mk-country span:nth-of-type(1) { flex: 1; }
.mk-country .sum { color: var(--tx3); font-weight: 500; }
.mk-row {
  display: flex; align-items: center; gap: 12px; padding: 0 22px; min-height: 48px; text-decoration: none; color: var(--tx);
  border-bottom: 1px solid var(--ln); transition: background .12s;
}
.mk-row:hover { background: var(--sf2); color: var(--tx); }
.mk-row.active { background: var(--acw); }
.mk-row.dim { opacity: .5; }
.mk-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mk-name b { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-name span { font-size: 12px; color: var(--tx3); }
.pill { min-width: 28px; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--sf3); font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.pill.hit { background: var(--acw); color: var(--actx); }
.list-empty { margin: 16px 22px; padding: 16px; border-radius: 12px; border: 1.5px dashed var(--ln2); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.list-empty div { display: flex; flex-direction: column; font-size: 13px; color: var(--tx3); }
.list-empty b { color: var(--tx); font-size: 14px; }
.panel-cta { display: none; }
.fab { display: none; }

/* Leaflet skin */
.leaflet-container { font-family: var(--sans); background: var(--water); }
.leaflet-control-zoom { border: 0 !important; border-radius: 10px !important; overflow: hidden; box-shadow: var(--sh2) !important; }
.leaflet-control-zoom a { width: 40px !important; height: 40px !important; line-height: 40px !important; background: var(--sf) !important; color: var(--tx) !important; border-color: var(--ln) !important; }
.leaflet-control-attribution { background: color-mix(in srgb, var(--sf) 85%, transparent) !important; color: var(--tx2) !important; font-size: 11px; border-top-left-radius: 6px; }
.leaflet-control-attribution a { color: var(--acs) !important; }
.pin-hit { width: 44px; height: 44px; display: grid; place-items: center; }
.pin {
  width: 34px; height: 34px; border-radius: 999px; background: var(--ink); color: var(--onink); display: grid; place-items: center;
  font: 700 12px/1 var(--sans); letter-spacing: -.02em; box-shadow: 0 0 0 2px var(--sf), 0 2px 6px rgba(0,0,0,.28);
  transition: transform .12s, background .12s;
}
.pin.sm { font-size: 10px; }
.pin-hit:hover .pin { transform: scale(1.08); background: var(--acs); color: var(--acon); }
.pin.sel { background: var(--acs); color: var(--acon); transform: scale(1.12); }
.cluster { width: 44px; height: 44px; border-radius: 999px; background: color-mix(in srgb, var(--acs) 22%, transparent); display: grid; place-items: center; }
.cluster span { width: 34px; height: 34px; border-radius: 999px; background: var(--acs); color: var(--acon); display: grid; place-items: center; font: 700 14px/1 var(--sans); box-shadow: 0 0 0 2px var(--sf), 0 2px 6px rgba(0,0,0,.25); }
.leaflet-popup-content-wrapper { background: var(--sf); color: var(--tx); border-radius: 14px; box-shadow: var(--sh3); padding: 0; }
.leaflet-popup-tip { background: var(--sf); box-shadow: none; }
.leaflet-popup-content { margin: 16px; width: 216px !important; }
.leaflet-container a.leaflet-popup-close-button { width: 32px; height: 32px; top: 8px; right: 8px; font-size: 20px; line-height: 30px; color: var(--tx3); border-radius: 8px; }
.pop { display: flex; flex-direction: column; gap: 12px; }
.pop-country { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--tx3); }
.pop-country .flag { width: 16px; height: 12px; }
.pop h3 { font-family: var(--display); font-stretch: 75%; font-size: 26px; line-height: 1; margin: 4px 0 2px; }
.pop .city { font-size: 13px; color: var(--tx2); }
.pop-stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ln); border-bottom: 1px solid var(--ln); padding: 10px 0; }
.pop-stats div { display: flex; flex-direction: column; gap: 2px; }
.pop-stats div + div { padding-left: 12px; border-left: 1px solid var(--ln); }
.pop-stats span, .label { font-size: 11px; font-weight: 600; color: var(--tx3); text-transform: uppercase; letter-spacing: .06em; }
.pop-stats b { font-size: 15px; font-weight: 600; }
.pop .btn { height: 40px; border-radius: 10px; }

/* ── Filters ─────────────────────────────────────────────────────────── */
.filters { display: flex; flex-direction: column; gap: 16px; }
.f-head { display: flex; align-items: center; justify-content: space-between; min-height: 24px; }
.filters fieldset { border: 0; margin: 0; padding: 0; }
.filters legend, .f-row label, .f-market label { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips.center { justify-content: center; }
.chip {
  height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--ln2); background: var(--sf); color: var(--tx2);
  font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; transition: background .12s, color .12s, border-color .12s;
}
.chip:hover { border-color: var(--tx3); color: var(--tx); }
.chip[aria-pressed="true"], .chip.on { background: var(--ink); border-color: var(--ink); color: var(--onink); }
.chip svg { display: none; }
.chip[aria-pressed="true"] svg, .chip.on svg { display: block; }
.chip .dot { width: 9px; height: 9px; border-radius: 999px; }
.chip[aria-pressed="true"] .dot { box-shadow: 0 0 0 2px var(--onink); }
.d-ice { background: var(--ice); } .d-hyb { background: var(--hyb); } .d-phev { background: var(--phev); } .d-erev { background: var(--erev); } .d-ev { background: var(--ev); }
.filters.touch .chip { height: 44px; }
.f-price { display: flex; flex-direction: column; gap: 6px; }
.f-row { display: flex; align-items: baseline; justify-content: space-between; }
.f-row label { margin: 0; }
.f-row output { font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: 18px; }
.f-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--tx3); }
input[type="range"] {
  --pct: 100%; width: 100%; height: 28px; margin: 0; appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer;
}
.filters.touch input[type="range"] { height: 44px; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--acs) var(--pct), var(--sf3) var(--pct)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--acs) var(--pct), var(--sf3) var(--pct)); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 999px; background: var(--sf); border: 2px solid var(--acs); box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 999px; background: var(--sf); border: 2px solid var(--acs); }
.f-market .select select { width: 100%; min-width: 0; }
.filters.touch .f-market .select select { height: 44px; }

/* ── Browse ──────────────────────────────────────────────────────────── */
.browse-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px; }
.browse-aside { flex: 1 1 290px; max-width: 320px; background: var(--sf); border-radius: 16px; box-shadow: var(--sh1); padding: 18px 22px; position: sticky; top: calc(var(--top) + 20px); }
.browse-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.note-line { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--tx3); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.load-more { display: flex; justify-content: center; padding: 8px 0 4px; }

/* Card */
.card {
  position: relative; display: flex; flex-direction: column; background: var(--sf); border-radius: 14px; overflow: hidden;
  box-shadow: var(--sh1); transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sh3); }
.card.is-selected { box-shadow: 0 0 0 2px var(--acs), var(--sh2); }
.card-photo { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sf3); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease-out); }
.card:hover .card-photo img { transform: scale(1.04); }
.soon {
  position: absolute; left: 12px; top: 12px; z-index: 1; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--ink); color: var(--onink);
  font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px;
}
.soon i { width: 6px; height: 6px; border-radius: 999px; background: var(--ac); }
.card-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-maker { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--tx2); }
.card-maker .flag { width: 16px; height: 12px; }
.card-title { font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: 26px; line-height: 1.02; letter-spacing: -.005em; text-wrap: balance; margin-top: -7px; }
.card-title a { color: var(--tx); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.card-title a:focus-visible { outline: none; }
.card:has(.card-title a:focus-visible) { outline: 2px solid var(--ac); outline-offset: 2px; }
.card-meta { font-size: 13px; color: var(--tx3); margin-top: -8px; }
.card-stats { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--sf2); border-radius: 10px; padding: 9px 0; }
.card-stats div { display: flex; flex-direction: column; gap: 2px; padding: 0 10px; min-width: 0; }
.card-stats div + div { border-left: 1px solid var(--ln); }
.card-stats dt { font-size: 10.5px; font-weight: 600; color: var(--tx3); text-transform: uppercase; letter-spacing: .06em; }
.card-stats dd { margin: 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.na { color: var(--tx3) !important; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--ln); }
.card-foot .btn-cmp { position: relative; z-index: 1; }
.price { display: flex; flex-direction: column; line-height: 1.05; }
.price span { font-size: 11px; color: var(--tx3); }
.price b { font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: 22px; }

/* Badges */
.badges { display: flex; flex-wrap: wrap; gap: 5px; }
.badge { height: 22px; padding: 0 8px 0 7px; border-radius: 6px; font-size: 11.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.badge i { width: 7px; height: 7px; border-radius: 999px; }
.badges.lg .badge { height: 26px; padding: 0 10px 0 8px; border-radius: 7px; font-size: 12.5px; }
.badges.lg .badge i { width: 8px; height: 8px; }
.b-ice { background: var(--iceb); color: var(--icet); } .b-ice i { background: var(--ice); }
.b-hyb { background: var(--hybb); color: var(--hybt); } .b-hyb i { background: var(--hyb); }
.b-phev { background: var(--phevb); color: var(--phevt); } .b-phev i { background: var(--phev); }
.b-erev { background: var(--erevb); color: var(--erevt); } .b-erev i { background: var(--erev); }
.b-ev { background: var(--evb); color: var(--evt); } .b-ev i { background: var(--ev); }
.b-soon { background: var(--ink); color: var(--onink); } .b-soon i { background: var(--ac); }

/* Photo placeholder */
.ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px; text-align: center;
  background: repeating-linear-gradient(135deg, var(--sf2) 0 10px, var(--sf3) 10px 11px);
}
.ph-badge {
  width: 52px; height: 52px; border-radius: 999px; background: var(--sf); border: 1px solid var(--ln2); display: grid; place-items: center;
  font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: 18px; color: var(--tx2);
}
.ph-label { font-size: 12px; font-weight: 500; color: var(--tx3); }
.ph-lg .ph-badge { width: 72px; height: 72px; font-size: 24px; }
.ph-lg .ph-label { font-size: 14px; color: var(--tx2); }
.ph-note { font-size: 12.5px; color: var(--tx3); }

/* Empty */
.empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 56px 24px; color: var(--tx3); background: var(--sf); border-radius: 16px; box-shadow: var(--sh1); }
.empty h3 { font-family: var(--display); font-stretch: 75%; font-size: 28px; color: var(--tx); }
.empty p { margin: 0; max-width: 460px; color: var(--tx2); }
.empty .link-btn { font-size: inherit; }

/* ── Tray & toast ────────────────────────────────────────────────────── */
.floaters {
  position: fixed; left: 0; right: 0; bottom: 20px; z-index: 1000; display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; padding: 0 16px;
}
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 12px;
  background: var(--ink); color: var(--onink); font-size: 14px; font-weight: 500; box-shadow: var(--sh3);
  opacity: 0; transform: translateY(8px); transition: opacity .22s var(--ease-out), transform .22s var(--ease-out);
}
.toast.show { opacity: 1; transform: none; }
.toast .ti { width: 22px; height: 22px; border-radius: 999px; background: var(--ok); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.toast .ti.warn { background: var(--ac); }
.tray {
  pointer-events: auto; display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 20px; border-radius: 16px; max-width: 100%;
  background: var(--sf); box-shadow: var(--sh3), 0 0 0 1px var(--ln);
}
.tray-title { display: flex; align-items: baseline; gap: 6px; padding-right: 6px; white-space: nowrap; }
.tray-title b { font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: 20px; }
.tray-title span { font-size: 14px; font-weight: 600; color: var(--tx3); }
.tray-items { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.tray-chip { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 4px 0 12px; border-radius: 10px; background: var(--sf2); border: 1px solid var(--ln); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.tray-chip .flag { width: 16px; height: 12px; }
.tray-chip button { width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--tx3); display: grid; place-items: center; cursor: pointer; }
.tray-chip button:hover { background: var(--sf3); color: var(--tx); }
.tray-slot { width: 132px; height: 40px; border-radius: 10px; border: 1.5px dashed var(--ln2); color: var(--tx3); font-size: 13px; display: grid; place-items: center; flex: none; }
body.drawer-open .floaters .tray { display: none; }

/* ── Drawer ──────────────────────────────────────────────────────────── */
.scrim { position: fixed; inset: 0; z-index: 1190; background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity .28s var(--ease-out); }
.scrim.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1200; width: 100%; max-width: 680px; background: var(--sf); box-shadow: var(--sh3);
  overflow-y: auto; overscroll-behavior: contain; transform: translateX(104%); visibility: hidden;
  transition: transform .28s var(--ease-out), visibility 0s linear .28s;
}
.drawer.wide { max-width: 780px; background: var(--bg); }
.drawer.open { transform: none; visibility: visible; transition: transform .28s var(--ease-out), visibility 0s; }
.drawer:focus { outline: none; }
.drawer-bar {
  position: sticky; top: 0; z-index: 3; height: 64px; padding: 0 12px 0 28px; display: flex; align-items: center; justify-content: space-between;
  background: var(--sf); border-bottom: 1px solid var(--ln);
}
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--tx3); min-width: 0; }
.crumbs a { font-weight: 600; text-decoration: none; }
.crumbs span { color: var(--tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-body { padding: 24px 28px 40px; display: flex; flex-direction: column; gap: 28px; }
.hero { margin: 0; position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--sf3); }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero figcaption {
  position: absolute; right: 10px; bottom: 10px; max-width: calc(100% - 20px); font-size: 11px; color: #3c3833; background: rgba(255,255,255,.85);
  padding: 2px 8px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hero figcaption a { color: inherit; }
.gallery { display: flex; flex-direction: column; gap: 10px; }
.gallery-tabs { display: flex; gap: 8px; }
.gallery-tabs button {
  display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px 0 6px; border-radius: 12px; border: 1px solid var(--ln2);
  background: var(--sf); color: var(--tx2); font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .12s, background .12s, color .12s;
}
.gallery-tabs button:hover { color: var(--tx); border-color: var(--tx3); }
.gallery-tabs button[aria-selected="true"] { border-color: var(--acs); background: var(--acw); color: var(--actx); box-shadow: inset 0 0 0 1px var(--acs); }
.g-thumb { position: relative; display: block; width: 56px; height: 38px; border-radius: 8px; overflow: hidden; background: var(--sf3); flex: none; }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; }
.g-thumb .ph-badge { width: 26px; height: 26px; font-size: 11px; }
.g-thumb .ph-label, .g-thumb .ph-note { display: none; }
.g-thumb .ph { padding: 0; }
.model-head { display: flex; flex-direction: column; gap: 14px; margin-top: -4px; }
.kicker { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--tx2); }
.kicker .flag { width: 18px; height: 13px; }
.kicker > span { color: var(--tx3); }
.kicker.lg { font-size: 14px; }
.model-title { font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: 56px; line-height: .92; letter-spacing: -.015em; text-wrap: balance; }
.price-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-radius: 14px; background: var(--sf2); border: 1px solid var(--ln); }
.price-box > div { display: flex; flex-direction: column; gap: 2px; }
.price-xl { font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: 38px; line-height: 1; color: var(--actx); }
.price-xl.tba { color: var(--tx3); }
.price-box .sub { font-size: 12px; color: var(--tx3); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tile { padding: 14px 14px 12px; border-radius: 12px; border: 1px solid var(--ln); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tile b { font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: 26px; line-height: 1; overflow-wrap: anywhere; }
.tile .sub { font-size: 12px; color: var(--tx3); }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--acw); color: var(--actx); font-size: 14px; line-height: 1.45; }
.notice svg { flex: none; margin-top: 1px; }
.sec { display: flex; flex-direction: column; gap: 10px; }
.sec h3, .sec-head h3 { font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: 24px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sec-head a { font-size: 14px; font-weight: 600; }
.spec-list { margin: 0; border-top: 1px solid var(--ln); }
.spec-list div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--ln); font-size: 14px; }
.spec-list dt { color: var(--tx2); }
.spec-list dd { margin: 0; font-weight: 500; }
.prose-p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--tx2); text-wrap: pretty; }
.trust { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--ln); background: var(--sf2); }
.trust > div { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.trust > div a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.trust .btn { margin-left: auto; }
.more { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.more a { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--tx); }
.more a:hover b { color: var(--acs); }
.more-photo { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--sf3); }
.more-photo img { width: 100%; height: 100%; object-fit: cover; }
.more-photo .ph-badge { width: 36px; height: 36px; font-size: 13px; }
.more-photo .ph-label { display: none; }
.more b { display: block; font-weight: 600; font-size: 14px; line-height: 1.25; }
.more a > span:last-child span { font-size: 12px; color: var(--tx3); }
.dashed { padding: 18px; border-radius: 14px; border: 1.5px dashed var(--ln2); font-size: 14.5px; color: var(--tx2); }

/* Maker drawer */
.maker-top { background: var(--sf); padding: 28px; display: flex; flex-direction: column; gap: 24px; border-bottom: 1px solid var(--ln); }
.maker-intro { display: flex; gap: 24px; align-items: flex-start; }
.hq { flex: none; position: relative; width: 168px; height: 128px; border-radius: 14px; overflow: hidden; background: var(--water); box-shadow: 0 0 0 1px var(--ln); }
.hq .leaflet-container { position: absolute; inset: 0; }
.hq > .pin { position: absolute; left: 67px; top: 47px; z-index: 500; pointer-events: none; }
.maker-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.maker-title { font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: 60px; line-height: .9; letter-spacing: -.015em; text-wrap: balance; }
.maker-text p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--tx2); max-width: 480px; text-wrap: pretty; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--ln); border-radius: 12px; overflow: hidden; }
.facts div { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.facts div + div { border-left: 1px solid var(--ln); }
.facts dt { font-size: 11px; font-weight: 600; color: var(--tx3); text-transform: uppercase; letter-spacing: .06em; }
.facts dd { margin: 0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.facts dd a { display: inline-flex; align-items: center; gap: 4px; }
.maker-lineup { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.maker-lineup .sec-head h3 { font-size: 28px; }
.maker-lineup .grid { gap: 16px; }

/* ── Compare ─────────────────────────────────────────────────────────── */
.compare-scroll { overflow-x: auto; border-radius: 16px; background: var(--sf); box-shadow: var(--sh1); }
table.compare { width: 100%; min-width: 1040px; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 14px; }
table.compare col.c-label { width: 200px; }
.compare th, .compare td { border-bottom: 1px solid var(--ln); vertical-align: top; text-align: left; }
.compare thead th { padding: 16px 12px; font-weight: 400; border-left: 1px solid var(--ln); }
.compare thead th.c-head-label { vertical-align: bottom; padding: 20px; font-size: 12px; font-weight: 600; color: var(--tx3); text-transform: uppercase; letter-spacing: .08em; border-left: 0; }
.compare tbody th { padding: 14px 20px; font-weight: 600; color: var(--tx2); background: var(--sf2); }
.compare tbody td { padding: 14px 12px; border-left: 1px solid var(--ln); line-height: 1.4; }
.compare td > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.compare td.is-best { background: var(--acw); color: var(--actx); font-weight: 600; }
.compare .best { height: 20px; padding: 0 7px; border-radius: 999px; background: var(--acs); color: var(--acon); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.compare th:first-child, .compare td:first-child { position: sticky; left: 0; z-index: 1; }
.compare thead th:first-child { background: var(--sf); }
.cmp-head { display: flex; flex-direction: column; gap: 4px; }
.cmp-photo { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--sf3); margin-bottom: 6px; }
.cmp-photo img { width: 100%; height: 100%; object-fit: cover; }
.cmp-photo .x { position: absolute; right: 8px; top: 8px; z-index: 2; width: 32px; height: 32px; border-radius: 999px; border: 0; background: rgba(255,255,255,.92); color: #1c1a17; display: grid; place-items: center; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.cmp-photo .x:hover { background: #fff; color: var(--acs); }
.cmp-name { font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: 26px; line-height: 1.02; color: var(--tx); text-decoration: none; }
.cmp-name:hover { color: var(--acs); }
.compare th.add { vertical-align: top; }
.add-slot { aspect-ratio: 16 / 10; border-radius: 10px; border: 1.5px dashed var(--ln2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-decoration: none; color: var(--tx2); font-size: 14px; font-weight: 600; }
.add-slot span { width: 40px; height: 40px; border-radius: 999px; background: var(--sf3); display: grid; place-items: center; }
.add-slot:hover { border-color: var(--acs); color: var(--acs); }
.compare-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.v-compare .fine { margin-top: 16px; }
.empty-compare { display: flex; flex-direction: column; gap: 28px; padding: 32px; background: var(--sf); border-radius: 16px; box-shadow: var(--sh1); }
.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.slots span { aspect-ratio: 16 / 10; border-radius: 12px; border: 1.5px dashed var(--ln2); display: grid; place-items: center; color: var(--tx3); font-size: 13px; }
.empty-copy { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; max-width: 560px; }
.empty-copy h2 { font-family: var(--display); font-stretch: 75%; font-size: 32px; }
.empty-copy p { margin: 0; color: var(--tx2); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

/* ── Static pages ────────────────────────────────────────────────────── */
.page-wrap { max-width: 1120px; margin: 0 auto; padding: 56px 24px 0; }
.page-wrap.with-toc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: calc(var(--top) + 32px); display: flex; flex-direction: column; gap: 2px; }
.toc span { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--tx3); margin-bottom: 8px; }
.toc a { min-height: 36px; display: flex; align-items: center; padding: 0 12px; border-left: 2px solid var(--ln); color: var(--tx2); text-decoration: none; font-size: 14px; font-weight: 500; }
.toc a:hover { color: var(--tx); border-color: var(--ac); }
.article { max-width: 760px; display: flex; flex-direction: column; gap: 44px; }
.article.center { margin: 0 auto; text-align: center; align-items: center; padding: 40px 0 80px; }
.article header { display: flex; flex-direction: column; gap: 14px; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--actx); text-transform: uppercase; letter-spacing: .1em; }
.article h1 { font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: 64px; line-height: .95; letter-spacing: -.02em; text-wrap: balance; }
.lede { margin: 0; font-size: 20px; line-height: 1.5; color: var(--tx2); text-wrap: pretty; }
.article section { display: flex; flex-direction: column; gap: 14px; }
.article h2 { font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: 34px; line-height: 1.05; }
.article p, .article li { margin: 0; font-size: 16px; line-height: 1.65; color: var(--tx2); }
.article p strong, .article li strong { color: var(--tx); }
.article ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.article ul.cols { columns: 2; display: block; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.steps .n { flex: none; width: 32px; height: 32px; border-radius: 999px; background: var(--ink); color: var(--onink); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.tip { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: var(--sf); box-shadow: var(--sh1); }
.tip kbd { margin-top: 2px; }
.legend { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.legend div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: baseline; padding: 14px 16px; border-radius: 12px; background: var(--sf); box-shadow: var(--sh1); }
.legend dd { margin: 0; font-size: 15px; line-height: 1.55; color: var(--tx2); }
.legend dd strong { color: var(--tx); }
.credits-dl { margin: 0; display: grid; grid-template-columns: 180px 1fr; gap: 10px 20px; font-size: 15px; }
.credits-dl dt { font-weight: 600; }
.credits-dl dd { margin: 0; color: var(--tx2); }
.table-scroll { overflow-x: auto; border-radius: 12px; background: var(--sf); box-shadow: var(--sh1); }
table.plain { width: 100%; border-collapse: collapse; font-size: 14px; }
table.plain th, table.plain td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--ln); vertical-align: top; }
table.plain th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--tx3); background: var(--sf2); }

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer { margin-top: 56px; border-top: 1px solid var(--ln); background: var(--sf); }
.foot-in { max-width: 1440px; margin: 0 auto; padding: 32px 24px; display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-start; justify-content: space-between; }
.foot-brand { display: flex; flex-direction: column; gap: 6px; }
.foot-brand .wordmark { font-size: 22px; }
.foot-brand span:last-child { font-size: 13px; color: var(--tx2); }
.foot-nav, .foot-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; font-weight: 500; }
.foot-legal { font-size: 13px; }
.foot-nav a, .foot-legal a { color: var(--tx2); text-decoration: none; }
.foot-nav a:hover, .foot-legal a:hover { color: var(--acs); }
.foot-in .fine { flex-basis: 100%; padding-top: 16px; border-top: 1px solid var(--ln); max-width: 900px; font-size: 12px; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .hdr { gap: 20px; }
  .search { width: 260px; }
  .tray-slot { display: none; }
}

@media (max-width: 860px) {
  :root { --top: 56px; }
  .hdr { display: none; }
  .hdr-mobile { display: flex; height: 100%; align-items: center; gap: 2px; padding: 0 6px 0 16px; }
  .hdr-mobile .brand { flex: 1; }
  .hdr-mobile .brand .wordmark { font-size: 21px; }
  .hdr-mobile .count { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; font-size: 11px; box-shadow: 0 0 0 2px var(--sf); }
  .msearch { position: fixed; inset: 56px 0 auto 0; z-index: 1150; padding: 10px 16px; background: var(--sf); border-bottom: 1px solid var(--ln); box-shadow: var(--sh2); }
  .msearch .search { width: 100%; }
  .msearch .search input { height: 44px; font-size: 16px; }

  /* Map: panel becomes a slide-over */
  .panel {
    position: fixed; left: 0; top: 0; bottom: 0; width: min(352px, 92vw); z-index: 1300; border-radius: 0 18px 18px 0;
    transform: translateX(-104%); visibility: hidden; transition: transform .28s var(--ease-out), visibility 0s linear .28s;
  }
  .panel.open { transform: none; visibility: visible; transition: transform .28s var(--ease-out), visibility 0s; }
  .panel-head { padding: 18px 8px 4px 18px; }
  .panel-head h1 { font-size: 28px; }
  .panel-close { display: grid; }
  .panel .filters { padding: 10px 18px 18px; }
  .panel .chip, .panel .f-market .select select { height: 44px; }
  .panel input[type="range"] { height: 44px; }
  .list-head, .mk-country, .mk-row { padding-left: 18px; padding-right: 18px; }
  .mk-row { min-height: 52px; }
  .panel-cta { display: block; padding: 12px 18px 20px; border-top: 1px solid var(--ln); background: var(--sf); }
  .panel-cta .btn { width: 100%; height: 48px; font-size: 15px; }
  .panel-scrim { position: fixed; inset: 0; z-index: 1290; background: var(--scrim); }
  .fab {
    display: flex; align-items: center; gap: 10px; position: absolute; left: 50%; bottom: 40px; z-index: 800; transform: translateX(-50%);
    height: 52px; padding: 0 20px 0 18px; border-radius: 999px; border: 0; background: var(--ink); color: var(--onink);
    font-size: 15px; font-weight: 600; box-shadow: var(--sh3); cursor: pointer; white-space: nowrap;
  }
  .fab .count { background: color-mix(in srgb, var(--onink) 20%, transparent); color: var(--onink); }
  .map-fallback { padding: 24px; }
  .leaflet-control-zoom { display: none; }

  .main-wrap { padding: 24px 16px 0; }
  .page-head { margin-bottom: 16px; }
  .page-head h1 { font-size: 40px; }
  .browse-layout { gap: 16px; }
  .browse-aside { position: static; max-width: none; flex-basis: 100%; padding: 16px; }
  .browse-aside .chip { height: 44px; }
  .browse-aside input[type="range"] { height: 44px; }
  .browse-aside .select select, .sort .select select { height: 44px; }
  .browse-main { flex-basis: 100%; gap: 16px; }
  .sort { width: 100%; }
  .sort .select { flex: 1; }
  .sort .select select { width: 100%; }
  .grid { gap: 16px; }
  .btn-cmp { height: 44px; }

  .floaters { bottom: 12px; padding: 0 12px; }
  .tray { width: 100%; flex-direction: column; align-items: stretch; gap: 10px; padding: 10px; }
  .tray-bottom { display: flex; align-items: center; justify-content: space-between; padding-left: 6px; }
  .tray-chip { height: 44px; }
  .tray-chip button { width: 36px; height: 36px; }

  .drawer, .drawer.wide { max-width: none; }
  .drawer-bar { height: 56px; padding: 0 6px 0 16px; }
  .drawer-body { padding: 0 16px 32px; gap: 24px; }
  .hero { border-radius: 0; margin: 0 -16px; }
  .gallery-tabs button { flex: 1; height: 56px; }
  .model-head { margin-top: 0; }
  .model-title { font-size: 44px; }
  .price-xl { font-size: 32px; }
  .price-box { flex-direction: column; align-items: stretch; }
  .price-box .btn-cmp { width: 100%; justify-content: center; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .spec-list div { grid-template-columns: 128px 1fr; gap: 12px; }
  .more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust .btn { margin-left: 0; }
  .maker-top { padding: 20px 16px; }
  .maker-intro { flex-direction: column; gap: 16px; }
  .hq { width: 100%; height: 140px; }
  .hq > .pin { left: calc(50% - 17px); top: 53px; }
  .maker-title { font-size: 48px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div { border-left: 0 !important; border-top: 1px solid var(--ln); }
  .facts div:nth-child(-n+2) { border-top: 0; }
  .facts div:nth-child(even) { border-left: 1px solid var(--ln) !important; }
  .facts div:nth-child(4) { grid-column: 1 / -1; border-left: 0 !important; }
  .maker-lineup { padding: 24px 16px; }

  .compare-scroll { border-radius: 0; margin: 0 -16px; box-shadow: none; border-top: 1px solid var(--ln); border-bottom: 1px solid var(--ln); }
  table.compare { min-width: 0; width: auto; }
  table.compare col.c-label { width: 112px; }
  table.compare col:not(.c-label) { width: 150px; }
  .compare thead th.c-head-label { padding: 12px; }
  .compare tbody th { padding: 12px; font-size: 13px; box-shadow: 6px 0 10px -6px rgba(0,0,0,.18); }
  .compare thead th:first-child { box-shadow: 6px 0 10px -6px rgba(0,0,0,.18); }
  .compare thead th, .compare tbody td { padding: 10px; }
  .cmp-name { font-size: 20px; }
  .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .empty-compare { padding: 20px; }

  .page-wrap, .page-wrap.with-toc { display: block; padding: 32px 16px 0; }
  .toc { display: none; }
  .article { gap: 36px; }
  .article h1 { font-size: 44px; }
  .lede { font-size: 18px; }
  .article h2 { font-size: 28px; }
  .article ul.cols { columns: 1; }
  .legend div { grid-template-columns: 1fr; gap: 8px; }
  .credits-dl { grid-template-columns: 1fr; gap: 2px; }
  .credits-dl dd { margin-bottom: 10px; }
  .foot-in { padding: 28px 16px; flex-direction: column; }
  .foot-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; width: 100%; font-size: 15px; }
  .foot-nav a, .foot-legal a { min-height: 44px; display: flex; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .card:hover { transform: none; }
  .card:hover .card-photo img { transform: none; }
}

/* ── Forms (report, save list, account, admin) ───────────────────────── */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field > label, .field > legend { font-size: 13px; font-weight: 600; color: var(--tx); padding: 0; }
.field input, .field textarea, .rename-form input {
  width: 100%; min-height: 42px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--ln2); background: var(--sf);
  color: var(--tx); font: inherit; font-size: 15px;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .rename-form input:focus, .select select:focus-visible {
  outline: none; border-color: var(--ac); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ac) 22%, transparent);
}
.field .select select { width: 100%; min-width: 0; height: 42px; }
.hint { font-size: 12.5px; color: var(--tx3); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.form-msg { margin: 0; font-size: 14px; color: var(--tx2); min-height: 1px; }
.form-msg:empty { display: none; }
.form-msg.err { color: #b42318; font-weight: 600; }
:root[data-theme="dark"] .form-msg.err { color: #ff8a80; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .form-msg.err { color: #ff8a80; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; }
.checks label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.checks input { width: 18px; height: 18px; accent-color: var(--acs); }
.btn.danger { color: #b42318 !important; border-color: color-mix(in srgb, #b42318 40%, var(--ln2)); }
.btn[disabled] { opacity: .55; cursor: not-allowed; filter: none; }
.notice.warn { background: var(--sf2); color: var(--tx); border: 1px solid var(--ln2); }
.notice .btn { margin-left: auto; flex: none; }

.report-form { padding: 18px; border-radius: 14px; border: 1px solid var(--ln); background: var(--sf2); position: relative; }
.report-form h3 { font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: 22px; }
.report-form:focus { outline: none; }
.save-list { flex-direction: row; flex-wrap: wrap; align-items: flex-end; margin: -8px 0 20px; padding: 16px; border-radius: 14px; border: 1px solid var(--ln); background: var(--sf); }
.save-list .field { flex: 1 1 280px; }
.save-list .form-msg { flex-basis: 100%; }

/* Account link: dot when signed in */
[data-account-link].icon-btn { position: relative; }
[data-account-link].signed-in.icon-btn::after { content: ""; position: absolute; right: 7px; bottom: 7px; width: 8px; height: 8px; border-radius: 999px; background: var(--ok); box-shadow: 0 0 0 2px var(--sf); }

/* ── Price history chart (single series: title names it, no legend) ──── */
.price-history .ph-summary { margin: 0; font-size: 15px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.price-history .ph-summary b { font-size: 20px; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--ln); stroke-width: 1; }
.chart .ax { fill: var(--tx3); font-size: 12px; font-family: var(--sans); }
.chart .line { fill: none; stroke: var(--acs); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: var(--acs); stroke: var(--sf); stroke-width: 2; pointer-events: none; transition: r .12s; }
.chart .hit { fill: transparent; cursor: default; }
.chart .pt:hover .dot { r: 6.5; }
.chart .line, .chart .grid, .chart .dot { vector-effect: non-scaling-stroke; }
@media (max-width: 560px) { /* the 640-unit chart is drawn at ~56%: keep text ≥ 11px and markers ≥ 8px */
  .chart .ax { font-size: 20px; }
  .chart .dot { r: 7.5; }
  .chart .pt:hover .dot { r: 10; }
}
.as-table summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--acs); width: fit-content; }
.as-table[open] summary { margin-bottom: 10px; }
.changes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.changes li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--ln); font-size: 14px; line-height: 1.45; }
.changes li:first-child { border-top: 0; }
.changes time { color: var(--tx3); font-size: 13px; }
.changes s { color: var(--tx3); }

/* ── Account & admin pages ───────────────────────────────────────────── */
.page-wrap.wide .article { max-width: none; }
.app-page[aria-busy="true"] [data-app-body] { opacity: .6; }
[data-app-body] { display: flex; flex-direction: column; gap: 28px; }
.card-panel { padding: 24px; border-radius: 16px; background: var(--sf); box-shadow: var(--sh1); max-width: 560px; }
.card-panel:focus { outline: none; }
.card-panel h2 { font-size: 28px !important; }
.acct-bar, .publish-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px 18px; border-radius: 14px; background: var(--sf); box-shadow: var(--sh1); }
.acct-bar > div:first-child, .publish-bar > div:first-child { display: flex; flex-direction: column; gap: 2px; font-size: 15px; flex: 1 1 240px; }
.acct-bar .label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--tx3); font-weight: 600; }
.acct-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.publish-bar .form-msg { flex-basis: 100%; }
.lists { list-style: none; margin: 0; padding: 0 !important; display: flex; flex-direction: column; gap: 12px !important; }
.list-item { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: flex-start; padding: 18px; border-radius: 14px; background: var(--sf); box-shadow: var(--sh1); }
.li-main { flex: 1 1 320px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.li-name { font-size: 19px; font-weight: 700; margin: 0; }
.li-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.li-chips .chip { height: 30px; font-size: 13px; text-decoration: none; }
.li-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rename-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rename-form input { flex: 1 1 200px; width: auto; }
.rename-form .form-msg { flex-basis: 100%; }
.danger-zone { padding: 18px; border-radius: 14px; border: 1px solid var(--ln2); }
.danger-zone h2 { font-size: 24px !important; }
.danger-zone .btn { width: fit-content; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--ln); overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 12px 14px; font-size: 15px; font-weight: 600; color: var(--tx2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--tx); border-bottom-color: var(--acs); }
#apanel { display: flex; flex-direction: column; gap: 18px; }
#apanel:focus { outline: none; }
.filter-seg { width: fit-content; max-width: 100%; overflow-x: auto; }
.filter-seg button { white-space: nowrap; }
.filter-seg .n { color: var(--tx3); font-weight: 500; margin-left: 4px; }
.reports { display: flex; flex-direction: column; gap: 12px; }
.report-card { padding: 16px 18px; border-radius: 14px; background: var(--sf); box-shadow: var(--sh1); display: flex; flex-direction: column; gap: 10px; border-left: 4px solid var(--ln2); }
.report-card.s-new { border-left-color: var(--acs); }
.report-card.s-fixed { border-left-color: var(--ok); }
.report-card header { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.report-card .status { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--tx2); }
.report-card .msg { white-space: pre-wrap; color: var(--tx) !important; font-size: 15px !important; }
.tag { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--sf3); color: var(--tx2); }
.report-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.report-actions .field { flex: 0 0 160px; }
.report-actions .field.grow { flex: 1 1 220px; }
.editor-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.editor-top .field.grow { flex: 1 1 300px; }
#edBody { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start; }
#edBody:not(:has(.ed-side)) { display: flex; flex-direction: column; gap: 18px; }
.ed-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ed-side { display: flex; flex-direction: column; gap: 28px; }
.ed-side h3 { font-size: 22px !important; }
.form.inline { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.form.inline .field { flex: 0 1 150px; }
.form.inline .field.grow { flex: 1 1 180px; }
.form.inline .form-msg { flex-basis: 100%; }

@media (max-width: 860px) {
  #edBody { grid-template-columns: minmax(0, 1fr); }
  .ed-grid { grid-template-columns: minmax(0, 1fr); }
  .changes li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .report-actions .field { flex: 1 1 100%; }
  .card-panel { padding: 18px; }
}

/* ── Admin: price watch ── */
.tabs .n { margin-left: 6px; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--acs); color: #fff; font-size: 12px; font-weight: 700; }
.h-sec { font-size: 17px; margin: 26px 0 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.h-sec .n { font-size: 13px; font-weight: 600; color: var(--tx3); }
.report-card.proposal { border-left-color: var(--acs); }
.media-card header b { font-size: 15px; line-height: 1.35; }
.media-card .report-actions .field { flex: 0 1 200px; }
#feedForm { margin-top: 14px; }
#feedForm .field { flex: 0 1 200px; }
#feedForm .field.grow { flex: 1 1 240px; }
.price-change { font-size: 17px; }
.price-change s { color: var(--tx3); }
.src-status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--tx2); white-space: nowrap; }
.src-status::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--tx3); flex: none; }
.src-status.s-ok::before { background: var(--ok); }
.src-status.s-broken::before { background: #d92d20; }
.src-status.s-blocked::before { background: #dc6803; }
.src-status.s-off::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--tx3); }
table.sources td.actions { display: table-cell; margin-top: 0; white-space: nowrap; }
table.sources td.actions > * { vertical-align: middle; }
table.sources td.actions .link-btn { margin-left: 10px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--acs); }
.link-btn.danger { color: #b42318; }
:root[data-theme="dark"] .link-btn.danger { color: #ff8a80; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .link-btn.danger { color: #ff8a80; } }
@media (max-width: 560px) {
  table.sources:not(.feeds) th[scope="col"]:nth-child(5), table.sources:not(.feeds) td:nth-child(5),
  table.feeds th[scope="col"]:nth-child(4), table.feeds td:nth-child(4) { display: none; }
  table.feeds td.actions { white-space: normal; }
}
table.sources th[scope="row"] { font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--tx); background: none; font-weight: 600; }

/* ── Phase 1: countries, lists, head-to-head ── */
.map-mode { margin: 0 0 18px; }
.map-mode button { flex: 1; }
.pin.country { background: var(--ink); color: var(--onink); width: 34px; height: 34px; font-size: 13px; }
.pin.country.lg { width: 40px; height: 40px; font-size: 14px; }
.hub-wrap { max-width: 1240px; padding-bottom: 24px; }
.hub { display: flex; flex-direction: column; gap: 40px; }
.hub > header { display: flex; flex-direction: column; gap: 14px; max-width: 820px; }
.hub h1 { font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: 56px; line-height: .98; letter-spacing: -.02em; text-wrap: balance; }
.hub h1 .flag { display: inline-block; width: 44px; height: 33px; border-radius: 5px; vertical-align: .02em; margin-right: 6px; }
.hub h1 .vs { color: var(--tx3); font-size: .6em; padding: 0 .12em; }
.hub h2 { font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: 30px; line-height: 1.05; }
.hub section { display: flex; flex-direction: column; gap: 16px; }
.hub .sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hub .fine { max-width: 820px; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--tx3); }
.crumbs a { color: var(--tx2); }
.crumbs [aria-current] { color: var(--tx); font-weight: 600; }
.hub-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.hub-tiles .tile .sub a { color: var(--acs); }
.type-counts { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 6px; margin: 0; }
.type-counts b { margin-right: 10px; font-size: 14px; }
.type-counts .btn { margin-left: auto; }
.hub .chips a.chip { text-decoration: none; }
.hub .chips .flag, .sec .chips .flag { width: 18px; height: 13.5px; border-radius: 2px; }
.sec .chips a.chip { text-decoration: none; }
.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.country-tile { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 12px; padding: 16px 18px; border-radius: 14px; background: var(--sf); box-shadow: var(--sh1); text-decoration: none; color: var(--tx); }
.country-tile:hover { box-shadow: var(--sh2, var(--sh1)); outline: 2px solid var(--ln2); }
.country-tile .flag { grid-row: span 2; width: 36px; height: 27px; border-radius: 4px; }
.country-tile b { font-size: 16px; }
.country-tile span { font-size: 13px; color: var(--tx2); }
.list-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 14px; }
.list-tile { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; padding: 12px; border-radius: 14px; background: var(--sf); box-shadow: var(--sh1); text-decoration: none; color: var(--tx); }
.list-tile:hover { outline: 2px solid var(--ln2); }
.list-photo { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--sf3); display: block; }
.list-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.list-tile > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.list-tile b { font-size: 17px; }
.list-tile span span { font-size: 14px; color: var(--tx2); line-height: 1.4; }
.rank-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rank-row { display: grid; grid-template-columns: 36px 112px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 12px 16px 12px 12px; border-radius: 14px; background: var(--sf); box-shadow: var(--sh1); }
.rank { font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: 26px; color: var(--tx3); text-align: center; }
.rank-photo { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--sf3); display: block; }
.rank-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rank-photo .ph { height: 100%; }
.rank-photo .ph-label { display: none; }
.rank-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rank-main h3 { font-size: 18px; margin: 0; }
.rank-main h3 a { color: var(--tx); text-decoration: none; }
.rank-main h3 a:hover { text-decoration: underline; }
.rank-metric { text-align: right; display: flex; flex-direction: column; gap: 2px; }
.rank-metric b { font-size: 20px; font-variant-numeric: tabular-nums; }
.rank-metric span { font-size: 13px; color: var(--tx2); }
.verdict { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; max-width: 820px; }
.verdict li { font-size: 16px; line-height: 1.55; color: var(--tx2); }
.verdict b { color: var(--tx); }
.hub .actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 700px) {
  .hub h1 { font-size: 38px; }
  .hub h1 .flag { width: 32px; height: 24px; }
  .hub h2 { font-size: 24px; }
  .rank-row { grid-template-columns: 28px 76px minmax(0, 1fr); gap: 10px 12px; padding: 10px; }
  .rank-metric { grid-column: 2 / 4; text-align: left; flex-direction: row; align-items: baseline; gap: 8px; }
  .rank-row .btn-cmp { grid-column: 2 / 4; justify-self: start; }
  .type-counts .btn { margin-left: 0; }
  .list-tile { grid-template-columns: 96px 1fr; }
}
.sold-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 14px; font-size: 14px; }
.sold-checks label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.sold-checks input { width: 17px; height: 17px; accent-color: var(--acs); }

/* ── Phase 2: local prices, dimensions, safety ── */
.ratings { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ratings li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--ln); font-size: 15px; }
.ratings li:last-child { border-bottom: 0; }
.ratings b { min-width: 104px; }
.ratings .rating { font-weight: 600; }
.ratings a { margin-left: auto; font-size: 13px; }
table.local-prices th[scope="row"] { font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--tx); background: none; font-weight: 600; white-space: nowrap; }
table.local-prices th[scope="row"] a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
table.local-prices th[scope="row"] a:hover { text-decoration: underline; }
table.local-prices td b { font-size: 16px; font-variant-numeric: tabular-nums; }
.json-area { font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; min-height: 220px; white-space: pre; overflow: auto; }
.ratings .scope { flex-basis: 100%; }
.list-photo, .rank-photo { position: relative; }
.list-photo .ph-label, .list-photo .ph-note { display: none; }

/* ── Reviews and videos ── */
.videos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.video { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.video p { margin: 0; }
.yt { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #16150f; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.yt iframe { width: 100%; height: 100%; border: 0; display: block; }
.yt-play { width: 100%; height: 100%; border: 0; padding: 18px; cursor: pointer; color: #fff; text-align: left; font: inherit;
  display: grid; grid-template-rows: 1fr auto auto; gap: 4px; background: linear-gradient(160deg, #2a2822 0%, #16150f 70%); }
.yt-play:hover .yt-icon, .yt-play:focus-visible .yt-icon { background: var(--acs); }
.yt-play:focus-visible { outline: 3px solid var(--acs); outline-offset: -3px; }
.yt-icon { align-self: center; justify-self: center; width: 60px; height: 60px; border-radius: 999px; background: rgba(255, 255, 255, .16); display: grid; place-items: center; transition: background .15s; }
.yt-title { font-weight: 600; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt-chan { font-size: 13px; color: rgba(255, 255, 255, .72); }
.articles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.articles li { display: flex; flex-direction: column; gap: 3px; padding: 12px 0; border-bottom: 1px solid var(--ln); }
.articles li:last-child { border-bottom: 0; }
.articles a { font-weight: 600; font-size: 15px; }
.media .fine { margin-top: 4px; }
.hub .media .videos { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 420px)); }
.hub .media .articles { max-width: 820px; }
