:root {
  --ink: #172129;
  --muted: #5f6f76;
  --paper: #f7f8f5;
  --white: #ffffff;
  --line: #d9dfd7;
  --navy: #0e2733;
  --teal: #1d6d6a;
  --teal-dark: #0d4f4d;
  --sage: #dfe8dd;
  --amber: #c67d2c;
  --amber-soft: #f3dcc2;
  --shadow: 0 18px 50px rgba(23, 33, 41, 0.12);
  --radius: 8px;
  --header-height: 76px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(20px, 4vw, 56px);
  color: #f8fbf8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(14, 39, 51, 0.72);
  backdrop-filter: blur(16px);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(247, 248, 245, 0.94);
  border-color: rgba(23, 33, 41, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 7px;
  color: #fcfbf7;
  background: linear-gradient(135deg, var(--teal), var(--amber));
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  line-height: 1.15;
}

.brand small {
  margin-top: 3px;
  color: currentColor;
  opacity: 0.72;
  font-size: 12px;
}

.primary-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  font-size: 14px;
  font-weight: 650;
}

.primary-nav a {
  opacity: 0.82;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  opacity: 1;
}

.button,
.icon-button {
  border: 0;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 17px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button svg,
.icon-button svg,
.principle-row svg,
.function-grid svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.icons-unavailable i[data-lucide] {
  display: none;
}

/* Collapse the icon gap only on buttons whose icon was a (now-hidden) lucide
   placeholder — buttons with an always-present inline SVG keep their gap. */
.icons-unavailable .button:has(i[data-lucide]) {
  gap: 0;
}

.button-primary {
  color: #fbfbf6;
  background: var(--teal-dark);
}

.button-primary:hover {
  background: #0a4442;
}

.button-secondary {
  color: var(--ink);
  border: 1px solid rgba(23, 33, 41, 0.18);
  background: rgba(255, 255, 255, 0.78);
}

.button-secondary:hover {
  border-color: rgba(23, 33, 41, 0.32);
  background: var(--white);
}

.button-ghost {
  color: #fbfbf6;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.1);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 7px;
  color: inherit;
  background: rgba(255, 255, 255, 0.12);
}

.site-header.is-scrolled .icon-button {
  background: rgba(23, 33, 41, 0.07);
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--navy);
  color: #f8fbf8;
}

/* Start the image + overlay below the fixed navbar so the whole image stays
   visible; the strip behind the translucent navbar shows the dark hero bg. */
.hero-image,
.hero-overlay {
  position: absolute;
  top: var(--header-height);
  right: 0;
  bottom: 0;
  left: 0;
}

.hero-image {
  width: 100%;
  height: calc(100% - var(--header-height));
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 21, 28, 0.9) 0%, rgba(8, 21, 28, 0.62) 42%, rgba(8, 21, 28, 0.12) 100%),
    linear-gradient(0deg, rgba(8, 21, 28, 0.78) 0%, rgba(8, 21, 28, 0.08) 52%);
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 40px));
  margin: 0 0 clamp(48px, 8vh, 88px) clamp(20px, 7vw, 96px);
  padding-top: 130px;
}

.label {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.02;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(46px, 7vw, 88px);
}

.hero-copy {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(248, 251, 248, 0.85);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.credibility-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.credibility-strip div {
  min-height: 104px;
  padding: 24px clamp(18px, 3vw, 38px);
  background: var(--white);
}

.credibility-strip .label {
  display: block;
  margin-bottom: 8px;
}

.credibility-strip strong {
  font-size: 17px;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(76px, 10vw, 118px) 0;
}

.split,
.image-split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1fr);
  gap: clamp(42px, 7vw, 90px);
  align-items: center;
}

.image-split {
  grid-template-columns: minmax(320px, 1fr) minmax(0, 0.86fr);
}

.section-copy h2,
.section-heading h2 {
  max-width: 820px;
  font-size: clamp(32px, 4.3vw, 54px);
}

.section-copy p,
.section-heading p,
.function-grid p,
.site-footer p {
  color: var(--muted);
}

.section-copy p {
  max-width: 640px;
  font-size: 16px;
}

.about-copy p {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 17px;
}

.about-copy .about-lead {
  font-size: 19px;
  line-height: 1.5;
}

.about-copy .about-attribution {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
}

.mission-panel {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principle-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.principle-row:last-child {
  border-bottom: 0;
}

.principle-row svg {
  margin-top: 3px;
  color: var(--teal-dark);
}

.principle-row strong,
.principle-row span {
  display: block;
}

.principle-row strong {
  font-size: 18px;
}

.principle-row span {
  margin-top: 4px;
  color: var(--muted);
}

.media-frame {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.media-frame img {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step-list {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}

.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  color: var(--ink);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.56);
  cursor: pointer;
}

.step span {
  color: var(--amber);
  font-size: 12px;
  font-weight: 850;
}

.step.is-active {
  border-color: rgba(29, 109, 106, 0.4);
  background: var(--sage);
}

.step-detail {
  margin-top: 18px;
  padding: 20px;
  border-left: 4px solid var(--teal-dark);
  background: var(--white);
}

.step-detail strong {
  display: block;
  font-size: 18px;
}

.step-detail p {
  margin: 8px 0 0;
}

.section-heading {
  margin-bottom: 34px;
}

.function-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.function-grid article {
  min-height: 260px;
  padding: 24px;
  background: var(--white);
}

.function-grid svg {
  color: var(--teal-dark);
}

.function-grid h3 {
  margin: 50px 0 10px;
  font-size: 20px;
  line-height: 1.15;
}

.icons-unavailable .function-grid h3 {
  margin-top: 0;
}

.function-grid p {
  margin: 0;
  font-size: 14px;
}

.council-section {
  width: min(1240px, calc(100% - 40px));
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.member-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.member-card h3 {
  margin: 0;
  font-size: 18px;
}

.member-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.member-card .member-affiliation {
  margin: 6px 0 0;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 650;
}

/* Full-width member photo spanning the card (edge-to-edge over the 20px padding).
   Portrait 4:5 box, cropped from the top so faces/heads are never cut off. */
.member-photo {
  display: block;
  width: calc(100% + 40px);
  max-width: none; /* override the global `img { max-width: 100% }` so it spans edge-to-edge */
  margin: -20px -20px 16px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--sage);
}

.member-photo--placeholder {
  display: grid;
  place-items: center;
  color: var(--teal-dark);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--sage), #eef3ec);
}

.faq-answer a {
  color: var(--teal-dark);
  text-decoration: underline;
  word-break: break-word;
}

.member-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: auto;
  padding-top: 16px;
}

.member-socials a {
  display: inline-flex;
  color: var(--muted);
  transition: color 160ms ease;
}

.member-socials a:hover,
.member-socials a:focus-visible {
  color: var(--teal-dark);
}

.member-socials svg {
  width: 18px;
  height: 18px;
}

.member-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.faq-section .section-heading {
  max-width: 820px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  list-style: none;
  color: var(--ink);
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 700;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--teal-dark);
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--teal-dark);
  outline-offset: 4px;
  border-radius: 4px;
}

.faq-chevron {
  flex: none;
  width: 11px;
  height: 11px;
  margin-right: 6px;
  border-right: 2px solid var(--teal-dark);
  border-bottom: 2px solid var(--teal-dark);
  transform: rotate(45deg);
  transition: transform 200ms ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(-135deg);
}

@media (prefers-reduced-motion: reduce) {
  .faq-chevron {
    transition: none;
  }
}

.faq-answer {
  padding: 0 4px 24px;
}

.faq-answer p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.faq-status {
  margin: 0;
  padding: 22px 4px;
  color: var(--muted);
  font-size: 16px;
}

.faq-status code {
  padding: 1px 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  background: var(--sage);
  border-radius: 4px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 34px clamp(20px, 4vw, 56px);
  color: rgba(248, 251, 248, 0.78);
  background: var(--navy);
}

.site-footer strong {
  color: #f8fbf8;
}

.site-footer p {
  max-width: 560px;
  margin: 6px 0 0;
  color: rgba(248, 251, 248, 0.68);
}

.site-footer a {
  color: #f8fbf8;
  font-weight: 750;
}

/* Organization social links in the footer (extend by adding more <a> icons). */
.footer-socials {
  display: flex;
  gap: 14px;
  margin-top: 14px;
}

.footer-socials a {
  display: inline-flex;
  color: rgba(248, 251, 248, 0.72);
  transition: color 160ms ease;
}

.footer-socials a:hover {
  color: #f8fbf8;
}

.footer-socials svg {
  width: 20px;
  height: 20px;
}

.toast[hidden] {
  display: none;
}

/* Announcement preview cards (homepage section + the all-announcements page). */
.ann-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.ann-card {
  display: flex;
  flex-direction: column;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.ann-card:hover {
  border-color: #c4cec5;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.ann-card-meta,
.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.ann-card-date,
.article-date {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.ann-pin {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: var(--sage);
}

.ann-card-title {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.2;
}

.ann-card-title a {
  color: var(--ink);
}

.ann-card-title a:hover {
  color: var(--teal-dark);
}

.ann-card-excerpt {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.ann-readmore {
  align-self: flex-start;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal-dark);
  font-weight: 750;
  font-size: 14px;
  transition: gap 160ms ease;
}

.ann-readmore:hover {
  gap: 10px;
}

.ann-viewall {
  margin-top: 26px;
  display: flex;
  justify-content: center;
}

.ann-viewall[hidden] {
  display: none;
}

.ann-empty {
  color: var(--muted);
  padding: 16px 0;
}

/* Latest media: YouTube videos + Medium articles from the Council Chair.
   Cards are whole-card links (see app.js); hover lifts the card like .ann-card. */
.media-section .section-heading {
  max-width: 820px;
}

.media-viewall {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.media-viewall[hidden] {
  display: none;
}

/* --- videos --- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.video-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.video-card:hover {
  border-color: #c4cec5;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--sage);
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: #fbfbf6;
  background: rgba(14, 39, 51, 0.72);
  border-radius: 999px;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.video-card:hover .video-play {
  background: var(--teal-dark);
  transform: scale(1.06);
}

.video-play svg {
  width: 22px;
  height: 22px;
  margin-left: 2px; /* optically centre the triangle */
}

.video-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px;
}

.video-card-date,
.medium-card-date {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.video-card-title {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 160ms ease;
}

.video-card:hover .video-card-title {
  color: var(--teal-dark);
}

/* --- articles --- */
.medium-grid {
  display: grid;
  /* min(300px, 100%) lets the track shrink below 300px on very narrow phones
     instead of overflowing the viewport. */
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 16px;
}

/* Loading / empty / error status text spans the whole grid rather than sitting
   in one narrow column. */
.video-grid > .faq-status,
.video-grid > .ann-empty,
.medium-grid > .faq-status,
.medium-grid > .ann-empty {
  grid-column: 1 / -1;
}

.medium-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.medium-card:hover {
  border-color: #c4cec5;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.medium-thumb {
  aspect-ratio: 16 / 9;
  background: var(--sage);
  overflow: hidden;
}

.medium-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.medium-thumb--placeholder {
  background: linear-gradient(135deg, var(--sage), #eef3ec);
}

.medium-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 18px 20px 20px;
}

.medium-card-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 160ms ease;
}

.medium-card:hover .medium-card-title {
  color: var(--teal-dark);
}

.medium-card-blurb {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Keyboard focus on the whole-card links: match the site's focus language and
   echo the hover lift so a focused card reads as active. */
.video-card:focus-visible,
.medium-card:focus-visible {
  outline: 2px solid var(--teal-dark);
  outline-offset: 3px;
  border-color: #c4cec5;
  box-shadow: var(--shadow);
}

/* Standalone article pages (single announcement + all-announcements list). */
.header-link {
  justify-self: end;
  color: inherit;
  font-weight: 700;
  font-size: 14px;
}

.header-link:hover {
  color: var(--teal-dark);
}

.article-main {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 128px 0 88px;
}

.article-main.article-wide {
  width: min(960px, calc(100% - 40px));
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 14px;
}

.article-back:hover {
  text-decoration: underline;
}

.article-title {
  margin: 0 0 18px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.1;
}

.article-intro {
  margin: -6px 0 30px;
  color: var(--muted);
  font-size: 17px;
}

.article-body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
}

.article-body > :first-child { margin-top: 0; }
.article-body h2 { font-size: 27px; line-height: 1.2; margin: 34px 0 12px; }
.article-body h3 { font-size: 21px; line-height: 1.25; margin: 26px 0 10px; }
.article-body p { margin: 0 0 16px; }
.article-body ul,
.article-body ol { margin: 0 0 16px; padding-left: 22px; }
.article-body li { margin: 5px 0; }
.article-body a { color: var(--teal-dark); text-decoration: underline; }

.article-body blockquote {
  margin: 20px 0;
  padding: 4px 18px;
  border-left: 3px solid var(--sage);
  color: var(--muted);
  font-style: italic;
}

.article-body code {
  background: #eef1ee;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.92em;
}

.article-body pre {
  background: var(--navy);
  color: #e7efe9;
  padding: 16px 18px;
  border-radius: var(--radius);
  overflow-x: auto;
}

.article-body pre code { background: none; padding: 0; color: inherit; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  max-width: min(380px, calc(100vw - 36px));
  padding: 14px 16px;
  color: #f8fbf8;
  border-radius: 7px;
  background: var(--navy);
  box-shadow: var(--shadow);
}

@media (max-width: 1050px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-toggle {
    display: inline-grid;
  }

  .primary-nav {
    display: none;
  }

  .primary-nav.is-open {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: grid;
    justify-content: stretch;
    gap: 0;
    padding: 12px 20px 18px;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    background: rgba(247, 248, 245, 0.98);
  }

  .primary-nav.is-open a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }

  .credibility-strip,
  .function-grid,
  .member-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .image-split {
    grid-template-columns: 1fr;
  }

  .image-split .media-frame {
    order: 2;
  }

}

@media (max-width: 720px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    min-height: 68px;
    padding: 12px 16px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 100vh;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(8, 21, 28, 0.92) 0%, rgba(8, 21, 28, 0.72) 100%),
      linear-gradient(0deg, rgba(8, 21, 28, 0.74) 0%, rgba(8, 21, 28, 0.16) 60%);
  }

  .hero-content {
    width: calc(100% - 32px);
    margin-left: 16px;
    margin-bottom: 36px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .credibility-strip,
  .function-grid,
  .member-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .section,
  .council-section {
    width: calc(100% - 32px);
  }
}
