/* =========================================================================
   JAAC Portal - Design System
   Palette: white / light grey / a lighter, more vivid green, with orange
   as a sparing accent colour (tags, CTAs, links). The flashbar, footer,
   inner-page hero banners and admin chrome all share one flat light
   sage-green (--topbar-bg) instead of a dark band, with dark ink text.
   ========================================================================= */

:root {
  --white: #ffffff;
  --paper: #fbfaf7;
  --grey-50: #f7f8f8;
  --grey-100: #f0f1f2;
  --grey-200: #e4e6e7;
  --grey-300: #d3d6d7;
  --grey-400: #b0b5b7;
  --grey-500: #82898c;
  --grey-600: #5c6366;
  --grey-700: #3d4345;
  --grey-800: #24282a;
  --ink: #101314;

  --green: #1f7a49;
  --green-dark: #145c37;
  --orange: #ff9900;
  --orange-dark: #d97e00;
  --red: #b3261e;

  --status-missing: #b3261e;
  --status-dead: #454d52;
  --status-found: var(--green);
  --status-alive: var(--green);

  /* Gradient accents - used sparingly on CTAs, chips and dark bands to
     give the flat white/grey/green palette some depth, without moving
     away from the brand colours. */
  --green-mid: #2d8f5c;
  --orange-light: #ffb238;
  --grad-primary: linear-gradient(135deg, var(--green-mid) 0%, var(--green) 55%, var(--green-dark) 100%);
  --grad-accent: linear-gradient(135deg, var(--orange-light) 0%, var(--orange) 55%, var(--orange-dark) 100%);
  --grad-accent-hover: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  --grad-primary-hover: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  --grad-red: linear-gradient(135deg, #d0362c 0%, var(--red) 100%);
  --grad-line: linear-gradient(90deg, var(--green-mid) 0%, var(--orange) 100%);
  --grad-surface: linear-gradient(180deg, #ffffff 0%, #f7f8f8 100%);
  --grad-dark: linear-gradient(150deg, #1c3327 0%, #142720 55%, #0e1c17 100%);
  --grad-hero-band: linear-gradient(155deg, #a9d98c 0%, var(--topbar-bg) 55%, #7cb85c 100%);

  /* Mesh gradients - layered soft radial blobs in the brand colours over a
     dark or mid base. Used on the highest-impact surfaces (stats band,
     featured-story scrim, inner-page hero banners, the "report or search"
     panel, footer, login screen) to give the site a modern, designed feel
     rather than flat single-tone bands. */
  --mesh-dark:
    radial-gradient(at 10% 15%, rgba(45,143,92,.55) 0, transparent 52%),
    radial-gradient(at 88% 10%, rgba(255,178,56,.4) 0, transparent 48%),
    radial-gradient(at 78% 85%, rgba(255,250,160,.16) 0, transparent 50%),
    radial-gradient(at 12% 90%, rgba(20,54,38,.9) 0, transparent 55%),
    linear-gradient(160deg, #17291f 0%, #0d1712 100%);
  --mesh-hero:
    radial-gradient(at 12% 18%, rgba(74,175,120,.9) 0, transparent 50%),
    radial-gradient(at 88% 16%, rgba(255,153,0,.65) 0, transparent 48%),
    radial-gradient(at 78% 88%, rgba(255,250,160,.42) 0, transparent 52%),
    radial-gradient(at 12% 88%, rgba(20,54,38,.95) 0, transparent 58%),
    linear-gradient(150deg, #1c3327 0%, #11241a 100%);

  --glass-bg: rgba(255,255,255,.10);
  --glass-bg-strong: rgba(255,255,255,.85);
  --glass-border: rgba(255,255,255,.22);
  --glow-green: 0 0 0 1px rgba(45,143,92,.45), 0 10px 32px rgba(45,143,92,.38);
  --glow-orange: 0 0 0 1px rgba(255,178,56,.45), 0 10px 32px rgba(255,153,0,.34);
  --glow-red: 0 0 0 1px rgba(179,38,30,.4), 0 8px 26px rgba(179,38,30,.34);

  /* Light sage-green used site-wide for inner-page hero banners and the
     admin sidebar / login screen. The footer uses --grad-dark instead. */
  --topbar-bg: #93c572;

  /* Pale yellow: the breaking-news bar, one homepage band, and the accent
     buttons/badges that used to be solid orange. */
  --pale-yellow: #fffaa0;
  --pale-yellow-hover: #f5ec6e;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --border-hairline: rgba(16,19,20,.08);
  --shadow-xs: 0 1px 2px rgba(16,19,20,.05);
  --shadow-sm: 0 1px 3px rgba(16,19,20,.05), 0 6px 16px rgba(16,19,20,.05);
  --shadow-md: 0 10px 28px rgba(16,19,20,.09), 0 2px 8px rgba(16,19,20,.05);
  --shadow-lg: 0 28px 64px rgba(16,19,20,.18), 0 8px 20px rgba(16,19,20,.08);

  --font-head: 'Newsreader', Georgia, 'Times New Roman', 'Noto Serif', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.18; letter-spacing: -.011em; margin: 0 0 .5em; color: var(--ink); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white);
  padding: 10px 16px; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  text-decoration: none; box-shadow: var(--shadow-xs);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--grad-primary); color: var(--white); }
.btn-primary:hover { background: var(--grad-primary-hover); box-shadow: var(--glow-green); }
.btn-accent { background: var(--pale-yellow); color: var(--ink); }
.btn-accent:hover { background: var(--pale-yellow-hover); box-shadow: var(--glow-orange); }
.btn-outline { background: var(--white); border-color: var(--grey-300); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); background: var(--grey-50); box-shadow: var(--shadow-sm); }
.btn-danger { background: var(--red); color: var(--white); }
.btn-danger:hover { background: #8c1d17; box-shadow: var(--glow-red); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* Glass variant - for buttons sitting directly on a mesh/dark band. */
.btn-glass {
  background: var(--glass-bg); color: var(--white); border-color: var(--glass-border);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
}
.btn-glass:hover { background: rgba(255,255,255,.18); box-shadow: var(--shadow-md); }

/* ---------- Top utility / breaking bar ---------- */
.flashbar {
  background: var(--pale-yellow);
  color: var(--ink);
  font-size: 16px;
  overflow: hidden;
  border-bottom: 2px solid var(--orange);
}
.flashbar__inner {
  display: flex; align-items: center; gap: 16px;
  max-width: var(--container); margin: 0 auto; padding: 10px 20px;
}
.flashbar__label {
  flex: 0 0 auto; background: var(--grad-red); color: var(--white);
  font-weight: 800; letter-spacing: .06em; font-size: 12.5px;
  padding: 5px 12px; border-radius: 3px; text-transform: uppercase;
}
.flashbar__track { flex: 1; overflow: hidden; white-space: nowrap; position: relative; height: 26px; }
.flashbar__ticker {
  display: inline-flex; gap: 52px; position: absolute; white-space: nowrap;
  animation: ticker 70s linear infinite;
  padding-left: 100%;
}
.flashbar__ticker a { color: var(--ink); opacity: .85; font-weight: 600; }
.flashbar__ticker a:hover { opacity: 1; text-decoration: underline; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .flashbar__ticker { animation: none; }
}

/* ---------- Header / Nav ---------- */
.site-header {
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--grey-200);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 0 rgba(16,19,20,.03), 0 10px 30px -18px rgba(16,19,20,.18);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--container); margin: 0 auto; padding: 14px 20px;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 74px; width: auto; }
.brand img.brand-mark {
  height: 74px; width: 74px; border-radius: 50%; flex: 0 0 auto; object-fit: cover;
  box-shadow: 0 0 0 3px var(--white), 0 4px 18px rgba(31,122,73,.28);
}
.brand-word { line-height: 1.15; }
.brand-word b { display: block; font-family: var(--font-head); font-size: 19px; color: var(--ink); }
.brand-word span { display: block; font-size: 10px; color: var(--grey-600); letter-spacing: .01em; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--grey-800); font-weight: 600; font-size: 14.5px;
  padding: 10px 14px; border-radius: var(--radius-sm);
}
.main-nav a:hover { background: var(--grey-100); color: var(--ink); text-decoration: none; }
.main-nav a.active { background: var(--grad-primary); color: var(--white); box-shadow: var(--glow-green); text-decoration: none; }
.main-nav a.cta {
  background: var(--red); color: var(--white); box-shadow: var(--glow-red);
  animation: cta-blink 1.4s ease-in-out infinite;
}
.main-nav a.cta:hover { background: #8a1d17; animation-play-state: paused; }
@keyframes cta-blink { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .main-nav a.cta { animation: none; } }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white);
    flex-direction: column; align-items: stretch; padding: 10px; border-bottom: 1px solid var(--grey-200);
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: flex; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: var(--radius-sm); border: 1px solid var(--grey-300);
    background: var(--white); cursor: pointer;
  }
}

/* ---------- Stats strip ---------- */
.stats-strip { background: var(--mesh-dark); padding: 36px 0; position: relative; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.stat-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-radius: var(--radius-md); padding: 22px 18px 20px; text-align: center; position: relative;
  transition: background-color .15s ease, transform .15s ease;
}
.stat-card:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.stat-card::before {
  content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 34px; height: 3px; border-radius: 2px;
}
.stat-card--missing::before { background: linear-gradient(90deg, #ff8a80, var(--status-missing)); }
.stat-card--dead::before { background: linear-gradient(90deg, #cfd6da, var(--status-dead)); }
.stat-card--found::before, .stat-card--alive::before { background: linear-gradient(90deg, #8de3b0, var(--green-mid)); }
.stat-card__num {
  font-family: var(--font-head); font-size: 36px; font-weight: 700; line-height: 1;
  font-variant-numeric: tabular-nums; margin-top: 12px; text-shadow: 0 0 24px currentColor;
}
.stat-card__label { margin-top: 6px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.72); font-weight: 600; }
.stat-card--missing .stat-card__num { color: #ff8a80; }
.stat-card--dead .stat-card__num { color: #e3e7e9; }
.stat-card--found .stat-card__num,
.stat-card--alive .stat-card__num { color: #8de3b0; }
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Hero / featured story ---------- */
.hero {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px;
  padding: 32px 0; align-items: stretch;
}
.hero__main {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--mesh-hero); color: var(--white); min-height: 440px;
  display: flex; align-items: flex-end; box-shadow: var(--shadow-lg);
}
.hero__main img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55;
}
.hero__main::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(at 88% 4%, rgba(255,153,0,.32) 0, transparent 42%),
    radial-gradient(at 2% 96%, rgba(45,143,92,.4) 0, transparent 48%),
    linear-gradient(0deg, rgba(8,16,12,.9) 0%, rgba(10,20,15,.5) 55%, rgba(10,20,15,.12) 100%);
}
.hero__content { position: relative; padding: 36px; z-index: 2; }
.badge {
  display: inline-block; font-family: var(--font-body); font-size: 11.5px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; padding: 5px 10px; border-radius: 4px;
}
.badge-breaking { background: var(--grad-red); color: var(--white); box-shadow: var(--glow-red); }
.badge-category { background: var(--pale-yellow); color: var(--ink); box-shadow: var(--glow-orange); }
.badge-outline { border: 1px solid currentColor; }
.hero__content h1 { font-size: 35px; font-weight: 700; margin: 14px 0 12px; color: var(--white); }
.hero__content p { color: var(--grey-200); max-width: 60ch; font-size: 15.5px; }
.hero__meta { color: var(--grey-400); font-size: 13px; margin-top: 10px; }

.hero__side { display: flex; flex-direction: column; gap: 16px; }
.side-story {
  display: flex; gap: 14px; background: var(--white); border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md); padding: 12px; box-shadow: var(--shadow-sm);
  transition: box-shadow .15s ease, transform .15s ease;
}
.side-story:hover { box-shadow: var(--shadow-md), 0 0 0 1px rgba(45,143,92,.22); transform: translateY(-1px); }
.side-story__thumb {
  flex: 0 0 100px; height: 76px; border-radius: var(--radius-sm); overflow: hidden; background: var(--grey-100);
}
.side-story__thumb img { width: 100%; height: 100%; object-fit: cover; }
.side-story__body h3 { font-size: 15px; margin: 0 0 4px; }
.side-story__body .badge { margin-bottom: 6px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero__main { min-height: 320px; }
}

/* ---------- News grid ---------- */
.section-title {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 1px solid var(--grey-200); padding-bottom: 10px; margin: 44px 0 22px;
  position: relative;
}
.section-title::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 68px; height: 3px;
  background: var(--grad-line);
}
.section-title h2 { font-size: 22px; margin: 0; }
.section-title a { font-size: 13.5px; font-weight: 700; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .news-grid { grid-template-columns: 1fr; } }

.news-card {
  background: var(--white); border: 1px solid var(--border-hairline); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .15s ease, transform .15s ease;
  display: flex; flex-direction: column;
}
.news-card:hover { box-shadow: var(--shadow-md), 0 0 0 1px rgba(45,143,92,.22); transform: translateY(-2px); }
.news-card__thumb { aspect-ratio: 16/10; background: var(--grey-100); overflow: hidden; position: relative; }
.news-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card__body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.news-card__body h3 { font-size: 16.5px; }
.news-card__body p { color: var(--grey-600); font-size: 14px; margin: 0; }
.news-card__meta { margin-top: auto; font-size: 12px; color: var(--grey-500); }

/* ---------- Video badge ---------- */
.play-badge {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(16,19,20,.28);
}
.play-badge__icon {
  width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center;
}
.play-badge__icon::after {
  content: ""; border-style: solid; border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent var(--ink); margin-left: 3px;
}

/* ---------- Status / person tags ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px;
  color: var(--white);
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag-missing { background: linear-gradient(135deg, #c73c32, var(--status-missing)); }
.tag-dead { background: linear-gradient(135deg, #5a636a, var(--status-dead)); }
.tag-found { background: linear-gradient(135deg, var(--green-mid), var(--status-found)); }
.tag-alive { background: linear-gradient(135deg, var(--green-mid), var(--status-alive)); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--mesh-hero); color: var(--white); padding: 64px 0 50px; position: relative; overflow: hidden;
}
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--grad-line); }
.page-hero__inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; text-align: center; }
.page-hero h1 { color: var(--white); font-size: 36px; margin: 0 0 10px; }
.page-hero p { color: rgba(255,255,255,.82); margin: 0 auto; }
.breadcrumb { font-size: 12.5px; color: rgba(255,255,255,.68); margin: 0 0 14px; }
.breadcrumb a { color: rgba(255,255,255,.88); }

/* ---------- Content / prose ---------- */
.prose { max-width: 800px; }
.prose h2 { font-size: 22px; margin-top: 1.6em; }
.prose p { color: var(--grey-700); font-size: 16px; }
.prose ul li { color: var(--grey-700); margin-bottom: 6px; }
.section { padding: 48px 0; }
.section-alt { background: var(--mesh-hero); position: relative; }

.pull-list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; list-style: none; padding: 0; margin: 20px 0;
}
.pull-list li {
  display: flex; gap: 10px; align-items: flex-start; color: var(--grey-700); font-size: 15px;
}
.pull-list li::before {
  content: "✓"; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  background: var(--grad-primary); color: var(--white); font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
@media (max-width: 700px) { .pull-list { grid-template-columns: 1fr; } }

/* ---------- Cards / panels ---------- */
.card {
  background: var(--white); border: 1px solid var(--border-hairline); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); padding: 24px;
}

/* ---------- Charter page ---------- */
.charter-image-wrap {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-lg); background: var(--grey-100);
}
.charter-image-wrap img { width: 100%; height: auto; }

.charter-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 8px; }
@media (max-width: 800px) { .charter-grid { grid-template-columns: 1fr; } }
.section-alt .card {
  display: flex; flex-direction: column; background: var(--glass-bg-strong);
  border: 1px solid rgba(255,255,255,.5); backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%); box-shadow: var(--shadow-lg);
}
.section-alt .card .btn { margin-top: auto; align-self: flex-start; }
.section-alt .card .muted { color: var(--grey-600); }
.charter-cat {
  border: 1px solid var(--border-hairline); border-radius: var(--radius-md); padding: 18px; background: var(--white);
  box-shadow: var(--shadow-xs); transition: box-shadow .15s ease;
}
.charter-cat:hover { box-shadow: var(--shadow-sm), 0 0 0 1px rgba(255,153,0,.2); }
.charter-cat h3 { font-size: 15.5px; border-left: 4px solid; border-image: linear-gradient(180deg, var(--orange), var(--green-mid)) 1; padding-left: 10px; margin-bottom: 10px; }
.charter-cat ol { padding-left: 1.2em; font-size: 14px; color: var(--grey-700); }
.charter-cat ol li { margin-bottom: 6px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 13.5px; color: var(--grey-800); }
.field .hint { font-size: 12px; color: var(--grey-500); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field input[type="password"],
.field select,
.field textarea {
  border: 1px solid var(--grey-300); border-radius: var(--radius-sm); padding: 11px 13px;
  font-size: 14.5px; font-family: var(--font-body); background: var(--white); color: var(--ink);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,122,73,.16);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-error { color: var(--red); font-size: 12.5px; font-weight: 600; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); }

.radio-row { display: flex; gap: 14px; flex-wrap: wrap; }
.radio-card {
  border: 1px solid var(--grey-300); border-radius: var(--radius-md); padding: 14px 18px;
  cursor: pointer; display: flex; align-items: center; gap: 10px; flex: 1; min-width: 180px;
  transition: border-color .12s ease, background .12s ease;
}
.radio-card:has(input:checked) { border-color: var(--green); background: rgba(31,122,73,.06); }
.radio-card input { accent-color: var(--green); }

.file-drop {
  border: 2px dashed var(--grey-300); border-radius: var(--radius-md); padding: 22px; text-align: center;
  color: var(--grey-600); font-size: 13.5px; background: var(--grey-50);
}
.file-drop input { margin-top: 10px; }

.alert {
  border-radius: var(--radius-md); padding: 14px 18px; font-size: 14.5px; margin-bottom: 22px;
  border: 1px solid transparent;
}
.alert-success { background: #eaf6ef; border-color: #bfe3cc; color: #0b4a29; }
.alert-error { background: #fdecec; border-color: #f3bcb9; color: #7a1a15; }
.alert-info { background: #eef4fb; border-color: #c6dcf3; color: #123f6b; }
.alert ul { margin: 6px 0 0; padding-left: 1.2em; }

.honeypot-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; }

/* ---------- Search ---------- */
.search-bar { display: flex; gap: 10px; flex-wrap: wrap; background: var(--white); border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-sm); }
.search-bar input[type="search"] { flex: 2 1 240px; }
.search-bar select { flex: 1 1 160px; }
.search-bar input, .search-bar select {
  border: 1px solid var(--grey-300); border-radius: var(--radius-sm); padding: 11px 13px; font-size: 14.5px;
}

.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 26px; }
@media (max-width: 900px) { .result-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .result-grid { grid-template-columns: 1fr; } }

.person-card {
  border: 1px solid var(--border-hairline); border-radius: var(--radius-md); overflow: hidden; background: var(--white);
  box-shadow: var(--shadow-sm); transition: box-shadow .15s ease, transform .15s ease;
}
.person-card:hover { box-shadow: var(--shadow-md), 0 0 0 1px rgba(45,143,92,.22); transform: translateY(-2px); }
.person-card__photo {
  aspect-ratio: 4/5; background-color: var(--grey-100); background-image: linear-gradient(160deg, var(--grey-100), var(--grey-50));
  background-size: cover; background-position: center; background-repeat: no-repeat; position: relative;
  display: flex; align-items: flex-end; padding: 10px;
}
.person-card__photo .tag { position: absolute; top: 10px; left: 10px; }
.person-card__photo--placeholder { display: flex; align-items: center; justify-content: center; color: var(--grey-400); font-size: 13px; }
.person-card__body { padding: 14px; }
.person-card__body h3 { font-size: 15.5px; margin-bottom: 4px; }
.person-card__body .meta { font-size: 12.5px; color: var(--grey-600); margin-bottom: 2px; }
.person-card__ref { font-size: 11px; color: var(--grey-400); margin-top: 8px; letter-spacing: .04em; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--grey-500); }

/* ---------- Footer ---------- */
.site-footer { background: var(--mesh-dark); color: var(--grey-300); margin-top: 64px; position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-line); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding: 52px 0 26px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: var(--white); opacity: .85; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid a { color: var(--grey-300); display: block; margin-bottom: 9px; font-size: 13.5px; }
.footer-grid a:hover { color: var(--pale-yellow); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: 12.5px; color: var(--grey-400);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img.brand-mark { height: 64px; width: 64px; border-radius: 50%; flex: 0 0 auto; box-shadow: 0 0 0 3px rgba(255,255,255,.14); }
.footer-brand .brand-word b { font-family: var(--font-head); font-size: 18px; color: var(--white); }
.footer-tagline { color: var(--grey-400); font-size: 13.5px; max-width: 42ch; }

/* ---------- Image protection ----------
   Deters casual copying via right-click/drag/selection. This is a
   deterrent, not a guarantee - see README for the honest limitations of
   client-side image protection. */
.protected-img, .person-card__photo, .hero__main img, .news-card__thumb img, .charter-image-wrap img {
  -webkit-user-select: none; -moz-user-select: none; user-select: none;
  -webkit-user-drag: none; user-drag: none;
  pointer-events: none;
}
.protected-img-wrap { position: relative; }

/* ---------- Misc ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--grey-500); }
.divider { height: 1px; background: var(--grey-200); margin: 30px 0; border: 0; }

table.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data-table th, table.data-table td {
  border-bottom: 1px solid var(--grey-200); padding: 10px 12px; text-align: left; vertical-align: middle;
}
table.data-table th { background: var(--grey-50); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--grey-600); }
table.data-table tr:hover td { background: var(--grey-50); }

.pagination { display: flex; gap: 8px; justify-content: center; margin: 30px 0; }
.pagination a, .pagination span {
  padding: 8px 14px; border: 1px solid var(--grey-300); border-radius: var(--radius-sm); font-size: 13.5px;
}
.pagination .current { background: var(--ink); color: var(--white); border-color: var(--ink); }
