/* =============================================================================
   SCRATCH STATS — Global Styles
   Dark theme, data-forward aesthetic inspired by Worldometers
   ============================================================================= */

:root {
  --bg: #0a0a0a;
  --bg-card: #111111;
  --bg-hover: #1a1a1a;
  --text: #e8e8e8;
  --text-muted: #888888;
  --text-dim: #555555;
  --accent: #f5a623;
  --accent-glow: rgba(245, 166, 35, 0.3);
  --border: #222222;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1200px;
}

[data-theme="light"] {
  --bg: #f5f5f0;
  --bg-card: #ffffff;
  --bg-hover: #eeeee8;
  --text: #1a1a1a;
  --text-muted: #666666;
  --text-dim: #999999;
  --accent: #d97706;
  --accent-glow: rgba(217, 119, 6, 0.15);
  --border: #ddd;
}

/* --- Reset --- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 60px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- Container --- */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* --- Typography --- */

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* --- Sections --- */

section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type {
  border-bottom: none;
}

/* --- Utility --- */

.mono {
  font-family: var(--font-mono);
}

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

.text-muted {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.text-center {
  text-align: center;
}

/* =============================================================================
   HERO SECTION
   ============================================================================= */

.hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}

.hero__title {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.hero__counter {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 30px var(--accent-glow);
  min-height: 1.2em;
}

.hero__subtitle {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 2rem;
}

.hero__your-country {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  display: inline-block;
}

.hero__your-country .mono {
  color: var(--accent);
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-dim);
  animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.4; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 0.8; }
}

.hero__per-second {
  font-size: 1rem;
}

.hero__per-second .mono {
  font-size: 1.25rem;
}

/* =============================================================================
   WHY PREVIEW
   ============================================================================= */

#why-preview {
  padding: 2rem 0;
}

.why-preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.why-preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.why-preview-card__accent {
  width: 3px;
  align-self: stretch;
  border-radius: 2px;
  flex-shrink: 0;
}

.why-preview-card__info {
  flex: 1;
  min-width: 0;
}

.why-preview-card__title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.125rem;
}

.why-preview-card__subtitle {
  font-size: 0.625rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.why-preview-card__counter {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.why-preview-link {
  display: block;
  text-align: center;
  font-size: 0.875rem;
  color: var(--accent);
}

/* =============================================================================
   SINCE YOU OPENED / COUNTERS
   ============================================================================= */

.counter-large {
  font-size: 3rem;
  font-weight: 700;
  margin: 1rem 0 0.5rem;
  text-shadow: 0 0 20px var(--accent-glow);
}

.counter-medium {
  font-size: 2rem;
  font-weight: 700;
  margin: 0.5rem 0;
  text-shadow: 0 0 15px var(--accent-glow);
}

.comparison {
  font-style: italic;
  min-height: 1.5em;
}

/* =============================================================================
   TIMELINE
   ============================================================================= */

.timeline-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 4px;
}

.timeline-card h3 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* =============================================================================
   1914 COMPARISON
   ============================================================================= */

.section-1914__paragraph {
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.comparison-col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 4px;
}

.comparison-col h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.comparison-col--then {
  border-color: #3a2a10;
}

[data-theme="light"] .comparison-col--then {
  border-color: #d4b87a;
}

.comparison-col--then h3 {
  color: #c49a4a;
}

.comparison-col--now h3 {
  color: var(--accent);
}

.stat-list {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1rem;
}

.stat-list dt {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.stat-list dd {
  font-family: var(--font-mono);
  text-align: right;
  font-size: 0.875rem;
}

.stress-slider {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.stress-slider label {
  display: block;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.stress-slider input[type="range"] {
  width: 100%;
  max-width: 400px;
  accent-color: var(--accent);
}

/* =============================================================================
   WORLD MAP
   ============================================================================= */

.map-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.world-map {
  width: 100%;
  min-height: 300px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.world-map svg {
  width: 100%;
  height: auto;
}

.world-map path {
  stroke: var(--border);
  stroke-width: 0.5;
  cursor: pointer;
  transition: opacity 0.2s;
}

.world-map path:hover {
  opacity: 0.8;
}

.world-map path.highlighted {
  stroke: var(--accent);
  stroke-width: 2;
  filter: drop-shadow(0 0 6px var(--accent-glow));
}

.world-map path.user-country {
  stroke: #fff;
  stroke-width: 2;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.map-tooltip {
  position: fixed;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  pointer-events: none;
  z-index: 1000;
  white-space: nowrap;
}

.map-tooltip .flag {
  font-size: 1.25rem;
  margin-right: 0.25rem;
}

.map-tooltip .mono {
  color: var(--accent);
}

/* =============================================================================
   TOP 10 WIDGET
   ============================================================================= */

.top10-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1rem;
}

.top10-widget h3 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.top10-widget ol {
  list-style: none;
  counter-reset: top10;
}

.top10-widget li {
  counter-increment: top10;
  display: flex;
  align-items: center;
  padding: 0.375rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.top10-widget li:last-child {
  border-bottom: none;
}

.top10-widget li::before {
  content: counter(top10) ".";
  width: 1.5rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.top10-widget .flag {
  margin-right: 0.375rem;
}

.top10-widget .name {
  flex: 1;
}

.top10-widget .count {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.75rem;
}

/* =============================================================================
   COUNTRY TABLE
   ============================================================================= */

.table-search {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 0 auto 1.5rem;
  padding: 0.625rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-size: 0.875rem;
  font-family: var(--font-body);
  outline: none;
}

.table-search:focus {
  border-color: var(--accent);
}

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#country-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

#country-table th {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 2px solid var(--border);
  padding: 0.75rem 0.5rem;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  white-space: nowrap;
}

#country-table th.sortable {
  cursor: pointer;
  user-select: none;
}

#country-table th.sortable:hover {
  color: var(--accent);
}

#country-table th.sort-asc::after {
  content: ' ▲';
  font-size: 0.625rem;
}

#country-table th.sort-desc::after {
  content: ' ▼';
  font-size: 0.625rem;
}

.col-number {
  text-align: right !important;
}

#country-table td {
  padding: 0.625rem 0.5rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

#country-table td.col-number {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

#country-table tbody tr:hover {
  background: var(--bg-hover);
}

#country-table tbody tr:nth-child(even) {
  background: rgba(128, 128, 128, 0.04);
}

#country-table tbody tr:nth-child(even):hover {
  background: var(--bg-hover);
}

#country-table tbody tr.you-are-here {
  background: rgba(245, 166, 35, 0.08);
  border-left: 3px solid var(--accent);
}

.you-are-here-badge {
  display: inline-block;
  font-size: 0.625rem;
  background: var(--accent);
  color: var(--bg);
  padding: 0.125rem 0.375rem;
  border-radius: 2px;
  margin-left: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.col-flag {
  width: 2rem;
  text-align: center;
}

/* =============================================================================
   FOOTER
   ============================================================================= */

footer {
  background: #050505;
  border-top: 1px solid #1a1a1a;
  padding: 3rem 0 2rem;
}

[data-theme="light"] footer {
  background: #f0f0eb;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 2rem;
}

.footer-logo {
  max-height: 24px;
  margin-bottom: 12px;
}

.footer-brand-desc {
  font-size: 11px;
  color: #555;
  line-height: 1.8;
  max-width: 280px;
}

[data-theme="light"] .footer-brand-desc {
  color: #888;
}

.footer-slogan {
  font-size: 11px;
  color: #f5a623;
  font-style: italic;
  margin-top: 12px;
}

[data-theme="light"] .footer-slogan {
  color: var(--accent);
}

.footer-col-title {
  font-size: 10px;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

[data-theme="light"] .footer-col-title {
  color: #999;
}

.footer-col a {
  display: block;
  font-size: 12px;
  color: #666;
  padding: 3px 0;
  text-decoration: none;
}

.footer-col a:hover {
  color: #f5a623;
  text-decoration: none;
}

[data-theme="light"] .footer-col a:hover {
  color: var(--accent);
}

.footer-link-accent {
  color: #f5a623 !important;
}

[data-theme="light"] .footer-link-accent {
  color: var(--accent) !important;
}

.footer-bottom {
  border-top: 1px solid #111;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

[data-theme="light"] .footer-bottom {
  border-top: 1px solid var(--border);
}

.footer-copyright {
  font-size: 10px;
  color: #333;
}

[data-theme="light"] .footer-copyright {
  color: #999;
}

.footer-balls {
  font-size: 10px;
  color: #333;
  font-style: italic;
}

[data-theme="light"] .footer-balls {
  color: #999;
}

/* =============================================================================
   METHODOLOGY & DISCLAIMER PAGES
   ============================================================================= */

.article-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.article-page h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.article-page h2 {
  font-size: 1.25rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article-page p {
  font-size: 0.875rem;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.article-page .formula {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1rem 1.5rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--accent);
  overflow-x: auto;
  margin: 1.5rem 0;
}

.article-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.875rem;
}

.article-page th,
.article-page td {
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.article-page th {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.article-page .back-link {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.5rem 0;
}

.article-page .sine-chart {
  display: block;
  width: 100%;
  max-width: 600px;
  height: auto;
  margin: 1.5rem auto;
}

/* PSA Illustration (rich SVG) */

.psa-svg-container {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.psa-svg-container svg {
  width: 100%;
  max-width: 680px;
  height: auto;
}

/* Disclaimer card */

.disclaimer-card {
  border: 1px solid var(--border);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  background: var(--bg-card);
}

.disclaimer-card__lang-tag {
  font-size: 0.625rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.625rem;
}

.disclaimer-card__title {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.625rem;
}

.disclaimer-card__body {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.disclaimer-card__signoff {
  margin-top: 0.75rem;
  font-size: 0.6875rem;
  color: var(--text-dim);
  font-style: italic;
}

/* Compact PSA banner */

.psa-banner {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.psa-banner svg {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 4px;
}

/* Light theme overrides for inline SVGs */
[data-theme="light"] .psa-banner svg > rect:first-child,
[data-theme="light"] .psa-svg-container svg > rect:first-child {
  fill: var(--bg-card);
}

[data-theme="light"] .psa-svg-container svg > rect:nth-child(2) {
  stroke: var(--border);
}

[data-theme="light"] .psa-svg-container svg rect[fill="#111"] {
  fill: var(--bg-hover);
}

[data-theme="light"] .psa-banner svg text[fill="#e8e8e8"],
[data-theme="light"] .psa-svg-container svg text[fill="#e8e8e8"] {
  fill: var(--text);
}

[data-theme="light"] .psa-banner svg text[fill="#888"],
[data-theme="light"] .psa-svg-container svg text[fill="#888"] {
  fill: var(--text-muted);
}

[data-theme="light"] .psa-svg-container svg text[fill="#555"] {
  fill: var(--text-dim);
}

[data-theme="light"] .psa-svg-container svg text[fill="#444"] {
  fill: var(--text-muted);
}

[data-theme="light"] .psa-svg-container svg line[stroke="#222"] {
  stroke: var(--border);
}

[data-theme="light"] .psa-banner svg line[stroke="#333"],
[data-theme="light"] .psa-banner svg polygon[fill="#333"],
[data-theme="light"] .psa-svg-container svg line[stroke="#333"],
[data-theme="light"] .psa-svg-container svg polygon[fill="#333"] {
  stroke: var(--text-dim);
  fill: var(--text-dim);
}

/* --- Noscript --- */

noscript {
  display: block;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  font-size: 1.125rem;
}

/* =============================================================================
   SITE HEADER & NAV
   ============================================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
}

[data-theme="light"] .site-header {
  background: rgba(245, 245, 240, 0.85);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 101;
  align-self: center;
}

.site-logo img {
  display: block;
  height: 70px;
  margin-top: -20px;
  margin-bottom: -24px;
}

.header-brand {
  display: flex;
  flex-direction: column;
  margin-right: auto;
  line-height: 1.2;
}

.header-site-name {
  font-size: 0.9375rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--text);
}

.header-slogan {
  font-size: 0.6875rem;
  white-space: nowrap;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-style: italic;
}

.site-nav {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  margin-left: auto;
  gap: 0.25rem;
  align-items: center;
  flex-shrink: 0;
}

.site-nav a {
  font-size: 0.8125rem;
  padding: 0.375rem 0.625rem;
  border-radius: 3px;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
  text-decoration: none;
}

.site-nav a.active {
  background: rgba(245, 166, 35, 0.1);
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1rem;
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s, border-color 0.2s;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.lang-dropdown {
  position: relative;
  margin-left: 0.5rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--border);
  align-self: center;
}

.lang-dropdown__trigger {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.375rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.lang-dropdown__trigger:hover {
  color: var(--text);
}

.lang-dropdown__menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  min-width: 140px;
  z-index: 200;
  padding: 0.25rem 0;
}

.lang-dropdown--open .lang-dropdown__menu {
  display: block;
}

.lang-dropdown__menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.lang-dropdown__menu a:hover {
  background: var(--bg-hover);
  color: var(--text);
  text-decoration: none;
}

.lang-dropdown__menu a.active {
  color: var(--accent);
}

.nav-toggle {
  display: block;
  margin-left: auto;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  cursor: pointer;
  line-height: 1;
}

.site-nav--open {
  display: flex;
  flex-direction: column;
  position: absolute;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
  top: 100%;
  left: -1rem;
  right: -1rem;
  z-index: 200;
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: 0 0 4px 4px;
  padding: 0.75rem 1rem;
  gap: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.site-nav--open a {
  display: block;
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  text-align: left;
}

.site-nav--open a:hover {
  background: rgba(245, 166, 35, 0.08);
}

.site-nav--open .fund-nav-link {
  border-bottom: none;
}

.site-nav--open .theme-toggle,
.site-nav--open .lang-dropdown {
  margin: 0;
}

.site-nav--open .theme-toggle {
  border-top: 1px solid var(--border);
  margin-top: 0.25rem;
  padding: 0.5rem 0.75rem 0.25rem;
}

.site-nav--open .lang-dropdown {
  padding: 0.25rem 0.75rem 0.5rem;
}

[data-theme="light"] .site-nav--open {
  background: var(--bg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* =============================================================================
   HERO SLOGAN
   ============================================================================= */

.hero__slogan {
  font-size: 0.875rem;
  margin-top: 1rem;
  letter-spacing: 0.05em;
}

/* =============================================================================
   BAR CHART (Why page)
   ============================================================================= */

.bar-chart {
  margin: 1.5rem 0 2rem;
}

.bar-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  gap: 0.75rem;
}

.bar-label {
  width: 140px;
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-align: right;
  flex-shrink: 0;
}

.bar-track {
  flex: 1;
  height: 24px;
  background: var(--bg-card);
  position: relative;
}

.bar-fill {
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: 8px;
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--bg);
}

.bar-pct {
  width: 40px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-align: right;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.bar-subtitle {
  position: absolute;
  right: 6px;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  font-size: 0.5625rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  pointer-events: none;
}

/* =============================================================================
   CATEGORY CARDS (Why page)
   ============================================================================= */

.categories {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.cat-card {
  border: 1px solid var(--border);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.cat-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
}

.cat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.cat-pct {
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
}

.cat-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.cat-subtitle {
  font-size: 0.625rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.cat-body {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.cat-counter {
  background: var(--bg-card);
  padding: 0.5rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.6875rem;
  margin-bottom: 0.5rem;
}

.cat-counter .label {
  color: var(--text-dim);
}

.cat-counter .value {
  color: var(--accent);
  font-weight: 700;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.cat-source {
  font-size: 0.625rem;
  color: var(--text-dim);
  font-style: italic;
  line-height: 1.5;
}

/* =============================================================================
   HISTORY TIMELINE
   ============================================================================= */

.history-timeline {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

.history-timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.era {
  position: relative;
  padding-left: 64px;
  margin-bottom: 2.5rem;
}

.era .dot {
  position: absolute;
  left: 16px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg);
}

.era.highlight .dot {
  border-color: var(--accent);
  background: var(--accent);
}

.era__date {
  font-size: 0.625rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
  font-family: var(--font-mono);
}

.era__title {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.era__body {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.era__src {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-style: italic;
}

/* =============================================================================
   ABOUT TIMELINE (horizontal 4-step)
   ============================================================================= */

.about-timeline {
  display: flex;
  position: relative;
  margin: 1.5rem 0 2rem;
}

.about-timeline::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
}

.about-timeline .tl-step {
  flex: 1;
  text-align: center;
  position: relative;
  padding-top: 2.25rem;
}

.about-timeline .tl-step .dot {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg);
}

.about-timeline .tl-step.done .dot {
  border-color: #2ecc71;
  background: #2ecc71;
}

.about-timeline .tl-step.now .dot {
  border-color: var(--accent);
  background: var(--accent);
}

.about-timeline .tl-label {
  font-size: 0.625rem;
  color: var(--text-dim);
  line-height: 1.4;
}

.about-timeline .tl-step.done .tl-label {
  color: #2ecc71;
}

.about-timeline .tl-step.now .tl-label {
  color: var(--accent);
}

/* =============================================================================
   RESPONSIVE BREAKPOINTS
   ============================================================================= */

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (min-width: 768px) {
  .site-nav {
    display: flex;
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
  }

  .nav-toggle {
    display: none;
  }

  .categories {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__title {
    font-size: 1.5rem;
  }

  .hero__counter {
    font-size: 5rem;
  }

  .why-preview-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero__subtitle {
    font-size: 1.5rem;
  }

  .timeline-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .map-layout {
    grid-template-columns: 1fr 280px;
  }

  .world-map {
    min-height: 400px;
  }

  .counter-large {
    font-size: 3.5rem;
  }

  .psa-illustration {
    flex-wrap: nowrap;
  }
}

@media (min-width: 1200px) {
  .hero__counter {
    font-size: 6rem;
  }

  .container {
    padding: 0 2rem;
  }

  section {
    padding: 4rem 0;
  }

  .world-map {
    min-height: 500px;
  }

  .map-layout {
    grid-template-columns: 1fr 320px;
  }
}

/* =============================================================================
   ANIMATIONS
   ============================================================================= */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

section {
  animation: fadeInUp 0.6s ease-out both;
}

#hero           { animation-delay: 0s; }
#since-open     { animation-delay: 0.1s; }
#timeline       { animation-delay: 0.15s; }
#section-1914   { animation-delay: 0.2s; }
#map-section    { animation-delay: 0.25s; }
#table-section  { animation-delay: 0.3s; }

.hero__counter {
  transition: opacity 0.15s ease;
}

/* =============================================================================
   COOKIE BANNER
   ============================================================================= */

.cb-overlay {
  display: none;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.4s ease-out;
  max-height: 90vh;
  overflow-y: auto;
}

.cookie-banner--visible {
  transform: translateY(0);
}

.cookie-banner .cb-icon-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cookie-banner .cb-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.cookie-banner .cb-title {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--text);
}

.cookie-banner .cb-text {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.8;
}

.cookie-banner .cb-text em {
  color: var(--accent);
  font-style: normal;
}

.cookie-banner .cb-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.cookie-banner .cb-btn {
  padding: 8px 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cb-btn-accept {
  background: var(--accent);
  color: var(--bg);
}

.cb-btn-decline {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border) !important;
}

.cb-btn-settings {
  background: transparent;
  color: var(--text-dim);
  font-size: 10px !important;
  text-decoration: underline;
  border: none !important;
  padding: 8px 8px !important;
}

.cookie-banner .cb-fine-print {
  font-size: 9px;
  color: var(--text-dim);
  font-style: italic;
}

/* Settings panel */

.cb-settings-header {
  background: var(--bg-hover);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text);
  font-family: var(--font-serif);
  border-bottom: 1px solid var(--border);
}

.cb-settings-panel {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.cb-settings-row {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.cb-settings-row:last-child {
  border-bottom: none;
}

.cb-sr-name {
  font-size: 12px;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 4px;
}

.cb-sr-desc {
  font-size: 10px;
  color: var(--text-dim);
  line-height: 1.7;
}

.cb-sr-toggle {
  flex-shrink: 0;
  width: 40px;
  height: 20px;
  border-radius: 10px;
  position: relative;
  cursor: pointer;
}

.cb-sr-toggle.on { background: var(--accent); }
.cb-sr-toggle.off { background: var(--border); }
.cb-sr-toggle.locked { background: var(--border); opacity: 0.5; cursor: not-allowed; }

.cb-sr-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  transition: left 0.2s;
}

.cb-sr-toggle.on::after { left: 22px; }
.cb-sr-toggle.off::after { left: 2px; }
.cb-sr-toggle.locked::after { left: 2px; }

.cb-toggle-tip {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 9px;
  padding: 4px 8px;
  border-radius: 3px;
  white-space: nowrap;
  pointer-events: none;
}

/* =============================================================================
   FAQ PAGE
   ============================================================================= */

.faq-list { max-width: 780px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 28px 0; }
.faq-item:first-child { padding-top: 0; }
.faq-q {
  font-family: var(--font-serif);
  font-size: 17px;
  color: #ccc;
  margin-bottom: 12px;
  cursor: default;
}
.faq-q::before {
  content: 'Q.';
  color: var(--accent);
  margin-right: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}
.faq-a {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.9;
  padding-left: 32px;
}
.faq-a em { color: var(--accent); font-style: normal; }
.faq-a strong { color: #ccc; }
.faq-a a { color: var(--accent); }

.faq-section-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin: 3rem 0 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

[data-theme="light"] .faq-q { color: #333; }
[data-theme="light"] .faq-a strong { color: #333; }

/* =============================================================================
   PRESS KIT PAGE
   ============================================================================= */

.press-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.press-page h1 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.press-subtitle {
  color: var(--text-dim);
  font-size: 0.8125rem;
  margin-bottom: 3rem;
}

.press-section {
  margin-bottom: 3.5rem;
  padding: 0;
  border: none;
  animation: none;
}

.press-section-title {
  font-size: 0.6875rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.press-content {
  max-width: 760px;
}

/* Facts grid */
.press-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.press-fact-card {
  border: 1px solid var(--border);
  padding: 1.25rem;
  text-align: center;
}

.press-fact-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
  margin-bottom: 0.25rem;
}

.press-fact-label {
  font-size: 0.625rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Boilerplate */
.press-bp-label {
  font-size: 0.6875rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.press-boilerplate {
  border-left: 3px solid var(--accent);
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  margin-bottom: 2rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 2;
}

/* Quotes */
.press-quote {
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin-bottom: 0.75rem;
}

.press-quote-text {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 0.625rem;
}

.press-quote-text::before { content: "\201C"; color: var(--accent); }
.press-quote-text::after { content: "\201D"; color: var(--accent); }

.press-quote-attr {
  font-size: 0.625rem;
  color: var(--text-dim);
  font-style: italic;
}

/* Milestones */
.press-milestone-list {
  list-style: none;
}

.press-milestone-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  gap: 1rem;
  line-height: 1.7;
}

.press-ms-date {
  flex-shrink: 0;
  width: 90px;
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

/* Logo cards */
.press-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.press-logo-card {
  border: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
}

.press-logo-dark { background: #0a0a0a; }
.press-logo-light { background: #f5f5f5; }

.press-logo-label {
  font-size: 0.5625rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 1rem;
}

.press-logo-light .press-logo-label { color: #999; }

/* Color swatches */
.press-color-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.press-color-swatch {
  width: 80px;
  text-align: center;
}

.press-swatch {
  width: 80px;
  height: 48px;
  border-radius: 4px;
  margin-bottom: 0.375rem;
  border: 1px solid var(--border);
}

.press-hex {
  font-size: 0.625rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.press-color-name {
  font-size: 0.5625rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Typography */
.press-brand-intro {
  font-size: 0.6875rem;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}

.press-typography-body {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 2;
}

/* Contact card */
.press-contact-card {
  border: 1px solid var(--border);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  max-width: 600px;
}

.press-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
}

.press-contact-name {
  font-size: 0.8125rem;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 0.125rem;
}

.press-contact-role {
  font-size: 0.625rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.press-contact-detail {
  font-size: 0.6875rem;
  color: var(--text-dim);
  line-height: 1.8;
  white-space: pre-line;
}

.press-contact-footnote {
  margin-top: 1rem;
  font-size: 0.625rem;
  color: var(--text-dim);
  font-style: italic;
}

/* Headlines */
.press-headlines-body {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 2.2;
  white-space: pre-line;
}

/* Embargo */
.press-embargo-body {
  font-size: 0.6875rem;
  color: var(--text-muted);
  line-height: 2;
  white-space: pre-line;
}

@media (max-width: 767px) {
  .cookie-banner {
    padding: 16px;
  }

  .cookie-banner .cb-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner .cb-btn {
    text-align: center;
  }
}

/* =============================================================================
   RELATED PAGES & CROSS-LINKS
   ============================================================================= */

.related-pages {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-card);
}

.related-pages__title {
  font-size: 0.6875rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.related-pages__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.related-pages__list a {
  font-size: 0.8125rem;
  color: var(--accent);
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  transition: background 0.2s, border-color 0.2s;
}

.related-pages__list a:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
  text-decoration: none;
}

.hero__fund-link,
.hero__method-link {
  font-size: 0.8125rem;
  margin-bottom: 0.25rem;
}

.hero__fund-link a::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background: url('https://storage.ko-fi.com/cdn/cup-border.png') no-repeat center / contain;
  margin-right: 4px;
  vertical-align: middle;
}

/* =============================================================================
   FUND ACCURACY PAGE
   ============================================================================= */

.fund-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.fund-page h1 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.fund-subtitle {
  color: var(--text-dim);
  font-size: 0.8125rem;
  margin-bottom: 1.5rem;
}

.fund-intro {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 1rem;
}

.fund-precision {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 1rem;
}

.fund-precision strong {
  color: var(--accent);
}

.fund-note {
  font-size: 0.6875rem;
  color: var(--text-dim);
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* Social proof counter */
.fund-social-proof {
  text-align: center;
  padding: 1.25rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  margin-bottom: 2rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.fund-social-last {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

/* Section titles */
.fund-section-title {
  font-size: 0.6875rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin: 2.5rem 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* Progress bar */
.fund-goal-amount {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.fund-progress-wrap {
  margin-bottom: 2rem;
}

.fund-progress-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  height: 28px;
  position: relative;
  overflow: hidden;
}

.fund-progress-fill {
  background: var(--accent);
  height: 100%;
  border-radius: 4px;
  min-width: 340%;
  transition: min-width 0.6s ease;
}

.fund-progress-label {
  font-size: 0.6875rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

.fund-progress-label strong {
  color: var(--accent);
}

.fund-progress-overflow {
  font-size: 0.6875rem;
  color: var(--accent);
  margin-top: 0.25rem;
}

/* Donation tiers */
.fund-tiers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.fund-tier {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  position: relative;
}

.fund-tier--popular {
  border-color: var(--accent);
}

.fund-tier--pick {
  border-color: #2ecc71;
}

.fund-tier-badge {
  position: absolute;
  top: -1px;
  right: 16px;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.25rem 0.75rem;
  border-radius: 0 0 4px 4px;
}

.fund-tier-badge--pick {
  background: #2ecc71;
}

.fund-tier-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.fund-tier-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
}

.fund-tier-name {
  font-size: 1rem;
  color: var(--text);
}

.fund-tier-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.fund-tier-includes {
  font-size: 0.6875rem;
  color: var(--text-dim);
  line-height: 1.8;
}

.fund-tier-includes span {
  color: #2ecc71;
}

.fund-tier-scarcity {
  font-size: 0.6875rem;
  color: var(--accent);
  font-style: italic;
  margin-top: 0.5rem;
}

/* CTA button */
.fund-cta-wrap {
  text-align: center;
  margin: 2rem 0;
}

.fund-hero-cta {
  margin: 2.5rem 0 1rem;
}

.fund-hero-cta .fund-cta {
  padding: 16px 44px;
  font-size: 0.9375rem;
}

.fund-cta::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url('https://storage.ko-fi.com/cdn/cup-border.png') no-repeat center / contain;
  margin-right: 8px;
  vertical-align: middle;
}

.fund-cta {
  display: inline-block;
  padding: 14px 36px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8125rem;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.fund-cta:hover {
  opacity: 0.9;
  text-decoration: none;
  color: var(--bg);
}

/* Testimonials */
.fund-quotes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.fund-quote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  background: var(--bg-card);
}

.fund-quote-text {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.fund-quote-text::before { content: "\201C"; color: var(--accent); }
.fund-quote-text::after { content: "\201D"; color: var(--accent); }

.fund-quote-author {
  font-size: 0.625rem;
  color: var(--text-dim);
}

/* Email capture */
.fund-email-capture {
  text-align: center;
  padding: 1.5rem;
  border: 1px dashed var(--border);
  border-radius: 8px;
  margin: 2rem 0;
}

.fund-email-capture p {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-style: italic;
  line-height: 1.8;
}

/* Sponsor slot */
.fund-sponsor-slot {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 6px;
  padding: 1.25rem;
  text-align: center;
  margin-bottom: 2rem;
}

.fund-sponsor-slot-label {
  font-size: 0.625rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.fund-sponsor-slot-name {
  font-size: 0.875rem;
  color: var(--accent);
  font-style: italic;
}

/* Budget / transparency */
.fund-budget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 2;
  white-space: pre-line;
  margin-bottom: 1rem;
}

/* Fund FAQ */
.fund-faq {
  margin-bottom: 2rem;
}

.fund-faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.fund-faq-item:first-child {
  padding-top: 0;
}

.fund-faq-q {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.fund-faq-q::before {
  content: 'Q.';
  color: var(--accent);
  margin-right: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
}

.fund-faq-a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.9;
  padding-left: 1.75rem;
}

/* Share block */
.fund-share-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.25rem;
  border-radius: 4px;
  margin-bottom: 2rem;
}

.fund-share-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.8;
  font-style: italic;
}

/* Fine print */
.fund-fine-print {
  font-size: 0.625rem;
  color: var(--text-dim);
  line-height: 1.8;
  margin: 2rem 0;
}

/* Nav link accent */
.fund-nav-link {
  color: var(--accent) !important;
}

/* Mobile sticky CTA */
.fund-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  padding: 0.75rem 1rem;
  text-align: center;
  z-index: 99;
}

[data-theme="light"] .fund-sticky-cta {
  background: rgba(245, 245, 240, 0.95);
}

.fund-sticky-cta .fund-cta {
  width: 100%;
  padding: 12px 24px;
}

/* Back link */
.fund-page .back-link {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.5rem 0;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.fund-page .back-link:hover {
  color: var(--accent);
}

/* Fund page responsive */
@media (max-width: 768px) {
  .fund-sticky-cta {
    display: block;
  }

  .fund-page {
    padding-bottom: 5rem;
  }

  .fund-tier-price {
    font-size: 1.375rem;
  }
}

@media (min-width: 768px) {
  .fund-quotes {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =============================================================================
   CROSS-LINKS BETWEEN ARTICLES
   ============================================================================= */

.article-crosslinks {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.article-crosslinks a {
  color: var(--accent, #f5a623);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
}
.article-crosslinks a:hover {
  text-decoration: underline;
}
[data-theme="light"] .article-crosslinks {
  border-top-color: rgba(0,0,0,0.08);
}
