/* ============================================
   Climate Screener — Design Tokens
   ============================================ */
:root,
[data-theme='light'] {
  --color-bg: #f4f8f9;
  --color-surface: #ffffff;
  --color-surface-2: #fbfdfd;
  --color-surface-offset: #eaf1f2;
  --color-surface-offset-2: #dfe9ea;
  --color-divider: #d8e2e3;
  --color-border: #c8d5d7;

  --color-text: #10262b;
  --color-text-muted: #57727a;
  --color-text-faint: #9bb0b5;
  --color-text-inverse: #f4fbfc;

  --color-primary: #0e6d78;
  --color-primary-hover: #0a545c;
  --color-primary-active: #073d43;
  --color-primary-highlight: #d3e8ea;

  --color-warm: #d9772e;
  --color-warm-highlight: #f3ddc4;
  --color-cool: #3f7fc1;
  --color-cool-highlight: #d3e2f0;

  --color-error: #b23b3b;
  --color-error-highlight: #f0d4d4;
  --color-success: #3f8a52;
  --color-success-highlight: #d6e8da;

  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  --transition-interactive: 160ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px oklch(0.2 0.03 200 / 0.06);
  --shadow-md: 0 4px 16px oklch(0.2 0.03 200 / 0.08);
  --shadow-lg: 0 16px 40px oklch(0.2 0.03 200 / 0.14);

  --font-display: 'Synonym', 'General Sans', 'Helvetica Neue', sans-serif;
  --font-body: 'General Sans', 'Helvetica Neue', sans-serif;
}

[data-theme='dark'] {
  --color-bg: #0b1518;
  --color-surface: #101d21;
  --color-surface-2: #142327;
  --color-surface-offset: #17282c;
  --color-surface-offset-2: #1c2f33;
  --color-divider: #223639;
  --color-border: #2b4247;

  --color-text: #dcebed;
  --color-text-muted: #86a1a6;
  --color-text-faint: #52696d;
  --color-text-inverse: #0b1518;

  --color-primary: #4fb3bd;
  --color-primary-hover: #6fc6cf;
  --color-primary-active: #8bd4db;
  --color-primary-highlight: #1c3538;

  --color-warm: #e69352;
  --color-warm-highlight: #3a2c1c;
  --color-cool: #6fa4dd;
  --color-cool-highlight: #1e2c3b;

  --color-error: #d9797a;
  --color-error-highlight: #3a2323;
  --color-success: #74b98a;
  --color-success-highlight: #213324;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 4px 16px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0b1518;
    --color-surface: #101d21;
    --color-surface-2: #142327;
    --color-surface-offset: #17282c;
    --color-surface-offset-2: #1c2f33;
    --color-divider: #223639;
    --color-border: #2b4247;
    --color-text: #dcebed;
    --color-text-muted: #86a1a6;
    --color-text-faint: #52696d;
    --color-text-inverse: #0b1518;
    --color-primary: #4fb3bd;
    --color-primary-hover: #6fc6cf;
    --color-primary-active: #8bd4db;
    --color-primary-highlight: #1c3538;
    --color-warm: #e69352;
    --color-warm-highlight: #3a2c1c;
    --color-cool: #6fa4dd;
    --color-cool-highlight: #1e2c3b;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
    --shadow-md: 0 4px 16px oklch(0 0 0 / 0.35);
    --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.45);
  }
}

:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.8125rem, 0.78rem + 0.2vw, 0.9375rem);
  --text-base: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.0625rem, 1rem + 0.5vw, 1.375rem);
  --text-xl: clamp(1.375rem, 1.1rem + 1.2vw, 2rem);
  --text-2xl: clamp(1.9rem, 1.3rem + 2.2vw, 3rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
}

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

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  line-height: 1.55;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: background-color var(--transition-interactive), color var(--transition-interactive);
}

img, svg { display: block; max-width: 100%; }
ul[role='list'] { list-style: none; }
input, button, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; line-height: 1.15; }
p { text-wrap: pretty; }
a { color: var(--color-primary); }

::selection { background: color-mix(in oklab, var(--color-primary) 25%, transparent); }

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

button { cursor: pointer; background: none; border: none; }

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

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in oklab, var(--color-surface) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-divider);
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--color-text);
  text-decoration: none;
}
.brand-mark { color: var(--color-primary); flex-shrink: 0; }

.header-nav { display: flex; align-items: center; gap: var(--space-4); }
.header-meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
}
#city-count-badge { color: var(--color-primary); font-weight: 600; }

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--color-primary); border-color: var(--color-primary); }

@media (max-width: 640px) {
  .header-meta { display: none; }
}

/* ============================================
   Hero
   ============================================ */
.hero {
  padding-block: clamp(var(--space-10), 6vw, var(--space-16));
  border-bottom: 1px solid var(--color-divider);
  background:
    radial-gradient(ellipse 80% 60% at 15% 0%, color-mix(in oklab, var(--color-primary) 10%, transparent), transparent),
    var(--color-bg);
}
.hero-inner {
  max-width: 780px;
  margin: 0 auto;
  padding-inline: var(--space-6);
  text-align: center;
}
.eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.hero h1 {
  font-size: var(--text-2xl);
  font-weight: 600;
  margin-bottom: var(--space-4);
  letter-spacing: -0.01em;
}
.hero-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 620px;
  margin: 0 auto;
}

/* ============================================
   App Shell — Filters + Results
   ============================================ */
.app-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: var(--space-6);
}

.app-shell-grid,
.city-mode-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-6);
  align-items: start;
}

@media (max-width: 960px) {
  .app-shell-grid,
  .city-mode-grid { grid-template-columns: 1fr; }
}

/* ---- Mode tabs ---- */
.mode-tabs {
  display: inline-flex;
  gap: var(--space-1);
  padding: 4px;
  background: var(--color-surface-offset);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
}

.mode-tab {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 10px 18px;
  border-radius: calc(var(--radius-lg) - 4px);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.mode-tab:hover { color: var(--color-text); }

.mode-tab.is-active {
  background: var(--color-surface);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.mode-panel[hidden] { display: none; }

/* ---- City search suggestions ---- */
.city-suggestions {
  margin-top: var(--space-2);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  max-height: 260px;
  overflow-y: auto;
}
.city-suggestions[hidden] { display: none; }

.city-suggestion-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2);
  padding: 10px 14px;
  cursor: pointer;
  font-size: var(--text-sm);
}
.city-suggestion-item:hover,
.city-suggestion-item.is-highlighted {
  background: var(--color-surface-offset);
}
.city-suggestion-item + .city-suggestion-item {
  border-top: 1px solid var(--color-divider);
}
.city-suggestion-name { font-weight: 600; color: var(--color-text); }
.city-suggestion-country { color: var(--color-text-faint); font-size: var(--text-xs); }
.city-suggestion-empty {
  padding: 14px;
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  text-align: center;
}

/* ---- Best-months-for-a-city results ---- */
.city-results-area {
  min-height: 480px;
}

.city-picked-header {
  margin-bottom: var(--space-5);
}
.city-picked-header[hidden] { display: none; }
.city-picked-header h2 {
  font-size: var(--text-2xl);
  margin: 0;
}
.city-picked-country {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.city-mode-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 420px;
  padding: var(--space-8);
  color: var(--color-text-muted);
  gap: var(--space-2);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
}
.city-mode-empty[hidden] { display: none; }
.city-mode-empty svg { color: var(--color-text-faint); margin-bottom: var(--space-2); }
.city-mode-empty p { font-weight: 600; color: var(--color-text); font-size: var(--text-sm); }
.city-mode-empty span { font-size: var(--text-xs); max-width: 320px; }

.month-rank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-4);
}
.month-rank-grid[hidden] { display: none; }

.month-rank-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.month-rank-card.is-best {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary), var(--shadow-sm);
}

.month-rank-rank {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-faint);
}

.month-rank-card.is-best .month-rank-rank {
  color: var(--color-primary);
}

.month-rank-name {
  font-size: var(--text-lg);
  font-weight: 700;
  margin: 0 0 var(--space-3) 0;
}

.month-rank-stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.month-rank-stats strong { color: var(--color-text); }

.month-rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.month-rank-badge--great {
  background: color-mix(in srgb, var(--color-primary) 16%, transparent);
  color: var(--color-primary);
}
.month-rank-badge--ok {
  background: color-mix(in srgb, var(--color-warm) 18%, transparent);
  color: var(--color-warm);
}
.month-rank-badge--poor {
  background: color-mix(in srgb, var(--color-text-faint) 20%, transparent);
  color: var(--color-text-muted);
}

.filters-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: sticky;
  top: 84px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 960px) {
  .filters-panel { position: static; }
}

.field-group { margin-bottom: var(--space-6); }
.field-group:last-of-type { margin-bottom: var(--space-5); }

.field-group > label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.field-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-2);
  gap: var(--space-2);
}
.field-label-row label { font-size: var(--text-sm); font-weight: 600; }
.field-value {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.field-hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: 0;
}

select, input[type="text"] {
  width: 100%;
  padding: var(--space-3) var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  color: var(--color-text);
  font-size: var(--text-sm);
  transition: border-color var(--transition-interactive);
  appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2357727a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  padding-right: var(--space-8);
}
select:focus, input[type="text"]:focus { border-color: var(--color-primary); outline: none; }

.search-input-wrap { position: relative; }
.search-input-wrap svg {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-faint);
  pointer-events: none;
}
.search-input-wrap input { padding-left: var(--space-8); }

/* Dual range slider (temperature) */
.dual-slider {
  position: relative;
  height: 28px;
  margin-top: var(--space-2);
}
.dual-slider-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  transform: translateY(-50%);
  background: var(--color-surface-offset-2);
  border-radius: var(--radius-full);
}
.dual-slider-fill {
  position: absolute;
  height: 100%;
  background: var(--color-primary);
  border-radius: var(--radius-full);
}
.dual-slider input[type="range"] {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 28px;
  margin: 0;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}
.dual-slider input[type="range"]::-webkit-slider-thumb {
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 3px solid var(--color-primary);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  margin-top: 5px;
}
.dual-slider input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 3px solid var(--color-primary);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.dual-slider input[type="range"]::-webkit-slider-runnable-track { background: none; }
.dual-slider input[type="range"]::-moz-range-track { background: none; }

input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--color-surface-offset-2);
  border-radius: var(--radius-full);
  margin-top: var(--space-2);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 3px solid var(--color-primary);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 3px solid var(--color-primary);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  border: none;
}

.slider-scale {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-1);
}

.btn-ghost {
  width: 100%;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  text-align: center;
  transition: all var(--transition-interactive);
}
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }

.results-summary {
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-divider);
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}
.results-count {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-primary);
}
.results-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ============================================
   Results Area — Map + List
   ============================================ */
.results-area {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-6);
  min-height: 640px;
}

@media (max-width: 1180px) {
  .results-area { grid-template-columns: 1fr; }
}

.map-panel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-divider);
  box-shadow: var(--shadow-sm);
  height: 640px;
}
#map { width: 100%; height: 100%; }

@media (max-width: 1180px) {
  .map-panel { height: 420px; order: -1; }
}

.map-legend {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-4);
  background: color-mix(in oklab, var(--color-surface) 92%, transparent);
  backdrop-filter: blur(6px);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  border: 1px solid var(--color-divider);
  z-index: 5;
}
.legend-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.legend-dot--cool { background: var(--color-cool); margin-left: var(--space-2); }
.legend-dot--warm { background: var(--color-warm); }
.legend-dot--cool:first-child { margin-left: 0; }

.list-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 640px;
  overflow: hidden;
}
.list-header {
  padding: var(--space-5) var(--space-5) var(--space-4);
  border-bottom: 1px solid var(--color-divider);
  flex-shrink: 0;
}
.list-header h2 { font-size: var(--text-base); font-weight: 600; }

.city-list {
  overflow-y: auto;
  flex: 1;
  padding: var(--space-3);
}

.city-card {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: background var(--transition-interactive), border-color var(--transition-interactive);
  cursor: pointer;
}
.city-card:hover, .city-card.is-active {
  background: var(--color-surface-offset);
  border-color: var(--color-divider);
}

.city-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}
.city-card-name { font-size: var(--text-sm); font-weight: 600; }
.city-card-country { font-size: var(--text-xs); color: var(--color-text-muted); }

.city-card-temp {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.city-card-temp.is-cool { color: var(--color-cool); }
.city-card-temp.is-warm { color: var(--color-warm); }

.city-card-stats {
  display: flex;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.city-card-stats strong { color: var(--color-text); font-variant-numeric: tabular-nums; }

/* Skeleton loaders */
.skeleton-list { display: flex; flex-direction: column; gap: var(--space-2); }
.skeleton-card {
  height: 66px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, var(--color-surface-offset) 25%, var(--color-surface-offset-2) 37%, var(--color-surface-offset) 63%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
}
@keyframes skeleton-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  padding: var(--space-8);
  color: var(--color-text-muted);
  gap: var(--space-2);
}
.empty-state[hidden] {
  display: none;
}
.empty-state svg { color: var(--color-text-faint); margin-bottom: var(--space-2); }
.empty-state p { font-weight: 600; color: var(--color-text); font-size: var(--text-sm); }
.empty-state span { font-size: var(--text-xs); max-width: 260px; }

/* MapLibre popup styling */
.maplibregl-popup-content {
  background: var(--color-surface) !important;
  color: var(--color-text) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-lg) !important;
  padding: var(--space-4) !important;
  font-family: var(--font-body);
}
.maplibregl-popup-tip { display: none !important; }
.popup-city-name { font-weight: 600; font-size: var(--text-sm); margin-bottom: var(--space-1); }
.popup-city-country { font-size: var(--text-xs); color: var(--color-text-muted); margin-bottom: var(--space-3); }
.popup-stat-row { display: flex; justify-content: space-between; font-size: var(--text-xs); padding: var(--space-1) 0; }
.popup-stat-row strong { font-variant-numeric: tabular-nums; }

/* ============================================
   Methodology
   ============================================ */
.methodology {
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-16);
  background: var(--color-surface-offset);
}
.methodology-inner {
  max-width: 720px;
  margin: 0 auto;
  padding-inline: var(--space-6);
}
.methodology h2 { font-size: var(--text-lg); font-weight: 600; margin-bottom: var(--space-4); }
.methodology p { color: var(--color-text-muted); margin-bottom: var(--space-3); font-size: var(--text-sm); }
.methodology .fine-print { font-size: var(--text-xs); color: var(--color-text-faint); }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-8);
}
.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding-inline: var(--space-6);
  text-align: center;
}
.footer-inner p { font-size: var(--text-xs); color: var(--color-text-faint); }
