/* ==========================================================================
   Existing Skilled Migrant Forum — site styles
   Colours are taken from the forum's own posters: deep navy + leaf green.
   ========================================================================== */

/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2-variations"),
       url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-var.woff2") format("woff2-variations"),
       url("../fonts/source-serif-4-var.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-var-italic.woff2") format("woff2-variations"),
       url("../fonts/source-serif-4-var-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --navy: #16305C;
  --night: #0C1D3B;
  --leaf: #2B7530;
  --leaf-dark: #215C26;
  --leaf-light: #8FD17C;
  --mist: #EAF0F6;
  --paper: #FFFFFF;
  --ink: #17202F;
  --muted: #4A5568;
  --line: #C9D3E0;
  --signal: #B8322A;
  --on-dark-muted: #C9D6EA;

  --sans: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 4px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.125rem;          /* 18px */
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  font-optical-sizing: auto;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--leaf-dark); text-decoration-thickness: 2px; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; }
li { margin-bottom: 0.45em; }
strong { font-weight: 650; }

:focus-visible {
  outline: 3px solid var(--leaf-light);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--night);
  border-radius: 2px;
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--leaf); color: #fff; padding: 0.75rem 1rem; font-family: var(--sans);
  font-weight: 700; text-decoration: none; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--sans);
  color: var(--navy);
  margin: 0 0 0.5em;
  line-height: 1.05;
  letter-spacing: -0.005em;
}
h1, h2 { font-stretch: 72%; font-weight: 800; }
h1 { font-size: clamp(2.6rem, 6vw, 4.75rem); line-height: 0.98; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: 1.375rem; font-weight: 700; font-stretch: 92%; line-height: 1.2; }
h4 { font-size: 1.0625rem; font-weight: 700; }

.lede { font-size: clamp(1.2rem, 1.8vw, 1.375rem); line-height: 1.55; }
.measure { max-width: 66ch; }
.small { font-size: 0.9375rem; }
.muted { color: var(--muted); }
.sans { font-family: var(--sans); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: var(--sans); font-weight: 700; font-size: 1.0625rem; line-height: 1.2;
  padding: 0.85rem 1.35rem; min-height: 48px;
  border-radius: var(--radius); border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--leaf); color: #fff; }
.btn-primary:hover { background: var(--leaf-dark); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.on-dark .btn-outline, .btn-outline.on-dark { border-color: #fff; color: #fff; }
.on-dark .btn-outline:hover, .btn-outline.on-dark:hover { background: #fff; color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand {
  display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--navy);
  margin-right: auto;
}
.brand img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--mist); }
.brand-text { font-family: var(--sans); line-height: 1.05; }
.brand-name { display: block; font-weight: 800; font-stretch: 75%; font-size: 1.3rem; }
.brand-sub { display: block; white-space: nowrap; font-size: 0.8125rem; font-weight: 500; color: var(--muted); margin-top: 2px; }
.brand:hover { color: var(--navy); }

.nav-list { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav-list li { margin: 0; }
.nav-list a {
  display: block; padding: 0.6rem 0.6rem; white-space: nowrap; font-family: var(--sans); font-weight: 600; font-size: 1rem;
  color: var(--ink); text-decoration: none; border-radius: var(--radius);
}
.nav-list a:hover { color: var(--navy); background: var(--mist); }
.nav-list a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--leaf); border-radius: 0; }
.header-cta { margin-left: 0.5rem; }
.nav-list .header-cta a.btn { display: inline-flex; color: #fff; background: var(--leaf); box-shadow: none; border-radius: var(--radius); border-bottom: 0; }
.nav-list .header-cta a.btn:hover { background: var(--leaf-dark); color: #fff; }
.header-cta .btn { padding: 0.65rem 1rem; min-height: 44px; font-size: 1rem; white-space: nowrap; }

.nav-toggle {
  display: none; align-items: center; gap: 0.5rem;
  font-family: var(--sans); font-weight: 700; font-size: 1rem; color: var(--navy);
  background: transparent; border: 2px solid var(--navy); border-radius: var(--radius);
  padding: 0.55rem 0.85rem; min-height: 44px; cursor: pointer;
}
.nav-toggle-bars { width: 18px; height: 12px; position: relative; display: inline-block; }
.nav-toggle-bars::before, .nav-toggle-bars::after, .nav-toggle-bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
}
.nav-toggle-bars::before { top: 0; } .nav-toggle-bars span { top: 5px; } .nav-toggle-bars::after { bottom: 0; }

@media (max-width: 1220px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -18px rgba(12, 29, 59, 0.35);
  }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; padding: 0.5rem var(--gutter) 1.25rem; gap: 0; }
  .nav-list a { padding: 0.85rem 0.25rem; font-size: 1.125rem; border-bottom: 1px solid var(--mist); border-radius: 0; }
  .nav-list a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--leaf); padding-left: 0.85rem; }
  .header-cta { margin: 1rem 0 0; }
  .header-cta .btn { width: 100%; min-height: 52px; }
}
@media (max-width: 420px) {
  .brand-sub { display: none; }
  .brand img { width: 44px; height: 44px; }
  .brand-name { font-size: 1.15rem; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-mist { background: var(--mist); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy a:not(.btn) { color: #fff; }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { margin-bottom: 0; }

.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.15fr 0.85fr; }
  .split-even { grid-template-columns: 1fr 1fr; }
  .split-flip { grid-template-columns: 0.85fr 1.15fr; }
}

/* ---------- Hero (home) ---------- */
.hero {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::after {               /* the green strip from the posters, along the base */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--leaf);
}
.hero-inner {
  display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center;
  padding-top: clamp(3rem, 8vw, 6rem); padding-bottom: clamp(4rem, 9vw, 7rem);
}
@media (min-width: 960px) { .hero-inner { grid-template-columns: 1.35fr 0.9fr; } }

.hero-title {
  color: #fff;
  font-size: clamp(3.1rem, 8.4vw, 7rem);
  font-stretch: 64%;
  font-weight: 850;
  line-height: 0.9;
  letter-spacing: -0.01em;
  margin: 0 0 0.35em;
  text-wrap: balance;
}
.hero-rule { display: block; width: 7rem; height: 10px; background: var(--leaf-light); margin: 0 0 1.75rem; border: 0; }
.hero-copy { font-size: clamp(1.15rem, 1.7vw, 1.35rem); line-height: 1.55; color: var(--on-dark-muted); max-width: 36em; }
.hero-copy strong { color: #fff; font-weight: 600; }

/* Photo mounted like a placard board */
.placard {
  position: relative; margin: 0;
  background: #fff; padding: 12px 12px 0;
  transform: rotate(-1.6deg);
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.55);
  max-width: 520px; justify-self: center; width: 100%;
}
.placard figcaption {
  font-family: var(--sans); font-size: 0.9rem; font-weight: 600; color: var(--navy);
  padding: 0.7rem 0.25rem 0.85rem; line-height: 1.3;
}
@media (prefers-reduced-motion: no-preference) {
  .placard { animation: placard-in .9s cubic-bezier(.2,.8,.2,1) .15s both; }
  @keyframes placard-in { from { opacity: 0; transform: translateY(24px) rotate(1deg); } to { opacity: 1; transform: rotate(-1.6deg); } }
}

/* ---------- Media slots (photos/videos with a graceful fallback) ---------- */
.media { position: relative; background: var(--mist); overflow: hidden; }
.media > img, .media > video { width: 100%; height: 100%; object-fit: cover; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-3x4 { aspect-ratio: 3 / 4; }
.ratio-1x1 { aspect-ratio: 1 / 1; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-9x16 { aspect-ratio: 9 / 16; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.media.is-missing > img, .media.is-missing > video { display: none; }
.media.is-missing {
  background:
    repeating-linear-gradient(135deg, rgba(22,48,92,.07) 0 12px, transparent 12px 24px),
    var(--mist);
  display: grid; place-items: center;
}
.media.is-missing::after {
  content: attr(data-file);
  font-family: var(--sans); font-size: 0.85rem; font-weight: 600; color: var(--navy);
  background: rgba(255,255,255,.85); padding: 0.35rem 0.6rem; border-radius: var(--radius);
  max-width: 90%; text-align: center; overflow-wrap: anywhere;
}
img.is-missing { display: none !important; }

/* ---------- Notice strip ---------- */
.notice {
  background: var(--night); color: #fff; font-family: var(--sans);
}
.notice-inner { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: center; padding-top: 1rem; padding-bottom: 1rem; }
.notice-tag {
  font-weight: 800; font-size: 0.875rem; background: var(--leaf-light); color: var(--night);
  padding: 0.2rem 0.55rem; border-radius: var(--radius);
}
.notice p { margin: 0; font-size: 1.0625rem; color: var(--on-dark-muted); }
.notice p strong { color: #fff; }
.notice a { color: #fff; font-weight: 700; }

/* ---------- Policy paper "document" ---------- */
.doc-stack { position: relative; max-width: 360px; margin: 0 auto; padding: 0 18px 18px 0; }
.doc-stack::before {
  content: ""; position: absolute; inset: 18px 0 0 18px; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 2px 0 rgba(12,29,59,.04);
}
.doc-sheet {
  position: relative; aspect-ratio: 1 / 1.414; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 24px 40px -24px rgba(12, 29, 59, 0.45);
  display: flex; flex-direction: column; padding: 0;
  text-decoration: none; color: var(--ink);
}
.doc-band { background: var(--navy); height: 22%; position: relative; }
.doc-band::after { content: ""; position: absolute; left: 0; bottom: -8px; width: 38%; height: 8px; background: var(--leaf); }
.doc-body { padding: 14% 11% 10%; display: flex; flex-direction: column; flex: 1; }
.doc-org { font-family: var(--sans); font-weight: 700; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.6rem; }
.doc-title { font-family: var(--sans); font-stretch: 66%; font-weight: 850; font-size: clamp(2.2rem, 4vw, 2.9rem); line-height: 0.92; color: var(--navy); }
.doc-meta { margin-top: auto; font-family: var(--sans); font-size: 0.85rem; color: var(--muted); border-top: 2px solid var(--navy); padding-top: 0.6rem; }
a.doc-sheet:hover .doc-title { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.12em; }

.recs { display: grid; gap: 1.25rem; margin: 2rem 0 0; }
@media (min-width: 700px) { .recs { grid-template-columns: 1fr 1fr; } }
.rec { border-top: 4px solid var(--navy); padding-top: 1rem; }
.rec h3 { margin-bottom: 0.4rem; }
.rec p { margin: 0; font-size: 1.0625rem; }
.rec-num { font-family: var(--sans); font-weight: 700; font-size: 0.9375rem; color: var(--leaf); display: block; margin-bottom: 0.35rem; }

/* ---------- Next-event panel ---------- */
.event-panel {
  background: #fff; border: 2px solid var(--navy); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.event-panel h3 { font-size: 1.75rem; font-stretch: 72%; font-weight: 800; margin-bottom: 1rem; }
.event-facts { margin: 0 0 1.5rem; display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1rem; font-family: var(--sans); }
.event-facts dt { font-weight: 700; color: var(--muted); }
.event-facts dd { margin: 0; font-weight: 600; }
.status-tbc { color: var(--signal); }

/* ---------- Statement / quote ---------- */
.statement {
  border-left: 6px solid var(--leaf); padding: 0.25rem 0 0.25rem 1.5rem; margin: 2rem 0;
  font-size: 1.25rem; line-height: 1.5;
}
.statement p:last-child { margin-bottom: 0; }

/* ---------- Action list (how to help) ---------- */
.actions { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 2px solid var(--navy); }
.actions li { margin: 0; border-bottom: 1px solid var(--line); }
.action {
  display: grid; gap: 0.35rem 2rem; padding: 1.6rem 0; text-decoration: none; color: var(--ink);
}
@media (min-width: 800px) { .action { grid-template-columns: minmax(0, 17rem) minmax(0, 1fr) 10.5rem; align-items: baseline; } .action-go { text-align: right; } }
.action h3 { margin: 0; font-size: 1.6rem; font-stretch: 75%; font-weight: 800; }
.action p { margin: 0; color: var(--muted); }
.action-go { font-family: var(--sans); font-weight: 700; color: var(--leaf); white-space: nowrap; }
.action:hover h3 { color: var(--leaf-dark); }
.action:hover .action-go { text-decoration: underline; }
.section-navy .actions { border-top-color: #fff; }
.section-navy .actions li { border-bottom-color: rgba(255,255,255,.2); }
.section-navy .action { color: #fff; }
.section-navy .action p { color: var(--on-dark-muted); }
.section-navy .action-go { color: var(--leaf-light); }
.section-navy .action:hover h3 { color: var(--leaf-light); }

/* ---------- Photo strip / gallery ---------- */
.strip { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .strip { grid-template-columns: repeat(4, 1fr); } }
.gallery { columns: 3 260px; column-gap: 14px; }
.gallery button {
  padding: 0; border: 0; background: none; cursor: zoom-in; display: block; width: 100%; text-align: left;
}
.gallery figure { margin: 0 0 18px; break-inside: avoid; }
.gallery figcaption { font-family: var(--sans); font-size: 0.9rem; color: var(--muted); padding-top: 0.4rem; }

.video-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
@media (max-width: 520px) { .video-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; } }
.video-grid figure { margin: 0; }
.video-grid .media { background: var(--night); }
.video-grid .media > video { object-fit: contain; }
.video-grid figcaption { font-family: var(--sans); font-size: 0.95rem; padding-top: 0.5rem; color: var(--muted); }

/* Lightbox */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px); max-height: 92vh;
}
.lightbox::backdrop { background: rgba(12, 29, 59, 0.92); }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; }
.lightbox p { color: #fff; font-family: var(--sans); text-align: center; margin: 0.75rem 0 0; }
.lightbox-close {
  position: fixed; top: 1rem; right: 1rem; background: #fff; color: var(--navy); border: 0;
  font-family: var(--sans); font-weight: 700; font-size: 1rem; padding: 0.6rem 1rem; border-radius: var(--radius); cursor: pointer;
}

/* ---------- Page header (inner pages) ---------- */
.page-header { background: var(--navy); color: #fff; position: relative; }
.page-header::after { content: ""; position: absolute; left: 0; bottom: 0; width: min(34%, 360px); height: 8px; background: var(--leaf); }
.page-header .wrap { padding-top: clamp(2.75rem, 6vw, 4.5rem); padding-bottom: clamp(2.75rem, 6vw, 4.5rem); }
.page-header h1 { color: #fff; font-stretch: 66%; max-width: 16ch; }
.page-header .lede { color: var(--on-dark-muted); margin: 0; max-width: 40em; }
.page-header .btn-row { margin-top: 1.5rem; }

/* ---------- Lists with titles (purpose / objectives) ---------- */
.aims { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem 3rem; }
@media (min-width: 760px) { .aims { grid-template-columns: 1fr 1fr; } }
.aims li { margin: 0; padding-top: 1rem; border-top: 2px solid var(--navy); }
.aims h3 { margin-bottom: 0.35rem; }
.aims p { margin: 0; }

.ticks { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.ticks li { position: relative; padding-left: 2rem; margin-bottom: 0.8rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 1.05rem; height: 0.6rem;
  border-left: 3px solid var(--leaf); border-bottom: 3px solid var(--leaf); transform: rotate(-45deg);
}
.section-navy .ticks li::before { border-color: var(--leaf-light); }

/* ---------- Timeline ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-family: var(--sans); font-size: 0.95rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.legend li { display: flex; align-items: center; gap: 0.5rem; margin: 0; }
.dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; flex: none; }
.dot-forum { background: var(--leaf); }
.dot-gov { background: #fff; border: 3px solid var(--navy); }
.dot-next { background: #fff; border: 3px dashed var(--leaf); }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; max-width: 54rem; }
.timeline::before { content: ""; position: absolute; top: 0.6rem; bottom: 0.6rem; left: 7px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 2rem 2.5rem; margin: 0; display: grid; gap: 0.15rem 1.5rem; }
@media (min-width: 760px) { .timeline li { grid-template-columns: 9.5rem 1fr; } }
.timeline .dot { position: absolute; left: 0; top: 0.45rem; }
.timeline time, .timeline .when { font-family: var(--sans); font-weight: 800; font-stretch: 80%; color: var(--navy); font-size: 1.125rem; }
.timeline h3 { font-size: 1.2rem; margin: 0 0 0.25rem; }
.timeline p { margin: 0; font-size: 1.0625rem; }
.timeline .who { font-family: var(--sans); font-size: 0.85rem; font-weight: 700; color: var(--muted); }

/* ---------- Key figures (policy paper) ---------- */
.figures { display: grid; gap: 2rem; margin: 0; }
@media (min-width: 800px) { .figures { grid-template-columns: repeat(3, 1fr); } }
.figures div { border-top: 4px solid var(--leaf-light); padding-top: 1rem; }
.figures dt { font-family: var(--sans); font-stretch: 70%; font-weight: 850; font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; color: #fff; margin-bottom: 0.5rem; }
.figures dd { margin: 0; color: var(--on-dark-muted); }
.figures .src { display: block; font-family: var(--sans); font-size: 0.85rem; margin-top: 0.5rem; color: var(--on-dark-muted); opacity: .85; }

.contents { columns: 2 18rem; column-gap: 3rem; padding-left: 1.6em; font-family: var(--sans); font-size: 1.0625rem; }
.contents li { break-inside: avoid; padding-left: 0.25rem; }
.contents li::marker { font-weight: 700; color: var(--leaf); }

.pdf-frame { width: 100%; height: 85vh; min-height: 560px; border: 1px solid var(--line); background: var(--mist); display: block; }
@media (max-width: 760px) { .pdf-embed { display: none; } }
.pdf-mobile { display: none; }
@media (max-width: 760px) { .pdf-mobile { display: block; } }

.share { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; font-family: var(--sans); }
.share-label { font-weight: 700; margin-right: 0.25rem; }
.share .btn { padding: 0.55rem 0.95rem; min-height: 44px; font-size: 0.975rem; }

/* ---------- Events ---------- */
.event-list { list-style: none; padding: 0; margin: 0; display: grid; gap: clamp(2.5rem, 5vw, 3.5rem); }
.event { display: grid; gap: 1.5rem 2.5rem; margin: 0; padding-top: 1.75rem; border-top: 2px solid var(--navy); }
@media (min-width: 820px) { .event { grid-template-columns: 300px 1fr; } }
.event .media { max-width: 360px; }
.event-date { font-family: var(--sans); font-weight: 800; font-stretch: 75%; font-size: 1.25rem; color: var(--leaf); margin: 0 0 0.25rem; }
.event h3 { font-size: 1.75rem; font-stretch: 75%; font-weight: 800; }
.event-badge { display: inline-block; font-family: var(--sans); font-size: 0.85rem; font-weight: 700; color: var(--muted); border: 1px solid var(--line); padding: 0.15rem 0.5rem; border-radius: var(--radius); margin-bottom: 0.75rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.25rem; }
.field label, .field legend { display: block; font-family: var(--sans); font-weight: 700; margin-bottom: 0.35rem; color: var(--navy); }
.field .hint { display: block; font-size: 0.95rem; color: var(--muted); margin: -0.15rem 0 0.4rem; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-family: var(--sans); font-size: 1.0625rem; color: var(--ink);
  padding: 0.75rem 0.85rem; border: 2px solid var(--muted); border-radius: var(--radius); background: #fff;
}
.field textarea { min-height: 10rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--leaf-light); outline-offset: 0; border-color: var(--navy); box-shadow: none; }
.check { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 1rem; }
.check input { width: 1.4rem; height: 1.4rem; margin-top: 0.15rem; flex: none; accent-color: var(--leaf); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert {
  display: none; border-left: 6px solid var(--signal); background: #FBEDEC; padding: 1rem 1.25rem; font-family: var(--sans);
}
.form-alert.is-visible { display: block; }

.contact-card { background: var(--mist); padding: clamp(1.5rem, 3vw, 2rem); border-radius: var(--radius); }
.contact-card h2 { font-size: 1.75rem; }
.contact-card dl { margin: 0; font-family: var(--sans); }
.contact-card dt { font-weight: 700; color: var(--muted); font-size: 0.95rem; }
.contact-card dd { margin: 0 0 1.1rem; font-size: 1.125rem; font-weight: 600; overflow-wrap: anywhere; }

.callout { border: 2px solid var(--navy); padding: 1.25rem 1.5rem; border-radius: var(--radius); background: #fff; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Prose pages ---------- */
.prose { max-width: 44rem; }
.prose h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-top: 2.25rem; }
.prose h2:first-child { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--on-dark-muted); font-family: var(--sans); font-size: 1rem; border-top: 10px solid var(--leaf); }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--leaf-light); }
.footer-grid { display: grid; gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 2.5rem; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer-brand { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.footer-brand img { width: 64px; height: 64px; border-radius: 50%; background: #fff; }
.footer-brand span { color: #fff; font-weight: 800; font-stretch: 75%; font-size: 1.5rem; line-height: 1.05; }
.site-footer h2 { color: #fff; font-size: 1.125rem; font-stretch: 100%; font-weight: 700; margin-bottom: 0.85rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.footer-base { border-top: 1px solid rgba(255,255,255,.15); padding: 1.25rem 0 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; font-size: 0.9rem; }
.footer-base p { margin: 0; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.center-404 { text-align: left; padding: var(--section) 0; }

@media print {
  .site-header, .site-footer, .notice, .btn-row, .share { display: none !important; }
  .hero, .page-header, .section-navy { background: #fff !important; color: #000 !important; }
  .hero-title, .page-header h1 { color: #000 !important; }
}

/* ---------- Policy paper publication page ---------- */
.page-header .kicker { font-family: var(--sans); font-weight: 700; font-size: 1.0625rem; color: var(--leaf-light); margin: 0 0 0.6rem; }
.page-header .pub-meta { font-family: var(--sans); font-size: 1rem; color: var(--on-dark-muted); margin: 1rem 0 0; max-width: 46em; }
.page-header .pub-meta strong { color: #fff; }
.mt-1 { margin-top: 0.75rem; }
.docs-list { list-style: none; padding: 0; margin: 0; max-width: 56rem; border-top: 2px solid var(--navy); }
.doc { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 1.5rem; align-items: start; padding: 1.5rem 0; margin: 0; border-bottom: 1px solid var(--line); }
.doc-thumb {
  width: 84px; height: 112px; border: 2px solid var(--navy); border-top: 10px solid var(--navy); background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 800; font-size: 1.05rem; color: var(--navy);
}
.doc h3 { font-size: 1.375rem; margin: 0 0 0.4rem; line-height: 1.3; }
.doc-attr { font-family: var(--sans); color: var(--muted); font-size: 1rem; margin: 0 0 0.4rem; }
.doc-help { font-size: 1rem; margin: 0; }
@media (max-width: 520px) { .doc { grid-template-columns: 56px minmax(0, 1fr); gap: 1rem; } .doc-thumb { width: 56px; height: 76px; font-size: 0.85rem; border-top-width: 7px; } }
.contents-plain a { color: var(--ink); text-decoration-color: var(--line); }
.contents-plain a:hover { color: var(--navy); text-decoration-color: currentColor; }
.figures a.src { display: block; font-family: var(--sans); font-size: 0.875rem; margin-top: 0.5rem; }
.contents-plain { list-style: none; padding-left: 0; }
.contents-plain li { padding-left: 0; }
