/* ═══════════════════════════════════════════════════════
   2026 Banking Website Benchmark: editorial design system
   Tokens and components carried over from the 2026 AI Barometer.
   New components extend the same tokens; no ad-hoc colours.
   ═══════════════════════════════════════════════════════ */

:root {
  --bg-primary: #1E1E26;
  --bg-secondary: #242430;
  --bg-card: #2A2A38;
  --bg-card-hover: #30303F;
  --bg-elevated: #323242;
  --bg-quote: #272733;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.14);
  --accent: #F7E194;
  --accent-dim: #E8CE6E;
  --accent-bright: #FBEBAE;
  --accent-glow: rgba(247, 225, 148, 0.15);
  --accent-subtle: rgba(247, 225, 148, 0.08);
  --accent-yellow: #F7E194;
  --accent-yellow-dim: #E8CE6E;
  --accent-yellow-bright: #FBEBAE;
  --accent-yellow-glow: rgba(247, 225, 148, 0.18);
  --accent-yellow-subtle: rgba(247, 225, 148, 0.10);
  --text-primary: #f0f0f5;
  --text-secondary: #b8b8cc;
  --text-dim: #9a9ab0;
  --white: #ffffff;
  --radius: 8px;
  --radius-sm: 4px;
  --sidebar-width: 240px;
  --content-max: 920px;
  --font-serif: 'EB Garamond', 'Georgia', serif;
  --font-sans: 'Public Sans', -apple-system, sans-serif;
  --font-mono: 'Space Grotesk', monospace;

  /* New tokens (benchmark) */
  --on-accent: #1E1E26;           /* text on filled accent buttons */
  --accent-text: #F7E194;         /* accent used as text on the page background (AA) */
  --highlight: #F7E194;           /* "Find your bank" highlight */
  --highlight-subtle: rgba(247, 225, 148, 0.12);
  --success: #4caf78;
  --error: #F07A7A;
  --na: #34343F;                  /* not-offered cells */
  --na-hatch: #4A4A58;
  /* Sequential heat ramp (validated: monotone L, ΔL ≥ 0.06, light end ≥ 2:1 vs surface) */
  --heat-0: #35526F;
  --heat-1: #1F6A9C;
  --heat-2: #1A86C4;
  --heat-3: #5AADDE;
  --heat-4: #A6D6F2;
  --bar: var(--accent-bright);
  /* Country series (validated, adjacent pairs, fixed order BE→FR→NL→DE) */
  --country-BE: #3DB2D9;
  --country-FR: #6B9BF2;
  --country-NL: #3DD97A;
  --country-DE: #9085e9;
  /* Diverging pair: above / below the panel average, in the site's own yellow and neutral grey */
  --diverge-pos: var(--accent);
  --diverge-neg: var(--na-hatch);

  /* Aliases used by the chart code */
  --text: var(--text-primary);
  --text-2: var(--text-secondary);
  --text-3: var(--text-dim);
  --bg: var(--bg-primary);
  --bg-elev: var(--bg-elevated);
  --bg-3: var(--bg-card);
  --line: var(--border);
  --line-strong: var(--border-hover);
  --accent-2: var(--accent-yellow);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
}
a { color: var(--accent-text); }
strong { color: var(--text-primary); font-weight: 700; }
[hidden] { display: none !important; }

/* ── Focus + skip link (accessibility) ── */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 2px;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 300;
  background: var(--accent); color: var(--on-accent);
  padding: 0.6rem 1rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.85rem; text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ═══ NAVIGATION ═══ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(30,30,38,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 2rem; height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav-brand {
  display: flex; align-items: center;
  font-family: var(--font-mono);
  font-weight: 700; font-size: 0.82rem; color: var(--text-primary);
  letter-spacing: 0.12em; gap: 0.5rem;
  text-transform: uppercase; text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.nav-brand-short { display: none; }
.nav-links { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }

/* ── Mobile "Contents" dropdown (replaces sidebar ≤1024px) ── */
.mobile-contents {
  display: none;
  position: fixed; top: 56px; left: 0; right: 0; z-index: 90;
  background: rgba(30,30,38,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transform: translateY(-110%);
  transition: transform 0.25s ease;
}
body.past-hero .mobile-contents { transform: translateY(0); }
.mobile-contents-toggle {
  width: 100%; display: flex; align-items: center; gap: 0.6rem;
  background: none; border: none; color: var(--text-primary);
  padding: 0.7rem 1rem; font: inherit; cursor: pointer; text-align: left;
}
.mobile-contents-label {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-dim); flex-shrink: 0;
}
.mobile-contents-current {
  flex: 1; font-size: 0.85rem; font-weight: 500; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mobile-contents-chevron { transition: transform 0.2s; color: var(--accent-text); flex-shrink: 0; }
.mobile-contents-toggle[aria-expanded="true"] .mobile-contents-chevron { transform: rotate(180deg); }
.mobile-contents-panel {
  padding: 0 0.75rem 0.75rem; display: flex; flex-direction: column;
  max-height: 70vh; overflow-y: auto; border-top: 1px solid var(--border);
}
.mobile-contents-panel .sidebar-link { margin-left: 0; font-size: 0.9rem; padding: 0.65rem 0.85rem; }

/* ═══ HERO ═══ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-primary); overflow: hidden;
  padding: 5rem 0 3rem;
}
.hero-bg-pattern { position: absolute; inset: 0; overflow: hidden; background: #050b18; }
.hero-bg-img {
  position: absolute; top: 50%; left: 50%;
  width: 100%; height: 100%; object-fit: cover;
  transform: translate(-50%, -50%);
}
.hero-bg-graphic {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 45% at 50% 48%, rgba(5,11,24,0.92) 0%, rgba(5,11,24,0.78) 30%, rgba(5,11,24,0.45) 60%, rgba(5,11,24,0.1) 80%, transparent 95%),
    linear-gradient(180deg, rgba(5,11,24,0.65) 0%, rgba(5,11,24,0.2) 22%, transparent 50%, rgba(5,11,24,0.35) 80%, rgba(5,11,24,0.75) 100%);
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Brand stripe: Sailpeak blue × yellow (replaces the Belgian flag stripe) */
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 66.66%, var(--accent-yellow) 66.66%, var(--accent-yellow) 100%);
  opacity: 0.6;
}
.hero-content { position: relative; text-align: center; padding: 2rem; max-width: 900px; }
.hero-logos {
  display: flex; align-items: center; justify-content: center;
  gap: 1.5rem; margin-bottom: 2.5rem;
  opacity: 0; animation: heroFadeUp 0.8s ease-out 0.3s forwards;
}
.hero-logos-divider { width: 1px; height: 28px; background: rgba(255,255,255,0.25); }
.hero-logo { height: 36px; width: auto; opacity: 0.95; }
.hero-wordmark {
  font-family: var(--font-mono); font-weight: 700; font-size: 1.15rem;
  letter-spacing: 0.04em; color: #fff; line-height: 1;
}
.hero-wordmark span { color: var(--accent-yellow); }
.hero-title { margin-bottom: 1.5rem; opacity: 0; animation: heroFadeUp 0.8s ease-out 0.5s forwards; }
.hero-title-line {
  display: block; font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 700; line-height: 1.08; color: #ffffff;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.6), 0 0 60px rgba(5,11,24,0.5);
}
.hero-title-accent {
  display: block; font-family: var(--font-sans);
  font-size: clamp(0.82rem, 1.6vw, 1rem);
  font-weight: 500; line-height: 1.4;
  color: rgba(220, 230, 245, 0.95); letter-spacing: 0.22em;
  text-transform: uppercase; margin-top: 0.8rem;
  text-shadow: 0 1px 10px rgba(0,0,0,0.7);
}
.hero-subtitle {
  color: #ffffff; font-family: var(--font-serif);
  font-size: 1.18rem; max-width: 600px;
  margin: 0 auto 2.5rem; font-weight: 400; line-height: 1.7;
  text-shadow: 0 2px 18px rgba(0,0,0,0.85), 0 0 30px rgba(5,11,24,0.6);
  opacity: 0; animation: heroFadeUp 0.8s ease-out 0.7s forwards;
}
.hero-actions {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 0.85rem;
  opacity: 0; animation: heroFadeUp 0.8s ease-out 0.9s forwards;
}
.hero-cta {
  display: inline-block;
  background: var(--accent); color: var(--on-accent);
  text-decoration: none; padding: 0.8rem 2.2rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm); font-weight: 600; font-size: 0.88rem;
  transition: all 0.25s; letter-spacing: 0.01em;
}
.hero-cta:hover { background: var(--accent-dim); border-color: var(--accent-dim); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.hero-numbers {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem; margin: 3rem auto 0; max-width: 820px;
  opacity: 0; animation: heroFadeUp 0.8s ease-out 1.1s forwards;
}
.hero-number-card {
  background: rgba(5, 8, 15, 0.75) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 1.25rem 1rem; text-align: left;
  border-left: 3px solid var(--accent);
  box-shadow: 0 16px 48px rgba(0,0,0,0.55);
}
.hero-number-value {
  display: block; font-family: var(--font-serif);
  font-size: 2rem; font-weight: 600; color: #fff;
  line-height: 1; letter-spacing: -0.02em; margin-bottom: 0.45rem;
}
.hero-number-label { display: block; color: rgba(255,255,255,0.9); font-size: 0.78rem; line-height: 1.45; }
.hero-scroll-hint { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); }
.hero-scroll-line {
  width: 1px; height: 32px;
  background: linear-gradient(to bottom, var(--accent-bright), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .hero-logos, .hero-title, .hero-subtitle, .hero-actions, .hero-numbers { animation: none; opacity: 1; }
  .hero-scroll-line { animation: none; }
}

/* ═══ SIDEBAR + CONTENT LAYOUT ═══ */
.report-layout { display: flex; max-width: 1640px; margin: 0 auto; position: relative; }
.sidebar {
  width: var(--sidebar-width); flex-shrink: 0;
  position: sticky; top: 56px; height: calc(100vh - 56px);
  padding: 2.5rem 0 2.5rem 2rem; overflow-y: auto; z-index: 10;
}
.sidebar::-webkit-scrollbar { width: 0; }
.sidebar-nav { display: flex; flex-direction: column; }
.sidebar-heading {
  font-size: 0.62rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--text-dim);
  padding: 0 0 0.75rem; margin-bottom: 0.25rem;
}
.sidebar-link {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem 0.75rem; margin-left: -0.75rem;
  color: var(--text-dim); text-decoration: none;
  font-size: 0.8rem; line-height: 1.4;
  border-radius: var(--radius-sm); transition: all 0.2s;
  border-left: 2px solid transparent;
}
.sidebar-link:hover { color: var(--text-secondary); background: rgba(255,255,255,0.03); }
.sidebar-link.active {
  color: var(--text-primary); border-left-color: var(--accent);
  background: var(--accent-subtle); font-weight: 500;
}
.sidebar-link-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--text-dim); flex-shrink: 0; transition: all 0.2s;
}
.sidebar-link.active .sidebar-link-dot { background: var(--accent-bright); box-shadow: 0 0 6px var(--accent-glow); }
.sidebar-link-tag { color: var(--text-dim); font-size: 0.66rem; margin-right: 0.25rem; }
.sidebar-highlight { margin-top: 1.5rem; }

/* "Highlighting: KBC ×" chip */
.highlight-chip {
  display: inline-flex; align-items: center; gap: 0.5rem; max-width: 100%;
  background: var(--highlight-subtle); border: 1px solid var(--highlight);
  color: var(--text-primary); border-radius: 999px;
  padding: 0.3rem 0.4rem 0.3rem 0.75rem; font-size: 0.74rem; line-height: 1.3;
}
.highlight-chip-label { color: var(--text-secondary); }
.highlight-chip strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.highlight-chip button {
  background: none; border: none; color: var(--text-secondary); cursor: pointer;
  width: 22px; height: 22px; border-radius: 50%; font-size: 1rem; line-height: 1; flex-shrink: 0;
}
.highlight-chip button:hover { color: var(--text-primary); background: rgba(127,127,127,0.15); }

.report-content { flex: 1; min-width: 0; max-width: 100%; padding: 0 2.5rem; }
.sections { max-width: 1200px; margin: 0 auto; padding: 1rem 0 3rem; overflow-wrap: break-word; }
.loading-note { color: var(--text-dim); padding: 4rem 0; text-align: center; }

/* ═══ SECTION HEADERS ═══ */
.chapter-head { max-width: 1200px; margin: 5rem auto 2.5rem; padding: 0 2rem; }
.chapter-head[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.chapter-head[data-reveal].revealed { opacity: 1; transform: translateY(0); }
.chapter-head-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 0.85rem;
}
.chapter-head-title {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.08;
  color: var(--text-primary); margin: 0 0 0.85rem; letter-spacing: -0.01em;
}
.chapter-head-desc { font-size: 1.05rem; line-height: 1.55; color: var(--text-secondary); max-width: 720px; }
.chapter-head-rule { width: 64px; height: 2px; background: var(--accent); margin-top: 1.75rem; border-radius: 2px; }

/* ═══ NARRATIVE (chapter overview) ═══ */
.narrative-bridge {
  margin: 2.5rem 2rem; padding: 3rem 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.narrative-inner { max-width: 820px; }
.narrative-eyebrow {
  display: inline-block; font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent-text); margin-bottom: 0.75rem;
}
.narrative-eyebrow::before { content: '[ '; opacity: 0.4; }
.narrative-eyebrow::after { content: ' ]'; opacity: 0.4; }
.narrative-stat {
  font-family: var(--font-serif); font-size: 1.45rem; font-weight: 500;
  color: var(--text-primary); line-height: 1.45; margin-bottom: 1.25rem;
}
.narrative-body { color: var(--text-secondary); font-size: 1rem; line-height: 1.85; }
.narrative-body + .narrative-body { margin-top: 1.1rem; }
.narrative-insight { margin-top: 2rem; }
.narrative-insight-title { font-size: 1.2rem; font-weight: 700; font-style: italic; color: var(--accent-text); line-height: 1.35; margin-bottom: 0.4rem; }

/* ═══ CHART / INSIGHT BLOCK ═══ */
.graph-row {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 4rem; align-items: center; margin: 6rem auto; padding: 0 2rem;
}
.graph-row--reverse { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.graph-row--reverse .graph-row-text { order: 2; }
.graph-row--reverse .graph-row-chart { order: 1; }
.graph-row--full { display: block; }
.graph-row--full .graph-row-text { max-width: 820px; margin-bottom: 2rem; }
.graph-row-text { display: flex; flex-direction: column; gap: 0.85rem; }
.graph-row-eyebrow {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent-text);
}
.graph-row-title {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(1.45rem, 2.2vw, 2rem); line-height: 1.18;
  color: var(--text-primary); letter-spacing: -0.005em;
}
.graph-row-body { font-size: 1.02rem; line-height: 1.62; color: var(--text-secondary); }

/* "What we measured" callout (replaces the survey "Question asked") */
.graph-row-measured {
  font-size: 0.9rem; line-height: 1.55; color: var(--text-secondary);
  padding-left: 0.85rem; border-left: 2px solid var(--accent-yellow);
}
.graph-row-measured-label {
  display: block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 0.25rem;
}
.graph-row-measured ul { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.graph-row-measured li strong { font-weight: 600; }

.graph-row-chart { min-width: 0; max-width: 100%; }
.graph-host { width: 100%; }
.graph-host .highcharts-background { fill: transparent !important; }
.chart-caption { font-size: 0.78rem; color: var(--text-dim); margin-top: 0.5rem; }
.chart-summary { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.75rem; }

/* Wide charts scroll inside their container on small screens */
.chart-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.chart-scroll:focus-visible { outline-offset: 0; }
.chart-scroll-hint { display: none; font-size: 0.72rem; color: var(--text-dim); margin-bottom: 0.4rem; }

/* Chart tools: data table toggle */
.chart-tools { display: flex; justify-content: flex-end; margin-top: 0.5rem; }
.chart-table-toggle {
  background: none; border: 1px solid var(--border-hover); color: var(--text-secondary);
  font: inherit; font-size: 0.75rem; font-weight: 600; cursor: pointer;
  padding: 0.35rem 0.8rem; border-radius: 999px; transition: all 0.2s;
}
.chart-table-toggle:hover { border-color: var(--accent); color: var(--accent-text); }
.chart-table-wrap { margin-top: 0.75rem; max-height: 420px; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.data-table caption { text-align: left; padding: 0.6rem 0.75rem; color: var(--text-dim); font-size: 0.75rem; }
.data-table th, .data-table td { padding: 0.4rem 0.75rem; border-bottom: 1px solid var(--border); text-align: right; white-space: nowrap; }
.data-table th:first-child, .data-table td:first-child { text-align: left; }
.data-table thead th { position: sticky; top: 0; background: var(--bg-secondary); color: var(--text-secondary); font-weight: 600; }
.data-table tr.is-highlight td { background: var(--highlight-subtle); }

/* Legend (HTML, shared) */
.chart-legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.78rem; color: var(--text-secondary); margin: 0 0 0.75rem; }
.chart-legend-item { display: inline-flex; align-items: center; gap: 0.4rem; }
.chart-legend-swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.chart-legend-swatch--dot { border-radius: 50%; }
.chart-legend-swatch--na { background: repeating-linear-gradient(45deg, var(--na), var(--na) 3px, var(--na-hatch) 3px, var(--na-hatch) 5px); }
.heat-scale { display: inline-flex; align-items: center; gap: 0.4rem; }
.heat-scale-bar { display: inline-flex; height: 10px; border-radius: 3px; overflow: hidden; }
.heat-scale-bar span { width: 18px; }

/* ═══ BANKS IN THE BENCHMARK (logo wall, by country) ═══ */
.institutions-section { max-width: 1400px; width: 100%; margin: 0 auto; padding: 4rem 2rem 2.5rem; }
.institutions-country { margin-top: 2.5rem; }
.institutions-country-label {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-dim);
}
.institutions-country-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.institutions-country-count { color: var(--accent-text); }
.institutions-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem; margin-top: 1rem;
}
.institution-logo {
  display: flex; align-items: center; justify-content: center;
  height: 88px; padding: 0.75rem 1rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: transparent; transition: border-color 0.2s, background 0.2s;
  text-align: center;
}
.institution-logo:hover { border-color: var(--border-hover); }
.institution-logo img {
  max-height: 40px; max-width: 150px; width: auto; height: auto;
  object-fit: contain; display: block; filter: brightness(0) invert(1); opacity: 0.9;
}
/* Uniform monochrome text tile for banks without a logo asset */
.institution-logo--text {
  font-family: var(--font-sans); font-size: 1rem; font-weight: 600;
  letter-spacing: -0.005em; color: var(--text-primary); line-height: 1.25;
}
.institution-logo.is-highlight { border-color: var(--highlight); background: var(--highlight-subtle); }

/* ═══ INTRODUCTION ═══ */
.intro-section, .ranking-section, .contributors-section { padding: 0 2rem; }
.intro-block { margin-top: 3rem; }
.intro-eyebrow {
  display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent-text); margin-bottom: 1.25rem;
}
.why-body { line-height: 1.65; margin-bottom: 1.5rem; }
.why-body:last-child { margin-bottom: 0; }
.why-body strong:has(+ br) { display: inline-block; font-size: 1.2rem; margin-bottom: 0.4rem; color: var(--accent-text); }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.why-item { border-top: 2px solid var(--accent); padding-top: 1.1rem; }
.why-item h3 { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; line-height: 1.25; margin-bottom: 0.5rem; }
.why-item p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.65; }
.chapter-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.chapter-card {
  display: flex; flex-direction: column; gap: 0.5rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: var(--radius);
  padding: 1.4rem 1.25rem; text-decoration: none; color: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.chapter-card:hover { border-color: var(--border-hover); border-left-color: var(--accent-bright); background: var(--bg-card-hover); }
.chapter-card-num { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; color: var(--accent-text); letter-spacing: 0.1em; }
.chapter-card-title { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; line-height: 1.2; color: var(--text-primary); text-decoration: none; }
/* The title link covers the whole card; the partner link sits above it. */
.chapter-card { position: relative; }
.chapter-card-title::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.chapter-card:has(.chapter-card-title:focus-visible) { outline: 2px solid var(--accent-bright); outline-offset: 3px; }
.chapter-card-title:focus-visible { outline: none; }
.chapter-card-body { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }
.chapter-card-head { display: flex; align-items: center; height: 1.3rem; }
.chapter-card-body:has(+ .chapter-card-partner) { margin-bottom: 0.5rem; }
/* Pinned to the bottom of the card; the negative margin lines the logo up with the text above. */
.chapter-card-partner {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 0.6rem; align-self: flex-start;
  margin-top: auto; margin-left: -0.25rem;
  padding: 0.25rem 0.6rem 0.25rem 0.25rem; border-radius: var(--radius-sm);
  color: var(--text-primary); text-decoration: none; font-size: 0.8rem; line-height: 1.25;
  transition: background 0.2s;
}
.chapter-card-partner:hover { background: var(--bg-elevated); }
.chapter-card-partner img { width: 28px; height: 28px; border-radius: 6px; flex-shrink: 0; }
.chapter-card-partner > span { display: flex; flex-direction: column; }
.chapter-card-partner-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }
.method-box {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem 2rem;
}
.method-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 2.5rem; }
.method-list li { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.6; padding-left: 1rem; position: relative; }
.method-list li::before { content: ''; position: absolute; left: 0; top: 0.65em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-bright); }

/* Collapsible (native <details>, styled like the barometer takeaway rows) */
.disclosure { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-top: 2.5rem; }
.disclosure > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.5rem 0; font-family: var(--font-sans); font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 700;
  color: var(--accent-text); letter-spacing: -0.01em;
}
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure-toggle {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1px solid var(--border-hover);
  color: var(--accent-text); transition: transform 0.3s ease, background 0.2s;
}
.disclosure[open] .disclosure-toggle { transform: rotate(180deg); }
.disclosure > summary:hover .disclosure-toggle { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.disclosure-body { padding-bottom: 2rem; }
.criteria-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.criteria-chapter h4 { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; margin-bottom: 0.75rem; }
.criteria-group { margin-bottom: 1rem; }
.criteria-group-label { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 0.35rem; }
.criteria-group ul { list-style: none; }
.criteria-group li { font-size: 0.86rem; color: var(--text-secondary); line-height: 1.5; padding: 0.2rem 0; }

/* ═══ FILTER BAR (country tabs + Find your bank) ═══ */
.filter-bar {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1rem 2rem; padding: 1rem 0; margin-bottom: 1.5rem;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.filter-bar--compact { margin: 0 2rem 1rem; }
.filter-field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.filter-label { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }
.country-tabs { display: inline-flex; flex-wrap: wrap; gap: 0.25rem; background: var(--bg-elevated); padding: 0.25rem; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.country-tab {
  background: none; border: none; cursor: pointer; font: inherit;
  font-size: 0.8rem; font-weight: 600; color: var(--text-secondary);
  padding: 0.45rem 0.9rem; border-radius: var(--radius-sm); transition: all 0.2s;
}
.country-tab:hover { color: var(--text-primary); }
.country-tab[aria-selected="true"] { background: var(--bg-primary); color: var(--text-primary); box-shadow: inset 0 -2px 0 var(--accent); }
.country-tab-count { color: var(--text-secondary); font-weight: 400; margin-left: 0.3rem; font-variant-numeric: tabular-nums; }
.bank-select {
  appearance: none; -webkit-appearance: none; min-width: 240px; max-width: 100%;
  background: var(--bg-elevated) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239a9ab0' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 0.8rem center;
  border: 1px solid var(--border-hover); border-radius: var(--radius-sm);
  color: var(--text-primary); font: inherit; font-size: 0.85rem;
  padding: 0.55rem 2.2rem 0.55rem 0.85rem; cursor: pointer;
}
.bank-select:hover { border-color: var(--accent); }
.bank-select.has-value { border-color: var(--highlight); box-shadow: 0 0 0 1px var(--highlight) inset; }

/* ═══ RANKING TABLE ═══ */
.ranking-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ranking-table caption { text-align: left; }
.ranking-table th {
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dim); text-align: left; padding: 0 0.75rem 0.75rem; border-bottom: 1px solid var(--border-hover);
}
.ranking-table th.num, .ranking-table td.num { text-align: right; }
.ranking-table td { padding: 0.85rem 0.75rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.ranking-table tbody tr { transition: background 0.2s; }
.ranking-table tbody tr:hover { background: rgba(127,127,127,0.05); }
.ranking-table tr.is-highlight { background: var(--highlight-subtle) !important; box-shadow: inset 3px 0 0 var(--highlight); }
.rank-num { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; color: var(--text-dim); width: 3.25rem; line-height: 1; }
tr:nth-child(-n+3) .rank-num { color: var(--accent-text); }
.rank-bank { font-weight: 600; font-size: 1rem; color: var(--text-primary); }
.ranking-table .rank-delta { width: 6.5rem; }
.rank-change { font-family: var(--font-mono); font-size: 1.1rem; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; }
.rank-change.is-up { color: var(--success); }
.rank-change.is-down { color: var(--error); }
.rank-change.is-same { color: var(--text-dim); }
.rank-change.is-new { color: var(--accent-text); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.64rem; }
.rank-country { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; color: var(--text-secondary); letter-spacing: 0.08em; }
.rank-country abbr { text-decoration: none; }
.rank-score { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 600; color: var(--text-primary); white-space: nowrap; }
.rank-score small { font-family: var(--font-sans); font-size: 0.7rem; color: var(--text-dim); font-weight: 500; margin-left: 2px; }
.rank-bars { width: 38%; min-width: 180px; }
.mini-bars { display: flex; flex-direction: column; gap: 5px; }
.mini-bar { display: grid; grid-template-columns: 8rem 1fr; align-items: center; gap: 0.5rem; font-size: 0.7rem; color: var(--text-dim); }
.mini-bar-track { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.mini-bar-fill { display: block; height: 100%; background: var(--bar); border-radius: 0 3px 3px 0; width: 0; transition: width 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.is-highlight .mini-bar-fill { background: var(--highlight); }
/* Dim text sits on a tinted background in highlighted/active states: step up to secondary ink (AA). */
.ranking-table tr.is-highlight .mini-bar, .ranking-table tr.is-highlight .rank-score small, .ranking-table tr.is-highlight .rank-num { color: var(--text-secondary); }
.sidebar-link.active .sidebar-link-tag { color: var(--text-secondary); }
.ranking-more { margin-top: 1rem; }
.ranking-more-btn {
  background: transparent; border: 1px solid var(--accent); color: var(--accent-text);
  font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer;
  padding: 0.55rem 1.2rem; border-radius: 999px; transition: all 0.2s;
}
.ranking-more-btn:hover { background: var(--accent); color: var(--on-accent); }

/* ═══ GEO SPOTLIGHT ═══ */
.spotlight {
  margin: 6rem 2rem; padding: 3rem;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, var(--accent-glow), transparent 70%),
    var(--bg-secondary);
  border: 1px solid var(--border); border-radius: calc(var(--radius) * 1.5);
  position: relative; overflow: hidden;
}
.spotlight::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--accent), var(--accent-yellow)); }
.spotlight-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.spotlight-partner {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-text);
}
.spotlight-partner img { height: 18px; width: auto; }
.spotlight-partner span a { color: inherit; text-decoration: none; }
.spotlight-title { font-family: var(--font-serif); font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 600; line-height: 1.08; margin: 0.6rem 0 1rem; }
.spotlight-body { color: var(--text-secondary); font-size: 1.02rem; line-height: 1.65; }
.stat-tiles { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
.stat-tile { background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 1rem 1.25rem; }
.stat-tile-value { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 600; line-height: 1; color: var(--text-primary); }
.stat-tile-value small { font-size: 1rem; color: var(--text-dim); margin-left: 2px; }
.stat-tile-label { display: block; font-size: 0.84rem; color: var(--text-secondary); margin-top: 0.4rem; line-height: 1.45; }
.spotlight-chart { margin-top: 2.5rem; }
.spotlight .graph-row-measured { margin-top: 1.5rem; max-width: 900px; }

/* ═══ JOURNEY EXPLORER ═══ */
.explorer { margin: 6rem 2rem; }
.explorer-head { max-width: 820px; display: flex; flex-direction: column; gap: 0.85rem; margin-bottom: 1.5rem; }
.journey-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.journey-tab {
  background: transparent; border: 1px solid var(--border-hover); color: var(--text-secondary);
  font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer;
  padding: 0.5rem 1rem; border-radius: 999px; transition: all 0.2s;
}
.journey-tab:hover { border-color: var(--accent); color: var(--text-primary); }
.journey-tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.explorer-panel { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; align-items: start; }
.explorer-side { display: flex; flex-direction: column; gap: 1.25rem; }
.best-card { background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--accent-yellow); border-radius: var(--radius); padding: 1.25rem 1.4rem; }
.best-card-label { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }
.best-card-name { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; line-height: 1.2; margin: 0.35rem 0 0.2rem; }
.best-card-score { font-size: 0.9rem; color: var(--text-secondary); }
.offered-note { font-size: 0.88rem; color: var(--text-secondary); }
.offered-note strong { font-family: var(--font-serif); font-size: 1.2rem; }
.subcriteria-text { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }
.subcriteria-text strong { color: var(--text-primary, inherit); font-weight: 600; }
.explorer-sub-title { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 0.5rem; }

/* ═══ CONTRIBUTORS ═══ */
.contributors-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.contributor-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; display: grid; grid-template-columns: 84px 1fr; gap: 1.25rem; align-items: center;
  transition: border-color 0.2s;
}
.contributor-card:hover { border-color: var(--accent); }
.contributor-avatar {
  width: 84px; height: 84px; border-radius: 50%; overflow: hidden;
  background: var(--accent-subtle); border: 1px solid var(--border-hover);
  display: flex; align-items: center; justify-content: center;
}
.contributor-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.contributor-initials { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; color: var(--accent-text); letter-spacing: -0.02em; }
.contributor-body { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.contributor-name { font-weight: 700; font-size: 1.05rem; color: var(--text); letter-spacing: -0.01em; line-height: 1.2; }
.contributor-title { font-size: 0.9rem; font-weight: 500; color: var(--text-2); line-height: 1.35; }
.contributor-org { font-size: 0.85rem; font-weight: 500; color: var(--text-3); letter-spacing: 0.02em; margin-top: 0.15rem; }

/* ═══ CONTACT ═══ */
.contact-section { max-width: 1200px; margin: 5rem auto 0; padding: 0 2rem; }
.contact-card {
  background: linear-gradient(135deg, var(--accent-subtle), transparent 70%), var(--bg-card);
  border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius);
  padding: 3rem 2.5rem; text-align: center;
}
.contact-title { font-family: var(--font-serif); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 600; line-height: 1.1; margin: 0.6rem 0 1rem; }
.contact-body { color: var(--text-secondary); font-size: 1.02rem; line-height: 1.65; max-width: 560px; margin: 0 auto 1.75rem; }

/* ═══ FORMS ═══ */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block; font-size: 0.72rem; font-weight: 600; color: var(--text-secondary);
  margin-bottom: 0.35rem; text-transform: uppercase; letter-spacing: 0.05em;
}
.form-group label .req { color: var(--accent-text); margin-left: 2px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.65rem 0.9rem;
  background: var(--bg-elevated); border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm); font-size: 0.9rem;
  font-family: inherit; color: var(--text-primary); transition: border-color 0.2s;
}
.form-group textarea { resize: vertical; min-height: 96px; }
.form-group select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239a9ab0' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.8rem center; padding-right: 2.2rem; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-dim); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-group [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: 0.76rem; margin-top: 0.3rem; min-height: 0; }
.field-error:empty { display: none; }
.consent-row { display: grid; grid-template-columns: auto 1fr; gap: 0.65rem; align-items: start; margin: 0.5rem 0 1rem; font-size: 0.84rem; color: var(--text-secondary); line-height: 1.5; }
.consent-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--error); font-size: 0.84rem; min-height: 1.2em; margin-bottom: 0.4rem; }
.form-success { color: var(--success); font-size: 0.84rem; min-height: 1.2em; margin-bottom: 0.4rem; }
.form-error:empty, .form-success:empty { min-height: 0; margin: 0; }
.form-submit {
  width: 100%; background: var(--accent); color: var(--on-accent);
  border: none; padding: 0.8rem; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600; cursor: pointer; font-family: inherit; transition: all 0.2s;
}
.form-submit:hover { background: var(--accent-dim); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.dev-notice {
  display: flex; gap: 0.6rem; align-items: flex-start;
  background: var(--accent-yellow-subtle); border: 1px dashed var(--accent-yellow-dim);
  color: var(--text-primary); border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem; font-size: 0.82rem; line-height: 1.5; margin-bottom: 1.25rem;
}
.dev-notice code { font-family: var(--font-mono); font-size: 0.78rem; }

/* ═══ FOOTER ═══ */
.footer { background: var(--bg-secondary); padding: 0 2rem 2.5rem; text-align: center; border-top: 1px solid var(--border); }
.footer-inner { max-width: 620px; margin: 0 auto; }
.footer-stripe { height: 3px; margin-bottom: 2.5rem; background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 66.66%, var(--accent-yellow) 66.66%); opacity: 0.5; }
.footer-logos { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-bottom: 1.5rem; }
.footer-logo { height: 28px; width: auto; opacity: 0.75; transition: opacity 0.2s; }
.footer-logo:hover { opacity: 1; }
.footer-wordmark { font-family: var(--font-mono); font-weight: 700; font-size: 1rem; color: var(--text-secondary); letter-spacing: 0.04em; }
.footer-brand { font-family: var(--font-mono); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.75rem; }
.footer-collab, .footer-note, .footer-copy { font-size: 0.8rem; color: var(--text-dim); line-height: 1.6; margin-bottom: 0.5rem; }
.footer-collab { color: var(--text-secondary); }

/* ═══ REVEAL ═══ */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], .chapter-head[data-reveal] { opacity: 1; transform: none; transition: none; }
  .mini-bar-fill { transition: none; }
}

[data-section], [id] { scroll-margin-top: 96px; }

@keyframes scrollPulse { 0%, 100% { opacity: 0.2; } 50% { opacity: 0.8; } }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1100px) {
  .explorer-panel { grid-template-columns: 1fr; gap: 2rem; }
  .spotlight-head { grid-template-columns: 1fr; gap: 2rem; }
  .stat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .sidebar { display: none; }
  .mobile-contents { display: block; }
  .report-layout { display: block; }
  .report-content { padding: 0 1.5rem; }
  html { scroll-padding-top: 110px; }
  [data-section], [id] { scroll-margin-top: 110px; }
}
@media (max-width: 900px) {
  .graph-row, .graph-row--reverse { display: flex; flex-direction: column; gap: 1.25rem; margin: 3rem auto; padding: 0 1rem; align-items: stretch; }
  .graph-row--reverse .graph-row-text { order: 1; }
  .graph-row--reverse .graph-row-chart { order: 2; }
  .graph-row--full { padding: 0 1rem; }
  .chapter-head { padding: 0 1rem; margin-top: 3rem; margin-bottom: 1.75rem; }
  .narrative-bridge { margin: 2rem 1rem; }
  .intro-section, .ranking-section, .contributors-section { padding: 0 1rem; }
  .why-grid, .chapter-cards, .criteria-columns { grid-template-columns: 1fr; gap: 1.25rem; }
  .method-list { grid-template-columns: 1fr; }
  .institutions-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .spotlight { margin: 3rem 1rem; padding: 2rem 1.5rem; }
  .explorer { margin: 3rem 1rem; }
  .filter-bar--compact { margin: 0 1rem 1rem; }
  .chart-scroll-hint { display: block; }
  .rank-bars { display: none; }
  .contributors-grid { grid-template-columns: 1fr; }
  .contact-section { padding: 0 1rem; margin-top: 3rem; }
  .contact-card { padding: 2rem 1.5rem; }
}
@media (max-width: 768px) {
  .nav-inner { padding: 0 1rem; }
  .hero-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-subtitle { font-size: 1rem; }
  .stat-tiles { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav-brand { font-size: 0.7rem; letter-spacing: 0.08em; }
  .nav-brand-full { display: none; }
  .nav-brand-short { display: inline; }
  .nav-links { gap: 0.5rem; }
  .report-content { padding: 0 0.5rem; }
  .institutions-section { padding: 3rem 1rem 1.5rem; }
  .institutions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .institution-logo { height: 72px; }
  .institution-logo--text { font-size: 0.9rem; }
  .chapter-head-title { font-size: 1.75rem; }
  .graph-row-title { font-size: 1.3rem; }
  .rank-num { font-size: 1.2rem; width: 2.25rem; }
  .rank-score { font-size: 1.2rem; }
  .ranking-table td { padding: 0.7rem 0.4rem; }
  .ranking-table th { padding: 0 0.4rem 0.6rem; }
  .ranking-table .rank-delta { width: auto; }
  .country-tabs { width: 100%; }
  .country-tab { flex: 1; padding: 0.45rem 0.5rem; }
  .bank-select { min-width: 0; width: 100%; }
  .filter-field { width: 100%; }
}
@media (max-width: 480px) {
  .nav-inner { padding: 0 0.75rem; }
  .hero-content { padding: 1rem 0.75rem; }
  .hero-logo { height: 26px; }
  .hero-number-value { font-size: 1.5rem; }
  .hero-number-label { font-size: 0.7rem; }
  .hero-cta { padding: 0.7rem 1.4rem; }
}

/* ═══ ACCESS GATE ═══ */
body.is-gated { overflow: hidden; }
body.is-gated .nav, body.is-gated .hero, body.is-gated main, body.is-gated .footer, body.is-gated .mobile-contents { visibility: hidden; }
.gate-screen {
  position: fixed; inset: 0; z-index: 300; background: var(--bg-primary);
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
}
.gate-screen[hidden] { display: none; }
.gate-card {
  width: 100%; max-width: 420px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2.5rem;
}
.gate-eyebrow { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 0.75rem; }
.gate-title { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.gate-desc { color: var(--text-secondary); font-size: 0.86rem; margin-bottom: 1.5rem; }
