/* Kampsportguiden — startsidan (Hem)
   Implemented from the Claude Design prototype Hem.dc.html.
   Static site, no build step. */

/* ---------- Fonts (self-hosted Manrope variable, 400–800) ---------- */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */

:root {
  --bg: #FAFBFC;
  --ink: #17212B;
  --ink-2: #3A4552;
  --ink-3: #5A6572;
  --muted: #7B8794;
  --muted-2: #9AA4AE;
  --placeholder: #8A94A0;
  --blue: #1d5fd0;
  --blue-dark: #174db0;
  --blue-tint: #E7EEFB;
  --border: #EDF0F3;
  --border-2: #D9E0E8;
  --green-bg: #E1F1E9;
  --green-ink: #147A52;
}

/* ---------- Base ---------- */

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px; /* sticky header height, keeps #sporter anchors visible */
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Manrope, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
input { font-family: inherit; }
input::placeholder { color: var(--placeholder); opacity: 1; }

a, button { transition: color .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}
.btn:hover { background: var(--blue-dark); }
.btn-cta { padding: 9px 18px; font-size: 13.5px; }
.btn-search { padding: 11px 22px; font-size: 14px; flex: none; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 251, 252, .94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand { display: flex; align-items: center; gap: 8px; }
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
}
.brand-name { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }

.nav-desktop {
  display: none;
  align-items: center;
  gap: 26px;
  margin-left: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.nav-desktop a:hover { color: var(--blue); }
.nav-desktop a.is-active, .nav-mobile a.is-active { color: var(--blue); }

.header-inner .btn-cta { margin-left: auto; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 4px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
.nav-toggle span:last-child { width: 12px; }

.nav-mobile {
  display: flex;
  flex-direction: column;
  padding: 6px 20px 12px;
  border-top: 1px solid var(--border);
}
.nav-mobile a {
  padding: 11px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
}
.nav-mobile a:hover { color: var(--blue); }
.nav-mobile[hidden] { display: none; }

@media (min-width: 880px) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* ---------- Hero ---------- */

.hero {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(44px, 7vw, 88px) 20px clamp(28px, 4vw, 44px);
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(31px, 5.2vw, 50px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.022em;
  text-wrap: pretty;
}

.hero-lead {
  margin: 14px auto 0;
  max-width: 520px;
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.55;
  color: var(--ink-3);
  text-wrap: pretty;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 26px auto 0;
  max-width: 560px;
  padding: 6px 6px 6px 18px;
  background: #fff;
  border: 1.5px solid var(--border-2);
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(23, 33, 43, .05);
  transition: border-color .15s ease;
}
.search:focus-within { border-color: var(--blue); }
.search svg { flex: none; }
.search input {
  flex: 1;
  min-width: 60px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: var(--ink);
  padding: 8px 0;
  appearance: none;
  -webkit-appearance: none;
}
.search input::-webkit-search-decoration,
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }

.city-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}
.chip {
  padding: 8px 15px;
  border: 1.5px solid var(--border-2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  background: #fff;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip--soon { color: var(--muted-2); border-style: dashed; background: transparent; }
.chip--soon:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Photo slots (placeholders until real photography lands) ---------- */

.photo-slot {
  display: flex;
  align-items: flex-end;
  border-radius: 20px;
  background: #DCE6F0;
  padding: 14px;
}
.photo-hero { height: clamp(200px, 32vw, 400px); }

.photo-note {
  font: 11px ui-monospace, Menlo, monospace;
  color: #5A7291;
  background: rgba(255, 255, 255, .78);
  padding: 5px 9px;
  border-radius: 7px;
}

.card-photo {
  height: 140px;
  display: flex;
  align-items: flex-end;
  padding: 10px;
}
.card-photo .photo-note { font-size: 10px; padding: 3px 7px; border-radius: 6px; }

.photo--sky  { background: #DCE6F0; }
.photo--sky  .photo-note { color: #5A7291; }
.photo--moss { background: #E4E9DD; }
.photo--moss .photo-note { color: #5E7261; }
.photo--sand { background: #EAE3D6; }
.photo--sand .photo-note { color: #8A7B5E; }

/* Real photography inside the slots (slot bg stays as loading fallback) */
.photo-slot, .card-photo, .club-photo { position: relative; overflow: hidden; }
.photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-img--upper { object-position: 50% 30%; }
.photo-img--lower { object-position: 50% 88%; }

/* ---------- Sections ---------- */

.section { padding-top: clamp(48px, 7vw, 88px); }

.eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

.section h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.015em;
}
.eyebrow + h2 { margin-top: 10px; }

.section-sub {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--ink-3);
  max-width: 560px;
  line-height: 1.55;
}

/* ---------- Så funkar det ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.step {
  padding: 22px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 16px;
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--blue-tint);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
}
.step h3 { margin: 14px 0 0; font-size: 16px; font-weight: 800; }
.step p { margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: var(--ink-3); }

/* ---------- Sporter ---------- */

.sports {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.sport-featured {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 22px;
  background: #fff;
  border: 1.5px solid var(--border-2);
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(23, 33, 43, .04);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.sport-featured:hover {
  border-color: var(--blue);
  box-shadow: 0 6px 18px rgba(29, 95, 208, .12);
}
.sport-featured-icon {
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
}
.sport-featured-body { flex: 1; min-width: 200px; }
.sport-featured-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.sport-featured-title { font-size: 19px; font-weight: 800; }
.badge {
  padding: 4px 10px;
  background: var(--green-bg);
  color: var(--green-ink);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}
.sport-featured-desc { font-size: 14px; color: var(--ink-3); margin-top: 4px; }
.sport-featured-arrow { font-size: 20px; color: var(--blue); font-weight: 700; }

.sport-soon {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: #F3F5F7;
  border-radius: 14px;
}
.sport-soon-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #E2E7EC;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}
.sport-soon-name { font-size: 14.5px; font-weight: 700; color: var(--muted); }
.sport-soon-sub { font-size: 12px; color: var(--muted-2); }

/* Stadskort på startsidan (BJJ-guiden) */
.stad-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: #fff;
  border: 1.5px solid var(--border-2);
  border-radius: 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.stad-card:hover {
  border-color: var(--blue);
  box-shadow: 0 6px 18px rgba(29, 95, 208, .1);
}
.stad-card-name { font-size: 15px; font-weight: 800; }
.stad-card-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.stad-card-arrow { margin-left: auto; font-size: 16px; color: var(--blue); font-weight: 700; }
.stad-card--soon { border-style: dashed; background: transparent; }
.stad-card--soon .stad-card-name { color: var(--muted); }
.stad-card--soon .stad-card-sub { color: var(--muted-2); }

/* ---------- Guider ---------- */

.guides-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.link-more { font-size: 14px; font-weight: 700; color: var(--blue); }
.link-more:hover { text-decoration: underline; }

.guides {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.guide-card {
  background: #fff;
  border: 1.5px solid var(--border-2);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.guide-card:hover {
  border-color: var(--blue);
  box-shadow: 0 6px 18px rgba(29, 95, 208, .1);
}
.guide-body { padding: 16px 18px 18px; }
.guide-kicker {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.guide-title { font-size: 16.5px; font-weight: 800; line-height: 1.3; margin-top: 6px; }
.guide-desc { font-size: 13.5px; line-height: 1.5; color: var(--ink-3); margin-top: 6px; }

/* ---------- Stadssida (BJJ i <stad>) ---------- */

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 18px 0 0;
  font-size: 13px;
  color: var(--placeholder);
}
.breadcrumbs a { color: var(--ink-3); font-weight: 600; }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs .current { font-weight: 600; color: var(--ink); }

.city-intro { padding: 16px 0 0; max-width: 760px; }
.city-intro h1 {
  margin: 0;
  font-size: clamp(27px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.city-intro p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-3);
  text-wrap: pretty;
}

.city-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-3);
}
.city-meta .count { font-weight: 700; color: var(--ink); }
.city-meta .updated { display: flex; align-items: center; gap: 6px; }

.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green-ink);
  flex: none;
}
.dot--sm { width: 6px; height: 6px; }

/* Lista/Karta-växel (stadssida) */
.view-toggle {
  display: flex;
  padding: 3px;
  background: #F3F5F7;
  border-radius: 999px;
  margin-left: auto;
}
.view-btn {
  padding: 7px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-3);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.view-btn.is-on {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 2px 6px rgba(23, 33, 43, .2);
}

.city-map {
  display: none;
  margin-top: 22px;
  height: clamp(340px, 52vh, 540px);
  border-radius: 16px;
  overflow: hidden;
  background: #E4EAF1;
  border: 1.5px solid var(--border);
  max-width: 860px;
}
.karta-on .city-map { display: block; }
.karta-on .club-list { display: none; }

.price-pin {
  display: inline-block;
  padding: 6px 12px;
  background: #fff;
  border: 1.5px solid var(--border-2);
  border-radius: 999px;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(23, 33, 43, .14);
}
.price-pin--muted { color: var(--muted); }
.leaflet-popup-content { font-family: Manrope, system-ui, sans-serif; font-size: 13.5px; line-height: 1.5; }
.leaflet-popup-content strong { font-weight: 800; }
.leaflet-popup-content a { color: var(--blue); font-weight: 700; }

.club-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
  max-width: 860px;
}

.club-card {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px;
  background: #fff;
  border: 1.5px solid var(--border-2);
  border-radius: 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.club-card:hover {
  border-color: var(--blue);
  box-shadow: 0 6px 18px rgba(29, 95, 208, .1);
}

.club-photo {
  flex: 1 1 200px;
  min-height: 140px;
  border-radius: 12px;
  display: flex;
  align-items: flex-end;
  padding: 8px;
}
.club-photo .photo-note { font-size: 10px; padding: 3px 6px; border-radius: 5px; }

.club-body {
  flex: 99 1 300px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 4px 4px 0;
}

.club-title-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.club-name { font-size: 17px; font-weight: 800; }
.club-updated {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--ink-3);
}

.club-where { font-size: 13.5px; color: var(--ink-3); }

.club-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.club-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: #F3F5F7;
  color: var(--ink-3);
}
.club-badge--green { background: var(--green-bg); color: var(--green-ink); }
.club-badge--blue { background: var(--blue-tint); color: var(--blue); }

.club-price-row { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.club-price { font-size: 15px; font-weight: 800; }
.club-price .per { font-size: 12.5px; font-weight: 600; color: var(--placeholder); }
.club-arrow { margin-left: auto; font-size: 16px; color: var(--blue); font-weight: 700; }

/* Öppen matta — samlat korsträningsschema för stadens klubbar */
.city-openmat { margin-top: clamp(48px, 7vw, 72px); max-width: 860px; }
.city-openmat h2 {
  margin: 0;
  font-size: clamp(19px, 2.6vw, 24px);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.openmat-card {
  margin-top: 16px;
  background: #fff;
  border: 1.5px solid var(--border-2);
  border-radius: 16px;
  overflow: hidden;
}

.openmat-row {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 4px 16px;
  padding: 14px 18px;
  align-items: baseline;
}
.openmat-row + .openmat-row { border-top: 1px solid var(--border); }
.openmat-row[hidden] { display: none; }

.openmat-day {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue);
}
.openmat-club { font-size: 15px; font-weight: 800; }
.openmat-club a:hover { color: var(--blue); }
.openmat-note {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
  margin-top: 3px;
}
.openmat-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.openmat-time { font-size: 14px; font-weight: 800; white-space: nowrap; }

@media (max-width: 560px) {
  .openmat-row { grid-template-columns: 1fr auto; }
  .openmat-day { grid-column: 1 / -1; }
}

.city-seo { margin-top: clamp(48px, 7vw, 72px); max-width: 760px; }
.city-seo h2 {
  margin: 0;
  font-size: clamp(19px, 2.6vw, 24px);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.city-seo p {
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-3);
  text-wrap: pretty;
}

.guide-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.guide-chip {
  padding: 8px 15px;
  background: var(--blue-tint);
  color: var(--blue);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.guide-chip:hover { background: #d8e4f9; }

/* ---------- Städer (Sverigekarta) ---------- */

.sweden-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  margin-top: 28px;
}

.sweden-map-card {
  flex: 1 1 340px;
  max-width: 480px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: clamp(14px, 2.5vw, 24px);
}

.sweden-map {
  height: clamp(420px, 58vh, 600px);
  border-radius: 14px;
  overflow: hidden;
  background: #E4EAF1;
  border: 1.5px solid var(--border);
}
.sweden-map-caption { margin: 10px 4px 0; font-size: 12px; color: var(--placeholder); }

.city-ranking { flex: 99 1 320px; max-width: 560px; min-width: 0; }
.city-ranking h2 {
  margin: 0;
  font-size: clamp(19px, 2.6vw, 24px);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.ranking-card {
  margin-top: 16px;
  background: #fff;
  border: 1.5px solid var(--border-2);
  border-radius: 16px;
  overflow: hidden;
}

.city-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
}
.city-row + .city-row { border-top: 1px solid var(--border); }
.city-row-name { font-size: 15px; font-weight: 800; flex: none; min-width: 104px; }
.city-row-name a:hover { color: var(--blue); }
.city-row-bar { flex: 1; height: 6px; border-radius: 999px; background: #F3F5F7; overflow: hidden; }
.city-row-bar span { display: block; height: 100%; border-radius: 999px; background: var(--blue); opacity: .75; }
.city-row-count { flex: none; font-size: 13px; color: var(--ink-3); min-width: 68px; text-align: right; }
.city-row-status { flex: none; min-width: 108px; text-align: right; }
.city-row-status .link-more { font-size: 13px; }
.city-row-status .soon-tag { font-size: 12px; font-weight: 700; color: var(--muted-2); }

.city-row--live { background: #F7FAFF; }

@media (max-width: 560px) {
  .city-row { flex-wrap: wrap; gap: 6px 12px; padding: 12px 16px; }
  .city-row-bar { order: 3; flex-basis: 100%; }
  .city-row-status { margin-left: auto; }
}

/* ---------- Guideartikel ---------- */

.article-head { padding: 22px 0 0; max-width: 680px; }

.article-badge {
  display: inline-block;
  padding: 5px 12px;
  background: var(--blue-tint);
  color: var(--blue);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-head h1 {
  margin: 14px 0 0;
  font-size: clamp(28px, 4.4vw, 42px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.022em;
  text-wrap: pretty;
}

.article-lead {
  margin: 14px 0 0;
  font-size: clamp(15.5px, 2vw, 17.5px);
  line-height: 1.6;
  color: var(--ink-3);
  text-wrap: pretty;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 13px;
  color: var(--placeholder);
}
.article-meta .updated { display: flex; align-items: center; gap: 6px; color: var(--placeholder); }

.article-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  margin-top: 28px;
}

.toc {
  flex: 1 1 240px;
  max-width: 300px;
  position: sticky;
  top: 76px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
}
.toc-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--placeholder);
}
.toc nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 600;
}
.toc nav a {
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--ink-3);
}
.toc nav a:hover { background: #F3F5F7; color: var(--ink); }
.toc nav a.active { background: var(--blue-tint); color: var(--blue); }

.article { flex: 99 1 400px; min-width: 0; max-width: 680px; }

.article-hero {
  height: clamp(180px, 28vw, 320px);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}

.article section { margin-top: 32px; scroll-margin-top: 80px; }
.article h2 {
  margin: 0;
  font-size: clamp(20px, 2.8vw, 26px);
  font-weight: 800;
  letter-spacing: -0.015em;
}
.article p {
  margin: 12px 0 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-2);
  text-wrap: pretty;
}
.article ol, .article ul {
  margin: 12px 0 0;
  padding-left: 22px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article p a, .article li a { color: var(--blue); font-weight: 700; }
.article p a:hover, .article li a:hover { text-decoration: underline; }

.callout {
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--blue-tint);
  border-radius: 14px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink);
}
.callout strong { color: var(--blue); }

.glossary {
  margin-top: 14px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.glossary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 14px 18px;
}
.glossary-row + .glossary-row { border-top: 1px solid var(--border); }
.glossary-term { flex: none; width: 96px; font-size: 14px; font-weight: 800; color: var(--blue); }
.glossary-def { flex: 1; min-width: 200px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }

.article-cta {
  margin-top: 40px;
  background: var(--blue);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 36px);
  color: #fff;
}
.article-cta h2 {
  margin: 0;
  font-size: clamp(21px, 3vw, 27px);
  font-weight: 800;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}
.article-cta p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: #C9DAF6;
  max-width: 480px;
}
.article-cta-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.article-cta-btn {
  padding: 12px 24px;
  background: #fff;
  color: var(--blue);
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 800;
}
.article-cta-btn:hover { background: var(--blue-tint); }
.article-cta-chip {
  padding: 12px 18px;
  border: 1.5px solid rgba(255, 255, 255, .4);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}
.article-cta-chip:hover { border-color: #fff; }

/* Compact footer variant (city pages) */
.footer-links-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: baseline;
  font-size: 13.5px;
  color: #C6CDD4;
}
.footer-links-row a:hover { color: #fff; }
.footer-links-row .sep { color: #5F6B77; }
.footer-links-row .link-strong {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-legal--spaced { margin-top: 18px; }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: clamp(56px, 8vw, 96px);
  background: var(--ink);
  color: #fff;
}

.footer-inner {
  padding-top: clamp(36px, 5vw, 56px);
  padding-bottom: 28px;
}

.footer-stats { display: flex; gap: clamp(24px, 5vw, 56px); flex-wrap: wrap; }
.stat-num { font-size: clamp(22px, 3vw, 28px); font-weight: 800; }
.stat-label { font-size: 13px; color: var(--muted-2); margin-top: 2px; }

.footer-divider { height: 1px; background: rgba(255, 255, 255, .12); margin: 28px 0; }
.footer-divider--tight { margin-bottom: 18px; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  color: #C6CDD4;
}
.footer-col-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-col a:hover { color: #fff; }
.footer-col .soon { color: #5F6B77; }
.footer-col .link-strong {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}
