/* =========================================================================
   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;
  --purple: #6b4bb1;
  --purple-100: #efeaf9;
  --green: #1f7a55;
  --orange: #c2571a;
  --green-100: #e6f4ee;

  /* neutrals */
  --ink: #16202e;
  --ink-70: #2c394a;
  --ink-50: #42536a;
  --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; }
/* our own display rules outrank the browser default for [hidden], so say it */
[hidden] { display: none !important; }
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; }

/* Links inside running text are underlined, so color is not the only cue. */
main p > a, main li > a, main dd > a, main td > a, main blockquote > a, main figcaption > a,
main label span > a {
  text-decoration: underline;
}
main p > a.btn, main li > a.btn, main td > a.btn { text-decoration: none; }
/* Size a heading independently of its level, so heading order can be correct. */
.heading-sm { font-size: 1.3rem; }
.tile-title { font-size: 1.3rem; }
.heading-xs { font-size: 1.08rem; }
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; }
.lede-full { max-width: none; }
.section-head.wide { max-width: none; }
.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-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .grid-pair { grid-template-columns: minmax(0, 1fr); } }
.grid-initiatives { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
.grid-initiatives .tile { padding: 30px 32px; }
.grid-initiatives .tile h3, .grid-initiatives .tile .tile-title { 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; }

/* Solid buttons keep white label text inside tinted sections and the footer. */
.section-navy a.btn-primary, .site-footer a.btn-primary,
.section-navy a.btn-navy,   .site-footer a.btn-navy,
.section-navy a.btn-blue,   .site-footer a.btn-blue,
.section-navy a.btn-ghost,  .site-footer a.btn-ghost { color: #fff; }

/* ----------------------------------------------------------------- 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; top: var(--nav-top, calc(var(--header-h) + 38px)); right: 0; bottom: 0; left: auto;
    width: min(360px, 88vw); max-width: 100vw; box-sizing: border-box; z-index: 70;
    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; overflow-x: hidden; -webkit-overflow-scrolling: touch;
    transform: translateX(100%); transition: transform .22s ease; margin-left: 0;
    will-change: transform; backface-visibility: hidden;
  }
  .nav.is-open { transform: translateX(0); }
  .nav-item { position: static; min-width: 0; }
  .nav-link { padding: .8rem .6rem; font-size: 1.02rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  body.nav-open::before {
    content: ''; position: fixed; inset: 0; background: rgba(16, 29, 51, .5); z-index: 40;
  }
  .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; width: 100%; max-width: 100%; box-sizing: border-box; transition: none; display: none;
  }
  .mega-wide { grid-template-columns: 1fr; min-width: 0; }
  .nav-item.is-open > .mega { display: block; }
  .nav-item:hover > .mega,
  .nav-item:focus-within > .mega { transform: none; 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: 30ch; text-wrap: balance; }
.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; }

.hero-give { align-self: start; grid-column: span 2; }
.hero-give .btn { white-space: nowrap; }
.hero-give .l { margin-top: .5rem; }

.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, .page-hero h2 { color: #fff; margin-bottom: .35rem; }
.page-hero p { color: #bccbe0; max-width: 62ch; margin-bottom: 0; }
.page-hero p + p { margin-top: .7rem; }
.page-hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.page-hero-aside { font-size: .86rem; color: #cfe0f4; text-align: right; white-space: nowrap; }
.page-hero-aside a { color: #fff; text-decoration: underline; }
.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; }

.focus-area { 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; }
.tile .card-body p.muted { color: var(--ink-70); }
.program-meta { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-70); font-weight: 600; }

/* ------------------------------------------------------------------ badges */
.badge {
  display: inline-flex; align-items: center; gap: .35rem; font-family: var(--font-head); font-weight: 600;
  font-size: .84rem; text-transform: uppercase; letter-spacing: .06em;
  padding: .36rem .75rem; border-radius: var(--radius-pill);
  background: var(--line); color: var(--ink); border: 1px solid #cfd8e6;
}
.badge-ok { background: var(--green); color: #fff; font-weight: 700; }
.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-70); }
.badge-live { background: var(--red); color: #fff; }
.badge-ok, .badge-bad, .badge-warn, .badge-info, .badge-muted, .badge-live, .badge-gold { border-color: transparent; }

/* ------------------------------------------------------------------ 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); }
/* A dozen short yes/no facts about an event read better as pills you tap than
   as one tall column of checkboxes. */
.bubble-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.bubble { position: relative; display: inline-flex; }
.bubble input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.bubble span {
  display: inline-block; padding: .4rem .9rem; border: 1px solid #c8d3e2; border-radius: 999px;
  background: #fff; color: var(--ink-70); font-size: .92rem; line-height: 1.3;
}
.bubble input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.bubble input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.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; }

/* Numbered walkthrough: one card per step, with the number in the margin. */
.step-list { list-style: none; counter-reset: step; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 16px; }
.step-list > li { counter-increment: step; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 24px 20px 74px; }
.step-list > li::before { content: counter(step); position: absolute; left: 22px; top: 20px; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 700; display: grid; place-items: center; }
.step-list > li > h3 { margin-bottom: .4rem; }
.step-list > li > p:last-child { margin-bottom: 0; }
.step-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
@media (max-width: 560px) { .step-list > li { padding: 56px 18px 18px; } .step-list > li::before { left: 18px; top: 16px; } }

/* --------------------------------------------------- in-page tab sections */
.page-tabs { background: var(--surface); border-bottom: 1px solid var(--line); }
.page-tabs-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; padding: 16px 0; }
.page-tab { display: block; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--navy); text-decoration: none; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.page-tab:hover { border-color: var(--blue); text-decoration: none; color: var(--navy); }
.page-tab-kicker { display: block; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-50); }
.page-tab-label { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.page-tab.is-current { background: var(--navy); border-color: var(--navy); color: #fff; }
.page-tab.is-current .page-tab-kicker { color: #c3d3ea; }
.tabs-on .tab-panel { display: none; }
.tabs-on .tab-panel.is-current { display: block; }

/* ----------------------------------------------- payment and history lists */
.ledger, .record-timeline { list-style: none; margin: 0 0 1rem; padding: 0; }
.ledger-row, .record-timeline li {
  display: grid; gap: .25rem 1rem; align-items: baseline;
  padding: .7rem .25rem; border-top: 1px solid var(--line-soft);
}
.ledger-row { grid-template-columns: 7.5rem 5.5rem 1fr auto auto; }
.record-timeline li { grid-template-columns: 7.5rem 1fr; }
.ledger-row:first-child, .record-timeline li:first-child { border-top: 0; }
.ledger-row:nth-child(even), .record-timeline li:nth-child(even) { background: var(--surface); }
.ledger-when, .record-when { font-size: .86rem; color: var(--ink-70); }
.ledger-amount { font-family: var(--font-head); font-weight: 700; }
.ledger-failed .ledger-amount { color: var(--red-600); }
.ledger-more { display: flex; align-items: center; gap: .7rem; }
@media (max-width: 720px) {
  .ledger-row, .record-timeline li { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------- 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; }

/* -------------------------------------------------------------- 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, .site-footer .footer-heading { 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-cta {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
  background: linear-gradient(100deg, rgba(214,40,40,.18), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.16); border-left: 4px solid var(--red);
  border-radius: var(--radius); padding: 20px 24px; margin-bottom: 40px;
  color: #fff;
}
.footer-cta strong { display: block; color: #fff; font-family: var(--font-head); font-size: 1.08rem; }
.footer-cta span { display: block; margin-top: .25rem; max-width: 60ch; }
.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; }

/* --------------------------------------------------------- social accounts */
.social-links { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social-links a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid currentColor; text-decoration: none; }
.social-links svg { display: block; }
.social-links-light a { color: #d6e3f2; border-color: rgba(255,255,255,.28); }
.social-links-light a:hover, .social-links-light a:focus-visible { color: #fff; border-color: #fff; background: rgba(255,255,255,.12); }
.social-links-dark a { color: var(--blue); border-color: rgba(11,58,110,.28); }
.social-links-dark a:hover, .social-links-dark a:focus-visible { color: #fff; background: var(--blue); border-color: var(--blue); }
.wiki-footer .social-links { margin: 0; }

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

/* A block of cards that stays folded away until it applies to the reader. */
.fold { margin-bottom: 18px; }
.fold > summary {
  cursor: pointer; padding: 14px 20px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 600; color: var(--navy);
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--blue); }
.fold[open] > summary { margin-bottom: 14px; }
.fold[open] > summary::after { content: "−"; }

/* A fold that turns an arrow over rather than swapping a plus for a minus. */
.fold-arrow > summary::after { content: "\25BE"; font-size: 1rem; transition: transform .15s ease; }
.fold-arrow[open] > summary::after { content: "\25BE"; transform: rotate(180deg); }

.state-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.state-block > summary { cursor: pointer; padding: 16px 20px; list-style: none; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.state-block > summary::-webkit-details-marker { display: none; }
.state-block .state-name { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: var(--navy); }
.state-block .state-name::before { content: "\25B8"; display: inline-block; margin-right: 10px; color: var(--blue); transition: transform .15s ease; }
.state-block[open] .state-name::before { transform: rotate(90deg); }
.state-block > .state-body { padding: 0 20px 20px; }
.state-block > .state-body > :last-child { margin-bottom: 0; }

/* One line per promotional material request, opening onto the whole request. */
.promo-rows { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.promo-row-head,
.promo-rows > .promo-row > summary {
  display: grid;
  grid-template-columns: minmax(0, 3fr) 7.5rem 7.5rem minmax(0, 2fr) 7rem;
  gap: 14px; align-items: baseline; padding: 12px 18px;
}
.promo-row-head { margin: 0; border-bottom: 1px solid var(--line); background: var(--surface-2, #f4f6fa); }
.promo-row { border-top: 1px solid var(--line-soft); }
.promo-rows > .promo-row:first-of-type { border-top: 0; }
.promo-row > summary { cursor: pointer; list-style: none; font-size: .95rem; }
.promo-row > summary::-webkit-details-marker { display: none; }
.promo-row[open] > summary { background: var(--surface-2, #f4f6fa); }
.promo-club { font-family: var(--font-head); font-weight: 600; color: var(--navy); }
.promo-club .status { margin-left: 8px; font-weight: 400; }
.promo-toggle { color: var(--blue); font-size: .88rem; text-align: right; }
.promo-row[open] .promo-toggle::after { content: " \25B4"; }
.promo-row:not([open]) .promo-toggle::after { content: " \25BE"; }
.promo-body { padding: 4px 18px 18px; }
@media (max-width: 820px) {
  .promo-row-head { display: none; }
  .promo-rows > .promo-row > summary { grid-template-columns: 1fr; gap: 4px; }
  .promo-toggle { text-align: left; }
}

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

/* The year-end giving statement: a sheet of letterhead on screen, and the only
   thing on the page once it is printed or saved as a PDF. */
.statement-sheet { max-width: 8.5in; }
.statement-head { display: flex; align-items: center; gap: 16px; border-bottom: 2px solid var(--navy); padding-bottom: 12px; margin-bottom: 20px; }
.statement-mark { width: 72px; height: 72px; }
.statement-org { font-family: var(--font-display, inherit); font-size: 1.25rem; font-weight: 700; color: var(--navy); margin: 0 0 .15rem; }
.statement-foot { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }

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

  .console-side, .console-bar, .console-head, .skip-link { display: none !important; }
  .console-shell, .console-main, .console-content, .section, .container { display: block; padding: 0; margin: 0; max-width: none; }

  @page { size: Letter portrait; margin: 0.6in 0.75in; }
  .statement-sheet { max-width: none; border: 0; padding: 0; margin: 0; break-inside: auto; }
  .statement-sheet .section, .statement-sheet .container { padding: 0; }
  .statement-head { break-after: avoid; }
  .statement-table { break-inside: auto; }
  .statement-table thead { display: table-header-group; }
  .statement-table tfoot { display: table-footer-group; }
  .statement-table tr { break-inside: avoid; }
  .statement-foot { 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; }
.prose img {
  display: block; max-width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: var(--radius);
  margin: 1.4rem 0;
}

.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; }
/* A club listing has short facts and long prose, so the grid is fixed at four
   columns and each field says how many it takes rather than being packed. */
.club-form { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 18px; }
.club-form .span-2 { grid-column: span 2; }
.club-form .span-3 { grid-column: span 3; }
.club-form .span-4 { grid-column: 1 / -1; }
.club-form textarea { min-height: 8.5rem; resize: vertical; }
.club-form .span-2 textarea { min-height: 5.5rem; }
@media (max-width: 860px) {
  .club-form { grid-template-columns: repeat(2, 1fr); }
  .club-form .span-3, .club-form .span-4 { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .club-form { grid-template-columns: 1fr; }
  .club-form .span-2 { grid-column: 1 / -1; }
}
/* A club's contact log: the moment down the left, what was said to the right. */
.contact-log { list-style: none; margin: 18px 0 0; padding: 0; }
.contact-log li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.contact-log .log-when { color: var(--ink-50); font-size: .86rem; line-height: 1.35; }
.contact-log .log-body .who { display: block; margin-top: 4px; }
@media (max-width: 560px) {
  .contact-log li { grid-template-columns: 1fr; gap: 4px; }
}
.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; }

.verify-block { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px 4px; margin: 18px 0; background: var(--surface); }
.verify-block.has-error { border-color: var(--red); }
.verify-block h3 { margin-top: 0; }
.verify-block .field-row { align-items: start; }
/* Stands in for a missing label so a lone button lines up with the boxes beside it. */
.label-spacer { display: block; }
.label-spacer::after { content: "\00a0"; }
.verify-done { margin: 0; }

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

.tier-card { display: flex; flex-direction: column; }
.tier-card > p:first-of-type { flex: 1; }
.tier-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding-bottom: .7rem; margin-bottom: .9rem; border-bottom: 2px solid var(--line);
}
.tier-price { font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; color: var(--red); }

.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-70); margin: .2rem 0 0; }
.doc-desc { color: var(--ink); margin: .15rem 0 0; }

.doc-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.doc-rows .doc-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 16px 20px; gap: 18px;
}
.doc-rows .doc-item:hover { border-color: var(--blue); }
.doc-rows .doc-title { font-size: 1.05rem; }
.doc-rows .doc-open { margin-left: auto; flex: none; }

@media (max-width: 640px) {
  .doc-rows .doc-item { flex-wrap: wrap; }
  .doc-rows .doc-open { margin-left: 62px; }
}

.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;
}
/* Every heading level, not just h3/h4 — heading order is chosen for the
   document, so an h2 here would otherwise keep the dark page navy. */
.card-glass h2, .card-glass h3, .card-glass h4, .card-glass h5 { 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-profile-head { background: var(--navy); padding: 14px 22px; border-bottom: 4px solid var(--red); border-radius: 12px 12px 0 0; }
.club-profile-head h1 { color: #fff; margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.club-profile-head p { color: #fff; }
.club-profile-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); gap: 32px; padding: 24px 0 26px; align-items: start; }
.club-profile-side { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px 20px; }
.club-legend {
  margin: 0 0 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
  color: var(--navy);
}
.club-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 12px 18px; margin: .6rem 0 0; font-size: 1.02rem; }
.club-facts dt { color: var(--ink-50); font-weight: 500; }
.club-facts dd { margin: 0; }
.club-contact { margin: 0; font-size: 1.05rem; line-height: 1.5; }
.club-contact dt { color: var(--ink-50); font-weight: 500; margin-top: .8rem; }
.club-contact dt:first-child { margin-top: 0; }
.club-contact dd { margin: 0 0 0 12px; font-weight: 600; word-break: break-word; }
.club-contact dd a { font-weight: 600; }
.club-member-badge { position: absolute; top: 0; right: calc(100% + 16px); width: 110px; height: auto; }
.club-member-mark { position: absolute; right: 14px; bottom: 12px; width: 56px; height: auto; }
.club-list .club-item:has(.club-member-mark) { padding-right: 82px; }
.club-updated { margin: 1.2rem 0 0; font-size: .88rem; color: var(--ink-50); }
@media (max-width: 860px) {
  .club-profile-body { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .club-facts { grid-template-columns: minmax(0, 1fr); gap: 2px 0; margin-top: 0; }
  .club-facts dt { text-align: left; margin-top: .7rem; }
  .club-member-badge { position: static; display: block; margin: 0 auto 16px; }
}
.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;
  position: relative;
}
.map-zoom-hint {
  position: absolute;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #fff;
  background: rgba(15, 32, 56, .55);
  border-radius: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease;
  pointer-events: none;
}
.club-map.is-hinting .map-zoom-hint { opacity: 1; visibility: visible; }
.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: .78rem;
  font-weight: 600;
  background: #dbe5f2;
  color: var(--navy);
  border: 1px solid #b9c8dd;
  border-radius: 999px;
  padding: 3px 10px;
}
.tag-list-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-70);
  margin: 0 0 4px;
}
.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-panel { position: sticky; top: 90px; max-height: calc(100vh - 110px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 18px; overflow-y: auto; }
.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-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-nextprev { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 2rem; }
.wiki-prev-btn {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: var(--radius); background: var(--red); color: #fff;
  font-size: 1.1rem; line-height: 1; text-decoration: none;
}
.wiki-prev-btn:hover { background: var(--red-600); color: #fff; }
.wiki-next-box {
  border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius);
  padding: 10px 18px; text-decoration: none; font-weight: 600;
}
.wiki-next-box:hover { border-color: var(--red); }

/* The wiki runs on its own hostname, so it gets a slim header of its own
   rather than the whole association menu. */
.wiki-header { background: var(--navy); border-bottom: 4px solid var(--red); }
.wiki-header .container { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-top: 12px; padding-bottom: 12px; }
.wiki-header .brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.wiki-header .brand img { width: 44px; height: 44px; }
.wiki-header .brand-name { display: block; font-weight: 700; font-size: 1.05rem; letter-spacing: .01em; color: #fff; }
.wiki-header .brand-sub { display: block; font-size: .78rem; letter-spacing: .04em; text-transform: none; font-weight: 500; color: #b9c6d8; }
.wiki-header-links { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; font-size: .9rem; }
.wiki-header-links a { color: #e8f1f8; text-decoration: none; }
.wiki-header-links a:hover { color: #fff; text-decoration: underline; }

.wiki-footer { background: var(--navy); border-top: 4px solid var(--red); color: #b9c6d8; font-size: .88rem; }
.wiki-footer .container { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding-top: 16px; padding-bottom: 16px; }
.wiki-footer-brand { display: flex; align-items: center; gap: 12px; color: #e8f1f8; text-decoration: none; }
.wiki-footer-brand img { width: 44px; height: 44px; }
.wiki-footer-brand span { line-height: 1.35; }
.wiki-footer-brand strong { display: block; color: #fff; }
.wiki-footer-links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 18px; }
.wiki-footer-links a { color: #e8f1f8; text-decoration: none; }
.wiki-footer-links a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 900px) {
  .wiki-layout { grid-template-columns: 1fr; gap: 24px; }
  .wiki-sidebar-panel { position: static; max-height: none; overflow-y: visible; }
}

/* ---------------------------------------------------------- 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; }
/* Each group of links carries a color down its left edge so the member,
   representative, board and admin areas are told apart at a glance. */
.console-group {
  margin-bottom: 1.4rem;
  padding-left: 10px;
  border-left: 4px solid var(--group-accent, #3b5c92);
}
/* Against the dark sidebar the brand colors themselves read as muddy, so each
   group also carries a lightened version for its heading and edge. */
.console-group[data-group="member"]     { --group-accent: #6db3f2; }
.console-group[data-group="presenters"] { --group-accent: #b49ceb; }
.console-group[data-group="reps"]       { --group-accent: #4fc79a; }
.console-group[data-group="board"]      { --group-accent: #f0c274; }
.console-group[data-group="admin"]      { --group-accent: #ef5b62; }
.console-group[data-group="members"]    { --group-accent: #f0925a; }
.console-group[data-group="public"]     { --group-accent: #94a5c1; }
.console-group > h2 {
  font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--group-accent, #9fb0cc); margin: 0 0 .5rem; 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; }
/* A heading that opens to show the pages beneath it. */
.console-sub > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10px; border-radius: 8px;
  color: #cdd8ea; font-size: .93rem; cursor: pointer; list-style: none;
}
.console-sub > summary::-webkit-details-marker { display: none; }
.console-sub > summary::after {
  content: '\203A'; font-size: 1.1rem; line-height: 1; transition: transform .15s ease;
}
.console-sub[open] > summary { color: #fff; font-weight: 600; }
.console-sub[open] > summary::after { transform: rotate(90deg); }
.console-sub > summary:hover { background: #ffffff14; color: #fff; }
.console-sub > ul { margin: 2px 0 6px; padding-left: 10px; border-left: 1px solid #ffffff1f; }
.console-sub > ul a { font-size: .89rem; padding: 6px 10px; }

.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; }
.console-section > .card + .card { margin-top: 1rem; }
.tile-figure { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; text-align: right; }
.tile-figure.tile-figure-inline { flex-direction: row; align-items: center; gap: .6rem; }
.tile-figure strong { color: var(--navy); }

.certificate-preview, .membership-card-preview { overflow: hidden; border-radius: var(--radius); }
.certificate-preview svg, .membership-card-preview svg { display: block; width: 100%; height: auto; }
.membership-card-preview { max-width: 390px; margin: 0 auto; }

/* Add-to-wallet buttons, in the shape each wallet uses. */
.wallet-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 1.1rem 0 .5rem; }
.wallet-btn {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-width: 190px; padding: .5rem 1.1rem; border-radius: 9px; text-decoration: none;
  line-height: 1.15; color: #fff; background: #000;
}
.wallet-btn:hover { color: #fff; opacity: .9; }
.wallet-btn-lead { font-size: .72rem; letter-spacing: .02em; opacity: .75; }
.wallet-btn-name { font-size: 1.02rem; font-weight: 600; }
.wallet-btn-google { background: #1a73e8; }

.totp-setup { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; margin-bottom: 1.2rem; }
.totp-qr { flex: 0 0 auto; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; background: #fff; }
.totp-qr svg { display: block; }
.totp-secret { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.05rem; letter-spacing: .04em; margin: 0 0 .4rem; }
.recovery-codes {
  list-style: none; margin: 0 0 1rem; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.recovery-codes li { background: var(--paper, #f6f7f9); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; text-align: center; }

.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); }
/* Tiles carry the same left bar, and the same color, as their sidebar group. */
.card-area { border-left: 4px solid var(--group-accent, var(--blue)); }
.card-area[data-group="member"]     { --group-accent: var(--blue); }
.card-area[data-group="presenters"] { --group-accent: var(--purple); }
.card-area[data-group="reps"]       { --group-accent: var(--green); }
.card-area[data-group="board"]      { --group-accent: var(--gold); }
.card-area[data-group="admin"]      { --group-accent: var(--red); }
.card-area[data-group="members"]    { --group-accent: var(--orange); }
.card-link.card-area:hover { border-left-color: var(--group-accent); }

/* The Area Pulse: one reading of a piece of ground, whatever its size. */
.pulse {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px;
}
.pulse-item {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green);
  border-radius: var(--radius-lg); padding: 14px 16px;
}
.pulse-more .pulse-item { border-left-color: var(--blue); }
.pulse-value {
  font-family: Barlow, system-ui, sans-serif; font-size: 1.9rem; font-weight: 700;
  color: var(--navy); line-height: 1.1; margin: 0;
}
.pulse-label { font-weight: 600; margin: .1rem 0 .25rem; }
.pulse-note { margin: 0; }
.pulse-item[data-figure="attention"], .pulse-item[data-figure="requests"] { border-left-color: var(--gold); }

/* One corporate member on the dashboard: their logo on white, beside the words. */
.spotlight { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: center; }
.spotlight-logo { display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px; min-height: 120px; }
.spotlight-logo img { max-width: 100%; max-height: 84px; width: auto; height: auto; }
.spotlight-body > * + * { margin-top: .6rem; }
@media (max-width: 700px) {
  .spotlight { grid-template-columns: minmax(0, 1fr); }
}

.card-accent-blue, .card-accent-red { border-left-width: 4px; border-left-style: solid; }
.card-accent-blue { border-left-color: var(--navy); }
.card-accent-red { border-left-color: var(--red); }
.card-link.card-accent-blue:hover { border-left-color: var(--navy); }
.card-link.card-accent-red:hover { border-left-color: var(--red); }
.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; }
  /* The drawer is held to the height the browser actually shows, so a long
     menu scrolls inside it instead of hanging below the address bar where
     only the page behind will move. */
  .console-side {
    position: fixed; top: 0; left: 0; width: 250px; z-index: 40;
    height: 100vh; height: 100dvh; max-height: none;
    overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-100%); transition: transform .2s ease;
  }
  .console-side.is-open { transform: none; }
  /* While it is open the page behind stays put, so a drag moves the menu. */
  body.console.nav-open { overflow: hidden; }
  .console-toggle { display: flex; }
  .console-bar { padding: 12px 16px; }
  .console-user { gap: 8px; }
  .console-content { padding: 20px 16px; }
}

/* ---------------------------------------------- member / sponsor logo band */
.section-logos { background: var(--surface); }
.logo-band-title { font-size: clamp(1.1rem, 1.7vw, 1.35rem); margin-bottom: .25em; }
.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 var(--marquee-duration, calc(var(--marquee-count, 6) * 11s)) 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(var(--marquee-shift, 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; }

/* Slide toggle */
.switch { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track { position: relative; flex: 0 0 auto; width: 44px; height: 24px; border-radius: 999px; background: var(--line); transition: background .15s ease; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s ease; }
.switch input:checked + .switch-track { background: var(--blue); }
.switch input:checked + .switch-track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--blue); outline-offset: 2px; }
.switch-label { line-height: 1.3; }

/* What-you-see editor */
.rich { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.rich-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px 8px; background: var(--line-soft); border-bottom: 1px solid var(--line); }
.rich-btn { min-width: 34px; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; color: var(--ink-70); cursor: pointer; font-size: .9rem; line-height: 1; padding: 7px 9px; }
.rich-btn:hover { background: var(--blue-100); border-color: var(--blue); color: var(--blue); }
.rich-btn.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.rich-sep { width: 1px; align-self: stretch; margin: 2px 4px; background: var(--line); }
.rich-area { min-height: 170px; padding: 12px 14px; overflow-y: auto; max-height: 420px; }
.rich-area:focus { outline: 2px solid var(--blue); outline-offset: -2px; }
.rich-area:empty::before { content: attr(data-placeholder); color: var(--ink-50); }
.rich-area > :first-child { margin-top: 0; }
.rich-area > :last-child { margin-bottom: 0; }
.rich-area ul, .rich-area ol { padding-left: 1.4rem; }
[data-rich-count].is-over { color: var(--red); }

/* Member photographs and the member directory */
.photo-frame { display: block; width: 104px; height: 104px; flex: 0 0 104px; border-radius: 14px; border: 1px solid var(--line); background: var(--line-soft); object-fit: cover; overflow: hidden; }
.photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-pick { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.photo-pick > div { flex: 1 1 240px; min-width: 0; }
.photo-pick input[type="file"] { display: block; max-width: 100%; margin-bottom: 6px; }
.directory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.directory-card { display: flex; flex-direction: column; gap: 12px; }
.container.narrow.directory-page { max-width: 1000px; }
.directory-head { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.directory-head > div { min-width: 0; }
.photo-frame-lg { width: 160px; height: 160px; flex-basis: 160px; border-radius: 18px; }
.directory-identity { flex: 1 1 200px; }
.directory-roles { margin-left: auto; flex: 0 1 240px; max-width: 100%; text-align: right; }
.directory-roles .badge-rows-label { margin-top: 0; }
.directory-roles .badge-pills { justify-content: flex-end; margin-bottom: .5rem; }
.directory-roles .badge-pills:last-child { margin-bottom: 0; }
@media (max-width: 700px) {
  .directory-roles { margin-left: 0; flex-basis: 100%; text-align: left; }
  .directory-roles .badge-pills { justify-content: flex-start; }
}
.directory-bio { font-size: .95rem; color: var(--ink-70); overflow-wrap: anywhere; }
.directory-bio p { margin: 0 0 .7rem; }
.directory-bio > :first-child { margin-top: 0; }
.directory-bio > :last-child { margin-bottom: 0; }
.directory-bio ul, .directory-bio ol { padding-left: 1.4rem; }
.directory-search-action { display: flex; align-items: flex-end; }
@media (max-width: 560px) {
  .directory-grid { grid-template-columns: 1fr; }
}
@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)); }
@media (min-width: 720px) { .rep-grid-2 { grid-template-columns: repeat(2, 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; }
/* The state and its region head the panel, clear of the seats underneath. */
.rep-place { margin: 0 0 1.1rem; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-50); }

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

/* ------------------------------------------------ sign-in dialog */
.modal { width: min(400px, calc(100vw - 2rem)); border: 0; border-radius: var(--radius); padding: 1.5rem; box-shadow: 0 18px 48px rgba(11, 31, 59, .28); color: var(--ink); }
.modal::backdrop { background: rgba(11, 31, 59, .55); }
.modal .modal-close-row { display: flex; justify-content: flex-end; margin: -.5rem -.5rem 0 0; }
.modal .modal-close { background: none; border: 0; font-size: 1.5rem; line-height: 1; color: var(--ink-50); cursor: pointer; }
.modal .modal-close:hover { color: var(--navy); }
.modal h2 { margin: 0 0 .25rem; }

/* ------------------------------------------------ donate form */
.donate-form { max-width: 780px; margin: 0 auto; padding: 28px; }
.donate-step + .donate-step { margin-top: 1.75rem; }
.donate-step h2 { margin: 0 0 .75rem; }
.donate-funds { display: grid; gap: 10px; }
.donate-fund { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.donate-fund:hover { border-color: var(--navy); }
.donate-fund.is-selected { border-color: var(--navy); box-shadow: inset 4px 0 0 var(--navy); background: var(--navy-050, rgba(11, 31, 59, .04)); }
.donate-fund input { margin-top: .3rem; }
.card.is-highlighted { border-color: var(--navy); box-shadow: 0 0 0 3px var(--blue-100, rgba(11, 31, 59, .12)); }
.donate-fund strong { display: block; font-size: 1.15rem; }
.donate-fund .small { font-size: 1rem; line-height: 1.5; color: var(--ink-70); }
.donate-modes { display: inline-flex; margin-bottom: 1rem; padding: 4px; gap: 4px; background: var(--sand, #f2f1ee); border-radius: var(--radius); }
.donate-mode { padding: .5rem 1.1rem; font-size: 1rem; font-weight: 700; color: var(--ink-70); background: transparent; border: 0; border-radius: calc(var(--radius) - 3px); cursor: pointer; }
.donate-mode.is-selected { color: #fff; background: var(--navy); }
.donate-amounts { display: flex; flex-wrap: wrap; gap: 10px; }
.donate-permonth { font-size: .85em; font-weight: 600; opacity: .8; }
.donate-amount { min-width: 88px; padding: .7rem 1rem; font-size: 1.05rem; font-weight: 700; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.donate-amount:hover { border-color: var(--navy); }
.donate-amount.is-selected { color: #fff; background: var(--navy); border-color: var(--navy); }
.donate-other { display: flex; align-items: center; gap: .35rem; padding: 0 .75rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.donate-other:focus-within { border-color: var(--navy); }
.donate-other-sign { font-weight: 700; color: var(--ink-50); }
.donate-other input { width: 110px; border: 0; padding: .7rem 0; font-size: 1.05rem; font-weight: 700; color: var(--navy); background: transparent; }
.donate-other input:focus { outline: none; }
.donate-thanks { padding: 1.5rem 0 .25rem; }
.donate-identity { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.donate-listed { display: flex; gap: .6rem; align-items: flex-start; margin-top: 1rem; font-size: .95rem; color: var(--ink-70); }
.donate-listed input { width: 18px; height: 18px; margin-top: .2rem; flex: none; accent-color: var(--blue); }

/* lifetime giving recognition */
.giving-star { color: #c8a227; font-size: 1.15em; }
.giving-total { margin: 0 0 .25rem; font-family: var(--font-display, inherit); font-size: 2.2rem; font-weight: 800; color: var(--navy); }
.giving-banner { display: flex; gap: .9rem; align-items: center; margin-bottom: 1.5rem; padding: 1rem 1.25rem; background: var(--sand, #f2f1ee); border-left: 4px solid #c8a227; border-radius: var(--radius); }
.giving-banner .giving-star { font-size: 1.8rem; line-height: 1; }
.giving-banner strong { display: block; color: var(--navy); }
/* the S-meter a donor reads their own giving off */
.giving-meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.giving-meter { margin: 0; padding: 1rem 1rem .85rem; background: var(--sand, #f2f1ee); border: 1px solid var(--line); border-radius: var(--radius); }
.giving-meter svg { display: block; width: 100%; height: auto; }
.giving-meter figcaption { display: flex; flex-wrap: wrap; gap: .35rem .6rem; align-items: baseline; margin-top: .35rem; }
.giving-meter figcaption strong { color: var(--navy); }
.giving-meter figcaption .small { flex: 1 1 100%; }
.giving-meter-level { padding: .1rem .5rem; background: var(--navy); color: #fff; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.giving-meter-arc { fill: none; stroke: var(--navy); stroke-width: 5; stroke-linecap: round; }
.giving-meter-arc-hot { stroke: var(--red); }
.giving-meter-tick { stroke: var(--navy); stroke-width: 2; }
.giving-meter-tick.is-hot { stroke: var(--red); }
.giving-meter-mark { fill: var(--ink-70); font-size: 11px; font-weight: 700; text-anchor: middle; dominant-baseline: middle; }
.giving-meter-mark.is-hot { fill: var(--red); }
.giving-meter-mark.is-left { text-anchor: end; }
.giving-meter-mark.is-right { text-anchor: start; }
.giving-meter.is-tight .giving-meter-mark { font-size: 10px; }
.giving-meter-needle line { stroke: var(--red); stroke-width: 3; stroke-linecap: round; }
.giving-meter-needle {
  transform-box: view-box; transform-origin: 140px 118px;
  transform: rotate(var(--giving-meter-angle, 0deg));
  animation: giving-meter-sweep .9s cubic-bezier(.2, .9, .25, 1) both;
}
.giving-meter-pivot { fill: var(--navy); }
.giving-meter-total { fill: var(--navy); font-family: var(--font-head); font-size: 15px; font-weight: 800; text-anchor: middle; }

@keyframes giving-meter-sweep {
  from { transform: rotate(var(--giving-meter-start, -60deg)); }
  to   { transform: rotate(var(--giving-meter-angle, 0deg)); }
}

@media (prefers-reduced-motion: reduce) {
  .giving-meter-needle { animation: none; }
}

.donor-roll { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .6rem 1.5rem; margin: 0 0 2.5rem; padding: 0; list-style: none; }
.donor-roll li { display: flex; gap: .5rem; align-items: baseline; padding: .5rem 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--navy); }

@media (max-width: 560px) {
  .donate-amount, .donate-other { flex: 1 1 40%; }
}

/* --------------------------------------------- founding member gift picker */
.gift-grid { align-items: stretch; }
.gift-option { display: flex; flex-direction: column; gap: .55rem; cursor: pointer; border: 2px solid var(--line); transition: border-color .15s, box-shadow .15s; }
.gift-option:hover { border-color: var(--blue); }
.gift-option.is-chosen, .gift-option:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-100); }
.gift-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--line-soft); }
.gift-photo-empty { display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--ink-50); }
.gift-choose { display: flex; gap: .55rem; align-items: center; color: var(--navy); }
.gift-choose input { width: 18px; height: 18px; flex: none; accent-color: var(--blue); }

/* ------------------------------------------------------------------- store */
.store-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.store-bar-link { font-weight: 600; color: var(--navy); }
.store-bar-member { font-weight: 700; color: var(--red); }

.store-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; align-items: start; }
.store-sidebar-heading { font-size: .82rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-50); margin: 0 0 .75rem; }
.store-collections { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.store-collection { display: flex; justify-content: space-between; gap: .75rem; padding: .6rem .25rem; color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--line); font-weight: 600; }
.store-collection:hover { color: var(--red); }
.store-collection.is-current { color: var(--red); box-shadow: inset 3px 0 0 var(--red); padding-left: .7rem; }
.store-collection-count { color: var(--ink-50); font-weight: 500; }

.store-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.store-card { display: block; color: inherit; text-decoration: none; }
.store-card-frame { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.store-card:hover .store-card-frame { border-color: var(--line-strong, var(--line)); box-shadow: 0 12px 28px rgba(12, 27, 51, .12); }
.store-card-image { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--line-soft); display: block; }
.store-card-title { font-size: 1rem; font-weight: 600; color: var(--navy); margin: .85rem 0 .3rem; }
.store-card-price { font-weight: 700; color: var(--navy); }
.store-card-from { font-weight: 400; color: var(--muted); }
.store-price { font-weight: 700; color: var(--navy); }
.store-was { color: var(--ink-50); font-weight: 500; text-decoration: line-through; margin-right: .4rem; }

.store-detail { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: start; }
.store-buy-title { font-size: 1.7rem; line-height: 1.2; margin: 0 0 .5rem; }
.store-buy-price { font-size: 1.5rem; font-weight: 700; color: var(--navy); margin: 0 0 .2rem; }
.store-member-tag { display: inline-block; margin-left: .5rem; padding: .12rem .5rem; border-radius: 999px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
.store-add { width: 100%; }
.store-member-note { margin-top: .9rem; color: var(--ink-70, var(--ink-50)); }
.store-policies { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 1.25rem; }
.store-gallery-main { width: 100%; border-radius: var(--radius); background: var(--line-soft); }
.store-gallery-empty { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; border-radius: var(--radius); background: var(--line-soft); }
.store-thumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.store-thumb { padding: 0; border: 2px solid var(--line); border-radius: var(--radius); background: none; cursor: pointer; line-height: 0; }
.store-thumb.is-selected { border-color: var(--blue); }
.store-thumb img { width: 68px; height: 68px; object-fit: cover; border-radius: calc(var(--radius) - 2px); }
.store-description { max-width: 720px; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

.store-line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto auto auto; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.store-line-image { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius); background: var(--line-soft); }
.store-line-title { font-weight: 700; color: var(--navy); }
.store-line-qty { display: flex; gap: .4rem; align-items: center; }
.store-line-qty input { width: 68px; }
.store-line-price { font-weight: 700; color: var(--navy); }
.store-line-remove { border: 0; background: none; font-size: 1.4rem; line-height: 1; color: var(--ink-50); cursor: pointer; }
.store-line-remove:hover { color: var(--red); }
.store-total { display: flex; justify-content: space-between; padding: 1rem 0 .25rem; font-size: 1.15rem; }
.store-total-saving, .store-summary-saving { color: var(--red); font-weight: 600; }
.store-actions { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; }

.store-summary-line { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.store-summary-total { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0 1rem; font-size: 1.15rem; }

@media (max-width: 1000px) {
  .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .store-detail { grid-template-columns: 1fr; }
  .store-layout { grid-template-columns: 1fr; gap: 24px; }
  .store-collections { display: flex; flex-wrap: wrap; gap: .5rem; border: 0; }
  .store-collection, .store-collection.is-current { border: 1px solid var(--line); border-radius: 999px; padding: .35rem .85rem; box-shadow: none; }
}
@media (max-width: 560px) {
  .store-line { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .store-line-image { width: 56px; height: 56px; }
  .store-line-qty, .store-line-price { grid-column: 2 / -1; }
  .store-grid { grid-template-columns: 1fr; }
}

/* Photographs of the goods we stock ourselves, in the admin catalog. */
.admin-photo-strip { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.admin-photo { margin: 0; line-height: 0; }
.admin-photo img { width: 90px; height: 90px; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius); }
.admin-photo-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }

/* Newsroom: category filter chips and the byline above an article. */
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 28px; }
.chip {
  font-family: var(--font-head); font-size: .85rem; font-weight: 600;
  color: var(--ink-70); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: .38rem .95rem;
}
.chip:hover { border-color: var(--red); color: var(--red); }
.chip.is-on { background: var(--red); border-color: var(--red); color: #fff; }
.news-byline { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; color: var(--ink-50); font-size: .9rem; margin-bottom: 1.5rem; }

/* Membership overview: one pie per question the join form asks. */
.pie-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 24px; }
.pie-card {
  display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 18px;
}
.pie {
  flex: 0 0 auto; width: 96px; height: 96px; border-radius: 50%;
  background: conic-gradient(
    var(--green) 0 var(--yes-end),
    var(--red) var(--yes-end) var(--no-end),
    var(--line-soft) var(--no-end) 100%
  );
}
.pie-card-wide { margin-bottom: 24px; }
.pie-lg { width: 160px; height: 160px; }
.pie-card figcaption { flex: 1 1 150px; min-width: 0; font-size: .92rem; }
.pie-legend { list-style: none; margin: .4rem 0 0; padding: 0; }
.pie-legend li { display: flex; align-items: center; gap: .4rem; padding: .1rem 0; }
.pie-key { width: .7rem; height: .7rem; border-radius: 3px; display: inline-block; }
.pie-key-yes { background: var(--green); }
.pie-key-no { background: var(--red); }
.pie-key-unknown { background: var(--line-soft); border: 1px solid var(--line); }

/* ---------------------------------------------------------------- hamfests */
#hamfest-map { min-height: 620px; }
.hamfest-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hamfest-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.hamfest-item:hover { border-color: var(--blue); }
.hamfest-date {
  text-align: center;
  border-radius: 8px;
  padding: 8px 0;
  background: var(--blue-100);
  color: var(--navy);
  align-self: start;
}
.hamfest-month { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.hamfest-day { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.hamfest-year { display: block; font-size: .72rem; color: var(--ink-50); }
.hamfest-name { display: inline-block; font-weight: 600; font-family: var(--font-head, inherit); }
.hamfest-body .dist {
  float: right;
  font-size: .8rem;
  font-weight: 600;
  color: var(--blue);
  background: #eaf2fc;
  border-radius: 999px;
  padding: 2px 10px;
}
.hamfest-facts { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: .5rem 0 0; }
.hamfest-facts div { min-width: 0; }
.hamfest-facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-50); }
.hamfest-facts dd { margin: 0; font-size: .9rem; }
.hamfest-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: .5rem; }
.hamfest-tags.tags-lg { gap: 8px; }
.hamfest-tags.tags-lg .tag { font-size: .95rem; padding: 6px 14px; }
.schedule-list li { margin-bottom: .5rem; }
.schedule-list li:last-child { margin-bottom: 0; }
.hamfest-tags .tag {
  font-size: .74rem;
  background: #dbe3ef;
  border: 1px solid #b9c6da;
  color: var(--navy);
  border-radius: 999px;
  padding: 3px 10px;
  font-weight: 600;
}
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.d-block { display: block; }

@media (max-width: 900px) {
  #hamfest-map { min-height: 340px; }
}

/* ------------------------------------------------------------ NARA calendar */
.calendar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.calendar-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.event-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 10px;
}
.event-when {
  text-align: center;
  border-radius: 8px;
  padding: 8px 0;
  background: var(--blue-100);
  color: var(--navy);
  align-self: start;
}
.event-month { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.event-day { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.event-year { display: block; font-size: .72rem; color: var(--ink-50); }
.event-name { display: inline-block; font-weight: 600; font-family: var(--font-head, inherit); }

.event-rows { gap: 8px; }
.event-rows .event-item {
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
}
.event-rows .event-when { display: flex; align-items: baseline; justify-content: center; gap: 5px; padding: 4px 6px; }
.event-rows .event-day { font-size: 1.15rem; }
.event-rows .event-month { font-size: .72rem; font-weight: 600; }
.event-rows .event-actions { display: flex; gap: 14px; white-space: nowrap; }
@media (max-width: 720px) {
  .event-rows .event-item { grid-template-columns: 76px minmax(0, 1fr); gap: 4px 12px; }
  .event-rows .event-actions { grid-column: 2; }
}

.calendar-grid { width: 100%; border-collapse: collapse; table-layout: fixed; background: #fff; }
.calendar-grid th {
  padding: 8px 6px;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-50);
  border: 1px solid var(--line);
  background: var(--line-soft);
}
.calendar-grid td { border: 1px solid var(--line); vertical-align: top; height: 96px; padding: 6px; }
.calendar-grid td.outside { background: var(--page); }
.calendar-grid td.today { box-shadow: inset 0 0 0 2px var(--blue); }
.calendar-grid .daynum { display: block; font-size: .8rem; color: var(--ink-50); margin-bottom: 4px; }
.daypill {
  display: block;
  font-size: .76rem;
  line-height: 1.25;
  padding: 3px 6px;
  margin-bottom: 4px;
  border-radius: 6px;
  border-left: 3px solid var(--navy);
  background: var(--line-soft);
  color: var(--ink);
  text-decoration: none;
}
.daypill:hover { box-shadow: inset 0 0 0 1px rgba(16, 29, 51, .2); }
.calendar-key { display: flex; flex-wrap: wrap; gap: 8px; }
.calendar-key .tag {
  font-size: .78rem;
  background: var(--line-soft);
  border-left: 4px solid var(--navy);
  border-radius: 6px;
  padding: 3px 10px;
}
.accent-navy { border-left-color: var(--navy); }
.accent-red { border-left-color: var(--red); }
.accent-gold { border-left-color: var(--gold); }
.accent-purple { border-left-color: var(--purple); }
.daypill.accent-navy, .calendar-key .tag.accent-navy { background: var(--blue-100); color: var(--navy); border-left-color: var(--navy); }
.daypill.accent-red, .calendar-key .tag.accent-red { background: var(--red-100); color: var(--red-600); border-left-color: var(--red); }
.daypill.accent-gold, .calendar-key .tag.accent-gold { background: var(--gold-100); color: #96650f; border-left-color: var(--gold); }
.daypill.accent-purple, .calendar-key .tag.accent-purple { background: var(--purple-100); color: var(--purple); border-left-color: var(--purple); }

@media (max-width: 700px) {
  .calendar-grid td { height: auto; min-height: 58px; }
  .daypill { font-size: .68rem; }
}

/* ---------------------------------------------------------- learning center */
.learn-lessons { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 10px; counter-reset: lesson; }
.learn-lesson {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 10px;
}
.learn-lesson.is-done { border-left-color: var(--green); }
.learn-lesson > a { text-decoration: none; color: inherit; display: block; }
.learn-lesson > a:hover .learn-lesson-title { color: var(--red); }
.learn-lesson-title { display: block; font-weight: 600; counter-increment: lesson; }
.learn-lesson-title::before { content: counter(lesson) ". "; color: var(--ink-50); font-weight: 400; }
.learn-lesson-meta { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.learn-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 2rem 0 .5rem; }
.lesson-figure { margin: 1.5rem 0; }
.lesson-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; }
.lesson-figure figcaption { margin-top: .5rem; }
.lesson-figure.is-even img { aspect-ratio: 3 / 2; object-fit: contain; background: #fff; }
.lesson-video { margin: 1.5rem 0; }
.lesson-video video { display: block; width: 100%; height: auto; background: #000; border-radius: 8px; }
.lesson-video figcaption { margin-top: .5rem; }
.lesson-transcript { margin: -.75rem 0 1.5rem; border: 1px solid var(--line); border-radius: 8px; padding: .75rem 1rem; background: var(--paper, #f6f7f9); }
.lesson-transcript summary { cursor: pointer; font-weight: 600; }
.lesson-transcript h3 { margin: 1rem 0 .25rem; }
.lesson-transcript p { margin-top: 0; }
.lesson-quote { margin: 1.5rem 0; padding: 1rem 1.25rem; border-left: 4px solid var(--red); background: var(--red-100); border-radius: 0 8px 8px 0; }
.lesson-quote p { margin: 0; font-size: 1.05rem; font-style: italic; }
.lesson-quote cite { display: block; margin-top: .5rem; font-size: .85rem; font-style: normal; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-50); }
.lesson-qa { margin: 1.25rem 0; }
.lesson-qa h3 { margin-bottom: .35rem; }
.lesson-qa p { margin-top: 0; }
.learn-contents { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: 6px; counter-reset: toc; }
.learn-contents li { font-size: .88rem; padding-left: 20px; position: relative; counter-increment: toc; }
.learn-contents li::before { content: counter(toc); position: absolute; left: 0; color: var(--ink-50); font-size: .8rem; }
.learn-contents li.is-done::before { content: "\2713"; color: var(--green); }
.learn-contents li.is-current { font-weight: 600; }
.learn-contents a { color: inherit; text-decoration: none; }
.learn-contents a:hover { color: var(--red); }

.callout-ok { border-color: var(--green); background: var(--green-100); }
.quiz-questions { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: 14px; counter-reset: quiz; }
.quiz-question {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
}
.quiz-question fieldset { border: 0; margin: 0; padding: 0; }
.quiz-question legend { font-weight: 600; counter-increment: quiz; padding: 0; margin-bottom: 8px; }
.quiz-question legend::before { content: counter(quiz) ". "; color: var(--ink-50); font-weight: 400; }
.quiz-option { display: flex; align-items: flex-start; gap: 9px; padding: 4px 0; font-size: .94rem; cursor: pointer; }
.quiz-option input { margin-top: 3px; }
.quiz-review { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: 10px; counter-reset: quiz; }
.quiz-review li {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 10px;
  padding: 12px 16px;
  counter-increment: quiz;
}
.quiz-review li.is-wrong { border-left-color: var(--red); }
.quiz-review li > p:first-child::before { content: counter(quiz) ". "; color: var(--ink-50); font-weight: 400; }

@media (max-width: 600px) {
  .learn-lesson { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ---------------------------------------------- club suggestions */
.club-suggest { position: relative; }
.club-suggest-list {
  position: absolute; z-index: 40; left: 0; right: 0; top: 100%;
  margin: 4px 0 0; padding: 4px; list-style: none;
  max-height: 320px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(11, 31, 59, .14);
}
.club-suggest-list li { margin: 0; }
.club-suggest-option {
  display: flex; flex-direction: column; gap: 2px; width: 100%;
  padding: 9px 12px; text-align: left; cursor: pointer;
  background: none; border: 0; border-radius: calc(var(--radius) - 4px);
  font: inherit; color: var(--navy);
}
.club-suggest-option:hover,
.club-suggest-option:focus-visible { background: var(--page); }
.club-suggest-tag {
  align-self: flex-start; margin-top: 3px;
  padding: 1px 7px; border-radius: 999px;
  background: var(--page); border: 1px solid var(--line);
  font-size: .72rem; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-50);
}

/* Portal messaging: a list of conversations, then the conversation itself with
   your own messages set apart from everybody else's. */
.msg-list { list-style: none; margin: 0; padding: 0; }
.msg-list li { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 10px; }
.msg-list li.is-unread { border-color: var(--blue); background: var(--blue-100); }
.msg-list a { display: block; padding: .85rem 1rem; text-decoration: none; color: inherit; }
.msg-subject { display: block; font-family: var(--font-head); font-weight: 600; color: var(--navy); }
.msg-subject .badge { margin-left: .5rem; }
.msg-meta { display: block; margin-top: .2rem; font-size: .84rem; color: var(--ink-50); }

.msg-bubble {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: .9rem 1rem; margin-bottom: 12px; max-width: 88%;
}
.msg-bubble.is-mine { margin-left: auto; background: var(--blue-100); border-color: #c9dcf3; }

/* recognition badges: filled pills for an office held, tinted pills and discs
   for what a member has earned and keeps */
.badge-rows { margin: -.35rem 0 1.5rem; }
.badge-rows-label { margin: 0 0 .4rem; font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted, #56606d); }
.badge-rows-label + .badge-pills { margin-bottom: .9rem; }
.badge-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.badge-pills + .badge-pills { margin-top: .5rem; }
.badge-pills + .badge-rows-label { margin-top: 1.1rem; }
.badge-pill { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .7rem; border-radius: 999px; line-height: 1.15; }
.badge-pill strong { display: block; font-size: .84rem; }
.badge-pill-scope { display: block; font-size: .72rem; }
.badge-pill-mark { display: flex; align-items: center; }
.badge-pills-office .badge-pill { background: var(--badge-color, var(--navy)); color: #fff; border: 1px solid var(--badge-color, var(--navy)); }
.badge-pills-earned .badge-pill { background: #fff; color: var(--navy); border: 1px solid var(--badge-color, var(--navy)); }
.badge-pills-earned .badge-pill .badge-pill-mark { color: var(--badge-color, var(--navy)); }
.badge-pills-earned .badge-pill.is-locked { color: var(--muted, #56606d); border-color: var(--line); background: var(--sand, #f2f1ee); }
.badge-medallions { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 1rem; text-align: center; }
.badge-medallion { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.badge-medallion strong { font-size: .84rem; color: var(--navy); }
.badge-disc { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 999px; background: var(--badge-color, var(--navy)); color: #fff; box-shadow: inset 0 0 0 3px rgba(255,255,255,.35); }
.badge-medallion.is-locked .badge-disc { background: var(--sand, #f2f1ee); color: var(--muted, #56606d); box-shadow: inset 0 0 0 2px var(--line); }
.badge-medallion.is-locked strong { color: var(--muted, #56606d); }
.badge-progression + .badge-progression { margin-top: 1.4rem; }
.badge-progression-head { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; margin-bottom: .6rem; }
.badge-medallions-tight { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .8rem .5rem; margin-bottom: .6rem; }
.badge-medallions-tight .badge-disc { width: 48px; height: 48px; }
.badge-medallions-tight strong { font-size: .8rem; }

/* Yes/no membership questions, question left and answers right. */
.question-rows { margin: 0 0 1.2rem; }
.question-row { border: 0; padding: .55rem 0; margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; border-bottom: 1px solid var(--line-soft); }
.question-row:last-child { border-bottom: 0; }
.question-row-label { font-weight: 500; }
.question-row-answers { display: flex; gap: 1.1rem; flex: none; }
.question-row-answers .checkbox { margin: 0; white-space: nowrap; }
@media (max-width: 560px) {
  .question-row { flex-direction: column; align-items: flex-start; gap: .3rem; }
}

/* Representative seats in the console: the seat, its holder, and the buttons. */
.seats { display: grid; gap: .1rem; margin-top: .75rem; }
.seat {
  display: grid;
  grid-template-columns: minmax(12rem, 1.2fr) minmax(10rem, 1fr) auto;
  gap: .75rem;
  align-items: center;
  padding: .55rem .25rem;
  border-bottom: 1px solid var(--line, #e2e6ec);
}
.seat:last-child { border-bottom: 0; }
.seat-ground { display: block; font-size: .78rem; color: var(--muted, #5b6472); }
.seat-call { color: var(--muted, #5b6472); font-size: .85rem; margin-left: .35rem; }
.seat-open { color: var(--muted, #5b6472); font-style: italic; }
/* A state with nobody on either seat, in the picker. Safari ignores color on an
   option, so the count beside a filled state carries the same meaning. */
option.opt-open { color: var(--red); }
/* Chrome and Safari on macOS draw the picker with native menus, which ignore
   that color, so the open states are also listed under it. */
.state-open-list { display: flex; flex-wrap: wrap; gap: .3rem .55rem; margin: 0 0 .6rem; }
.state-open { color: var(--red); font-size: .85rem; text-decoration: none; }
.state-open:hover { text-decoration: underline; }
.seat-actions { display: flex; gap: .4rem; align-items: center; justify-content: flex-end; }
.seat-vacate { margin: 0; }
@media (max-width: 40rem) {
  .seat { grid-template-columns: 1fr; }
  .seat-actions { justify-content: flex-start; }
}

.seat-dialog {
  position: fixed;
  inset: 0;
  background: rgba(17, 22, 30, .55);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4vh 1rem;
  z-index: 60;
}
.seat-dialog[hidden] { display: none; }
.seat-dialog-box {
  background: #fff;
  border-radius: .6rem;
  padding: 1.25rem;
  width: min(34rem, 100%);
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, .3);
}
/* --------------------------- type-a-word dialog, centered on the screen */
.confirm-dialog {
  position: fixed;
  inset: 0;
  background: rgba(17, 22, 30, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 80;
}
.confirm-dialog-box {
  background: #fff;
  color: var(--ink);
  border-radius: .6rem;
  padding: 1.25rem;
  width: min(30rem, 100%);
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, .35);
}
.confirm-dialog-box h2 { margin: 0 0 .5rem; }
.confirm-dialog-box .field:last-of-type { margin-bottom: .75rem; }
.confirm-dialog-box .btn-row { margin-top: .5rem; }

.assign-results { display: grid; gap: .25rem; margin: .5rem 0 1rem; max-height: 18rem; overflow: auto; }
.assign-result {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line, #e2e6ec);
  border-radius: .4rem;
  padding: .45rem .6rem;
  cursor: pointer;
}
.assign-result:hover { border-color: var(--nara-blue, #1b365d); }
.assign-result.is-chosen { border-color: var(--nara-blue, #1b365d); background: #f2f6fc; }
.assign-name { display: block; font-weight: 600; }
.assign-meta { display: block; font-size: .8rem; color: var(--muted, #5b6472); }
.assign-meta.assign-warn { color: #8a4b00; }
.assign-chosen { font-size: .9rem; margin: 0 0 .75rem; }

/* Field services, read under the state representative in the map panel. */
.rep-field { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line, #e2e6ec); }
.rep-field h4 { margin: .1rem 0 .35rem; }

/* A club that stands on the public map, flagged where we list it. */
.map-flag {
  position: relative;
  display: inline-block;
  width: .62rem;
  height: .88rem;
  margin-left: .4rem;
  vertical-align: -.16rem;
}
.map-flag::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: #6b7280;
  border-radius: 1px;
}
.map-flag::after {
  content: "";
  position: absolute;
  left: 1.5px;
  top: .04rem;
  width: .46rem;
  height: .36rem;
  background: var(--red);
}
.map-flag:hover::after { background: var(--red-600); }
.map-link { font-size: .8rem; font-weight: 400; }

/* Representative activity reports: the movement beside a figure, and the way
   into a state's months a quarter at a time. */
.report-change { font-size: .8rem; font-weight: 600; white-space: nowrap; }
.report-change.is-up { color: #1a7f37; }
.report-change.is-down { color: #c92a2a; }
.report-change.is-flat { color: #d9822b; }
.report-tile {
  display: flex; flex-wrap: wrap; gap: 18px 34px; align-items: flex-start;
}
.report-figure { flex: 1 1 130px; }
.report-figure-label { display: block; font-size: .9rem; color: var(--ink); }
.report-figure-value {
  display: block; margin-top: 4px; font-size: 1.5rem; font-weight: 700; white-space: nowrap;
}
.report-figure-value .report-change { font-size: 1.2rem; }
.report-picker details {
  border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; background: #fff;
}
.report-picker summary {
  padding: 10px 14px; cursor: pointer; font-weight: 600; color: var(--ink-70);
}
.report-picker summary:hover { color: var(--blue); }
.report-picker details[open] summary { border-bottom: 1px solid var(--line); }
.report-picker ul { margin: 8px 0; padding-left: 32px; }
.report-picker li { margin-bottom: 4px; }
.report-picker a[aria-current="page"] { font-weight: 600; }

/* Picking representative seats to write to */
.rep-seats { border: 0; padding: 0; margin: 0 0 18px; }
.rep-seats legend { padding: 0; }
.rep-seat { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 6px; font-weight: 400; }
.rep-seat input { margin-top: 4px; }
.rep-seat.is-vacant { color: var(--muted); }

/* Spotting: tick-box filter chips, one-line posting, and a shaded every-other row */
.spot-filters > summary > .spot-filters-on { margin-left: auto; display: flex; align-items: baseline; gap: 8px; }
.spot-filters-on .badge { font-size: .68rem; padding: .18rem .5rem; }
.spot-filters-said { font-family: var(--font-body); font-weight: 400; font-size: .78rem; color: var(--ink-70); }
.spot-filters .chip-row { margin-bottom: 14px; }
.spot-filters-apply { display: flex; gap: 10px; flex-wrap: wrap; }

.chip-check { display: inline-flex; cursor: pointer; margin: 0; }
.chip-check input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.chip-check input:focus-visible + .chip { outline: 3px solid var(--blue); outline-offset: 2px; }
.chip-check input:checked + .chip { background: var(--red); border-color: var(--red); color: #fff; }

.spot-post-line { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 14px; align-items: end; }
.spot-post-line .field { margin-bottom: 12px; }
.spot-post-note { grid-column: span 2; }
.spot-post-go { display: flex; align-items: flex-end; }
.spot-post-go .btn { width: 100%; }
@media (max-width: 700px) {
  .spot-post-note { grid-column: auto; }
}

.table-zebra tbody tr:nth-child(even) td { background: rgba(11, 31, 59, .035); }
.spot-table .spot-mark-cell { width: 34px; padding-right: 0; }
.spot-mark { display: inline-flex; align-items: center; vertical-align: middle; }
.spot-mark svg, .spot-mark img { width: 20px; height: 20px; display: block; }
.spot-mark-pota path { fill: #1c6b3c; }
.spot-mark-wwff path { fill: #6f9a1f; }
.spot-mark-dx circle { fill: #111; }
