/* El Niño Track: Lagoon Pop brand tokens (CEO lock / brand-tokens-v1) */
:root {
  /* Canonical */
  --color-bg: #FAFCFF;
  --color-surface: #FFFFFF;
  --color-ink: #1E2A44;
  --color-ink-muted: rgba(30, 42, 68, 0.64);
  --color-accent: #5B8DEF;
  --color-accent-mint: #3DDC97;
  --color-accent-amber: #FFC857;
  --color-border: rgba(30, 42, 68, 0.12);
  --color-ad-well: #E8EEF7;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius-card: 12px;
  --radius-pill: 999px;
  --tap-min: 44px;

  /* Short aliases used across existing CSS */
  --bg: var(--color-bg);
  --ink: var(--color-ink);
  --accent: var(--color-accent);
  --mint: var(--color-accent-mint);
  --amber: var(--color-accent-amber);
  --card: var(--color-surface);
  --text: var(--color-ink);
  --muted: #5A657A;
  --border: var(--color-border);
  --ad-label: #7a8494;
  --ad-well: var(--color-ad-well);
  --ad-border: rgba(30, 42, 68, 0.12);
  --ad-mock: #e4ebf4;
  --where-bg: #eef4fb;
  --chart-bg: #f5f8fc;

  /* Phase UI washes derived from Lagoon (no coral primary) */
  --accent-nino: var(--color-accent);
  --accent-nino-soft: #c5d8f8;
  --accent-nino-sub: #e8f0fc;
  --accent-nino-panel: #e3edfa;
  --accent-nina: #2fad7a;
  --accent-nina-soft: #b6f0d6;
  --accent-nina-sub: #e5faf0;
  --accent-nina-panel: #daf6ea;
  --accent-neutral: #5A657A;
  --accent-neutral-soft: #c8cdd6;
  --accent-neutral-sub: #e8ebf0;
  --accent-neutral-panel: #e4e7ec;

  --content-max: 720px;
  --pad: 14px;
  --font: var(--font-sans);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 16px;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--text);
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

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

.wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--pad) 2.5rem;
}

/* Header */
.site-header {
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--color-border);
}

.site-header .inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 8px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 52px;
}

.logo {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 4px 4px 4px 0;
  margin: 0;
  text-decoration: none;
  color: var(--ink);
  border-radius: 8px;
  flex: 0 1 auto;
  max-width: calc(100% - 140px);
}

.logo:hover,
.logo:focus-visible {
  color: var(--ink);
  background: rgba(91, 141, 239, 0.08);
  outline: none;
}

.logo__img {
  display: block;
  height: 50px;
  width: auto;
  max-width: 100%;
}

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

.nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px 10px;
  font-size: 0.75rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover {
  color: var(--text);
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}


/* ========== HOMEPAGE V4 ========== */
.story-band--v4 {
  gap: 18px;
}

.story-h1--quiet {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: -0.01em;
}

.status-sentence {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text);
}

.index-micro {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.status-method {
  margin: 6px 0 0;
  font-size: 0.75rem;
}
.status-method a {
  color: var(--muted, #5c5c5c);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.status-method a:hover {
  color: var(--text, #141414);
}


.hero-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mood-panel {
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.mood-panel__art {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mood-panel__sun {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--accent-neutral);
}

.mood-panel__bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 72px;
}

.mood-panel__bar {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: var(--accent-neutral);
}

.mood-panel__bar:nth-child(1) { width: 100%; }
.mood-panel__bar:nth-child(2) { width: 72%; }
.mood-panel__bar:nth-child(3) { width: 48%; }

.mood-panel__label {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.mood-panel--nino {
  background: linear-gradient(135deg, var(--accent-nino-panel), #fff6e4);
}
.mood-panel--nino .mood-panel__sun,
.mood-panel--nino .mood-panel__bar {
  background: var(--accent-nino);
}
.mood-panel--nino .mood-panel__label {
  color: var(--accent-nino);
}

.mood-panel--nina {
  background: var(--accent-nina-panel);
}
.mood-panel--nina .mood-panel__sun,
.mood-panel--nina .mood-panel__bar {
  background: var(--accent-nina);
}
.mood-panel--nina .mood-panel__label {
  color: var(--accent-nina);
}

.mood-panel--neutral {
  background: var(--accent-neutral-panel);
}
.mood-panel--neutral .mood-panel__sun,
.mood-panel--neutral .mood-panel__bar {
  background: var(--accent-neutral);
}
.mood-panel--neutral .mood-panel__label {
  color: var(--accent-neutral);
}

.watch-card {
  background: var(--where-bg);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.watch-card__title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.watch-card__place {
  margin: 0;
  font-size: 0.875rem;
}

.watch-card__city {
  font-weight: 600;
  color: var(--accent-nino);
}

.watch-card__change {
  font-weight: 600;
  color: var(--accent-nino);
  text-decoration: none;
}

.watch-card__change:hover {
  text-decoration: underline;
}

.watch-card__list {
  margin: 0;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text);
}

.watch-card__list li {
  line-height: 1.4;
}

.watch-card__disclaimer {
  margin: 0;
  font-size: 0.6875rem;
  line-height: 1.35;
}

.actions--v4 {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.actions__method {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-nino);
  text-decoration: none;
  text-align: center;
  padding: 4px 0;
}

.actions__method:hover {
  text-decoration: underline;
  color: var(--text);
}

.skeleton--hero {
  height: 2rem;
  width: 16rem;
  max-width: 90%;
  border-radius: 8px;
}

.chart-x__tick {
  font-size: 0.5625rem;
  line-height: 1.2;
  white-space: normal;
  word-break: break-word;
}

.chart-x__human {
  display: block;
}

@media (min-width: 768px) {
  .hero-row {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
  }

  .hero-row .status-block {
    flex: 1 1 auto;
    min-width: 0;
  }

  .mood-panel {
    flex: 0 0 168px;
    width: 168px;
    padding: 16px;
  }

  .status-sentence {
    font-size: 2.125rem;
  }

  .story-h1--quiet {
    font-size: 1.0625rem;
  }

  .watch-card {
    padding: 18px 20px;
  }

  .actions--v4 {
    align-items: flex-start;
  }

  .actions--v4 .btn-primary {
  background: var(--color-accent);
  color: #FAFCFF;
  border-color: var(--color-accent);
}

/* ========== STORY BAND ========== */
.story-band {
  margin-top: 0.25rem;
  padding: 16px 14px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.story-h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
}

.status-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Phase color band (hero) */
.phase-band {
  border-radius: 10px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phase-band__hero {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
}

.phase-band__sub {
  margin: 0;
  font-size: 0.75rem;
  color: var(--accent-nino-sub);
}

.phase-band--nino {
  background: var(--accent-nino);
}
.phase-band--nino .phase-band__sub {
  color: var(--accent-nino-sub);
}

.phase-band--nina {
  background: var(--accent-nina);
}
.phase-band--nina .phase-band__sub {
  color: var(--accent-nina-sub);
}

.phase-band--neutral {
  background: var(--accent-neutral);
}
.phase-band--neutral .phase-band__sub {
  color: var(--accent-neutral-sub);
}

/* Pacific index (secondary) */
.index-secondary__label {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.index-secondary__value {
  margin: 4px 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.index-secondary__source {
  margin: 4px 0 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
}

.updated-when {
  margin: 0;
  font-size: 0.8125rem;
}

.story-divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* Skim graph */
.skim-graph {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skim-graph__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.chart-plot {
  background: var(--chart-bg);
  border-radius: 8px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 168px;
}

.chart-axis-label {
  margin: 0;
  font-size: 0.625rem;
  color: var(--muted);
}

.chart-bars {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 3px;
  height: 120px;
  width: 100%;
  position: relative;
  z-index: 0;
}

/* Midline drawn on the plot itself: not a sibling under the bars */
.chart-bars:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 0;
  border-top: 2px solid #5c564e;
  opacity: 0.75;
  z-index: 1;
  pointer-events: none;
}

.chart-col {
  flex: 1 1 0;
  max-width: 56px;
  min-width: 18px;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  z-index: 2;
}

.chart-col__pos,
.chart-col__neg {
  flex: 1 1 50%;
  display: flex;
  min-height: 0;
}

.chart-col__pos {
  align-items: flex-end;
}

.chart-col__neg {
  align-items: flex-start;
}

.chart-bar {
  width: 100%;
  border-radius: 2px;
  background: var(--accent-nino-soft);
  min-height: 0;
}

.chart-bar--current {
  background: var(--accent-nino);
  outline: 2px solid var(--text);
  outline-offset: 1px;
  opacity: 1;
}

.story-band.phase--nina .chart-bar {
  background: var(--accent-nina-soft);
}
.story-band.phase--nina .chart-bar--current {
  background: var(--accent-nina);
}
.story-band.phase--neutral .chart-bar {
  background: var(--accent-neutral-soft);
}
.story-band.phase--neutral .chart-bar--current {
  background: var(--accent-neutral);
}

.chart-frame {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.chart-zero {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  pointer-events: none;
  display: flex;
  justify-content: flex-end;
  max-width: 45%;
}

.chart-zero__label {
  font-size: 0.5625rem;
  color: var(--muted);
  white-space: nowrap;
  background: var(--chart-bg);
  padding: 0 4px;
  line-height: 1.2;
}

.chart-zero__line {
  display: none; /* line is .chart-bars:before */
}

.chart-x {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  width: 100%;
  min-height: 1.6rem;
}

.chart-x__tick {
  flex: 1 1 0;
  max-width: 72px;
  min-width: 40px;
  text-align: center;
  font-size: 0.5625rem;
  line-height: 1.2;
  color: var(--muted);
  overflow: hidden;
}

.chart-x__tick--current {
  color: var(--text);
  font-weight: 600;
}

.chart-x__season {
  display: block;
}

.chart-x__year {
  display: block;
  opacity: 0.85;
}

.chart-frame .chart-axis-label--bottom {
  margin: 2px 0 0;
}

.chart-caption {
  margin: 6px 0 0;
  font-size: 0.625rem;
}

.chart-footer {
  margin: 0;
  font-size: 0.6875rem;
}

.chart-fail {
  margin: 0;
}

.chart-fail[hidden] {
  display: none;
}

/* Where I am */
.where-i-am {
  background: var(--where-bg);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.where-i-am__label {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.where-i-am__place {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

.where-i-am__analog {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text);
}

.where-i-am__disclaimer {
  margin: 0;
  font-size: 0.6875rem;
}

.where-i-am__change {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-nino);
  text-decoration: none;
}

.where-i-am__change:hover {
  text-decoration: underline;
}

/* Actions */
.actions {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  color: #fff;
  opacity: 0.92;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 12px 16px;
}

.btn-secondary:hover {
  background: #e8eef8;
  color: var(--text);
}

/* Hard gap before Ad A */
.ad-gap {
  height: 56px;
}

/* Banners */
.banner-fail {
  display: none;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f8e8e2;
  color: var(--accent-nino);
  font-size: 0.85rem;
}

.banner-fail.is-visible {
  display: block;
}

.banner-empty {
  display: none;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--accent-neutral-sub);
  color: var(--accent-neutral);
  font-size: 0.85rem;
}

.banner-empty.is-visible {
  display: block;
}

/* Skeleton */
.skeleton {
  display: inline-block;
  height: 1em;
  width: 4.5rem;
  border-radius: 6px;
  background: linear-gradient(90deg, #e4ebf4 25%, #f5f8fc 50%, #e4ebf4 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
  vertical-align: middle;
}

.skeleton--lg {
  height: 1.75rem;
  width: 8rem;
  border-radius: 8px;
}

.skeleton--text {
  height: 0.85rem;
  width: 12rem;
  max-width: 80%;
}

.skeleton--bar {
  flex: 1 1 0;
  max-width: 28px;
  height: 40%;
  border-radius: 2px;
  align-self: flex-end;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Panels below story */
.panel {
  margin-top: 1.25rem;
  padding: 0;
  border: none;
  background: transparent;
}

.panel--plain h2 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.panel p {
  margin: 0 0 0.6rem;
}

.panel p:last-child {
  margin-bottom: 0;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.875rem;
}

/* Places grid */
.places-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 0.75rem;
}

.place-card {
  display: block;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  text-decoration: none;
  color: var(--text);
}

.place-card:hover {
  border-color: #b8b0a0;
  color: var(--text);
}

.place-card h3 {
  margin: 0 0 6px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.place-card p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

/* Ad slots: light treatment; never above story band */
.ad-slot {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ad-slot + .panel,
.panel + .ad-slot,
.ad-slot + .ad-slot {
  margin-top: 1.25rem;
}

.ad-slot__label {
  margin: 0;
  font-size: 0.625rem;
  color: var(--ad-label);
}

.ad-slot__well {
  background: var(--ad-well);
  border: 1px solid var(--ad-border);
  border-radius: 4px;
  min-height: 48px;
  max-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px;
}

.ad-slot__well--tall {
  min-height: 90px;
}

.ad-slot__mock-text {
  font-size: 0.6875rem;
  color: var(--ad-label);
}

.ad-slot__mock-bar {
  display: block;
  width: 120px;
  height: 24px;
  background: var(--ad-mock);
  border-radius: 2px;
}

/* Ad C: hide on mobile */
.ad-slot--footer {
  display: none;
  margin-top: 1.25rem;
  opacity: 0.72;
}
.ad-slot--footer .ad-slot__well {
  min-height: 56px;
  padding: 8px;
}
.ad-slot--footer .ad-slot__mock-bar {
  height: 16px;
  width: 96px;
}

.further-reading {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  font-size: 0.875rem;
}

.further-reading a {
  color: var(--muted);
  text-decoration: none;
}

.further-reading a:hover {
  color: var(--text);
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Footer */
.site-footer {
  margin-top: 1rem;
  padding: 1rem var(--pad) 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.6875rem;
  color: var(--muted);
}

.site-footer .inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.site-footer a {
  color: var(--muted);
}

.legal {
  margin-top: 0.35rem;
}

/* Inner pages still use older status-block patterns */
.status-block .status-row,
.chip {
  /* place pages may still use chips */
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}
.chip--nino {
  background: #f8e8e2;
  color: var(--accent-nino);
}
.chip--nina {
  background: #e2eef8;
  color: var(--accent-nina);
}
.chip--neutral {
  background: var(--accent-neutral-sub);
  color: var(--accent-neutral);
}

.index-area .index-value {
  font-size: 2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.page-title {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.source-list {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.source-list li {
  margin-bottom: 0.35rem;
}

code,
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
}

.prose h2 {
  margin-top: 1.5rem;
  font-size: 1.15rem;
}

.prose p {
  margin: 0.6rem 0;
}

.prose ul {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
}

/* Desktop */
@media (min-width: 768px) {
  :root {
    --pad: 20px;
  }

  .story-band {
    padding: 24px 28px 28px;
    border-radius: 16px;
    gap: 18px;
  }

  .story-h1 {
    font-size: 1.5rem;
  }

  .phase-band {
    padding: 22px 24px;
  }

  .phase-band__hero {
    font-size: 2.25rem;
  }

  .index-secondary__value {
    font-size: 1.15rem;
  }

  .chart-plot {
    min-height: 200px;
    padding: 14px 12px;
  }

  .chart-bars {
    height: 140px;
    gap: 5px;
  }

  .chart-col {
    max-width: 48px;
  }

  .chart-x__tick {
    max-width: 80px;
    font-size: 0.625rem;
  }

  .where-i-am {
    padding: 18px 20px;
  }

  .where-i-am__place {
    font-size: 1.35rem;
  }

  .actions {
    flex-direction: row;
    align-items: stretch;
  }

  .btn-primary {
    flex: 0 0 auto;
    min-width: 143px;
  }

  .btn-secondary {
    flex: 0 0 auto;
  }

  .ad-gap {
    height: 72px;
  }

  .site-header .inner {
    padding: 18px var(--pad) 12px;
  }

  .logo {
    max-width: none;
    min-height: 64px;
  }

  .logo__img {
    height: 60px;
  }

  .site-header .inner {
    min-height: 64px;
  }

  .nav {
    gap: 12px 16px;
    font-size: 0.8125rem;
  }

  .places-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ad-slot--footer {
    display: flex;
  }

  .panel--plain h2 {
    font-size: 1.15rem;
  }
}

/* ========== City impact chips (v1 A1) ========== */
.impact-chips {
  margin: 1.25rem 0 0;
}
.impact-chips__title {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.impact-chips__honesty {
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
.impact-chips__grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.impact-chip {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 14px 12px;
  border-left: 3px solid var(--accent-nino-soft);
  box-shadow: 0 1px 0 rgba(20, 20, 20, 0.03);
}
.impact-chip__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.impact-chip__metric {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.impact-chip__badge {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.2;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.impact-chip__badge--high {
  background: #eceae6;
  color: #3a3a3a;
  border: 1px solid transparent;
}
.impact-chip__badge--med {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.impact-chip__direction {
  margin: 0 0 6px;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
}
.impact-chip__region {
  margin: 0 0 6px;
  font-size: 0.75rem;
  color: var(--muted);
}
.impact-chip__caveat {
  margin: 0 0 8px;
  font-size: 0.75rem;
  color: var(--muted);
}
.impact-chip__footer {
  margin: 0;
  font-size: 0.6875rem;
  color: var(--ad-label);
}
@media (min-width: 768px) {
  .impact-chips__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .impact-chips__grid--seattle .impact-chip:last-child:nth-child(3) {
    grid-column: 1 / -1;
  }
  .impact-chip__direction {
    font-size: 1.2rem;
  }
}

/* ========== Email capture ========== */
.email-capture {
  margin: 1.25rem 0 0;
  padding: 14px;
  background: var(--where-bg);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.email-capture__title {
  margin: 0 0 4px;
  font-size: 0.9375rem;
  font-weight: 600;
}
.email-capture__hint {
  margin: 0 0 10px;
  font-size: 0.75rem;
  color: var(--muted);
}
.email-capture__form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.email-capture__row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.email-capture__input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: #fff;
  color: var(--text);
}
.email-capture__btn {
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  background: var(--accent-nino);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.email-capture__btn:hover {
  filter: brightness(0.95);
}
.email-capture__note {
  margin: 8px 0 0;
  font-size: 0.6875rem;
  color: var(--ad-label);
}
@media (min-width: 560px) {
  .email-capture__row {
    flex-direction: row;
    align-items: stretch;
  }
  .email-capture__input {
    flex: 1;
  }
  .email-capture__btn {
    white-space: nowrap;
  }
}

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

.code-block {
  background: #1c1a18;
  color: #f5f2ec;
  padding: 12px 14px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 0.75rem;
  line-height: 1.45;
}
.code-block code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }


/* Cookie / consent bar (minimal, bottom) */
.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: var(--bg);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(30, 42, 68, 0.08);
  padding: 12px 16px;
  color: #141414;
  font-size: 0.875rem;
  line-height: 1.4;
}
.cookie-bar__inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  justify-content: space-between;
}
.cookie-bar__text {
  margin: 0;
  flex: 1 1 220px;
  color: #3a3a3a;
}
.cookie-bar__text a {
  color: var(--accent);
  text-decoration: underline;
}
.cookie-bar__actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}
.cookie-bar__btn {
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  border: 1px solid #c4bdb0;
  background: #fff;
  color: #141414;
}
.cookie-bar__btn--accept {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #FAFCFF;
}
.cookie-bar__btn--reject:hover {
  background: #ebe6dc;
}
.cookie-bar__btn--accept:hover {
  background: #4a7ad4;
}

/* ========== Location picker (Phase B stub) ========== */
.watch-card__change {
  font: inherit;
  font-weight: 600;
  color: var(--accent-nino);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.watch-card__change:hover {
  text-decoration: underline;
}
.watch-card__region {
  margin: 0;
}
.watch-card__caveat {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f6e4de;
  border: 1px solid #e8b8a8;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #5a2a1c;
}
.watch-card__empty {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
}
.watch-card__badge {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #ebe6dc;
  border: 1px solid var(--border);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--muted);
  vertical-align: middle;
}

html.location-picker-open {
  overflow: hidden;
}

.location-picker {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.location-picker[hidden] {
  display: none !important;
}
.location-picker__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.45);
}
.location-picker__sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: min(92vh, 720px);
  overflow: auto;
  background: var(--card);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 32px rgba(20, 20, 20, 0.18);
  padding: 16px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text);
}
.location-picker__chrome {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.location-picker__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.location-picker__sub {
  margin: 4px 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.4;
}
.location-picker__close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
}
.location-picker__close:hover {
  background: var(--bg);
}
.location-picker__search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.location-picker__search {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}
.location-picker__search:focus {
  outline: 2px solid var(--accent-nino-soft);
  outline-offset: 1px;
  border-color: var(--accent-nino);
}
.location-picker__results {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.location-picker__result,
.location-picker__browse-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  text-align: left;
  font: inherit;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  color: var(--text);
}
.location-picker__result:hover,
.location-picker__browse-item:hover {
  border-color: var(--accent-nino-soft);
  background: var(--accent-nino-sub);
}
.location-picker__result-place {
  font-weight: 650;
  font-size: 0.9375rem;
}
.location-picker__result-region {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.35;
}
.location-picker__empty {
  margin: 0;
  padding: 12px;
  border-radius: 10px;
  background: #ebe6dc;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #3a3a3a;
}
.location-picker__browse-heading {
  margin: 8px 0 0;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.location-picker__browse {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 40vh;
  overflow: auto;
}
.location-picker__method {
  margin: 4px 0 0;
  font-size: 0.8125rem;
}
.location-picker__method a {
  color: var(--accent-nino);
  font-weight: 600;
}

@media (min-width: 640px) {
  .location-picker {
    align-items: center;
    padding: 24px;
  }
  .location-picker__sheet {
    border-radius: 16px;
    max-height: min(88vh, 680px);
  }
}
