/* =================================================================
   MISSION BAY PARK CONSERVANCY — SITE DESIGN SYSTEM
   Single source of truth for site-wide styling.
   Every page links this file. Page-specific extensions go in
   a small per-page <style> block AFTER this link.
   ================================================================= */

:root {
  --ink: #1B2A4A;
  --ink-light: #4A6182;
  --cream: #FBF7F0;
  --cream-dark: #F0E8D8;
  --white: #FFFFFF;
  --ocean: #5B8BD6;
  --ocean-light: #E3F0FF;
  --ocean-dark: #3566A5;
  --sunset: #E8613C;
  --sunset-light: #FF8A65;
  --coral: #FC8155;
  --pink: #E84B8A;
  --golden: #F7B731;
  --golden-light: #FFE082;
  --seafoam: #3BBFA0;
  --seafoam-light: #B2DFDB;
  --olive: #7A8C42;
  --sand: #DFD0B6;

  --color-success: #2E7D32;
  --color-error: #C62828;
  --color-warning: #D97706;

  --font-display: 'Bebas Neue', 'Anton', 'Impact', 'Helvetica Neue', sans-serif;
  --font-heading: 'DM Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'DM Mono', 'SF Mono', 'Fira Code', monospace;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-xxl: 6rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--ocean-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}
.container-narrow {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.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 {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9999;
  background: var(--ocean);
  color: #fff;
  padding: 0.75rem 1.5rem;
}
.skip-link:not(:focus) {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ================= NAV ================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}
.nav-logo,
.nav .logo,
.footer .logo,
.site-footer .logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1;
  text-decoration: none;
}
.nav-logo:hover,
.nav .logo:hover { text-decoration: none; }
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ocean) 0%, var(--seafoam) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(91,139,214,0.28);
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.05;
  color: inherit;
  letter-spacing: 0.04em;
}
.footer .logo,
.site-footer .logo { color: #fff; }
.site-footer .logo-mark {
  background: linear-gradient(135deg, var(--seafoam) 0%, var(--ocean) 100%);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-btn-rect {
  display: inline-block;
  padding: 0.55rem 1rem;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
  transition: all 0.2s;
}
.nav-btn-rect:hover {
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}
.nav-btn-rect.active {
  background: var(--ink);
  color: #fff;
}
.nav-btn-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  background: var(--seafoam);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all 0.2s;
}
.nav-btn-circle:hover {
  background: var(--ocean-dark);
  text-decoration: none;
  transform: translateY(-1px);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: all 0.3s;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 999;
  padding: 5rem 2rem 2rem;
  flex-direction: column;
  gap: 1rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--ink);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

@media (max-width: 900px) {
  /* Hide the desktop nav buttons but keep .nav-inner as a flex container so the
     hamburger toggle (nested inside it) remains visible. Previous rule of
     `.nav-inner { display: none; }` cascaded to the toggle, hiding the menu
     entirely on mobile. */
  .nav-inner .nav-btn-rect,
  .nav-inner .nav-btn-circle { display: none; }
  .nav-toggle { display: flex; }
}

/* ================= HERO (engage-style) ================= */
.page-hero {
  padding: 9rem 0 var(--space-xl);
  background:
    radial-gradient(circle at 15% 85%, var(--seafoam-light) 0%, transparent 45%),
    radial-gradient(circle at 85% 15%, var(--golden-light) 0%, transparent 45%),
    linear-gradient(180deg, var(--cream) 0%, #fff 100%);
}
.page-hero-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}
/* Accent variants — same base, different radial corners */
.page-hero.accent-ocean {
  background:
    radial-gradient(circle at 15% 85%, var(--ocean-light) 0%, transparent 45%),
    radial-gradient(circle at 85% 15%, var(--seafoam-light) 0%, transparent 45%),
    linear-gradient(180deg, var(--cream) 0%, #fff 100%);
}
.page-hero.accent-sunset {
  background:
    radial-gradient(circle at 15% 85%, var(--golden-light) 0%, transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(232, 97, 60, 0.22) 0%, transparent 45%),
    linear-gradient(180deg, var(--cream) 0%, #fff 100%);
}
.page-hero.accent-pink {
  background:
    radial-gradient(circle at 15% 85%, rgba(232, 75, 138, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 85% 15%, var(--golden-light) 0%, transparent 45%),
    linear-gradient(180deg, var(--cream) 0%, #fff 100%);
}
.page-hero .hero-crumb {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.95;
  color: var(--ink);
  margin: 0 0 var(--space-md);
  letter-spacing: 0.01em;
  max-width: 16ch;
}
.page-hero h1 .accent { color: var(--seafoam); }
.page-hero h1 .accent-ocean { color: var(--ocean-dark); }
.page-hero h1 .accent-sunset { color: var(--sunset); }
.page-hero h1 .accent-golden { color: var(--golden); }
.page-hero h1 .accent-pink { color: var(--pink); }
.page-hero .hero-sub {
  max-width: 720px;
  font-size: 1.15rem;
  line-height: 1.7;
  color: #444;
  margin: 0 0 var(--space-lg);
}
.page-hero .hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

/* Aliases used by rebuilt pages */
.page-hero .page-kicker,
.page-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}
.page-hero .page-lede,
.page-lede {
  max-width: 720px;
  font-size: 1.15rem;
  line-height: 1.7;
  color: #444;
  margin: 0 0 var(--space-lg);
}
.cta-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}
.hero-pillar-label {
  font-size: 0.85rem;
  color: #555;
  margin: 0;
  line-height: 1.4;
}

/* Hero pillars */
.hero-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
  max-width: 1100px;
  margin-top: var(--space-lg);
}
.hero-pillar {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(27, 42, 74, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  backdrop-filter: blur(6px);
}
.hero-pillar-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--seafoam);
  line-height: 1;
  letter-spacing: 0.02em;
}
.hero-pillar.accent-ocean .hero-pillar-num { color: var(--ocean-dark); }
.hero-pillar.accent-sunset .hero-pillar-num { color: var(--sunset); }
.hero-pillar.accent-golden .hero-pillar-num { color: var(--golden); }
.hero-pillar.accent-pink .hero-pillar-num { color: var(--pink); }
.hero-pillar h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin: 0.4rem 0 0.5rem;
  color: var(--ink);
}
.hero-pillar p {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
  line-height: 1.55;
}

/* ================= QUICKNAV TILES ================= */
.quicknav {
  background: var(--ink);
  padding: 0;
}
.quicknav-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  max-width: 1440px;
  margin: 0 auto;
}
.quicknav-tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 200px;
  overflow: hidden;
  text-decoration: none !important;
  color: #fff;
  cursor: pointer;
}
.quicknav-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.quicknav-tile:hover .quicknav-bg {
  transform: scale(1.08);
}
.quicknav-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.35) 100%);
  transition: opacity 0.35s ease;
}
/* Each tile gets a colored tint via a second pseudo-element */
.quicknav-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--tile-accent);
  opacity: 0.35;
  mix-blend-mode: multiply;
  transition: opacity 0.35s ease;
  z-index: 1;
}
.quicknav-tile:hover::after {
  opacity: 0.5;
}
.quicknav-tile::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--tile-accent);
  z-index: 3;
  transform: scaleX(0);
  transition: transform 0.35s ease;
}
.quicknav-tile:hover::before {
  transform: scaleX(1);
}
.quicknav-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 20px;
  width: 100%;
}
.quicknav-content svg {
  opacity: 0.9;
  margin-bottom: 4px;
}
.quicknav-label {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 26px);
  letter-spacing: 0.03em;
  line-height: 1.1;
  text-transform: uppercase;
}
.quicknav-sub {
  font-family: var(--font-body);
  font-size: 0.78rem;
  opacity: 0.8;
  line-height: 1.3;
}
/* Responsive: 3+2 on tablet, stack on mobile */
@media (max-width: 960px) {
  .quicknav-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .quicknav-tile { min-height: 170px; }
}
@media (max-width: 600px) {
  .quicknav-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .quicknav-tile { min-height: 140px; }
  .quicknav-label { font-size: 18px; }
}

/* ================= STICKY SECTION NAV ================= */
.section-nav {
  position: sticky;
  top: 72px;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 0.85rem 0;
}
.section-nav-inner {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}
.section-nav-inner::-webkit-scrollbar { display: none; }
.section-nav a {
  flex-shrink: 0;
  padding: 0.45rem 1rem;
  border: 1.5px solid rgba(27, 42, 74, 0.15);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  transition: all 0.2s;
}
.section-nav a:hover {
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border-color: var(--ink);
}

/* ================= SECTIONS ================= */
section.page-section {
  padding: var(--space-xl) 0;
}
.page-section-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}
.page-section-inner.narrow {
  max-width: 880px;
}
section.page-section.cream {
  background: linear-gradient(180deg, #fff 0%, var(--cream) 100%);
}
section.page-section.cream-solid {
  background: var(--cream);
}
section.page-section.dark {
  background: linear-gradient(160deg, var(--ink) 0%, #0F1A2E 100%);
  color: #fff;
}
section.page-section.dark h2,
section.page-section.dark h3,
section.page-section.dark h4,
section.page-section.dark .section-label {
  color: #fff;
}
section.page-section.dark p {
  color: rgba(255, 255, 255, 0.82);
}
section.page-section.ocean {
  background: linear-gradient(160deg, var(--ocean) 0%, var(--ocean-dark) 100%);
  color: #fff;
}
section.page-section.ocean h2,
section.page-section.ocean h3,
section.page-section.ocean .section-label {
  color: #fff;
}
section.page-section.ocean p { color: rgba(255,255,255,0.85); }

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--seafoam);
  background: rgba(59, 191, 160, 0.12);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}
.section-label.ocean { color: var(--ocean-dark); background: rgba(86, 120, 180, 0.12); }
.section-label.sunset { color: var(--sunset); background: rgba(232, 97, 60, 0.12); }
.section-label.golden { color: #B67F00; background: rgba(247, 183, 49, 0.15); }
.section-label.pink { color: var(--pink); background: rgba(232, 75, 138, 0.12); }

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 0 0 var(--space-sm);
  max-width: 24ch;
}
.section-header p {
  max-width: 720px;
  font-size: 1.05rem;
  color: #555;
  line-height: 1.7;
  margin: 0 0 var(--space-md);
}
section.page-section.dark .section-header p,
section.page-section.ocean .section-header p { color: rgba(255,255,255,0.82); }
.section-header h2 + p { margin-top: 0; }

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-full);
  border: none;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--seafoam);
  color: #fff;
}
.btn-primary:hover {
  background: var(--ocean-dark);
  transform: translateY(-1px);
  text-decoration: none;
}
.btn-secondary {
  background: var(--ink);
  color: #fff;
}
.btn-secondary:hover {
  background: var(--ocean-dark);
  transform: translateY(-1px);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}
.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-outline-light:hover {
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  border-color: #fff;
}
.btn-sunset {
  background: var(--sunset);
  color: #fff;
}
.btn-sunset:hover {
  background: #C94A29;
  transform: translateY(-1px);
  text-decoration: none;
}
.btn-sm { padding: 0.55rem 1rem; font-size: 0.8rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-xl { padding: 1.15rem 2.4rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ================= FORMS ================= */
.form-group {
  margin-bottom: 1.1rem;
}
.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.form-group label .req { color: var(--color-error); }
.form-group label .opt {
  font-weight: 400;
  color: #999;
  font-size: 0.75rem;
  margin-left: 0.25rem;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid rgba(27, 42, 74, 0.12);
  border-radius: var(--radius-md);
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--seafoam);
  background: #fff;
}
.form-group textarea {
  min-height: 130px;
  resize: vertical;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #555;
  cursor: pointer;
}
.form-checkbox input { margin-top: 3px; flex-shrink: 0; }

.form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: 0 8px 30px rgba(27, 42, 74, 0.08);
  border: 1px solid rgba(27, 42, 74, 0.06);
}
.form-card h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 0 0 0.25rem;
}
.form-card .form-intro {
  font-size: 0.9rem;
  color: #666;
  margin: 0 0 var(--space-md);
}

.form-success {
  display: none;
  padding: 1rem;
  margin-top: 1rem;
  background: rgba(46, 125, 50, 0.1);
  border: 1px solid rgba(46, 125, 50, 0.3);
  border-radius: var(--radius-md);
  color: var(--color-success);
  font-size: 0.9rem;
}
.form-success.visible { display: block; }

/* ================= GENERIC CARDS ================= */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: 0 4px 18px rgba(27, 42, 74, 0.06);
  border: 1px solid rgba(27, 42, 74, 0.06);
  transition: all 0.2s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(27, 42, 74, 0.1);
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  margin: 0 0 0.5rem;
  color: var(--ink);
}
.card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  margin: 0 0 0.5rem;
}
.card.feature {
  padding: var(--space-lg);
}
.card.feature h3 {
  font-size: 1.75rem;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.card-grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.card-grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(59, 191, 160, 0.12);
  color: var(--seafoam);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}
.card-icon.ocean { background: rgba(86, 120, 180, 0.12); color: var(--ocean-dark); }
.card-icon.sunset { background: rgba(232, 97, 60, 0.12); color: var(--sunset); }
.card-icon.golden { background: rgba(247, 183, 49, 0.15); color: #B67F00; }
.card-icon.pink    { background: rgba(232, 75, 138, 0.12); color: var(--pink); }

/* ================= DATA / DASHBOARD CARDS ================= */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.dash-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  backdrop-filter: blur(8px);
}
.dash-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--seafoam);
  margin-bottom: 0.5rem;
}
.dash-value {
  font-family: var(--font-display);
  font-size: 2.75rem;
  color: #fff;
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
}
.dash-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  margin: 0;
}
.dash-progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  margin-top: 0.85rem;
  overflow: hidden;
}
.dash-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--seafoam) 0%, var(--golden) 100%);
  border-radius: var(--radius-full);
}

/* Light dash cards (for non-dark sections) */
.dash-grid.light .dash-card {
  background: #fff;
  border: 1px solid rgba(27, 42, 74, 0.08);
  box-shadow: 0 4px 18px rgba(27, 42, 74, 0.06);
}
.dash-grid.light .dash-label { color: var(--seafoam); }
.dash-grid.light .dash-value { color: var(--ink); }
.dash-grid.light .dash-desc { color: #555; }

/* ================= CALLOUT / NOTICE ================= */
.callout {
  background: rgba(86, 120, 180, 0.08);
  border-left: 4px solid var(--ocean);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-md) 0;
  font-size: 0.95rem;
  color: #444;
}
.callout.seafoam { background: rgba(59, 191, 160, 0.1); border-color: var(--seafoam); }
.callout.sunset { background: rgba(232, 97, 60, 0.08); border-color: var(--sunset); }
.callout.golden { background: rgba(247, 183, 49, 0.12); border-color: var(--golden); }
.callout strong { color: var(--ink); }

/* ================= PROSE (rich text blocks) ================= */
.prose {
  max-width: 720px;
  color: #444;
  line-height: 1.75;
}
.prose p { margin: 0 0 1.1rem; font-size: 1.02rem; }
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: 0.01em;
  margin: 2.4rem 0 0.75rem;
  color: var(--ink);
}
.prose h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.8rem 0 0.5rem;
  color: var(--ink);
}
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.1rem; }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: var(--ocean-dark); text-decoration: underline; }
.prose blockquote {
  border-left: 3px solid var(--seafoam);
  margin: 1.5rem 0;
  padding: 0.2rem 0 0.2rem 1.25rem;
  color: #555;
  font-style: italic;
}

/* ================= FAQ ACCORDION ================= */
details.faq {
  background: #fff;
  border: 1px solid rgba(27, 42, 74, 0.08);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  transition: box-shadow 0.2s;
}
details.faq[open] {
  box-shadow: 0 4px 18px rgba(27, 42, 74, 0.06);
}
details.faq summary {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--seafoam);
  transition: transform 0.2s;
}
details.faq[open] summary::after { content: '−'; }
details.faq p {
  margin: 0.75rem 0 0;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ================= TIMELINE ================= */
.timeline {
  position: relative;
  padding-left: 2.5rem;
  margin: var(--space-lg) 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--seafoam) 0%, var(--ocean) 50%, var(--sunset) 100%);
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  margin-bottom: var(--space-lg);
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.93rem;
  top: 0.4rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--seafoam);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--seafoam);
}
.timeline-year {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ocean-dark);
  letter-spacing: 0.05em;
}
.timeline-item h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin: 0.2rem 0 0.4rem;
  color: var(--ink);
}
.timeline-item p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* ================= CTA BANNER ================= */
.cta-banner {
  background: linear-gradient(135deg, var(--ocean) 0%, var(--ocean-dark) 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
  margin: var(--space-xl) 0;
}
.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #fff;
  margin: 0 0 var(--space-sm);
  letter-spacing: 0.01em;
}
.cta-banner p {
  max-width: 640px;
  margin: 0 auto var(--space-md);
  color: rgba(255,255,255,0.88);
  font-size: 1.05rem;
}
.cta-banner-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-banner.seafoam { background: linear-gradient(135deg, var(--seafoam) 0%, #2AA085 100%); }
.cta-banner.sunset { background: linear-gradient(135deg, var(--sunset) 0%, #C94A29 100%); }
.cta-banner.golden { background: linear-gradient(135deg, var(--golden) 0%, #D69A1E 100%); }
.cta-banner.ink { background: linear-gradient(135deg, var(--ink) 0%, #0F1A2E 100%); }

/* ================= FOOTER ================= */
.footer,
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-xl) 0 var(--space-md);
}
.footer-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}
.cta-banner-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand-col .nav-logo { color: #fff; }
.footer-brand-col p {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.55;
}
.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.footer-social a:hover { background: var(--seafoam); }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #fff;
  margin: 0 0 0.75rem;
  letter-spacing: 0.05em;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}
.footer-links a:hover { color: #fff; }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}
.footer-contact a { color: rgba(255, 255, 255, 0.7); }
.footer-contact a:hover { color: #fff; }
.footer-bottom {
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}
.footer-bottom p { margin: 0.35rem 0; }

/* ================= CITATION LINKS ================= */
.cite-link {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-light);
  opacity: 0.55;
  text-decoration: none;
  margin-top: 0.65rem;
  transition: opacity 0.2s, color 0.2s;
  line-height: 1;
}
.cite-link:hover {
  opacity: 1;
  color: var(--ocean-dark);
  text-decoration: none;
}
.cite-link svg {
  flex-shrink: 0;
  display: inline;
  width: 9px;
  height: 9px;
}

/* ================= SCROLL PROGRESS + FADE-UP ================= */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--seafoam) 0%, var(--golden) 100%);
  z-index: 10000;
  width: 0%;
  transition: width 0.1s;
}

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  /* Safety net: if JS / IntersectionObserver fails to add .visible
     for any reason (slow connection, JS disabled, edge cases),
     force the element to its visible state after 1.5s so content
     never stays permanently hidden. */
  animation: fade-up-fallback 0s 1.5s forwards;
}
.fade-up.visible {
  opacity: 1;
  transform: none;
  animation: none;
}
@keyframes fade-up-fallback {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
  }
  html { scroll-behavior: auto; }
}

/* ================= UTILITIES ================= */
.text-center { text-align: center; }
.text-mono { font-family: var(--font-mono); }
.text-display { font-family: var(--font-display); letter-spacing: 0.01em; }
.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

/* =================================================================
   SITEWIDE BUDGET-ALERT STRIP (FY2027 draft budget)
   Injected by site.js at top of <body>. Dismissible.
   ================================================================= */
.site-alert {
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  border-bottom: 2px solid var(--sunset);
  position: relative;
  z-index: 1100;
}
.site-alert-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 44px 10px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.4;
}
.site-alert-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sunset);
  box-shadow: 0 0 0 4px rgba(232,97,60,0.2);
  animation: site-alert-pulse 2.4s ease-in-out infinite;
}
@keyframes site-alert-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(232,97,60,0.2); }
  50%      { box-shadow: 0 0 0 8px rgba(232,97,60,0.05); }
}
.site-alert-text { flex: 1 1 auto; }
.site-alert-text strong { color: var(--sunset-light); font-weight: 700; }
.site-alert-link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,0.5);
  font-weight: 700;
  white-space: nowrap;
}
.site-alert-link:hover { text-decoration-color: #fff; }
.site-alert-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 4px;
}
.site-alert-close:hover { color: #fff; background: rgba(255,255,255,0.08); }
@media (max-width: 640px) {
  .site-alert-inner { font-size: 0.72rem; padding-right: 36px; }
}
