/* ==========================================================================
   AFCEA North Carolina — Base + Components
   Depends on tokens.css. No preprocessor, no build step.
   Sections: 1 Reset · 2 Typography · 3 Layout · 4 Header/Nav · 5 Buttons
             6 Hero · 7 Cards · 8 Sections & blocks · 9 Forms · 10 Footer
             11 Utilities
   ========================================================================== */

/* ---------------------------------------------------------------- 1 Reset */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--space-4));
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--duration) var(--ease),
              color var(--duration) var(--ease);
}

body.is-locked { overflow: hidden; }

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

/* Only fill icons that don't declare their own. A bare `svg { fill: currentColor }`
   beats the fill="none" presentation attribute — CSS outranks presentation
   attributes — which silently rendered every outline icon as a solid blob. */
svg:not([fill]) { fill: currentColor; }

hr {
  border: 0;
  border-top: var(--border-width) solid var(--border);
  margin: var(--space-7) 0;
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

::selection { background: var(--accent); color: #1A1405; }

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 200;
  background: var(--brand);
  color: var(--text-on-brand);
  padding: var(--space-3) var(--space-5);
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 700;
  text-decoration: none;
  transition: top var(--duration) var(--ease);
}
.skip-link:focus { top: 0; }

/* ----------------------------------------------------------- 2 Typography */

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--text);
  margin: 0 0 var(--space-4);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.125rem, 1.4rem + 3.1vw, var(--text-5xl)); }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.9vw, var(--text-3xl)); }
h3 { font-size: clamp(1.3rem, 1.15rem + 0.7vw, var(--text-xl)); }
h4 { font-size: var(--text-md); font-family: var(--font-sans); font-weight: 700; }
h5 { font-size: var(--text-base); font-family: var(--font-sans); font-weight: 700; }

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--brand-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--duration) var(--ease);
}
a:hover { color: var(--brand-hover); }

strong, b { font-weight: 700; }

small { font-size: var(--text-sm); }

ul, ol { margin: 0 0 var(--space-4); padding-left: var(--space-5); }
li { margin-bottom: var(--space-2); }

blockquote {
  margin: var(--space-6) 0;
  padding: var(--space-4) var(--space-6);
  border-left: 4px solid var(--accent);
  background: var(--bg-subtle);
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  line-height: var(--leading-snug);
}
blockquote cite {
  display: block;
  margin-top: var(--space-3);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-style: normal;
  color: var(--text-muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0 0 var(--space-3);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
}
.eyebrow--plain::before { display: none; }

.lede {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--text-muted);
  max-width: 62ch;
}

.prose { max-width: 68ch; }
.prose h2 { margin-top: var(--space-8); }
.prose h3 { margin-top: var(--space-6); }
.prose > :first-child { margin-top: 0; }

/* --------------------------------------------------------------- 3 Layout */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(var(--space-8), 6vw, var(--space-11)); }
.section--tight { padding-block: var(--space-8); }
.section--subtle { background: var(--bg-subtle); }

.section--muted { background: var(--bg-muted); }

.section-head { max-width: 68ch; margin-bottom: var(--space-8); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lede { margin-inline: auto; }
.section-head p { color: var(--text-muted); }

.section-head--split {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-5);
}
.section-head--split > div { max-width: 60ch; }

.grid { display: grid; gap: var(--space-5); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(var(--space-6), 5vw, var(--space-9));
  align-items: center;
}
.split--reverse > :first-child { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split--reverse > :first-child { order: 0; }
}

.sidebar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(var(--space-6), 4vw, var(--space-9));
  align-items: start;
}
@media (max-width: 900px) {
  .sidebar-layout { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------- 4 Header/Nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: var(--border-width) solid var(--header-border);
}

/* Thin gold/blue rule above the header — a nod to service ribbon banding. */
.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg,
    var(--blue-700) 0%, var(--blue-700) 38%,
    var(--gold-400) 38%, var(--gold-400) 62%,
    var(--blue-700) 62%);
}

/* Gaps here are deliberately tight: brand + 6 nav items + two buttons + the
   theme toggle only just fit the 1152px container content box. Widening any
   of them pushes the toggle past the right edge. */
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: var(--header-height);
}

/* --- Brand lockup --- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.brand:hover { color: var(--text); }
.brand-mark { width: 42px; height: 42px; color: var(--brand); flex-shrink: 0; }
.brand-mark .mark-accent { fill: var(--accent); }

.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-sub {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --- Primary nav --- */
.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
/* No gap: .nav-link's own horizontal padding provides the separation, and it
   doubles as the hover target. Adding a gap here overflows the header. */
.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-item { position: relative; margin: 0; }

/* The mobile drawer carries its own Donate link, so the header one can drop
   away once the brand + actions row runs out of room. Selectors are qualified
   to outrank the `.btn { display: inline-flex }` rule declared further down. */
.nav .btn.nav-donate { display: none; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-2);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  transition: background-color var(--duration) var(--ease),
              color var(--duration) var(--ease);
}
.nav-link:hover { background: var(--bg-muted); color: var(--text); }
/* Matches both aria-current="page" (a nav item that IS the current page) and
   aria-current="true" (a dropdown trigger whose section contains it). The
   static draft only ever emits "page"; the WordPress nav walker needs both. */
.nav-link[aria-current] { color: var(--brand-text); }
.nav-link[aria-current]::after {
  content: "";
  position: absolute;
  left: var(--space-2);
  right: var(--space-2);
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
/* Sized to the 12x8 viewBox so the chevron doesn't letterbox down to a dot,
   and shrink-proofed — as a flex child it otherwise collapses to nothing when
   the nav row gets tight, and only some carets disappear. */
.nav-caret {
  width: 11px;
  height: 8px;
  flex-shrink: 0;
  transition: transform var(--duration) var(--ease);
}
.nav-link[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }

.nav-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  /* see .nav-menu::before below — the 8px gap has to stay hoverable */
  min-width: 250px;
  padding: var(--space-2);
  margin: 0;
  list-style: none;
  background: var(--surface-raised);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: none;
}
.nav-item[data-open="true"] .nav-menu { display: block; }

/* Invisible bridge across the gap between the trigger and the menu. Without
   it, moving the pointer down from the nav link exits .nav-item mid-gap and
   the mouseleave handler closes the menu before you can reach it. */
.nav-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}

.nav-menu li { margin: 0; }
.nav-menu a {
  display: block;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}
.nav-menu a:hover { background: var(--brand-subtle); color: var(--brand-text); }
.nav-menu .nav-menu-note {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 400;
}

/* --space-4 matches .header-inner's gap, so Join → Donate → theme toggle sit
   on one even rhythm across the two containers. */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
}

/* The two icon buttons are a pair, so they stay tighter than the run above. */
.theme-toggle + .menu-toggle { margin-left: calc(var(--space-4) * -1 + var(--space-2)); }

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  border: var(--border-width) solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background-color var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
}
.theme-toggle:hover { background: var(--bg-muted); border-color: var(--border-strong); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme]) .theme-toggle .icon-moon { display: block; }
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: var(--radius);
  border: var(--border-width) solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1200px) {
  .menu-toggle { display: grid; }

  /* .nav leaves the flex flow below this breakpoint, so the actions cluster
     has to claim the free space itself. */
  .header-actions { margin-left: auto; }

  /* Anchored to .site-header, not the viewport. `position: fixed` cannot be
     used here: the header's backdrop-filter makes it the containing block for
     fixed descendants, so viewport-relative insets collapse the drawer to a
     sliver. Absolute + top:100% is correct under either containing block. */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-height));
    max-height: calc(100dvh - var(--header-height));
    background: var(--bg);
    border-top: var(--border-width) solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: var(--space-5);
    padding-bottom: var(--space-9);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: none;
  }
  .nav[data-open="true"] { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: var(--border-width) solid var(--border); }
  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: var(--space-4) var(--space-2);
    font-size: var(--text-md);
    border-radius: 0;
  }
  .nav-link[aria-current]::after { display: none; }
  .nav-menu {
    position: static;
    display: none;
    border: 0;
    box-shadow: none;
    background: var(--bg-subtle);
    border-radius: var(--radius);
    margin-bottom: var(--space-3);
  }
  .nav-item[data-open="true"] .nav-menu { display: block; }
  .nav .btn { width: 100%; margin-top: var(--space-4); }
  .nav .btn.nav-donate { display: inline-flex; }
}

@media (max-width: 640px) {
  .header-actions .btn.header-donate { display: none; }
}

@media (max-width: 480px) {
  .brand-name { font-size: var(--text-base); }
  .brand-sub { font-size: var(--space-2); }
  .brand-mark { width: 36px; height: 36px; }
}

/* --- Mobile quick actions ------------------------------------------------
   Registering for an event and donating are the two things the chapter most
   needs reachable on a phone. Below the drawer breakpoint they get a fixed
   bottom bar instead of living behind the hamburger. */

.mobile-actions {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-top: var(--border-width) solid var(--border);
  box-shadow: 0 -4px 18px rgba(6, 22, 51, 0.12);
}
.mobile-actions .btn {
  flex: 1 1 0;
  padding-inline: var(--space-3);
  min-height: 48px; /* comfortable touch target */
}

@media (max-width: 720px) {
  .mobile-actions { display: flex; }
  /* Extend the footer's own background behind the bar so no strip of page
     background shows through under it. */
  .site-footer .footer-bottom { padding-bottom: calc(var(--space-5) + 76px); }
}

/* -------------------------------------------------------------- 5 Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              color var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn--primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--text-on-brand);
}
.btn--primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: var(--text-on-brand);
}

.btn--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #1A1405;
}
.btn--accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #1A1405; }

.btn--outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--outline:hover { border-color: var(--brand); color: var(--brand-text); background: var(--brand-subtle); }

/* For use on dark hero / inverse panels */
.btn--ghost-light {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
  color: #fff;
}

.btn--lg { padding: var(--space-4) var(--space-6); font-size: var(--text-base); }
.btn--sm { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  color: var(--brand-text);
}
.link-arrow svg { width: 14px; height: 14px; transition: transform var(--duration) var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ----------------------------------------------------------------- 6 Hero */

.hero {
  position: relative;
  background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-to) 100%);
  color: var(--hero-text);
  overflow: hidden;
  isolation: isolate;
}

/* Field of stars — a US service-insignia motif rendered in CSS so the draft
   carries no stock imagery. Replace or overlay with approved photography. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(201, 162, 39, 0.20) 0, transparent 42%),
    radial-gradient(circle at 82% 12%, rgba(76, 130, 232, 0.28) 0, transparent 46%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cpath d='M36 22l3.3 6.7 7.4 1.1-5.3 5.2 1.2 7.4L36 39l-6.6 3.4 1.2-7.4-5.3-5.2 7.4-1.1z' fill='%23ffffff' fill-opacity='0.05'/%3E%3C/svg%3E");
}

.hero-inner {
  position: relative;
  padding-block: clamp(var(--space-9), 9vw, var(--space-10));
  max-width: 780px;
}
.hero .eyebrow { color: var(--gold-300); }
.hero .eyebrow::before { background: var(--gold-300); }
.hero h1 { color: #fff; margin-bottom: var(--space-5); }
.hero p.lede { color: rgba(255, 255, 255, 0.82); font-size: var(--text-lg); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}
.hero-chip .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-300);
}

/* Interior page header — shorter, same family */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-to) 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cpath d='M36 22l3.3 6.7 7.4 1.1-5.3 5.2 1.2 7.4L36 39l-6.6 3.4 1.2-7.4-5.3-5.2 7.4-1.1z' fill='%23ffffff' fill-opacity='0.05'/%3E%3C/svg%3E");
}
.page-hero-inner { padding-block: clamp(var(--space-7), 6vw, var(--space-9)); max-width: 760px; }
.page-hero h1 { color: #fff; margin-bottom: var(--space-3); }
.page-hero .lede { color: rgba(255, 255, 255, 0.82); }
.page-hero .eyebrow { color: var(--gold-300); }
.page-hero .eyebrow::before { background: var(--gold-300); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}
.breadcrumb li { margin: 0; color: rgba(255, 255, 255, 0.65); }
.breadcrumb a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb li + li::before { content: "/"; margin-right: var(--space-2); opacity: 0.5; }

/* ---------------------------------------------------------------- 7 Cards */

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface-raised);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}
.card--link:hover {
  border-color: var(--border-brand);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card h3 { margin-bottom: var(--space-2); }
/* A card or event heading may be a link — it is better link text than a row of
   identical "Read article" links, and better for anyone navigating by link.
   Inheriting the colour and dropping the underline means a linked heading
   renders exactly like a plain one, so this changes no pixels; the underline
   appears on hover, where it is a useful affordance rather than noise. */
.card h3 a,
.event-card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover,
.event-card h3 a:hover { text-decoration: underline; }
.card p { color: var(--text-muted); font-size: var(--text-sm); }
.card .link-arrow { margin-top: auto; padding-top: var(--space-4); }

/* --- The card a section is actually about ---------------------------------
   One card in a grid carrying the thing the chapter most wants clicked. It
   Weight, not width. Spanning two columns was tried and left the fourth card
   stranded alone on a second row with three empty cells beside it — the grid
   stopped looking deliberate, which cost more attention than the span bought.
   So the emphasis is carried by the brand border and a larger heading, and the
   row stays whole.

   The border rather than a filled background: the grid reads as one set of
   cards, and a filled one would read as a different kind of thing. */
.card--feature {
  border-color: var(--accent);
  box-shadow: var(--glow-accent);
}

.card--feature h3 { font-size: var(--text-xl); font-weight: 700; }
.card--feature p { font-size: var(--text-base); color: var(--text); }

/* The arrow link carries the accent too, so the whole card reads as one
   emphasis rather than a gold box with a blue link in it. */
.card--feature .link-arrow { color: var(--accent-text); font-weight: 600; }

.card--feature:hover {
  border-color: var(--accent-hover);
  box-shadow: var(--glow-accent), var(--shadow);
}

.card--flush { padding: 0; overflow: hidden; }
.card-body { padding: var(--space-5); display: flex; flex-direction: column; flex: 1; }

/* Media slot: a labeled placeholder until approved American imagery lands. */
.media {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, var(--blue-800), var(--blue-600));
  display: grid;
  place-items: center;
  overflow: hidden;
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M24 14l2.2 4.5 5 .7-3.6 3.5.8 4.9-4.4-2.3-4.4 2.3.8-4.9-3.6-3.5 5-.7z' fill='%23ffffff' fill-opacity='0.08'/%3E%3C/svg%3E");
}
/* A real photo fills the slot and covers the gradient + star texture, which
   then act as the loading placeholder. */
.media > img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-label {
  position: relative;
  z-index: 1;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  border: 1px dashed rgba(255, 255, 255, 0.45);
  border-radius: var(--radius);
  text-align: center;
}
.media--square { aspect-ratio: 1; }
.media--wide { aspect-ratio: 21 / 9; }

/* Placeholders shouldn't out-shout real content on a dark page. */
:root[data-theme="dark"] .media {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-800));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .media {
    background: linear-gradient(135deg, var(--blue-900), var(--blue-800));
  }
}

/* --- Event card --- */
.event-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: var(--space-5);
  align-items: start;
  background: var(--surface-raised);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.event-card:hover { border-color: var(--border-brand); box-shadow: var(--shadow); }

.date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-2);
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  text-align: center;
  line-height: 1;
}
.date-block .month {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--gold-200);
}
.date-block .day {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-top: var(--space-1);
}
.date-block .year { font-size: var(--text-xs); opacity: 0.75; margin-top: var(--space-1); }

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin: var(--space-3) 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.event-meta span { display: inline-flex; align-items: center; gap: var(--space-2); }
.event-meta svg { width: 15px; height: 15px; color: var(--text-subtle); flex-shrink: 0; }

.event-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); }

@media (max-width: 560px) {
  .event-card { grid-template-columns: minmax(0, 1fr); }
  .date-block { flex-direction: row; gap: var(--space-2); align-items: baseline; width: fit-content; padding: var(--space-2) var(--space-4); }
  .date-block .day { font-size: var(--text-xl); margin: 0; }
  .date-block .year { margin: 0; }
}

/* --- Badges & tags --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-3);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  background: var(--brand-subtle);
  color: var(--brand-text);
  border: 1px solid var(--brand-subtle-border);
}
.badge--accent { background: var(--accent-subtle); color: var(--accent-text); border-color: var(--accent); }
.badge--success { background: var(--success-bg); color: var(--success-fg); border-color: transparent; }
.badge--neutral { background: var(--bg-muted); color: var(--text-muted); border-color: var(--border); }

/* --- Person card --- */
.person {
  text-align: center;
  background: var(--surface-raised);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.person .avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto var(--space-4);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--blue-700), var(--blue-500));
  color: #fff;
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 3px solid var(--accent);
}
.person h3 { font-size: var(--text-md); margin-bottom: var(--space-1); }
.person .role {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: var(--space-2);
}
.person .org { font-size: var(--text-sm); color: var(--text-muted); margin: 0; }

/* Headshot state. The draft's roster renders initials in .avatar because the
   chapter has no photographs yet — docs/content-notes.md Priority 1. When one
   is added the image simply fills the same circle, so the roster gains photos
   without a redesign and can be published before they exist. */
.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* --- Stats --- */
/* Deep blue in both themes — inverting it in dark mode produced a white slab
   that broke the page rhythm. */
.stat-band {
  background: var(--blue-950);
  color: #fff;
  border-block: 1px solid transparent;
}
:root[data-theme="dark"] .stat-band {
  background: var(--blue-900);
  border-block-color: var(--border);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .stat-band {
    background: var(--blue-900);
    border-block-color: var(--border);
  }
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
}
@media (max-width: 820px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.stat { text-align: center; padding: var(--space-4) var(--space-2); }
.stat-value {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 1.4rem + 2.4vw, var(--text-4xl));
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}
.stat-label {
  display: block;
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}
:root[data-theme="dark"] .stat-value { color: var(--gold-300); }

/* --- Sector / icon tiles --- */
.sector {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  border-top: 3px solid var(--accent);
}
.sector-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--brand-subtle);
  color: var(--brand-text);
}
.sector-icon svg { width: 24px; height: 24px; }
.sector h3 { font-size: var(--text-md); font-family: var(--font-sans); font-weight: 700; margin: 0; }
.sector p { margin: 0; font-size: var(--text-sm); color: var(--text-muted); }

/* --- Tier / pricing card --- */
.tier {
  display: flex;
  flex-direction: column;
  background: var(--surface-raised);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
}
.tier--featured {
  border-color: var(--accent);
  border-width: 2px;
  box-shadow: var(--shadow);
  position: relative;
}
/* The flag was a CSS `content: "Most popular"` string. That put a marketing
   claim about the chapter's own pricing somewhere the chapter could not edit
   it — not in the CMS, not in a template, not translatable, and only
   inconsistently exposed to assistive technology. It is a real element now, so
   the board can reword it to "Best value", or drop it and keep the gold
   border. Identical rules, so identical rendering. */
.tier-flag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-1) var(--space-4);
  background: var(--accent);
  color: #1A1405;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  white-space: nowrap;
}
.tier h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.tier .price {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}
.tier .price span { font-family: var(--font-sans); font-size: var(--text-sm); font-weight: 600; color: var(--text-muted); }
.tier .tier-desc { font-size: var(--text-sm); color: var(--text-muted); margin: var(--space-4) 0; }
.tier .btn { margin-top: auto; }

.check-list { list-style: none; padding: 0; margin: 0 0 var(--space-6); }
.check-list li {
  position: relative;
  padding-left: var(--space-6);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* --- CTA band --- */
.cta-band {
  position: relative;
  background: linear-gradient(120deg, var(--blue-800), var(--blue-600));
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-6), 5vw, var(--space-9));
  overflow: hidden;
  isolation: isolate;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cpath d='M36 22l3.3 6.7 7.4 1.1-5.3 5.2 1.2 7.4L36 39l-6.6 3.4 1.2-7.4-5.3-5.2 7.4-1.1z' fill='%23ffffff' fill-opacity='0.06'/%3E%3C/svg%3E");
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 58ch; }
.cta-band .eyebrow { color: var(--gold-300); }
.cta-band .eyebrow::before { background: var(--gold-300); }

/* --- Sponsor tiles --- */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-4);
}
.sponsor-tile {
  display: grid;
  place-items: center;
  min-height: 104px;
  padding: var(--space-4);
  border: var(--border-width) dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-align: center;
  text-decoration: none;
  transition: border-color var(--duration) var(--ease), color var(--duration) var(--ease);
}
.sponsor-tile:hover { border-color: var(--brand); color: var(--brand-text); }

/* Logo state. The bare .sponsor-tile is a dashed placeholder reading "Gold
   sponsor logo"; once a real logo is attached the dash is wrong — it reads as
   an empty slot. --logo swaps to a solid border and lets the mark sit at its
   own aspect ratio inside the tile. */
.sponsor-tile--logo { border-style: solid; }
.sponsor-tile img {
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* --- Timeline --- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}
.timeline li {
  position: relative;
  padding-left: var(--space-7);
  margin-bottom: var(--space-6);
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--accent);
}
.timeline .t-year {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: var(--space-1);
}
.timeline h3 { font-size: var(--text-md); margin-bottom: var(--space-2); }
.timeline p { font-size: var(--text-sm); color: var(--text-muted); margin: 0; }

/* --- Accordion --- */
.accordion { border-top: var(--border-width) solid var(--border); }
.accordion details {
  border-bottom: var(--border-width) solid var(--border);
}
.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "";
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform var(--duration) var(--ease);
}
.accordion details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.accordion .accordion-body { padding-bottom: var(--space-5); color: var(--text-muted); max-width: 72ch; }

/* --- Table --- */
.table-wrap { overflow-x: auto; border: var(--border-width) solid var(--border); border-radius: var(--radius-lg); }
table.data {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
table.data th,
table.data td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: var(--border-width) solid var(--border);
}
table.data thead th {
  background: var(--bg-subtle);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--bg-subtle); }

/* --- Note / callout --- */
.note {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  border: var(--border-width) solid var(--brand-subtle-border);
  background: var(--brand-subtle);
  font-size: var(--text-sm);
}
.note svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--brand-text); margin-top: 2px; }
.note h4 { margin-bottom: var(--space-2); }
.note p { margin-bottom: 0; color: var(--text); }
.note--accent { border-color: var(--accent); background: var(--accent-subtle); }
.note--accent svg { color: var(--accent-text); }

/* The chapter logo is a fixed-color raster whose blue goes muddy on dark
   surfaces, so it always sits on its own white field. */
.chapter-logo {
  width: 100%;
  max-width: 240px;
  height: auto;
  margin-inline: auto;
  background: #fff;
  padding: var(--space-4);
  border-radius: var(--radius);
}

/* --- Sidebar panel --- */
.panel {
  background: var(--bg-subtle);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.panel + .panel { margin-top: var(--space-5); }
.panel h3 { font-size: var(--text-md); font-family: var(--font-sans); }
.panel ul { list-style: none; padding: 0; margin: 0; }
.panel ul li { margin-bottom: var(--space-3); font-size: var(--text-sm); }
.panel ul li:last-child { margin-bottom: 0; }

/* ----------------------------------------------------------------- 9 Forms */

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label { font-size: var(--text-sm); font-weight: 700; }
.field .hint { font-size: var(--text-xs); color: var(--text-muted); }
.req { color: var(--danger-fg); }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="search"], select, textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: inherit;
  font-size: var(--text-base);
  color: var(--text);
  background: var(--surface);
  border: var(--border-width) solid var(--border-strong);
  border-radius: var(--radius);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
input:hover, select:hover, textarea:hover { border-color: var(--brand); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-subtle);
}
textarea { min-height: 150px; resize: vertical; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A6B8C' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  background-size: 12px;
  padding-right: var(--space-8);
}

.choice-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.choice {
  position: relative;
  flex: 1 1 120px;
}
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: grid;
  place-items: center;
  padding: var(--space-4);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 700;
  background: var(--surface);
  transition: border-color var(--duration) var(--ease), background-color var(--duration) var(--ease);
}
.choice input:checked + span { border-color: var(--accent); background: var(--accent-subtle); }
.choice input:focus-visible + span { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

.checkbox { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-sm); }
.checkbox input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--brand); flex-shrink: 0; }

/* ---------------------------------------------------------------- 10 Footer */

.site-footer {
  background: var(--blue-950);
  color: rgba(255, 255, 255, 0.72);
  padding-top: var(--space-9);
  border-top: 3px solid var(--accent);
}
.site-footer h4 {
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.site-footer a { color: rgba(255, 255, 255, 0.72); text-decoration: none; font-size: var(--text-sm); }
.site-footer a:hover { color: var(--gold-300); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: var(--space-3); }

.footer-grid {
  display: grid;
  /* Brand, then four link columns. The brand keeps more room than a link
     column because it carries a paragraph, but less than it did at three:
     five tracks in the same container means every column is narrower, and
     the blurb wraps better than a list of link labels does. */
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: var(--space-7) var(--space-5);
  padding-bottom: var(--space-8);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

.footer-brand .brand { color: #fff; margin-bottom: var(--space-4); }
.footer-brand .brand-mark { color: #fff; }
.footer-brand .brand-sub { color: rgba(255, 255, 255, 0.6); }
.footer-brand p { font-size: var(--text-sm); max-width: 40ch; }

.social-row { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.social-row a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
}
.social-row a:hover { background: var(--accent); border-color: var(--accent); color: #1A1405; }
.social-row svg { width: 17px; height: 17px; }

.newsletter { display: flex; gap: var(--space-2); margin-top: var(--space-4); }
/* The events-page signup is a centered block; the footer's is not. */
.newsletter--centered { max-width: 420px; margin: var(--space-6) auto 0; }
.newsletter input {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
  font-size: var(--text-sm);
  padding: var(--space-3);
}
.newsletter input::placeholder { color: rgba(255, 255, 255, 0.45); }
.newsletter input:focus { box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.3); border-color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--text-xs);
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: var(--space-5); }
.footer-bottom ul li { margin: 0; }
.footer-bottom a { font-size: var(--text-xs); }

/* ------------------------------------------------------------- 11 Utilities */

.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;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-0 { margin-bottom: 0; }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.stack > * + * { margin-top: var(--space-4); }
.flex-center { display: flex; align-items: center; gap: var(--space-3); }
/* Doubled selectors raise these to 0,2,0 so they beat component rules that set
   a size on a descendant — `.card p` and `.sector p` are both 0,1,1 and would
   otherwise win. The inline styles these replaced had no such problem. Kept as
   specificity rather than !important, which would force escalation later. */
.text-xs.text-xs { font-size: var(--text-xs); }
.text-sm.text-sm { font-size: var(--text-sm); }
.mx-auto { margin-inline: auto; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.w-auto { width: auto; }
.w-full { width: 100%; }

/* ==========================================================================
   Component modifiers
   ==========================================================================
   These were inline style attributes in the static draft. Promoted to classes
   so the WordPress port has something to attach to: a template can emit a
   class, and a block pattern can carry one, but neither can reproduce a
   hand-written style attribute. Declared after their base components so the
   single-class modifiers win on source order rather than specificity.       */

/* Fieldsets exist only to group the donate form's radio sets; the browser
   default border and padding are never wanted. */
fieldset { border: 0; padding: 0; margin: 0; }
legend { padding: 0; }
/* The donate form is a .stack, whose `> * + *` rule outranks the bare element
   selector above. Fieldsets there space themselves via their own children. */
.stack > fieldset { margin: 0; }
.legend-label { font-size: var(--text-sm); font-weight: 700; margin-bottom: var(--space-3); }

/* Frequency choices are words, not amounts, so they drop the serif display
   treatment .choice span applies to the dollar figures. */
.choice-row--text .choice span {
  font-family: var(--font-sans);
  font-size: var(--text-base);
}

.media--rounded { border-radius: var(--radius-xl); }
.media--feature { aspect-ratio: auto; min-height: 320px; }

.split--center { align-items: center; }
.split--flush { gap: 0; align-items: stretch; }

.card-body--feature {
  justify-content: center;
  padding: clamp(var(--space-6), 4vw, var(--space-8));
}

.note--narrow { max-width: var(--container-narrow); margin-inline: auto; }

/* Compact stat pairs inside dark hero panels — smaller than the stat band on
   a page's own .stat-grid, and captioned rather than labelled. */
.stat-value--sm { font-size: var(--text-2xl); }
.stat-value--accent { color: var(--accent-text); font-size: var(--text-3xl); }
/* Qualified with the tag so it outranks `.cta-band p`, which these sit inside
   and which would otherwise win the colour at equal specificity. */
p.stat-note { color: rgba(255, 255, 255, 0.8); font-size: var(--text-sm); }

.hero-note {
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-note {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--gold-300);
}

/* Sponsor grids scale with tier: gold tiles read larger than bronze. */
.sponsor-grid--lg { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.sponsor-grid--lg .sponsor-tile { min-height: 132px; }
.sponsor-grid--sm { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.sponsor-grid--sm .sponsor-tile { min-height: 84px; }

.sponsor-tier-label {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-muted);
}
.sponsor-tier-label--accent { color: var(--accent-text); }

/* Decorative rule used to break up long content pages */
.rule-ribbon {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg,
    var(--brand) 0%, var(--brand) 40%,
    var(--accent) 40%, var(--accent) 60%,
    var(--brand) 60%);
}

@media print {
  .site-header, .site-footer, .btn, .theme-toggle { display: none !important; }
  body { background: #fff; color: #000; }
}
