/* =============================================================
   City of Floresville — "Civic Gazette" Design System
   An editorial-broadsheet aesthetic for a municipal website.
   Newsreader (display serif) + Public Sans (UI sans).
   WCAG 2.1 AA · Mobile-first · Zero dependencies.
   ============================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Ink — true neutrals with a slight cool cast */
  --ink:        #0c1116;
  --ink-2:      #1f262d;
  --ink-3:      #4a5360;
  --ink-4:      #707984;
  --ink-5:      #a8aeb6;
  --ink-6:      #cbd0d6;

  /* Paper — warm cream that reads as newsprint */
  --cream:      #f5f0e4;
  --cream-2:    #efe8d6;
  --paper:      #fbf8f0;
  --white:      #ffffff;

  /* Rules — heavy ink rules and subtle dividers */
  --rule:        #d8d3c4;
  --rule-strong: #1f262d;

  /* Brand — refined oxblood, civic ink-blue, brass */
  --brand:        #6b1414;
  --brand-deep:   #4a0d0d;
  --brand-soft:   #f4dddd;
  --brand-tint:   #fbeded;
  --ink-blue:     #1a2942;
  --brass:        #9c7424;
  --brass-soft:   #f3e9c8;
  --forest:       #1d4f3f;
  --forest-soft:  #d6e5dd;

  /* Functional */
  --alert-red:    #9b1c1c;
  --alert-amber:  #8b5e00;
  --alert-amber-bg: #fdf2c4;
  --alert-blue:   #1e478e;
  --alert-blue-bg: #dbe7fb;

  /* Semantic */
  --bg:            var(--cream);
  --bg-paper:      var(--paper);
  --bg-elevated:   var(--white);
  --text:          var(--ink);
  --text-2:        var(--ink-2);
  --text-muted:    var(--ink-3);
  --text-subtle:   var(--ink-4);
  --link:          var(--brand);
  --link-hover:    var(--brand-deep);
  --border:        var(--rule);
  --border-strong: var(--rule-strong);

  /* Type — Newsreader display + Public Sans body */
  --font-display: "Newsreader", "Source Serif Pro", "Iowan Old Style", Georgia, serif;
  --font-sans:    "Public Sans", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Fluid type — broadsheet scale */
  --t-xs:    clamp(0.75rem, 0.72rem + 0.12vw, 0.8125rem);
  --t-sm:    clamp(0.8125rem, 0.79rem + 0.15vw, 0.875rem);
  --t-base:  clamp(1rem, 0.97rem + 0.18vw, 1.0625rem);
  --t-md:    clamp(1.0625rem, 1.02rem + 0.22vw, 1.1875rem);
  --t-lg:    clamp(1.1875rem, 1.13rem + 0.3vw, 1.3125rem);
  --t-xl:    clamp(1.375rem, 1.28rem + 0.5vw, 1.625rem);
  --t-2xl:   clamp(1.625rem, 1.5rem + 0.7vw, 2rem);
  --t-3xl:   clamp(2rem, 1.78rem + 1.1vw, 2.625rem);
  --t-4xl:   clamp(2.5rem, 2.15rem + 1.7vw, 3.5rem);
  --t-5xl:   clamp(3rem, 2.5rem + 2.5vw, 4.625rem);
  --t-6xl:   clamp(3.75rem, 3rem + 3.6vw, 6rem);

  /* Spacing — 4pt grid */
  --s-1: 0.25rem;  --s-2: 0.5rem;  --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.25rem;  --s-6: 1.5rem;  --s-7: 1.75rem; --s-8: 2rem;
  --s-10: 2.5rem;  --s-12: 3rem;   --s-14: 3.5rem; --s-16: 4rem;
  --s-20: 5rem;    --s-24: 6rem;   --s-32: 8rem;

  /* Radius — restrained, mostly squared */
  --r-xs: 2px;
  --r-sm: 4px;
  --r:    6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-full: 9999px;

  /* Shadow — subtle, paper-like */
  --shadow-xs: 0 1px 0 rgba(12, 17, 22, 0.06);
  --shadow-sm: 0 1px 2px rgba(12, 17, 22, 0.08);
  --shadow:    0 4px 12px -4px rgba(12, 17, 22, 0.12);
  --shadow-md: 0 12px 32px -12px rgba(12, 17, 22, 0.18);
  --shadow-lg: 0 24px 56px -16px rgba(12, 17, 22, 0.22);

  /* Layout */
  --container:        1240px;
  --container-wide:   1400px;
  --container-narrow: 760px;
  --header-h:         88px;
  --gutter:           clamp(1rem, 2.5vw + 0.5rem, 2.5rem);

  /* Motion */
  --ease:        cubic-bezier(0.2, 0.6, 0.2, 1);
  --duration:    220ms;
  --duration-fast: 140ms;
}

/* Dark mode — newspaper-at-night
   NOTE: --paper stays cream always (used as fixed light text on always-dark surfaces).
   --ink shifts to a slightly elevated dark in dark mode so always-dark components
   (.gov-banner, .site-footer, .pay-card, .facts) remain distinguishable from --bg. */
[data-theme="dark"] {
  --bg:           #0a0d12;
  --bg-paper:     #11161c;
  --bg-elevated:  #161c23;
  --ink:          #161c23;
  --text:         #f1ece1;
  --text-2:       #d8d3c4;
  --text-muted:   #a4a8b0;
  --text-subtle:  #7c8088;
  --border:       #232a33;
  --border-strong:#3a414b;
  --rule:         #232a33;
  --rule-strong:  #3a414b;
  --brand:        #d65555;
  --brand-deep:   #e88080;
  --brand-soft:   #2a1414;
  --brand-tint:   #1a0e0e;
  --brass:        #d4a946;
  --brass-soft:   #2a2010;
  --forest-soft:  #112720;
  --shadow-xs:    0 1px 0 rgba(0,0,0,0.4);
  --shadow-sm:    0 1px 2px rgba(0,0,0,0.5);
  --shadow:       0 6px 18px rgba(0,0,0,0.55);
  --shadow-md:    0 16px 36px rgba(0,0,0,0.6);
  --shadow-lg:    0 28px 64px rgba(0,0,0,0.65);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:           #0a0d12;
    --bg-paper:     #11161c;
    --bg-elevated:  #161c23;
    --ink:          #161c23;
    --text:         #f1ece1;
    --text-2:       #d8d3c4;
    --text-muted:   #a4a8b0;
    --text-subtle:  #7c8088;
    --border:       #232a33;
    --border-strong:#3a414b;
    --rule:         #232a33;
    --rule-strong:  #3a414b;
    --brand:        #d65555;
    --brand-deep:   #e88080;
    --brand-soft:   #2a1414;
    --brand-tint:   #1a0e0e;
    --brass:        #d4a946;
  }
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
  -webkit-tap-highlight-color: transparent;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--t-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "ss02", "kern";
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  overflow-x: hidden;
}

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

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in oklab, var(--link) 40%, transparent);
  transition: color var(--duration) var(--ease), text-decoration-color var(--duration);
}
a:hover {
  color: var(--link-hover);
  text-decoration-color: currentColor;
}

button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

::selection {
  background: var(--brand);
  color: var(--paper);
}

/* Headings — Newsreader, tight, generous size */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 var(--s-4);
  font-optical-sizing: auto;
  text-wrap: balance;
}
h1 { font-size: var(--t-5xl); letter-spacing: -0.025em; font-weight: 500; }
h2 { font-size: var(--t-4xl); letter-spacing: -0.02em; }
h3 { font-size: var(--t-2xl); }
h4 { font-size: var(--t-xl); }
h5 { font-size: var(--t-lg); }
h6 {
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--text-muted);
}

p { margin: 0 0 1em; max-width: 70ch; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: var(--t-md);
  color: var(--text-2);
  line-height: 1.55;
  max-width: 62ch;
}

ul, ol { padding-inline-start: 1.25rem; }
li { margin-bottom: 0.25rem; }

hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: var(--s-12) 0;
}

/* ---------- 3. Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-wide   { max-width: var(--container-wide); }
.container-narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section-tight { padding-block: clamp(2rem, 4vw, 3rem); }

.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-10); }

.cluster { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

/* Hidden but accessible */
.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;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--s-4);
  z-index: 999;
  background: var(--ink);
  color: var(--paper);
  padding: var(--s-3) var(--s-5);
  font-weight: 700;
  text-decoration: none;
  font-size: var(--t-sm);
  border: 2px solid var(--brass);
  transition: top var(--duration) var(--ease);
}
.skip-link:focus { top: var(--s-4); color: var(--paper); }

/* ---------- 4. Editorial primitives ---------- */
/* Section label / kicker — small caps, ruled */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-sans);
  font-size: var(--t-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--brand);
}
.kicker.kicker-center::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--brand);
}

/* Heavy double rule (newspaper section break) */
.rule-double {
  border: 0;
  height: 6px;
  background: var(--text);
  border-top: 1px solid var(--text);
  border-bottom: 1px solid var(--text);
  background-clip: content-box;
  padding-block: 2px;
  margin: 0;
}
.rule-double::after { content: none; }

/* Single ink rule */
.rule-ink {
  border: 0;
  height: 2px;
  background: var(--text);
  margin: 0;
}

/* Hairline rule */
.rule-hair {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* Section header — kicker + headline + dek */
.section-head {
  display: grid;
  gap: var(--s-3);
  margin-bottom: var(--s-10);
  max-width: 70ch;
}
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .kicker { justify-content: center; }
.section-head h2 { margin: var(--s-2) 0; }
.section-head .dek {
  font-size: var(--t-md);
  color: var(--text-2);
  line-height: 1.5;
  max-width: 62ch;
}

.section-head-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--s-6);
  margin-bottom: var(--s-10);
  flex-wrap: wrap;
  padding-bottom: var(--s-5);
  border-bottom: 2px solid var(--text);
}
.section-head-row .head-text { max-width: 60ch; }
.section-head-row h2 { margin: var(--s-2) 0 0; }

/* Date stamp — mono numerals, civic */
.datestamp {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  font-feature-settings: "tnum";
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 0.875rem 1.5rem;
  min-height: 48px;
  border: 2px solid transparent;
  border-radius: var(--r);
  font-family: var(--font-sans);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--duration) var(--ease),
              border-color var(--duration),
              color var(--duration),
              box-shadow var(--duration);
  white-space: nowrap;
  user-select: none;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; stroke: currentColor; }

.btn-primary {
  background: var(--brand);
  color: var(--paper);
  border-color: var(--brand);
}
.btn-primary:hover {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  color: var(--paper);
  text-decoration: none;
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--bg-paper);
  text-decoration: none;
}
.btn-ghost::after {
  content: "→";
  font-family: var(--font-sans);
  margin-left: var(--s-1);
  transition: transform var(--duration) var(--ease);
}
.btn-ghost:hover::after { transform: translateX(3px); }

.btn-lg { padding: 1.125rem 2rem; font-size: var(--t-base); min-height: 56px; }
.btn-sm { padding: 0.5rem 0.875rem; font-size: var(--t-xs); min-height: 36px; }

.btn-icon {
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  color: var(--text);
  border: 2px solid transparent;
  border-radius: var(--r);
}
.btn-icon:hover {
  background: var(--bg-paper);
  border-color: var(--border-strong);
}

/* ---------- 6. Official banner (.gov-style) ---------- */
.gov-banner {
  background: var(--ink);
  color: var(--paper);
  font-size: var(--t-xs);
  padding: 0.5rem 0;
  font-family: var(--font-sans);
}
.gov-banner .container {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.gov-banner svg {
  width: 14px; height: 14px;
  stroke: var(--brass);
  flex-shrink: 0;
}
.gov-banner .star {
  display: inline-block;
  width: 14px; height: 14px;
  background: var(--brass);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  flex-shrink: 0;
}

/* ---------- 7. Alert bar ---------- */
.alert-bar {
  background: var(--alert-amber-bg);
  color: var(--alert-amber);
  border-bottom: 2px solid var(--alert-amber);
  font-size: var(--t-sm);
  padding: 0.75rem 0;
  font-family: var(--font-sans);
  font-weight: 500;
}
.alert-bar .container {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.alert-bar strong { color: var(--ink); font-weight: 700; }
.alert-bar a {
  color: var(--alert-amber);
  text-decoration: underline;
  font-weight: 700;
  margin-left: auto;
}
.alert-bar a:hover { color: var(--ink); }
.alert-bar svg {
  width: 18px; height: 18px;
  stroke: currentColor;
  stroke-width: 2.5;
  flex-shrink: 0;
}
[data-theme="dark"] .alert-bar { background: #2a2310; color: #e5c97a; border-color: #b8902c; }
[data-theme="dark"] .alert-bar strong { color: #f5e8b0; }
[data-theme="dark"] .alert-bar a { color: #e5c97a; }

/* ---------- 8. Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--duration), background var(--duration);
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  min-height: var(--header-h);
  padding-block: var(--s-3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 500;
  flex-shrink: 0;
}
.brand:hover { color: var(--text); text-decoration: none; }

.brand-seal {
  width: 56px; height: 56px;
  color: var(--brand);
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 4px;
}
.brand-text .name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand-text .tag {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

/* Nav */
.primary-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}
.primary-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}
.primary-nav a {
  display: inline-flex;
  align-items: center;
  padding: 1rem 0.875rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: var(--t-sm);
  font-weight: 600;
  position: relative;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: color var(--duration), border-color var(--duration);
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--brand);
  border-bottom-color: var(--brand);
  text-decoration: none;
}

.has-menu { position: relative; }
.has-menu > a::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-left: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.6;
}
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 580px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-top: 3px solid var(--brand);
  box-shadow: var(--shadow-md);
  padding: var(--s-5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--duration), transform var(--duration), visibility var(--duration);
  z-index: 50;
}
.has-menu:hover .mega-menu,
.has-menu:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}
.mega-menu a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--s-3) var(--s-4);
  border-bottom: none;
  border-left: 3px solid transparent;
  text-decoration: none;
  margin: 0;
}
.mega-menu a:hover {
  background: var(--bg-paper);
  border-left-color: var(--brand);
}
.mega-menu .label {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--text);
  font-size: var(--t-sm);
}
.mega-menu .desc {
  font-family: var(--font-sans);
  font-size: var(--t-xs);
  color: var(--text-muted);
  font-weight: 400;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

/* Search */
.search-form {
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-strong);
  padding: 0.375rem 0.5rem 0.375rem 0.875rem;
  min-width: 240px;
  border-radius: 0;
  transition: all var(--duration);
}
.search-form:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.search-form svg {
  width: 16px; height: 16px;
  stroke: var(--text-muted);
  stroke-width: 2;
  flex-shrink: 0;
}
.search-form input {
  background: transparent;
  border: none;
  outline: none;
  padding: 0.5rem 0.625rem;
  flex: 1;
  font-family: var(--font-sans);
  font-size: var(--t-sm);
  color: var(--text);
  min-width: 0;
}
.search-form input::placeholder { color: var(--text-subtle); }
.search-form button {
  background: var(--text);
  color: var(--bg);
  border: none;
  padding: 0.5rem 0.875rem;
  font-family: var(--font-sans);
  font-size: var(--t-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 0;
}
.search-form button:hover { background: var(--brand); color: #fbf8f0; }
@media (max-width: 1180px) {
  .header-actions .search-form { display: none; }
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  background: transparent;
  border: 2px solid var(--border-strong);
  border-radius: 0;
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: currentColor;
  position: relative;
  transition: background var(--duration);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px;
  background: currentColor;
  transition: transform var(--duration);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: var(--s-6) var(--gutter) var(--s-12);
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform var(--duration) var(--ease), visibility var(--duration);
    border-left: 1px solid var(--border);
  }
  .primary-nav[data-open="true"] {
    transform: none;
    visibility: visible;
  }
  .primary-nav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .primary-nav a {
    padding: var(--s-4) var(--s-2);
    font-size: var(--t-md);
    border-bottom: 1px solid var(--border);
    border-left: 3px solid transparent;
    margin: 0;
    width: 100%;
  }
  .primary-nav a:hover, .primary-nav a[aria-current="page"] {
    border-left-color: var(--brand);
    border-bottom-color: var(--border);
    padding-left: var(--s-4);
  }
  .has-menu > a::after { display: none; }
  .mega-menu {
    position: static;
    transform: none;
    min-width: 0;
    box-shadow: none;
    border: none;
    border-top: none;
    padding: 0 0 0 var(--s-6);
    background: transparent;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
  }
  .has-menu[data-expanded="true"] .mega-menu { display: block; }
}

/* ---------- 9. Hero — Editorial Masthead ---------- */
.hero {
  padding: 0;
  background: var(--bg);
}
.hero-masthead {
  border-top: 6px solid var(--text);
  border-bottom: 1px solid var(--text);
  padding: var(--s-3) 0;
  background: var(--bg);
}
.hero-masthead .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
}
.hero-masthead .vol {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.hero-masthead .vol strong { color: var(--text); }
.hero-masthead .motto {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--t-sm);
  color: var(--text-muted);
}

.hero-main {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  border-bottom: 2px solid var(--text);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--s-12);
  align-items: start;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-headline {
  font-size: var(--t-6xl);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 0 0 var(--s-6);
  font-weight: 500;
  text-wrap: balance;
}
.hero-dek {
  font-size: var(--t-lg);
  color: var(--text-2);
  line-height: 1.5;
  max-width: 56ch;
  margin: 0 0 var(--s-8);
  font-family: var(--font-display);
}
.hero-dek::first-letter {
  font-size: 3.6em;
  float: left;
  line-height: 0.85;
  padding: 6px 8px 0 0;
  font-weight: 600;
  color: var(--brand);
  font-family: var(--font-display);
}
.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
  max-width: 560px;
  margin-top: var(--s-8);
}
.hero-actions .btn {
  width: 100%;
  justify-content: flex-start;
  padding-inline: var(--s-5);
}

/* Today's Bulletin panel */
.bulletin {
  background: var(--bg-elevated);
  border: 1px solid var(--text);
  border-top: 8px solid var(--text);
  padding: 0;
}
.bulletin .head {
  background: var(--text);
  color: var(--bg);
  padding: var(--s-3) var(--s-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  font-family: var(--font-sans);
  font-size: var(--t-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.bulletin .head .date {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--brass);
}
.bulletin .body { padding: var(--s-5); }
.bulletin h3 {
  font-size: var(--t-2xl);
  margin: 0 0 var(--s-4);
  line-height: 1.15;
  font-weight: 500;
}
.bulletin .item {
  display: flex;
  gap: var(--s-4);
  padding: var(--s-4) 0;
  border-top: 1px solid var(--border);
  align-items: flex-start;
}
.bulletin .item:first-of-type { border-top: 2px solid var(--text); }
.bulletin .item .when {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  flex-shrink: 0;
  width: 56px;
  padding-top: 3px;
}
.bulletin .item .what {
  flex: 1;
  font-size: var(--t-sm);
  font-family: var(--font-sans);
  color: var(--text);
  font-weight: 500;
}
.bulletin .item .what .meta {
  display: block;
  color: var(--text-muted);
  font-size: var(--t-xs);
  font-weight: 400;
  margin-top: 2px;
}
.bulletin .foot {
  background: var(--bg-paper);
  padding: var(--s-3) var(--s-5);
  border-top: 1px solid var(--border);
  text-align: center;
}
.bulletin .foot a {
  font-family: var(--font-sans);
  font-size: var(--t-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand);
  text-decoration: none;
}
.bulletin .foot a:hover { text-decoration: underline; }

/* Stats strip below hero */
.stats-strip {
  border-bottom: 1px solid var(--border);
  padding: var(--s-6) 0;
  background: var(--bg-paper);
}
.stats-strip .container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-4);
}
@media (max-width: 880px) {
  .stats-strip .container { grid-template-columns: repeat(2, 1fr); gap: var(--s-6); }
}
.stat {
  border-left: 2px solid var(--text);
  padding-left: var(--s-4);
}
.stat .num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--t-3xl);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat .label {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ---------- 10. Quick services / "Top Tasks" ---------- */
.tasks-section { background: var(--bg); }
.tasks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 2px solid var(--text);
  border-left: 1px solid var(--border);
}
@media (max-width: 980px) { .tasks-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .tasks-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .tasks-grid { grid-template-columns: 1fr; } }

.task {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-6) var(--s-5);
  background: var(--bg);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: background var(--duration);
  position: relative;
  min-height: 200px;
}
.task:hover {
  background: var(--bg-paper);
  text-decoration: none;
  color: var(--text);
}
.task:hover .task-icon { background: var(--brand); color: var(--paper); }
.task:hover .task-arrow { transform: translateX(4px); color: var(--brand); }

.task-icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  background: var(--bg-elevated);
  color: var(--brand);
  border: 1.5px solid var(--text);
  border-radius: 0;
  flex-shrink: 0;
  transition: all var(--duration);
}
.task-icon svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.75; }

.task h3 {
  font-family: var(--font-display);
  font-size: var(--t-lg);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.task p {
  font-size: var(--t-sm);
  color: var(--text-muted);
  margin: 0;
  flex: 1;
  line-height: 1.5;
}
.task-arrow {
  font-family: var(--font-sans);
  font-size: var(--t-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--s-2);
  transition: transform var(--duration), color var(--duration);
}

/* ---------- 11. Departments ---------- */
.depts-section { background: var(--bg-paper); border-block: 1px solid var(--border); }

.depts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-bottom: none;
  border-right: none;
}
@media (max-width: 1024px) { .depts-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .depts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .depts-grid { grid-template-columns: 1fr; } }

.dept {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  background: var(--bg-elevated);
  transition: background var(--duration);
  font-family: var(--font-sans);
}
.dept:hover {
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
}
.dept:hover .dept-ico { color: var(--brass); }
.dept:hover .dept-name { color: var(--bg); }
.dept-ico {
  width: 24px; height: 24px;
  color: var(--brand);
  flex-shrink: 0;
  transition: color var(--duration);
}
.dept-ico svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.75; }
.dept-name {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--text);
  transition: color var(--duration);
}

/* ---------- 12. News + Events ---------- */
.news-events {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: var(--s-12);
  align-items: start;
}
@media (max-width: 960px) { .news-events { grid-template-columns: 1fr; } }

.news-list { display: grid; gap: 0; border-top: 2px solid var(--text); }
.news-item {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: var(--s-6);
  padding: var(--s-6) 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  align-items: start;
  transition: background var(--duration), padding var(--duration);
}
.news-item:hover {
  text-decoration: none;
  color: var(--text);
  background: var(--bg-paper);
  padding-inline: var(--s-3);
}
.news-item:hover h3 { color: var(--brand); }
.news-item .meta {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  font-family: var(--font-sans);
}
.news-item .meta .date {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-feature-settings: "tnum";
}
.news-item .meta .tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand);
  border: 1.5px solid var(--brand);
  padding: 3px 8px;
  background: var(--brand-tint);
  width: max-content;
}
.news-item h3 {
  font-family: var(--font-display);
  font-size: var(--t-2xl);
  margin: 0 0 var(--s-2);
  line-height: 1.18;
  font-weight: 500;
  letter-spacing: -0.012em;
  transition: color var(--duration);
}
.news-item p {
  font-size: var(--t-sm);
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
  max-width: 60ch;
}
.news-item .arrow {
  align-self: center;
  font-family: var(--font-sans);
  color: var(--text-muted);
  font-size: var(--t-xl);
}
@media (max-width: 720px) {
  .news-item { grid-template-columns: 1fr; gap: var(--s-3); }
  .news-item .arrow { display: none; }
}

/* Events panel */
.events-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--text);
  border-top: 6px solid var(--text);
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.events-panel .head {
  background: var(--text);
  color: var(--bg);
  padding: var(--s-4) var(--s-5);
  font-family: var(--font-sans);
  font-size: var(--t-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.events-panel .head .count {
  background: var(--brand);
  color: #fbf8f0;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
  letter-spacing: 0;
}
.event-item {
  display: flex;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: background var(--duration);
}
.event-item:hover {
  background: var(--bg-paper);
  text-decoration: none;
  color: var(--text);
}
.event-item:hover .title { color: var(--brand); }
.event-item:last-child { border-bottom: none; }
.event-date {
  flex-shrink: 0;
  width: 52px;
  text-align: center;
  border: 1.5px solid var(--text);
  padding: var(--s-1) 0 var(--s-2);
  font-family: var(--font-display);
}
.event-date .month {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--text);
  color: var(--bg);
  padding: 2px 0;
  font-weight: 700;
}
.event-date .day {
  display: block;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1;
  color: var(--text);
  margin-top: 4px;
  font-feature-settings: "tnum";
}
.event-info { flex: 1; min-width: 0; }
.event-info .title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--t-md);
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 4px;
  transition: color var(--duration);
}
.event-info .when {
  font-family: var(--font-sans);
  font-size: var(--t-xs);
  color: var(--text-muted);
}

/* ---------- 13. Facts band ---------- */
.facts {
  background: var(--ink);
  color: var(--paper);
  position: relative;
}
.facts h2 { color: var(--paper); }
.facts .lead { color: rgba(241, 236, 225, 0.78); }
.facts .kicker { color: var(--brass); }
.facts .kicker::before { background: var(--brass); }

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-8);
  margin-top: var(--s-12);
  padding-top: var(--s-10);
  border-top: 1px solid rgba(241, 236, 225, 0.18);
}
@media (max-width: 720px) { .facts-grid { grid-template-columns: repeat(2, 1fr); } }
.fact { border-left: 2px solid var(--brass); padding-left: var(--s-5); }
.fact .num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--paper);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  display: block;
}
.fact .num .small {
  font-size: 0.5em;
  color: var(--brass);
  margin-left: 4px;
  font-weight: 400;
}
.fact .label {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--t-xs);
  color: rgba(241, 236, 225, 0.75);
  margin-top: var(--s-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* ---------- 14. CTA / newsletter ---------- */
.cta-band { padding: clamp(3rem, 6vw, 5rem) 0; background: var(--bg); }
.cta-card {
  background: var(--bg-elevated);
  border: 1px solid var(--text);
  border-top: 8px solid var(--brand);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-12);
  align-items: center;
}
@media (max-width: 800px) { .cta-card { grid-template-columns: 1fr; } }
.cta-card h2 { margin-bottom: var(--s-3); }
.cta-form .field { display: flex; flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-4); }
.cta-form label, .field label {
  font-family: var(--font-sans);
  font-size: var(--t-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.input, select.input, textarea.input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg);
  border: 2px solid var(--border-strong);
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: var(--t-base);
  color: var(--text);
  transition: border-color var(--duration), box-shadow var(--duration);
}
.input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
textarea.input { min-height: 140px; resize: vertical; font-family: var(--font-sans); }

/* ---------- 15. Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--ink-6);
  padding: var(--s-16) 0 var(--s-6);
  border-top: 6px solid var(--brand);
  font-family: var(--font-sans);
}
.site-footer h4 {
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid rgba(241, 236, 225, 0.12);
}
.site-footer a {
  color: var(--ink-6);
  text-decoration: none;
  font-size: var(--t-sm);
  transition: color var(--duration);
}
.site-footer a:hover { color: var(--brass); text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: var(--s-10);
  padding-bottom: var(--s-12);
  border-bottom: 1px solid rgba(241, 236, 225, 0.12);
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .brand-text .name { color: var(--paper); }
.footer-brand .brand-text .tag { color: rgba(241, 236, 225, 0.55); }
.footer-brand .brand-seal { color: var(--brass); }
.footer-brand p {
  color: rgba(241, 236, 225, 0.65);
  font-size: var(--t-sm);
  margin-top: var(--s-4);
  max-width: 36ch;
  line-height: 1.6;
}
.footer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.footer-contact { font-size: var(--t-sm); display: flex; flex-direction: column; gap: var(--s-4); }
.footer-contact .row { display: flex; gap: var(--s-3); align-items: flex-start; line-height: 1.5; }
.footer-contact svg { width: 16px; height: 16px; stroke: var(--brass); stroke-width: 2; flex-shrink: 0; margin-top: 3px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-4);
  padding-top: var(--s-6);
  font-size: var(--t-xs);
  color: rgba(241, 236, 225, 0.55);
}
.footer-bottom .legal { display: flex; gap: var(--s-5); flex-wrap: wrap; }

.compliance {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-top: var(--s-6);
  padding-top: var(--s-6);
  border-top: 1px solid rgba(241, 236, 225, 0.08);
  font-size: 0.6875rem;
  color: rgba(241, 236, 225, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.compliance span {
  border: 1px solid rgba(241, 236, 225, 0.18);
  padding: 4px 10px;
  font-weight: 600;
}

.social {
  display: flex;
  gap: var(--s-2);
  margin-top: var(--s-5);
}
.social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: transparent;
  border: 1.5px solid rgba(241, 236, 225, 0.18);
  color: var(--ink-6);
  transition: all var(--duration);
}
.social a:hover {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--ink);
}
.social svg { width: 16px; height: 16px; }
.social a svg { fill: currentColor; }

/* ---------- 16. Page header (interior) ---------- */
.page-header {
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
  background: var(--bg);
  border-top: 6px solid var(--text);
  border-bottom: 2px solid var(--text);
}
.breadcrumbs {
  display: flex;
  gap: var(--s-2);
  font-family: var(--font-sans);
  font-size: var(--t-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: var(--s-5);
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); text-decoration: underline; }
.breadcrumbs .sep { color: var(--text-subtle); }
.page-header h1 {
  font-size: var(--t-5xl);
  margin-bottom: var(--s-3);
  max-width: 24ch;
  letter-spacing: -0.025em;
}
.page-header .lead {
  font-size: var(--t-md);
  color: var(--text-2);
  max-width: 64ch;
  font-family: var(--font-display);
}

/* ---------- 17. Filter chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: var(--s-8);
  border: 1.5px solid var(--text);
  width: max-content;
  max-width: 100%;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.625rem 1.125rem;
  background: var(--bg-elevated);
  border: none;
  border-right: 1.5px solid var(--text);
  font-family: var(--font-sans);
  font-size: var(--t-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--duration), color var(--duration);
}
.chip:last-child { border-right: none; }
.chip:hover { background: var(--bg-paper); color: var(--brand); text-decoration: none; }
.chip[aria-pressed="true"], .chip.is-active {
  background: var(--text);
  color: var(--bg);
}

/* ---------- 18. Two-column / side nav ---------- */
.two-col {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--s-12);
  align-items: start;
}
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }
.side-nav {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  border-top: 3px solid var(--text);
  padding-top: var(--s-4);
}
.side-nav h6 { margin: 0 0 var(--s-3); padding: 0; color: var(--text-muted); }
.side-nav ul { list-style: none; padding: 0; margin: 0; }
.side-nav li { margin: 0; }
.side-nav a {
  display: block;
  padding: var(--s-3) var(--s-4);
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: var(--t-sm);
  font-weight: 600;
  border-left: 3px solid transparent;
  border-bottom: 1px solid var(--border);
}
.side-nav a:hover, .side-nav a[aria-current="page"] {
  border-left-color: var(--brand);
  color: var(--brand);
  background: var(--brand-tint);
}

/* ---------- 19. Card list / generic cards ---------- */
.card-list {
  display: grid;
  gap: 0;
  border-top: 2px solid var(--text);
  border-left: 1px solid var(--border);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}
.card {
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  transition: background var(--duration);
  text-decoration: none;
  color: var(--text);
}
.card:hover { background: var(--bg-paper); text-decoration: none; color: var(--text); }
.card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--t-xl);
  line-height: 1.18;
  font-weight: 500;
}
.card .meta {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.card p { color: var(--text-muted); font-size: var(--t-sm); margin: 0; line-height: 1.55; }
.card .actions { margin-top: auto; padding-top: var(--s-3); display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; }

/* Tag pill */
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  padding: 4px 10px;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  border: 1.5px solid var(--text);
  background: var(--bg-elevated);
}

/* ---------- 20. FAQ accordion ---------- */
details.faq {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--text);
  padding: var(--s-5) var(--s-6);
  margin-bottom: var(--s-3);
  transition: border-left-color var(--duration);
}
details.faq[open] { border-left-color: var(--brand); }
details.faq summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--t-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  color: var(--text);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--brand);
  font-weight: 300;
  transition: transform var(--duration);
  font-family: var(--font-sans);
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { color: var(--text-muted); margin: var(--s-4) 0 0; font-size: var(--t-sm); }

/* ---------- 21. Pay portal ---------- */
.pay-card {
  background: var(--ink);
  color: var(--paper);
  border: 6px solid var(--text);
  padding: clamp(2rem, 5vw, 3.5rem);
  position: relative;
}
.pay-card h2, .pay-card h3 { color: var(--paper); }
.pay-card p { color: rgba(241, 236, 225, 0.78); }
.pay-card .kicker { color: var(--brass); }
.pay-card .kicker::before { background: var(--brass); }

.pay-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 0;
  margin-top: var(--s-8);
  border: 1px solid rgba(241, 236, 225, 0.18);
  border-bottom: none;
  border-right: none;
}
.pay-option {
  background: rgba(255,255,255,0.03);
  border-right: 1px solid rgba(241, 236, 225, 0.18);
  border-bottom: 1px solid rgba(241, 236, 225, 0.18);
  padding: var(--s-5);
  text-decoration: none;
  color: var(--paper);
  transition: background var(--duration);
}
.pay-option:hover {
  background: var(--brand);
  color: var(--paper);
  text-decoration: none;
}
.pay-option:hover .icon { background: var(--paper); color: var(--brand); border-color: var(--paper); }
.pay-option .icon {
  width: 44px; height: 44px;
  background: transparent;
  border: 1.5px solid var(--brass);
  color: var(--brass);
  display: grid;
  place-items: center;
  margin-bottom: var(--s-3);
  transition: all var(--duration);
}
.pay-option .icon svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.75; }
.pay-option .label { display: block; font-family: var(--font-display); font-weight: 500; font-size: var(--t-lg); }
.pay-option .desc { display: block; font-family: var(--font-sans); font-size: var(--t-xs); color: rgba(241,236,225,0.65); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- 22. Calendar grid ---------- */
.cal-grid {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  border: 1px solid var(--border);
  border-bottom: none;
  border-right: none;
}
.cal-card {
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  transition: background var(--duration);
}
.cal-card:hover { background: var(--bg-paper); text-decoration: none; color: var(--text); }
.cal-card:hover h3 { color: var(--brand); }
.cal-card .ribbon {
  background: var(--text);
  color: var(--bg);
  padding: var(--s-3) var(--s-5);
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  font-family: var(--font-display);
}
.cal-card .ribbon .day {
  font-size: var(--t-2xl);
  font-weight: 500;
  line-height: 1;
  color: var(--brass);
  font-feature-settings: "tnum";
}
.cal-card .ribbon .month {
  font-family: var(--font-sans);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.cal-card .body { padding: var(--s-5); flex: 1; display: flex; flex-direction: column; gap: var(--s-2); }
.cal-card h3 {
  font-family: var(--font-display);
  font-size: var(--t-lg);
  margin: 0;
  line-height: 1.18;
  font-weight: 500;
  transition: color var(--duration);
}
.cal-card .when {
  font-family: var(--font-sans);
  font-size: var(--t-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.cal-card .desc { font-size: var(--t-sm); color: var(--text-muted); line-height: 1.5; }

/* ---------- 23. Form / contact grid ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-12);
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.info-card {
  background: var(--bg-elevated);
  border: 1px solid var(--text);
  border-top: 6px solid var(--text);
  padding: var(--s-6);
}
.info-card h3 {
  font-size: var(--t-lg);
  margin: 0 0 var(--s-4);
  font-family: var(--font-display);
  font-weight: 500;
}
.info-card .row {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--border);
}
.info-card .row:last-child { border-bottom: none; padding-bottom: 0; }
.info-card .row:first-of-type { padding-top: 0; }
.info-card .row svg { width: 18px; height: 18px; stroke: var(--brand); stroke-width: 2; flex-shrink: 0; margin-top: 3px; }
.info-card .row .text { flex: 1; }
.info-card .row .label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 2px;
}
.info-card .row .value { font-family: var(--font-sans); font-size: var(--t-sm); font-weight: 500; line-height: 1.5; }

/* ---------- 24. Reveal animation (subtle) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 26. Editorial photo / figure ---------- */
figure.editorial {
  margin: 0;
  padding: 0;
}
figure.editorial img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--rule-strong);
}
figure.editorial figcaption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--t-sm);
  color: var(--text-muted);
  padding-top: var(--s-3);
  border-top: 1px solid var(--border);
  margin-top: var(--s-3);
  line-height: 1.5;
}
figure.editorial figcaption .credit {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  font-weight: 600;
  display: block;
  margin-top: 4px;
}

/* Marquee photo — full-width newspaper photo above the fold */
.photo-marquee {
  background: var(--bg);
  border-block: 2px solid var(--text);
  position: relative;
}
.photo-marquee .container {
  padding-block: var(--s-8);
}
.photo-marquee figure { margin: 0; }
.photo-marquee img {
  width: 100%;
  height: clamp(280px, 36vw, 480px);
  object-fit: cover;
  display: block;
  border: 1px solid var(--rule-strong);
  filter: saturate(1.05);
}
.photo-marquee figcaption {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-4);
  align-items: center;
  padding-top: var(--s-4);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--t-sm);
  color: var(--text-2);
  border-top: 1px solid var(--border);
  margin-top: var(--s-4);
}
.photo-marquee figcaption .lbl {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: var(--t-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand);
  border: 1.5px solid var(--brand);
  background: var(--brand-tint);
  padding: 4px 10px;
}
.photo-marquee figcaption .credit {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text-subtle);
}
@media (max-width: 720px) {
  .photo-marquee figcaption { grid-template-columns: 1fr; gap: var(--s-2); }
}

/* News item with photo (extends .news-item) */
.news-item-photo {
  display: grid;
  grid-template-columns: 200px 140px 1fr auto;
  gap: var(--s-5);
  padding: var(--s-6) 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  align-items: start;
  transition: background var(--duration), padding var(--duration);
}
.news-item-photo:hover {
  background: var(--bg-paper);
  padding-inline: var(--s-3);
  text-decoration: none;
  color: var(--text);
}
.news-item-photo:hover h3 { color: var(--brand); }
.news-item-photo .photo {
  border: 1px solid var(--rule-strong);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.news-item-photo .photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
  transition: transform 600ms var(--ease);
}
.news-item-photo:hover .photo img { transform: scale(1.04); }
.news-item-photo .meta {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  font-family: var(--font-sans);
}
.news-item-photo .meta .date {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.news-item-photo .meta .tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand);
  border: 1.5px solid var(--brand);
  padding: 3px 8px;
  background: var(--brand-tint);
  width: max-content;
}
.news-item-photo h3 {
  font-family: var(--font-display);
  font-size: var(--t-2xl);
  margin: 0 0 var(--s-2);
  line-height: 1.18;
  font-weight: 500;
  letter-spacing: -0.012em;
}
.news-item-photo p {
  font-size: var(--t-sm);
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
  max-width: 60ch;
}
.news-item-photo .arrow {
  align-self: center;
  font-family: var(--font-sans);
  color: var(--text-muted);
  font-size: var(--t-xl);
}
@media (max-width: 880px) {
  .news-item-photo { grid-template-columns: 160px 1fr; }
  .news-item-photo .meta { grid-column: 2; grid-row: 1; }
  .news-item-photo .photo { grid-column: 1; grid-row: 1 / span 2; }
  .news-item-photo > div:nth-child(3) { grid-column: 2; grid-row: 2; }
  .news-item-photo .arrow { display: none; }
}
@media (max-width: 540px) {
  .news-item-photo { grid-template-columns: 1fr; }
  .news-item-photo .photo, .news-item-photo .meta, .news-item-photo > div:nth-child(3) { grid-column: 1; grid-row: auto; }
}

/* Hero with image variant */
.hero-image-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--s-12);
  align-items: start;
}
@media (max-width: 960px) {
  .hero-image-grid { grid-template-columns: 1fr; }
}
.hero-photo {
  position: relative;
  border: 1px solid var(--rule-strong);
  border-top: 6px solid var(--text);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  max-height: 540px;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}
.hero-photo .caption {
  background: var(--text);
  color: var(--bg);
  padding: var(--s-3) var(--s-4);
  font-family: var(--font-sans);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
}
.hero-photo .caption .credit { color: var(--brass); font-family: var(--font-mono); }

/* Facts section with image backdrop */
.facts-with-photo {
  position: relative;
  isolation: isolate;
}
.facts-with-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  z-index: -2;
}
.facts-with-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg-photo);
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  z-index: -1;
  filter: grayscale(0.2);
}

/* About hero photo */
.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-10);
  align-items: center;
  margin-top: var(--s-8);
}
@media (max-width: 880px) { .about-hero-grid { grid-template-columns: 1fr; } }
.about-hero-grid .photo-stack {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--s-3);
  height: 100%;
  min-height: 460px;
}
.about-hero-grid .photo-stack figure {
  margin: 0;
  border: 1px solid var(--rule-strong);
  overflow: hidden;
}
.about-hero-grid .photo-stack figure:first-child {
  grid-row: 1 / span 2;
}
.about-hero-grid .photo-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Card with image header */
.card-photo {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  transition: background var(--duration);
}
.card-photo:hover { background: var(--bg-paper); text-decoration: none; color: var(--text); }
.card-photo:hover h3 { color: var(--brand); }
.card-photo .photo {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.card-photo .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.card-photo:hover .photo img { transform: scale(1.04); }
.card-photo .body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.card-photo .meta {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.card-photo h3 {
  font-family: var(--font-display);
  font-size: var(--t-lg);
  margin: 0;
  line-height: 1.2;
  font-weight: 500;
  transition: color var(--duration);
}
.card-photo p { font-size: var(--t-sm); color: var(--text-muted); margin: 0; line-height: 1.5; }

/* ---------- 25. Print ---------- */
@media print {
  .site-header, .site-footer, .alert-bar, .gov-banner, .nav-toggle, .events-panel, .cta-band { display: none !important; }
  body { background: white; color: black; }
  a { color: black; text-decoration: underline; }
  .container { max-width: 100%; }
}
