/* E-Bike Pakistan — design system
   Thesis: electric clarity, night-first. Deep graphite canvas, electric-mint accents,
   soft-bordered surfaces, tabular numerals for specs, generous air. Fast: system fonts only.
   Dark is the default theme (matching modern EV product design); light lives behind
   html[data-theme="light"], toggled from the header and remembered in localStorage. */

:root {
  color-scheme: dark;
  --bg: #0b0f0e;
  --surface: #121816;
  --surface-2: #182019;
  --surface-3: #1e2823;
  --ink: #eef4f1;
  --ink-2: #c3cfc9;
  --ink-3: #93a29a;
  --line: #26302b;
  --line-2: #36443d;
  --accent: #2fce8f;
  --accent-strong: #4ddba1;
  --accent-soft: #123c2c;
  --accent-ink: #8ff0c5;
  --accent-contrast: #06251b;
  --volt: #cdf25c;
  --danger: #f5774e;
  --warn-bg: #2a2213;
  --warn-line: #56451f;
  --warn-ink: #f4d489;
  --panel: #101715;
  --panel-ink: #edf3f0;
  --radius-s: 10px;
  --radius-m: 14px;
  --radius-l: 20px;
  --radius-full: 999px;
  --shadow-s: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-m: 0 6px 24px -8px rgba(0, 0, 0, 0.55);
  --shadow-l: 0 16px 48px -16px rgba(0, 0, 0, 0.6);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-num: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
  --w: 1180px;
  --w-narrow: 780px;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f8f7;
  --surface: #ffffff;
  --surface-2: #eef2f0;
  --surface-3: #e6ebe8;
  --ink: #0d1412;
  --ink-2: #38443f;
  --ink-3: #64716b;
  --line: #dfe6e2;
  --line-2: #cbd5d0;
  --accent: #0b9d6b;
  --accent-strong: #078257;
  --accent-soft: #dcf5ea;
  --accent-ink: #055c3e;
  --accent-contrast: #ffffff;
  --volt: #b8e635;
  --danger: #c2410c;
  --warn-bg: #fff7e6;
  --warn-line: #f2d9a0;
  --warn-ink: #744d00;
  --panel: #0d1412;
  --panel-ink: #f2f6f4;
  --shadow-s: 0 1px 2px rgba(13, 20, 18, 0.05);
  --shadow-m: 0 6px 24px -8px rgba(13, 20, 18, 0.12);
  --shadow-l: 0 16px 48px -16px rgba(13, 20, 18, 0.18);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--surface);
  padding: 10px 16px; border-radius: 0 0 10px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.2;
  letter-spacing: -0.021em;
  font-weight: 750;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.6vw, 3rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.02rem; }
p { margin: 0 0 1em; }
strong { font-weight: 680; }

.wrap { max-width: var(--w); margin-inline: auto; padding-inline: clamp(16px, 4vw, 28px); }
.wrap-narrow { max-width: var(--w-narrow); margin-inline: auto; padding-inline: clamp(16px, 4vw, 28px); }
.section { padding-block: clamp(36px, 6vw, 64px); }
.section-tight { padding-block: clamp(24px, 4vw, 40px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--accent-strong); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--accent); border-radius: 2px; }

.lead { font-size: 1.14rem; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-3); }
.small { font-size: 0.875rem; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 18px;
  min-height: 62px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; letter-spacing: -0.03em; font-size: 1.13rem; color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: #0d1412; border: 1px solid rgba(255, 255, 255, 0.09); color: var(--volt);
  display: grid; place-items: center; flex: none;
}
.brand-mark svg { width: 19px; height: 19px; }
.brand small { display: block; font-size: 0.64rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); line-height: 1; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a {
  color: var(--ink-2); font-weight: 600; font-size: 0.92rem;
  padding: 8px 12px; border-radius: var(--radius-s);
}
.nav a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--accent-strong); background: var(--accent-soft); }
.nav-cta {
  margin-left: 8px;
  background: var(--ink) !important; color: var(--bg) !important;
  padding: 9px 16px !important; border-radius: var(--radius-full) !important;
  display: inline-flex; align-items: center; gap: 7px;
}
.nav-cta:hover { opacity: 0.88; }
.header-tools { display: flex; align-items: center; gap: 8px; }
.nav-toggle, .theme-toggle {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-s); padding: 8px 10px; cursor: pointer; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.nav-toggle { display: none; }
.nav-toggle:hover, .theme-toggle:hover { border-color: var(--line-2); color: var(--accent-strong); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
html[data-theme="light"] .theme-toggle .i-sun { display: block; }
html[data-theme="light"] .theme-toggle .i-moon { display: none; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .header-tools { margin-left: auto; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px 16px 18px; gap: 2px;
    box-shadow: var(--shadow-m);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; font-size: 1rem; }
  .nav-cta { margin-left: 0; justify-content: center; }
}

/* ---------- Buttons / chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 680; font-size: 0.96rem;
  padding: 12px 22px; border-radius: var(--radius-full);
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { box-shadow: var(--shadow-m); }
.btn-accent { background: var(--accent); color: var(--accent-contrast); }
.btn-accent:hover { background: var(--accent-strong); box-shadow: var(--shadow-m); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 8px 15px; font-size: 0.88rem; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 650;
  padding: 5px 11px; border-radius: var(--radius-full);
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line);
}
.chip-accent { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.chip-volt { background: var(--volt); color: #253000; border-color: transparent; }
.chip-outline { background: transparent; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em;
  padding: 5px 12px; border-radius: var(--radius-full);
  background: var(--ink); color: var(--bg);
}
.badge-accent { background: var(--accent); color: var(--accent-contrast); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-s);
  overflow: hidden;
}
.card-pad { padding: clamp(18px, 3vw, 26px); }
.card-hover { transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); border-color: var(--line-2); }

.grid { display: grid; gap: clamp(14px, 2.2vw, 22px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Bike card ---------- */
.bike-card { display: flex; flex-direction: column; position: relative; }
.bike-media {
  position: relative; aspect-ratio: 16 / 10;
  background:
    radial-gradient(120% 110% at 85% 8%, color-mix(in srgb, var(--accent) 14%, transparent) 0%, transparent 55%),
    linear-gradient(160deg, var(--surface-2) 0%, var(--surface-3) 100%);
  display: grid; place-items: center; overflow: hidden;
}
.bike-media svg { width: 86%; height: auto; }
.bike-media .bike-photo { width: 100%; height: 100%; object-fit: contain; padding: 6px 10px; }
.bike-media .badge { position: absolute; top: 12px; left: 12px; }
.bike-fav {
  position: absolute; top: 10px; right: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--line); border-radius: var(--radius-full);
  padding: 6px 11px; font-size: 0.78rem; font-weight: 660; color: var(--ink-2);
  cursor: pointer; backdrop-filter: blur(6px);
}
.bike-fav input { accent-color: var(--accent); margin: 0; }
.bike-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.bike-brand { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.bike-name { font-size: 1.16rem; font-weight: 760; letter-spacing: -0.02em; margin: 0 0 6px; }
.bike-name a { color: var(--ink); }
.bike-name a:hover { text-decoration: none; color: var(--accent-strong); }
.bike-price { font-family: var(--font-num); font-size: 1.18rem; font-weight: 700; margin-bottom: 10px; }
.bike-price small { font-family: var(--font); font-size: 0.76rem; font-weight: 550; color: var(--ink-3); display: block; }
.spec-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); margin-top: auto; padding-top: 12px; gap: 8px;
}
.spec-strip div { font-size: 0.8rem; color: var(--ink-3); }
.spec-strip b { display: block; font-family: var(--font-num); font-size: 0.94rem; font-weight: 680; color: var(--ink); }

/* ---------- Spec table ---------- */
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { font-weight: 650; color: var(--ink-3); width: 38%; background: var(--surface-2); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table td .num { font-weight: 640; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }
.table-scroll table { min-width: 640px; margin: 0; }
.table-scroll .spec-table th, .table-scroll .spec-table td { min-width: 150px; }

/* ---------- Price list table ---------- */
.price-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.price-table th, .price-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.price-table thead th { background: var(--surface-2); color: var(--ink-3); font-weight: 660; }
.price-table tbody tr:hover { background: var(--surface-2); }
.price-table td:first-child { font-weight: 620; }
.price-table td strong { font-family: var(--font-num); white-space: nowrap; }
.compare-table th:first-child, .compare-table td:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 168px; box-shadow: 1px 0 0 var(--line); }

/* ---------- Prose (guides) ---------- */
.prose { font-size: 1.02rem; color: var(--ink-2); }
.prose h2 { color: var(--ink); margin-top: 1.6em; }
.prose h3 { color: var(--ink); margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.45em; }
.prose blockquote {
  margin: 1.4em 0; padding: 14px 20px;
  border-left: 3px solid var(--accent); background: var(--surface-2);
  border-radius: 0 var(--radius-s) var(--radius-s) 0; color: var(--ink-2);
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 0.94rem; }
.prose th, .prose td { text-align: left; padding: 10px 13px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--surface-2); font-weight: 660; color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 15px 18px; font-weight: 650; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; font-weight: 500; color: var(--ink-3); transition: transform 0.2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { color: var(--accent-strong); }
.faq .faq-a { padding: 0 18px 16px; color: var(--ink-2); font-size: 0.96rem; }

/* ---------- Compare bar ---------- */
.compare-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--panel); color: var(--panel-ink);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 10px 0; box-shadow: var(--shadow-l);
  transform: translateY(110%); transition: transform 0.25s ease;
}
.compare-bar.show { transform: translateY(0); }
.compare-bar .wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.compare-bar .cb-list { display: flex; gap: 8px; flex-wrap: wrap; margin-right: auto; }
.compare-bar .cb-item { background: rgba(255, 255, 255, 0.1); border-radius: var(--radius-full); padding: 4px 12px; font-size: 0.84rem; font-weight: 620; display: inline-flex; gap: 8px; align-items: center; }
.compare-bar .cb-item button { background: none; border: 0; color: inherit; cursor: pointer; font-size: 1rem; line-height: 1; padding: 0; opacity: 0.7; }
.compare-bar .cb-item button:hover { opacity: 1; }
.compare-bar .btn-accent { background: var(--volt); color: #222d00; }
.compare-bar .btn-clear { background: transparent; border: 1px solid rgba(255, 255, 255, 0.28); color: var(--panel-ink); }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 22px; }
.filters select, .filters input[type="search"] {
  font: inherit; font-size: 0.92rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--radius-s); padding: 9px 12px;
}
.filters input[type="search"] { min-width: 200px; flex: 1; max-width: 300px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.filter-chip {
  font: inherit; font-size: 0.84rem; font-weight: 640; cursor: pointer;
  background: var(--surface); color: var(--ink-2);
  border: 1px solid var(--line); border-radius: var(--radius-full); padding: 7px 14px;
}
.filter-chip:hover { border-color: var(--line-2); }
.filter-chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.result-count { font-size: 0.88rem; color: var(--ink-3); margin-left: auto; }
.empty-note { padding: 40px; text-align: center; color: var(--ink-3); grid-column: 1 / -1; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(58% 46% at 88% 6%, color-mix(in srgb, var(--accent) 15%, transparent) 0%, transparent 70%),
    radial-gradient(40% 36% at 4% 100%, color-mix(in srgb, var(--volt) 10%, transparent) 0%, transparent 70%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(24px, 5vw, 56px); align-items: center; padding-block: clamp(40px, 7vw, 76px); }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.hero-stats .stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 14px 16px; }
.hero-stats b { display: block; font-family: var(--font-num); font-size: 1.4rem; font-weight: 720; letter-spacing: -0.02em; }
.hero-stats span { font-size: 0.8rem; color: var(--ink-3); }
.hero-art { position: relative; border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-l); aspect-ratio: 4 / 3; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: 0.82rem; color: var(--ink-3); padding-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--accent-strong); }
.crumbs .sep { opacity: 0.6; }

/* ---------- Specs grid on detail page ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 860px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 14px 16px; }
.stat-tile .k { font-size: 0.78rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 650; margin-bottom: 6px; }
.stat-tile .v { font-family: var(--font-num); font-size: 1.12rem; font-weight: 700; line-height: 1.3; }
.stat-tile .v small { display: block; font-family: var(--font); font-weight: 550; font-size: 0.78rem; color: var(--ink-3); }

/* ---------- Callouts ---------- */
.callout { border-radius: var(--radius-m); padding: 16px 20px; border: 1px solid var(--line); background: var(--surface); display: flex; gap: 12px; }
.callout-accent { border-color: color-mix(in srgb, var(--accent) 34%, var(--line)); background: var(--accent-soft); color: var(--ink); }
.callout-warn { border-color: var(--warn-line); background: var(--warn-bg); color: var(--warn-ink); }
.callout .c-icon { flex: none; margin-top: 2px; }

/* ---------- Pros / cons ---------- */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .pros-cons { grid-template-columns: 1fr; } }
.pc-box { border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); padding: 16px 18px; }
.pc-box h4 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.pc-box ul { margin: 0; padding-left: 1.2em; font-size: 0.94rem; color: var(--ink-2); }
.pc-box li { margin-bottom: 6px; }
.pc-pro h4 { color: var(--accent-strong); }
.pc-con h4 { color: var(--danger); }

/* ---------- Ad slots ---------- */
.ad-slot {
  margin: 26px 0; text-align: center;
  border: 1px dashed var(--line-2); border-radius: var(--radius-m);
  background: var(--surface-2); padding: 14px;
  min-height: 100px; display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center;
}
.ad-slot .ad-label { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); font-weight: 650; }
.ad-slot .ad-note { font-size: 0.8rem; color: var(--ink-3); }
.ad-slot ins { display: block; width: 100%; }
.ad-inline { margin: 28px 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding-block: 44px 30px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.92rem; }
.footer-grid ul a { color: var(--ink-2); }
.footer-grid ul a:hover { color: var(--accent-strong); }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 18px; font-size: 0.82rem; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.footer-note { max-width: 66ch; }
.footer-cities { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 0.86rem; }
.footer-cities-label { font-weight: 650; color: var(--ink-3); }
.footer-cities a { color: var(--ink-2); }
.footer-cities a:hover { color: var(--accent-strong); }

/* ---------- Misc ---------- */
.stack-s > * + * { margin-top: 10px; }
.stack-m > * + * { margin-top: 18px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 34px 0; }
.link-arrow::after { content: " →"; font-weight: 700; }

details.disclosure { border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }
details.disclosure > summary { cursor: pointer; padding: 13px 17px; font-weight: 650; }
details.disclosure > div { padding: 0 17px 15px; }

.src-list { font-size: 0.86rem; color: var(--ink-3); }
.src-list li { margin-bottom: 6px; }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }

.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-field { display: grid; gap: 6px; margin-bottom: 14px; }
.calc-field label { font-size: 0.86rem; font-weight: 640; color: var(--ink-2); }
.calc-field input, .calc-field select {
  font: inherit; padding: 10px 12px; border-radius: var(--radius-s);
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
}
.calc-out { background: var(--panel); color: var(--panel-ink); border: 1px solid rgba(255, 255, 255, 0.09); border-radius: var(--radius-m); padding: 20px; }
.calc-out .big { font-family: var(--font-num); font-size: 2rem; font-weight: 750; letter-spacing: -0.02em; }
.calc-out .line { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.94rem; }
.calc-out .line:last-child { border-bottom: 0; }

/* TOC */
.toc { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 16px 20px; font-size: 0.92rem; }
.toc ol { margin: 8px 0 0; padding-left: 1.2em; display: grid; gap: 6px; }

/* Editorial score bar */
.score-row { display: grid; grid-template-columns: 190px 1fr 52px; gap: 12px; align-items: center; font-size: 0.9rem; }
.score-track { height: 8px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.score-fill { height: 100%; border-radius: 6px; background: var(--accent); }
@media (max-width: 560px) { .score-row { grid-template-columns: 130px 1fr 44px; } }

@media print {
  .site-header, .site-footer, .compare-bar, .ad-slot { display: none !important; }
}

/* ---------- header search ---------- */
.nav-search input {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  padding: 7px 12px;
  font: inherit;
  font-size: 0.92rem;
  width: 170px;
}
.nav-search input::placeholder { color: var(--ink-3); }
.nav-search input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
  background: var(--surface-3);
}
@media (max-width: 860px) {
  .nav-search { width: 100%; margin-top: 8px; }
  .nav-search input { width: 100%; }
}

/* ---------- on-page section nav (model pages) ---------- */
.page-toc {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 12px 0 24px;
}
.pt-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3); margin-right: 2px;
}
.page-toc a {
  font-size: 0.88rem; font-weight: 600; text-decoration: none;
  color: var(--ink-2);
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
}
.page-toc a:hover {
  color: var(--accent-strong); border-color: var(--line-2);
  background: var(--surface-2); text-decoration: none;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
h2[id], h3[id] { scroll-margin-top: 78px; }

/* ---------- product photo lightbox ---------- */
.media-zoom {
  position: relative; display: block; width: 100%;
  padding: 0; border: 0; background: none; cursor: zoom-in; text-align: inherit;
}
.media-zoom:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.media-zoom .bike-photo { display: block; }
.media-zoom .zoom-hint {
  position: absolute; right: 10px; bottom: 10px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(4, 8, 7, 0.58); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.media-zoom .zoom-hint svg { width: 17px; height: 17px; }
dialog.lightbox {
  border: 1px solid var(--line-2); border-radius: 14px; padding: 0;
  background: var(--surface); color: var(--ink);
  max-width: min(1100px, 94vw); max-height: 92vh; overflow: hidden;
}
dialog.lightbox::backdrop { background: rgba(4, 8, 7, 0.82); }
dialog.lightbox img { display: block; width: 100%; height: auto; max-height: 92vh; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 10px; right: 10px;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  color: var(--ink); font-size: 1.35rem; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { color: var(--accent-strong); border-color: var(--accent); }

/* ---------- sponsored placements (render only when a placement is sold) ---------- */
.sponsor-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px; margin: 4px 0 26px;
}
.sponsor-card {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  padding: 16px 16px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); text-decoration: none;
}
.sponsor-card:hover { border-color: var(--accent); text-decoration: none; }
.sponsor-card strong { font-size: 1.02rem; font-weight: 700; }
.sponsor-tag {
  position: absolute; top: -9px; left: 12px;
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 2px 9px;
}
