/* ═══════════════════════════════════════════════════════════════
   Education Scorecard — Main Stylesheet
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset & Custom Properties ────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #0D2B4E;
  --crimson: #C41E3A;
  --gold: #FFD23F;
  --cream: #F0F6FF;
  --mid: #102f58;
  --dark: #091e36;
  --rule: rgba(10, 34, 64, 0.1);

  --font-primary: 'brandon-grotesque', 'Trebuchet MS', Arial, sans-serif;

  --max-w: 1200px;
  --gutter: 2.5rem;

  --shadow-sm: 0 2px 12px rgba(10, 34, 64, 0.06);
  --shadow-md: 0 4px 20px rgba(13, 43, 78, 0.10);
  --shadow-lg: 0 16px 48px rgba(13, 43, 78, 0.16);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background: #fff;
  color: var(--navy);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--ers-banner-h, 0px);
}

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

a {
  color: var(--crimson);
  transition: opacity var(--transition);
}

a:hover {
  opacity: 0.8;
  text-decoration: none;
}

h2, h3, h4, h5, h6 {
  margin-top: 1rem;
  margin-bottom: 0;
}

hr,
.wp-block-separator {
  border: none;
  position: relative;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--rule) 20%, var(--rule) 80%, transparent);
  margin: 2.5rem 0;
}

hr::after,
.wp-block-separator::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 3px;
  background: var(--crimson);
  border-radius: 2px;
}

/* ── Utilities ────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crimson);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.75rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--crimson);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-primary);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2rem;
  line-height: 1.2;
}

.btn-primary {
  display: inline-block;
  background: var(--crimson);
  color: #fff;
  padding: 12px 28px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 2px solid var(--crimson);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all var(--transition);
  cursor: pointer;
  font-family: var(--font-primary);
}

.btn-primary:hover {
  background: #831626;
  border-color: #831626;
  opacity: 1;
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--navy);
  padding: 10px 24px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid rgba(13, 43, 78, 0.4);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all var(--transition);
  cursor: pointer;
  font-family: var(--font-primary);
}

.btn-outline:hover {
  border-color: var(--navy);
  opacity: 1;
}

.btn-outline--white {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline--white:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.view-all {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--crimson);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: opacity var(--transition);
}

.view-all:hover {
  opacity: 0.7;
}

/* ── Dot pattern background ───────────────────────────────────── */
.dot-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(10, 34, 64, 0.045) 1px, transparent 1px);
  background-size: 26px 26px;
}

.dot-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url('../images/hero-bg-aerial.jpg');
  background-size: cover;
  background-position: center 40%;
  opacity: 0.06;
}

/* ── EMBARGO BANNER ───────────────────────────────────────────── */
.ers-embargo-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--crimson, #A51C30);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem var(--gutter);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

/* ── NAV ──────────────────────────────────────────────────────── */
.site-nav {
  background: #fff;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 0 var(--gutter);
  box-shadow: 0 2px 0 #e8f0fb, 0 4px 24px rgba(13, 43, 78, 0.08);
  position: sticky;
  top: var(--ers-banner-h, 0px);
  z-index: 100;
}

.nav-brand {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  padding: 1rem 0;
}

.nav-brand-logo {
  display: flex;
  align-items: center;
  padding-right: 1.25rem;
}

.nav-brand-logo img {
  height: 60px;
  width: auto;
}

.nav-divider {
  width: 1px;
  background: var(--rule);
  flex-shrink: 0;
}

.nav-project {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding-left: 1.25rem;
}

.nav-project-label {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(10, 34, 64, 0.35);
}

.nav-project-logos {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-project-logos img {
  height: 13px;
  width: auto;
  opacity: 0.65;
}

/* Primary Menu */
.primary-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
}

.primary-menu li {
  position: relative;
}

.primary-menu li a {
  color: rgba(10, 34, 64, 0.55);
  font-size: 14px;
  text-decoration: none;
  padding: 8px 12px;
  display: block;
  transition: color var(--transition);
}

.primary-menu li a:hover,
.primary-menu li.current-menu-item>a,
.primary-menu li.current-menu-ancestor>a {
  color: var(--navy);
  opacity: 1;
}

/* Dropdown */
.primary-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 200px;
  box-shadow: var(--shadow-md);
  border-top: 3px solid var(--crimson);
  list-style: none;
  padding: 0.5rem 0;
  z-index: 200;
}

.primary-menu li:hover>.sub-menu {
  display: block;
}

.primary-menu .sub-menu li a {
  padding: 8px 18px;
  font-size: 13px;
  white-space: nowrap;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--navy);
  align-items: center;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* ── HERO ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 520px;
  background-image: url('../images/hero-bg-aerial.jpg');
  background-size: cover;
  background-position: center 40%;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(13, 43, 78, 0.78) 0%, rgba(13, 43, 78, 0.58) 45%, rgba(13, 43, 78, 0.25) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 4rem var(--gutter);
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: center;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(165, 28, 48, 0.2);
  border: 1px solid rgba(165, 28, 48, 0.5);
  color: #ffccd5;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  margin-bottom: 1.5rem;
  width: fit-content;
}

.hero-dot {
  width: 5px;
  height: 5px;
  background: var(--crimson);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-primary);
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.1;
  color: #fff;
  font-weight: 900;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.hero-title .acc {
  color: var(--gold);
  font-style: italic;
}

.hero-desc {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2rem;
  max-width: 440px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-btns a,
.hero-btns button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
}

.hero-history-wrap {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.hero-history-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 400;
}

.hero-about-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.hero-about-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  opacity: 1;
}

.hero-about-btn svg {
  opacity: 0.7;
}

/* Hero right-column image */
.hero-right-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-right-image a {
  display: block;
}

.hero-right-image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

/* Hero stats */
.hero-stats {
  display: flex;
  flex-direction: column;
}

.hero-stat {
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-stat:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-stat-num {
  font-family: var(--font-primary);
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero-stat-label {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 3px;
  font-weight: 300;
}

/* Hero logo block */
.hero-logos-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-logos-label {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 800;
  text-align: center;
}

.hero-logos-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-logo-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  min-height: 76px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.hero-logo-card img {
  width: 100%;
  height: auto;
  max-height: 44px;
  object-fit: contain;
  object-position: left center;
}

/* ── FINDINGS ─────────────────────────────────────────────────── */
.findings {
  background: var(--cream);
  padding: 4.5rem var(--gutter);
  position: relative;
  overflow: hidden;
}

.findings-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin-inline: auto;
}

.findings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.finding-card {
  background: #fff;
  padding: 2rem 1.75rem;
  border-top: 5px solid var(--crimson);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.finding-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.finding-num {
  font-family: var(--font-primary);
  font-size: 44px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.finding-num.red {
  color: var(--crimson);
}

.finding-label {
  font-size: 13.5px;
  color: rgba(10, 34, 64, 0.7);
  line-height: 1.6;
}

.finding-label strong {
  color: var(--navy);
  font-weight: 700;
}

.findings-bars {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.absentee-bar {
  background: #fff;
  padding: 1.25rem 2rem;
  border-left: 5px solid var(--crimson);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.absentee-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.absentee-text {
  font-size: 16px;
  color: var(--navy);
  line-height: 1.5;
}

.absentee-text strong {
  font-weight: 700;
  color: var(--crimson);
}

/* ── MAP SECTION ──────────────────────────────────────────────── */
.map-section {
  background: #fff;
  padding: 4.5rem var(--gutter);
  border-top: 1px solid var(--rule);
}

.map-section-inner {
  max-width: var(--max-w);
  margin-inline: auto;
}

.map-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.map-tabs {
  display: flex;
  gap: 6px;
  background: #eef3fb;
  padding: 5px;
  border-radius: var(--radius-md);
}

.map-tab {
  background: transparent;
  border: none;
  padding: 9px 20px;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  color: rgba(10, 34, 64, 0.45);
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  border-radius: 7px;
}

.map-tab:hover {
  color: var(--navy);
}

.map-tab.on {
  color: var(--navy);
  background: #fff;
  box-shadow: 0 2px 8px rgba(13, 43, 78, 0.1);
}

.map-frame {
  width: 100%;
  height: 680px;
  overflow: hidden;
  border: 1px solid #dde8f5;
  border-radius: 0 0 12px 12px;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

.map-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.map-credit {
  margin-top: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(10, 34, 64, 0.45);
}

.map-credit img {
  height: 14px;
  width: auto;
  opacity: 0.55;
}

.map-credit a {
  color: var(--crimson);
  text-decoration: none;
}

/* ── CASE STUDIES ─────────────────────────────────────────────── */
.cases {
  background: #fff;
  padding: 4.5rem var(--gutter);
  position: relative;
}

/* Year tabs — reuse map-tabs styling, scoped to cases */
.cases-year-tabs {
  display: flex;
  gap: 6px;
  background: #eef3fb;
  padding: 5px;
  border-radius: 10px;
  margin-bottom: 2rem;
  width: fit-content;
}

.cases-year-tabs--standalone {
  margin-bottom: 1.25rem;
}

/* Hidden year group (native HTML hidden attr used by JS) */
.cases-year-group[hidden] { display: none; }

/* Grid-only mode — no section wrapper, used on the all case studies page */
.cases-grid--standalone {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2rem var(--gutter);
  max-width: var(--max-w);
  margin-inline: auto;
}

.cases-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin-inline: auto;
}

.cases-hdr {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.cases-hdr .section-title {
  margin-bottom: 0;
}

.view-all {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--crimson);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: opacity var(--transition);
  white-space: nowrap;
}

.view-all:hover {
  opacity: 0.7;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.case-card {
  background: #fff;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.case-photo {
  height: 280px;
  position: relative;
  overflow: hidden;
  background: var(--navy);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.case-photo {
  display: block;
  text-decoration: none;
}

.case-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: var(--navy);
}

.case-photo-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 34, 64, 0.88) 0%, rgba(10, 34, 64, 0.1) 50%, transparent 100%);
}

.case-photo-info {
  position: absolute;
  bottom: 1rem;
  left: 1.1rem;
  right: 1.1rem;
  z-index: 2;
}

.case-photo-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.case-photo-loc {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 3px;
}

.case-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.case-year {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 3;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--crimson);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  line-height: 1.4;
}

.case-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--crimson);
  color: #fff;
  padding: 9px 20px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.case-cta:hover {
  background: #831626;
}

.case-cta-arrow {
  font-size: 13px;
}

/* ── VIDEOS SECTION ───────────────────────────────────────────── */
.videos-section {
  background: var(--dark);
  padding: 4.5rem var(--gutter);
  position: relative;
  overflow: hidden;
}

.videos-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-bg-aerial.jpg');
  background-size: cover;
  background-position: center 40%;
  opacity: 0.08;
  pointer-events: none;
}

.videos-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin-inline: auto;
}

.videos-section .section-label {
  color: rgba(255, 219, 63, 0.7);
}

.videos-section .section-label::before {
  background: rgba(255, 219, 63, 0.7);
}

.videos-section .section-title {
  color: #fff;
}

.videos-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.videos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
.videos-grid--cols-2 { grid-template-columns: 1fr 1fr; }
.videos-grid--cols-3 { grid-template-columns: 1fr 1fr 1fr; }

.video-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.video-thumb {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
  cursor: pointer;
}

.video-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.video-card:hover .video-thumb img {
  transform: scale(1.03);
}

.video-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 50%);
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  z-index: 2;
  transition: transform var(--transition);
}

.video-card:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
}

.video-duration {
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.65);
  padding: 2px 7px;
  border-radius: 4px;
  z-index: 2;
}

.video-body {
  padding: 1.5rem;
}

.video-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--crimson);
  background: rgba(196, 30, 58, 0.15);
  border: 1px solid rgba(196, 30, 58, 0.3);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.video-title {
  font-family: var(--font-primary);
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.video-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  font-weight: 300;
}

/* ── SINGLE VIDEO PAGE ───────────────────────────────────────── */
.page-hero--cream .case-study-back {
  color: rgba(10, 34, 64, 0.45);
}
.page-hero--cream .case-study-back:hover {
  color: var(--navy);
}

.single-video-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem var(--gutter) 5rem;
}

.single-video-embed {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
}

.single-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.single-video-embed--short {
  padding-top: 0;
  height: 600px;
  max-width: 338px;
  margin: 0 auto;
}

.single-video-desc {
  margin-top: 2rem;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(10, 34, 64, 0.7);
}

.single-video-content {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

/* ── VIDEO MODAL ──────────────────────────────────────────────── */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.video-modal.open {
  display: flex;
}

.video-modal-inner {
  position: relative;
  width: 90%;
  max-width: 900px;
}

.video-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--transition);
  line-height: 1;
}

.video-modal-close:hover {
  opacity: 1;
}

.video-modal-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-modal-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-md);
}

.video-modal-inner--short {
  max-width: 380px;
}

.video-modal-embed--short {
  padding-bottom: 177.78%;
}

/* ── FOOTER ───────────────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  border-top: 4px solid var(--crimson);
}

.footer-main {
  padding: 3.5rem var(--gutter) 2.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  max-width: var(--max-w);
  margin-inline: auto;
}

.footer-brand>img {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  margin-bottom: 1.25rem;
}

.footer-tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.footer-project-label {
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  margin-bottom: 8px;
}

.footer-partner-logos {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-partner-logos img {
  height: auto;
  width: 100%;
  max-width: 300px;
  object-fit: contain;
  object-position: left;
  filter: brightness(0) invert(1);
  opacity: 0.55;
}

.footer-col-head {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--crimson);
  opacity: 0.85;
  margin-bottom: 1rem;
}

.footer-link {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  padding: 4px 0;
  transition: color var(--transition);
  font-weight: 300;
}

.footer-link:hover {
  color: #fff;
  opacity: 1;
}

/* Footer subscribe form overrides */
.footer-subscribe {
  margin-top: 1.5rem;
}

/* Reset GF wrapper chrome */
.footer-subscribe .gform_wrapper,
.footer-subscribe .gform_wrapper > div {
  margin: 0;
  padding: 0;
}

/* Inline layout: make the form itself a flex row */
.footer-subscribe form {
  display: flex;
  align-items: stretch;
}

/* Body (fields area) grows to fill available width */
.footer-subscribe .gform_body,
.footer-subscribe .gform-body {
  flex: 1;
  min-width: 0;
}

/* Fields list — reset list styles */
.footer-subscribe .gform_fields,
.footer-subscribe ul.gform_fields {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-subscribe .gfield,
.footer-subscribe .gfield--type-email {
  margin: 0;
  padding: 0;
}

/* Hide label, required star, description, and validation */
.footer-subscribe .gfield_label,
.footer-subscribe .gfield_required,
.footer-subscribe .gfield_description,
.footer-subscribe .gfield_validation_message,
.footer-subscribe .gform_validation_errors,
.footer-subscribe .gform_validation_container,
.footer-subscribe .gform_submission_error {
  display: none !important;
}

.footer-subscribe .ginput_container {
  margin: 0;
}

/* Email input */
.footer-subscribe input[type="email"] {
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-right: none;
  padding: 11px 14px;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 13px;
  outline: none;
  border-radius: 0;
  min-height: 44px;
}

.footer-subscribe input[type="email"]::placeholder {
  color: #a8bfd6;
}

.footer-subscribe input[type="email"]:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

/* Submit button area */
.footer-subscribe .gform_footer {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  text-align: left;
}

.footer-subscribe input[type="submit"],
.footer-subscribe button[type="submit"] {
  background: var(--crimson);
  color: #fff;
  border: none;
  padding: 11px 20px;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background var(--transition);
  border-radius: 0;
  white-space: nowrap;
  line-height: 1;
}

.footer-subscribe input[type="submit"]:hover,
.footer-subscribe button[type="submit"]:hover {
  background: #831626;
}

/* Hide GF ajax spinner */
.footer-subscribe .gform_ajax_spinner {
  display: none;
}

/* Confirmation message */
.footer-subscribe .gform_confirmation_wrapper {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  padding: 0.75rem 0;
}

.footer-bottom {
  border-top: 1px solid rgba(165, 28, 48, 0.2);
  padding: 1.25rem var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
}

.footer-copy {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.2);
  font-weight: 300;
}

.footer-partners-inline {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.2);
  font-weight: 300;
}

/* ── SINGLE CASE STUDY ────────────────────────────────────────── */
.case-study-hero {
  background: var(--navy);
  padding: 4rem var(--gutter);
  position: relative;
  overflow: hidden;
}

.case-study-hero-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.case-study-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0.15;
}

.case-study-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color var(--transition);
}

.case-study-back:hover {
  color: #fff;
  opacity: 1;
}

.case-study-district {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.5rem;
}

.case-study-name {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.case-study-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.case-study-meta-item {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.case-study-meta-item strong {
  color: #fff;
  font-weight: 700;
}

.case-study-stat-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.cs-stat {
  margin-bottom: 1.25rem;
}

.cs-stat:last-child {
  margin-bottom: 0;
}

.cs-stat-num {
  font-family: var(--font-primary);
  font-size: 48px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.02em;
}

.cs-stat-label {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 3px;
}

/* kept for state page sidebar (single-states.php) */
.case-study-content-wrap {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 3rem var(--gutter) 4rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

.cs-sidebar-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.cs-sidebar-card-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 1rem;
}

.cs-key-strategy {
  display: flex;
  gap: 10px;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.cs-strategy-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--crimson);
  background: rgba(196, 30, 58, 0.1);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.cs-strategy-text {
  font-size: 13.5px;
  color: var(--navy);
  line-height: 1.5;
  font-weight: 500;
}

.cs-district-rise {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(10, 34, 64, 0.5);
}

.cs-district-rise strong {
  color: var(--crimson);
  font-weight: 700;
}

/* ── SINGLE CASE STUDY ────────────────────────────────────────── */
.case-study-hero-inner--simple {
  grid-template-columns: 1fr;
}

.cs-single-wrap {
  max-width: 860px;
  margin-inline: auto;
  padding: 3rem var(--gutter) 5rem;
}

.cs-profile {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: start;
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 3rem;
}

.cs-profile-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-md);
  display: block;
}

.cs-profile-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

.cs-profile-name {
  font-family: var(--font-primary);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin: 0;
}

.cs-profile-district {
  font-size: 15px;
  font-weight: 600;
  color: rgba(10, 34, 64, 0.55);
}

.cs-profile-state {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.cs-profile-state a {
  color: var(--crimson);
  text-decoration: none;
  transition: opacity var(--transition);
}

.cs-profile-state a:hover {
  opacity: 0.75;
}

.cs-profile-actions {
  margin-top: 1rem;
}

.cs-single-content {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(10, 34, 64, 0.8);
}

/* ── ARCHIVE CASE STUDIES ─────────────────────────────────────── */
.archive-hero {
  background: var(--navy);
  padding: 3.5rem var(--gutter);
  position: relative;
  overflow: hidden;
}

.archive-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/hero-bg-aerial.jpg') center/cover;
  opacity: 0.12;
}

.archive-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin-inline: auto;
}

.archive-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.archive-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 300;
  max-width: 600px;
}

.archive-filters {
  background: #fff;
  border-bottom: 1px solid var(--rule);
  padding: 1rem var(--gutter);
  position: sticky;
  top: 76px;
  z-index: 50;
}

.archive-filters-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(10, 34, 64, 0.5);
}

.filter-select {
  background: #fff;
  border: 1px solid #dde8f5;
  padding: 7px 32px 7px 12px;
  font-family: var(--font-primary);
  font-size: 13px;
  color: var(--navy);
  border-radius: var(--radius-sm);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%230D2B4E' opacity='.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.archive-search-input {
  flex: 1;
  min-width: 200px;
  background: #fff;
  border: 1px solid #dde8f5;
  padding: 7px 14px;
  font-family: var(--font-primary);
  font-size: 13px;
  color: var(--navy);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition);
}

.archive-search-input:focus {
  border-color: var(--navy);
}

.archive-grid-wrap {
  padding: 3rem var(--gutter);
  max-width: var(--max-w);
  margin-inline: auto;
}

.archive-results-info {
  font-size: 13px;
  color: rgba(10, 34, 64, 0.5);
  margin-bottom: 1.5rem;
}

.archive-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* Pagination */
.ers-pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 2rem;
}

.ers-pagination a,
.ers-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #dde8f5;
  border-radius: var(--radius-sm);
  color: var(--navy);
  text-decoration: none;
  transition: all var(--transition);
}

.ers-pagination a:hover {
  border-color: var(--navy);
  opacity: 1;
}

.ers-pagination .current {
  background: var(--crimson);
  border-color: var(--crimson);
  color: #fff;
}

/* ── GENERIC PAGE ─────────────────────────────────────────────── */
.page-hero {
  background: var(--navy);
  padding: 3rem var(--gutter);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/hero-bg-aerial.jpg') center/cover;
  opacity: 0.08;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin-inline: auto;
}

.page-hero-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.5rem;
}

.page-hero-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
}

.page-content-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem var(--gutter) 5rem;
}

.entry-content {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(10, 34, 64, 0.8);
}

.entry-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin: 2.5rem 0 0.75rem;
}

.entry-content h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  margin: 2rem 0 0.5rem;
}

.entry-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin: 1.5rem 0 0.4rem;
}

.entry-content p {
  margin-bottom: 1.25rem;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.25rem 1.5rem;
}

.entry-content li {
  margin-bottom: 0.5rem;
}

.entry-content a {
  color: var(--crimson);
}

.entry-content blockquote {
  border-left: 4px solid var(--crimson);
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: var(--cream);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--mid);
}

.entry-content img {
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}

/* ── CONTACT PAGE ─────────────────────────────────────────────── */
.contact-layout {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 4rem var(--gutter) 5rem;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 4rem;
  align-items: start;
}

.contact-form-col {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  border-top: 3px solid var(--crimson);
  padding: 1.75rem;
}

.contact-info-card h3 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 0.6rem;
}

.contact-info-card p,
.contact-info-card div {
  font-size: 14px;
  color: rgba(10, 34, 64, 0.7);
  line-height: 1.65;
}

/* Gravity Forms general styling */
.ers-form-wrap .gform_wrapper {
  margin: 0;
}

.ers-form-wrap .gform_title {
  display: none;
}

.ers-form-wrap .gfield label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 5px;
  display: block;
}

.ers-form-wrap input[type="text"],
.ers-form-wrap input[type="email"],
.ers-form-wrap input[type="tel"],
.ers-form-wrap input[type="url"],
.ers-form-wrap textarea,
.ers-form-wrap select {
  width: 100%;
  border: 1px solid #dde8f5;
  padding: 10px 14px;
  font-family: var(--font-primary);
  font-size: 14px;
  color: var(--navy);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition);
  background: #fff;
}

.ers-form-wrap input:focus,
.ers-form-wrap textarea:focus,
.ers-form-wrap select:focus {
  border-color: var(--navy);
}

.ers-form-wrap textarea {
  min-height: 140px;
  resize: vertical;
}

.ers-form-wrap .gfield {
  margin-bottom: 1.25rem;
}

.ers-form-wrap .gform_footer {
  margin-top: 0.5rem;
}

.ers-form-wrap input[type="submit"] {
  background: var(--crimson);
  color: #fff;
  border: none;
  padding: 13px 32px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
}

.ers-form-wrap input[type="submit"]:hover {
  background: #831626;
}

.ers-form-placeholder {
  font-size: 14px;
  color: rgba(10, 34, 64, 0.45);
  font-style: italic;
  padding: 1rem;
  background: #f8f8f8;
  border-radius: var(--radius-sm);
}

/* ── STATES SECTION ───────────────────────────────────────────── */
.states-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 3rem var(--gutter) 5rem;
}

.state-card {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-decoration: none;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.state-card:hover {
  border-color: var(--crimson);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  opacity: 1;
}

.state-abbr {
  font-family: var(--font-primary);
  font-size: 32px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
}

.state-name {
  font-size: 12px;
  color: rgba(10, 34, 64, 0.6);
  margin-bottom: 0.75rem;
}

.state-districts {
  font-size: 11px;
  font-weight: 700;
  color: var(--crimson);
}

/* ── MEDIA RESOURCES ──────────────────────────────────────────── */
.media-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 3rem var(--gutter) 5rem;
  align-items: start;
}

.media-download-list {}

.media-download-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--crimson);
  border-radius: var(--radius-md);
  margin-bottom: 0.875rem;
  text-decoration: none;
  color: var(--navy);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.media-download-item:hover {
  border-color: rgba(196, 30, 58, 0.35);
  border-left-color: var(--crimson);
  box-shadow: var(--shadow-md);
  transform: translateX(3px);
  opacity: 1;
}

.media-download-icon {
  width: 42px;
  height: 42px;
  background: rgba(196, 30, 58, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.media-download-info {
  flex: 1;
  min-width: 0;
}

.media-download-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.media-download-meta {
  font-size: 12px;
  color: rgba(10, 34, 64, 0.5);
}

.media-download-type {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--crimson);
  background: rgba(196, 30, 58, 0.08);
  border: 1px solid rgba(196, 30, 58, 0.2);
  border-radius: 4px;
  padding: 3px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.media-download-arrow {
  color: rgba(10, 34, 64, 0.3);
  flex-shrink: 0;
  transition: color var(--transition), transform var(--transition);
}

.media-download-item:hover .media-download-arrow {
  color: var(--crimson);
  transform: translateY(2px);
}

.media-inquiry-form {
  background: var(--cream);
  border-radius: var(--radius-lg);
  border-top: 3px solid var(--crimson);
  padding: 2rem;
  position: sticky;
  top: 100px;
}

.media-inquiry-form h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

/* ── 404 PAGE ─────────────────────────────────────────────────── */
.not-found-wrap {
  max-width: 600px;
  margin: 0 auto;
  padding: 6rem var(--gutter);
  text-align: center;
}

.not-found-num {
  font-size: 120px;
  font-weight: 900;
  color: var(--crimson);
  line-height: 1;
  opacity: 0.15;
  margin-bottom: -20px;
}

.not-found-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}

.not-found-desc {
  font-size: 16px;
  color: rgba(10, 34, 64, 0.6);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ── SEARCH ───────────────────────────────────────────────────── */
.search-form-wrap {
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem var(--gutter) 2rem;
}

.search-results-wrap {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 0 var(--gutter) 5rem;
}

.search-result {
  border-bottom: 1px solid var(--rule);
  padding: 1.75rem 0;
}

.search-result-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.search-result-title a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--transition);
}

.search-result-title a:hover {
  color: var(--crimson);
  opacity: 1;
}

.search-result-excerpt {
  font-size: 14px;
  color: rgba(10, 34, 64, 0.65);
  line-height: 1.65;
}

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --gutter: 1.5rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-logos-block {
    display: none;
  }

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

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

  .ers-post-list--grid {
    grid-template-columns: 1fr 1fr;
  }

  .videos-grid--cols-3 {
    grid-template-columns: 1fr 1fr;
  }

  .case-study-content-wrap {
    grid-template-columns: 1fr;
  }

  .cs-profile {
    grid-template-columns: 180px 1fr;
    gap: 1.75rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .archive-cases-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .case-study-hero-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .videos-grid--cols-2,
  .videos-grid--cols-3 {
    grid-template-columns: 1fr;
  }

  .cs-profile {
    grid-template-columns: 1fr;
  }

  .cs-profile-photo img {
    aspect-ratio: 4 / 3;
    max-height: 280px;
  }

  .primary-menu {
    display: none;
  }

  .primary-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
  }

  .primary-menu.open li {
    border-bottom: 1px solid var(--rule);
  }

  .primary-menu.open li a {
    padding: 12px var(--gutter);
  }

  .nav-toggle {
    display: flex;
  }

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

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

  .ers-post-list--grid {
    grid-template-columns: 1fr;
  }

  .archive-cases-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .map-tabs {
    flex-direction: column;
  }

  .map-frame {
    height: 400px;
  }
}

@media (max-width: 480px) {
  .hero-btns {
    flex-direction: column;
  }

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


/* ── Post List Block (ers/post-list) ─────────────────────────── */
.ers-post-list-block {
  padding: 4.5rem 0;
  position: relative;
}

/* Background variants */
.ers-post-list-block--cream,
.ers-post-list-block:not([class*="--"]) {
  background: var(--cream);
}

.ers-post-list-block--white {
  background: #fff;
}

.ers-post-list-block--dark {
  background: var(--dark);
}

/* Dot pattern on cream only */
.ers-post-list-block--cream::before,
.ers-post-list-block:not([class*="--"])::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(10, 34, 64, 0.04) 1px, transparent 1px);
  background-size: 26px 26px;
}

/* Dark variant: invert text colours */
.ers-post-list-block--dark .section-label {
  color: rgba(255, 219, 63, 0.7);
}

.ers-post-list-block--dark .section-label::before {
  background: rgba(255, 219, 63, 0.7);
}

.ers-post-list-block--dark .section-title {
  color: #fff;
}

.ers-post-list-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.ers-post-list-hdr {
  margin-bottom: 2rem;
}

/* Grid layout */
.ers-post-list--grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

/* List layout */
.ers-post-list--list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ers-post-list--list .ers-post-card {
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid var(--rule);
}

.ers-post-list--list .ers-post-card:first-child {
  border-top: 1px solid var(--rule);
}

.ers-post-list--list .ers-post-card-body {
  padding: 1.25rem 1.5rem;
}

/* Card */
.ers-post-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--crimson);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-top-color var(--transition);
}

/* Stretch the title link to cover the entire card */
.ers-post-card-title a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.ers-post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--cream);
}

.ers-post-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ers-post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ers-post-card-source {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--crimson);
}

.ers-post-card-cat {
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(10, 34, 64, 0.45);
  letter-spacing: 0.04em;
}

.ers-post-card-cat::before {
  content: '·';
  margin-right: 0.5rem;
}

.ers-post-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.ers-post-card-title a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--transition);
}

.ers-post-card-title a:hover {
  color: var(--crimson);
}

.ers-post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.5rem;
}

.ers-post-card-year {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: var(--crimson);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 4px;
}

.ers-post-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--crimson);
  text-decoration: none;
  margin-top: auto;
  padding-top: 0.25rem;
  transition: opacity var(--transition);
}

.ers-post-card-cta:hover {
  opacity: 0.7;
}


/* ═══════════════════════════════════════════════════════════════
   Interactive States Map
   ═══════════════════════════════════════════════════════════════ */

/* ── States map section ───────────────────────────────────────── */
.ers-states-map-section {
  background: var(--cream);
  padding: 3rem var(--gutter) 2.5rem;
  position: relative;
}

.ers-states-map-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(10, 34, 64, 0.045) 1px, transparent 1px);
  background-size: 26px 26px;
}

.ers-states-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin-inline: auto;
}

/* ── States directory section ────────────────────────────────── */
.ers-states-directory {
  padding: 3rem var(--gutter) 5rem;
}

.ers-states-dir-hdr {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.ers-states-dir-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.ers-states-dir-count {
  font-size: 13px;
  color: rgba(10, 34, 64, 0.45);
  margin: 0;
}

/* ── State cards grid ────────────────────────────────────────── */
.ers-states-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.ers-state-card {
  display: block;
  text-decoration: none;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--rule);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.ers-state-card:hover,
.ers-state-card.ers-state-card--hover {
  border-color: var(--crimson);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.ers-state-card--muted {
  opacity: 0.25;
  pointer-events: none;
}

.ers-state-card-header {
  background: var(--navy);
  padding: 0.9rem 1rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.ers-state-card-abbr {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  font-family: var(--font-primary);
  line-height: 1;
}

.ers-state-card-rank {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--gold);
  background: rgba(255, 219, 63, 0.15);
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
}

.ers-state-card-body {
  padding: 0.7rem 1rem 0.9rem;
}

.ers-state-card-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.ers-state-card-years {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 6px;
}

.ers-state-card-year-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--crimson);
  background: rgba(196, 30, 58, 0.08);
  padding: 1px 6px;
  border-radius: 20px;
}

/* ── Controls bar ─────────────────────────────────────────────── */
.ers-map-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-bottom: 1.5rem;
}

.ers-map-filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ers-map-filter-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  opacity: 0.6;
  white-space: nowrap;
}

.ers-year-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ers-year-btn {
  background: transparent;
  border: 1.5px solid var(--rule);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-primary);
  color: var(--navy);
  cursor: pointer;
  transition: all var(--transition);
}

.ers-year-btn:hover {
  border-color: var(--crimson);
  color: var(--crimson);
}

.ers-year-btn.active {
  background: var(--crimson);
  border-color: var(--crimson);
  color: #fff;
}

/* ── Rank toggle ──────────────────────────────────────────────── */
.ers-rank-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.ers-rank-toggle-input {
  width: 16px;
  height: 16px;
  accent-color: var(--crimson);
  cursor: pointer;
}

.ers-rank-toggle-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

/* ── SVG map ──────────────────────────────────────────────────── */
.ers-map-wrap {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

#ers-states-map {
  width: 100%;
  height: auto;
  display: block;
}

/* All states */
#ers-states-map .ers-state {
  transition: fill 0.18s ease, fill-opacity 0.25s ease;
}

/* States with no entry */
#ers-states-map .ers-state--inactive {
  fill: var(--cream);
  stroke: rgba(10, 34, 64, 0.15);
}

/* States with an entry */
#ers-states-map .ers-state--active {
  fill: var(--crimson);
  stroke: #fff;
  cursor: pointer;
}

/* Active state hovered (or highlighted from list) */
#ers-states-map .ers-state--active:hover,
#ers-states-map .ers-state--active.ers-state--hover {
  fill: var(--navy);
  fill-opacity: 1 !important;
}

/* Active state not matching selected year */
#ers-states-map .ers-state--active.ers-state--muted {
  fill: var(--navy);
  fill-opacity: 0.15;
  cursor: pointer;
}

#ers-states-map .ers-state--active.ers-state--muted:hover {
  fill: var(--navy);
  fill-opacity: 0.35 !important;
}

/* ── Tooltip ──────────────────────────────────────────────────── */
.ers-map-tooltip {
  position: fixed;
  pointer-events: none;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 100;
  box-shadow: var(--shadow-md);
  top: 0;
  left: 0;
}

.ers-map-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.ers-map-tooltip strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}


@media (max-width: 600px) {
  .ers-map-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .ers-map-filter-group {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* ── Partner Logos Strip (ers-partners block) ──────────────────── */
.partner-logos-strip{background:#fff;padding:4.5rem 2.5rem;border-top:1px solid var(--rule);text-align:center}
.partner-logos-inner{max-width:1100px;margin:0 auto}
.partner-logos-title{font-family:'brandon-grotesque',sans-serif;font-size:24px;font-weight:700;color:var(--navy);margin-bottom:2.5rem}
.partner-logos-row{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:3.5rem}
.partner-logo-item img{height:50px;width:auto;object-fit:contain;display:block}
.partner-logo-item a{display:block;line-height:0;transition:opacity 0.2s}
.partner-logo-item a:hover{opacity:0.75}

/* Page Hero style variants (ers-page-hero block) */
.page-hero--cream{background:var(--cream)}
.page-hero--cream .page-hero-title,.page-hero--cream .page-hero-subtitle{color:var(--navy)}
.page-hero--white{background:#fff;border-bottom:1px solid var(--rule)}
.page-hero--white .page-hero-title,.page-hero--white .page-hero-subtitle{color:var(--navy)}
.page-hero--white .section-label{margin-bottom:0.5rem}

/* ERS State Map block wrapper */
.ers-state-map-block{padding:3rem 2.5rem}
.ers-state-map-header{margin-bottom:2rem}

/* ── Page block wrapper (page.php block-driven path) ──────────────
   All direct children of .page-block-wrap are constrained to 1200px.
   <section> elements (our custom ACF blocks) break out to full width.
   ─────────────────────────────────────────────────────────────────── */
.page-block-wrap > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  box-sizing: border-box;
}

/* Custom ACF blocks render <section> — let them be full width */
.page-block-wrap > section,
.page-block-wrap > .alignfull {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

/* Standard content vertical rhythm inside the wrapper */
.page-block-wrap > p,
.page-block-wrap > h1,
.page-block-wrap > ul,
.page-block-wrap > ol {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.page-block-wrap > h2,
.page-block-wrap > h3,
.page-block-wrap > h4,
.page-block-wrap > h5,
.page-block-wrap > h6 {
  margin-top: 1rem;
  margin-bottom: 0;
}

/* Lists: add indentation on top of the container's side padding */
.page-block-wrap > ul,
.page-block-wrap > ol {
  padding-left: calc(var(--gutter) + 1.5rem);
}

/* Nested lists keep their own indentation */
.page-block-wrap ul ul,
.page-block-wrap ul ol,
.page-block-wrap ol ul,
.page-block-wrap ol ol {
  padding-left: 1.5rem;
  margin-bottom: 0.25rem;
}

.page-block-wrap li {
  margin-bottom: 0.4rem;
  line-height: 1.65;
}

/* ── Long-form content page styles ────────────────────────────────
   Targets WP block output on pages using page.php (About, etc.)
   ─────────────────────────────────────────────────────────────── */

/* Constrain prose to a readable column width */
.page-block-wrap > .wp-block-paragraph {
  max-width: 760px;
  font-size: 15.5px;
  line-height: 1.85;
  color: rgba(10, 34, 64, 0.8);
}

/* Section h2 headings (centered, navy) — crimson underline accent */
.page-block-wrap .wp-block-heading.has-text-align-center {
  margin-top: 4rem;
  padding-bottom: 1rem;
}

.page-block-wrap .wp-block-heading.has-text-align-center::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--crimson);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

/* Team member name headings — rule above each entry */
.page-block-wrap h3.wp-block-heading.has-text-color:not(.has-text-align-center) {
  font-size: 19px;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

/* First team member name after its section heading — no rule */
.page-block-wrap .wp-block-heading.has-text-align-center + h3.wp-block-heading,
.page-block-wrap .wp-block-heading.has-text-align-center + * h3.wp-block-heading {
  border-top: none;
  padding-top: 0;
}

/* Team member title (h4) — small caps label */
.page-block-wrap h4.wp-block-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(10, 34, 64, 0.45);
  margin-top: 0.2rem;
}

/* Two-column Project Leaders layout — scoped to About page */
.page-id-29344 .page-block-wrap > .wp-block-columns {
  margin-top: 2rem;
  gap: 3rem;
}

.page-id-29344 .page-block-wrap .wp-block-column {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border-top: 3px solid var(--crimson);
}

.page-id-29344 .page-block-wrap .wp-block-column h3.wp-block-heading {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.page-id-29344 .page-block-wrap .wp-block-column h4.wp-block-heading {
  margin-bottom: 1rem;
}

/* ── Left-aligned h2 section headings (methodology, etc.) ─────── */
.page-block-wrap h2.wp-block-heading:not(.has-text-align-center) {
  font-size: 22px;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--crimson);
  line-height: 1.3;
}

/* Lists within content pages — more breathing room between items */
.page-block-wrap > .wp-block-list li {
  margin-bottom: 0.75rem;
  line-height: 1.75;
  font-size: 15.5px;
  color: rgba(10, 34, 64, 0.8);
}

/* Ordered lists — slightly heavier number */
.page-block-wrap > ol.wp-block-list {
  counter-reset: none;
}

.page-block-wrap > ol.wp-block-list li::marker {
  font-weight: 700;
  color: var(--crimson);
}

/* Unordered lists — crimson bullets */
.page-block-wrap > ul.wp-block-list li::marker {
  color: var(--crimson);
}

/* ── Contact page — single paragraph treatment ─────────────────── */
.page-id-4063 .page-block-wrap > .wp-block-paragraph {
  background: var(--cream);
  border-left: 3px solid var(--crimson);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.75rem 2rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
  font-size: 16px;
  line-height: 1.75;
  color: var(--navy);
}

.page-id-4063 .page-block-wrap > .wp-block-paragraph a {
  color: var(--crimson);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Expert Insights page — partner card rows ──────────────────── */

/* Cream page background so white cards pop */
.page-id-29349 .page-block-wrap {
  background: var(--cream);
  padding-bottom: 4rem;
}

/* Hide the HR separator — cards handle separation */
.page-id-29349 .page-block-wrap > .wp-block-separator {
  display: none;
}

/* Intro description paragraph */
.page-id-29349 .page-block-wrap > .wp-block-paragraph {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(10, 34, 64, 0.75);
  margin-bottom: 2.5rem;
}

/* Each row: white card, centered, narrower than page max */
.page-id-29349 .page-block-wrap > .wp-block-columns {
  max-width: 960px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex !important;
  align-items: stretch !important;
  gap: 0 !important;
  margin-bottom: 1.25rem;
  padding: 0 !important;
  transition: box-shadow var(--transition);
}

.page-id-29349 .page-block-wrap > .wp-block-columns:hover {
  box-shadow: var(--shadow-md);
}

/* Logo column — cream panel, fixed width, centered */
.page-id-29349 .page-block-wrap .wp-block-column:first-child {
  flex-basis: 200px !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  background: var(--cream);
  border-right: 1px solid var(--rule);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 2rem 1.5rem !important;
}

.page-id-29349 .page-block-wrap .wp-block-column:first-child figure {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-id-29349 .page-block-wrap .wp-block-column:first-child img {
  max-height: 72px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
  display: block;
}

/* Text column — white, crimson top border */
.page-id-29349 .page-block-wrap .wp-block-column:last-child {
  flex: 1 !important;
  padding: 2rem 2.5rem !important;
  border-top: 3px solid var(--crimson);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

/* Org name heading */
.page-id-29349 .page-block-wrap .wp-block-column:last-child h2.wp-block-heading {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 0.5rem;
  border-left: none;
  padding-left: 0;
  line-height: 1.3;
}

.page-id-29349 .page-block-wrap .wp-block-column:last-child h2.wp-block-heading a {
  color: var(--navy);
  text-decoration: none;
}

.page-id-29349 .page-block-wrap .wp-block-column:last-child h2.wp-block-heading a:hover {
  color: var(--crimson);
  opacity: 1;
}

/* Quote — italic, readable */
.page-id-29349 .page-block-wrap .wp-block-column:last-child .wp-block-paragraph {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(10, 34, 64, 0.7);
  font-style: italic;
  max-width: none;
  margin: 0;
}

/* Secondary paragraphs (contact, notes) */
.page-id-29349 .page-block-wrap .wp-block-column:last-child .wp-block-paragraph + .wp-block-paragraph,
.page-id-29349 .page-block-wrap .wp-block-column:last-child .wp-block-list {
  font-style: normal;
  font-size: 13px;
  color: rgba(10, 34, 64, 0.5);
  margin-top: 0.5rem;
  padding-left: 0;
}

.page-id-29349 .page-block-wrap .wp-block-column:last-child .wp-block-list li {
  font-size: 13px;
  margin-bottom: 0.25rem;
  list-style: disc;
}

/* ── Anchor Nav Block (ers/anchor-nav) ────────────────────────── */
.ers-anchor-nav {
  position: relative;
}

.ers-anchor-nav::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--rule) 20%, var(--rule) 80%, transparent);
}

.ers-anchor-nav::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 3px;
  background: var(--crimson);
  border-radius: 2px;
}

.ers-anchor-nav--sticky {
  position: sticky;
  top: calc(var(--ers-banner-h, 0px) + 94px);
  z-index: 90;
  background: #fff;
}

.ers-anchor-nav-inner {
  padding: 8px var(--gutter);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ers-anchor-nav-link {
  flex: 1;
  text-align: center;
  background: transparent;
  padding: 9px 16px;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  color: rgba(10, 34, 64, 0.5);
  text-decoration: none;
  letter-spacing: 0.02em;
  line-height: 1.3;
  border-radius: 999px;
  transition: all var(--transition);
  opacity: 1;
}

.ers-anchor-nav-link:hover {
  color: var(--navy);
  background: rgba(10, 34, 64, 0.05);
  opacity: 1;
}

.ers-anchor-nav-link.is-active {
  color: var(--navy);
  background: rgba(10, 34, 64, 0.07);
  opacity: 1;
}
