/* EraCar Maroc. Author: Badr Abardazzou */
:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-2: #efede8;
  --ink: #15161a;
  --ink-2: #4b4d55;
  --ink-3: #80838c;
  --line: #e2dfd8;
  --accent: #e8432d;
  --accent-ink: #ffffff;
  --accent-soft: #fde7e3;
  --hero: #101114;
  --hero-ink: #f4f2ee;
  --bev: #0f9d6b;
  --phev: #2f6fe0;
  --erev: #7a4de0;
  --hev: #0e8fa8;
  --ice: #8a6a2c;
  --best: #0f9d6b;
  --shadow: 0 1px 2px rgba(20, 20, 25, .06), 0 8px 24px rgba(20, 20, 25, .06);
  --shadow-lg: 0 2px 6px rgba(20, 20, 25, .08), 0 24px 48px rgba(20, 20, 25, .12);
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0e11; --surface: #16181d; --surface-2: #1d2026; --ink: #f1efea; --ink-2: #b9bbc3;
    --ink-3: #868994; --line: #2a2d35; --accent-soft: #3a1a15; --hero: #08090b;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3); --shadow-lg: 0 24px 48px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d0e11; --surface: #16181d; --surface-2: #1d2026; --ink: #f1efea; --ink-2: #b9bbc3;
  --ink-3: #868994; --line: #2a2d35; --accent-soft: #3a1a15; --hero: #08090b;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3); --shadow-lg: 0 24px 48px rgba(0,0,0,.5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); font-stretch: 112%; font-weight: 800; line-height: 1.08; margin: 0 0 .4em; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(30px, 5vw, 54px); }
h2 { font-size: clamp(22px, 3vw, 30px); }
h3 { font-size: 18px; }
.muted { color: var(--ink-3); }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
main { min-height: 70vh; outline: none; }

/* top bar */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); position: relative; flex: none; }
.logo-mark::after { content: ""; position: absolute; inset: 9px 6px 8px; border-radius: 4px 4px 2px 2px; border: 2.5px solid #fff; border-bottom-width: 4px; }
.logo-text { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.logo-text b { color: var(--accent); font-weight: 700; }
.logo-text small { font-family: var(--font); font-size: 11px; font-weight: 600; margin-left: 6px; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); vertical-align: 3px; }
.logo.small .logo-text { font-size: 17px; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { padding: 8px 14px; border-radius: 10px; font-weight: 500; color: var(--ink-2); }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.active { background: var(--ink); color: var(--bg); }
.pill { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; margin-left: 4px; }
.top-actions { margin-left: auto; display: flex; gap: 6px; }
.icon-btn { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; }
.icon-btn:hover { border-color: var(--ink-3); }
.menu-btn { display: none; }

/* buttons, chips, badges */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; white-space: nowrap; }
.btn:hover { border-color: var(--ink-3); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 500; color: var(--ink-2); }
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; color: #fff; background: var(--ink-3); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.e-BEV { --ec: var(--bev); } .e-PHEV { --ec: var(--phev); } .e-EREV { --ec: var(--erev); } .e-HEV, .e-MHEV { --ec: var(--hev); } .e-Essence { --ec: var(--ice); } .e-Diesel { --ec: #6b5a3a; }
.badge[class*="e-"] { background: var(--ec); }

/* hero */
.hero { background: var(--hero); color: var(--hero-ink); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 70vw; height: 70vw; background: radial-gradient(closest-side, rgba(232, 67, 45, .35), transparent 70%); pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding: 64px 0 56px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: 18px; color: #c9c7c2; max-width: 520px; }
.hero-search { margin-top: 26px; display: flex; gap: 8px; background: #fff; border-radius: 16px; padding: 6px; max-width: 540px; }
.hero-search input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 16px; padding: 10px 14px; background: transparent; color: #15161a; min-width: 0; }
.hero-stats { display: flex; gap: 28px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats div b { display: block; font-family: var(--display); font-size: 30px; color: #fff; }
.hero-stats div span { font-size: 13px; color: #9c9a95; }
.hero-visual { position: relative; aspect-ratio: 4/3; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); background: #1b1d22; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; transition: opacity .8s; }
.hero-visual .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; background: linear-gradient(transparent, rgba(0,0,0,.75)); display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.hero-visual .cap b { font-family: var(--display); font-size: 20px; color: #fff; }
.hero-visual .cap span { color: #ddd; font-size: 14px; }

/* sections */
.section { padding: 48px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head p { margin: 0; color: var(--ink-3); }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.quick a { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.quick a:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.quick b { font-family: var(--display); font-size: 28px; display: block; }
.quick span { color: var(--ink-2); font-size: 14px; }
.quick .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; }

/* brand tiles */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.brand-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; transition: transform .2s, box-shadow .2s, border-color .2s; }
.brand-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--ink-3); }
.brand-logo { width: 64px; height: 44px; display: grid; place-items: center; }
.brand-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
:root[data-theme="dark"] .brand-logo img { filter: invert(1) hue-rotate(180deg) brightness(1.2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-logo img { filter: invert(1) hue-rotate(180deg) brightness(1.2); } }
.brand-mono { width: 52px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 16px; color: #fff; background: var(--ink); letter-spacing: -.02em; }
.brand-tile b { font-size: 14px; }
.brand-tile small { color: var(--ink-3); font-size: 12px; }

/* model cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; position: relative; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-media { aspect-ratio: 16/10; background: var(--surface-2); position: relative; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-media .badge { position: absolute; top: 12px; left: 12px; }
.placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--surface-2), var(--line)); color: var(--ink-3); font-family: var(--display); font-weight: 700; font-size: 22px; text-align: center; padding: 16px; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-brand { font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.card-name { font-family: var(--display); font-size: 19px; font-weight: 600; line-height: 1.2; }
.card-specs { display: flex; flex-wrap: wrap; gap: 6px; }
.card-specs span { font-size: 12px; padding: 3px 8px; border-radius: 7px; background: var(--surface-2); color: var(--ink-2); }
.card-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: end; justify-content: space-between; gap: 10px; border-top: 1px dashed var(--line); }
.price small { display: block; font-size: 11px; color: var(--ink-3); font-weight: 500; }
.price b { font-family: var(--display); font-size: 20px; }
.price.na b { font-size: 14px; color: var(--ink-3); font-weight: 500; font-family: var(--font); }
.cmp-toggle { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; flex: none; position: relative; z-index: 2; }
.cmp-toggle:hover { border-color: var(--ink); }
.cmp-toggle.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* catalogue layout */
.page-head { padding: 36px 0 12px; }
.crumbs { font-size: 13px; color: var(--ink-3); margin-bottom: 10px; }
.crumbs a:hover { color: var(--ink); }
.cat-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; padding-bottom: 60px; }
.filters { position: sticky; top: 84px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 18px; max-height: calc(100vh - 100px); overflow: auto; }
.filters h4 { font-family: var(--font); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 8px; }
.filters .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filters select, .filters input[type=number], .toolbar select, .cmp-picker select { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; }
.range-row { display: flex; gap: 8px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .count { font-weight: 600; }
.toolbar select { width: auto; }
.filter-toggle { display: none; }
.empty { padding: 60px 20px; text-align: center; color: var(--ink-3); background: var(--surface); border-radius: var(--radius); border: 1px dashed var(--line); }

/* brand page */
.brand-hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.brand-hero-in { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 34px 0; }
.brand-hero .brand-logo { width: 110px; height: 80px; }
.brand-hero .brand-mono { width: 96px; height: 80px; font-size: 26px; border-radius: 20px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 12px; }
.facts div { font-size: 13px; color: var(--ink-3); }
.facts b { display: block; color: var(--ink); font-size: 15px; }
.link-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* model page */
.model-top { display: grid; grid-template-columns: 1.45fr 1fr; gap: 32px; padding: 20px 0 40px; align-items: start; }
.gallery-main { position: relative; aspect-ratio: 16/10; border-radius: 22px; overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow-lg); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .credit { position: absolute; right: 10px; bottom: 10px; font-size: 11px; padding: 4px 8px; border-radius: 8px; background: rgba(0,0,0,.55); color: #eee; max-width: 70%; }
.gallery-main .credit a { text-decoration: underline; }
.gallery-main .view { position: absolute; left: 12px; top: 12px; font-size: 12px; padding: 4px 10px; border-radius: 8px; background: rgba(0,0,0,.55); color: #fff; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: #111; display: grid; place-items: center; box-shadow: var(--shadow); }
.gallery-nav.prev { left: 12px; } .gallery-nav.next { right: 12px; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumbs button { width: 96px; aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--surface-2); }
.thumbs button.on { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buybox { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); position: sticky; top: 84px; }
.buybox .bigprice { font-family: var(--display); font-size: 34px; font-weight: 700; line-height: 1.1; }
.buybox .bigprice small { font-size: 14px; font-weight: 500; color: var(--ink-3); font-family: var(--font); display: block; }
.keyspecs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 18px 0; }
.keyspecs div { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.keyspecs b { display: block; font-family: var(--display); font-size: 18px; }
.keyspecs span { font-size: 12px; color: var(--ink-3); }
.actions { display: flex; flex-direction: column; gap: 8px; }
.actions .btn { justify-content: center; }
.source-note { font-size: 12px; color: var(--ink-3); margin-top: 12px; }
.source-note a { text-decoration: underline; }
.tabs-sec { display: grid; grid-template-columns: 1fr; gap: 28px; padding-bottom: 60px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.highlights li { padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border-left: 3px solid var(--accent); font-size: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.spec-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.spec-groups h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 6px; font-family: var(--font); }
.spec-groups dl { margin: 0; }
.spec-groups dl div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec-groups dt { color: var(--ink-2); }
.spec-groups dd { margin: 0; font-weight: 600; text-align: right; }
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.video { border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 16/9; position: relative; }
.video a.yt { all: unset; background-color: #1b1d22; cursor: pointer; position: absolute; inset: 0; display: grid; place-items: center; background-size: cover; background-position: center; }
.video a.yt::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,.7)); }
.video .play { position: relative; width: 66px; height: 66px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.video .vt { position: absolute; left: 14px; right: 14px; bottom: 12px; color: #fff; font-size: 13px; font-weight: 600; }
.video .vt small { display: block; font-weight: 500; opacity: .8; }
.video iframe { width: 100%; height: 100%; border: 0; }

/* compare */
.cmp-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.cmp-slot { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.cmp-slot .card-media { aspect-ratio: 16/9; }
.cmp-slot .in { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.cmp-slot.empty-slot { border-style: dashed; align-items: stretch; justify-content: center; padding: 16px; gap: 10px; color: var(--ink-3); }
.cmp-table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.cmp-table th:first-child, .cmp-table td:first-child { position: sticky; left: 0; background: var(--surface); min-width: 170px; color: var(--ink-2); font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 14px; }
.cmp-table td { min-width: 180px; font-weight: 600; }
.cmp-table tr.grp td { background: var(--surface-2); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 700; }
.cmp-table td.best { color: var(--best); }
.cmp-table td.best::after { content: " ●"; font-size: 10px; vertical-align: 2px; }
.cmp-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 60; background: var(--ink); color: var(--bg); border-radius: 18px; padding: 10px 10px 10px 18px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-lg); max-width: calc(100% - 24px); }
.cmp-bar .thumbs-mini { display: flex; gap: 6px; }
.cmp-bar .thumbs-mini span { width: 46px; height: 32px; border-radius: 7px; overflow: hidden; background: #333; display: block; }
.cmp-bar .thumbs-mini img { width: 100%; height: 100%; object-fit: cover; }
.cmp-bar .btn { background: var(--accent); border-color: var(--accent); color: #fff; }
.cmp-bar .x { background: transparent; border: 0; color: var(--bg); opacity: .7; font-size: 13px; }

/* brands compare */
.brand-table td .mini-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; min-width: 120px; background: var(--surface-2); }
.brand-table td .mini-bar span { display: block; height: 100%; }
.brand-table td.name { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.brand-table .brand-logo { width: 46px; height: 30px; }
.brand-table .brand-mono { width: 40px; height: 30px; font-size: 12px; border-radius: 8px; }
.brand-table th button { all: unset; cursor: pointer; }
.brand-table th button:hover { color: var(--ink); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); margin: 10px 0 0; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* search overlay */
.search-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(10, 10, 12, .55); backdrop-filter: blur(6px); display: flex; justify-content: center; padding: 10vh 16px 16px; }
.search-overlay[hidden] { display: none; }
.search-box { width: min(640px, 100%); background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; align-self: start; }
.search-box input { width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 20px 22px; font: inherit; font-size: 18px; background: transparent; color: var(--ink); outline: none; }
.search-results { max-height: 60vh; overflow: auto; }
.search-results a { display: flex; align-items: center; gap: 14px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.search-results a:hover, .search-results a.sel { background: var(--surface-2); }
.search-results .st { width: 64px; height: 40px; border-radius: 8px; overflow: hidden; background: var(--surface-2); flex: none; }
.search-results .st img { width: 100%; height: 100%; object-fit: cover; }
.search-results small { color: var(--ink-3); display: block; }

/* footer */
.footer { border-top: 1px solid var(--line); background: var(--surface); padding: 40px 0; margin-top: 40px; }
.footer-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.footer a { display: block; color: var(--ink-2); padding: 3px 0; font-size: 14px; }
.footer a:hover { color: var(--accent); }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-family: var(--font); }
.prose { max-width: 760px; }
.prose p, .prose li { color: var(--ink-2); }
.credits-list { columns: 2; column-gap: 28px; font-size: 13px; }
.credits-list div { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid var(--line); }
.credits-list a { text-decoration: underline; }

.fade-in { animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* responsive */
@media (max-width: 1000px) {
  .hero-in, .model-top { grid-template-columns: 1fr; }
  .buybox { position: static; }
  .cat-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: auto 0 0 0; top: 64px; z-index: 70; border-radius: 0; max-height: none; transform: translateX(-100%); transition: transform .3s; }
  .filters.open { transform: none; }
  .filter-toggle { display: inline-flex; }
  .cmp-picker { grid-template-columns: repeat(2, 1fr); }
  .quick { grid-template-columns: repeat(2, 1fr); }
  .brand-hero-in { grid-template-columns: auto 1fr; }
  .brand-hero-in > .link-row { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav { position: fixed; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 16px; margin: 0; display: none; }
  .nav.open { display: flex; }
  .menu-btn { display: grid; }
  .hero-in { padding: 36px 0; gap: 26px; }
  .hero-stats { gap: 18px; }
  .footer-in { grid-template-columns: 1fr; }
  .credits-list { columns: 1; }
  .grid { grid-template-columns: 1fr; }
  .thumbs button { width: 72px; }
  .cmp-bar { left: 12px; right: 12px; transform: none; }
  .cmp-bar .thumbs-mini { display: none; }
  .brand-hero-in { grid-template-columns: 1fr; }
}
.placeholder { position: relative; flex-direction: column; gap: 6px; background: radial-gradient(120% 90% at 50% 100%, color-mix(in srgb, var(--accent) 14%, var(--surface-2)), var(--surface-2)); }
.placeholder svg { width: 46%; max-width: 220px; opacity: .35; color: var(--ink); }
.placeholder span { font-size: 15px; color: var(--ink-2); }

.price.promo b { color: var(--accent); }
.price.promo s { color: var(--ink-3); }
.promo-box { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.promo-box span { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.promo-box b { font-family: var(--display); font-size: 22px; }
.promo-box small { display: block; font-size: 12px; color: var(--ink-2); }
td.num, th.num { white-space: nowrap; }
.brand-table .clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; color: var(--ink-2); max-width: 260px; }
.brand-table td { vertical-align: middle; }
/* overflow hardening for narrow screens */
.hero-in > *, .model-top > *, .cat-layout > *, .cmp-picker > *, .quick > *, .grid > *, .brand-grid > * { min-width: 0; }
.cmp-slot select { max-width: 100%; }
@media (max-width: 1000px) {
  .hero-in, .model-top, .cat-layout { grid-template-columns: minmax(0, 1fr); }
  .cmp-picker, .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) { .grid { grid-template-columns: minmax(0, 1fr); } .hero h1 { font-size: 30px; } .page-head h1 { font-size: 28px; } }
@media (max-width: 420px) { .logo-text small { display: none; } .top-actions { gap: 4px; } .topbar-in { gap: 12px; } .icon-btn { width: 38px; height: 38px; } .cmp-picker { grid-template-columns: minmax(0, 1fr); } }
.tabs-sec > *, .panel, .section-head > * { min-width: 0; }
@media (max-width: 720px) {
  .section-head { flex-wrap: wrap; align-items: start; }
  .section-head .link-row { width: 100%; }
  .highlights { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: 18px; }
}
.brand-mono { width: auto !important; min-width: 52px; padding: 0 10px; font-size: 13px !important; letter-spacing: .08em; white-space: nowrap; }
.brand-hero .brand-mono { font-size: 20px !important; padding: 0 18px; }

.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-logo.light { background: #1b1d22; border-radius: 10px; padding: 6px 8px; }
:root[data-theme="dark"] .brand-logo.light img { filter: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-logo.light img { filter: none; } }

.card-name, .bigprice, .price b, .keyspecs b, .hero-stats b, .quick b, .logo-text { font-stretch: 110%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.video a.yt-out { all: unset; cursor: pointer; position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, #22252c, #0d0e11); background-size: cover; background-position: center; }

/* ================= v2 components ================= */
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 300; }
.skip:focus { left: 8px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.hero .eyebrow { color: #ff8a73; }
.lead-s { font-size: 17px; max-width: 760px; margin: .3em 0 0; }
.sub { margin: .4em 0 0; }
.small { font-size: 13px; }
.accent { color: var(--accent); font-weight: 700; }
.pad { padding: 16px 22px; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.toast { position: fixed; left: 50%; top: 80px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; z-index: 200; box-shadow: var(--shadow-lg); font-size: 14px; }
.title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.title-row h1 { margin: 0; }
.chip.ncap { gap: 8px; }
.text-link { display: inline-block; color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; margin-top: 8px; }
.topbar-in { gap: 16px; }
.nav { margin-left: 4px; gap: 2px; }
.nav a { padding: 8px 11px; font-size: 14.5px; white-space: nowrap; }
.ref-tag { position: absolute; right: 10px; top: 12px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; }
.ref-mini { font-size: 11px; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); color: var(--ink-3); font-weight: 600; }
.stars { display: inline-flex; gap: 2px; vertical-align: -1px; }
.stars i { width: 12px; height: 12px; background: var(--line); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.stars i.on { background: #f5a524; }
.stars.small i { width: 11px; height: 11px; }

.tools-strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.tools-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding-block: 22px; }
.tools-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: 0 8px; }
.tool { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px; padding: 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg); transition: border-color .2s, transform .2s; }
.tool:hover { border-color: var(--accent); transform: translateY(-2px); }
.tool .tool-ico { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 800; font-family: var(--display); }
.tool b { font-size: 15px; }
.tool span:last-child { font-size: 13px; color: var(--ink-2); }
.tool.big { padding: 22px; }

.savings { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: center; }
.mini-calc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: grid; gap: 10px; }
.mini-calc label { font-weight: 600; font-size: 14px; }
.mini-calc select { padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; }
input[type=range] { width: 100%; accent-color: var(--accent); }
.mc-result { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 6px 0; }
.mc-result div { background: var(--surface-2); border-radius: 12px; padding: 12px; }
.mc-result span, .mc-result small { display: block; font-size: 12px; color: var(--ink-3); }
.mc-result b { font-family: var(--display); font-size: 21px; font-stretch: 110%; }
.mc-result .good { background: color-mix(in srgb, var(--bev) 14%, var(--surface)); }
.mc-result .good b { color: var(--bev); }

.band { background: var(--surface); border-block: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.versus-list { display: grid; gap: 8px; }
.versus-list.wide { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.versus-row { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 10px; align-items: center; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); font-weight: 600; font-size: 14px; }
.versus-row:hover { border-color: var(--accent); }
.versus-row i { font-style: normal; font-size: 11px; font-weight: 800; color: var(--accent); padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); }
.versus-row span:nth-of-type(2) { text-align: right; }
.versus-row small { color: var(--ink-3); font-weight: 500; }

.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.guide-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.guide-card b { font-family: var(--display); font-size: 18px; line-height: 1.25; font-stretch: 105%; }
.guide-card .muted { font-size: 14px; }
.guide-card small { margin-top: auto; color: var(--ink-3); font-size: 12px; }
.tag { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); }

.newsletter { margin-top: 14px; display: grid; gap: 6px; max-width: 420px; }
.newsletter label { font-weight: 600; font-size: 14px; }
.nl-row { display: flex; gap: 6px; }
.nl-row input, .form-grid input, .form-grid select, .review-form textarea, .calc-form input[type=number], .calc-form select, .community-pick select, .map-side input { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.form-grid label, label.full { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
label.full { margin-top: 12px; }
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-2); margin: 10px 0; }
.consent a { text-decoration: underline; }
.form-msg { margin: 6px 0 0; font-size: 14px; font-weight: 600; min-height: 1em; }
.form-msg.ok { color: var(--bev); }
.form-msg.err { color: var(--accent); }
.seg-toggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); margin-bottom: 12px; flex-wrap: wrap; }
.seg-toggle label { padding: 7px 12px; border-radius: 9px; cursor: pointer; font-size: 14px; font-weight: 600; position: relative; }
.seg-toggle input { position: absolute; opacity: 0; }
.seg-toggle label:has(input:checked) { background: var(--surface); box-shadow: var(--shadow); }
.switch { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }

.gallery-main .slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .35s; }
.gallery-main .slide.on { opacity: 1; z-index: 1; }
.gallery-main .slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .gallery-nav { z-index: 2; }
.credit-dot { position: absolute; right: 10px; bottom: 10px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: rgba(0,0,0,.45); color: #fff; opacity: .7; }
.credit-dot:hover { opacity: 1; }
.placeholder.big { gap: 10px; }
.placeholder.big b { font-size: 26px; color: var(--ink); }
.placeholder.big small { font-size: 14px; font-family: var(--font); font-weight: 500; }
.actions .link-row .btn { flex: 1; justify-content: center; }
.btn.ghost { border-style: dashed; }
.model-body { display: grid; gap: 28px; padding-bottom: 60px; }
.model-body > * { min-width: 0; }
.subnav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 64px); z-index: 20; display: flex; gap: 4px; overflow-x: auto; padding: 8px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--line); scrollbar-width: none; }
.subnav a { padding: 7px 12px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.subnav a:hover { background: var(--surface-2); color: var(--ink); }
section[id] { scroll-margin-top: 130px; }
.cost-panel { display: flex; gap: 24px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.cost-panel > div { flex: 1 1 520px; min-width: 0; }
.cost-compare { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 12px 0; }
.cost-compare div { background: var(--surface-2); border-radius: 12px; padding: 14px; }
.cost-compare span, .cost-compare small { display: block; font-size: 12px; color: var(--ink-3); }
.cost-compare b { font-family: var(--display); font-size: 24px; font-stretch: 110%; }
.cost-compare .good b { color: var(--bev); }
.cost-compare .bad b { color: var(--accent); }
.table-wrap { overflow-x: auto; }
.panel.flat { padding: 0; overflow: hidden; }
.panel.flat table th:first-child, .panel.flat table td:first-child { padding-left: 18px; }
.expert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.expert { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.expert header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.expert .score { font-family: var(--display); font-weight: 800; padding: 3px 10px; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: 14px; white-space: nowrap; }
.expert p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.expert ul { margin: 0; padding-left: 18px; font-size: 13.5px; }
.expert .pros li::marker { content: "+  "; color: var(--bev); font-weight: 800; }
.expert .cons li::marker { content: "-  "; color: var(--accent); font-weight: 800; }
.expert a { margin-top: auto; font-weight: 600; color: var(--accent); font-size: 14px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.kv { margin: 8px 0; }
.kv div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }
.ncap-big { font-size: 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ncap-big .stars i { width: 20px; height: 20px; }
.community .review-list { display: grid; gap: 12px; margin-bottom: 20px; }
.review { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.review header { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.review header small { color: var(--ink-3); }
.review p { margin: 8px 0 0; font-size: 14.5px; }
.review .reply { margin-top: 10px; padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 8px; font-size: 14px; }
.review-model { font-weight: 700; color: var(--accent); font-size: 14px; }
.review-feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.avg { font-size: 16px; margin: 0 0 6px; }
.community-pick { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.community-pick label { font-weight: 700; }
.community-pick select { max-width: 380px; }
.rules { margin-top: 24px; }
.lead-modal { border: 0; border-radius: 22px; padding: 0; width: min(560px, calc(100% - 24px)); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
.lead-modal::backdrop { background: rgba(10, 10, 12, .6); backdrop-filter: blur(4px); }
.lead-form { padding: 26px; position: relative; }
.lead-form .x { position: absolute; right: 14px; top: 10px; border: 0; background: transparent; font-size: 26px; color: var(--ink-3); }
.lead-form h2 { margin-bottom: 4px; }

.toolbar-r { display: flex; gap: 8px; }
.seg-table tr.is-ref td, .bench-table tr.is-ref td { color: var(--ink-2); background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
.vs-heads { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin-bottom: 20px; }
.vs-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.vs-card b { font-family: var(--display); font-size: 20px; padding: 12px 16px 0; font-stretch: 108%; }
.vs-card > span:last-child { padding: 0 16px 14px; color: var(--ink-2); font-weight: 600; }
.vs-mid { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--accent); }
.vs-table th[scope=row] { font-weight: 600; color: var(--ink-2); text-transform: none; letter-spacing: 0; font-size: 14px; }
.vs-table td.best { color: var(--best); font-weight: 700; }
.verdict { margin: 20px 0; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); margin: 10px 0 0; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; background: var(--ec, var(--ink-3)); }
.legend .lg-a { background: var(--accent); }
.legend .lg-b { background: var(--ink-3); }
.mini-bar span { background: var(--ec); }
.brand-table td.name a { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.brand-logo.sm { width: 46px; height: 30px; }
.brand-mono.sm { height: 30px; font-size: 11px !important; border-radius: 8px; }
.brand-logo.xl { width: 120px; height: 84px; }
.brand-mono.xl { height: 84px; font-size: 22px !important; border-radius: 20px; padding: 0 20px; }
.warranty { font-size: 14px; margin: 12px 0 4px; }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--ink); }
th[aria-sort=ascending]::after { content: " \25B2"; font-size: 9px; }
th[aria-sort=descending]::after { content: " \25BC"; font-size: 9px; }
.seg-bench { margin-bottom: 22px; }
.scatter-wrap { overflow-x: auto; margin: 6px 0 14px; }
.scatter { width: 100%; min-width: 520px; height: auto; }
.scatter .ax { stroke: var(--ink-3); stroke-width: 1; }
.scatter .axl, .scatter .tick { fill: var(--ink-3); font-size: 12px; font-family: var(--font); }
.scatter .dot { stroke: var(--surface); stroke-width: 2; cursor: pointer; }
.scatter .dot.cn { fill: var(--accent); }
.scatter .dot.ref { fill: var(--ink-3); }

.calc { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 60px; }
.calc-form { position: sticky; top: 80px; display: grid; gap: 14px; max-height: calc(100vh - 96px); overflow: auto; }
.calc-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.calc-form legend { font-family: var(--display); font-weight: 800; font-size: 16px; margin-bottom: 6px; font-stretch: 108%; }
.calc-form label { display: grid; gap: 4px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.calc-form output { color: var(--ink); font-weight: 700; }
.calc-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hint { font-size: 12.5px; color: var(--ink-3); margin: 0; }
.hint a { text-decoration: underline; }
.calc-out { display: grid; gap: 18px; min-width: 0; }
.panel.dark { background: var(--hero); color: var(--hero-ink); border-color: transparent; }
.panel.dark .eyebrow { color: #ff8a73; }
.big-saving b { display: block; font-family: var(--display); font-size: clamp(36px, 6vw, 60px); font-weight: 800; font-stretch: 112%; color: #4fe0a6; line-height: 1; }
.big-saving.bad b { color: #ff8a73; }
.big-saving span { color: #c9c7c2; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.kpis div { background: rgba(255,255,255,.06); border-radius: 12px; padding: 12px; }
.kpis span, .kpis small { display: block; font-size: 12px; color: #a9a7a2; }
.kpis b { font-family: var(--display); font-size: 20px; color: #fff; font-stretch: 108%; }
.chart svg { width: 100%; height: auto; }
.chart .grid { stroke: var(--line); }
.chart .tick { fill: var(--ink-3); font-size: 12px; }
.chart .ln-a { fill: none; stroke: var(--accent); stroke-width: 3; }
.chart .ln-b { fill: none; stroke: var(--ink-3); stroke-width: 3; stroke-dasharray: 6 5; }
.chart .pt-a { fill: var(--accent); }
.chart .pt-b { fill: var(--ink-3); }
.calc-table tr.total td, .calc-table tr.total th { font-weight: 800; border-top: 2px solid var(--ink); }
.calc-table th[scope=row] { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink-2); font-weight: 500; }
.method ol { padding-left: 20px; display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.method a { text-decoration: underline; }

.map-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 18px; height: min(76vh, 760px); }
.map-side { display: flex; flex-direction: column; gap: 14px; overflow: hidden; padding: 16px; }
.map-side h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 0 0 6px; font-family: var(--font); }
.map-side label { display: grid; gap: 4px; font-weight: 600; font-size: 13px; }
.station-list { overflow: auto; display: grid; gap: 6px; align-content: start; }
.station { all: unset; cursor: pointer; display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); }
.station:hover, .station:focus-visible { border-color: var(--accent); }
.station b { display: block; font-size: 13.5px; }
.station small { color: var(--ink-3); font-size: 12px; }
.station .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.map-box { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 420px; }
#map { width: 100%; height: 100%; min-height: 420px; }
.pin span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); font-size: 12px; color: #fff; }
.pop { font: 13px/1.45 var(--font); }
.leaflet-container { font-family: var(--font); background: var(--surface-2); }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; padding-block: 28px 60px; }
.article h1 { font-size: clamp(28px, 4vw, 44px); }
.prose { font-size: 17px; line-height: 1.7; max-width: 72ch; }
.prose h2 { font-size: 26px; margin: 1.6em 0 .5em; }
.prose h3 { font-size: 19px; margin: 1.3em 0 .4em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose table { margin: 1em 0; font-size: 14.5px; display: block; overflow-x: auto; }
.prose table th { background: var(--surface-2); }
.prose blockquote { margin: 1em 0; padding: 12px 16px; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 12px 12px 0; }
.page-prose { max-width: 820px; }
.sources ol { font-size: 14px; color: var(--ink-2); padding-left: 20px; }
.sources a { text-decoration: underline; }
.article-side { display: grid; gap: 16px; align-content: start; position: sticky; top: 84px; }
.toc { display: grid; gap: 6px; font-size: 14px; }
.toc a { color: var(--ink-2); }
.toc a:hover { color: var(--accent); }
.side-cta { display: grid; gap: 8px; }
.side-cta .text-link { margin: 0; font-size: 14px; }
.credits-list { columns: 2; column-gap: 28px; font-size: 13px; }
.credits-list > div { break-inside: avoid; padding: 8px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; scroll-margin-top: 90px; }
.credits-list > div:target { background: var(--accent-soft); }
.footer-in { grid-template-columns: 2fr 1fr 1fr 1fr; }
.footer-base { font-size: 12.5px; padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--line); }

@media (max-width: 1180px) { .nav a { padding: 8px; font-size: 13.5px; } }
@media (max-width: 1080px) {
  .nav { position: fixed; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 16px; margin: 0; display: none; box-shadow: var(--shadow-lg); }
  .nav.open { display: flex; }
  .nav a { font-size: 16px; padding: 10px 12px; }
  .menu-btn { display: grid; }
}
@media (max-width: 1000px) {
  .tools-grid, .tools-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .savings, .split, .two-col, .calc, .map-layout, .article-layout { grid-template-columns: minmax(0, 1fr); }
  .calc-form { position: static; max-height: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-layout { height: auto; }
  .map-box, #map { height: 60vh; }
  .map-side { order: 2; max-height: 520px; }
  .article-side { position: static; }
  .footer-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .tools-grid, .tools-grid.two { grid-template-columns: minmax(0, 1fr); }
  .mc-result, .cost-compare { grid-template-columns: minmax(0, 1fr); }
  .vs-heads { grid-template-columns: minmax(0, 1fr); }
  .vs-mid { text-align: center; }
  .credits-list { columns: 1; }
  .footer-in { grid-template-columns: minmax(0, 1fr); }
  .versus-list.wide { grid-template-columns: minmax(0, 1fr); }
  .calc-form .two { grid-template-columns: minmax(0, 1fr); }
  .prose { font-size: 16px; }
  .subnav { top: calc(env(safe-area-inset-top, 0px) + 64px); }
}

.share-bars, .hbars { display: grid; gap: 10px; margin: 12px 0; }
.share-row, .hbar { display: grid; grid-template-columns: 180px minmax(0, 1fr) 110px; gap: 12px; align-items: center; font-size: 14px; }
.share-row small { grid-column: 3; color: var(--ink-3); font-size: 12px; margin-top: -8px; }
.share-row .lbl, .hbar .lbl { font-weight: 600; }
.hbar .lbl small { font-weight: 500; color: var(--ink-3); }
.track { height: 14px; border-radius: 7px; background: var(--surface-2); overflow: hidden; }
.track i { display: block; height: 100%; border-radius: 7px; background: var(--accent); }
.track i.grp { background: color-mix(in srgb, var(--accent) 40%, var(--surface-2)); }
.hbar b, .share-row b { font-family: var(--display); font-stretch: 108%; text-align: right; font-variant-numeric: tabular-nums; }
.hbar:hover .lbl { color: var(--accent); }
.notes { font-size: 13px; color: var(--ink-2); padding-left: 18px; }
.notes a { text-decoration: underline; color: var(--ink-3); }
@media (max-width: 720px) { .share-row, .hbar { grid-template-columns: 110px minmax(0, 1fr) 84px; font-size: 13px; } }

.hero-s .hero-in { padding: 40px 0; align-items: center; }
.hero-s .crumbs, .hero-s .crumbs a { color: #a9a7a2; }
.hero-s h1 { font-size: clamp(28px, 4.2vw, 46px); }
.charge-tool { color: var(--ink); display: grid; gap: 10px; }
.charge-tool label { font-weight: 700; font-size: 14px; }
.charge-tool select { padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; }
.ct-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ct-grid div { background: var(--surface-2); border-radius: 12px; padding: 12px; }
.ct-grid div.hl { background: var(--accent-soft); }
.ct-grid span { display: block; font-size: 12px; color: var(--ink-3); }
.ct-grid b { font-family: var(--display); font-size: 22px; font-stretch: 108%; }
.steps { padding-left: 20px; display: grid; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.quote { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 28px; align-items: start; }
.lead-form.inline { padding: 0; }
@media (max-width: 1000px) { .quote { grid-template-columns: minmax(0, 1fr); } }

.vs-table { table-layout: fixed; }
.vs-table th[scope=row] { width: 26%; }
.vs-table td { white-space: normal; text-align: right; font-weight: 600; }
.vs-table td.best::after { content: " ●"; font-size: 9px; vertical-align: 2px; }
.bench-table td:last-child { min-width: 220px; }
.scatter .lab { font-size: 10.5px; fill: var(--ink-2); font-family: var(--font); pointer-events: none; }
.scatter .lab.cn { fill: var(--accent); font-weight: 600; }

/* Saving highlight: option 4, outline + brand red line (chosen 2026-10-13) */
.mc-result .good, .cost-compare .good { background: transparent; outline: 1.5px solid var(--ink); outline-offset: -1.5px; }
.mc-result .good span, .mc-result .good small, .cost-compare .good span, .cost-compare .good small { color: var(--ink-3); }
.mc-result .good b, .cost-compare .good b { color: var(--ink); }
.mc-result .good b::after, .cost-compare .good b::after { content: ""; display: block; width: 56px; height: 3px; border-radius: 2px; background: var(--accent); margin-top: 6px; }
.big-saving b { color: #ffffff; }
.big-saving b::after { content: ""; display: block; width: 72px; height: 4px; border-radius: 2px; background: var(--accent); margin-top: 10px; }
.cmp-table td.best, .vs-table td.best, .bench-table td.best { color: var(--ink); font-weight: 800; }
.cmp-table td.best::after, .vs-table td.best::after { content: " \25CF"; color: var(--accent); font-size: 10px; vertical-align: 2px; }
