/* ==========================================================================
   HERO EDUCATION — DESIGN SYSTEM & ACTIVE WEB APPLICATION STYLES
   Figma Source: nF6UNPiPcmJOLyjJXhP5Pg (01 · Website + 02 · Design system)
   Brand Strategy: "Building for the next billion learners of India."
   ========================================================================== */

/* Fonts are linked from each page head (added by the CMS publisher) so they load in parallel. */

:root {
  /* Core Palette (Figma 22:39320) */
  --hero-red: #E2232A;
  --hero-red-dark: #C31B21;
  --charcoal-deep: #111111;
  --charcoal: #1A1A1A;
  --graphite: #2A2D30;
  --grey: #5A5F63;
  --meta: #8A8F93;
  --silver: #E0DFDD;
  --silver-light: #F2F1EF;
  --paper: #FAFAF8;
  --white: #FFFFFF;
  --rule-dark: #3C3F41;
  --stone: #C9C7C3;

  /* Data & Editorial Accent Palette */
  --deep-green: #0F3B33;
  --deep-green-mid: #0A2621;
  --deep-green-card: #081C18;
  --deep-green-border: #1C544A;
  --deep-green-muted: #B6CEC8;
  --deep-green-caption: #8FB2AA;
  --indigo: #3F4C8F;
  --indigo-mid: #7E8DBA;
  --indigo-light: #BFC7DE;
  --teal: #1C8FB0;
  --teal-light: #5CD1EE;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;

  /* Layout & Spacing */
  --container-max: 1440px;
  --content-max: 1280px;
  --reading-max: 720px;
  --gutter: 24px;
  --pad-x: 80px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0 !important;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--paper);
  color: var(--charcoal);
}

body {
  font-family: var(--font-sans);
  background-color: var(--paper);
  color: var(--charcoal);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

button, input, select, textarea {
  font-family: var(--font-sans);
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

/* ==========================================================================
   LAYOUT CONTAINERS & GRID
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.reading-col {
  max-width: var(--reading-max);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gutter);
}

/* Section Surfaces */
.surface-dark {
  background-color: var(--charcoal-deep);
  color: var(--paper);
}

.surface-charcoal {
  background-color: var(--charcoal);
  color: var(--paper);
}

.surface-paper {
  background-color: var(--paper);
  color: var(--charcoal);
}

.surface-silver {
  background-color: var(--silver-light);
  color: var(--charcoal);
}

.surface-silver-mid {
  background-color: var(--silver);
  color: var(--charcoal);
}

.surface-green {
  background-color: var(--deep-green);
  color: var(--paper);
}

.surface-red {
  background-color: var(--hero-red);
  color: var(--paper);
}

.section-pad {
  padding-top: 96px;
  padding-bottom: 96px;
}

.section-pad-sm {
  padding-top: 64px;
  padding-bottom: 64px;
}

.border-top-light {
  border-top: 1px solid var(--silver);
}

.border-bottom-light {
  border-bottom: 1px solid var(--silver);
}

.border-top-dark {
  border-top: 1px solid var(--graphite);
}

.border-bottom-dark {
  border-bottom: 1px solid var(--graphite);
}

/* ==========================================================================
   TYPOGRAPHY & EDITORIAL CUES
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hero-red);
  margin-bottom: 20px;
}

.eyebrow .ptr {
  color: var(--hero-red);
  font-size: 11px;
  line-height: 1;
}

.eyebrow-teal {
  color: var(--teal);
}

.eyebrow-teal-light {
  color: var(--teal-light);
}

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

.display-xl {
  font-family: var(--font-sans);
  font-size: clamp(38px, 4.2vw, 56px);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.025em;
}

.display-lg {
  font-family: var(--font-sans);
  font-size: clamp(34px, 3.6vw, 48px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.heading-xl {
  font-family: var(--font-sans);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.heading-lg {
  font-family: var(--font-sans);
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.heading-md {
  font-family: var(--font-sans);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 800;
  line-height: 1.2;
}

.heading-sm {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.standfirst {
  font-family: var(--font-serif);
  font-size: clamp(19px, 1.6vw, 22px);
  font-weight: 400;
  line-height: 1.5;
}

.editorial-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.32;
}

.stat-num-xl {
  font-family: var(--font-sans);
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-num-lg {
  font-family: var(--font-sans);
  font-size: clamp(36px, 3.8vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.stat-num-md {
  font-family: var(--font-sans);
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 800;
  line-height: 1.1;
}

.meta-text {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--meta);
  line-height: 1.45;
}

.body-lg {
  font-size: 17px;
  line-height: 1.65;
}

.body-md {
  font-size: 15px;
  line-height: 1.62;
}

.body-serif {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.72;
  color: var(--charcoal);
}

/* ==========================================================================
   BUTTONS & INTERACTIVE LINKS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 24px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  white-space: nowrap;
  cursor: pointer;
}

.btn .ptr {
  font-size: 10px;
  transition: transform 0.18s ease;
}

.btn:hover .ptr {
  transform: translateX(3px);
}

.btn-primary {
  background-color: var(--hero-red);
  color: var(--paper);
  border-color: var(--hero-red);
}

.btn-primary:hover {
  background-color: var(--charcoal-deep);
  border-color: var(--charcoal-deep);
  color: var(--paper);
}

.surface-dark .btn-primary:hover {
  background-color: var(--paper);
  border-color: var(--paper);
  color: var(--charcoal-deep);
}

.btn-outline-dark {
  background-color: transparent;
  color: var(--paper);
  border-color: var(--graphite);
}

.btn-outline-dark:hover {
  border-color: var(--paper);
  background-color: rgba(250, 250, 248, 0.06);
}

.btn-outline-light {
  background-color: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}

.btn-outline-light:hover {
  background-color: var(--charcoal);
  color: var(--paper);
}

.btn-white {
  background-color: var(--paper);
  color: var(--charcoal);
  border-color: var(--paper);
}

.btn-white:hover {
  background-color: var(--charcoal-deep);
  color: var(--paper);
  border-color: var(--charcoal-deep);
}

.link-editorial {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--hero-red);
  cursor: pointer;
}

.link-editorial:hover {
  opacity: 0.82;
}

.link-editorial .ptr {
  transition: transform 0.18s ease;
}

.link-editorial:hover .ptr {
  transform: translateX(4px);
}

/* ==========================================================================
   HEADER & NAVIGATION (Figma 14:5 desktop · 22:33695/22:33701 mobile)
   Global: every page shares this header markup.
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--charcoal-deep);
  border-bottom: 1px solid var(--rule-dark);
  height: 104px;
  display: flex;
  align-items: center;
  transition: background-color 0.22s ease, border-color 0.22s ease;
}

.site-header.header-light {
  background-color: var(--paper);
  border-bottom: 1px solid var(--silver);
  color: var(--charcoal);
}

.header-inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
}

.brand-logo img {
  width: 174px;
  height: 56.33px;
  object-fit: contain;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 700;
  line-height: normal;
  color: var(--paper);
  padding: 16px 0;
  border-bottom: 2px solid transparent;
}

.site-header.header-light .nav-links a {
  color: var(--charcoal);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--paper);
  border-bottom-color: var(--hero-red);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 30px;
}

.search-trigger {
  width: 19px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  transition: color 0.18s ease;
}

.search-trigger svg {
  width: 19px;
  height: 19px;
}

.site-header.header-light .search-trigger {
  color: var(--charcoal);
}

.search-trigger:hover {
  color: var(--hero-red);
}

/* Inner-page variant (Figma 22:28221): silver outline, 50px tall */
.btn-nav-subscribe {
  min-height: 50px;
  padding: 14px 22px;
  font-size: 13px;
  font-weight: 800;
  line-height: normal;
  border: 1px solid var(--silver);
  background-color: var(--charcoal-deep);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.btn-nav-subscribe .ptr {
  font-size: 12px;
  font-weight: 400;
  color: var(--hero-red) !important;
}

.site-header.header-light .btn-nav-subscribe {
  border-color: var(--charcoal);
  color: var(--charcoal);
}

.btn-nav-subscribe:hover {
  border-color: var(--hero-red);
  background-color: var(--hero-red);
  color: var(--paper) !important;
}

.btn-nav-subscribe:hover .ptr {
  color: var(--paper) !important;
}

.mobile-menu-btn {
  display: none;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  color: var(--paper);
}

/* Breadcrumb & Provenance Strip */
.breadcrumb-bar {
  font-size: 11px;
  font-weight: 500;
  color: var(--meta);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.breadcrumb-bar a:hover {
  color: var(--paper);
  text-decoration: underline;
}

.surface-paper .breadcrumb-bar a:hover {
  color: var(--charcoal);
}

.provenance-strip {
  background-color: var(--charcoal-deep);
  border-top: 1px solid var(--graphite);
  border-bottom: 1px solid var(--graphite);
  padding: 14px 0;
}

.provenance-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--meta);
}

.provenance-inner .prov-lead {
  color: var(--hero-red);
}

/* ==========================================================================
   HOMEPAGE HERO & INDIA GER MAP PANEL (Figma 12:6269 & 12:6283)
   ========================================================================== */
.hero-section {
  background-color: var(--charcoal-deep);
  color: var(--paper);
  padding-top: 56px;
  padding-bottom: 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 5.5fr 6.5fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 56px;
}

.hero-left {
  padding-top: 20px;
}

.hero-left .display-xl {
  margin-bottom: 24px;
}

.hero-left .standfirst {
  color: var(--silver);
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Map Panel */
.ger-map-panel {
  background-color: #16181A;
  border: 1px solid var(--graphite);
  padding: 24px;
  position: relative;
}

.map-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--graphite);
  margin-bottom: 20px;
}

.map-panel-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.map-panel-sub {
  font-size: 12px;
  color: var(--meta);
}

.map-panel-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.map-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border: 1px solid var(--graphite);
  color: var(--silver);
  background: var(--charcoal-deep);
  cursor: pointer;
  transition: all 0.15s ease;
}

.map-chip.active,
.map-chip:hover {
  border-color: var(--teal);
  color: var(--paper);
  background: rgba(28, 143, 176, 0.16);
}

.surface-paper .map-chip {
  background: var(--paper);
  border-color: var(--silver);
  color: var(--grey);
}

.surface-paper .map-chip.active,
.surface-paper .map-chip:hover {
  border-color: var(--indigo);
  color: var(--indigo);
  background: rgba(63, 76, 143, 0.08);
}

.map-canvas-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 185px;
  gap: 16px;
  align-items: center;
  min-height: 360px;
}

.india-svg-stage {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  position: relative;
}

.india-svg-stage svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.india-svg-stage svg [id] {
  transition: fill 0.2s ease, opacity 0.2s ease, stroke 0.2s ease;
}

.india-svg-stage svg .state-interactive {
  cursor: pointer;
}

.india-svg-stage svg .state-interactive:hover {
  filter: brightness(1.14);
  stroke: var(--hero-red) !important;
  stroke-width: 1.5px !important;
}

.india-svg-stage svg .state-selected-active {
  stroke: var(--hero-red) !important;
  stroke-width: 2px !important;
}

.map-callouts-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.state-callout-card {
  background-color: var(--charcoal-deep);
  border: 1px solid var(--graphite);
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.state-callout-card:hover,
.state-callout-card.active {
  border-color: var(--teal);
  transform: translateX(-2px);
}

.state-callout-card .sc-state {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--meta);
  margin-bottom: 2px;
}

.state-callout-card .sc-val {
  font-size: 16px;
  font-weight: 800;
  color: var(--paper);
}

.state-callout-card.highlight-national {
  border-left: 3px solid var(--hero-red);
}

/* Interactive Map Tooltip Box */
.map-live-tooltip {
  margin-top: 16px;
  background-color: var(--charcoal-deep);
  border: 1px solid var(--graphite);
  border-left: 3px solid var(--teal);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.surface-paper .map-live-tooltip {
  background-color: var(--paper);
  border-color: var(--silver);
  border-left: 3px solid var(--indigo);
}

.map-legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--graphite);
  font-size: 11px;
  color: var(--meta);
}

.surface-paper .map-legend-row {
  border-top-color: var(--silver);
}

.legend-swatches {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-box {
  width: 10px;
  height: 10px;
  display: inline-block;
}

/* Latest Piece Ticker Bar */
.latest-ticker {
  border-top: 1px solid var(--graphite);
  background-color: #141517;
  padding: 16px 0;
}

.latest-ticker-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ticker-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ticker-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--hero-red);
  text-transform: uppercase;
}

.ticker-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--paper);
}

.ticker-title:hover {
  color: var(--hero-red);
}

/* ==========================================================================
   CHARTS & EVIDENCE MODULES (Figma 12:6367, 22:18875, 22:11038)
   ========================================================================== */
.chart-box-dark {
  background-color: var(--charcoal-deep);
  color: var(--paper);
  border: 1px solid var(--graphite);
  padding: 36px;
}

.chart-box-light {
  background-color: var(--paper);
  color: var(--charcoal);
  border: 1px solid var(--silver);
  padding: 32px;
}

.chart-box-silver {
  background-color: var(--silver-light);
  color: var(--charcoal);
  border: 1px solid var(--silver);
  padding: 32px;
}

.bar-track {
  width: 100%;
  height: 14px;
  background-color: #232629;
  position: relative;
  overflow: hidden;
}

.surface-paper .bar-track,
.chart-box-light .bar-track,
.chart-box-silver .bar-track {
  background-color: var(--silver);
}

.bar-fill {
  height: 100%;
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease;
}

.bar-fill-indigo {
  background-color: var(--indigo);
}

.bar-fill-indigo-mid {
  background-color: var(--indigo-mid);
}

.bar-fill-indigo-light {
  background-color: var(--indigo-light);
}

.bar-fill-red {
  background-color: var(--hero-red);
}

.bar-fill-teal {
  background-color: var(--teal);
}

.bar-fill-green {
  background-color: var(--deep-green);
}

.bar-target-outline {
  height: 14px;
  border: 1.5px dashed var(--meta);
  background: rgba(250, 250, 248, 0.04);
}

.state-bar-row {
  display: grid;
  grid-template-columns: 165px 1fr 64px;
  gap: 16px;
  align-items: center;
  padding: 8px 6px;
  border-bottom: 1px solid rgba(224, 223, 221, 0.45);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.state-bar-row:hover,
.state-bar-row.active {
  background-color: rgba(63, 76, 143, 0.07);
}

.state-bar-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: 6px;
}

.state-bar-val {
  font-size: 13px;
  font-weight: 800;
  text-align: right;
  color: var(--charcoal);
}

/* National Benchmark Reference Line on Bar Charts */
.bar-track-with-ref {
  position: relative;
  height: 14px;
  background-color: var(--silver);
}

.national-ref-marker {
  position: absolute;
  top: -5px;
  bottom: -5px;
  width: 2px;
  background-color: var(--hero-red);
  z-index: 2;
  pointer-events: none;
}

/* ==========================================================================
   PUBLICATION COVERS & CARDS (Figma 22:39320 Section 07)
   ========================================================================== */
.book-cover {
  background-color: var(--charcoal-deep);
  color: var(--paper);
  border: 1px solid var(--graphite);
  border-top: 4px solid var(--hero-red);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  position: relative;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.book-cover:hover {
  transform: translateY(-4px);
}

.book-cover.cover-green {
  background-color: var(--deep-green);
  border-color: var(--deep-green-border);
  border-top: 4px solid var(--hero-red);
}

.book-cover.cover-silver {
  background-color: var(--silver);
  color: var(--charcoal);
  border-color: #C9C8C5;
  border-top: 4px solid var(--hero-red);
}

.book-cover.cover-indigo {
  background-color: var(--indigo);
  color: var(--paper);
  border-color: #5463AD;
  border-top: 4px solid var(--hero-red);
}

.book-cover .cover-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
  margin-bottom: 6px;
}

.book-cover .cover-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hero-red);
  margin-bottom: 18px;
}

.book-cover.cover-indigo .cover-cat,
.book-cover.cover-green .cover-cat {
  color: var(--silver-light);
}

.book-cover .cover-title {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: auto;
}

.book-cover .cover-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 32px;
  font-size: 11px;
  opacity: 0.75;
}

.book-cover .cover-triangle {
  color: var(--hero-red);
  font-size: 22px;
  line-height: 1;
}

/* ==========================================================================
   FILTER BAR & TABS (Data Hub & Library)
   ========================================================================== */
.filter-bar {
  background-color: var(--silver-light);
  border-top: 1px solid var(--silver);
  border-bottom: 1px solid var(--silver);
  padding: 20px 0;
}

.filter-controls-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 16px;
  align-items: end;
}

.filter-field label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 6px;
}

.filter-select,
.form-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background-color: var(--paper);
  border: 1px solid var(--silver);
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
  transition: border-color 0.18s ease;
}

.filter-select:focus,
.form-input:focus {
  border-color: var(--charcoal);
}

.tabs-row {
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--silver);
  margin-bottom: 32px;
}

.tab-btn {
  padding: 12px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--grey);
  position: relative;
  cursor: pointer;
}

.tab-btn.active,
.tab-btn:hover {
  color: var(--charcoal);
  font-weight: 700;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background-color: var(--hero-red);
}

/* ==========================================================================
   DATA TABLES
   ========================================================================== */
.data-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--silver);
  background-color: var(--paper);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.data-table th {
  background-color: var(--silver-light);
  padding: 14px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey);
  border-bottom: 1px solid var(--silver);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.data-table th:hover {
  color: var(--charcoal);
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--silver);
  color: var(--charcoal);
}

.data-table tr:hover td {
  background-color: var(--silver-light);
}

.data-table tr.row-national td {
  background-color: rgba(226, 35, 42, 0.06);
  font-weight: 700;
}

.status-pill {
  display: inline-block;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
}

.status-above {
  background-color: rgba(15, 59, 51, 0.12);
  color: var(--deep-green);
}

.status-below {
  background-color: rgba(90, 95, 99, 0.12);
  color: var(--grey);
}

.status-benchmark {
  background-color: rgba(226, 35, 42, 0.12);
  color: var(--hero-red);
}

/* ==========================================================================
   SUBSCRIBE RED BAND & FOOTER (Figma Section 10 & Footer)
   ========================================================================== */
.subscribe-band {
  background-color: var(--hero-red);
  color: var(--paper);
  padding: 64px 0;
}

/* Label row on top, then 610px heading column + form column (80px gap). */
.subscribe-grid {
  display: grid;
  grid-template-columns: 610px minmax(0, 1fr);
  column-gap: 80px;
  row-gap: 24px;
  align-items: center;
}

.subscribe-grid > div:first-child {
  display: contents;
}

.subscribe-grid > div:first-child > :first-child {
  grid-column: 1 / -1;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 18px;
  letter-spacing: 0.88px !important;
  color: var(--silver);
  margin: 0 !important;
}

.subscribe-grid > div:first-child > :not(:first-child) {
  grid-column: 1;
}

.subscribe-grid h2 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.26px;
  color: var(--paper) !important;
  margin: 0 !important;
}

.subscribe-grid > div:last-child {
  grid-column: 2;
  grid-row: 2;
}

.subscribe-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: normal;
  color: var(--paper);
  margin-bottom: 12px;
}

.subscribe-form-row {
  display: flex;
  height: 56px;
}

.subscribe-form-row input {
  flex: 1;
  min-width: 0;
  height: 56px;
  padding: 0 16px;
  background-color: #C71B21;
  color: var(--paper);
  font-size: 12px;
}

.subscribe-form-row input::placeholder {
  color: var(--paper);
  opacity: 1;
}

.subscribe-form-row input:focus {
  box-shadow: inset 0 0 0 2px var(--paper);
}

.subscribe-form-row button {
  height: 56px;
  padding: 0 22px;
  background-color: var(--paper);
  color: var(--charcoal-deep);
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.subscribe-form-row button .ptr {
  color: inherit !important;
}

.subscribe-form-row button:hover {
  background-color: var(--charcoal-deep);
  color: var(--paper);
}

.subscribe-band form > :last-child:not(.subscribe-form-row) {
  margin-top: 12px !important;
  font-size: 11px !important;
  line-height: 18px;
  color: var(--paper) !important;
}

.subscribe-band form > :last-child:not(.subscribe-form-row) a {
  text-decoration: underline;
}

/* ==========================================================================
   FOOTER (Figma 12:6689 desktop · 22:34100 mobile) — global on every page.
   Works with the homepage markup (brand + 3 columns + bottom) and older copies.
   ========================================================================== */
.site-footer {
  background-color: var(--charcoal-deep);
  color: var(--paper);
  padding: 64px 0 32px;
  border-top: 1px solid var(--rule-dark);
  position: relative;
  overflow: hidden;
}

.site-footer .container {
  position: relative;
}

.footer-watermark {
  position: absolute;
  top: -45px;
  right: 40px;
  width: 200px;
  height: 150px;
  object-fit: contain;
  opacity: 0.04;
  pointer-events: none;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--rule-dark);
}

.footer-top > :first-child {
  width: 320px;
  flex-shrink: 0;
  margin-right: 116px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.footer-top > :not(:first-child) {
  width: 190px;
}

.footer-tagline {
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 32px;
  color: var(--paper);
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 16px;
  font-size: 13px;
  font-weight: 600;
  line-height: normal;
  color: var(--grey);
}

.footer-social a:hover {
  color: var(--paper);
}

.footer-col-title {
  font-size: 10px;
  font-weight: 800;
  line-height: normal;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--meta);
  margin-bottom: 14px;
  white-space: nowrap;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.footer-links a {
  font-size: 12px;
  line-height: normal;
  color: var(--silver);
  white-space: nowrap;
}

.footer-links a:hover {
  color: var(--hero-red);
}

.footer-bottom {
  padding-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 12px;
  line-height: 20px;
  color: var(--silver);
}

.footer-bottom > :last-child a {
  color: var(--hero-red) !important;
  font-weight: 400 !important;
}

.footer-legal-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 11px;
  line-height: normal;
}

.footer-legal-links a:hover {
  color: var(--paper);
}

/* Homepage variant (Figma 12:6689): 280px brand with tagline + social,
   RESEARCH / PLATFORM / ORGANISATION, no legal row. */
.site-footer--home {
  padding: 64px 0 40px;
}

.site-footer--home .footer-top {
  gap: 80px;
}

.site-footer--home .footer-top > :first-child {
  width: 280px;
  margin-right: auto;
  gap: 16px;
}

.site-footer--home .footer-top > :not(:first-child) {
  width: auto;
}

.site-footer--home .footer-tagline {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 22px;
  color: var(--meta);
  max-width: 240px;
}

.site-footer--home .footer-col-title {
  font-size: 11px;
  letter-spacing: 0.88px;
  color: var(--grey);
  margin-bottom: 12px;
}

.site-footer--home .footer-links {
  gap: 12px;
}

.site-footer--home .footer-links a {
  font-size: 13px;
  color: var(--meta);
}

.site-footer--home .footer-links a:hover {
  color: var(--paper);
}

.site-footer--home .footer-bottom {
  gap: 12px;
  font-size: 13px;
  color: var(--grey);
}

.site-footer--home .footer-owner {
  font-size: 12px;
  line-height: 18px;
  color: var(--rule-dark);
}

/* ==========================================================================
   SHARED SECTION EYEBROW (Figma "Eyebrow": 01 ▶ + LABEL)
   ========================================================================== */
.sec-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 800;
  line-height: normal;
  letter-spacing: 1.1px;
  white-space: nowrap;
  text-transform: uppercase;
  margin: 0;
}

.sec-eyebrow .num { color: var(--hero-red); }
.sec-eyebrow .lbl { color: var(--meta); }

/* Breakpoint-specific content (Figma desktop 1440 vs mobile 390 frames) */
@media (min-width: 769px) {
  .m-only { display: none !important; }
}

/* ==========================================================================
   MODALS, ACCORDIONS, TOASTS & INTERACTIVE WIDGETS
   ========================================================================== */
.search-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(17, 17, 17, 0.88);
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 96px;
}

.search-modal-backdrop.open {
  display: flex;
}

.search-modal-card {
  width: 100%;
  max-width: 760px;
  background-color: var(--charcoal-deep);
  border: 1px solid var(--graphite);
  border-top: 3px solid var(--hero-red);
  padding: 32px;
  color: var(--paper);
}

.accordion-item {
  border-bottom: 1px solid var(--silver);
}

.accordion-trigger {
  width: 100%;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  color: var(--charcoal);
}

.accordion-trigger .acc-icon {
  color: var(--hero-red);
  font-size: 18px;
  font-weight: 700;
}

.accordion-body {
  display: none;
  padding-bottom: 24px;
  font-size: 14px;
  color: var(--grey);
  line-height: 1.65;
}

.accordion-item.open .accordion-body {
  display: block;
}

.toast-notification {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background-color: var(--charcoal-deep);
  color: var(--paper);
  border: 1px solid var(--graphite);
  border-left: 4px solid var(--hero-red);
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 600;
  z-index: 3000;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* Sticky Left Rail Layout for Reports, Data Stories, Editorials */
.editorial-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: start;
}

.sticky-rail {
  position: sticky;
  top: 108px;
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 1px solid var(--silver);
  padding-left: 16px;
}

.toc-list a {
  font-size: 12px;
  font-weight: 600;
  color: var(--grey);
  line-height: 1.4;
}

.toc-list a.active,
.toc-list a:hover {
  color: var(--hero-red);
  font-weight: 700;
}

/* Drop Cap for Editorial */
.dropcap-para::first-letter {
  float: left;
  font-family: var(--font-serif);
  font-size: 68px;
  line-height: 0.82;
  padding-top: 6px;
  padding-right: 12px;
  padding-bottom: 4px;
  color: var(--hero-red);
  font-weight: 400;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Mobile 390px Frame Support)
   ========================================================================== */
@media (max-width: 1100px) {
  :root {
    --pad-x: 40px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .filter-controls-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .editorial-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .sticky-rail {
    position: static;
  }
}

@media (max-width: 768px) {
  :root {
    --pad-x: 24px;
  }
  .section-pad {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .d-only {
    display: none !important;
  }
  /* Header: brand row (88) + nav row (44) — Figma 22:33695 / 22:28505 */
  .site-header {
    height: auto;
    display: block;
  }
  .header-inner {
    padding: 0;
    flex-wrap: wrap;
  }
  .site-header .brand-logo {
    height: 86px;
    padding-left: 24px;
  }
  .site-header .brand-logo img {
    width: 142px;
    height: 46px;
  }
  .nav-right {
    display: contents;
  }
  .nav-actions {
    gap: 14px;
    padding-right: 24px;
  }
  .nav-actions .btn-nav-subscribe {
    order: -1;
    min-height: 0;
    padding: 0;
    border: 0;
    background: none;
    gap: 4px;
    font-size: 10px;
    font-weight: 800;
  }
  .nav-actions .btn-nav-subscribe .ptr {
    font-size: 10px;
  }
  .search-trigger,
  .search-trigger svg {
    width: 18px;
    height: 18px;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 0;
    padding: 0 24px;
    border-top: 1px solid var(--rule-dark);
  }
  .nav-links a {
    font-size: 11px;
    line-height: 14px;
    padding: 15px 0;
    border-bottom: 0;
  }
  /* Subscribe band — Figma 22:28751 (408) */
  .subscribe-band {
    padding: 48px 0;
  }
  .subscribe-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .subscribe-grid > div:last-child {
    grid-column: 1;
    grid-row: auto;
    margin-top: 4px;
  }
  .subscribe-grid h2 {
    font-size: 34px;
    letter-spacing: -1.02px;
  }
  .subscribe-form-row button {
    padding: 0 14px;
  }
  /* Footer — inner-page variant, Figma 22:28764 (749) */
  .site-footer {
    padding: 48px 0 32px;
  }
  .footer-watermark {
    display: none;
  }
  .footer-top {
    flex-wrap: wrap;
    gap: 32px 24px;
    padding-bottom: 32px;
  }
  .footer-top > :first-child {
    width: 100%;
    margin: 0 0 8px;
  }
  .footer-top > :not(:first-child) {
    width: 159px;
  }
  .footer-bottom {
    padding-top: 32px;
  }
  /* Footer — homepage variant, Figma 22:34100 */
  .site-footer--home .footer-top {
    gap: 32px 24px;
  }
  .site-footer--home .footer-top > :first-child {
    width: 100%;
    margin: 0;
    gap: 32px;
  }
  .site-footer--home .footer-top > :not(:first-child) {
    width: 159px;
  }
  .site-footer--home .footer-tagline {
    font-family: var(--font-serif);
    font-size: 26px;
    line-height: 1.25;
    color: var(--paper);
    max-width: none;
  }
  .site-footer--home .footer-social {
    gap: 20px;
    font-weight: 400;
    color: var(--stone);
  }
  .site-footer--home .footer-col-title {
    font-size: 10px;
    letter-spacing: 0.8px;
    color: var(--meta);
    margin-bottom: 16px;
  }
  .site-footer--home .footer-links {
    gap: 16px;
  }
  .site-footer--home .footer-links a {
    line-height: 1.5;
    color: var(--silver);
  }
  .site-footer--home .footer-bottom {
    gap: 32px;
    font-size: 12px;
    line-height: 1.65;
    color: var(--silver);
  }
  .site-footer--home .footer-owner {
    line-height: 1.65;
    color: var(--silver);
  }
  .sec-eyebrow {
    gap: 6px;
    letter-spacing: 0.88px;
    line-height: 1.6;
  }
  .grid-3,
  .grid-2,
  .grid-4,
  .subscribe-grid,
  .filter-controls-grid {
    grid-template-columns: 1fr;
  }
  .map-canvas-wrap {
    grid-template-columns: 1fr;
  }
  .map-callouts-col {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .state-callout-card {
    flex: 1 1 calc(50% - 8px);
  }
  .state-bar-row {
    grid-template-columns: 120px 1fr 52px;
  }
}

/* ---- Touch targets (mobile): invisible hit areas, layout and look unchanged ---- */
@media (max-width: 768px) {
  .search-trigger, .nav-actions .btn-nav-subscribe, .mobile-menu-btn, .nav-links a { position: relative; }
  .search-trigger::after { content: ""; position: absolute; inset: -13px; }
  .nav-actions .btn-nav-subscribe::after { content: ""; position: absolute; inset: -16px -6px; }
  .mobile-menu-btn::after { content: ""; position: absolute; inset: -10px; }
  .nav-links a::after { content: ""; position: absolute; inset: -12px -6px; }
}

/* ==========================================================================
   MEDIA COVERAGE CARD (3 Dec 2026): used on media.html and the homepage
   "In the news" strip. One link per card, nofollow, opens the publisher.
   ========================================================================== */
.md-card { display: flex; flex-direction: column; height: 100%; background: var(--white); border: 1px solid var(--silver); color: var(--charcoal-deep); transition: border-color .2s ease; }
.md-card:hover, .md-card:focus-visible { border-color: var(--charcoal-deep); }
.md-card:focus-visible { outline: 2px solid var(--hero-red); outline-offset: 2px; }
.md-shot { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--silver-light); border-bottom: 1px solid var(--silver); }
.md-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s ease; }
.md-card:hover .md-shot img { transform: scale(1.025); }
.md-body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 24px; }
.md-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 11px; font-weight: 800; line-height: 18px; letter-spacing: .88px; text-transform: uppercase; color: var(--grey); }
.md-outlet { color: var(--charcoal-deep); }
.md-date::before { content: "·"; margin-right: 10px; color: var(--meta); }
.md-kind { margin-left: auto; padding: 0 8px; border: 1px solid var(--hero-red); color: var(--hero-red); letter-spacing: .66px; }
.md-title { font-size: 22px; font-weight: 800; line-height: 1.22; letter-spacing: -.44px; color: var(--charcoal-deep); transition: color .2s ease; }
.md-card:hover .md-title { color: var(--hero-red); }
.md-by { font-size: 13px; line-height: 1.5; color: var(--grey); }
.md-quote { padding-left: 14px; border-left: 2px solid var(--hero-red); font-family: var(--font-serif); font-size: 17px; line-height: 1.5; color: var(--graphite); }
.md-quote::before { content: "“"; } .md-quote::after { content: "”"; }
.md-cta { margin-top: auto; padding-top: 8px; font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--hero-red); }
.md-card:hover .md-cta { color: var(--charcoal-deep); }
@media (prefers-reduced-motion: reduce) { .md-shot img { transition: none; } .md-card:hover .md-shot img { transform: none; } }
