:root {
  color-scheme: dark;
  --report-bg: #0a0a0f;
  --report-surface: #12121a;
  --report-surface-strong: #1a1a2e;
  --report-line: rgba(0, 245, 255, 0.2);
  --report-line-soft: rgba(255, 255, 255, 0.14);
  --report-ink: #ffffff;
  --report-muted: #a0a0b0;
  --report-dim: #6b6b80;
  --report-accent: #00f5ff;
  --report-warm: #ffcf70;
  --report-max: 1120px;
  --report-pad: 32px;
  --report-radius: 8px;
  font-family: var(--font-body);
}

:root[data-theme="light"] {
  color-scheme: light;
  --report-bg: #f5f5f7;
  --report-surface: #ffffff;
  --report-surface-strong: #eef0f3;
  --report-line: rgba(0, 119, 136, 0.28);
  --report-line-soft: rgba(26, 26, 46, 0.16);
  --report-ink: #1a1a2e;
  --report-muted: #4a4a5a;
  --report-dim: #6b6b80;
  --report-accent: #007788;
  --report-warm: #8b5a00;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; background: var(--report-bg); color: var(--report-ink); line-height: 1.65; }
a { color: var(--report-accent); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.content-width { width: min(calc(100% - (2 * var(--report-pad))), var(--report-max)); margin: 0 auto; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 10; padding: 10px 14px; background: var(--report-ink); color: var(--report-bg); }
.skip-link:focus { top: 16px; }

.site-header { display: flex; align-items: center; justify-content: space-between; width: min(calc(100% - (2 * var(--report-pad))), var(--report-max)); min-height: 80px; margin: 0 auto; border-bottom: 1px solid var(--report-line-soft); }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { width: 112px; height: auto; display: block; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.text-link { font-size: 0.875rem; font-weight: 600; }
.theme-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--report-line); border-radius: var(--report-radius); background: transparent; color: var(--report-accent); cursor: pointer; }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle:hover, .theme-toggle:focus-visible { background: var(--report-surface-strong); }

.preview-banner { border-bottom: 1px solid var(--report-line); background: var(--report-surface-strong); }
.preview-banner-inner { display: flex; gap: 16px; align-items: baseline; padding: 14px 0; color: var(--report-muted); font-size: 0.875rem; }
.preview-banner strong { color: var(--report-warm); font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; }

.report-cover { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.7fr); gap: 72px; align-items: end; padding-top: 92px; padding-bottom: 92px; border-bottom: 1px solid var(--report-line-soft); }
.eyebrow, .status-label { margin: 0 0 16px; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; letter-spacing: 0; text-transform: uppercase; }
.eyebrow { color: var(--report-accent); }
.status-label { color: var(--report-warm); }
h1, h2, h3, h4 { margin-top: 0; line-height: 1.15; letter-spacing: 0; }
h1, h2, h3 { font-family: var(--font-display); }
h1 { max-width: 12ch; margin-bottom: 24px; font-size: 64px; }
h2 { max-width: 18ch; margin-bottom: 24px; font-size: 40px; }
h3 { margin-bottom: 16px; font-size: 28px; }
h4 { margin-bottom: 8px; color: var(--report-warm); font-size: 0.875rem; text-transform: uppercase; }
.dek { max-width: 660px; margin: 0; color: var(--report-muted); font-size: 21px; }
.cover-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; color: var(--report-dim); font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; }
.cover-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 16px; border: 1px solid var(--report-accent); border-radius: var(--report-radius); font-weight: 700; text-decoration: none; cursor: pointer; }
.button-primary { background: var(--report-accent); color: #071216; }
.button-secondary { background: transparent; color: var(--report-accent); }
.button:hover, .button:focus-visible { outline: 2px solid var(--report-accent); outline-offset: 3px; }
.cover-note { padding: 24px; border-left: 3px solid var(--report-accent); background: var(--report-surface); color: var(--report-muted); }
.cover-note p { margin: 0 0 10px; }
.cover-note p:last-child { margin-bottom: 0; }
.note-index, .trend-number, .method-number, .source-number, .list-marker { color: var(--report-accent); font-family: var(--font-mono); font-size: 0.75rem; }

.report-section { padding-top: 84px; padding-bottom: 84px; border-bottom: 1px solid var(--report-line-soft); }
.report-section-muted, .newsletter-section { background: var(--report-surface); }
.section-heading { display: grid; grid-template-columns: minmax(170px, 0.4fr) minmax(0, 1fr); gap: 32px; margin-bottom: 44px; }
.section-heading .eyebrow { margin: 4px 0 0; }
.section-heading h2 { margin-bottom: 0; }
.section-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 72px; }
.lead { max-width: 560px; margin: 0; font-size: 24px; }
.caveat, .fixture-note, .methodology-note { max-width: 560px; margin: 28px 0 0; color: var(--report-dim); font-size: 0.875rem; }
.signal-list { margin: 0; padding: 0; list-style: none; }
.signal-list li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--report-line-soft); }
.signal-list li:last-child { border-bottom: 1px solid var(--report-line-soft); }
.list-marker { padding-top: 4px; }

.trend-dossier { max-width: 960px; padding: 32px; border: 1px solid var(--report-line); border-radius: var(--report-radius); background: var(--report-bg); }
.trend-header { display: flex; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--report-line-soft); }
.trend-header h3 { max-width: 650px; }
.trend-number { flex: 0 0 auto; font-size: 32px; }
.trend-dossier > p { max-width: 730px; margin: 28px 0; font-size: 20px; }
.analysis-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; padding: 28px 0; border-top: 1px solid var(--report-line-soft); border-bottom: 1px solid var(--report-line-soft); }
.analysis-grid p { margin: 0; color: var(--report-muted); }
.watch-next { margin: 28px 0 0 !important; padding-left: 16px; border-left: 3px solid var(--report-accent); color: var(--report-muted); }
.watch-next strong { color: var(--report-ink); }

.chart-placeholder { max-width: 960px; margin: 0; }
.chart-frame { display: grid; place-items: center; aspect-ratio: 16 / 7; border: 1px solid var(--report-line); border-radius: var(--report-radius); background: var(--report-surface-strong); color: var(--report-muted); text-align: center; }
.chart-frame span { padding: 12px 16px; border: 1px solid var(--report-line); border-radius: var(--report-radius); background: var(--report-surface); font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; }
figcaption { max-width: 700px; margin-top: 14px; color: var(--report-muted); font-size: 0.875rem; }

.methodology-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.methodology-grid > div { padding-top: 16px; border-top: 2px solid var(--report-accent); }
.methodology-grid h3 { margin: 18px 0 10px; font-family: var(--font-body); font-size: 18px; }
.methodology-grid p { margin: 0; color: var(--report-muted); font-size: 0.9rem; }
.methodology-note { padding-top: 20px; border-top: 1px solid var(--report-line-soft); }

.source-warning { max-width: 820px; margin-bottom: 24px; padding: 16px; border-left: 3px solid var(--report-warm); background: var(--report-surface); color: var(--report-muted); }
.source-warning strong { color: var(--report-warm); }
.source-list { max-width: 820px; margin: 0; padding: 0; list-style: none; }
.source-list li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--report-line-soft); }
.source-list li:last-child { border-bottom: 1px solid var(--report-line-soft); }
.source-list p { margin: 4px 0 0; color: var(--report-muted); font-size: 0.875rem; }

.newsletter-section { border-bottom: 1px solid var(--report-line-soft); }
.newsletter-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr); gap: 72px; padding-top: 64px; padding-bottom: 64px; }
.newsletter-grid h2 { margin-bottom: 14px; }
.newsletter-grid p { color: var(--report-muted); }
.newsletter-shell { align-self: center; }
.newsletter-form label { display: block; margin-bottom: 8px; font-weight: 700; }
.newsletter-controls { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.newsletter-email { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--report-line); border-radius: var(--report-radius); background: var(--report-bg); color: var(--report-ink); }
.newsletter-email:focus-visible { outline: 2px solid var(--report-accent); outline-offset: 3px; }
.newsletter-success { display: none; margin: 16px 0 0; color: var(--report-accent) !important; }
.newsletter-success.show { display: block; }
.newsletter-form.hidden { display: none; }
.newsletter-privacy { margin: 14px 0 0; color: var(--report-dim) !important; font-size: 0.75rem; }

.consent-banner { position: fixed; right: 20px; bottom: 20px; z-index: 5; display: none; width: min(calc(100% - 40px), 680px); padding: 20px; border: 1px solid var(--report-line); border-radius: var(--report-radius); background: var(--report-surface); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28); }
.consent-banner-visible { display: block; }
.consent-content { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.consent-banner h2 { margin: 0 0 6px; font-family: var(--font-body); font-size: 18px; }
.consent-banner p { max-width: 380px; margin: 0; color: var(--report-muted); font-size: 0.875rem; }
.consent-actions, .consent-panel-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.consent-actions .button { min-height: 40px; padding: 8px 12px; font-size: 0.8rem; }
.consent-text-button { padding: 8px 0; border: 0; background: transparent; color: var(--report-accent); cursor: pointer; font-size: 0.8rem; font-weight: 700; }
.consent-customize-panel { display: grid; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--report-line-soft); color: var(--report-muted); font-size: 0.875rem; }
.consent-customize-panel[hidden] { display: none; }
.consent-panel-actions { margin-top: 4px; }

.report-footer { display: flex; justify-content: space-between; gap: 24px; padding-top: 28px; padding-bottom: 48px; color: var(--report-dim); font-size: 0.8rem; }
.report-footer p { margin: 0; }

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

@media (max-width: 800px) {
  :root { --report-pad: 20px; }
  .report-cover { grid-template-columns: 1fr; gap: 40px; padding-top: 64px; padding-bottom: 64px; }
  h1 { font-size: 48px; }
  h2 { font-size: 34px; }
  .section-heading, .section-grid, .newsletter-grid { grid-template-columns: 1fr; gap: 28px; }
  .section-heading { margin-bottom: 32px; }
  .report-section { padding-top: 60px; padding-bottom: 60px; }
  .methodology-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .newsletter-grid { gap: 24px; }
}

@media (max-width: 560px) {
  .site-header { min-height: 68px; }
  .brand img { width: 96px; }
  .header-actions { gap: 12px; }
  .text-link { font-size: 0.75rem; }
  .preview-banner-inner { display: block; }
  .preview-banner strong { display: block; margin-bottom: 4px; }
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  .dek { font-size: 18px; }
  .cover-actions, .cover-actions .button { width: 100%; }
  .trend-dossier { padding: 20px; }
  .analysis-grid, .methodology-grid { grid-template-columns: 1fr; gap: 24px; }
  .newsletter-controls { grid-template-columns: 1fr; }
  .newsletter-controls .button { width: 100%; }
  .report-footer { display: block; }
  .report-footer p + p { margin-top: 10px; }
}

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

@media print {
  @page { size: A4; margin: 14mm 15mm; }
  :root, :root[data-theme="light"] { --report-bg: #ffffff; --report-surface: #ffffff; --report-surface-strong: #f3f3f3; --report-ink: #111111; --report-muted: #404040; --report-dim: #555555; --report-accent: #075f6b; --report-warm: #754b00; --report-line: #8a8a8a; --report-line-soft: #c8c8c8; }
  body { background: #ffffff; color: #111111; }
  .site-header, .theme-toggle, .cover-actions, .newsletter-section { display: none; }
  .preview-banner { border: 1px solid #8a8a8a; }
  .report-cover, .report-section { break-inside: avoid; }
  .report-cover { padding-top: 36px; padding-bottom: 36px; }
  .report-section { padding-top: 34px; padding-bottom: 34px; }
  .report-section-muted { background: #ffffff; }
  .trend-dossier, .chart-frame, .cover-note { background: #ffffff; }
  section[aria-labelledby="trends-title"] { break-before: page; }
  .trend-dossier { padding: 24px; }
  .trend-dossier + .trend-dossier { break-before: page; }
  .trend-dossier > p { margin: 20px 0; font-size: 18px; }
  .analysis-grid { gap: 24px; padding: 20px 0; }
  .watch-next { margin-top: 20px !important; }
  .chart-frame { background: #f3f3f3; }
  a { color: inherit; text-decoration: none; }
  .report-footer { padding-bottom: 0; }
}

@media (max-width: 700px) {
  .consent-content { display: block; }
  .consent-actions { margin-top: 16px; }
}
