/* ==========================================================================
   IPAM — Foundations · shared stylesheet
   Tokens and components from Figma "Foundations (Final)" 1:57 and "Components (final)" 5:3.
   Page-specific styles live in assets/css/pages/<page>.css.
   ========================================================================== */

:root {
  /* Palette (Figma variables) */
  --navy-950: #12193a;
  --navy-900: #1b2450;
  --navy-800: #26306a;
  --green-600: #3e9b5c;
  --green-700: #2e7e47;
  --amber-500: #e0973c;
  --amber-600: #d49237;
  --sage-700: #5e8a68;
  --sage-500: #8fb996;
  --olive-700: #4f663e;
  --offwhite-50: #fdfdfb;

  /* Semantic */
  --color-brand-navy: var(--navy-900);
  --color-accent-cta: var(--green-600);
  --color-bg-canvas: var(--offwhite-50);
  --color-bg-surface: var(--offwhite-50);
  --color-bg-soft: #f1f8f2;
  --color-text-heading: var(--navy-900);
  --color-text-body: #4a5568;
  --color-text-muted: #4a5568;
  --color-text-inverse: var(--offwhite-50);
  --color-border: rgba(74, 85, 104, 0.22);
  --color-border-strong: rgba(74, 85, 104, 0.45);
  --color-border-default: #d8e3d9;
  --color-accent-warm: var(--amber-500);
  --color-brand-sage: var(--sage-700);

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;
  --spacing-4xl: 96px;
  /* Full-bleed layout: backgrounds span the viewport, content stays readable (max --content-w) */
  --content-w: 1440px;
  --section-x: max(clamp(20px, 6.6vw, 96px), calc((100vw - var(--content-w)) / 2));
  --section-x-tight: max(clamp(20px, 4.4vw, 64px), calc((100vw - var(--content-w)) / 2)); /* 64px bands (Figma) */
  --section-y: clamp(48px, 6.6vw, 96px);
  --band-y: clamp(40px, 4.4vw, 64px);

  /* Radius & shadow */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 16px;
  --radius-pill: 999px;
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-card-lg: 0 10px 28px rgba(0, 0, 0, 0.1);
  --shadow-card-sm: 0 6px 16px rgba(0, 0, 0, 0.06);
  --shadow-small: 0 2px 6px rgba(27, 36, 80, 0.08);
  --shadow-medium: 0 8px 20px -4px rgba(27, 36, 80, 0.12);

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --max-w: 1440px;
}
/* Mobile (Figma 84:33): one 24px gutter everywhere */
@media (max-width: 640px) { :root { --section-x: 24px; --section-x-tight: 24px; } }

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 26px;
  color: var(--color-text-body);
  background: var(--color-bg-canvas);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select { font: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
.display, .h1, .h2, .h3, .card-title, .stat-value, .h-hero {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 0, "WONK" 1;
  color: var(--color-text-heading);
  font-weight: 600;
}
.h-hero { font-size: clamp(36px, 3.9vw, 56px); line-height: 1.08; }
.h1 { font-size: clamp(32px, 3.1vw, 44px); line-height: 1.12; }
.h2 { font-size: 28px; line-height: 34px; }
.h3 { font-size: 20px; line-height: 28px; }
.card-title { font-size: 18px; line-height: 24px; }
.stat-value { font-size: 44px; line-height: 46px; font-weight: 700; color: var(--color-accent-cta); }

.label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.label--accent { color: var(--color-accent-cta); }
.label--sage { color: var(--sage-500); }
.label--inverse { color: var(--color-text-inverse); }

.lede { font-size: 17px; line-height: 26px; }
.small { font-size: 14px; line-height: 22px; }
.text-inverse { color: var(--color-text-inverse); }
.muted { opacity: 0.75; }

.link-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-weight: 500; font-size: 13px;
  line-height: 18px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--color-accent-cta);
}
.link-more:hover { color: var(--green-700); }
.link-more--navy { color: var(--navy-900); }
.link-more--inverse { color: var(--color-text-inverse); }

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.page { width: 100%; }
html, body { overflow-x: clip; }
.section { position: relative; overflow: hidden; padding: var(--section-y) var(--section-x); }
.section--band { padding: var(--band-y) var(--section-x); }
.section--soft { background: var(--color-bg-soft); }
.section--surface { background: var(--color-bg-surface); }
.section--white { background: #fff; }
.section--navy { background: var(--color-brand-navy); color: var(--color-text-inverse); }
.section--navy .h2, .section--navy .h1, .section--navy .h3, .section--navy .card-title { color: var(--color-text-inverse); }

.section-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 40px; }
.section-head--row {
  flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.section-head .lede { max-width: 760px; }
.section-head > div { display: flex; flex-direction: column; gap: 8px; }

.glow {
  position: absolute; width: 920px; height: 920px; pointer-events: none;
  background: radial-gradient(circle, rgba(94, 138, 104, 0.16) 0%, rgba(94, 138, 104, 0) 62%);
  z-index: 0;
}
.glow--tr { top: -440px; right: -240px; }
.glow--bl { bottom: -440px; left: -240px; }
.section > *:not(.glow) { position: relative; z-index: 1; }

.grid { display: grid; gap: 24px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Buttons, pills, tags
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px var(--spacing-lg); border-radius: var(--radius-md);
  font-family: var(--font-body); font-weight: 600; font-size: 15px; line-height: 20px;
  border: 1.5px solid transparent; white-space: nowrap; transition: background .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--color-accent-cta); color: var(--color-text-inverse); }
.btn--primary:hover { background: var(--green-700); }
.btn--navy { background: var(--navy-900); color: var(--color-text-inverse); }
.btn--navy:hover { background: var(--navy-800); }
.btn--outline { border-color: var(--navy-900); color: var(--navy-900); }
.btn--outline:hover { background: var(--navy-900); color: #fff; }
.btn--outline-inverse { border-color: #fff; color: #fff; }
.btn--outline-inverse:hover { background: rgba(255,255,255,.12); }

.btn-mono {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-md);
  font-family: var(--font-mono); font-weight: 500; font-size: 13px; line-height: 18px; letter-spacing: 1px; text-transform: uppercase;
  background: var(--navy-900); color: var(--color-text-inverse); border: 1px solid var(--navy-900);
}
.btn-mono:hover { background: var(--navy-800); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-weight: 500; font-size: 13px; line-height: 18px; letter-spacing: 1px; text-transform: uppercase;
  border: 1px solid var(--navy-900); color: var(--navy-900); background: transparent;
}
.pill:hover { background: rgba(27, 36, 80, 0.06); }
.pill--green { border-color: var(--green-600); color: var(--green-600); }
.pill--green:hover { background: rgba(62, 155, 92, 0.08); }
.pill--amber { border-color: var(--amber-500); color: var(--amber-600); }
.pill--sage { border-color: var(--sage-700); color: var(--sage-700); }
.pill--solid { background: var(--navy-900); color: #fff; }
.pill--sm { padding: 9px 16px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter {
  padding: 9px 16px; border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-weight: 500; font-size: 13px; line-height: 18px; letter-spacing: 1px; text-transform: uppercase;
  border: 1px solid var(--color-border-strong); background: #fff; color: var(--color-text-muted);
}
.filter:hover { border-color: var(--navy-900); color: var(--navy-900); }
.filter[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }

.tag {
  display: inline-flex; align-items: center; padding: 5px 12px; border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-weight: 500; font-size: 12px; line-height: 18px; letter-spacing: 1px; text-transform: uppercase;
  color: #fff; background: var(--green-600);
}
.tag--amber { background: var(--amber-500); }
.tag--navy { background: var(--navy-900); }
.tag--sage { background: var(--sage-700); }
.tag--olive { background: var(--olive-700); }
.tag-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Header (Figma 48:14)
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--navy-900);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  /* Figma: 40px inset inside the 1440 frame — on wider screens it stays aligned with that frame */
  padding: 18px max(40px, calc((100vw - var(--content-w)) / 2 + 40px));
}
.site-header__logo { width: 96px; height: 38px; flex-shrink: 0; }
.site-header__logo img { width: 100%; height: 100%; object-fit: contain; }

.nav-pill {
  display: flex; align-items: center; gap: 4px; padding: 6px;
  background: rgba(255,255,255,0.08); border-radius: var(--radius-pill);
}
.nav-pill a {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-weight: 500; font-size: 13px; line-height: 18px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--offwhite-50); white-space: nowrap; transition: background .15s;
}
.nav-pill a:hover { background: rgba(255,255,255,0.1); }
.nav-pill a[aria-current="page"] { background: rgba(255,255,255,0.14); }
.nav-pill a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sage-700); flex-shrink: 0; }
.nav-pill a:nth-child(3n+2)::before { background: var(--green-600); }
.nav-pill a:nth-child(3n)::before { background: var(--amber-500); }

.lang-switch { display: flex; padding: 3px; background: rgba(255,255,255,0.08); border-radius: var(--radius-pill); flex-shrink: 0; }
.lang-switch a {
  padding: 6px 12px; border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-weight: 500; font-size: 13px; line-height: 18px; letter-spacing: 1px;
  color: var(--offwhite-50);
}
.lang-switch a[aria-current="true"] { background: #fff; color: var(--navy-900); }

.nav-toggle {
  display: none; background: rgba(255,255,255,0.08); border: 0; color: #fff; border-radius: var(--radius-pill);
  padding: 9px 14px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 1px;
}
@media (max-width: 1320px) {
  .site-header { padding: 18px 24px; }
  .nav-pill a { padding: 9px 10px; letter-spacing: .6px; }
}
@media (max-width: 1140px) {
  .site-header { flex-wrap: wrap; padding: 16px 20px; }
  .nav-toggle { display: inline-flex; order: 2; }
  .lang-switch { order: 3; }
  .nav-pill { order: 4; width: 100%; flex-direction: column; align-items: stretch; margin-top: 8px; border-radius: 16px; }
  .nav-pill:not(.is-open) { display: none; }
  .nav-pill a { border-radius: 10px; }
}

/* --------------------------------------------------------------------------
   Page hero (interior pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative; overflow: hidden; background: var(--navy-900); color: var(--color-text-inverse);
  padding: clamp(48px, 5.5vw, 80px) var(--section-x);
}
.page-hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px; max-width: 820px; }
.page-hero .h1 { color: #fff; }
.page-hero .lede { color: rgba(255,255,255,0.85); max-width: 720px; }
.page-hero__glow { position: absolute; width: 920px; height: 920px; right: -300px; top: -420px; pointer-events: none;
  background: radial-gradient(circle, rgba(143, 185, 150, 0.22) 0%, rgba(143, 185, 150, 0) 62%); }
.breadcrumb { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.breadcrumb a { opacity: .7; }
.breadcrumb a:hover { opacity: 1; }
.breadcrumb .sep { opacity: .45; }

/* Photo hero with slider (What is IPAM / detail pages) */
.hero-slider {
  position: relative; overflow: hidden; height: clamp(420px, 52vw, 640px);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--section-x) 56px;
  color: #fff; background: var(--navy-900);
}
.hero-slider__slides { position: absolute; inset: 0; }
.hero-slider__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.hero-slider__slide.is-active { opacity: 1; }
.hero-slider__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slider__slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,13,0.8) 0%, rgba(0,0,13,0.3) 55%, rgba(0,0,13,0.05) 100%);
}
.hero-slider__content { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 24px; max-width: 820px; }
.hero-slider__content .h-hero { color: #fff; }
.hero-slider__content .lede { color: rgba(255,255,255,0.92); }
.hero-slider__dots { position: relative; z-index: 1; display: flex; gap: 8px; margin-top: 40px; }
.hero-slider__dots button {
  width: 8px; height: 8px; border-radius: 50%; padding: 0; border: 0;
  background: rgba(255,255,255,0.4); transition: width .2s, background .2s;
}
.hero-slider__dots button[aria-current="true"] { width: 24px; border-radius: 4px; background: #fff; }
.hero-slider__caption { position: absolute; right: var(--section-x); bottom: 56px; z-index: 1; }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 14px; padding: 0 28px 28px; position: relative;
}
.card__bar { height: 6px; border-radius: 0 0 4px 4px; background: var(--navy-900); margin: 0 0 14px; }
.card__bar--olive { background: var(--olive-700); }
.card__bar--green { background: var(--green-700); }
.card__bar--amber { background: var(--amber-600); }
.card__bar--sage { background: var(--sage-700); }
.card__icon { width: 48px; height: 48px; border-radius: 50%; background: var(--sage-700); display: grid; place-items: center; color: #fff; }
.card__icon--navy { background: var(--navy-900); }
.card__icon--green { background: var(--green-600); }
.card__icon--amber { background: var(--amber-500); }
.card__icon--olive { background: var(--olive-700); }
.card .link-more { margin-top: auto; }

/* Media card (events / news lists) */
.media-card {
  background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-card-lg); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.media-card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,0.12); }
.media-card__img { display: block; aspect-ratio: 760 / 220; overflow: hidden; background: var(--color-bg-soft); }
.media-card--tall .media-card__img { aspect-ratio: 16 / 9; }
.media-card__img img { width: 100%; height: 100%; object-fit: cover; }
.media-card__body { display: flex; flex-direction: column; gap: 14px; padding: 28px; flex: 1; }
.media-card__body .card-title { font-size: 20px; line-height: 28px; }
.media-card--featured .media-card__body .card-title { font-size: 24px; line-height: 30px; }
.media-card__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.media-card__place { display: inline-flex; align-items: center; gap: 6px; }
.media-card__place svg { width: 14px; height: 14px; }
.media-card__body > .btn-mono, .media-card__body > .link-more { margin-top: auto; align-self: flex-start; }

/* Compact card (side list) */
.compact-card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-card-sm);
  display: flex; flex-direction: column; gap: 10px; padding: 24px;
}
.compact-card .card-title { font-size: 18px; line-height: 24px; }

/* Doc tile (resources) */
.doc-tile {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: 18px; padding: 28px 24px; transition: box-shadow .2s, border-color .2s;
}
.doc-tile:hover { box-shadow: var(--shadow-card); border-color: var(--color-border-strong); }
.doc-tile__thumb {
  display: block; position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-md); overflow: hidden; background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
}
.doc-tile__thumb img { width: 100%; height: 100%; object-fit: cover; }
.doc-tile__thumb .tag { position: absolute; top: 12px; left: 12px; }
.doc-icon { width: 44px; height: 52px; border-radius: var(--radius-sm); background: var(--navy-900); position: relative; }
.doc-icon::after { content: ""; position: absolute; left: 8px; right: 8px; top: 12px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.35); box-shadow: 0 8px 0 rgba(255,255,255,0.35), 0 16px 0 rgba(255,255,255,0.35); }
.doc-icon--green { background: var(--green-600); }
.doc-icon--amber { background: var(--amber-500); }
.doc-icon--sage { background: var(--sage-700); }
.doc-tile__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.doc-tile__meta { display: flex; flex-direction: column; gap: 6px; }

/* Banner strip (navy) */
.strip {
  background: var(--navy-900); color: var(--color-text-inverse); border-radius: var(--radius-lg);
  display: flex; align-items: center; gap: 16px; padding: 22px 28px; flex-wrap: wrap;
}
.strip .label { color: var(--sage-500); }
.strip p { flex: 1; min-width: 200px; }

/* Dashed CTA box */
.cta-box {
  border: 1.5px dashed var(--color-border-strong); border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 24px 28px;
}

/* Stats */
.stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: var(--spacing-sm); }
.stats--grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.stats--grid .stat { background: #fff; border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-card-sm); }
@media (max-width: 900px) { .stats--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .stats--grid { grid-template-columns: 1fr; } }

/* Timeline rail (Figma 50:2) */
.timeline { position: relative; padding-left: 40px; display: flex; flex-direction: column; gap: 20px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: rgba(0,0,0,0.12); }
.timeline__entry { position: relative; display: flex; flex-direction: column; gap: 4px; }
.timeline__entry::before {
  content: ""; position: absolute; left: -40px; top: 5px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--navy-900); box-shadow: 0 0 0 3px var(--color-bg-soft);
}
.timeline__entry:nth-child(4n+2)::before { background: var(--green-600); }
.timeline__entry:nth-child(4n+3)::before { background: var(--amber-500); }
.timeline__entry:nth-child(4n)::before { background: var(--sage-700); }
.section--surface .timeline__entry::before { box-shadow: 0 0 0 3px var(--color-bg-surface); }
.timeline__entry .card-title { font-size: 18px; line-height: 24px; }
.timeline__entry p { font-size: 15px; line-height: 22px; }
.timeline--scroll { max-height: 648px; overflow-y: auto; padding-right: 24px; scrollbar-width: thin; scrollbar-color: var(--navy-900) rgba(0,0,0,0.08); }
.timeline-wrap { position: relative; max-width: 880px; }
.timeline-wrap::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 72px; pointer-events: none;
  background: linear-gradient(180deg, rgba(241,248,242,0) 0%, var(--color-bg-soft) 100%); }

/* Article (detail pages) */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
@media (max-width: 960px) { .article { grid-template-columns: 1fr; } }
.article__body { display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
.article__body p { font-size: 17px; line-height: 28px; }
.article__body h2 { font-family: var(--font-display); font-variation-settings: "SOFT" 0, "WONK" 1; font-weight: 600;
  font-size: 24px; line-height: 30px; color: var(--color-text-heading); margin-top: 12px; }
.article__body blockquote { margin: 8px 0; padding: 20px 24px; border-left: 4px solid var(--green-600); background: var(--color-bg-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0; font-family: var(--font-display); font-size: 20px; line-height: 30px; color: var(--navy-900); }
.article__body ul { display: flex; flex-direction: column; gap: 8px; padding-left: 20px; list-style: disc; }
.article__figure { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-card-lg); }
.article__figure img { width: 100%; height: auto; aspect-ratio: 16 / 8; object-fit: cover; }
.article__figure figcaption { padding: 12px 16px; background: #fff; }
.article__aside { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 24px; }
.info-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-card-sm); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.info-card dl { display: flex; flex-direction: column; gap: 14px; }
.info-card dt { font-family: var(--font-mono); font-weight: 500; font-size: 12px; line-height: 18px; letter-spacing: 1px; text-transform: uppercase; color: var(--color-text-muted); }
.info-card dd { margin: 4px 0 0; color: var(--navy-900); font-weight: 500; }
.link-list { display: flex; flex-direction: column; gap: 10px; }
.link-list a {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-md);
  border: 1px solid var(--color-border); color: var(--navy-900); font-weight: 500; font-size: 15px; transition: border-color .15s, background .15s;
}
.link-list a:hover { border-color: var(--navy-900); background: var(--color-bg-soft); }
.link-list .doc-icon { width: 30px; height: 36px; flex-shrink: 0; }
.link-list .doc-icon::after { top: 8px; left: 6px; right: 6px; height: 3px; box-shadow: 0 6px 0 rgba(255,255,255,0.35), 0 12px 0 rgba(255,255,255,0.35); }
.link-list small { margin-left: auto; font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; color: var(--color-text-muted); text-transform: uppercase; }

.share-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* Video embed */
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-xl); overflow: hidden; background: var(--navy-900); box-shadow: var(--shadow-card-lg); }
.video-embed iframe, .video-embed img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-embed__play {
  position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0,0,13,0.35);
}
.video-embed__play span { width: 72px; height: 72px; border-radius: 50%; background: var(--green-600); display: grid; place-items: center; box-shadow: 0 10px 28px rgba(0,0,0,.3); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-pill); border: 1px solid var(--color-border-strong);
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 1px; color: var(--navy-900);
}
.pagination [aria-current="page"] { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }

/* Search / toolbar */
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 32px; }
.toolbar .filters { margin: 0; }
.search:not(body) { /* body.search = WP search results page */
  display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-strong); background: #fff; min-width: 260px;
}
.search:not(body) input { border: 0; outline: 0; background: transparent; flex: 1; font-size: 15px; color: var(--navy-900); }
.search:not(body) svg { width: 16px; height: 16px; color: var(--color-text-muted); }

/* --------------------------------------------------------------------------
   Newsletter (51:24) & Footer (47:287)
   -------------------------------------------------------------------------- */
.newsletter {
  background: var(--navy-900); color: var(--color-text-inverse);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: 56px var(--section-x); border-bottom: 1px solid rgba(255,255,255,0.12);
}
.newsletter__text { display: flex; flex-direction: column; gap: 6px; }
.newsletter__text .h2 { font-size: 26px; line-height: 34px; color: var(--offwhite-50); }
.newsletter__text p { color: rgba(255,255,255,0.75); }
.newsletter__form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter__form input {
  width: 320px; max-width: 100%; padding: 14px 18px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.1); color: #fff; font-size: 17px; line-height: 26px;
}
.newsletter__form input::placeholder { color: rgba(255,255,255,0.65); }
.newsletter__form button {
  padding: 14px 22px; border-radius: 10px; border: 0; background: var(--green-600); color: #fff;
  font-family: var(--font-mono); font-weight: 500; font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
}
.newsletter__form button:hover { background: var(--green-700); }

.site-footer {
  background: var(--color-brand-navy); color: var(--color-text-inverse);
  display: flex; flex-direction: column; gap: var(--spacing-2xl);
  padding: var(--spacing-3xl) var(--section-x) 40px;
}
/* Brand column + link columns spread evenly over the content width */
.site-footer__top { display: grid; grid-template-columns: minmax(220px, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 48px; align-items: start; }
.site-footer__brand { display: flex; flex-direction: column; gap: 16px; max-width: 280px; }
.site-footer__brand p { font-size: 14px; line-height: 22px; color: rgba(253, 253, 251, 0.7); }
.site-footer__logo { width: 96px; height: 38px; }
.site-footer__logo img { width: 100%; height: 100%; object-fit: contain; object-position: left; }
.site-footer__col { display: flex; flex-direction: column; gap: 12px; }
.site-footer__col a { font-size: 14px; line-height: 22px; opacity: .85; width: fit-content; }
.site-footer__col a:hover { opacity: 1; text-decoration: underline; }
.site-footer__rule { height: 1px; background: rgba(255,255,255,0.15); }
.site-footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-mono); font-weight: 500; font-size: 12px; line-height: 18px; letter-spacing: 1px;
}
.site-footer__bottom .copy { opacity: .6; }
@media (max-width: 1100px) {
  .site-footer__top { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 720px) {
  .site-footer { padding: 48px var(--section-x) 32px; }
  .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.flex { display: flex; } .gap-10 { gap: 10px; } .gap-16 { gap: 16px; } .wrap { flex-wrap: wrap; } .center { align-items: center; } .between { justify-content: space-between; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   WordPress integration (theme-level additions)
   -------------------------------------------------------------------------- */
.skip-link:focus { position: fixed; left: 16px; top: 16px; z-index: 100; width: auto; height: auto; clip: auto; clip-path: none;
  padding: 10px 16px; background: #fff; color: var(--navy-900); border-radius: var(--radius-md); }
:focus-visible { outline: 2px solid var(--green-600); outline-offset: 2px; }
.btn:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(62, 155, 92, 0.45); }
.btn--secondary { border-color: var(--navy-900); color: var(--navy-900); background: transparent; }
.btn--secondary:hover { background: rgba(27, 36, 80, 0.06); }
.btn--text { padding-left: 0; padding-right: 0; color: var(--green-600); }
.btn[aria-disabled="true"], .btn:disabled { opacity: .5; pointer-events: none; }
.btn--block { width: 100%; }

/* Mobile header — Figma 84:35: logo + hamburger, menu & languages open below */
.nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 5px; width: 22px; }
.nav-toggle__bars span { display: block; height: 2px; border-radius: 1px; background: currentColor; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1140px) {
  .site-header { padding: 16px 20px; }
  .site-header__logo { width: 76px; height: 30px; }
  .nav-toggle { order: 2; margin-left: auto; padding: 10px; background: transparent; }
  .site-header:not(.is-open) .lang-switch { display: none; }
  .lang-switch { order: 5; margin-top: 8px; }
}

/* Join band — Figma 47:261 */
.join-band { padding-left: var(--section-x-tight); padding-right: var(--section-x-tight); } /* 64px band (Figma 47:261) */
.join-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.join-band__text { display: flex; flex-direction: column; gap: 10px; max-width: 585px; }
@media (max-width: 640px) { .join-band__inner .btn { width: 100%; } }

/* Long-form content from the editor */
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 20px; }
.prose p, .prose li { font-size: 17px; line-height: 28px; }
.prose h2 { font-family: var(--font-display); font-variation-settings: "SOFT" 0, "WONK" 1; font-weight: 600; font-size: 28px; line-height: 34px; color: var(--color-text-heading); margin-top: 16px; }
.prose h3 { font-family: var(--font-display); font-variation-settings: "SOFT" 0, "WONK" 1; font-weight: 600; font-size: 22px; line-height: 28px; color: var(--color-text-heading); margin-top: 8px; }
.prose a { color: var(--green-700); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { list-style: disc; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose ol { list-style: decimal; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose img { border-radius: var(--radius-lg); height: auto; }
.prose blockquote { margin: 8px 0; padding: 20px 24px; border-left: 4px solid var(--green-600); background: var(--color-bg-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0; font-family: var(--font-display); font-size: 20px; line-height: 30px; color: var(--navy-900); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--color-border-default); }
.prose th { font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--color-text-muted); }

/* Pagination from paginate_links() */
.pagination .page-numbers.dots { border: 0; }
.pagination .page-numbers.current { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }

/* --------------------------------------------------------------------------
   Fluent Forms — restyled to the design system
   -------------------------------------------------------------------------- */
.fluentform .ff-el-group { margin-bottom: 18px; }
.fluentform .ff-el-input--label label { font-family: var(--font-mono); font-weight: 500; font-size: 12px; line-height: 18px; letter-spacing: 1px; text-transform: uppercase; color: var(--color-text-muted); }
.fluentform .ff-el-form-control {
  width: 100%; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--color-border-strong); background: #fff;
  font: 400 16px/24px var(--font-body); color: var(--navy-900);
}
.fluentform .ff-el-form-control:focus { border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(62, 155, 92, 0.18); outline: 0; }
.fluentform .ff-btn-submit, .fluentform .ff-btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: var(--radius-md) !important; border: 0;
  background: var(--color-accent-cta) !important; color: #fff !important; font: 600 15px/20px var(--font-body);
}
.fluentform .ff-btn-submit:hover { background: var(--green-700) !important; }
.fluentform .ff-message-success { border: 1px solid var(--green-600); background: var(--color-bg-soft); color: var(--navy-900); border-radius: var(--radius-md); padding: 14px 18px; box-shadow: none; }
.fluentform .error, .fluentform .text-danger { color: #b3261e; font-size: 14px; }

/* Newsletter variant: one line, inverse colours (Figma 51:28) */
.newsletter .fluentform form, .newsletter .fluentform fieldset { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; border: 0; margin: 0; padding: 0; min-width: 0; }
.newsletter .fluentform .ff-el-group { margin: 0; }
.newsletter .fluentform .ff-el-group:not(.ff_submit_btn_wrapper) { width: 320px; max-width: 100%; }
.newsletter .fluentform .ff-el-input--label { display: none; }
.newsletter .fluentform .ff-el-form-control { padding: 14px 18px; border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.1); color: #fff; font-size: 17px; line-height: 26px; }
.newsletter .fluentform .ff-el-form-control::placeholder { color: rgba(255,255,255,0.65); }
.newsletter .fluentform .ff-btn-submit { padding: 14px 22px; border-radius: 10px !important; font-family: var(--font-mono); font-weight: 500; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.newsletter .fluentform .ff-message-success { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.3); }
@media (max-width: 640px) {
  .newsletter { padding: 48px 24px; }
  .newsletter__form, .newsletter .fluentform, .newsletter .fluentform form, .newsletter .fluentform fieldset, .newsletter .fluentform .ff-el-group:not(.ff_submit_btn_wrapper), .newsletter .fluentform .ff_submit_btn_wrapper, .newsletter .fluentform .ff-btn-submit { width: 100%; }
}
