/*
  ==========================================================================
  ADU Explorer — Core Stylesheet (rebuild 2026-05-28)
  Navy header + orange CTA + light-blue accent + green success.
  Inter (body) + Montserrat (display).
  ==========================================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Montserrat:ital,wght@0,600;0,700;1,600&display=swap');

/* --- Tokens & Variables --- */
:root {
  /* Brand Colors */
  --c-header: #102B4E;
  --c-btn: #F47A20;
  --c-btn-hover: #D86512;
  --c-link: #0B4F9C;
  --c-highlight: #5DB7E8;
  --c-success: #4E8B2C;
  --c-bg: #F4F5F7;
  --c-white: #FFFFFF;
  --c-text: #333333;
  --c-text-muted: #555555;
  --c-border: #E0E4E8;

  /* Gradients */
  --g-hero: linear-gradient(135deg, #0B4F9C 0%, #5DB7E8 100%);

  /* Typography */
  --f-heading: 'Montserrat', sans-serif;
  --f-body: 'Inter', sans-serif;

  /* Spacing (Tokens) */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4rem;
}

/* --- Base --- */
html { box-sizing: border-box; scroll-behavior: smooth; }
*, *:before, *:after { box-sizing: inherit; }

body {
  margin: 0;
  background-color: var(--c-bg);
  font-family: var(--f-body);
  color: var(--c-text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-heading);
  color: var(--c-header);
  margin-top: 0;
  margin-bottom: var(--s-2);
  line-height: 1.2;
}

a { color: var(--c-link); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--c-btn-hover); text-decoration: underline; }

p { margin-top: 0; margin-bottom: var(--s-3); }
ul, ol { margin-top: 0; padding-left: 0; }

img { max-width: 100%; height: auto; display: block; }

/* Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--c-btn);
  color: var(--c-white);
  padding: 8px;
  z-index: 100;
}
.skip-link:focus { top: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* --- Top Bar (kept very subtle, can be removed) --- */
.sheet-header {
  background-color: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-text-muted);
}
.sheet-header__inner {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--s-1) var(--s-3);
}
@media (max-width: 640px) {
  .sheet-header__inner > span:nth-child(3) { display: none; }
}

/* --- Navigation --- */
.nav {
  background-color: var(--c-header);
  padding: 0.7rem var(--s-3);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.nav__inner {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: var(--s-3);
  position: relative; /* anchor for the mobile dropdown */
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  color: var(--c-white);
  line-height: 0;
}
.nav__brand:hover { opacity: 0.92; text-decoration: none; }
.nav__logo {
  height: 64px;
  width: auto;
  display: block;
}
@media (min-width: 1024px) {
  .nav__logo { height: 72px; }
}

.nav__primary {
  margin-left: auto; /* push primary nav to the right on desktop */
}
.nav__list {
  list-style: none;
  display: flex;
  gap: var(--s-3);
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav__list a {
  color: var(--c-white);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4rem 0;
  display: inline-block;
}
.nav__list a:hover { color: var(--c-highlight); text-decoration: none; }
.nav__list a[aria-current="page"] {
  color: var(--c-highlight);
  border-bottom: 2px solid var(--c-highlight);
  padding-bottom: 0.25rem;
}
.nav__cta {
  background: var(--c-btn);
  color: var(--c-white) !important;
  padding: 0.55rem 1.1rem !important;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background 0.2s ease;
}
.nav__cta:hover { background: var(--c-btn-hover); }

/* --- Hamburger toggle (mobile) --- */
.nav__toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--c-white);
  border-radius: 6px;
  color: var(--c-white);
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0;
  margin-left: auto; /* push to far right on mobile */
}
.nav__toggle:focus-visible {
  outline: 2px solid var(--c-highlight);
  outline-offset: 2px;
}
.nav__toggle__bars,
.nav__toggle__close { display: block; line-height: 1; }
.nav__toggle__close { display: none; }
.nav__toggle[aria-expanded="true"] .nav__toggle__bars { display: none; }
.nav__toggle[aria-expanded="true"] .nav__toggle__close { display: block; }

@media (max-width: 880px) {
  .nav__toggle { display: inline-flex; }

  /* Move primary nav out of the flex flow on mobile so the hamburger is the
     only thing to the right of the brand. */
  .nav__primary {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    background: var(--c-header);
    transform: translateY(-110%);
    transition: transform 0.25s ease;
    z-index: 49;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    box-shadow: 0 12px 20px rgba(0,0,0,0.18);
    visibility: hidden;
  }
  .nav__primary.is-open { transform: translateY(0); visibility: visible; }

  .nav__list {
    flex-direction: column;
    gap: 0;
    padding: var(--s-2) 0 var(--s-3);
    width: 100%;
    align-items: stretch;
  }
  .nav__list li { width: 100%; }
  .nav__list a, .nav__list .nav__cta {
    width: 100%;
    text-align: center;
    padding: var(--s-3) var(--s-3) !important;
    border-radius: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 1.05rem;
    display: block !important;
  }
  .nav__list .nav__cta {
    background: var(--c-btn);
    margin: var(--s-2) var(--s-3) 0;
    width: calc(100% - 2 * var(--s-3));
    border-radius: 6px !important;
  }
  body.nav-open { overflow: hidden; }
}

/* --- Layout Grid (sections) --- */
.section {
  padding: var(--s-6) var(--s-3);
  border-bottom: 1px solid var(--c-border);
}
.section__grid, .cta__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .section__grid, .cta__grid {
    grid-template-columns: 250px 1fr;
    gap: var(--s-6);
  }
}
.section__margin {
  display: flex;
  flex-direction: column;
  border-top: 3px solid var(--c-header);
  padding-top: var(--s-2);
}
.section__numeral {
  font-family: var(--f-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--c-highlight);
  line-height: 1;
  margin-bottom: var(--s-2);
}
.section__stamp {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--c-text-muted);
  letter-spacing: 0.05em;
}
.section__title { font-size: 2.25rem; }
@media (min-width: 768px) { .section__title { font-size: 2.5rem; } }
.section__lede {
  font-size: 1.15rem;
  color: var(--c-text-muted);
  max-width: 700px;
  margin-bottom: var(--s-5);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--c-btn);
  color: var(--c-white);
  padding: 0.85rem 1.75rem;
  border-radius: 6px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--f-body);
  font-size: 1rem;
  text-decoration: none;
  min-height: 48px;
}
.btn:hover {
  background-color: var(--c-btn-hover);
  color: var(--c-white);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(244, 122, 32, 0.3);
}
.btn--ghost {
  background-color: transparent;
  border: 2px solid var(--c-link);
  color: var(--c-link);
}
.btn--ghost:hover {
  background-color: var(--c-link);
  color: var(--c-white);
  box-shadow: none;
}

/* --- Hero --- */
.section--hero {
  background: var(--g-hero);
  color: var(--c-white);
  border-bottom: none;
}
.section--hero .section__margin { border-top-color: var(--c-white); }
.section--hero .section__numeral,
.section--hero .section__stamp,
.section--hero .section__title,
.section--hero .hero__kicker,
.section--hero .hero__lede {
  color: var(--c-white);
}
.hero__kicker {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--s-2);
  font-size: 0.9rem;
}
.hero__title {
  font-size: 2.5rem;
  max-width: 800px;
  text-wrap: balance;
}
@media (min-width: 768px) { .hero__title { font-size: 3.25rem; } }
@media (min-width: 1100px) { .hero__title { font-size: 3.5rem; } }
.hero__title em {
  color: var(--c-highlight);
  font-style: italic;
}
.hero__lede {
  font-size: 1.15rem;
  max-width: 56ch;
  margin-bottom: var(--s-4);
}
.hero__cta {
  display: flex;
  gap: var(--s-3);
  margin-top: var(--s-4);
  flex-wrap: wrap;
}
.section--hero .btn--ghost {
  border-color: var(--c-white);
  color: var(--c-white);
}
.section--hero .btn--ghost:hover {
  background-color: var(--c-white);
  color: var(--c-link);
}
.hero__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--s-4);
  margin-top: var(--s-6);
  padding-top: var(--s-4);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  list-style: none;
}
.hero__meta-item strong {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

/* --- Stats --- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-4);
}
.stat {
  background: var(--c-white);
  padding: var(--s-4);
  border-radius: 8px;
  border-top: 4px solid var(--c-success);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.stat__label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--c-text-muted);
  font-weight: 600;
  margin-bottom: var(--s-2);
  letter-spacing: 0.04em;
}
.stat__value {
  display: block;
  font-family: var(--f-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--c-header);
  margin-bottom: var(--s-2);
  line-height: 1;
}
.stat__value .unit {
  font-size: 1rem;
  color: var(--c-text-muted);
  font-weight: 500;
}
.stat__caption {
  font-size: 0.9rem;
  margin-bottom: var(--s-2);
  color: var(--c-text-muted);
}
.stat__source {
  font-size: 0.7rem;
  color: var(--c-highlight);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --- Atlas (city grid) --- */
.atlas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--s-3);
}
.atlas__card {
  display: flex;
  flex-direction: column;
  background: var(--c-white);
  padding: var(--s-4);
  border-radius: 8px;
  border: 1px solid var(--c-border);
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  color: inherit;
}
.atlas__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  border-color: var(--c-highlight);
  text-decoration: none;
}
.atlas__sheet {
  font-size: 0.7rem;
  color: var(--c-highlight);
  font-weight: 700;
  margin-bottom: var(--s-2);
  letter-spacing: 0.05em;
}
.eyebrow--topo {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: var(--s-1);
  letter-spacing: 0.04em;
}
.atlas__name {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}
.atlas__coords {
  font-size: 0.78rem;
  color: var(--c-text-muted);
  font-family: monospace;
  margin-bottom: var(--s-3);
  display: block;
}
.atlas__facts {
  list-style: none;
  margin-bottom: var(--s-4);
  flex-grow: 1;
  padding: 0;
}
.atlas__fact {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--c-border);
  font-size: 0.9rem;
  gap: 1rem;
}
.atlas__fact strong { color: var(--c-header); }
.atlas__arrow {
  font-weight: 600;
  color: var(--c-link);
}

/* --- Estimator --- */
.estimator {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 1024px) {
  .estimator {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
.estimator__chip {
  display: inline-flex;
  align-items: center;
  background: #E8F3ED;
  color: var(--c-success);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--s-3);
}
.estimator__chip .dot {
  width: 8px;
  height: 8px;
  background: var(--c-success);
  border-radius: 50%;
  margin-right: 8px;
}
.estimator__band {
  background: var(--c-white);
  border: 2px solid var(--c-success);
  border-radius: 8px;
  padding: var(--s-4);
  box-shadow: 0 8px 16px rgba(78, 139, 44, 0.1);
}
.estimator__band-stamp {
  font-size: 0.75rem;
  font-family: monospace;
  color: var(--c-text-muted);
  display: block;
  margin-bottom: var(--s-2);
}
.estimator__band-label {
  font-weight: 600;
  color: var(--c-header);
  font-size: 1.05rem;
}
.estimator__band-range {
  font-family: var(--f-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--c-success);
  margin-bottom: var(--s-3);
  line-height: 1;
}
@media (min-width: 600px) { .estimator__band-range { font-size: 3rem; } }
.estimator__band-range .dash { color: var(--c-border); margin: 0 0.4rem; }
.estimator__band-sub {
  display: flex;
  justify-content: space-between;
  padding-top: var(--s-2);
  margin-bottom: var(--s-3);
  border-top: 1px solid var(--c-border);
  font-size: 0.9rem;
  color: var(--c-text-muted);
}
.estimator__band-sub strong {
  color: var(--c-link);
  font-family: var(--f-heading);
  font-size: 1.05rem;
}
.estimator__band-caption {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  line-height: 1.5;
}
.estimator__breakdown { list-style: none; margin-bottom: var(--s-3); padding: 0; }
.estimator__breakdown li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--c-border);
  font-size: 0.9rem;
  gap: 1rem;
}
.estimator__breakdown li strong { color: var(--c-header); white-space: nowrap; }
.estimator__breakdown li small { display: block; color: var(--c-text-muted); font-size: 0.78rem; }
.estimator__uplift {
  display: flex;
  justify-content: space-between;
  background: var(--c-bg);
  padding: var(--s-2) var(--s-3);
  border-radius: 6px;
  font-weight: 600;
  color: var(--c-header);
  align-items: baseline;
  gap: 1rem;
}
.estimator__uplift strong { color: var(--c-success); font-family: var(--f-heading); }

/* Estimator form (inputs) */
.est-form {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: var(--s-4);
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}
.est-form__title {
  font-family: var(--f-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--c-text-muted);
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-bottom: var(--s-3);
}
.est-field { margin-bottom: var(--s-3); }
.est-field__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-header);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--s-1);
}
.est-field__val { color: var(--c-btn); font-family: var(--f-heading); }
.est-input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  font-family: var(--f-body);
  font-size: 1rem;
  background: var(--c-white);
  min-height: 44px;
}
.est-input:focus { outline: none; border-color: var(--c-highlight); box-shadow: 0 0 0 3px rgba(93,183,232,0.18); }
.est-radios { display: flex; flex-direction: column; gap: 0.4rem; }
.est-radio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  background: var(--c-white);
  cursor: pointer;
  font-size: 0.95rem;
  min-height: 44px;
}
.est-radio input { accent-color: var(--c-btn); }
.est-radio:has(input:checked) {
  border-color: var(--c-btn);
  background: #FFF6EF;
  box-shadow: inset 3px 0 0 var(--c-btn);
}
.est-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 32px;
  background: transparent;
  cursor: pointer;
}
.est-range::-webkit-slider-runnable-track { height: 4px; background: var(--c-border); border-radius: 2px; }
.est-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  background: var(--c-btn);
  border-radius: 50%;
  border: 3px solid var(--c-white);
  box-shadow: 0 0 0 1px var(--c-btn);
  margin-top: -9px;
}
.est-range::-moz-range-track { height: 4px; background: var(--c-border); border-radius: 2px; }
.est-range::-moz-range-thumb { width: 22px; height: 22px; background: var(--c-btn); border-radius: 50%; border: 3px solid var(--c-white); box-shadow: 0 0 0 1px var(--c-btn); }
.est-range__scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--c-text-muted);
  margin-top: 0.25rem;
}

/* Estimator email gate */
.est-gate {
  margin-top: var(--s-3);
  background: var(--c-bg);
  border: 2px dashed var(--c-btn);
  border-radius: 8px;
  padding: var(--s-3);
}
.est-gate__stamp {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--c-btn);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--s-1);
}
.est-gate__title {
  font-family: var(--f-heading);
  font-size: 1.15rem;
  margin-bottom: var(--s-1);
}
.est-gate__lede { font-size: 0.9rem; color: var(--c-text-muted); margin-bottom: var(--s-2); }
.est-gate__row { display: flex; gap: var(--s-1); flex-wrap: wrap; }
.est-gate__row input[type="email"] {
  flex: 1 1 220px;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  font-size: 0.95rem;
  min-height: 44px;
}
.est-gate__row input[type="email"]:focus { outline: none; border-color: var(--c-btn); }
.est-gate__name {
  width: 100%;
  margin-top: var(--s-1);
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  font-size: 0.95rem;
}
.est-gate__error { color: #B33A1A; font-size: 0.85rem; margin-top: 0.5rem; }
.est-break--locked .est-break__list,
.est-break--locked .est-break__uplift { filter: blur(5px); pointer-events: none; user-select: none; }

/* --- Timeline --- */
.timeline { list-style: none; position: relative; padding: 0; }
.timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 24px;
  width: 2px;
  background: var(--c-border);
}
.timeline__row {
  display: flex;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
  position: relative;
  flex-wrap: wrap;
}
.timeline__num {
  width: 50px; height: 50px;
  background: var(--c-white);
  border: 2px solid var(--c-highlight);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-heading);
  font-weight: 700;
  color: var(--c-highlight);
  z-index: 2;
  flex-shrink: 0;
}
.timeline__body { flex: 1 1 280px; min-width: 0; }
.timeline__body h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.timeline__body p { font-size: 0.95rem; color: var(--c-text-muted); margin-bottom: 0; }
.timeline__duration {
  margin-left: auto;
  white-space: nowrap;
  color: var(--c-btn);
  font-weight: 600;
  background: #FEF2E8;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  align-self: flex-start;
  font-size: 0.9rem;
}
.timeline__total {
  font-size: 1.15rem;
  text-align: right;
  padding-top: var(--s-3);
  border-top: 2px solid var(--c-border);
  color: var(--c-header);
  font-weight: 600;
}

/* --- Laws & Notes --- */
.laws, .notes { display: grid; gap: var(--s-4); }
.laws__row {
  display: grid;
  gap: var(--s-2);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--c-border);
}
@media (min-width: 768px) { .laws__row { grid-template-columns: 220px 1fr; gap: var(--s-4); } }
.laws__meta { display: flex; flex-direction: column; }
.laws__citation { font-weight: 700; color: var(--c-header); }
.laws__effective { font-size: 0.85rem; color: var(--c-highlight); font-weight: 600; }
.laws__title { font-family: var(--f-heading); font-size: 1.15rem; margin-bottom: 0.5rem; color: var(--c-header); }
.laws__summary { margin-bottom: var(--s-2); }
.laws__who {
  display: inline-block;
  background: var(--c-bg);
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--c-text-muted);
}

@media (min-width: 768px) { .notes { grid-template-columns: repeat(3, 1fr); } }
.note {
  background: var(--c-white);
  padding: var(--s-4);
  border-radius: 8px;
  border: 1px solid var(--c-border);
}
.note__num {
  font-family: var(--f-heading);
  font-size: 2rem;
  color: var(--c-highlight);
  font-weight: 700;
  display: block;
  margin-bottom: var(--s-2);
}
.note__label {
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--c-success);
  letter-spacing: 0.06em;
  margin-bottom: var(--s-2);
}
.note h3 { font-size: 1.2rem; }
.note p { color: var(--c-text-muted); font-size: 0.95rem; }
.note__figure {
  display: block;
  font-family: var(--f-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-success);
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--c-border);
}

/* --- City detail extras --- */
.callout {
  background: #FEF6EE;
  border-left: 4px solid var(--c-btn);
  padding: var(--s-3) var(--s-4);
  border-radius: 0 6px 6px 0;
  margin: var(--s-3) 0;
}
.callout__stamp {
  font-size: 0.75rem;
  color: var(--c-btn);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: var(--s-1);
}
.callout__body {
  font-family: var(--f-heading);
  font-size: 1.1rem;
  color: var(--c-header);
  font-weight: 500;
  line-height: 1.45;
  margin: 0;
}

.datalist { margin: var(--s-3) 0; }
.datalist__row {
  display: grid;
  grid-template-columns: 1fr;
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--c-border);
  gap: 0.25rem;
}
@media (min-width: 600px) {
  .datalist__row { grid-template-columns: 240px 1fr; gap: var(--s-3); align-items: baseline; }
}
.datalist dt { font-weight: 600; color: var(--c-header); font-size: 0.95rem; }
.datalist dd { margin: 0; color: var(--c-text-muted); }
.datalist dd a { color: var(--c-link); }

.cost-matrix { display: grid; grid-template-columns: 1fr; gap: var(--s-3); }
@media (min-width: 1000px) { .cost-matrix { grid-template-columns: repeat(3, 1fr); } }
.cost-row {
  background: var(--c-white);
  border-radius: 8px;
  border: 1px solid var(--c-border);
  padding: var(--s-3);
  display: flex;
  flex-direction: column;
}
.cost-row__head { margin-bottom: var(--s-2); }
.cost-row__type {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--c-success);
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}
.cost-row__meta { font-size: 0.8rem; color: var(--c-text-muted); }
.cost-row__range {
  font-family: var(--f-heading);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--c-header);
  margin-bottom: var(--s-2);
  line-height: 1.05;
}
.cost-row__range .dash { color: var(--c-border); margin: 0 0.25rem; }
.cost-row__break { list-style: none; padding: 0; margin: 0 0 var(--s-2); }
.cost-row__break li {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0;
  border-bottom: 1px dashed var(--c-border);
  font-size: 0.85rem;
  color: var(--c-text-muted);
  gap: 0.5rem;
}
.cost-row__break li strong { color: var(--c-header); white-space: nowrap; }
.cost-row__uplift {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  background: var(--c-bg);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-header);
}
.cost-row__uplift strong { color: var(--c-success); }

.siblings {
  list-style: none;
  display: grid;
  gap: var(--s-2);
  padding: 0;
  margin: var(--s-3) 0 0;
}
@media (min-width: 600px) { .siblings { grid-template-columns: repeat(2, 1fr); } }
.siblings a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--c-white);
  padding: var(--s-2) var(--s-3);
  border-radius: 6px;
  border: 1px solid var(--c-border);
}
.siblings a:hover { border-color: var(--c-highlight); text-decoration: none; }
.sibling__name { color: var(--c-header); font-weight: 600; font-family: var(--f-heading); }
.sibling__meta { font-size: 0.85rem; color: var(--c-text-muted); }

/* --- FAQ --- */
.faq details {
  background: var(--c-white);
  margin-bottom: var(--s-2);
  border-radius: 6px;
  border: 1px solid var(--c-border);
  overflow: hidden;
}
.faq summary {
  font-weight: 600;
  padding: var(--s-3);
  cursor: pointer;
  color: var(--c-header);
  background: var(--c-bg);
  list-style: none;
  position: relative;
  font-family: var(--f-heading);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--c-btn);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.faq details[open] summary::after { content: "−"; }
.faq__answer { padding: var(--s-3); border-top: 1px solid var(--c-border); color: var(--c-text); }

/* --- CTA --- */
.cta { background-color: var(--c-white); padding: var(--s-6) var(--s-3); }
.cta__title { font-size: 2rem; margin-bottom: var(--s-2); }
.cta__title em { color: var(--c-btn); font-style: italic; }
.cta__lede { font-size: 1.1rem; color: var(--c-text-muted); margin-bottom: var(--s-4); }
.cta__form {
  background: var(--c-bg);
  padding: var(--s-4);
  border-radius: 8px;
  border-top: 4px solid var(--c-btn);
}
.cta__form input[type="text"], .cta__form input[type="hidden"] { display: block; }
.field { margin-bottom: var(--s-3); }
.field label { display: block; font-weight: 600; margin-bottom: 0.5rem; color: var(--c-header); }
.field input, .field select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  font-family: var(--f-body);
  font-size: 1rem;
  background: var(--c-white);
  min-height: 44px;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--c-highlight);
  box-shadow: 0 0 0 3px rgba(93, 183, 232, 0.2);
}
.cta__note {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  margin-top: var(--s-2);
  text-align: center;
}

/* --- Sources / colophon --- */
.sources { list-style: none; padding: 0; }
.sources li { display: flex; gap: var(--s-2); margin-bottom: var(--s-2); font-size: 0.9rem; align-items: baseline; }
.sources__num {
  color: var(--c-highlight);
  font-family: monospace;
  font-weight: 700;
  flex-shrink: 0;
}

.colophon {
  background-color: var(--c-header);
  color: var(--c-white);
  padding: var(--s-6) var(--s-3) var(--s-3);
}
.colophon__inner {
  display: grid;
  gap: var(--s-4);
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: var(--s-4);
}
@media (min-width: 768px) { .colophon__inner { grid-template-columns: 2fr 1fr 1fr; } }
.colophon__brand {
  font-family: var(--f-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: var(--s-2);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.colophon__brand img { height: 36px; }
.colophon__brand-mark { color: var(--c-highlight); }
.colophon__tagline { color: rgba(255, 255, 255, 0.75); font-size: 0.9rem; }
.colophon__h { color: var(--c-white); margin-bottom: var(--s-2); font-size: 1rem; font-family: var(--f-heading); }
.colophon__list { list-style: none; padding: 0; }
.colophon__list li { margin-bottom: 0.5rem; }
.colophon__list a { color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; }
.colophon__list a:hover { color: var(--c-white); text-decoration: underline; }
.colophon__legal {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  max-width: 1200px;
  margin: var(--s-4) auto 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}
@media (min-width: 768px) { .colophon__legal { flex-direction: row; justify-content: space-between; } }

/* --- Breadcrumbs --- */
.breadcrumbs {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
}
.breadcrumbs__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.6rem var(--s-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
}
.breadcrumbs ol {
  display: flex;
  gap: 0.4rem;
  list-style: none;
  flex-wrap: wrap;
  padding: 0;
  color: var(--c-text-muted);
}
.breadcrumbs li + li::before { content: "›"; margin-right: 0.4rem; color: var(--c-border); }
.breadcrumbs a { color: var(--c-text-muted); }
.breadcrumbs a:hover { color: var(--c-btn-hover); }
.breadcrumbs li[aria-current="page"] { color: var(--c-header); font-weight: 600; }
.breadcrumbs__stamp { color: var(--c-highlight); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.75rem; }
@media (max-width: 600px) { .breadcrumbs__stamp { display: none; } }

/* --- Affiliate slot --- */
.affiliate {
  background: #FFF6EF;
  border: 1px dashed var(--c-btn);
  border-radius: 8px;
  padding: var(--s-3);
  margin: var(--s-4) 0;
}
.affiliate__stamp {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--c-btn);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--s-2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.affiliate__stamp::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--c-btn);
  border-radius: 50%;
  display: inline-block;
}
.affiliate__list { list-style: none; padding: 0; margin: 0; }
.affiliate__item { border-bottom: 1px dashed rgba(244, 122, 32, 0.3); }
.affiliate__item:last-child { border-bottom: 0; }
.affiliate__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  color: var(--c-header);
}
.affiliate__link:hover { color: var(--c-btn-hover); text-decoration: none; }
.affiliate__label { font-weight: 600; font-family: var(--f-heading); }
.affiliate__desc { display: block; font-size: 0.85rem; color: var(--c-text-muted); font-weight: 400; margin-top: 0.15rem; }
.affiliate__arrow { color: var(--c-btn); font-weight: 700; }
.affiliate__disclosure { font-size: 0.78rem; color: var(--c-text-muted); margin: var(--s-2) 0 0; }
.affiliate__disclosure a { color: var(--c-link); }

/* --- "How it works" home strip --- */
.how-it-works { display: grid; grid-template-columns: 1fr; gap: var(--s-3); }
@media (min-width: 768px) { .how-it-works { grid-template-columns: repeat(3, 1fr); } }
.hiw-step {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: var(--s-3);
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}
.hiw-step__num {
  font-family: var(--f-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-btn);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hiw-step h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.hiw-step p { color: var(--c-text-muted); font-size: 0.92rem; margin: 0; }
.hiw-step a { color: var(--c-link); font-weight: 600; font-size: 0.9rem; }

/* --- Long-form prose for legal/about --- */
.legal-prose { max-width: 720px; }
.legal-prose h2 {
  font-size: 1.5rem;
  margin-top: var(--s-5);
  margin-bottom: var(--s-2);
}
.legal-prose h3 {
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--c-btn);
  letter-spacing: 0.05em;
  margin-top: var(--s-3);
}
.legal-prose ul { padding-left: 1.25rem; margin-bottom: var(--s-3); }
.legal-prose ul li { margin-bottom: 0.5rem; }
