/* =========================================================================
   NARA design system
   Colors are taken from the NARA seal: navy #23395e, red #bb262c, cream.
   ========================================================================= */

:root {
  /* brand */
  --navy-900: #101d33;
  --navy-800: #17284470;
  --navy: #23395e;
  --navy-600: #2e4a78;
  --navy-500: #3b5c92;
  --red: #bb262c;
  --red-600: #a11f25;
  --red-100: #fbeaea;
  --blue: #0f6bc4;
  --blue-600: #0b579f;
  --blue-100: #e8f2fd;
  --gold: #e2a53d;
  --gold-100: #fdf3e0;
  --green: #1f7a55;
  --green-100: #e6f4ee;

  /* neutrals */
  --ink: #16202e;
  --ink-70: #46566b;
  --ink-50: #6b7b90;
  --line: #dfe5ee;
  --line-soft: #edf1f6;
  --surface: #ffffff;
  --page: #f6f8fb;
  --cream: #f4f1ec;

  /* type */
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Barlow", var(--font-body);

  /* geometry */
  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(16, 29, 51, .06), 0 1px 3px rgba(16, 29, 51, .05);
  --shadow: 0 4px 14px rgba(16, 29, 51, .08);
  --shadow-lg: 0 18px 48px rgba(16, 29, 51, .16);
  --container: 1180px;
  --header-h: 96px;
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--navy); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.3rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.08rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-600); text-decoration: underline; }
ul, ol { padding-left: 1.25rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--line-soft); padding: .15em .4em; border-radius: 4px; }
pre { background: var(--navy-900); color: #dbe6f5; padding: 1rem 1.15rem; border-radius: var(--radius); overflow-x: auto; }
pre code { background: none; color: inherit; padding: 0; }
blockquote { margin: 1.25rem 0; padding: .35rem 0 .35rem 1.15rem; border-left: 4px solid var(--gold); color: var(--ink-70); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------- utilities */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 800px; }
.section { padding: clamp(48px, 6vw, 88px) 0; }
.section-tight { padding: clamp(32px, 4vw, 56px) 0; }
.section-alt { background: var(--surface); }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: #e6edf7; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy a { color: #9fc8f4; }

.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; font-size: .78rem; color: var(--red); margin-bottom: .6rem;
}
.section-navy .eyebrow { color: var(--gold); }
.lede { font-size: 1.13rem; color: var(--ink-70); max-width: 62ch; }
.lede-lg { font-size: 1.35rem; line-height: 1.65; max-width: 72ch; }
.lede-em { font-style: italic; }
.section-head { max-width: 70ch; margin-bottom: 2.25rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.text-center { text-align: center; }
.muted { color: var(--ink-50); }
.small { font-size: .875rem; }
.tiny { font-size: .8rem; }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.mb-0 { margin-bottom: 0; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.hide { display: none !important; }

.grid { display: grid; gap: 24px; }
.grid-1 { grid-template-columns: minmax(0, 1fr); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-initiatives { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
.grid-initiatives .tile { padding: 30px 32px; }
.grid-initiatives .tile h3 { font-size: 1.3rem; }
.grid-initiatives .tile p { font-size: 1rem; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.cluster { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.stack > * + * { margin-top: 1rem; }
.between { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: .85rem 1.4rem; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-600); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-600); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-600); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-quiet { background: var(--line-soft); color: var(--navy); }
.btn-quiet:hover { background: var(--line); color: var(--navy); }
.btn-danger { background: #fff; color: var(--red); border-color: var(--red); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-sm { padding: .55rem .95rem; font-size: .9rem; }
.btn-lg { padding: 1rem 1.8rem; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; }

/* ----------------------------------------------------------------- header */
.topbar {
  background: var(--navy-900); color: #b9c8dd; font-size: .82rem;
}
.topbar .container { display: flex; gap: 18px; align-items: center; justify-content: space-between; min-height: 38px; flex-wrap: wrap; }
.topbar a { color: #cfdcee; }
.topbar a:hover { color: #fff; }
.topbar-links { display: flex; gap: 18px; flex-wrap: wrap; }

.site-header { position: sticky; top: 0; z-index: 60; background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); text-decoration: none; }
.brand img { width: 68px; height: 68px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 700; font-size: 1.35rem; color: var(--navy); letter-spacing: -.01em; }
.brand-sub { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--red); font-weight: 600; }
.brand:hover { text-decoration: none; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 600;
  font-size: .96rem; color: var(--ink); padding: .6rem .7rem; border-radius: var(--radius); text-decoration: none;
}
.nav-link:hover, .nav-item:hover > .nav-link { background: var(--blue-100); color: var(--navy); text-decoration: none; }
.nav-link.is-active { color: var(--red); }
.nav-caret { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .6; }

.mega {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(6px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 18px; min-width: 300px;
  opacity: 0; visibility: hidden; transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.mega-wide { min-width: 620px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 22px; }
.nav-item:hover > .mega, .nav-item:focus-within > .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-group-title { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; color: var(--ink-50); padding: 6px 10px; }
.mega a { display: block; padding: 9px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.mega a:hover { background: var(--blue-100); color: var(--navy); text-decoration: none; }
.mega a strong { display: block; font-family: var(--font-head); font-size: .96rem; font-weight: 600; }
.mega a span { display: block; font-size: .81rem; color: var(--ink-50); line-height: 1.4; }

.nav-cta { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  border-radius: var(--radius); padding: .55rem .7rem; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 4px 0; }

@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + 38px) 0 0 auto; width: min(360px, 88vw);
    background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow-lg);
    flex-direction: column; align-items: stretch; gap: 0; padding: 16px; overflow-y: auto;
    transform: translateX(100%); transition: transform .22s ease; margin-left: 0;
  }
  .nav.is-open { transform: translateX(0); }
  .nav-link { padding: .8rem .6rem; font-size: 1.02rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .mega {
    position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none;
    border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; padding: 4px 0 12px 12px;
    min-width: 0; display: none;
  }
  .mega-wide { grid-template-columns: 1fr; min-width: 0; }
  .nav-item.is-open > .mega { display: block; }
  .nav-item:hover > .mega { opacity: 1; visibility: visible; }
  .nav-cta { margin: 16px 0 0; flex-direction: column; align-items: stretch; }
  .nav-cta .btn { width: 100%; }
}

/* ------------------------------------------------------------------- hero */
.hero {
  position: relative; color: #eaf1fa; overflow: hidden;
  background:
    radial-gradient(1100px 480px at 78% -10%, rgba(187, 38, 44, .38), transparent 62%),
    linear-gradient(150deg, #16264180 0%, #23395e 45%, #101d33 100%),
    var(--navy);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .16;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.16) 0 1px, transparent 1px 46px);
  mask-image: linear-gradient(to bottom, transparent, #000 40%, transparent);
}
.hero .container { position: relative; z-index: 1; padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(56px, 7vw, 104px); }
.hero h1 { color: #fff; max-width: 18ch; }
.hero p { color: #c9d8ec; font-size: 1.18rem; max-width: 56ch; }
.hero .eyebrow { color: var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.75rem; }

.hero-side { display: grid; justify-items: center; gap: 28px; }
.hero-logo { width: min(240px, 60%); height: auto; filter: drop-shadow(0 12px 32px rgba(0,0,0,.35)); }
@media (max-width: 860px) { .hero-logo { width: 150px; } }

.hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 18px; margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,.16); }
.hero-stat .n { font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; color: #fff; line-height: 1; }
.hero-stat .l { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: #9fb3cd; margin-top: .35rem; }

.page-hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%); color: #e8eff8; padding: clamp(36px, 4.5vw, 64px) 0; }
.page-hero h1 { color: #fff; margin-bottom: .35rem; }
.page-hero p { color: #bccbe0; max-width: 62ch; margin-bottom: 0; }
.breadcrumbs { font-size: .84rem; color: #9db0c8; margin-bottom: .9rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.breadcrumbs a { color: #cfe0f4; }
.breadcrumbs span[aria-hidden] { opacity: .5; }

/* ------------------------------------------------------------------ cards */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.card-hover { transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease; }
.card-hover:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #c9d6e8; }
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
.card-link { display: block; color: inherit; text-decoration: none; }
.card-link:hover { text-decoration: none; color: inherit; }

.card-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-100); color: var(--blue-600); font-size: 1.3rem; margin-bottom: 14px;
}
.card-icon.red { background: var(--red-100); color: var(--red); }
.card-icon.gold { background: var(--gold-100); color: #a9711a; }
.card-icon.green { background: var(--green-100); color: var(--green); }

.pillar { border-top: 4px solid var(--red); }
.arrow-link { font-family: var(--font-head); font-weight: 600; display: inline-flex; gap: .4rem; align-items: center; }
.arrow-link::after { content: "→"; transition: transform .15s ease; }
.card-hover:hover .arrow-link::after, .arrow-link:hover::after { transform: translateX(3px); }

.program-card, .tile { display: flex; flex-direction: column; height: 100%; }
.program-card .card-body, .tile .card-body { flex: 1; }
.tile-head { margin-bottom: .5rem; min-height: 1.6rem; }
.program-meta { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-50); font-weight: 600; }

/* ------------------------------------------------------------------ badges */
.badge {
  display: inline-flex; align-items: center; gap: .35rem; font-family: var(--font-head); font-weight: 600;
  font-size: .76rem; text-transform: uppercase; letter-spacing: .06em;
  padding: .3rem .65rem; border-radius: var(--radius-pill); background: var(--line-soft); color: var(--ink-70);
}
.badge-ok { background: var(--green-100); color: var(--green); }
.badge-bad { background: var(--red-100); color: var(--red-600); }
.badge-warn { background: var(--gold-100); color: #96650f; }
.badge-info { background: var(--blue-100); color: var(--blue-600); }
.badge-muted { background: var(--line-soft); color: var(--ink-50); }
.badge-live { background: var(--red); color: #fff; }

/* ------------------------------------------------------------------ alerts */
.alert {
  border-radius: var(--radius); padding: 14px 18px; margin-bottom: 1.25rem;
  border: 1px solid var(--line); background: var(--surface); font-size: .95rem;
}
.alert p:last-child { margin-bottom: 0; }
.alert-success { background: var(--green-100); border-color: #bfe2d3; color: #14503a; }
.alert-error   { background: var(--red-100); border-color: #f0c8ca; color: #8b1a1f; }
.alert-info    { background: var(--blue-100); border-color: #c6ddf7; color: #0a4a86; }
.alert-warn    { background: var(--gold-100); border-color: #f0dcb4; color: #7d5410; }

/* ------------------------------------------------------------------- forms */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.field-full { grid-column: 1 / -1; }
label, .label { font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--navy); }
.hint { font-size: .82rem; color: var(--ink-50); }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="url"],
input[type="number"], input[type="date"], input[type="search"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid #c8d3e2; border-radius: var(--radius); padding: .7rem .85rem;
  transition: border-color .14s ease, box-shadow .14s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(15, 107, 196, .15);
}
input[aria-invalid="true"], .has-error input, .has-error select, .has-error textarea { border-color: var(--red); }
textarea { min-height: 130px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7b90' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .85rem center; padding-right: 2.2rem; }
input[type="file"] { font-size: .92rem; padding: .55rem; background: var(--line-soft); border: 1px dashed #b9c6d8; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-family: var(--font-body); font-weight: 400; color: var(--ink); }
.check input { width: 18px; height: 18px; margin-top: .18rem; flex: none; accent-color: var(--blue); }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.radio-card { border: 1px solid #c8d3e2; border-radius: var(--radius); padding: .8rem .9rem; cursor: pointer; display: flex; gap: .55rem; align-items: center; background: #fff; }
.radio-card:has(input:checked) { border-color: var(--blue); background: var(--blue-100); }
.field-error { color: var(--red-600); font-size: .84rem; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; margin: 0 0 1.5rem; }
legend { font-family: var(--font-head); font-weight: 700; color: var(--navy); padding: 0 .5rem; font-size: 1.05rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 1.5rem; }
.required::after { content: " *"; color: var(--red); }

/* ------------------------------------------------------------------ tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
thead th {
  text-align: left; font-family: var(--font-head); font-size: .78rem; text-transform: uppercase;
  letter-spacing: .07em; color: var(--ink-50); padding: .7rem .8rem; border-bottom: 2px solid var(--line);
  white-space: nowrap;
}
tbody td { padding: .8rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
tbody tr:hover { background: #fafcff; }
.table-total td { font-weight: 700; border-top: 2px solid var(--line); border-bottom: 0; background: var(--line-soft); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* --------------------------------------------------------------- dashboard */
.portal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; padding: 32px 0 64px; }
@media (max-width: 900px) { .portal-layout { grid-template-columns: 1fr; gap: 20px; } }
.portal-nav { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px; position: sticky; top: calc(var(--header-h) + 16px); }
.portal-nav h4 { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-50); margin: 14px 10px 6px; }
.portal-nav h4:first-child { margin-top: 4px; }
.portal-nav a { display: flex; justify-content: space-between; gap: 8px; padding: .55rem .7rem; border-radius: 8px; color: var(--ink); font-size: .95rem; font-family: var(--font-head); font-weight: 500; }
.portal-nav a:hover { background: var(--line-soft); text-decoration: none; }
.portal-nav a.is-active { background: var(--navy); color: #fff; font-weight: 600; }
.portal-nav .count { background: rgba(0,0,0,.08); border-radius: var(--radius-pill); padding: 0 .5rem; font-size: .78rem; }
.portal-nav a.is-active .count { background: rgba(255,255,255,.2); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; }
.stat .n { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; color: var(--navy); line-height: 1; }
.stat .l { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-50); margin-top: .4rem; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: 24px; overflow: hidden; }
.panel-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); background: #fbfcfe; }
.panel-head h2, .panel-head h3 { margin: 0; font-size: 1.08rem; }
.panel-body { padding: 20px; }
.panel-body > :last-child { margin-bottom: 0; }
.panel-foot { padding: 14px 20px; border-top: 1px solid var(--line); background: #fbfcfe; }

.summary-rows { list-style: none; margin: 0; padding: 0; }
.summary-rows li { display: flex; justify-content: space-between; gap: 16px; padding: .6rem 0; border-bottom: 1px solid var(--line-soft); }
.summary-rows li:last-child { border-bottom: 0; }
.summary-rows .k { color: var(--ink-70); }
.summary-rows .v { font-weight: 600; font-variant-numeric: tabular-nums; }
.summary-rows li.total { border-top: 2px solid var(--line); margin-top: .35rem; padding-top: .8rem; font-size: 1.1rem; }
.summary-rows li.total .v { color: var(--navy); font-family: var(--font-head); font-size: 1.35rem; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1.1rem .5rem; }
.timeline li::before { content: ""; position: absolute; left: -28px; top: .45rem; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--blue-100); }
.timeline .when { font-size: .8rem; color: var(--ink-50); }

.steps { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; list-style: none; padding: 0; }
.steps li { display: flex; align-items: center; gap: .5rem; font-family: var(--font-head); font-size: .88rem; font-weight: 600; color: var(--ink-50); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: .4rem .9rem; }
.steps li .i { width: 20px; height: 20px; border-radius: 50%; background: var(--line); color: var(--ink-70); display: grid; place-items: center; font-size: .74rem; }
.steps li.done { color: var(--green); border-color: #bfe2d3; background: var(--green-100); }
.steps li.done .i { background: var(--green); color: #fff; }
.steps li.current { color: #fff; background: var(--navy); border-color: var(--navy); }
.steps li.current .i { background: rgba(255,255,255,.25); color: #fff; }

/* --------------------------------------------------------------- club map */
.map-layout { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
@media (max-width: 900px) { .map-layout { grid-template-columns: 1fr; } }
.map-sidebar { border-right: 1px solid var(--line); display: flex; flex-direction: column; max-height: 640px; }
.map-search { padding: 18px; border-bottom: 1px solid var(--line); background: #fbfcfe; }
.map-results { overflow-y: auto; flex: 1; }
.club-item { padding: 14px 18px; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.club-item:hover, .club-item.is-active { background: var(--blue-100); }
.club-item h4 { margin: 0 0 .2rem; font-size: 1rem; }
.club-item .meta { font-size: .84rem; color: var(--ink-50); }
.club-item .dist { float: right; font-size: .8rem; color: var(--blue-600); font-weight: 600; }
#club-map { min-height: 640px; }
@media (max-width: 900px) { #club-map { min-height: 400px; } .map-sidebar { max-height: 420px; } }

/* -------------------------------------------------------------- presenters */
.presenter-card { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; }
.presenter-avatar {
  width: 76px; height: 76px; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem;
  overflow: hidden;
}
.presenter-avatar img { width: 100%; height: 100%; object-fit: cover; }
.topic-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: .6rem; }
.topic-tag { font-size: .78rem; background: var(--line-soft); color: var(--ink-70); border-radius: var(--radius-pill); padding: .2rem .6rem; }

.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; align-items: end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; margin-bottom: 28px; }
.filters .field { margin-bottom: 0; }

/* -------------------------------------------------------------------- wiki */
.wiki-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr) 210px; gap: 32px; align-items: start; padding: 32px 0 64px; }
@media (max-width: 1100px) { .wiki-layout { grid-template-columns: 250px minmax(0, 1fr); } .wiki-toc { display: none; } }
@media (max-width: 820px) { .wiki-layout { grid-template-columns: 1fr; } }
.wiki-sidebar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; }
.wiki-tree { list-style: none; margin: 0; padding: 0; font-size: .93rem; }
.wiki-tree ul { list-style: none; margin: .2rem 0 .4rem; padding-left: .8rem; border-left: 1px solid var(--line); }
.wiki-tree a { display: block; padding: .35rem .5rem; border-radius: 6px; color: var(--ink); }
.wiki-tree a:hover { background: var(--line-soft); text-decoration: none; }
.wiki-tree a.is-active { background: var(--navy); color: #fff; font-weight: 600; }
.wiki-content { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 40px); }
.wiki-content h2 { margin-top: 2rem; padding-bottom: .35rem; border-bottom: 1px solid var(--line-soft); }
.wiki-content h3 { margin-top: 1.5rem; }
.wiki-content img { border-radius: var(--radius); margin: 1rem 0; }
.wiki-toc { position: sticky; top: calc(var(--header-h) + 16px); font-size: .87rem; }
.wiki-toc h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-50); }
.wiki-toc a { display: block; padding: .25rem 0; color: var(--ink-70); border-left: 2px solid var(--line); padding-left: .7rem; }
.wiki-toc a.lvl-3 { padding-left: 1.4rem; }
.wiki-toc a:hover { color: var(--blue); border-color: var(--blue); text-decoration: none; }
.wiki-meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; font-size: .85rem; color: var(--ink-50); border-top: 1px solid var(--line-soft); margin-top: 2.5rem; padding-top: 1rem; }

/* -------------------------------------------------------------- documents */
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.doc-list li:last-child { border-bottom: 0; }
.doc-icon { width: 40px; height: 40px; flex: none; border-radius: 8px; background: var(--red-100); color: var(--red); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: .72rem; }
.doc-body { flex: 1; min-width: 0; }
.doc-body strong { display: block; font-family: var(--font-head); }
.doc-body span { font-size: .84rem; color: var(--ink-50); }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--navy-900); color: #9fb1c8; padding: 56px 0 0; margin-top: auto; font-size: .93rem; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.site-footer a { color: #c2d3e8; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-bottom: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 1rem; }
.footer-brand img { width: 56px; height: 56px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; font-size: .84rem; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-badge { display: inline-block; border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); padding: .5rem .8rem; color: #d6e3f2; font-size: .82rem; margin-top: .5rem; }

body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }

/* ------------------------------------------------------------------- misc */
.callout { border-left: 4px solid var(--blue); background: var(--blue-100); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; }
.callout-gold { border-color: var(--gold); background: var(--gold-100); }
.callout-red { border-color: var(--red); background: var(--red-100); }
.callout p:last-child { margin-bottom: 0; }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-family: var(--font-head); font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--blue); }
.faq details[open] summary::after { content: "−"; }
.faq .faq-body { padding: 0 20px 18px; }
.faq .faq-body > :last-child { margin-bottom: 0; }

.pagination { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 2rem; }
.pagination a, .pagination span { padding: .5rem .85rem; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-size: .92rem; }
.pagination .is-current { background: var(--navy); color: #fff; border-color: var(--navy); }

.empty { text-align: center; padding: 48px 20px; color: var(--ink-50); }
.empty .icon { font-size: 2.2rem; margin-bottom: .5rem; opacity: .5; }

@media print {
  .site-header, .site-footer, .topbar, .portal-nav, .form-actions, .no-print { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .panel, .card { box-shadow: none; border-color: #999; break-inside: avoid; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------ content page components */
.container-narrow { max-width: 780px; }

.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.aside { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 16px); }
.aside .card { padding: 20px; }
.aside h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-50); margin-bottom: .8rem; }

.prose > h2 { margin-top: 2.2rem; }
.prose > h2:first-child { margin-top: 0; }
.prose > h3 { margin-top: 1.6rem; }
.prose p, .prose li { color: var(--ink-70); }
.prose ul, .prose ol { padding-left: 1.2rem; margin-bottom: 1.2rem; }
.prose li { margin-bottom: .45rem; }

.check-list { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.check-list li { position: relative; padding-left: 1.9rem; margin-bottom: .7rem; color: var(--ink-70); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--blue-100); color: var(--blue);
  display: grid; place-items: center; font-size: .72rem; font-weight: 700;
}

.summary-rows { list-style: none; margin: 0; padding: 0; font-size: .93rem; }
.summary-rows li { display: flex; gap: 12px; justify-content: space-between; padding: .55rem 0; border-bottom: 1px solid var(--line-soft); }
.summary-rows li:last-child { border-bottom: 0; }
.summary-rows .k { color: var(--ink-50); }
.summary-rows .v { font-weight: 600; color: var(--navy); text-align: right; }

.person-card { text-align: center; }
.person-avatar {
  width: 64px; height: 64px; margin: 0 auto .9rem; border-radius: 50%;
  background: linear-gradient(140deg, var(--navy), var(--blue));
  color: #fff; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.5rem;
}

.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 18px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); background: var(--red-100); }
.field-error { color: var(--red); font-size: .84rem; margin: .3rem 0 0; }
.req { color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.table-wrap .table { margin: 0; }

.badge-gold { background: var(--gold-100); color: #7a5410; }

.empty-state { text-align: center; padding: 56px 24px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius-lg); }
.empty-state h3 { margin-bottom: .5rem; }

.doc-group-title { font-size: 1.15rem; margin: 2.2rem 0 .4rem; padding-bottom: .4rem; border-bottom: 2px solid var(--line); }
.doc-item { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.doc-ext {
  width: 44px; height: 44px; flex: none; border-radius: 8px;
  background: var(--red-100); color: var(--red);
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: .68rem;
}
.doc-meta { flex: 1; min-width: 0; }
.doc-title { font-family: var(--font-head); font-weight: 600; color: var(--navy); }
.doc-sub { font-size: .82rem; color: var(--ink-50); margin: .2rem 0 0; }

.faq details > :not(summary) { padding: 0 20px 18px; margin: 0; color: var(--ink-70); }

@media (max-width: 900px) {
  .with-aside { grid-template-columns: 1fr; }
  .aside { position: static; }
}

/* translucent card used on the navy hero / dark sections */
.card-glass {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .18);
  backdrop-filter: blur(4px);
  color: #d7e3f2;
}
.card-glass h3, .card-glass h4 { color: #fff; margin-bottom: .35rem; }
.card-glass p { color: #bccbe0; }
.card-glass a { color: #9ec8f5; }
.card-glass a:hover { color: #fff; }

/* ------------------------------------------------------------------ clubs */
.filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.filters .field { margin: 0; }
.btn-block { display: block; width: 100%; text-align: center; }

.club-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: start;
}
.club-results { max-height: 620px; overflow-y: auto; padding-right: 4px; }
.results-count { margin: 0 0 12px; color: var(--muted); }
.club-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.club-item {
  position: relative;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.club-item:hover { border-color: var(--blue); }
.club-item .dist {
  float: right;
  font-size: .8rem;
  font-weight: 600;
  color: var(--blue);
  background: #eaf2fc;
  border-radius: 999px;
  padding: 2px 10px;
}
.club-name { font-weight: 600; font-family: var(--font-head, inherit); }
.club-call {
  display: inline-block;
  margin-left: 8px;
  font-size: .78rem;
  letter-spacing: .05em;
  color: var(--navy);
  background: #f0f3f8;
  border-radius: 4px;
  padding: 1px 6px;
}
.club-map {
  height: 620px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #e8eef5;
  z-index: 0;
}
.club-map-wrap { position: sticky; top: 90px; }

@media (max-width: 900px) {
  .filters { grid-template-columns: 1fr; }
  .club-layout { grid-template-columns: 1fr; }
  .club-map-wrap { position: static; order: -1; }
  .club-map { height: 340px; }
  .club-results { max-height: none; }
}

/* -------------------------------------------------------------- presenters */
.presenter-card { display: flex; flex-direction: column; }
.presenter-card .btn { margin-top: auto; }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 0; }
.tag-list li {
  font-size: .74rem;
  background: #eef2f8;
  color: var(--navy);
  border-radius: 999px;
  padding: 3px 10px;
}
.checkbox { display: block; margin: 6px 0; font-weight: 400; }
.checkbox input { margin-right: 8px; }
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2px 18px; }
fieldset.field { border: 0; padding: 0; margin: 0 0 20px; }
fieldset.field legend { font-weight: 600; margin-bottom: 6px; }

/* ------------------------------------------------------------------ portal */
.container.narrow { max-width: 760px; }
.section-heading { font-size: 1.15rem; color: var(--navy); margin: 24px 0 10px; }
.stat-card { display: block; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card h3 { color: var(--navy); margin-bottom: .35rem; }
.status {
  display: inline-block;
  font-size: .74rem;
  text-transform: capitalize;
  border-radius: 999px;
  padding: 3px 10px;
  background: #eef2f8;
  color: var(--navy);
  white-space: nowrap;
}
.status-approved, .status-accepted, .status-reimbursed, .status-paid { background: #e4f4ec; color: var(--green); }
.status-denied, .status-declined { background: #fbe9ea; color: var(--red); }
.status-submitted, .status-final_submitted, .status-sent { background: #fdf3e0; color: #96690f; }

/* reimbursement portal */
.mb-1 { margin-bottom: .5rem; }
.right { text-align: right; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 1.25rem; }
.btn-row form { margin: 0; }
.table th { text-align: left; color: var(--navy); font-weight: 600; }
.table td, .table th { padding: 10px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.status-approved_pending_travel { background: #e4f4ec; color: var(--green); }
.status-pending_pre_approval, .status-pending_final_review { background: #fdf3e0; color: #96690f; }
.status-changes_requested, .status-final_changes_requested { background: #eaf1fb; color: var(--blue-600, #0f6bc4); }
.status-reimbursed_closed { background: #e4f4ec; color: var(--green); }
.status-draft { background: #eef2f8; color: var(--navy); }

/* wiki */
.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; }
.lead { font-size: 1.08rem; color: var(--ink-70); }
.h5 { font-size: 1.05rem; color: var(--navy); margin-bottom: .5rem; }
.h6 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-50); margin-bottom: .5rem; }
textarea.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; line-height: 1.5; }
.wiki-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.wiki-sidebar { position: sticky; top: 90px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 18px; }
.wiki-search { display: flex; gap: 8px; margin-bottom: 1rem; }
.wiki-search input { flex: 1; min-width: 0; }
.wiki-section { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-50); margin: 1.1rem 0 .4rem; }
.wiki-section:first-of-type { margin-top: 0; }
.wiki-nav { list-style: none; margin: 0 0 .4rem; padding: 0; }
.wiki-nav li { margin: 0; }
.wiki-nav a { display: block; padding: 5px 10px; border-radius: 6px; color: var(--ink-70); font-size: .92rem; text-decoration: none; }
.wiki-nav a:hover { background: var(--line-soft); color: var(--navy); }
.wiki-nav li.is-active > a { background: var(--blue-100); color: var(--blue); font-weight: 600; }
.wiki-sidebar { max-height: calc(100vh - 110px); overflow-y: auto; }
.wiki-home { display: block; padding: 5px 10px; border-radius: 6px; font-size: .92rem; font-weight: 600; color: var(--navy); text-decoration: none; }
.wiki-home:hover { background: var(--line-soft); }
.wiki-home.is-active { background: var(--blue-100); color: var(--blue); }
.wiki-nav.depth-1, .wiki-nav.depth-2 { display: none; margin-left: 10px; padding-left: 8px; border-left: 1px solid var(--line); }
.wiki-nav li.is-open > .wiki-nav, .wiki-nav li.is-active > .wiki-nav { display: block; }
.wiki-nav.depth-0 > li > a { font-weight: 600; color: var(--navy); }
.wiki-nav li.is-open > a { color: var(--navy); }
.wiki-account { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.wiki-account-note { font-size: .82rem; color: var(--ink-50); margin: 0; }
.wiki-section-block { border-top: 1px solid var(--line); padding-top: 1.4rem; margin-top: 1.4rem; }
.wiki-section-block:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.wiki-index-list { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: 8px; }
.wiki-index-list li { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
.wiki-index-list li a { font-weight: 600; }
.wiki-index-list li .small { display: block; margin-top: .15rem; }
.wiki-children { margin-top: 2rem; }
.wiki-toc { border-left: 3px solid var(--line); padding: 4px 0 4px 16px; margin-bottom: 1.6rem; }
.wiki-toc ul { list-style: none; margin: 0; padding: 0; }
.wiki-toc li.level-3 { padding-left: 14px; }
.wiki-toc a { font-size: .92rem; color: var(--ink-70); }
@media (max-width: 900px) {
  .wiki-layout { grid-template-columns: 1fr; gap: 24px; }
  .wiki-sidebar { position: static; }
}

/* ---------------------------------------------------------- board console */
body.console { background: var(--surface-2, #f5f7fb); }
.console-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }

.console-side {
  background: var(--navy-900);
  color: #cdd8ea;
  padding: 20px 14px 32px;
  position: sticky;
  top: 0;
  align-self: start;
  max-height: 100vh;
  overflow-y: auto;
}
.console-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 20px; color: #fff; text-decoration: none; }
.console-brand img { width: 34px; height: 34px; }
.console-brand span { font-family: Barlow, system-ui, sans-serif; font-weight: 700; letter-spacing: .02em; }
.console-group { margin-bottom: 1.4rem; }
.console-group > h2 {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .09em;
  color: #7d8ca8; margin: 0 0 .45rem; padding: 0 10px;
}
.console-side ul { list-style: none; margin: 0; padding: 0; }
.console-side li { margin: 0; }
.console-side a {
  display: block; padding: 8px 10px; border-radius: 8px;
  color: #cdd8ea; font-size: .93rem; text-decoration: none;
}
.console-side a:hover { background: #ffffff14; color: #fff; }
.console-side a.is-active { background: var(--blue); color: #fff; font-weight: 600; }

.console-main { display: flex; flex-direction: column; min-width: 0; }
.console-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 28px; background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.console-crumbs { flex: 1; min-width: 0; font-size: .88rem; color: var(--ink-50); display: flex; flex-wrap: wrap; gap: 6px; }
.console-crumbs a { color: var(--ink-70); text-decoration: none; }
.console-crumbs a:hover { color: var(--blue); text-decoration: underline; }
.console-user { display: flex; align-items: center; gap: 12px; }

.console-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: 0; padding: 6px; cursor: pointer; }
.console-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); }

.console-content { padding: 28px; max-width: 1180px; width: 100%; }
.console-content .section { padding: 0; }
.console-head { margin-bottom: 1.6rem; }
.console-head h1 { font-size: 1.7rem; margin: 0 0 .3rem; }
.console-head p { margin: 0; }
.console-section { margin-bottom: 2.2rem; }
.console-section > h2 { margin-bottom: .9rem; }

.queue-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.queue-list li {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: var(--radius-lg); padding: 14px 18px;
}
.queue-count { font-family: Barlow, system-ui, sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--navy); min-width: 2ch; }
.queue-label { flex: 1; min-width: 0; }
.card-link { display: block; text-decoration: none; color: inherit; }
.card-link:hover { border-color: var(--blue); box-shadow: 0 6px 20px rgba(16, 29, 51, .08); }
.empty-state { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius-lg); padding: 22px; }
.doc-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 10px; }
.doc-list li { display: flex; flex-direction: column; }

@media (max-width: 900px) {
  .console-shell { grid-template-columns: 1fr; }
  .console-side { position: fixed; inset: 0 auto 0 0; width: 250px; z-index: 40; transform: translateX(-100%); transition: transform .2s ease; max-height: none; }
  .console-side.is-open { transform: none; }
  .console-toggle { display: flex; }
  .console-bar { padding: 12px 16px; }
  .console-content { padding: 20px 16px; }
}

/* ---------------------------------------------- member / sponsor logo band */
.section-logos { background: var(--surface); }
.marquee { overflow: hidden; position: relative; padding: .5rem 0; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--surface), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--surface), transparent); }
.marquee-track {
  display: flex; align-items: center; gap: 3.5rem; width: max-content;
  animation:
    marquee-in 1.4s cubic-bezier(.22, .61, .36, 1) both,
    marquee calc(var(--marquee-count, 6) * 6s) linear 1.4s infinite;
}
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-item { flex: 0 0 auto; }
.marquee-logo {
  display: block; height: 120px; width: auto; max-width: 280px; object-fit: contain;
  transition: transform .2s ease;
}
.marquee-item:hover .marquee-logo, .marquee-item a:focus-visible .marquee-logo { transform: scale(1.04); }
@keyframes marquee-in { from { transform: translateX(100vw); } to { transform: translateX(0); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 1.75rem)); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; transform: none; }
}
.logo-thumb { height: 40px; width: auto; max-width: 120px; object-fit: contain; }
.inline-form { display: inline-flex; gap: .35rem; }

/* Wiki markdown editor: toolbar + live preview */
.editor { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.editor-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px 8px; background: var(--line-soft); border-bottom: 1px solid var(--line); }
.editor-btn { background: var(--surface); border: 1px solid var(--line); border-radius: 5px; color: var(--ink-70); cursor: pointer; font-size: .85rem; line-height: 1; padding: 6px 9px; }
.editor-btn:hover { background: var(--blue-100); border-color: var(--blue); color: var(--blue); }
.editor-sep { width: 1px; align-self: stretch; margin: 2px 4px; background: var(--line); }
.editor-panes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.editor-panes textarea { border: 0; border-right: 1px solid var(--line); border-radius: 0; resize: vertical; min-height: 380px; }
.editor-panes textarea:focus { outline: 2px solid var(--blue); outline-offset: -2px; }
.editor-preview { padding: 16px 20px; overflow-y: auto; max-height: 620px; background: var(--surface); }
.editor-preview > :first-child { margin-top: 0; }
.editor-preview h2 { font-size: 1.3rem; margin-top: 1.6rem; padding-bottom: .3rem; border-bottom: 1px solid var(--line-soft); }
.editor-preview h3 { font-size: 1.1rem; margin-top: 1.2rem; }
.editor-preview img { max-width: 100%; border-radius: var(--radius); }
.editor-preview table { width: 100%; border-collapse: collapse; }
.editor-preview th, .editor-preview td { border: 1px solid var(--line); padding: 6px 9px; text-align: left; }
@media (max-width: 900px) {
  .editor-panes { grid-template-columns: 1fr; }
  .editor-panes textarea { border-right: 0; border-bottom: 1px solid var(--line); min-height: 280px; }
  .editor-preview { max-height: 340px; }
}

/* Footnote citations */
.footnote-ref { font-size: .72em; line-height: 0; vertical-align: super; }
.footnote-ref a { padding: 0 1px; text-decoration: none; }
.footnotes { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .92rem; }
.footnotes h2 { font-size: 1.05rem; border: 0; margin: 0 0 .5rem; }
.footnotes ol { margin: 0; padding-left: 1.3rem; color: var(--ink-70); }
.footnotes li { margin: .3rem 0; }
.footnotes li:target { background: var(--blue-100); border-radius: 4px; }
.footnote-back { text-decoration: none; margin-left: .25rem; }

/* Revision history and diffs */
.revision-list { list-style: none; margin: 0; padding: 0; }
.revision-list li { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; padding: .75rem 0; border-bottom: 1px solid var(--line-soft); }
.revision-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.diff { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; background: var(--surface); }
.diff-row { display: flex; align-items: flex-start; }
.diff-gutter { flex: 0 0 1.6rem; text-align: center; color: var(--ink-50); user-select: none; padding: 2px 0; }
.diff-text { flex: 1; white-space: pre-wrap; word-break: break-word; padding: 2px 8px 2px 0; }
.diff-add { background: #e6f6ec; }
.diff-add .diff-gutter { color: var(--green); }
.diff-remove { background: #fdeced; }
.diff-remove .diff-gutter { color: var(--red-600); }
.diff-skip { background: var(--line-soft); color: var(--ink-50); font-style: italic; }
.diff-skip .diff-text { padding-left: 8px; }
.wiki-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1.25rem; }

/* Representatives */
.rep-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.rep-card { display: flex; gap: 16px; align-items: flex-start; padding: 18px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--rep-accent, var(--navy)); border-radius: var(--radius); }
.rep-card.is-open { background: var(--surface); }
.rep-photo { flex: 0 0 auto; width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: var(--line-soft); }
.rep-photo-empty { padding: 0; background: var(--blue-100); fill: var(--navy-500); }
.rep-body h3, .rep-panel h4 { margin: 0 0 .2rem; font-size: 1.15rem; }
.rep-call { color: var(--ink-50); font-family: var(--font-body); font-size: .9rem; font-weight: 600; letter-spacing: .04em; }
.rep-anchor { margin: 0 0 .25rem; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-50); }
.rep-title { margin: 0 0 .35rem; color: var(--ink-70); }

.rep-map-layout { display: grid; gap: 24px; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); align-items: start; }
.rep-map { position: relative; }
.rep-map svg { width: 100%; height: auto; }
.rep-map-state path { stroke: #fff; stroke-width: 1.2; transition: filter .15s ease; }
.rep-map-state text { fill: #fff; font-size: 15px; font-weight: 700; text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.rep-map-state { cursor: pointer; }
.rep-map-state:hover path, .rep-map-state:focus-visible path { filter: brightness(.82); }
.rep-map-state.is-active path { stroke: var(--ink); stroke-width: 2.4; }
.rep-map-insets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rep-map-inset { min-width: 44px; padding: .35rem .5rem; border: 0; border-radius: 6px; color: #fff; font-weight: 700; cursor: pointer; }
.rep-map-inset.is-active { outline: 2px solid var(--ink); outline-offset: 2px; }
.rep-panel h3 { margin-top: 0; }
.rep-directory { list-style: none; margin: 1rem 0 0; padding: 0; columns: 2; column-gap: 32px; }
.rep-directory li { break-inside: avoid; padding: .35rem 0; border-bottom: 1px solid var(--line-soft); }
.rep-directory .k { display: block; font-weight: 600; }
.rep-directory .v { font-size: .9rem; color: var(--ink-70); }

@media (max-width: 860px) {
  .rep-map-layout { grid-template-columns: 1fr; }
  .rep-directory { columns: 1; }
}
