/* =============================================================
   DR Living Index  -  Design System
   drlivingindex.com
   ============================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:       #0a0a0a;
  --white:       #ffffff;
  --green:       #16a34a;
  --green-mid:   #22c55e;
  --green-light: #dcfce7;
  --amber:       #f59e0b;
  --amber-light: #fef3c7;
  --red:         #ef4444;
  --red-light:   #fee2e2;
  --sand:        #C8A96E;
  --sand-light:  #F7F0E3;
  --sand-border: #E8D9BC;
  --ochre:       #9B7A3F;
  --accent:      #d4a24c;
  --accent-dark: #b8872f;
  --gold:        #a47a35;
  --soft:        #f8f6f0;
  --soft2:       #f3ead8;
  --line:        #e7e1d5;
  --gray-50:     #f9f9f9;
  --gray-100:    #f2f2f2;
  --gray-200:    #e5e5e5;
  --gray-400:    #a0a0a0;
  --gray-600:    #5a5a5a;
  --gray-800:    #2a2a2a;
  --border:      #e5e5e5;

  --font: 'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:  0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg:  0 4px 28px rgba(0,0,0,0.10);

  --max-w:      1160px;
  --max-w-text: 800px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#page-content {
  flex: 1;
}

img { max-width: 100%; display: block; }
a { color: var(--black); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5 {
  font-family: var(--font);
  line-height: 1.2;
  color: var(--black);
  font-weight: 800;
}
h1 { font-size: clamp(32px, 5.5vw, 56px); }
h2 { font-size: clamp(24px, 4vw, 40px); }
h3 { font-size: clamp(18px, 2.5vw, 24px); font-weight: 700; }
h4 { font-size: 16px; font-weight: 700; }
p  { margin-bottom: 14px; }
p:last-child { margin-bottom: 0; }

/* ---- LOGO ---- */
.logo-img {
  display: block;
  width: auto;
  height: 44px;
  object-fit: contain;
  object-position: left center;
}
.site-footer .logo-img { height: 48px; }

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ochre);
  display: block;
  margin-bottom: 12px;
}

/* ---- LAYOUT ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow {
  max-width: var(--max-w-text);
}
section { padding: 80px 0; }
@media (max-width: 640px) { section { padding: 56px 0; } }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s, opacity 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn--lg { padding: 14px 28px; font-size: 15px; }
.btn--full { width: 100%; justify-content: center; }

.btn--primary { background: var(--black); color: var(--white); border-color: var(--black); }
.btn--primary:hover { background: var(--gray-800); border-color: var(--gray-800); }

.btn--outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn--outline:hover { background: var(--black); color: var(--white); }

.btn--ghost { background: transparent; color: var(--black); border-color: transparent; }
.btn--ghost:hover { background: var(--gray-100); }

.btn--white { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--white:hover { background: var(--gray-100); }

/* ---- HEADER ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
/* WordPress admin bar offset  -  logged-in users only */
.admin-bar .site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-logo {
  flex-shrink: 0;
  color: var(--black);
  text-decoration: none;
}
.site-logo svg { width: 110px; height: 44px; display: block; }

.site-nav { flex: 1; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list li a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--radius-sm);
  transition: color 0.1s, background 0.1s;
  text-decoration: none;
}
.nav-list li a:hover { color: var(--black); background: var(--gray-100); text-decoration: none; }
.nav-list li.current-menu-item a { color: var(--black); font-weight: 600; }

/* Dropdown nav */
.nav-list li { position: relative; }
.nav-list .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  padding: 6px 0;
  z-index: 999;
  list-style: none;
  margin: 0;
}
.nav-list .menu-item-has-children:hover > .sub-menu { display: block; }
.nav-list .sub-menu li a {
  padding: 9px 16px;
  font-size: 14px;
  white-space: nowrap;
  border-radius: 0;
}
.nav-list .menu-item-has-children > a::after {
  content: ' ▾';
  font-size: 10px;
  opacity: 0.5;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform 0.2s;
}

@media (max-width: 768px) {
  .site-nav { display: none; }
  .site-nav--open {
    display: block;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 0 16px;
    box-shadow: var(--shadow-md);
    z-index: 99;
  }
  .site-nav--open .nav-list { flex-direction: column; gap: 2px; padding: 0 16px; }
  .site-nav--open .nav-list li a { padding: 10px 12px; font-size: 15px; }
  .site-nav--open .sub-menu { display: block !important; position: static; box-shadow: none; border: none; padding: 4px 0 4px 16px; }
  .header-inner > .btn { display: none; }
  .nav-toggle { display: flex; }
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding-top: 64px;
}
.site-logo--white { color: var(--white); }
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}
.footer-tagline {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}
.footer-links { display: contents; }
.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.75); transition: color 0.1s; text-decoration: none; }
.footer-col ul li a:hover { color: var(--white); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; }
.footer-bottom-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.4); margin: 0; }
.footer-legal-links { margin-top: 8px !important; }
.footer-legal-links a { color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.15s; }
.footer-legal-links a:hover { color: rgba(255,255,255,0.7); }
.footer-legal-links span { margin: 0 6px; }

/* ---- SCORE BADGES ---- */
.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
}
.score--high { background: var(--green); color: var(--white); }
.score--mid  { background: var(--amber); color: var(--white); }
.score--low  { background: var(--red); color: var(--white); }

.score-large {
  display: block;
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
}
.score-large.score--high { background: none; color: var(--green); }
.score-large.score--mid  { background: none; color: var(--amber); }
.score-large.score--low  { background: none; color: var(--red); }
.score-large__label { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.85); margin-top: 4px; display: block; letter-spacing: 0.05em; text-transform: uppercase; }

.score-denom { font-size: 10px; font-weight: 500; opacity: 0.75; margin-left: 1px; }

/* ---- HERO ---- */
.hero { padding: 80px 0 72px; background: var(--white); border-bottom: 1px solid var(--border); }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}
.hero-text h1 { margin-bottom: 20px; }
.hero-lead {
  font-size: 18px;
  color: var(--gray-600);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* INDEX CARD (hero widget) */
.index-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.index-card__header {
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--border);
}
.index-card__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 6px;
}
.index-card__title { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.index-card__sub { font-size: 13px; color: var(--gray-600); margin: 0; }

.index-card__scores {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--border);
}
.score-pill {
  padding: 14px 12px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.score-pill:last-child { border-right: none; }
.score-pill__label { display: block; font-size: 10px; color: var(--gray-400); margin-bottom: 6px; line-height: 1.3; }
.score-pill__value { font-size: 20px; font-weight: 800; }
.score-pill__value.score--high { color: var(--green); }
.score-pill__value.score--mid  { color: var(--amber); }
.score-pill__value.score--low  { color: var(--red); }
.score-pill__denom { font-size: 10px; font-weight: 400; color: var(--gray-400); }

.index-card__rankings { padding: 16px 24px; border-bottom: 1px solid var(--border); }
.index-card__rankings-title { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-600); margin-bottom: 12px; }

.rankings-mini { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.rankings-mini__item { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.rankings-mini__pos { font-size: 11px; font-weight: 700; color: var(--gray-400); width: 14px; flex-shrink: 0; }
.rankings-mini__name { flex: 1; font-weight: 500; }
.rankings-mini__bar-wrap { width: 80px; height: 4px; background: var(--gray-200); border-radius: 2px; flex-shrink: 0; }
.rankings-mini__bar { display: block; height: 100%; background: var(--green); border-radius: 2px; }
.rankings-mini__score { font-size: 13px; font-weight: 700; color: var(--green); min-width: 28px; text-align: right; text-decoration: none; }
.rankings-mini__score:hover { text-decoration: none; }

.index-card__cta { display: block; padding: 14px 24px; font-size: 13px; font-weight: 600; color: var(--black); text-decoration: none; border-top: none; }
.index-card__cta:hover { text-decoration: underline; }
.index-card__empty { padding: 24px; color: var(--gray-400); font-size: 14px; text-align: center; }

/* ---- REGION CARDS ---- */
.section-regions { background: var(--white); }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 40px;
}
.section-header__right { text-align: right; max-width: 340px; }
.section-header__right p { font-size: 14px; color: var(--gray-600); margin-bottom: 12px; }
@media (max-width: 768px) {
  .section-header { flex-direction: column; align-items: flex-start; }
  .section-header__right { text-align: left; max-width: none; }
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) { .region-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .region-grid { grid-template-columns: 1fr; } }

.region-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow 0.2s;
}
.region-card:hover { box-shadow: var(--shadow-md); }
.region-card__img-link { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--gray-100); }
.region-card__img-link img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.region-card:hover .region-card__img-link img { transform: scale(1.03); }
.region-card__img-placeholder { width: 100%; height: 100%; background: var(--gray-100); }
.region-card__body { padding: 16px; }
.region-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
.region-card__name { font-size: 16px; font-weight: 700; }
.region-card__name a { color: var(--black); text-decoration: none; }
.region-card__name a:hover { text-decoration: underline; }
.region-card__label-sm { font-size: 10px; color: var(--gray-400); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.region-card__best { font-size: 13px; color: var(--gray-600); margin-bottom: 14px; line-height: 1.4; }
.region-card__scores { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding-top: 12px; border-top: 1px solid var(--border); }
.region-card__score-item { text-align: center; }
.region-card__score-val { display: block; font-size: 14px; font-weight: 700; color: var(--black); }
.region-card__score-lbl { display: block; font-size: 9px; color: var(--gray-400); margin-top: 2px; letter-spacing: 0.04em; }

.section-footer { text-align: center; margin-top: 40px; }

/* ---- FEATURES ---- */
.section-features { background: var(--sand-light); border-top: 1px solid var(--sand-border); border-bottom: 1px solid var(--sand-border); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
}
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .features-grid { grid-template-columns: 1fr; } }
.feature-item { text-align: center; }
.feature-icon { width: 44px; height: 44px; margin: 0 auto 16px; color: var(--black); }
.feature-icon svg { width: 100%; height: 100%; }
.feature-item h4 { font-size: 15px; margin-bottom: 8px; }
.feature-item p { font-size: 13px; color: var(--gray-600); }

/* ---- CTA BANNER ---- */
.section-cta { padding: 0; background: var(--black); }
.cta-banner {
  background: var(--black);
  color: var(--white);
  border-radius: 0;
  padding: 56px max(64px, calc((100vw - 1200px) / 2 + 64px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
}
@media (max-width: 768px) {
  .cta-banner { flex-direction: column; padding: 40px 32px; text-align: center; }
}
.cta-banner h2 { color: var(--white); }
.cta-banner__body p { color: rgba(255,255,255,0.7); font-size: 15px; margin-bottom: 20px; max-width: 360px; }

/* ---- REGION HERO ---- */
.region-hero {
  position: relative;
  padding: 72px 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.region-hero--has-img { min-height: 380px; display: flex; align-items: flex-end; }
.region-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.region-hero__bg img,
.nbhd-hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.region-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.65) 100%);
  z-index: 1;
}
.region-hero__inner { position: relative; z-index: 2; }
.region-hero--has-img .region-hero__inner { padding-bottom: 0; }
.region-hero--has-img h1,
.region-hero--has-img .eyebrow,
.region-hero--has-img .region-hero__verdict { color: var(--white); }
.region-hero--has-img .eyebrow { color: rgba(255,255,255,0.75); }
.region-hero__content { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.region-hero__verdict { font-size: 18px; color: var(--gray-600); margin-top: 12px; max-width: 560px; line-height: 1.6; }
.region-hero__score { text-align: right; flex-shrink: 0; }

/* ---- SCORE STRIP ---- */
.score-strip { background: var(--white); border-bottom: 1px solid var(--border); }
.score-strip__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  overflow-x: auto;
}
.score-strip__item {
  flex: 1;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 8px;
  border-right: 1px solid var(--border);
}
.score-strip__item:last-child { border-right: none; }
.score-strip__label { font-size: 11px; color: var(--gray-600); font-weight: 500; text-align: center; }

/* ---- SNAPSHOT CHIPS ---- */
.snapshot-chips { background: var(--gray-50); border-bottom: 1px solid var(--border); }
.chips-row {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.chip {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 120px;
}
.chip--wide { min-width: 200px; }
.chip__label { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-400); }
.chip__value { font-size: 14px; font-weight: 600; color: var(--black); }

/* ---- REGION PAGE LAYOUT ---- */
.region-main { padding: 56px 0 80px; }
.region-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .region-layout { grid-template-columns: 1fr; }
  .region-sidebar { order: -1; }
}

.region-content { min-width: 0; }
.region-content h2 {
  font-size: clamp(20px, 3vw, 28px);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.region-content h2:first-child { margin-top: 0; }
.region-content p { color: var(--gray-800); font-size: 15px; line-height: 1.75; margin-bottom: 14px; }

/* Answer box  -  direct answer for AEO */
.answer-box {
  background: var(--green-light);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 18px 22px;
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.65;
}

/* BREADCRUMB */
.breadcrumb { margin-bottom: 24px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; }
.breadcrumb ol li { font-size: 13px; color: var(--gray-400); }
.breadcrumb ol li::after { content: '/'; margin-left: 4px; color: var(--gray-200); }
.breadcrumb ol li:last-child::after { display: none; }
.breadcrumb ol li a { color: var(--gray-400); text-decoration: none; }
.breadcrumb ol li a:hover { color: var(--black); }
.region-hero--has-img .breadcrumb ol li,
.region-hero--has-img .breadcrumb ol li a { color: rgba(255,255,255,0.7); }
.region-hero--has-img .breadcrumb ol li::after { color: rgba(255,255,255,0.3); }

/* SIDEBAR */
.region-sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 16px; }
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}
.sidebar-card h4 { font-size: 14px; margin-bottom: 14px; }
.sidebar-card--cta { background: var(--black); color: var(--white); }
.sidebar-card--cta h4 { color: var(--white); }
.sidebar-card--cta p { color: rgba(255,255,255,0.7); font-size: 13px; margin-bottom: 14px; }
.sidebar-stat { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--border); }
.sidebar-stat:last-child { border-bottom: none; }
.sidebar-stat__label { font-size: 13px; color: var(--gray-600); }
.sidebar-stat__value { font-size: 13px; font-weight: 600; text-align: right; max-width: 55%; }

/* FAQS */
.region-faqs { margin-top: 48px; }

/* ---- GENERAL PAGE ---- */
.page-main { padding: 56px 0 80px; }
.page-article {}
.page-article__header { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.page-article__title { font-size: clamp(28px, 4vw, 42px); }
.page-article__content { font-size: 15px; line-height: 1.8; max-width: var(--max-w-text); }
.page-article__content p, .page-article__content li { color: var(--gray-800); }
.page-article__content h2 { font-size: 24px; margin: 36px 0 14px; }
.page-article__content h3 { font-size: 18px; margin: 28px 0 10px; }

/* ---- BLOG ---- */
.page-title { font-size: clamp(24px, 4vw, 36px); margin-bottom: 40px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.post-card__img { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--gray-100); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 20px; }
.post-card__title { font-size: 18px; margin-bottom: 8px; }
.post-card__title a { color: var(--black); text-decoration: none; }
.post-card__title a:hover { text-decoration: underline; }
.post-card__excerpt { font-size: 14px; color: var(--gray-600); margin-bottom: 12px; }
.post-card__link { font-size: 13px; font-weight: 600; color: var(--black); text-decoration: none; }
.post-card__link:hover { text-decoration: underline; }

.post-article__header { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.post-article__title { font-size: clamp(28px, 4vw, 42px); }
.post-article__thumb { margin-bottom: 32px; border-radius: var(--radius-md); overflow: hidden; }
.post-article__thumb img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; }
.post-article__content { font-size: 16px; line-height: 1.8; }
.post-article__content p, .post-article__content li { color: var(--gray-800); margin-bottom: 14px; }
.post-article__content h2 { font-size: 26px; margin: 36px 0 14px; }
.post-article__content img { display: block; max-width: 100%; height: auto; border-radius: var(--radius-md); margin: 24px 0; }

/* ---- BLOG ARCHIVE ---- */
.blog-hero { background: #070707; color: #fff; padding: 96px 0 80px; }
.blog-hero h1 { font-size: clamp(40px, 6vw, 70px); max-width: 860px; margin: 12px 0 18px; letter-spacing: -.03em; color: #fff; }
.blog-hero p { max-width: 620px; color: rgba(255,255,255,.72); font-size: 19px; margin: 0 0 28px; }
.blog-hero .eyebrow { color: var(--ochre); }
.blog-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.btn-ghost-white { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 22px; border-radius: 8px; font-weight: 700; border: 2px solid rgba(255,255,255,.34); color: #fff; background: transparent; }
.btn-ghost-white:hover { background: rgba(255,255,255,.08); }
.blog-chip-row { display: flex; gap: 10px; flex-wrap: wrap; }
.blog-chip { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); font-size: 13px; font-weight: 700; color: rgba(255,255,255,.86); transition: background .15s; }
.blog-chip:hover { background: rgba(255,255,255,.16); }

.blog-featured { display: grid; grid-template-columns: 1.05fr .95fr; background: #fff; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.blog-featured__img-link { display: block; }
.blog-featured__img-link img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; display: block; }
.blog-featured__body { padding: 42px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.blog-featured__body h2 { font-size: clamp(22px, 2.8vw, 32px); }
.blog-featured__body h2 a { color: inherit; text-decoration: none; }
.blog-featured__body h2 a:hover { color: var(--primary); }
.blog-featured__body p { color: var(--gray-600); }
.blog-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.blog-tag { font-size: 12px; font-weight: 700; background: #f3ead8; color: #76572b; border-radius: 999px; padding: 5px 10px; }

.blog-latest-section { background: #fff; }
.blog-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.blog-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.blog-post-card { display: block; background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; color: inherit; text-decoration: none; }
.blog-post-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,.08); }
.blog-post-card img { width: 100%; height: 210px; object-fit: cover; display: block; }
.blog-post-card__placeholder { width: 100%; height: 210px; background: var(--soft); }
.blog-post-card__body { padding: 22px; }
.blog-post-card__body h3 { font-size: 18px; margin: 6px 0 10px; }
.blog-post-card__body p { font-size: 14px; color: var(--gray-600); margin: 0; }
.blog-date { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); font-weight: 700; }

.blog-theme-section { background: #fff; border-top: 1px solid var(--border); }
.blog-theme-section h2 { margin: 8px 0 26px; }
.blog-theme-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.blog-theme-chip { display: block; background: var(--soft); border: 1px solid var(--border); border-radius: 12px; padding: 18px; font-weight: 700; color: inherit; text-decoration: none; transition: background .15s, border-color .15s; }
.blog-theme-chip:hover { background: #f3ead8; border-color: var(--primary); }

@media (max-width: 980px) {
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured__img-link img { min-height: 300px; }
  .blog-post-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-theme-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .blog-hero { padding: 64px 0 56px; }
  .blog-hero-actions .btn, .blog-hero-actions .btn-ghost-white { width: 100%; }
  .blog-post-grid, .blog-theme-grid { grid-template-columns: 1fr; }
  .blog-section-head { display: block; }
}

/* ---- GUIDES PAGE ---- */
.guides-hero-dark { background: #070707; color: #fff; padding: 100px 0 88px; }
.guides-hero-dark h1 { font-size: clamp(40px, 6vw, 72px); max-width: 880px; margin: 12px 0 18px; letter-spacing: -.03em; color: #fff; }
.guides-hero-dark p { max-width: 680px; color: rgba(255,255,255,.74); font-size: 19px; margin: 0 0 28px; }
.guides-hero-dark .eyebrow { color: var(--ochre); }
.guides-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.guides-compare-section { background: #fff; border-top: 1px solid var(--border); }
.guides-compare-section h2 { margin-top: 8px; }
.guides-compare-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.guides-compare-card { display: block; background: var(--soft); border: 1px solid var(--border); border-radius: 14px; padding: 22px; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.guides-compare-card:hover { border-color: var(--primary); box-shadow: 0 6px 20px rgba(0,0,0,.07); }
.guides-compare-card strong { display: block; font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.guides-compare-card p { margin: 0; font-size: 14px; }

@media (max-width: 980px) { .guides-compare-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .guides-hero-dark { padding: 72px 0 60px; }
  .guides-hero-actions .btn, .guides-hero-actions .btn-ghost-white { width: 100%; }
  .guides-compare-grid { grid-template-columns: 1fr; }
}

/* ---- AREA SECTIONS (archive-region) ---- */
.area-section { margin-bottom: 64px; }
.area-section__header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--black);
}
.area-section__header h2 { font-size: 22px; margin: 0; }
.area-section__link { font-size: 13px; font-weight: 600; color: var(--green); text-decoration: none; margin-left: auto; }
.area-section__link:hover { text-decoration: underline; }

.area-header { margin-bottom: 48px; }
.area-header__desc { font-size: 18px; color: var(--gray-600); margin-top: 12px; max-width: 600px; }

.region-grid--wide { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .region-grid--wide { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .region-grid--wide { grid-template-columns: 1fr; } }

.btn--sm { padding: 8px 16px; font-size: 13px; }

/* ---- REGION CARD  -  taller photo ---- */
.region-card__img-link { aspect-ratio: 4/3; }

/* ---- QUIZ PAGE ---- */
.quiz-section { padding: 72px 0; }
.quiz-wrap { max-width: 680px; margin: 0 auto; }
.quiz-progress { display: flex; gap: 6px; margin-bottom: 36px; }
.quiz-progress__dot {
  flex: 1;
  height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  transition: background 0.2s;
}
.quiz-progress__dot.active { background: var(--green); }
.quiz-progress__dot.done   { background: var(--green); }

.quiz-step { display: none; }
.quiz-step.active { display: block; }

.quiz-step__num { font-size: 12px; font-weight: 600; color: var(--green); margin-bottom: 8px; }
.quiz-step__q   { font-size: clamp(20px, 3vw, 28px); font-weight: 800; margin-bottom: 28px; line-height: 1.25; }

.quiz-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s;
  background: var(--white);
  text-align: left;
  width: 100%;
  font-family: var(--font);
}
.quiz-option:hover { border-color: var(--green); background: var(--green-light); }
.quiz-option.selected { border-color: var(--green); background: var(--green-light); }
.quiz-option__letter {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-600);
  flex-shrink: 0;
}
.quiz-option.selected .quiz-option__letter { background: var(--green); color: var(--white); }

.quiz-nav { display: flex; justify-content: space-between; align-items: center; }

/* Quiz result */
.quiz-result { display: none; text-align: center; padding: 48px 0; }
.quiz-result.active { display: block; }
.quiz-result__eyebrow { color: var(--green); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.quiz-result__name { font-size: clamp(32px, 5vw, 52px); font-weight: 800; margin-bottom: 12px; }
.quiz-result__desc { font-size: 17px; color: var(--gray-600); max-width: 520px; margin: 0 auto 32px; line-height: 1.65; }
.quiz-result__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* =============================================================
   COMPARE PAGE
   ============================================================= */
.compare-selector {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.compare-selector__fields {
  display: flex;
  gap: 16px;
  flex: 1;
  flex-wrap: wrap;
}
.compare-selector__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 160px;
}
.compare-selector__field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.compare-selector__field select {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  color: var(--black);
  background: var(--white);
  cursor: pointer;
}
.compare-selector__field select:focus {
  outline: none;
  border-color: var(--green);
}

.compare-table-wrap {
  overflow-x: auto;
  margin-bottom: 16px;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}
.compare-table thead th { padding-bottom: 0; }
.compare-table__label-col { width: 160px; }
.compare-table__region-col { text-align: center; padding: 0 12px 24px; }

.compare-region-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--black);
}
.compare-region-head:hover .compare-region-head__name { color: var(--green); }
.compare-region-head__img {
  width: 100%;
  max-width: 180px;
  height: 110px;
  border-radius: var(--radius-md);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
}
.compare-region-head__img--empty { background: var(--gray-100); }
.compare-region-head__name {
  font-size: 16px;
  font-weight: 700;
  transition: color 0.15s;
}

.compare-table__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  padding: 14px 0;
  border-top: 1px solid var(--border);
  white-space: nowrap;
  padding-right: 20px;
}
.compare-table__cell {
  text-align: center;
  padding: 14px 12px;
  border-top: 1px solid var(--border);
  vertical-align: middle;
}
.compare-table__cell--text {
  font-size: 14px;
  color: var(--gray-600);
}
.compare-table__row--highlight .compare-table__label,
.compare-table__row--highlight .compare-table__cell {
  background: var(--green-light);
}
.compare-table__row--cta .compare-table__cell { border-top: 2px solid var(--border); padding-top: 20px; }

.score-badge--lg { font-size: 24px; padding: 6px 16px; border-radius: var(--radius-md); }

.compare-bar-wrap {
  height: 8px;
  background: var(--gray-100);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 4px;
  max-width: 140px;
  margin-left: auto;
  margin-right: auto;
}
.compare-bar {
  height: 100%;
  border-radius: 99px;
}
.compare-bar.score--high { background: var(--green); }
.compare-bar.score--mid  { background: var(--amber); }
.compare-bar.score--low  { background: var(--red); }
.compare-score-num { font-size: 13px; font-weight: 600; color: var(--gray-800); }
.compare-na { color: var(--gray-400); font-size: 14px; }

/* =============================================================
   RANKINGS PAGE
   ============================================================= */
.rankings-filter {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.rankings-filter__tab {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.rankings-filter__tab:hover { border-color: var(--green); color: var(--green); }
.rankings-filter__tab.is-active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.rankings-list { display: flex; flex-direction: column; gap: 0; }

.rankings-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.rankings-row:first-child { border-top: 1px solid var(--border); }

.rankings-row__rank {
  width: 32px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-400);
  flex-shrink: 0;
}
.rankings-row:first-child .rankings-row__rank { color: var(--green); }

.rankings-row__img-link { flex-shrink: 0; }
.rankings-row__img {
  width: 72px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}
.rankings-row__img-placeholder {
  width: 72px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  flex-shrink: 0;
}

.rankings-row__info { flex: 1; min-width: 0; }
.rankings-row__name {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}
.rankings-row__name a { color: var(--black); text-decoration: none; }
.rankings-row__name a:hover { color: var(--green); }
.rankings-row__best { font-size: 13px; color: var(--gray-600); margin-top: 2px; }

.rankings-row__bar-wrap { width: 180px; flex-shrink: 0; }
.rankings-row__bar {
  height: 8px;
  background: var(--gray-100);
  border-radius: 99px;
  overflow: hidden;
}
.rankings-row__bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.4s ease;
}
.rankings-row__bar-fill.score--high { background: var(--green); }
.rankings-row__bar-fill.score--mid  { background: var(--amber); }
.rankings-row__bar-fill.score--low  { background: var(--red); }

.rankings-row__scores {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 60px;
}
.rankings-row__overall { font-size: 11px; color: var(--gray-400); }
.rankings-row__cta { flex-shrink: 0; }

@media (max-width: 640px) {
  .rankings-row__bar-wrap { display: none; }
  .rankings-row__img { width: 52px; height: 40px; }
}

/* =============================================================
   MAP WIDGET
   ============================================================= */
.dr-map-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #e8f0e8;
  border: 1px solid var(--border);
}
.dr-map-wrap img { width: 100%; height: auto; display: block; }
.dr-map-pin {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 0.15s, background 0.15s;
  text-decoration: none;
}
.dr-map-pin:hover {
  background: var(--green-mid);
  transform: translate(-50%, -50%) scale(1.15);
}
.dr-map-pin__tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--black);
  color: var(--white);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}
.dr-map-pin:hover .dr-map-pin__tooltip { opacity: 1; }

/* =============================================================
   MAP SECTION (homepage)
   ============================================================= */
.section-map {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.section-map__inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 56px;
  align-items: center;
}
.section-map__map .map-widget {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.dri-map {
  height: 420px;
  width: 100%;
  border-radius: var(--radius-lg);
}
.map-pin-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  border: 2px solid var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  text-decoration: none;
  transition: transform 0.15s, background 0.15s;
}
.map-pin-marker:hover {
  background: var(--green-mid);
  transform: scale(1.2);
}
/* Leaflet popup override */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-md) !important;
  font-family: var(--font) !important;
}
.leaflet-popup-content { margin: 14px 16px !important; }
.leaflet-container a { color: var(--green); }

@media (max-width: 768px) {
  .section-map__inner { grid-template-columns: 1fr; }
  .dri-map { height: 300px; }
}

/* =============================================================
   BLOG
   ============================================================= */
.blog-list { display: flex; flex-direction: column; gap: 40px; margin-bottom: 48px; }

.blog-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
  border-bottom: 1px solid var(--border);
  padding-bottom: 40px;
}
@media (max-width: 640px) { .blog-card { grid-template-columns: 1fr; } }

.blog-card__img-link { display: block; border-radius: var(--radius-md); overflow: hidden; }
.blog-card__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; transition: transform 0.3s; }
.blog-card__img-link:hover .blog-card__img { transform: scale(1.03); }

.blog-card__meta { font-size: 13px; color: var(--gray-400); margin-bottom: 10px; }
.blog-card__meta a { color: var(--green); text-decoration: none; font-weight: 500; }
.blog-card__meta a:hover { text-decoration: underline; }

.blog-card__title { font-size: 22px; font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
.blog-card__title a { color: var(--black); text-decoration: none; }
.blog-card__title a:hover { color: var(--green); }

.blog-card__excerpt { font-size: 15px; color: var(--gray-600); margin-bottom: 16px; line-height: 1.65; }

.blog-pagination { margin-top: 40px; }
.blog-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.blog-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); font-size: 14px; font-weight: 500;
  color: var(--black); text-decoration: none; transition: background 0.15s, color 0.15s;
}
.blog-pagination .page-numbers.current { background: var(--black); color: var(--white); border-color: var(--black); }
.blog-pagination .page-numbers:hover:not(.current) { background: var(--gray-100); }
.blog-pagination .prev, .blog-pagination .next { width: auto; padding: 0 14px; }

.blog-empty { text-align: center; padding: 64px 0; color: var(--gray-600); }

/* ---- EMAIL GATE (quiz) ---- */
.email-gate-card { text-align: center; }
.email-gate-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.email-gate-input {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius-md); font-family: var(--font); font-size: 15px;
  background: var(--white); box-sizing: border-box; text-align: left;
}
.email-gate-input:focus { outline: none; border-color: var(--green); }
.email-gate-btn {
  width: 100%; padding: 15px; background: var(--black); color: var(--white);
  border: none; border-radius: var(--radius-md); font-family: var(--font);
  font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.2s;
}
.email-gate-btn:hover { background: var(--gray-800); }
.email-gate-btn:disabled { opacity: 0.5; cursor: default; }
.email-gate-skip {
  background: none; border: none; font-family: var(--font); font-size: 13px;
  color: var(--gray-400); cursor: pointer; text-decoration: underline;
  text-underline-offset: 3px; display: block; margin: 0 auto 10px;
}
.email-gate-skip:hover { color: var(--black); }
.email-gate-note { font-size: 12px; color: var(--gray-400); margin-top: 4px; }

/* ---- SAVE COMPARISON ---- */
.save-comparison-box {
  background: var(--gray-100); border-radius: var(--radius-lg);
  padding: 32px 36px; margin-top: 32px;
}
.save-comparison-box__inner { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
.save-comparison-box__text { flex: 1; min-width: 200px; }
.save-comparison-box__title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.save-comparison-box__desc { font-size: 14px; color: var(--gray-600); line-height: 1.55; }
.save-comparison-box__form { display: flex; gap: 10px; flex: 1; min-width: 240px; }
.save-comparison-input {
  flex: 1; padding: 12px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-md); font-family: var(--font); font-size: 14px;
  background: var(--white);
}
.save-comparison-input:focus { outline: none; border-color: var(--green); }
.save-comparison-btn {
  padding: 12px 20px; background: var(--black); color: var(--white);
  border: none; border-radius: var(--radius-md); font-family: var(--font);
  font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background 0.2s;
}
.save-comparison-btn:hover { background: var(--gray-800); }
.save-comparison-btn:disabled { opacity: 0.5; cursor: default; }
.save-comparison-msg { font-size: 14px; font-weight: 600; color: var(--green); }

/* ---- NEWSLETTER CTA ---- */
.newsletter-cta {
  background: var(--black); color: var(--white);
  padding: 128px 0 64px; margin: 0;
}
.newsletter-cta__inner {
  max-width: 900px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
@media (max-width: 640px) { .newsletter-cta__inner { grid-template-columns: 1fr; gap: 28px; } }
.newsletter-cta__eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; color: var(--ochre); margin-bottom: 10px; }
.newsletter-cta__title { font-size: 28px; font-weight: 800; margin-bottom: 10px; line-height: 1.25; color: var(--white); }
.newsletter-cta__desc { font-size: 15px; color: #ccc; line-height: 1.65; }
.newsletter-cta__form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-cta__input {
  padding: 14px 16px; border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md); font-family: var(--font); font-size: 15px;
  background: rgba(255,255,255,0.08); color: var(--white);
}
.newsletter-cta__input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-cta__input:focus { outline: none; border-color: var(--green); }
.newsletter-cta__btn {
  padding: 14px; background: var(--green); color: var(--white);
  border: none; border-radius: var(--radius-md); font-family: var(--font);
  font-size: 15px; font-weight: 600; cursor: pointer; transition: opacity 0.2s;
}
.newsletter-cta__btn:hover { opacity: 0.88; }
.newsletter-cta__btn:disabled { opacity: 0.5; cursor: default; }
.newsletter-cta__note { font-size: 13px; color: var(--green); font-weight: 600; }

/* ---- UTILITIES ---- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* =============================================================
   HOMEPAGE  -  production design
   ============================================================= */

/* Shared helpers */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 86px 0; }
.muted { color: var(--gray-600); }
.skip { position: absolute; left: -999px; top: 10px; background: #fff; color: #000; padding: 10px 14px; z-index: 999; }
.skip:focus { left: 10px; }

/* Single-dash button variants (homepage) */
.btn-primary { background: var(--accent); color: #000; border: 2px solid var(--accent); border-radius: 14px; padding: 14px 22px; font-weight: 800; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; transition: background .15s, transform .15s; text-decoration: none; line-height: 1; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); text-decoration: none; }
.btn-light { background: #fff; color: #000; border: 2px solid #fff; border-radius: 14px; padding: 14px 22px; font-weight: 800; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; transition: background .15s, transform .15s; text-decoration: none; line-height: 1; }
.btn-light:hover { background: var(--gray-100); transform: translateY(-1px); text-decoration: none; }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 2px solid rgba(255,255,255,.18); border-radius: 14px; padding: 14px 22px; font-weight: 800; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; transition: background .15s, transform .15s; text-decoration: none; line-height: 1; }
.btn-ghost:hover { background: rgba(255,255,255,.15); transform: translateY(-1px); text-decoration: none; }
.btn-outline-dark { background: transparent; color: var(--black); border: 2px solid var(--black); border-radius: 14px; padding: 14px 22px; font-weight: 800; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; transition: background .15s, color .15s, transform .15s; text-decoration: none; line-height: 1; }
.btn-outline-dark:hover { background: var(--black); color: #fff; transform: translateY(-1px); text-decoration: none; }

/* Nav  -  quiz CTA override */
.nav-cta-quiz { background: var(--amber); color: #000; border: 2px solid var(--amber); border-radius: 10px; padding: 10px 18px; font-weight: 800; font-size: 14px; cursor: pointer; transition: background .15s; text-decoration: none; white-space: nowrap; margin-left: auto; }
.nav-cta-quiz:hover { background: #d97706; border-color: #d97706; text-decoration: none; }

/* Hero */
.hero { position: relative; isolation: isolate; min-height: 760px; padding: 106px 0 90px; background: #111 url('https://images.unsplash.com/photo-1698678961430-eccdca1a52ff?w=1400&h=900&fit=crop&auto=format&q=72') center/cover no-repeat; border-bottom: none; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg,rgba(0,0,0,.92),rgba(0,0,0,.78) 48%,rgba(0,0,0,.45)); }
.hero-grid { display: grid; grid-template-columns: minmax(0,1fr) 420px; gap: 72px; align-items: center; }
.hero-copy { color: #fff; }
.hero-copy h1 { color: #fff; font-size: clamp(36px,4.2vw,58px); margin-bottom: 20px; }
.lead { font-size: clamp(18px,2vw,22px); color: rgba(255,255,255,.78); max-width: 650px; margin: 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.micro { color: rgba(255,255,255,.58); font-size: 14px; }

/* Proof bar */
.proofbar { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 30px; max-width: 700px; }
.proof { padding: 14px 16px; border: 1px solid rgba(255,255,255,.22); border-radius: 16px; background: rgba(255,255,255,.10); backdrop-filter: blur(6px); color: #fff; }
.proof strong { display: block; font-size: 18px; }
.proof span { display: block; color: rgba(255,255,255,.62); font-size: 12px; }

/* Hero widget */
.widget { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.2); }
.widget-head { padding: 21px 22px; border-bottom: 1px solid #eee; }
.widget-head h2 { font-size: 19px; letter-spacing: -.02em; }
.widget-head p { font-size: 13px; color: var(--gray-600); }
.scores { display: grid; grid-template-columns: repeat(5,1fr); border-bottom: 1px solid #eee; }
.score { text-align: center; padding: 14px 6px; border-right: 1px solid #eee; }
.score:last-child { border-right: 0; }
.score small { display: block; color: #999; font-size: 10px; }
.score b { font-size: 20px; }
.hi { color: var(--green); }
.mid { color: var(--amber); }
.lo { color: var(--red); }
.rankings { padding: 18px 22px; }
.rankings h3 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #666; margin-bottom: 12px; }
.rank { display: grid; grid-template-columns: 20px 1fr 76px 30px; gap: 9px; align-items: center; padding: 7px 0; font-size: 13px; }
.bar { height: 5px; background: #eee; border-radius: 999px; overflow: hidden; }
.bar span { display: block; height: 100%; background: #111; border-radius: 999px; }
.widget-link { display: block; padding: 14px 22px; border-top: 1px solid #eee; font-weight: 800; font-size: 14px; }
.preview-image { padding: 18px; }
.preview-image .preview-card { background: #fff; color: #111; padding: 18px; border-radius: 16px; border: 1px solid #eee; }

/* Strip */
.strip { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 34px 0; }
.strip-grid { display: grid; grid-template-columns: 1.1fr repeat(3,1fr); gap: 24px; align-items: center; }
.strip h2 { font-size: 24px; }
.strip p { color: var(--gray-600); }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 34px; }
.hp-card { border: 1px solid var(--line); border-radius: 18px; padding: 24px; background: #fff; transition: transform .18s ease, box-shadow .18s ease; text-decoration: none; display: block; color: var(--black); }
.hp-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.08); text-decoration: none; }
.hp-card h3 { margin-bottom: 8px; }
.hp-card p { color: var(--gray-600); }

/* Dark sections */
.dark { background: #050505; color: #fff; }
.dark h2 { color: #fff; }
.dark p { color: rgba(255,255,255,.66); }
.dark .hp-card { background: #111; border-color: #2a2a2a; color: #fff; }
.dark .hp-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.dark .hp-card h3 { color: #fff; }
.dark .hp-card p { color: rgba(255,255,255,.66); }

/* Trust section */
.trust-layout { display: grid; grid-template-columns: .95fr 1.35fr; gap: 64px; align-items: center; }
.trust-copy h2 { max-width: 560px; }
.trust-copy p { max-width: 620px; margin-top: 18px; }
.trust-cards { display: grid; grid-template-columns: 1fr; gap: 16px; }

/* Region cards */
.hp-regions { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-top: 34px; }
.hp-region { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; text-decoration: none; display: block; transition: transform .18s ease, box-shadow .18s ease; }
.hp-region:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.08); text-decoration: none; }
.hp-region img { aspect-ratio: 4/3; object-fit: cover; width: 100%; display: block; }
.hp-region-placeholder { aspect-ratio: 4/3; background: var(--gray-100); display: grid; place-items: center; color: var(--gray-400); font-size: 32px; }
.hp-region-body { padding: 16px; }
.hp-region-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.hp-region-top h3 { font-size: 18px; color: var(--black); }
.score-badge { display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; padding: 4px 10px; background: var(--green); color: #fff; font-size: 13px; font-weight: 900; }
.score-badge.mid { background: var(--amber); }
.score-badge.low { background: var(--red); }
.hp-region small { display: block; margin: 4px 0 9px; color: #999; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }

/* Comparison table */
.comparison { overflow: auto; margin-top: 32px; }
.comparison table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.04); }
.comparison th, .comparison td { padding: 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
.comparison tbody tr:last-child td { border-bottom: none; }
.comparison th { background: var(--soft2); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: #7a6a4a; }

/* Map section */
.hp-map { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.map-box { min-height: 360px; border: 1px solid var(--line); border-radius: 18px; background: radial-gradient(circle at 70% 35%,#dbc28e 0 5%,transparent 5.4%),linear-gradient(135deg,#f4efe3,#fff); display: grid; place-items: center; color: #92703d; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }

/* FAQ */
.hp-faq { display: grid; grid-template-columns: .8fr 1.4fr; gap: 54px; }
.hp-faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.hp-faq details:last-child { border-bottom: 1px solid var(--line); }
.hp-faq summary { cursor: pointer; font-weight: 800; font-size: 18px; list-style: none; }
.hp-faq summary::-webkit-details-marker { display: none; }
.hp-faq details p { margin-top: 10px; color: var(--gray-600); }

/* CTA panel */
.cta-panel { max-width: 760px; margin: 0 auto; text-align: center; }
.cta-panel p { margin: 18px auto 28px; max-width: 560px; color: rgba(255,255,255,.72); }

/* Newsletter with bg image */
.hp-newsletter-wrap { position: relative; }
.hp-newsletter-bg { background: url('https://images.unsplash.com/photo-1500375592092-40eb2168fd21?w=1400&h=600&fit=crop&auto=format&q=70') center/cover no-repeat; position: relative; padding: 80px 0; }
.hp-newsletter-bg::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.hp-newsletter-inner { position: relative; max-width: 900px; margin: 0 auto; padding: 0 24px; }
.hp-newsletter-box { background: #0b0b0b; border: 1px solid #1f1f1f; border-radius: 10px; padding: 40px; display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; }
.hp-newsletter-box h2 { color: #fff; font-size: 30px; }
.hp-newsletter-box .muted { color: rgba(255,255,255,.62); margin-top: 10px; }
.nl-form { display: flex; flex-direction: column; gap: 10px; }
.nl-form label { font-size: 13px; font-weight: 800; color: rgba(255,255,255,.82); }
.nl-form input[type="email"] { min-height: 50px; border: 1.5px solid rgba(255,255,255,.25); border-radius: 6px; padding: 0 14px; font: inherit; background: #fff; color: #111; }
.nl-form .nl-btn { min-height: 50px; border-radius: 6px; border: none; background: var(--accent); color: #000; font: inherit; font-weight: 800; cursor: pointer; transition: background .15s; }
.nl-form .nl-btn:hover { background: var(--accent-dark); }
.nl-note { font-size: 12px; color: rgba(255,255,255,.48); }
.nl-success { font-size: 14px; font-weight: 600; color: var(--green); }

/* Footer  -  4 col (uses existing .footer-inner grid) */
.footer-inner a { color: rgba(255,255,255,.68); }
.footer-inner a:hover { color: #fff; text-decoration: none; }
.footer-inner ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.footer-inner li a { white-space: nowrap; font-size: 14px; }
.footer-brand-desc { color: rgba(255,255,255,.55); margin-top: 12px; font-size: 14px; line-height: 1.6; }
.footer-col-heading { color: #fff; font-weight: 700; font-size: 14px; margin: 0 0 4px; }

/* Author box */
.author-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: #f7f3ee;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  padding: 24px;
  margin: 48px 0;
}
.author-box__avatar { flex-shrink: 0; width: 72px; height: 72px; }
.author-box__avatar img { width: 72px !important; height: 72px !important; border-radius: 50%; object-fit: cover; display: block; }
.author-box__name { font-weight: 700; font-size: 15px; color: var(--black); margin: 0 0 6px; }
.author-box__bio { font-size: 14px; color: var(--gray-700, #444); line-height: 1.65; margin: 0; }
@media (max-width: 480px) { .author-box { flex-direction: column; } }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .hp-map, .hp-faq, .hp-newsletter-box, .trust-layout { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hp-regions { grid-template-columns: repeat(2,1fr); }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid-4 { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 76px 0 60px; }
  .proofbar, .hp-regions, .card-grid, .strip-grid, .footer-grid-4 { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; }
  .hp-newsletter-box { grid-template-columns: 1fr; padding: 28px; }
  .hero-copy h1 { font-size: clamp(32px,8vw,52px); }
}

/* =======================================================
   Single Region page
   ======================================================= */

.region-overview {
  font-size: 17px;
  line-height: 1.75;
  color: var(--gray-800);
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.region-photo { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 40px; }
.region-photo img { width: 100%; height: auto; display: block; object-fit: cover; max-height: 460px; }

.region-who-for {
  margin-bottom: 48px;
  padding: 28px 32px;
  background: var(--green-light);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--green);
}
.region-who-for h2 { font-size: clamp(18px,2.5vw,22px); margin-bottom: 14px; color: var(--green); }
.region-who-for p { font-size: 15px; line-height: 1.7; color: var(--gray-800); margin-bottom: 0; }

.score-details { margin-bottom: 48px; }
.score-details h2 { font-size: clamp(18px,2.5vw,22px); margin-bottom: 24px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }
.score-details__stack { display: flex; flex-direction: column; gap: 14px; }
.score-detail-card { display: flex; align-items: flex-start; gap: 20px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px 24px; box-shadow: var(--shadow-sm); }
.score-detail-card__left { display: flex; flex-direction: column; align-items: center; min-width: 110px; flex-shrink: 0; gap: 8px; padding-top: 4px; }
.score-badge--lg { font-size: 22px; font-weight: 800; padding: 6px 12px; }
.score-detail-card__label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-600); text-align: center; line-height: 1.3; }
.score-detail-card__right { flex: 1; }
.score-detail-card__right p { font-size: 14px; line-height: 1.7; color: var(--gray-800); margin-bottom: 0; }
@media (max-width: 560px) {
  .score-detail-card { flex-direction: column; gap: 12px; }
  .score-detail-card__left { flex-direction: row; min-width: unset; align-items: center; gap: 12px; }
}

.cost-breakdown { margin-bottom: 48px; }
.cost-breakdown h2 { font-size: clamp(18px,2.5vw,22px); margin-bottom: 24px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }
.cost-breakdown__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
@media (max-width: 640px) { .cost-breakdown__grid { grid-template-columns: 1fr; } }
.cost-card { background: var(--gray-50); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; text-align: center; box-shadow: var(--shadow-sm); }
.cost-card__icon { font-size: 24px; margin-bottom: 8px; }
.cost-card__label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-600); margin-bottom: 8px; }
.cost-card__value { font-size: 14px; font-weight: 600; color: var(--gray-800); line-height: 1.4; }

.region-local-map-section { margin-bottom: 48px; }
.region-local-map-section h2 { font-size: clamp(18px,2.5vw,22px); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }
.region-local-map { height: 380px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }

.region-towns { margin-bottom: 48px; }
.region-towns h2 { font-size: clamp(18px,2.5vw,22px); margin-bottom: 24px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }
.region-towns-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
@media (min-width: 900px) { .region-towns-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 560px) { .region-towns-grid { grid-template-columns: 1fr; } }
.region-town-card { background: var(--gray-50); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.region-town-card h3 { font-size: 15px; font-weight: 700; color: var(--green); margin-bottom: 8px; line-height: 1.3; }
.region-town-card p { font-size: 13px; line-height: 1.6; color: var(--gray-600); margin-bottom: 0; }

.pros-cons { margin-bottom: 48px; }
.pros-cons h2 { font-size: clamp(18px,2.5vw,22px); margin-bottom: 24px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }
.pros-cons__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 640px) { .pros-cons__grid { grid-template-columns: 1fr; } }
.pros-cons__col { background: var(--gray-50); border-radius: var(--radius-md); padding: 24px; border: 1px solid var(--border); }
.pros-cons__col--pros { border-top: 3px solid var(--green); }
.pros-cons__col--cons { border-top: 3px solid #dc2626; }
.pros-cons__col-title { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.pros-cons__col-title--pros { color: var(--green); }
.pros-cons__col-title--cons { color: #dc2626; }
.pros-cons__list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.pros-cons__item { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.55; color: var(--gray-800); }
.pros-cons__icon { flex-shrink: 0; font-size: 13px; margin-top: 2px; font-weight: 700; }
.pros-cons__item--pro .pros-cons__icon { color: var(--green); }
.pros-cons__item--con .pros-cons__icon { color: #dc2626; }

.region-gallery { margin-bottom: 48px; }
.region-gallery h2 { font-size: clamp(18px,2.5vw,22px); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }
.region-gallery__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
@media (max-width: 640px) { .region-gallery__grid { grid-template-columns: repeat(2,1fr); } }
.region-gallery__item { display: block; overflow: hidden; border-radius: var(--radius-md); aspect-ratio: 4/3; background: var(--gray-100); }
.region-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.region-gallery__item:hover img { transform: scale(1.04); }

.dri-lightbox { display: none; position: fixed; inset: 0; z-index: 9999; align-items: center; justify-content: center; flex-direction: column; gap: 12px; }
.dri-lightbox.is-open { display: flex; }
.dri-lightbox__backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.88); z-index: 9998; }
.dri-lightbox__backdrop.is-open { display: block; }
.dri-lightbox__img-wrap { max-width: 90vw; max-height: 80vh; display: flex; align-items: center; justify-content: center; }
.dri-lightbox__img-wrap img { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: var(--radius-md); box-shadow: 0 8px 40px rgba(0,0,0,0.6); }
.dri-lightbox__close,
.dri-lightbox__prev,
.dri-lightbox__next { position: fixed; background: rgba(255,255,255,0.15); border: none; color: #fff; cursor: pointer; border-radius: 50%; width: 44px; height: 44px; font-size: 20px; display: flex; align-items: center; justify-content: center; transition: background 0.2s; z-index: 10000; }
.dri-lightbox__close:hover,
.dri-lightbox__prev:hover,
.dri-lightbox__next:hover { background: rgba(255,255,255,0.3); }
.dri-lightbox__close { top: 20px; right: 20px; font-size: 26px; }
.dri-lightbox__prev  { left: 16px; top: 50%; transform: translateY(-50%); }
.dri-lightbox__next  { right: 16px; top: 50%; transform: translateY(-50%); }
.dri-lightbox__counter { color: rgba(255,255,255,0.7); font-size: 13px; margin: 0; z-index: 10000; }

/* ---- SPEAKABLE SECTION ---- */
.speakable-section { background: var(--gray-50); border-top: 1px solid var(--border); padding: 48px 0; }
.speakable-para { font-size: 17px; line-height: 1.75; color: var(--gray-700); max-width: 720px; margin: 0 auto 20px; }
.speakable-para:last-child { margin-bottom: 0; }

/* =======================================================
   Single Neighbourhood page
   ======================================================= */

.nbhd-hero { position: relative; padding: 72px 0 48px; background: var(--black); color: var(--white); overflow: hidden; }
.nbhd-hero--has-img .nbhd-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.nbhd-hero--has-img .nbhd-hero__overlay { position: absolute; inset: 0; background: linear-gradient(to right,rgba(0,0,0,0.75) 0%,rgba(0,0,0,0.35) 100%); }
.nbhd-hero__inner { position: relative; z-index: 1; }
.nbhd-hero h1 { font-size: clamp(28px,4vw,52px); color: var(--white); margin: 8px 0 12px; max-width: 680px; }
.nbhd-hero__tagline { font-size: 17px; color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 0 16px; line-height: 1.5; }
.nbhd-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nbhd-hero__chips span { font-size: 12px; background: rgba(255,255,255,0.15); color: var(--white); padding: 4px 12px; border-radius: 100px; }
.nbhd-main { padding: 56px 0 80px; }
.nbhd-overview { max-width: 760px; margin-bottom: 40px; }
.nbhd-overview p { font-size: 17px; color: var(--gray-700); line-height: 1.75; }
.nbhd-content { max-width: 760px; margin-bottom: 40px; }
.nbhd-vibe { max-width: 760px; margin-bottom: 40px; }
.nbhd-vibe h2 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.nbhd-vibe p { font-size: 16px; color: var(--gray-700); line-height: 1.7; }
.nbhd-back { margin-top: 32px; }
.nbhd-back a { font-size: 14px; color: var(--gray-600); text-decoration: none; font-weight: 500; }
.nbhd-back a:hover { color: var(--black); }

.nbhd-proscons { max-width: 760px; margin-bottom: 40px; }
.nbhd-proscons__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 600px) { .nbhd-proscons__grid { grid-template-columns: 1fr; } }
.nbhd-proscons__col h3 { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }
.nbhd-proscons__col--pros h3 { color: var(--green,#16a34a); }
.nbhd-proscons__col--cons h3 { color: var(--red,#dc2626); }
.nbhd-proscons__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.nbhd-proscons__col li { font-size: 15px; color: var(--gray-700); line-height: 1.5; padding-left: 20px; position: relative; }
.nbhd-proscons__col--pros li::before { content: '+'; position: absolute; left: 0; color: var(--green,#16a34a); font-weight: 700; }
.nbhd-proscons__col--cons li::before { content: '-'; position: absolute; left: 0; color: var(--red,#dc2626); font-weight: 700; }

.nbhd-gallery { max-width: 760px; margin-bottom: 40px; }
.nbhd-gallery h2 { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.nbhd-gallery__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
@media (max-width: 600px) { .nbhd-gallery__grid { grid-template-columns: repeat(2,1fr); } }
.nbhd-gallery__item { display: block; aspect-ratio: 4/3; overflow: hidden; border-radius: 6px; }
.nbhd-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s; display: block; }
.nbhd-gallery__item:hover img { transform: scale(1.04); }

/* Last-updated badge */
.dri-updated {
	font-size: 13px;
	color: var(--gray-600, #6b7280);
	margin: 4px 0 8px;
}
.region-hero--has-img .dri-updated {
	color: rgba(255, 255, 255, 0.85);
}

/* Directory cross-links (hidden until populated) */
.dri-directory-links {
	padding: 48px 0;
	background: var(--gray-50, #f9fafb);
}
.dri-directory-links h2 {
	margin-bottom: 16px;
}

/* ============================================================
   Methodology & About page components
============================================================ */
.dri-lede {
	font-size: 19px;
	line-height: 1.65;
	color: var(--gray-800);
	max-width: 680px;
	margin-top: 12px;
}
.dri-section { margin: 56px 0; }
.dri-section__title { font-size: 28px; margin-bottom: 10px; }
.dri-section__sub { color: var(--gray-600); max-width: 620px; margin-bottom: 28px; }

/* Factor cards */
.dri-factor-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
	margin-top: 28px;
}
.dri-factor-card {
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 26px 24px;
	background: var(--white);
	transition: box-shadow .2s ease, transform .2s ease;
}
.dri-factor-card:hover {
	box-shadow: 0 8px 24px rgba(10, 10, 10, .07);
	transform: translateY(-2px);
}
.dri-factor-card__num {
	display: inline-block;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .08em;
	color: var(--gold);
	background: var(--sand-light);
	border: 1px solid var(--sand-border);
	border-radius: 999px;
	padding: 4px 12px;
	margin-bottom: 14px;
}
.dri-factor-card h3 { font-size: 18px; margin-bottom: 8px; }
.dri-factor-card p { font-size: 14.5px; line-height: 1.7; color: var(--gray-600); }
.dri-factor-card--accent {
	background: var(--sand-light);
	border-color: var(--sand-border);
}
.dri-factor-card--accent p { color: var(--gray-800); }

/* Scale rows */
.dri-scale { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; max-width: 640px; }
.dri-scale-row {
	display: flex;
	align-items: center;
	gap: 20px;
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 18px 22px;
	background: var(--white);
}
.dri-scale-row .score-badge { font-size: 16px; min-width: 92px; text-align: center; padding: 8px 14px; }
.dri-scale-row__text h3 { font-size: 16px; margin-bottom: 2px; }
.dri-scale-row__text p { font-size: 14px; color: var(--gray-600); }

/* Two-column callouts */
.dri-twocol {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
}
.dri-callout {
	background: var(--soft);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 28px;
}
.dri-callout h3 { font-size: 17px; margin-bottom: 10px; }
.dri-callout p { font-size: 14.5px; line-height: 1.75; color: var(--gray-800); }

/* Statement banner */
.dri-banner {
	background: var(--black);
	border-radius: 18px;
	padding: 48px 40px;
	text-align: center;
	margin: 56px 0;
}
.dri-banner h2 { color: var(--white); font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 12px; }
.dri-banner p { color: rgba(255, 255, 255, .75); max-width: 560px; margin: 0 auto; line-height: 1.7; }
.dri-banner--quote { padding: 40px; }
.dri-banner--quote h2 { color: var(--accent); margin-bottom: 0; font-style: italic; }

/* About intro */
.dri-about-intro {
	display: grid;
	grid-template-columns: 320px 1fr;
	gap: 36px;
	align-items: start;
}
.dri-about-intro__photo { margin: 0; }
.dri-about-intro__photo img {
	width: 100%;
	height: auto;
	border-radius: 16px;
	display: block;
}
.dri-about-intro__text p { margin-bottom: 16px; line-height: 1.75; color: var(--gray-800); }
.dri-about-chips { margin-top: 28px; }
.dri-about-chips .chip__value .score-badge { font-size: 12px; padding: 2px 8px; }

/* Timeline */
.dri-timeline {
	list-style: none;
	margin: 28px 0 0;
	padding: 0;
	position: relative;
}
.dri-timeline::before {
	content: '';
	position: absolute;
	left: 44px;
	top: 8px;
	bottom: 8px;
	width: 2px;
	background: var(--sand-border);
}
.dri-timeline__item {
	display: grid;
	grid-template-columns: 90px 1fr;
	gap: 24px;
	padding: 0 0 36px;
	position: relative;
}
.dri-timeline__item:last-child { padding-bottom: 0; }
.dri-timeline__year {
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .06em;
	color: var(--gold);
	background: var(--sand-light);
	border: 1px solid var(--sand-border);
	border-radius: 999px;
	padding: 5px 0;
	text-align: center;
	height: fit-content;
	position: relative;
	z-index: 1;
}
.dri-timeline__body h3 { font-size: 17px; margin-bottom: 4px; }
.dri-timeline__body p { font-size: 14.5px; line-height: 1.7; color: var(--gray-600); max-width: 560px; }

@media (max-width: 720px) {
	.dri-about-intro { grid-template-columns: 1fr; }
	.dri-about-intro__photo { max-width: 320px; }
	.dri-banner { padding: 36px 24px; }
	.dri-timeline::before { display: none; }
	.dri-timeline__item { grid-template-columns: 1fr; gap: 8px; }
	.dri-timeline__year { width: 90px; }
}

/* Cost of living calculator tool */
.dri-tool {
	border: 1px solid var(--line);
	border-radius: 18px;
	background: var(--soft);
	padding: 32px;
	margin: 40px 0;
}
.dri-tool__controls {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 16px;
	margin-bottom: 28px;
}
.dri-tool__field label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--gray-600);
	margin-bottom: 6px;
}
.dri-tool__field select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--white);
	font: inherit;
	font-size: 14px;
}
.dri-tool__result { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 8px 20px 16px; }
.dri-cost-table { width: 100%; border-collapse: collapse; }
.dri-cost-table td, .dri-cost-table th {
	padding: 12px 8px;
	border-bottom: 1px solid var(--gray-100);
	font-size: 15px;
	text-align: left;
}
.dri-cost-table td:last-child, .dri-cost-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.dri-cost-table--static td:last-child { text-align: right; }
.dri-cost-table--static th:not(:first-child), .dri-cost-table--static td:not(:first-child) { text-align: right; }
.dri-cost-table tfoot td {
	border-bottom: none;
	border-top: 2px solid var(--black);
	font-weight: 800;
	font-size: 17px;
	padding-top: 16px;
}
.dri-tool__note { font-size: 13px; color: var(--gray-600); margin-top: 14px; }
@media (max-width: 600px) {
	.dri-tool { padding: 20px; }
}

/* ──────────────────────────────────────────────────────────────────────
   Guide-page CTA normalisation
   The ~48 guide pages each hand-code their own CTA band + button with
   unique class names and an off-brand green. These rules override those
   inline styles to one brand-consistent treatment: dark band, white text,
   gold button with dark text. Framework components (newsletter signup,
   compare table, section-cta) are explicitly excluded.
   ────────────────────────────────────────────────────────────────────── */
[class$="-cta"]:not(.newsletter-cta):not(.section-cta):not(.intro-cta):not(.result-cta):not([class*="compare"]),
[class$="-cta-band"], [class$="-cta-section"], [class$="-cta-strip"] {
  background: #12141d !important;
  background-image: none !important;
  color: #ffffff !important;
}
[class$="-cta"]:not(.newsletter-cta):not(.section-cta):not(.intro-cta):not(.result-cta):not([class*="compare"]) h2,
[class$="-cta-band"] h2, [class$="-cta-section"] h2, [class$="-cta-strip"] h2,
[class$="-cta"]:not(.newsletter-cta):not(.section-cta):not(.intro-cta):not(.result-cta):not([class*="compare"]) h3 {
  color: #ffffff !important;
}
[class$="-cta"]:not(.newsletter-cta):not(.section-cta):not(.intro-cta):not(.result-cta):not([class*="compare"]) p,
[class$="-cta-band"] p, [class$="-cta-section"] p, [class$="-cta-strip"] p {
  color: rgba(255,255,255,0.82) !important;
}
[class$="-cta-btn"], [class$="-toc-btn"] {
  background: var(--accent) !important;
  background-image: none !important;
  color: #1a1a1a !important;
  border: none !important;
  text-shadow: none !important;
}
[class$="-cta-btn"]:hover, [class$="-toc-btn"]:hover {
  background: var(--accent-dark) !important;
  color: #1a1a1a !important;
}
