/* ── SEO Design Tokens ──────────────────────────────────────────
   Single source of truth for all SEO page CSS variables.
   Imported first in the cascade — everything else depends on these.
   ────────────────────────────────────────────────────────────── */

:root {
  /* ── Dark mode (hero, footer, site header) ─────────────────── */
  --dark-bg: #0a1622;
  --dark-bg-elevated: #0f1d2e;
  --dark-fg: #f1f8fc;
  --dark-fg-dim: rgba(241, 248, 252, 0.72);
  --dark-fg-faint: rgba(241, 248, 252, 0.45);
  --dark-border: rgba(255, 255, 255, 0.10);
  --dark-accent: #5fd0ff;
  --dark-accent-warm: #ffd27a;

  /* ── Light mode (now matching Dark Mode) ──────────────────── */
  --light-bg: #0a1622;
  --light-bg-elevated: #0f1d2e;
  --light-fg: #f1f8fc;
  --light-fg-dim: rgba(241, 248, 252, 0.72);
  --light-fg-faint: rgba(241, 248, 252, 0.45);
  --light-border: rgba(255, 255, 255, 0.10);
  --light-border-strong: rgba(255, 255, 255, 0.18);
  --light-accent: #5fd0ff;
  --light-accent-warm: #ffd27a;
  --light-success: #2d7f4f;
  --light-warn: #b86400;
  --light-danger: #c53030;

  /* ── Spacing (4px base) ────────────────────────────────────── */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* ── Radii ─────────────────────────────────────────────────── */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  /* ── Shadows (light mode only) ─────────────────────────────── */
  --shadow-sm: 0 1px 2px rgba(23, 26, 31, 0.04), 0 1px 1px rgba(23, 26, 31, 0.03);
  --shadow-md: 0 4px 8px rgba(23, 26, 31, 0.04), 0 2px 4px rgba(23, 26, 31, 0.03);
  --shadow-lg: 0 12px 24px rgba(23, 26, 31, 0.05), 0 4px 8px rgba(23, 26, 31, 0.04);

  /* ── Transitions ───────────────────────────────────────────── */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 120ms;
  --duration-base: 200ms;
  --duration-slow: 400ms;

  /* ── Typography ────────────────────────────────────────────── */
  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  /* Geist Mono is not on Google Fonts; falls back to SF Mono / Menlo */
  --font-mono: 'Geist Mono', 'SF Mono', Menlo, monospace;

  /* Headlines — Instrument Serif */
  --text-h1: clamp(2.5rem, 8vw, 4.5rem);
  --text-h2: clamp(1.875rem, 5vw, 2.75rem);

  /* Subheadings — Inter */
  --text-h3: 1.5rem;
  --text-h4: 1.25rem;

  /* Body */
  --text-lead: 1.25rem;
  --text-body: 1.0625rem;
  --text-small: 0.9375rem;
  --text-xs: 0.8125rem;

  /* Line-heights */
  --leading-tight: 1.1;
  --leading-snug: 1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  /* ── Chart tokens (light mode only) ────────────────────────── */
  --chart-temp-max: #ffd27a;
  --chart-temp-max-strong: #cc9933;
  --chart-temp-min: #d9a566;
  --chart-temp-area-from: rgba(255, 210, 122, 0.22);
  --chart-temp-area-to: rgba(255, 210, 122, 0.02);
  --chart-precip: #5fd0ff;
  --chart-precip-hover: #0284b5;
  --chart-precip-label: #a3e5ff;
  --chart-grid: rgba(255, 255, 255, 0.08);
  --chart-axis: rgba(255, 255, 255, 0.45);
  --chart-bg: transparent;
  --chart-highlight: rgba(255, 255, 255, 0.04);
}
/* ── SEO Base Styles ────────────────────────────────────────────
   Reset, body defaults, typography base, .prose rules.
   Loaded after tokens.css in the cascade.
   ────────────────────────────────────────────────────────────── */

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

html, body {
  margin: 0;
  padding: 0;
}

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

/* ── Body defaults ───────────────────────────────────────────── */
body {
  font-family: var(--font-sans);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: var(--leading-normal);
  font-size: var(--text-body);
}

/* ── Headings ────────────────────────────────────────────────── */
h1, h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: var(--leading-tight);
  margin: 0;
}

h1 {
  font-size: var(--text-h1);
}

h2 {
  font-size: var(--text-h2);
}

h3, h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: var(--leading-snug);
  margin: 0;
}

h3 {
  font-size: var(--text-h3);
}

h4 {
  font-size: var(--text-h4);
}

/* ── Prose ───────────────────────────────────────────────────── */
.prose p {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--text-lead);
  line-height: var(--leading-relaxed);
  color: var(--fg-dim);
  max-width: 65ch;
  margin: 0 0 var(--space-5);
}

.prose strong {
  font-weight: 600;
  color: var(--fg);
}

.prose em {
  font-family: var(--font-serif);
  font-style: italic;
}

.prose code {
  font-family: var(--font-mono);
  font-size: var(--text-small);
  background: var(--border);
  padding: 0.1em 0.3em;
  border-radius: var(--radius-sm);
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.prose a:hover {
  text-decoration-thickness: 2px;
}

.prose ul,
.prose ol {
  padding-left: var(--space-5);
  margin-block: var(--space-4);
}

.prose li {
  margin-block: var(--space-2);
}

.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: var(--space-3) var(--space-5);
  margin-block: var(--space-5);
  margin-inline: 0;
  color: var(--fg-dim);
  font-style: italic;
  font-family: var(--font-serif);
}

/* ── Focus visible ───────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
/* ── SEO Layout ─────────────────────────────────────────────────
   Reading-column grid, data-mode switching, hero/header/footer
   shell, breakpoints.
   Loaded after base.css in the cascade.
   ────────────────────────────────────────────────────────────── */

/* ── Mode scoping ────────────────────────────────────────────── */
[data-mode="dark"] {
  background: var(--dark-bg);
  color: var(--dark-fg);
  --fg: var(--dark-fg);
  --fg-dim: var(--dark-fg-dim);
  --fg-faint: var(--dark-fg-faint);
  --border: var(--dark-border);
  --accent: var(--dark-accent);
  --accent-warm: var(--dark-accent-warm);
}

[data-mode="light"] {
  background: var(--light-bg);
  color: var(--light-fg);
  --fg: var(--light-fg);
  --fg-dim: var(--light-fg-dim);
  --fg-faint: var(--light-fg-faint);
  --border: var(--light-border);
  --accent: var(--light-accent);
  --accent-warm: var(--light-accent-warm);
}

/* ── Site header ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(10, 22, 34, 0.85);
  height: var(--space-7);
}

.site-header__inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-5);
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header__logo {
  text-decoration: none;
  color: var(--dark-fg);
  font-size: var(--text-small);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.logo-mark {
  color: var(--dark-accent);
  font-size: 1.25rem;
}

.logo-text {
  letter-spacing: -0.01em;
}

.site-header__right {
  display: flex;
  gap: var(--space-5);
  align-items: center;
}

.site-header__nav {
  display: flex;
  gap: var(--space-5);
}

.site-header__nav a {
  color: var(--dark-fg-dim);
  text-decoration: none;
  font-size: var(--text-small);
}

.site-header__nav a:hover {
  color: var(--dark-fg);
}

.site-header__lang {
  display: flex;
  gap: 2px;
  align-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  padding-left: var(--space-4);
}

.site-header__lang .lang-link {
  color: var(--dark-fg-dim);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 4px 7px;
  border-radius: 3px;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-header__lang .lang-link:hover {
  color: var(--dark-fg);
  background: rgba(255, 255, 255, 0.06);
}

.site-header__lang .lang-link.is-current {
  color: var(--dark-fg);
  background: rgba(255, 255, 255, 0.1);
}

/* ── TL;DR block (AI Overview / featured snippet bait) ─────── */
.tldr {
  margin: 0 0 var(--space-7) 0;
  padding: var(--space-5) var(--space-6);
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--dark-accent);
  border-radius: 4px;
}

.tldr__eyebrow {
  margin: 0 0 var(--space-2) 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark-accent);
}

.tldr__answer {
  margin: 0 0 var(--space-4) 0;
  font-size: var(--text-body);
  line-height: 1.5;
  color: var(--dark-fg);
}

.tldr__bullets {
  margin: 0;
  padding-left: var(--space-5);
  list-style: disc;
}

.tldr__bullets li {
  margin-bottom: var(--space-2);
  font-size: var(--text-small);
  line-height: 1.5;
  color: var(--dark-fg-dim);
}

.tldr__bullets li:last-child {
  margin-bottom: 0;
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  padding-block: var(--space-8) var(--space-9);
}

.hero__inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.hero__title {
  color: var(--dark-fg);
  max-width: 18ch;
  margin-bottom: var(--space-5);
}

.hero__subtitle {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--text-lead);
  line-height: var(--leading-relaxed);
  color: var(--dark-fg-dim);
  max-width: 42ch;
  margin: 0 0 var(--space-6);
}

.hero__highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero__updated {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--text-xs);
  color: var(--dark-fg-faint);
  margin: 0;
}

.hero-image {
  margin: 0 calc(50% - 50vw) var(--space-8);
  width: 100vw;
  max-width: 100vw;
  line-height: 0;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  max-height: 80vh;
}

/* ── Reading column ──────────────────────────────────────────── */
.reading-column,
.reading-column-text {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
}

.reading-column {
  padding-top: 0;
  padding-bottom: var(--space-8);
}

/* Base block margins */
.reading-column > *:not(.hero-image),
.reading-column-text > * {
  max-width: 100%;
}

.season-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 768px) {
  .season-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Page body ───────────────────────────────────────────────── */
.page-body {
  border-top: none;
}

/* ── Site footer ─────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--dark-border);
}

.site-footer__inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-5);
  padding-block: var(--space-8);
}

.site-footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-7);
}

.site-footer__group-title {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dark-fg-faint);
  margin: 0 0 var(--space-3);
}

.site-footer__group-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.site-footer__group-list a {
  color: var(--dark-fg-dim);
  text-decoration: none;
  font-size: var(--text-small);
}

.site-footer__group-list a:hover {
  color: var(--dark-accent);
}

.site-footer__attribution {
  font-size: var(--text-xs);
  color: var(--dark-fg-faint);
  margin: 0 0 var(--space-3);
  max-width: 65ch;
}

.site-footer__legal {
  font-size: var(--text-xs);
  color: var(--dark-fg-faint);
  margin: 0 0 var(--space-3);
}

.site-footer__copy {
  font-size: var(--text-xs);
  color: var(--dark-fg-faint);
  margin: 0;
}

.site-footer__copy a {
  color: var(--dark-fg-dim);
  text-decoration: none;
}

.site-footer__copy a:hover {
  color: var(--dark-accent);
}

/* ── Breakpoints ─────────────────────────────────────────────── */

/* Mobile — empty block to remove grid logic */
@media (max-width: 639px) {
  .hero__title {
    max-width: none;
  }
}

/* Tablets */
@media (min-width: 768px) {
  .site-header {
    height: var(--space-8);
  }

  .hero__inner,
  .site-footer__inner,
  .site-header__inner {
    padding-inline: var(--space-7);
  }

  .hero {
    padding-block: var(--space-10) var(--space-10);
  }

  .site-footer__nav {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .breadcrumbs {
    margin-bottom: var(--space-7);
  }
}
/* ── SEO Components ─────────────────────────────────────────────
   Chips, eyebrow labels, and all per-section component styles.
   Loaded after layout.css in the cascade.
   ────────────────────────────────────────────────────────────── */

/* ── Chip ────────────────────────────────────────────────────── */
.chip {
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--dark-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: var(--text-small);
  color: var(--dark-fg-dim);
}

/* ── Eyebrow ─────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 var(--space-3);
}

/* ── Breadcrumbs ─────────────────────────────────────────────── */
.breadcrumbs {
  margin-bottom: var(--space-7);
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: 0;
  margin: 0;
  font-size: var(--text-xs);
  color: var(--dark-fg-faint);
}

.breadcrumbs a {
  color: var(--dark-fg-dim);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--dark-accent);
}

.breadcrumbs [aria-current="page"] {
  color: var(--dark-fg-faint);
}

/* ── Live engine ─────────────────────────────────────────────── */
.live-engine {
  padding-block: var(--space-8);
}

.live-engine__inner {
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.live-engine__header {
  margin-bottom: var(--space-8);
  text-align: center;
}

.live-engine__title {
  color: var(--dark-fg);
  margin-bottom: var(--space-3);
}

.live-engine__subtitle {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--text-body);
  color: var(--dark-fg-dim);
  margin: 0 auto;
}

.live-engine__frame {
  position: relative;
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
  background: var(--dark-bg-elevated);
  overflow: hidden;
  width: 100%;
  min-height: 300px;
  max-height: 45vh;
  aspect-ratio: 21 / 9;
}

#engine-mount {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #10243e 0%, var(--dark-bg-elevated) 100%);
}

.engine-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-sans);
  font-size: var(--text-small);
  color: var(--dark-fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: pulse 2s ease-in-out infinite;
  margin: 0;
}

#engine-mount canvas {
  position: relative;
  z-index: 1;
}

/* Hide placeholder once the canvas is mounted */
#engine-mount:has(canvas) .engine-placeholder {
  display: none;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── Embedded carousel overlay ─────────────────────────────── */
.engine-carousel {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  overflow: hidden;
}

.engine-carousel .slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  opacity: 0;
  transform: translate3d(-48px, 0, 0);
  transition:
    opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.engine-carousel .slide.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.engine-carousel .slide.is-leaving {
  opacity: 0;
  transform: translate3d(48px, 0, 0);
}

.engine-carousel .slide__label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.32), 0 0 24px rgba(0, 0, 0, 0.2);
}

.engine-carousel .slide__value {
  font-size: clamp(3rem, 12vw, 8rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.95;
  max-width: 100%;
  color: #ffffff;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem;
  filter:
    drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45))
    drop-shadow(0 10px 28px rgba(0, 0, 0, 0.35));
}

.engine-carousel .slide__unit {
  font-size: 0.32em;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0;
}

.engine-carousel .slide__hint {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.32), 0 0 24px rgba(0, 0, 0, 0.2);
}

.engine-carousel .slide__sub {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.25rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

/* ── Hard data ───────────────────────────────────────────────── */
.hard-data__header {
  margin-bottom: var(--space-5);
}

.hard-data__title {
  color: var(--fg);
  margin-bottom: var(--space-3);
}

.hard-data__intro {
  font-size: var(--text-body);
  color: var(--fg-dim);
  margin: 0;
  max-width: 60ch;
}

.hard-data__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fact {
  padding-block: var(--space-5);
  border-top: 1px solid var(--border);
}

.fact:first-child {
  border-top: none;
}

.fact__text {
  font-size: var(--text-body);
  color: var(--fg);
  max-width: 60ch;
  margin: 0;
}

.fact__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-small);
  color: var(--fg-dim);
  margin-top: var(--space-3);
}

.fact__reliability {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 500;
}

.fact__reliability::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.fact__reliability[data-level="verified"]::before {
  background: var(--light-success);
}
.fact__reliability[data-level="verified"] {
  color: var(--light-success);
}

.fact__reliability[data-level="modeled"]::before {
  background: var(--light-warn);
}
.fact__reliability[data-level="modeled"] {
  color: var(--light-warn);
}

.fact__reliability[data-level="unverified"]::before {
  background: var(--light-fg-faint);
}
.fact__reliability[data-level="unverified"] {
  color: var(--light-fg-faint);
}

.fact__sources {
  font-size: var(--text-small);
  font-style: normal;
}

.fact__sources a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.fact__sources a:hover {
  text-decoration-thickness: 2px;
}

/* ── Prose section ───────────────────────────────────────────── */
.prose-section__header {
  margin-bottom: var(--space-5);
}

.prose-section__header h2 {
  color: var(--fg);
}

/* Drop cap — only enabled with modifier class */
.prose-section--dropcap .prose p:first-child::first-letter {
  font-family: var(--font-serif);
  font-size: 4em;
  float: left;
  line-height: 0.8;
  margin-right: var(--space-2);
  margin-top: var(--space-1);
  color: var(--fg);
}

/* ── Myths ───────────────────────────────────────────────────── */
.myths__header {
  margin-bottom: var(--space-5);
}

.myths__header h2 {
  color: var(--fg);
}

.myths__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.myth {
  background: var(--dark-bg-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  border: 1px solid var(--dark-border);
  transition: box-shadow var(--duration-base) var(--ease),
              transform var(--duration-base) var(--ease);
}

.myth:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.myth__claim {
  padding-top: var(--space-3);
  border-bottom: 1px solid var(--dark-border);
  padding-bottom: var(--space-4);
}

.myth__truth {
  padding-top: var(--space-4);
}

.myth__label {
  display: inline-block;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  margin-bottom: var(--space-3);
}

.myth__label--myth {
  background: rgba(197, 48, 48, 0.1);
  color: var(--light-danger);
}

.myth__label--reality {
  background: rgba(45, 127, 79, 0.1);
  color: var(--light-success);
}

.myth__claim .myth__text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-h4);
  color: var(--dark-fg);
  margin: 0;
}

.myth__truth .myth__text {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--text-body);
  color: var(--dark-fg-dim);
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* ── Comparison table ────────────────────────────────────────── */
.comparison__header {
  margin-bottom: var(--space-5);
}

.comparison__header h2 {
  color: var(--fg);
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.comparison-table thead tr {
  background: var(--dark-bg);
  color: var(--dark-fg);
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-4) var(--space-5);
  text-align: left;
}

.comparison-table thead th {
  font-weight: 600;
  font-size: var(--text-body);
}

.comparison-table tbody th {
  font-weight: 600;
  color: var(--fg);
}

.comparison-table tbody td {
  font-weight: 400;
  color: var(--fg-dim);
}

.comparison-table tbody tr {
  transition: background var(--duration-fast);
}

.comparison-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.02);
}

.comparison-table tbody td,
.comparison-table tbody th {
  border-bottom: 1px solid var(--border);
}

.comparison-table tbody tr:last-child td,
.comparison-table tbody tr:last-child th {
  border-bottom: none;
}

/* Mobile card transform for comparison table */
@media (max-width: 767px) {
  .comparison-table thead {
    display: none;
  }

  .comparison-table tbody,
  .comparison-table tbody tr,
  .comparison-table tbody td,
  .comparison-table tbody th {
    display: block;
  }

  .comparison-table tbody tr {
    padding: var(--space-4);
    border-bottom: 1px solid var(--border);
  }

  .comparison-table tbody tr:last-child {
    border-bottom: none;
  }

  .comparison-table tbody th {
    padding: 0 0 var(--space-2);
    border-bottom: none;
    font-size: var(--text-h4);
  }

  .comparison-table tbody td {
    padding: var(--space-2) 0;
    border-bottom: none;
  }

  .comparison-table tbody td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fg-faint);
    margin-bottom: var(--space-1);
  }
}

/* ── FAQs ────────────────────────────────────────────────────── */
.faqs__header {
  margin-bottom: var(--space-5);
}

.faqs__header h2 {
  color: var(--fg);
}

.faq {
  border-bottom: 1px solid var(--border);
  padding-block: var(--space-5);
}

.faq:first-child {
  border-top: 1px solid var(--border);
}

.faq__summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  cursor: pointer;
  list-style: none;
}

.faq__summary::-webkit-details-marker {
  display: none;
}

.faq__question {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-h4);
  color: var(--fg);
  padding-right: var(--space-5);
}

.faq__indicator {
  font-family: var(--font-mono);
  font-size: var(--text-h4);
  color: var(--fg-dim);
  transition: transform var(--duration-base) var(--ease);
  flex-shrink: 0;
}

.faq[open] .faq__indicator {
  transform: rotate(45deg);
}

.faq__answer {
  padding-top: var(--space-4);
  max-width: 65ch;
}

.faq__answer p {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--text-body);
  line-height: var(--leading-normal);
  color: var(--fg-dim);
  margin: 0 0 var(--space-3);
}

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

.faq__sources {
  font-size: var(--text-small);
  margin-top: var(--space-3);
  color: var(--fg-faint);
}

.faq__sources a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

/* ── Related pages ───────────────────────────────────────────── */
.related__header {
  margin-bottom: var(--space-5);
}

.related__header h2 {
  color: var(--fg);
}

.related__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related__item {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
}

.related__item:last-child {
  border-bottom: none;
}

.related__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
}

.related__link:hover {
  text-decoration: underline;
}

.related__anchor {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--text-body);
  color: var(--fg);
}

.related__arrow {
  color: var(--accent);
  transition: transform var(--duration-base) var(--ease);
  flex-shrink: 0;
}

.related__link:hover .related__arrow {
  transform: translateX(4px);
}

/* ── CTAs ────────────────────────────────────────────────────── */
.ctas__header {
  margin-bottom: var(--space-5);
}

.ctas__header h2 {
  color: var(--fg);
}

.ctas__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@keyframes pulse-cta {
  0% {
    box-shadow: 0 0 0 0 rgba(95, 208, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(95, 208, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(95, 208, 255, 0);
  }
}

.cta-card {
  display: block;
  background: var(--dark-bg);
  border: 1px solid var(--dark-border);
  color: var(--dark-fg);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  text-decoration: none;
  animation: pulse-cta 2s infinite;
  transition: all var(--duration-fast) var(--ease);
}

.cta-card:hover {
  background: var(--dark-accent);
  color: var(--dark-bg);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 25px rgba(95, 208, 255, 0.3);
  border-color: var(--dark-accent);
  animation: none;
}

.cta-card__context {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--text-body);
  color: var(--dark-fg-dim);
  margin: 0 0 var(--space-5);
}

.cta-card:hover .cta-card__context {
  color: rgba(10, 22, 34, 0.8);
}

.cta-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  border-top: 1px solid var(--dark-border);
  transition: border-top-color var(--duration-fast) var(--ease);
}

.cta-card:hover .cta-card__footer {
  border-top-color: rgba(10, 22, 34, 0.2);
}

.cta-card__label {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--text-lead);
  color: var(--dark-fg);
  transition: color var(--duration-fast) var(--ease);
}

.cta-card:hover .cta-card__label {
  color: var(--dark-bg);
}

.cta-card__arrow {
  color: var(--dark-accent);
  transition: transform var(--duration-base) var(--ease), color var(--duration-fast) var(--ease);
}

.cta-card:hover .cta-card__arrow {
  transform: translateX(6px);
  color: var(--dark-bg);
}

/* ── Sources ─────────────────────────────────────────────────── */
.sources__header {
  margin-bottom: var(--space-5);
}

.sources__header h2 {
  color: var(--fg);
  margin-bottom: var(--space-3);
}

.sources__intro {
  font-size: var(--text-body);
  color: var(--fg-dim);
  margin: 0;
  max-width: 60ch;
}

.sources__list {
  padding-left: var(--space-5);
  margin: 0;
}

.source {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
}

.source__link {
  text-decoration: none;
  display: block;
  margin-bottom: var(--space-2);
}

.source__link:hover .source__name {
  color: var(--accent);
}

.source__name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-body);
  color: var(--fg);
  font-style: normal;
  display: block;
}

.source__url {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--text-small);
  color: var(--fg-faint);
  word-break: break-all;
  display: block;
}

.source__type {
  display: inline-block;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  margin-right: var(--space-2);
}

.source__type[data-type="official"] {
  background: rgba(2, 132, 181, 0.12);
  color: #014a66;
}

.source__type[data-type="academic"] {
  background: rgba(88, 28, 135, 0.10);
  color: #581c87;
}

.source__type[data-type="press"] {
  background: rgba(23, 26, 31, 0.08);
  color: #4a5059;
}

.source__type[data-type="industry"] {
  background: rgba(184, 100, 29, 0.12);
  color: #8a4a00;
}

.source__type[data-type="guide"] {
  background: rgba(23, 26, 31, 0.05);
  color: #8a9099;
}

.source__date {
  font-size: var(--text-xs);
  color: var(--fg-faint);
}

/* ── Responsive: myths, ctas ─────────────────────────────────── */
@media (min-width: 768px) {
  .myths__grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .live-engine {
    padding-block: var(--space-9);
  }

  .live-engine__inner {
    padding-inline: var(--space-7);
  }
}

@media (max-width: 767px) {
  .live-engine__frame {
    aspect-ratio: 16 / 9;
  }
}
/* ── SEO Widget Styles ──────────────────────────────────────────
   Chart-specific CSS. Loaded conditionally — only pages with
   widgets get this stylesheet.
   ────────────────────────────────────────────────────────────── */

/* ── Visually hidden (for figcaption) ────────────────────────── */
.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;
}

/* ── Climate chart container ─────────────────────────────────── */
.climate-chart {
  margin: 0;
  padding: 0;
  background: transparent;
}

.climate-chart__svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Gridlines ───────────────────────────────────────────────── */
.climate-chart__grid line {
  stroke: var(--chart-grid);
  stroke-width: 1;
}

/* ── Axis labels ─────────────────────────────────────────────── */
.climate-chart__axis text {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  fill: var(--chart-axis);
}

.climate-chart__axis--right text {
  fill: var(--chart-precip-label);
}

/* ── Temperature lines ───────────────────────────────────────── */
.climate-chart__temp-min {
  fill: none;
  stroke: var(--chart-temp-min);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.climate-chart__temp-max {
  fill: none;
  stroke: var(--chart-temp-max);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

/* ── Month columns ───────────────────────────────────────────── */
.month-column {
  cursor: pointer;
}

.month-column__overlay {
  fill: transparent;
  transition: fill var(--duration-fast) var(--ease);
}

.month-column:hover .month-column__overlay,
.month-column:focus-visible .month-column__overlay {
  fill: var(--chart-highlight);
}

.month-column__bar {
  fill: var(--chart-precip);
  opacity: 0.85;
  transition: opacity var(--duration-fast) var(--ease);
}

.month-column:hover .month-column__bar {
  opacity: 1;
  fill: var(--chart-precip-hover);
}

.month-column__dot {
  fill: var(--chart-temp-max);
  stroke: var(--light-bg);
  stroke-width: 2;
}

/* ── Tooltips ────────────────────────────────────────────────── */
.month-column__tooltip {
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease);
}

.month-column:hover .month-column__tooltip,
.month-column:focus-within .month-column__tooltip {
  opacity: 1;
}

/* ── X-axis labels ───────────────────────────────────────────── */
.climate-chart__x-labels text {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  fill: var(--chart-axis);
  text-transform: capitalize;
}

/* ── Data table ──────────────────────────────────────────────── */
.climate-chart__data {
  margin-top: var(--space-5);
  font-size: var(--text-small);
}

.climate-chart__data summary {
  cursor: pointer;
  color: var(--fg-dim);
  padding: var(--space-3) 0;
  font-weight: 500;
}

.climate-chart__data table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-3);
}

.climate-chart__data th,
.climate-chart__data td {
  padding: var(--space-2) var(--space-3);
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-sans);
}

.climate-chart__data th {
  font-weight: 600;
  color: var(--fg);
}

.climate-chart__data td:nth-child(2),
.climate-chart__data td:nth-child(3),
.climate-chart__data td:nth-child(4) {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .climate-chart * {
    transition: none !important;
  }
}
