/* United Veterans Motor Pool — site styles */
:root {
  --navy-900: #0B1422;
  --navy-800: #111D31;
  --navy-700: #1A2A44;
  --ivory: #F1F3F5;
  --card: #FFFFFF;
  --sand: #E5E8EC;
  --sand-2: #DCE0E6;
  --line: #DADFE5;
  --line-2: #BFC6D0;
  --ink: #141A24;
  --muted: #4A5261;
  --gold: #D9A62B;
  --gold-soft: #FBF3DC;
  --red: #A3262A;
  --red-soft: #FBE3DF;
  --on-navy: #D3D9E2;
  --on-navy-2: #B7C0CE;
  --on-navy-3: #8F9BAE;
  --radius: 6px;
  --display: "Archivo", "Arial Narrow", sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.55; background: var(--ivory); color: var(--ink); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
a:hover { color: var(--gold); }
h1, h2, h3 { font-family: var(--display); font-stretch: 72%; font-weight: 800; margin: 0; letter-spacing: -.005em; line-height: 1; word-spacing: .08em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--gold); color: var(--navy-900); padding: 12px 16px; border-radius: 4px; font-weight: 700; z-index: 100; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1248px; margin: 0 auto; padding: 0 24px; }

/* Type helpers */
.eyebrow { font-size: 16px; font-weight: 600; color: var(--red); }
.on-dark .eyebrow, .eyebrow--gold { color: var(--gold); }
.display-xl { font-size: clamp(56px, 8.5vw, 116px); line-height: .9; letter-spacing: -.015em; }
.display-l { font-size: clamp(40px, 5vw, 56px); }
.display-m { font-size: clamp(32px, 4vw, 48px); }
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 26px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 48px; flex-wrap: wrap; }
.section-head > p { max-width: 480px; font-size: 18px; color: var(--muted); }
.center { text-align: center; align-items: center; }

/* Sections */
.section { padding: 72px 0; }
.section--tight { padding: 56px 0; }
.section--flush-top { padding-top: 0; }
.on-dark { background: var(--navy-800); color: #FFFFFF; }
.on-dark .lead, .on-dark p { color: var(--on-navy); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #FFFFFF; }
.on-red { background: var(--red); color: #FFFFFF; }
h2, h3 { color: var(--navy-800); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 26px; border-radius: 4px; font-weight: 700; font-size: 18px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-gold { background: var(--gold); color: var(--navy-900); }
.btn-gold:hover { background: #E6B840; color: var(--navy-900); }
.btn-navy { background: var(--navy-800); color: #FFFFFF; }
.btn-navy:hover { background: var(--navy-700); color: #FFFFFF; }
.btn-ghost-light { color: #FFFFFF; border-color: rgba(255,255,255,.45); }
.btn-ghost-light:hover { border-color: #FFFFFF; color: #FFFFFF; background: rgba(255,255,255,.06); }
.btn-ghost-dark { color: var(--navy-800); border-color: var(--navy-800); }
.btn-ghost-dark:hover { background: var(--navy-800); color: #FFFFFF; }
.btn-white { background: #FFFFFF; color: var(--red); }
.btn-white:hover { background: #FFF3EE; color: var(--red); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.link-arrow { font-weight: 700; color: var(--navy-800); text-decoration: underline; text-underline-offset: 4px; }

/* Top bar */
.topbar { background: var(--navy-900); color: #E8E3D6; font-size: 14px; padding: 10px 0; }
.topbar .container { display: flex; justify-content: center; align-items: center; gap: 12px; text-align: center; flex-wrap: wrap; }
.topbar strong { color: #FFFFFF; }
.topbar a { color: var(--gold); font-weight: 600; display: inline-block; padding: 6px 0; margin: -6px 0; } /* taller tap area, same line height */
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

/* Header */
.site-header { background: var(--navy-800); border-bottom: 1px solid rgba(255,255,255,.1); position: sticky; top: 0; z-index: 50; }
.site-header .container { height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #FFFFFF; }
.brand:hover { color: #FFFFFF; }
.brand-mark { width: auto; height: 84px; flex-shrink: 0; }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; font-family: var(--display); font-stretch: 72%; }
.brand-name span:first-child { font-size: 19px; font-weight: 600; letter-spacing: .04em; }
.brand-name span:last-child { font-size: 13px; letter-spacing: .28em; color: var(--on-navy-2); }
.nav { display: flex; align-items: center; gap: 30px; font-size: 16px; font-weight: 600; color: #E8E3D6; }
.nav a { text-decoration: none; white-space: nowrap; }
.nav a[aria-current]:not(.btn) { color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); padding: 6px 0; }
.nav .btn { min-height: 44px; padding: 10px 18px; font-size: 16px; }
.nav .btn-ghost-light[aria-current="page"] { border-color: var(--gold); color: var(--gold); }
/* Join and Donate sit together as one pair in the public menu. */
.nav-pair { display: inline-flex; align-items: center; gap: 8px; }
.nav [data-admin-link][hidden] { display: none; }
/* About dropdown */
.nav-group { position: relative; display: flex; align-items: center; gap: 2px; }
.sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: inherit; cursor: pointer; }
.sub-toggle .icon { width: 16px; height: 16px; stroke-width: 2.25; transition: transform .15s; }
.sub { display: none; position: absolute; top: 100%; left: -18px; z-index: 60; min-width: 220px; margin: 14px 0 0; padding: 8px 0; list-style: none; background: var(--navy-900); border: 1px solid rgba(255,255,255,.12); border-radius: 6px; box-shadow: 0 16px 36px rgba(0,0,0,.35); }
/* Invisible bridge across the gap between "About" and its menu, so moving the mouse down doesn't close it.
   It lives on .nav-group, not .sub, because .sub clips its overflow for the rounded glass corners. */
.nav-group:hover::after, .nav-group.open::after { content: ""; position: absolute; left: -18px; top: 100%; width: 240px; height: 16px; }
.nav-group:hover .sub, .nav-group.open .sub { display: block; }
.nav-group:hover .sub-toggle .icon, .nav-group.open .sub-toggle .icon { transform: rotate(180deg); }
.nav .sub a { display: block; padding: 10px 18px; color: #E8E3D6; white-space: nowrap; }
.nav .sub a:hover { background: rgba(255,255,255,.06); color: #FFFFFF; }
.nav .sub a[aria-current] { color: var(--gold); box-shadow: none; padding: 10px 18px; }
.nav-toggle { display: none; width: 48px; height: 48px; border-radius: 4px; border: 1.5px solid rgba(255,255,255,.35); background: transparent; color: #FFFFFF; align-items: center; justify-content: center; cursor: pointer; }

/* Hero */
.hero { padding: 80px 0 88px; }
.hero-grid { display: grid; grid-template-columns: var(--cols, minmax(0, 1.1fr) minmax(0, 1fr)); gap: 72px; align-items: center; }
.hero-tagline { display: flex; align-items: center; gap: 14px; font-family: var(--display); font-stretch: 72%; font-size: 26px; font-weight: 700; line-height: 1.15; color: var(--gold) !important; }
.checks { display: flex; flex-wrap: wrap; gap: 14px 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); font-size: 15px; }
.checks li, .check-list li { display: flex; gap: 10px; align-items: center; }
.check-list { display: flex; flex-direction: column; gap: 14px; }
.check-list li { padding: 18px 22px; border: 1px solid rgba(255,255,255,.16); border-radius: 6px; font-size: 18px; font-weight: 600; color: #FFFFFF; }

/* Photo placeholder */
.photo { border-radius: 6px; background: var(--sand-2); color: var(--muted); display: flex; align-items: center; justify-content: center; text-align: center; padding: 32px; font-size: 15px; line-height: 1.5; min-height: 260px; }
.on-dark .photo { background: var(--navy-700); border: 1px solid rgba(255,255,255,.12); color: var(--on-navy-3); }
.photo--tall { min-height: 520px; }
.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* Grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: var(--cols, repeat(2, minmax(0, 1fr))); gap: 72px; align-items: center; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; gap: 16px; text-decoration: none; color: var(--ink); }
a.card { transition: border-color .15s; }
a.card:hover { color: var(--ink); border-color: var(--navy-800); }
.card p { color: var(--muted); }
.card .grow { flex-grow: 1; }
.card--media { padding: 0; overflow: hidden; }
.card--media .photo { border-radius: 0; min-height: 220px; }
.card--media .card-body { padding: 32px; display: flex; flex-direction: column; gap: 14px; flex-grow: 1; }
.icon-box { width: 52px; height: 52px; flex-shrink: 0; border-radius: 6px; background: var(--navy-800); color: var(--gold); display: flex; align-items: center; justify-content: center; }
.icon { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 28px; }
.card-row { flex-direction: row; gap: 24px; padding: 40px; }
.card-row > div { display: flex; flex-direction: column; gap: 10px; }

/* Branch strip */
.branches { background: var(--navy-900); color: var(--on-navy); padding: 22px 0; font-family: var(--display); font-stretch: 72%; font-size: 21px; font-weight: 700; }
.branches ul { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 28px; }

/* Meetup */
.meetup { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 36px 44px; display: flex; align-items: center; gap: 40px; }
.meetup-date { width: 108px; height: 108px; flex-shrink: 0; border-radius: 6px; background: var(--navy-800); color: #FFFFFF; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.meetup-date span:first-child { font-size: 14px; font-weight: 600; color: var(--gold); }
.meetup-date span:last-child { font-family: var(--display); font-stretch: 72%; font-size: 30px; font-weight: 600; }
.meetup-info { flex-grow: 1; display: flex; flex-direction: column; gap: 8px; }
.status { display: inline-flex; align-items: center; font-size: 13px; font-weight: 700; background: var(--red-soft); color: #7D1C1F; padding: 4px 10px; border-radius: 999px; }
.status[hidden] { display: none; }

/* Timeline */
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.timeline li { display: flex; flex-direction: column; gap: 14px; padding-right: 28px; }
.timeline .marker { display: flex; align-items: center; }
.timeline .marker b { width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); display: flex; align-items: center; justify-content: center; }
.timeline .marker i { flex-grow: 1; height: 2px; background: rgba(255,255,255,.2); }
.timeline .done b { background: var(--gold); border-color: var(--gold); color: var(--navy-900); }
.timeline .done i { background: var(--gold); }
.timeline .active b { border-color: var(--gold); }
.timeline .tag { font-size: 13px; font-weight: 700; color: var(--on-navy-2); }
.timeline .done .tag, .timeline .active .tag { color: var(--gold); }
.timeline h3 { font-size: 24px; }

/* Quote */
.quote-rule { border-top: 2px solid var(--navy-800); border-bottom: 2px solid var(--navy-800); padding: 64px 40px; text-align: center; display: flex; flex-direction: column; gap: 20px; align-items: center; margin: 0; }
.quote-text { font-family: var(--display); font-stretch: 72%; font-weight: 500; font-size: clamp(26px, 3vw, 42px); line-height: 1.2; color: var(--navy-800); max-width: 1000px; }
.quote-card { margin: 0; padding: 48px; border-radius: 6px; display: flex; flex-direction: column; gap: 22px; }
.quote-card footer { font-size: 16px; }
.panel-sand { background: var(--sand); border-radius: 6px; padding: 72px; }

/* CTA band */
.cta-band { padding: 60px 0; }
.cta-band .container { display: flex; justify-content: space-between; align-items: center; gap: 48px; }
.cta-band p { color: #FBE9E4; font-size: 18px; }
.cta-band .eyebrow { color: #FFE3C2; }

/* Numbered cards */
.num { font-family: var(--display); font-stretch: 72%; font-size: 60px; font-weight: 600; line-height: 1; color: var(--gold); }
.fort-card { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 36px; display: flex; flex-direction: column; gap: 12px; }
.fort-card h3 { font-size: 36px; }
.fort-card--first { background: var(--navy-800); border-color: var(--navy-800); }
.fort-card--first h3 { color: #FFFFFF; }
.fort-card--first p { color: var(--on-navy); }
.fort-card--add { border: 2px dashed var(--red); background: transparent; text-decoration: none; justify-content: center; }
.fort-card--add h3 { color: var(--red); font-size: 32px; }
.badge { align-self: flex-start; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--muted); }
.badge--gold { background: var(--gold); color: var(--navy-900); border-color: var(--gold); }
.badge--red { background: var(--red); color: #FFFFFF; border-color: var(--red); }

/* Where it goes */
.where { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.16); }
.where > div { padding: 36px 28px 0; display: flex; flex-direction: column; gap: 14px; }
.where > div + div { border-left: 1px solid rgba(255,255,255,.16); }
.where > div:first-child { padding-left: 0; }
.where .icon { width: 32px; height: 32px; color: var(--gold); }
.where h3 { font-size: 24px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--navy-800); background: var(--card); }

/* Forms */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.pledge { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); overflow: hidden; }
.pledge-main { padding: 56px; display: flex; flex-direction: column; gap: 40px; }
.pledge-side { background: var(--navy-800); color: #FFFFFF; padding: 56px 48px; display: flex; flex-direction: column; gap: 18px; }
.pledge-side .field { color: #E8E3D6; }
.pledge-side h3 { color: #FFFFFF; font-size: 24px; }
.pledge-side .fine { font-size: 14px; color: var(--on-navy-2); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
legend { font-family: var(--display); font-stretch: 72%; font-size: 20px; font-weight: 600; color: var(--navy-800); letter-spacing: .03em; padding: 0; margin-bottom: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select { font: inherit; font-weight: 400; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 4px; background: #FFFFFF; color: var(--ink); min-height: 48px; width: 100%; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--navy-800); }
.fields-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fields-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.money { position: relative; display: flex; align-items: center; }
.money span { position: absolute; left: 14px; font-weight: 600; color: var(--muted); }
.money input { padding-left: 30px; }
.checkbox { display: flex; gap: 12px; align-items: center; min-height: 44px; font-size: 16px; line-height: 1.5; cursor: pointer; }
.checkbox input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--gold); }
.check-tile { display: flex; gap: 12px; align-items: center; min-height: 56px; padding: 0 16px; border: 1.5px solid var(--line-2); border-radius: 4px; background: #FFFFFF; font-size: 16px; cursor: pointer; }
.check-tile input { width: 20px; height: 20px; accent-color: var(--navy-800); }
.form-submit { width: 100%; min-height: 60px; }
.form-thanks { display: none; padding: 20px; border-radius: 4px; background: var(--gold-soft); color: var(--ink); font-weight: 600; }
.form-thanks.show { display: block; }

/* Toggle pills and choice cards */
.pill { min-height: 48px; padding: 0 20px; border-radius: 999px; font-size: 16px; font-weight: 600; cursor: pointer; border: 1.5px solid var(--navy-800); background: #FFFFFF; color: var(--navy-800); }
.pill[aria-pressed="true"] { background: var(--navy-800); color: #FFFFFF; }
.choice { text-align: left; cursor: pointer; padding: 22px; border-radius: 6px; border: 2px solid var(--line); background: #FFFFFF; display: flex; flex-direction: column; gap: 8px; color: var(--ink); transition: border-color .15s, background .15s; }
.choice:hover { border-color: var(--line-2); }
.choice[aria-pressed="true"] { border-color: var(--navy-800); background: var(--gold-soft); }
.choice .rank { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.choice .amt { font-family: var(--display); font-stretch: 72%; font-size: 40px; font-weight: 600; line-height: 1; color: var(--navy-800); }
.choice .title { font-family: var(--display); font-stretch: 72%; font-size: 28px; font-weight: 600; color: var(--navy-800); }
.choice .desc { font-size: 15px; line-height: 1.5; color: var(--muted); }
.choice .kicker { font-size: 13px; font-weight: 700; color: var(--red); }
.badge-sm { font-size: 13px; font-weight: 700; background: var(--red); color: #FFFFFF; padding: 4px 8px; border-radius: 4px; }
[data-panel][hidden] { display: none; }

/* Help bar */
.help-bar { background: var(--red-soft); color: #3A0E10; padding: 20px 0; font-size: 17px; }
.help-bar .container { display: flex; align-items: center; gap: 18px; }
.help-bar a { color: #7D1C1F; font-weight: 700; }

/* Join aside */
.aside-stack { display: flex; flex-direction: column; gap: 24px; }
.counter { background: var(--navy-800); color: #FFFFFF; border-radius: 6px; padding: 40px; display: flex; flex-direction: column; gap: 8px; }
.counter strong { font-family: var(--display); font-stretch: 72%; font-size: 80px; font-weight: 600; line-height: 1; }
.counter p { color: var(--on-navy); }
.steps { display: flex; flex-direction: column; gap: 20px; }
.steps li { display: flex; gap: 16px; }
.steps li > span:first-child { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: var(--gold); color: var(--navy-900); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps li > span:last-child { display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--muted); }
.steps strong { font-size: 17px; color: var(--navy-800); }

/* FAQ */
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); padding: 22px 0; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; font-family: var(--display); font-stretch: 72%; font-size: 24px; font-weight: 600; color: var(--navy-800); min-height: 44px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 30px; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--muted); max-width: 720px; }

/* Footer */
.site-footer { background: var(--navy-900); color: var(--on-navy-2); padding: 72px 0 44px; }
.footer-grid { display: grid; grid-template-columns: auto minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 48px; }
.footer-grid--members { grid-template-columns: auto minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
.footer-grid nav, .footer-grid .col { display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.footer-grid a { text-decoration: none; }
.footer-title { font-size: 13px; font-weight: 700; color: var(--gold); }
.footer-logo { width: 160px; height: auto; margin-bottom: 16px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; color: var(--on-navy-3); flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 20px; }
  .grid-4, .where, .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .where > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .pledge { grid-template-columns: 1fr; }
  .footer-grid, .footer-grid--members { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-grid > .footer-pledge { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100px; left: 0; right: 0; background: var(--navy-800); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav a[aria-current]:not(.btn) { box-shadow: none; }
  .nav .btn { margin-top: 12px; min-height: 52px; }
  .nav-pair { display: flex; gap: 10px; margin-top: 12px; }
  .nav-pair .btn { flex: 1 1 0; margin-top: 0; }
  .nav-group { display: block; }
  .nav-group > a { display: block; }
  .sub-toggle { display: none; }
  .sub, .nav-group:hover .sub { display: block; position: static; min-width: 0; margin: 0; padding: 0 0 0 18px; background: none; border: 0; border-radius: 0; box-shadow: none; }
  .nav-group:hover::after, .nav-group.open::after { display: none; }
  .nav .sub a, .nav .sub a[aria-current] { padding: 12px 0; font-weight: 500; font-size: 15px; }
  .nav .sub a:not([aria-current]) { color: var(--on-navy-2); }
  .nav .sub a:hover { background: none; }
  .hero-grid, .split, .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .section-head { margin-bottom: 36px; }
  .meetup { flex-direction: column; align-items: flex-start; padding: 28px; gap: 20px; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
  .panel-sand { padding: 40px 28px; }
  .card-row { flex-direction: column; padding: 32px 28px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header .container { height: 80px; }
  .nav { top: 80px; }
  .brand-mark { height: 66px; }
  .footer-logo { width: 130px; }
  .brand-name span:first-child { font-size: 16px; }
  .brand-name span:last-child { font-size: 13px; letter-spacing: .2em; }
  .section { padding: 48px 0; }
  .section--tight { padding: 36px 0; }
  .hero { padding: 48px 0 64px; }
  .photo--tall { min-height: 260px; }
  .grid-4, .where, .timeline, .fields-2, .fields-3 { grid-template-columns: 1fr; }
  .where > div, .where > div + div { border-left: 0; padding: 24px 0 0; }
  .timeline li { padding-right: 0; }
  .timeline .marker i { display: none; }
  .pledge-main, .pledge-side { padding: 32px 20px; }
  .tiers { grid-template-columns: minmax(0, 1fr) !important; gap: 10px !important; }
  .choice { padding: 16px 18px; }
  .choice .amt { font-size: 30px; }
  .choice .desc { font-size: 16px; }
  .btn-row .btn { width: 100%; }
  .quote-rule { padding: 40px 8px; }
  .quote-card { padding: 32px 24px; }
  .footer-grid, .footer-grid--members { grid-template-columns: 1fr 1fr; }
  .branches ul { justify-content: center; font-size: 17px; gap: 6px 20px; }
  .help-bar .container { align-items: flex-start; }
  .topbar .dot { display: none; }
}

/* ---------- Program and about pages ---------- */
.photo--img { padding: 0; overflow: hidden; background: var(--sand-2); }
.photo--img img { display: block; }
.prose { display: flex; flex-direction: column; gap: 20px; font-size: 18px; line-height: 1.7; }
.prose p { color: var(--ink); }
.on-dark .prose p { color: var(--on-navy); }
.page-hero { padding: 88px 0 92px; }
.page-hero .lead { max-width: 820px; }
/* Long page title kept on one line: scales with the container (about 11.6em of text) */
.h1-oneline { white-space: nowrap; font-size: min(100px, calc((100vw - 48px) / 11.6)); }
@media (max-width: 640px) { .h1-oneline { white-space: normal; font-size: 44px; text-wrap: balance; } }
/* Home title: "United Veterans" is ~5.9em wide, so size it to its hero column (two lines, never three) */
.h1-home { font-size: min(116px, calc((min(100vw, 1248px) - 120px) * .0858)); }
@media (max-width: 900px) { .h1-home { font-size: min(116px, calc((100vw - 48px) / 6.1)); } }
/* Even out line lengths; main.js shrinks any heading that still runs past two lines */
main h1, main h2, main h3 { text-wrap: balance; }
/* No single word stranded on a paragraph's last line */
p, li, dd, figcaption { text-wrap: pretty; }

/* Numbered pathway */
.pathway { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.pathway li { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; }
.pathway h3 { font-size: 28px; }
.pathway p { color: var(--muted); }

/* Check grid */
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.check-grid li { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; font-size: 18px; font-weight: 600; color: var(--navy-800); }
.check-grid .icon { color: var(--red); flex-shrink: 0; width: 24px; height: 24px; stroke-width: 2.5; }
.on-dark .check-grid li { background: transparent; border-color: rgba(255,255,255,.16); color: #FFFFFF; }
.on-dark .check-grid .icon { color: var(--gold); }

/* Vehicle tiles */
.vehicles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.vehicles li { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.vehicles h3 { font-size: 24px; }
.vehicles p { font-size: 15px; color: var(--muted); }

/* Statement panel */
.statement { border-left: 6px solid var(--gold); background: var(--card); border-radius: 0 6px 6px 0; padding: 40px 44px; font-size: 19px; line-height: 1.7; display: flex; flex-direction: column; gap: 18px; }

/* Occasions */
.occasions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.occasions li { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-2); font-size: 18px; font-weight: 600; color: var(--navy-800); }
.occasions li:nth-child(odd) { padding-right: 32px; }
.occasions li:nth-child(even) { padding-left: 32px; border-left: 1px solid var(--line-2); }
.occasions span { font-weight: 400; color: var(--muted); text-align: right; }
.on-dark .occasions span { color: var(--on-navy-3); }

/* Event card */
.event { background: var(--card); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.event-head { background: var(--navy-800); color: #FFFFFF; padding: 32px 44px; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.event-head h2 { color: #FFFFFF; font-size: clamp(30px, 3.4vw, 42px); }
.event-when { font-family: var(--display); font-stretch: 72%; font-size: 22px; color: var(--gold); text-align: right; line-height: 1.3; }
.event-body { overflow-wrap: anywhere; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.5fr); gap: 48px; padding: 44px; }
.event-facts { display: flex; flex-direction: column; gap: 22px; }
.event-facts dt { font-size: 13px; font-weight: 700; color: var(--red); }
.event-facts dd { margin: 4px 0 0; font-size: 17px; font-weight: 600; color: var(--navy-800); }
.nowrap { white-space: nowrap; }
.event-foot { border-top: 1px solid var(--line); padding: 20px 44px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-weight: 600; color: var(--navy-800); }
.event-foot .live { display: inline-flex; align-items: center; gap: 8px; color: #1F6B3A; }
.event-foot .live::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #2E8B4F; }

/* Staff */
.staff { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.staff li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.staff .portrait { aspect-ratio: 1 / 1; overflow: hidden; background: var(--sand-2); display: flex; align-items: center; justify-content: center; color: var(--line-2); }
.staff .portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.staff .portrait .icon { width: 72px; height: 72px; stroke-width: 1.25; }
.staff .who { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 6px; }
.staff .role { font-size: 13px; font-weight: 700; color: var(--red); }
.staff h3 { font-size: 26px; }
.staff .open h3 { color: var(--muted); }

/* Speech */
.speech { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; font-size: 19px; line-height: 1.75; }
.speech p { color: var(--ink); }
.speech .beat { font-family: var(--display); font-stretch: 72%; font-size: clamp(26px, 2.8vw, 34px); font-weight: 600; line-height: 1.2; color: var(--navy-800); padding-top: 16px; }
.speech strong { color: var(--navy-800); }
.speech .oath { margin: 8px 0; padding: 32px 36px; background: var(--navy-800); border-radius: 6px; color: var(--on-navy); font-style: italic; font-size: 18px; }
.signoff { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 4px; text-align: right; }
.signoff strong { font-family: var(--display); font-stretch: 72%; font-size: 30px; color: var(--navy-800); }
.figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.figure img { width: 100%; border-radius: 6px; border: 1px solid var(--line); background: var(--card); }
.figure figcaption { font-size: 15px; color: var(--muted); font-style: italic; }
.event-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.event-photos img { aspect-ratio: 3 / 4; object-fit: cover; }
video { display: block; width: 100%; height: auto; border-radius: 6px; background: #000; }

/* Insignia */
.star-list { display: flex; flex-direction: column; gap: 14px; }
.star-list li { display: flex; gap: 12px; font-size: 18px; }
.star-list li::before { content: ""; width: 8px; height: 8px; margin-top: .6em; flex-shrink: 0; background: var(--gold); border-radius: 1px; }
.viewer { display: flex; flex-direction: column; gap: 18px; align-items: center; }
.viewer img { width: 100%; max-width: 460px; aspect-ratio: 1 / 1; object-fit: contain; background: #FFFFFF; border-radius: 6px; border: 1px solid var(--line); }
.viewer [hidden] { display: none; }
.on-dark .pill { background: transparent; color: #FFFFFF; border-color: rgba(255,255,255,.45); }
.on-dark .pill[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--navy-900); }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.branch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.branch-grid li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.branch-grid img { width: 100%; height: auto; aspect-ratio: 5 / 7; object-fit: contain; background: #FFFFFF; }
.branch-grid div { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.branch-grid h3 { font-size: 24px; }
.branch-grid p { font-size: 15px; color: var(--muted); }

/* Call and answer */
.call { max-width: 860px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,.16); }
.call li { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.call em { font-size: 19px; color: var(--on-navy); }
.call b { font-family: var(--display); font-stretch: 72%; font-size: 22px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); text-align: right; }
.call li:last-child b { color: #FFFFFF; }
.motto { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-family: var(--display); font-stretch: 72%; }
.motto strong { font-size: clamp(28px, 3vw, 40px); letter-spacing: .08em; color: #FFFFFF; font-weight: 600; }
.motto span { color: var(--on-navy-2); font-family: var(--body); font-size: 16px; }

/* Empty gallery */
.empty-state { border: 2px dashed var(--line-2); border-radius: 6px; padding: 72px 32px; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.empty-state p:last-child { color: var(--muted); font-size: 18px; max-width: 520px; }

@media (max-width: 1080px) {
  .pathway, .vehicles, .branch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .staff { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .occasions { grid-template-columns: 1fr; }
  .occasions li:nth-child(odd), .occasions li:nth-child(even) { padding: 18px 0; border-left: 0; }
  .event-head, .event-body, .event-foot { padding-left: 28px; padding-right: 28px; }
  .event-when { text-align: left; }
  .statement { padding: 28px 24px; font-size: 17px; }
  .speech .oath { padding: 24px; }
}
@media (max-width: 640px) {
  .page-hero { padding: 56px 0 64px; }
  .pathway, .check-grid, .vehicles, .staff, .event-photos { grid-template-columns: 1fr; }
  .branch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .branch-grid div { padding: 14px; }
  .branch-grid h3 { font-size: 20px; }
  .call li { grid-template-columns: 1fr; gap: 6px; }
  .call b { text-align: left; }
  .speech { font-size: 17px; }
}

/* =========================================================
   Soft + glass layer (2026-10-04)
   Rounder corners, navy-tinted shadows, frosted glass panels,
   brass/taillight glows on navy, gentle hover lift, scroll reveal.
   Undo: delete this block (backup in Clients/UVMP/site-backup-2026-10-04).
   ========================================================= */
:root {
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --shadow-1: 0 1px 2px rgba(17,29,49,.05), 0 8px 22px -10px rgba(17,29,49,.18);
  --shadow-2: 0 2px 6px rgba(17,29,49,.07), 0 22px 44px -16px rgba(17,29,49,.32);
  --glass-light: rgba(255,255,255,.68);
  --glass-light-line: rgba(17,29,49,.08);
  --glass-dark: rgba(255,255,255,.055);
  --glass-dark-line: rgba(255,255,255,.13);
  --blur: blur(16px) saturate(150%);
  --ease: cubic-bezier(.2,.7,.2,1);
  --glow-navy:
    radial-gradient(900px 520px at 88% -12%, rgba(120,156,214,.16), transparent 62%),
    radial-gradient(760px 520px at -8% 112%, rgba(163,38,42,.24), transparent 62%);
}

/* Backgrounds the glass sits on */
body {
  background:
    radial-gradient(1100px 620px at 100% 0%, rgba(217,166,43,.09), transparent 60%),
    radial-gradient(900px 640px at 0% 100%, rgba(26,42,68,.09), transparent 60%),
    var(--ivory);
  background-attachment: fixed;
}
.on-dark { background: var(--glow-navy), var(--navy-800); }
.site-footer { background: var(--glow-navy), var(--navy-900); }
.on-red { background: radial-gradient(800px 420px at 90% 0%, rgba(255,255,255,.14), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(11,20,34,.28), transparent 60%), var(--red); }

/* Glass header and menus */
.site-header { transition: background-color .3s; border-bottom-color: rgba(255,255,255,.08); }
.site-header.scrolled { background: rgba(17,29,49,.78); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
/* Menus live inside the glass header, where a second blur cannot work, so they stay near-solid */
.sub { background: rgba(11,20,34,.97); border-color: var(--glass-dark-line); border-radius: 14px; overflow: hidden; }
.nav-toggle, .sub-toggle { border-radius: var(--r-sm); }
@media (max-width: 900px) {
  .nav { background: var(--navy-900); box-shadow: 0 24px 40px -12px rgba(11,20,34,.55); }
  .sub, .nav-group:hover .sub { background: none; border-radius: 0; }
}

/* Buttons: pills with a soft lift */
.btn { border-radius: 999px; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn-gold, .btn-navy, .btn-white { box-shadow: 0 6px 16px -8px rgba(11,20,34,.45); }
.btn-gold:hover, .btn-navy:hover, .btn-white:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -10px rgba(11,20,34,.5); }
.btn-ghost-light { background: rgba(255,255,255,.06); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pill, .chip, .badge, .badge-sm { border-radius: 999px; }

/* Frosted panels on light sections */
.card, .pathway li, .vehicles li, .staff li, .branch-grid li, .fort-card, .meetup, .event, .form-card,
.check-grid li, .choice, .panel-sand, .statement, .empty-state {
  background: var(--glass-light);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border-color: var(--glass-light-line);
  border-radius: var(--r);
  box-shadow: var(--shadow-1);
}
.panel-sand { border-radius: var(--r-lg); }
.statement { border-radius: 0 var(--r) var(--r) 0; }
.empty-state { box-shadow: none; border-color: var(--line-2); }
.fort-card--add { background: rgba(255,255,255,.35); box-shadow: none; border-color: var(--red); }
.fort-card--first { background: var(--glow-navy), var(--navy-800); border-color: var(--navy-800); }
.choice[aria-pressed="true"] { background: var(--gold-soft); border-color: var(--navy-800); }

/* Smoky glass on navy sections */
.on-dark .check-grid li, .check-list li, .on-dark .photo:not(.photo--img), .on-dark .card, .on-dark .quote-card {
  background: var(--glass-dark);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-dark-line);
  border-radius: var(--r);
  box-shadow: none;
}

/* Solid navy blocks get depth instead of flat fill */
.pledge-side, .counter, .event-head, .speech .oath, .meetup-date, .icon-box {
  background: linear-gradient(155deg, var(--navy-700), var(--navy-900));
}
.counter, .speech .oath { border-radius: var(--r); }
.event-head .eyebrow, .pledge-side .eyebrow, .counter .eyebrow { color: var(--gold); } /* red labels are unreadable on navy */
.meetup-date { border-radius: var(--r); }
.icon-box { border-radius: 12px; }

/* Media */
.photo { border-radius: var(--r-lg); }
.photo--img { box-shadow: var(--shadow-2); }
.card--media .photo { border-radius: 0; box-shadow: none; }
.figure img, .viewer img, video { border-radius: var(--r); }
.figure img { box-shadow: var(--shadow-1); border-color: var(--glass-light-line); }

/* Fields */
.field input, .field textarea, .field select, .check-tile { border-radius: var(--r-sm); }
.form-thanks { border-radius: var(--r-sm); }

/* Linked cards lift on hover; their photo eases in */
a.card, .fort-card[href] { transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .2s; }
a.card:hover, .fort-card[href]:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: rgba(17,29,49,.16); }
.card--media .photo img { transition: transform .6s var(--ease); }
a.card--media:hover .photo img { transform: scale(1.04); }

/* Scroll reveal (main.js adds .reveal only to content below the fold) */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, a.card, .fort-card[href], .card--media .photo img { transition: none; }
  .btn-gold:hover, .btn-navy:hover, .btn-white:hover, a.card:hover, .fort-card[href]:hover, a.card--media:hover .photo img { transform: none; }
}

/* Content links (2A) */
.content-links a{color:var(--navy-800);font-weight:700}
.content-strong strong{color:var(--navy-800)}
.content-links-gold a{color:var(--gold)}
.content-links-white a{color:#fff;font-weight:700}

/* ---------- Dark mode (switch in the menu; js/theme.js applies a saved choice before paint) ---------- */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 44px; min-height: 44px; padding: 0 10px; border: 1px solid var(--glass-dark-line); border-radius: 999px; background: rgba(255,255,255,.06); color: #FFFFFF; font: inherit; font-weight: 600; cursor: pointer; transition: background .2s, border-color .2s; }
.theme-toggle:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); }
.theme-toggle .icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sun, [data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
.theme-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 1080px) {
  .theme-toggle { justify-content: flex-start; padding: 0 16px; }
  .theme-label { position: static; width: auto; height: auto; clip: auto; }
}

/* Palette taken from Kurt's current site: slate navy, bright flag gold, thin gold card outlines. */
[data-theme="dark"] {
  color-scheme: dark;
  --ivory: #0F172A;
  --card: #131E36;
  --sand: #111A30;
  --sand-2: #1A2640;
  --line: rgba(255,215,0,.22);
  --line-2: rgba(255,255,255,.24);
  --ink: #E8ECF2;
  --muted: #A9B4C6;
  --gold: #F5C518;
  --gold-soft: #2B2410;
  --red-soft: #3A1A1C;
  --glass-light: rgba(19,30,54,.78);
  --glass-light-line: rgba(255,215,0,.22);
  --shadow-1: 0 1px 2px rgba(0,0,0,.3), 0 8px 22px -10px rgba(0,0,0,.6);
  --shadow-2: 0 2px 6px rgba(0,0,0,.35), 0 22px 44px -16px rgba(0,0,0,.7);
}
[data-theme="dark"] h2, [data-theme="dark"] h3, [data-theme="dark"] .quote-text,
[data-theme="dark"] .link-arrow, [data-theme="dark"] .chip, [data-theme="dark"] .check-grid li,
[data-theme="dark"] .content-links a, [data-theme="dark"] .content-strong strong,
[data-theme="dark"] legend, [data-theme="dark"] .choice .amt, [data-theme="dark"] .choice .title,
[data-theme="dark"] .steps strong, [data-theme="dark"] .faq summary, [data-theme="dark"] .occasions li,
[data-theme="dark"] .event-facts dd, [data-theme="dark"] .event-foot, [data-theme="dark"] .speech .beat,
[data-theme="dark"] .speech strong, [data-theme="dark"] .signoff strong { color: #FFFFFF; }
[data-theme="dark"] .field input:focus, [data-theme="dark"] .field textarea:focus, [data-theme="dark"] .field select:focus,
[data-theme="dark"] .choice[aria-pressed="true"] { border-color: var(--gold); }
[data-theme="dark"] .check-tile input { accent-color: var(--gold); }
[data-theme="dark"] .eyebrow, [data-theme="dark"] .section-head h2 + p strong { color: var(--gold); }
[data-theme="dark"] .btn-ghost-dark { color: #FFFFFF; border-color: rgba(255,255,255,.4); }
[data-theme="dark"] .pill { background: var(--card); color: #FFFFFF; border-color: rgba(255,255,255,.4); }
[data-theme="dark"] .field input, [data-theme="dark"] .field textarea, [data-theme="dark"] .field select,
[data-theme="dark"] .check-tile, [data-theme="dark"] .choice { background: #0B1222; border-color: rgba(255,255,255,.22); }
[data-theme="dark"] .viewer img, [data-theme="dark"] .branch-grid img { background: var(--sand-2); }
[data-theme="dark"] .fort-card--add { background: rgba(255,255,255,.04); }
[data-theme="dark"] a.card:hover, [data-theme="dark"] .fort-card[href]:hover { border-color: var(--gold); }
/* Brand red text is too dark to read on navy; lift it. */
[data-theme="dark"] .fort-card--add h3, [data-theme="dark"] .choice .kicker,
[data-theme="dark"] .check-grid .icon, [data-theme="dark"] .event-facts dt, [data-theme="dark"] .staff .role { color: #F08A8D; }
[data-theme="dark"] .quote-text { --red: #F08A8D; }
[data-theme="dark"] .on-red .eyebrow { color: #FFFFFF; }
[data-theme="dark"] .event-foot .live { color: #6FD496; }
[data-theme="dark"] .event-foot .live::before { background: #6FD496; }
[data-theme="dark"] .status { color: #FFC9C4; }
[data-theme="dark"] .help-bar { color: #FFE3DF; }
[data-theme="dark"] .help-bar a { color: #FFFFFF; }

/* Dark mode field colours (main.js sets data-tone and --tone-to, the colour the band fades into). */
[data-theme="dark"] { --card: rgba(8,12,18,.42); --glass-light: rgba(8,12,18,.5); --tone-olive: #283020; --tone-gunmetal: #22262C; --tone-navy: #0F172A; }
[data-theme="dark"] main > section[data-tone] { background: linear-gradient(to bottom, var(--tone-from) 0%, var(--tone-from) 45%, var(--tone-to, var(--tone-from)) 100%); }
[data-theme="dark"] main > section[data-tone="olive"] { --tone-from: var(--tone-olive); }
[data-theme="dark"] main > section[data-tone="gunmetal"] { --tone-from: var(--tone-gunmetal); }
[data-theme="dark"] main > section[data-tone="navy"] { --tone-from: var(--tone-navy); }
[data-theme="dark"] .branches { background: var(--tone-gunmetal); }

/* Visitor counter, Home log-in row, form errors, spam trap */
.visit-count { font-size: 18px; margin: 0 0 12px; }
.hero-login { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.hero-login a:not(.btn) { min-height: 44px; display: inline-flex; align-items: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--red, #b3261e); font-weight: 600; }

/* Sign-in pages */
.notice { background: #FFF6DC; border: 1.5px solid var(--gold); border-radius: 4px; padding: 14px 16px; margin: 0 0 20px; font-weight: 600; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; text-align: center; margin: 0; }
[data-skip][hidden] { display: none; }
.auth-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--navy-800); }
[data-theme="dark"] .auth-links a { color: #FFFFFF; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.auth-links a.btn, [data-theme="dark"] .auth-links a.btn { text-decoration: none; min-height: 48px; padding: 10px 20px; font-size: 16px; }
.auth-links a.btn-ghost-dark { color: var(--navy-800); }
[data-theme="dark"] .auth-links a.btn-ghost-dark { color: #FFFFFF; }
.auth-links a.btn-ghost-dark:hover { color: #FFFFFF; }
[data-theme="dark"] .form-error { color: #FFC9C4; }

/* Wide screens: logo hard left, page links next to it, buttons and dark mode hard right. */
@media (min-width: 901px) {
  .site-header .container { max-width: none; padding: 0 32px; }
  .nav { flex: 1; margin-left: 32px; }
  .nav > :not(.btn):not(.theme-toggle) + .btn, .nav > .btn[hidden] + .btn { margin-left: auto; }
  .nav > :not(.btn):not(.theme-toggle):not(.nav-pair) + .nav-pair { margin-left: auto; }
}

/* garage: Kurt copy */
/* The vehicle tiles sit on a navy section, so use the smoky glass the other navy-section cards use (white headings were landing on pale glass). */
.on-dark .vehicles li { background: var(--glass-dark); border-color: var(--glass-dark-line); box-shadow: none; }
.on-dark .vehicles p { color: var(--on-navy-2); }

/* Photo heroes (Kurt's layout): the photo sits behind the words under an even navy tint (strong enough
   for small text anywhere across the full width), and the bottom dissolves into the page below. */
.hero--photo {
  --hero-tint: linear-gradient(rgba(11,20,34,.84), rgba(11,20,34,.78) 70%, rgba(11,20,34,.8));
  background:
    linear-gradient(to bottom, rgba(241,243,245,0) calc(100% - 72px), var(--ivory) 100%),
    var(--hero-tint),
    var(--hero-bg) center / cover no-repeat,
    var(--navy-800);
}
@media (max-width: 900px) {
  .hero--photo { background:
    linear-gradient(to bottom, rgba(241,243,245,0) calc(100% - 48px), var(--ivory) 100%),
    var(--hero-tint),
    var(--hero-bg) center / cover no-repeat,
    var(--navy-800); }
}
[data-theme="dark"] main > section.hero--photo[data-tone] {
  background:
    linear-gradient(to bottom, rgba(15,23,42,0) 55%, var(--tone-to, var(--tone-navy)) 100%),
    var(--hero-tint),
    var(--hero-bg) center / cover no-repeat,
    var(--tone-navy);
}
/* Photo heroes use the full width: no empty side column; paragraphs stay a readable length. */
.hero--photo .hero-grid { grid-template-columns: minmax(0, 1fr); }
.hero--photo .lead, .hero--photo .stack-lg > p, .hero--photo .stack > p { max-width: 900px !important; }
/* Home hero: centred and wider than the other photo heroes. */
.hero--home { --hero-tint: linear-gradient(rgba(11,20,34,.66), rgba(11,20,34,.58) 70%, rgba(11,20,34,.62)); }
.hero--home .stack-lg { align-items: center; text-align: center; max-width: 1080px; margin-inline: auto; }
.hero--home .stack-lg > p, .hero--home .lead { max-width: 1040px !important; text-wrap: pretty; }
.hero--home .hero-login, .hero--home .btn-row, .hero--home .hero-tagline { justify-content: center; }

/* Mission stat numbers like "1 of 50: MA" stay on one line. */
.counter strong { white-space: nowrap; font-size: min(80px, 14vw); }

/* Photos fill their box (no tint bands above and below when the box is taller than the photo). */
.photo--img img { height: auto; align-self: stretch; }

/* Text that wraps around a photo (Mission "bridge", Forts welcome). */
.wrap-photo { display: flow-root; }
.wrap-photo > .photo { width: min(46%, 540px); margin-bottom: 24px; }
.wrap-photo.wrap-right > .photo { float: right; margin-left: 40px; aspect-ratio: 3 / 2; }
.wrap-photo.wrap-left > .photo { float: left; margin-right: 40px; }
.wrap-photo > .photo--tall { min-height: 0; aspect-ratio: 4 / 5; }
.wrap-photo > .stack-lg, .wrap-photo .prose { display: block; }
.wrap-photo > .stack-lg > * + *, .wrap-photo .prose > * + * { margin-top: 18px; }
@media (max-width: 720px) {
  .wrap-photo > .photo { float: none; width: 100%; margin: 0 0 28px; }
}

/* Insignia: the patch clipped to a circle that hugs its own edge, inside a gold ring with a small gap. */
.patch-ring { width: 100%; max-width: 520px; justify-self: center; aspect-ratio: 1; border-radius: 50%; padding: clamp(8px, 1.6vw, 12px); border: 3px solid var(--gold); box-shadow: var(--shadow-2); }
.patch-clip { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; }
.patch-clip img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }

/* Event tags: two equal columns, so four tags sit as two tidy rows. */
.event .chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0; list-style: none; }
.event .chip { text-align: center; }
@media (max-width: 400px) { .event .chip { padding: 8px 6px; font-size: 14px; } }
.event .btn-row { justify-content: center; }

/* Footer on phones: link lists hidden, logo on its own row, then the pledge and Get involved side by side, all centred. */
.footer-pledge { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 640px) {
  .footer-grid, .footer-grid--members { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; text-align: center; }
  .footer-grid > .footer-pledge { grid-column: auto; }
  .footer-grid > nav { display: none; }
  .footer-grid > .col:first-child { display: contents; }
  .footer-logo { grid-column: 1 / -1; justify-self: center; margin-bottom: 0; }
  .footer-grid .col, .footer-pledge { align-items: center; }
  .footer-pledge p { max-width: none !important; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
}

/* Smooth page changes: the browser cross-fades between pages (supported browsers only; others change pages
   instantly as before). The header stays put so only the page content moves. Off for reduced motion. */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: uvmp-page-out .22s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: uvmp-page-in .38s cubic-bezier(.2, .7, .2, 1) .06s both; }
@keyframes uvmp-page-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes uvmp-page-in { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* Phones and tablets: event addresses wrap instead of running off the card; footer links are full-size tap targets. */
@media (max-width: 640px) { .event-facts .nowrap { white-space: normal; } }
@media (max-width: 900px) {
  .footer-grid a { min-height: 44px; display: inline-flex; align-items: center; }
  .footer-grid .col, .footer-grid nav { gap: 0; }
  .footer-grid .footer-pledge { gap: 12px; }
}

/* Sections added from the dashboard (src/_includes/blocks) */
.block-narrow { max-width: 820px; }
.block-photo-text.photo-left > .photo { order: -1; }
.block-photo-text .photo img, .block-photo img { width: 100%; height: auto; }
.quote-by { font-weight: 700; color: var(--muted); margin: 0; }

/* ---- Home hero motion and button effects ----
   The photo drifts slowly, the hero lines rise in one after another, the visitor number rolls like an
   odometer, a scroll cue bobs, and buttons shine and press. Everything is off for reduced motion. */
.hero--home { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-800); }
.hero--home::before { content: ""; position: absolute; inset: -4%; z-index: -2; background: var(--hero-bg) center / cover no-repeat; }
.hero--home::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(241,243,245,0) calc(100% - 72px), var(--ivory) 100%), var(--hero-tint); }
[data-theme="dark"] main > section.hero--home[data-tone] { background: var(--tone-navy); }
[data-theme="dark"] main > section.hero--home::after { background: linear-gradient(to bottom, rgba(15,23,42,0) 55%, var(--tone-to, var(--tone-navy)) 100%), var(--hero-tint); }
@media (max-width: 900px) {
  .hero--home::after { background: linear-gradient(to bottom, rgba(241,243,245,0) calc(100% - 48px), var(--ivory) 100%), var(--hero-tint); }
}

.visit-count .odo { display: inline-flex; gap: 3px; vertical-align: -0.28em; margin-left: 4px; }
.odo-d { display: inline-block; width: 1.05em; height: 1.45em; overflow: hidden; border-radius: 4px; background: rgba(8,12,18,.55); border: 1px solid rgba(245,197,24,.35); color: var(--gold); font-variant-numeric: tabular-nums; text-align: center; }
.odo-col { display: flex; flex-direction: column; transition: transform 1.6s cubic-bezier(.2,.8,.2,1); }
.odo-col span { display: block; height: 1.45em; line-height: 1.45em; }
.odo-sep { color: var(--gold); padding: 0 1px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.hero--home .container { position: relative; }

/* Buttons: a light sweep across solid buttons on hover, a small press on click, outline buttons lift. */
.btn { position: relative; overflow: hidden; }
.btn-gold::after, .btn-navy::after, .btn-white::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.5) 50%, transparent 65%); transform: translateX(-130%); }
.btn-ghost-light:hover, .btn-ghost-dark:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.97); }

@media (prefers-reduced-motion: no-preference) {
  .hero--home::before { animation: uvmp-drift 30s ease-in-out infinite alternate; will-change: transform; }
  .hero--home .stack-lg > * { animation: uvmp-rise .8s cubic-bezier(.2,.7,.2,1) both; }
  .hero--home .stack-lg > :nth-child(1) { animation-delay: .05s; }
  .hero--home .stack-lg > :nth-child(2) { animation-delay: .15s; }
  .hero--home .stack-lg > :nth-child(3) { animation-delay: .25s; }
  .hero--home .stack-lg > :nth-child(4) { animation-delay: .35s; }
  .hero--home .stack-lg > :nth-child(5) { animation-delay: .45s; animation-name: uvmp-stamp; animation-duration: .9s; }
  .hero--home .stack-lg > :nth-child(6) { animation-delay: .6s; }
  .hero--home .stack-lg > :nth-child(7) { animation-delay: .7s; }
  .hero--home .stack-lg > :nth-child(8) { animation-delay: .8s; }
  .hero--home .stack-lg > :nth-child(9) { animation-delay: .9s; }
  .hero--home .btn-row .btn-gold { animation: uvmp-glow 3.2s ease-in-out 2s infinite; }
  .btn-gold::after, .btn-navy::after, .btn-white::after { transition: transform .7s cubic-bezier(.2,.7,.2,1); }
  .btn-gold:hover::after, .btn-navy:hover::after, .btn-white:hover::after { transform: translateX(130%); }
}
@keyframes uvmp-drift { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.08) translate(-1.5%, -1%); } }
@keyframes uvmp-rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes uvmp-stamp { from { opacity: 0; transform: translateY(26px) scale(.97); } 60% { opacity: 1; } }
@keyframes uvmp-glow { 0%, 100% { box-shadow: 0 6px 16px -8px rgba(11,20,34,.45); } 50% { box-shadow: 0 0 0 6px rgba(245,197,24,.18), 0 10px 26px -8px rgba(245,197,24,.55); } }

/* Home: welcome words under the top photo (11/17) */
.hero-login { font-size: 17px; justify-content: center; gap: 6px 10px; color: rgba(255,255,255,.88); }
.hero-login a { color: #FFFFFF; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.hero-login a:hover { color: var(--gold); }
.hero--home .visit-count { margin: 0; }
.home-intro .container { max-width: 940px; text-align: center; display: flex; flex-direction: column; gap: 22px; }
.home-intro-q { margin: 0; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.home-intro-lead { margin: 0; font-family: var(--display); font-stretch: 80%; font-weight: 600; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.3; color: var(--ink); text-wrap: pretty; }
[data-theme="dark"] .home-intro-lead { color: #FFFFFF; }
@media (max-width: 720px) { .hero-login { flex-direction: column; } .hero-login .dot { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero--home .stack-lg > :nth-child(5) { animation-name: uvmp-rise; animation-duration: .8s; }
  .hero--home .stack-lg > .h1-home { animation-name: uvmp-stamp; animation-duration: .9s; }
}

/* ---------- Footer pieces and the Studio3C credit ---------- */
.footer-badge { font-weight: 700; color: #FFFFFF; margin-bottom: 16px; }
.footer-quote { max-width: 380px; }
.footer-unit { font-size: 14px; color: var(--on-navy-3); }
.footer-grid > .footer-contact { display: none; }
.footer-mottos { font-style: italic; }
.footer-mottos > span { display: block; }
.footer-credit { color: var(--on-navy-2); text-decoration: none; }
.footer-credit:hover { color: var(--gold); }
.note { font-size: 15px; }

/* ---------- Dropdown cards (details[data-fold]): open cards on wider screens, tap-to-open on phones ---------- */
.fold > summary { display: block; list-style: none; cursor: default; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary ~ * { margin-top: var(--fold-gap, 16px); }
.vehicles .fold { --fold-gap: 8px; }
.card-row .fold { --fold-gap: 10px; }

/* Members home: page tiles */
.tile-title { font-size: 30px; }

/* Odd last branch card sits centred under the pair above it */
@media (max-width: 1080px) {
  .branch-grid > li:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc((100% - 20px) / 2); }
}
@media (max-width: 640px) {
  .branch-grid > li:last-child:nth-child(odd) { width: calc((100% - 12px) / 2); }
}

/* ---------- Phone pass (11/17): one column, tight spacing, readable text, centred footer ---------- */
@media (max-width: 640px) {
  /* Spacing: a modest hero and tighter bands */
  .hero { padding: 36px 0 48px; }
  .page-hero { padding: 40px 0 48px; }
  .cta-band { padding: 44px 0; }
  .section-head { margin-bottom: 28px; gap: 20px; }
  .card { padding: 24px 20px; }
  .card-row { padding: 24px 20px; }
  .grid { gap: 16px; }

  /* Text never under 16px for reading copy; small labels never under 14px */
  .field, .checkbox, .check-tile, .note, .pledge-side .fine, .figure figcaption, .steps li > span:last-child,
  .vehicles p, .branch-grid p, .checks, .chip, .topbar, .photo { font-size: 16px; }
  .staff .role, .choice .rank, .choice .kicker, .badge-sm, .status, .timeline .tag, .footer-title, .badge, .event-facts dt { font-size: 14px; }
  .faq summary { font-size: 22px; gap: 16px; }
  .event .chip { font-size: 15px; padding: 8px 6px; }

  /* Links inside sentences get a taller tap area without moving the text */
  main p a:not(.btn), main li a:not(.btn), main dd a:not(.btn), main blockquote footer a, .form-thanks a { padding-block: 12px; }

  /* Calls to action: centred */
  .cta-band .container { align-items: center; text-align: center; gap: 24px; }
  .cta-band .stack { align-items: center; }

  /* Donate amounts: one per row, amount on the right of its rank */
  .tiers .choice { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; }
  .tiers .choice .desc { grid-column: 1 / -1; }

  /* Dropdown cards: closed until tapped, with a gold chevron */
  .fold > summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
  .fold > summary::after { content: ""; flex-shrink: 0; width: 10px; height: 10px; margin-right: 4px; border-right: 2.5px solid var(--gold); border-bottom: 2.5px solid var(--gold); transform: translateY(-3px) rotate(45deg); transition: transform .2s ease; }
  .fold[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
  .vehicles { gap: 10px; }
  .vehicles li { padding: 10px 18px; }
  .grid > .card:has(> .fold), .card-row:has(.fold) { padding: 10px 20px; }
  .vehicles .fold, .card .fold { --fold-gap: 4px; }
  .fold > summary ~ * { padding-bottom: 10px; }

  /* Command Staff: compact rows, photo on the left */
  .staff { gap: 12px; }
  .staff li { flex-direction: row; align-items: center; }
  .staff .portrait { width: 104px; height: 104px; flex-shrink: 0; aspect-ratio: auto; }
  .staff .portrait .icon { width: 44px; height: 44px; }
  .staff .who { flex: 1 1 auto; min-width: 0; padding: 12px 16px; }
  .staff { grid-auto-rows: 1fr; }
  .staff h3 { font-size: 24px; }

  /* Members home: page tiles as compact rows with an arrow */
  .link-tiles { gap: 10px; }
  .link-tiles .card { padding: 14px 20px; min-height: 64px; flex-direction: row; align-items: center; justify-content: space-between; }
  .link-tiles .card::after { content: ""; flex-shrink: 0; width: 10px; height: 10px; border-top: 2.5px solid var(--gold); border-right: 2.5px solid var(--gold); transform: rotate(45deg); }
  .tile-title { font-size: 26px; }

  /* Footer: centred and compact. Logo, pledge, then Get Involved and Contact side by side, credit last. */
  .site-footer { padding: 36px 0 24px; }
  .footer-grid, .footer-grid--members { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
  .footer-logo { width: 130px; }
  .footer-grid > .footer-pledge { grid-column: 1 / -1; gap: 8px; }
  .footer-badge { margin-bottom: 4px; }
  .footer-unit { font-size: 16px; }
  .footer-grid .footer-direct { display: none; }
  .footer-grid > .footer-contact { display: flex; }
  .footer-grid .footer-contact a { display: block; min-height: 44px; padding: 10px 0; line-height: 24px; }
  .footer-grid a { min-width: 44px; justify-content: center; }
  .footer-bottom { gap: 10px; margin-top: 20px; padding-top: 20px; font-size: 16px; color: var(--on-navy-2); }
  .footer-bottom > span { text-wrap: balance; }
  .footer-credit { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (max-width: 640px) and (prefers-reduced-motion: no-preference) {
  .fold[open] > summary ~ * { animation: uvmp-fold-in .25s ease both; }
}
@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  .fold > summary::after { transition: none; }
}
@keyframes uvmp-fold-in { from { opacity: 0; } }

/* No lone word on a heading, button or label line */
summary, legend, .btn, .eyebrow, .hero-tagline, .footer-title, .check-grid li, .choice .desc, dt, label { text-wrap: balance; }
@media (min-width: 641px) { .footer-credit { margin-left: auto; } }

/* Phone menu: the current page link keeps a full-size tap area, and a long menu scrolls inside itself
   so its last items are never stuck below the screen. */
@media (max-width: 900px) {
  .nav a[aria-current]:not(.btn) { padding: 14px 0; }
  .nav { max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); overflow-y: auto; overscroll-behavior: contain; }
}
@media (max-width: 640px) {
  .nav { max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); }
}
/* Mid-size screens: slimmer menu buttons so the members menu (with Dashboard) fits on one row. */
@media (min-width: 901px) and (max-width: 1080px) {
  .nav .btn { padding: 10px 13px; }
  .nav { gap: 14px; }
  .theme-toggle { padding: 0 10px; }
  .theme-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
/* Join with no Chit Counter: the form sits centred at a comfortable width. */
.split--solo > .form-card { max-width: 880px; width: 100%; margin-inline: auto; }
/* Members News posts */
.news-post { padding: 32px; }
.news-photo { width: calc(100% + 64px); max-width: none; margin: -32px -32px 8px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r, 6px) var(--r, 6px) 0 0; display: block; }
@media (max-width: 640px) { .news-post { padding: 24px 20px; } .news-photo { width: calc(100% + 40px); margin: -24px -20px 6px; } }
/* Buttons always keep their words on one line. */
.btn { white-space: nowrap; }
.cta-band .btn, .btn-row .btn { flex: none; }

/* ---------- Polish pass (11/18) ---------- */
/* Phones: 16px side gutters so cards and titles get the full width. */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .nav { padding-left: 16px; padding-right: 16px; }
}
/* Space between a section title and what follows it, the same on every page. */
.section-intro { margin-bottom: 48px; }
@media (max-width: 640px) { .section-intro { margin-bottom: 28px; } }
/* Text on navy sections stays bright enough to read. */
.on-dark .muted { color: var(--on-navy-2); }
.on-dark .card p { color: var(--on-navy); }
.on-dark .link-arrow { color: var(--gold); }
/* Notices on the log-in pages are readable in dark mode too. */
[data-theme="dark"] .notice { background: var(--gold-soft); color: #FFFFFF; }
/* Log-in and account pages: even space between the title, the form and anything under it. */
.auth-page > * + * { margin-top: 24px; }
.auth-page > .notice { margin-bottom: 0; }
@media (max-width: 400px) { .auth-links a.btn { white-space: normal; text-align: center; } }
/* Links in a quote's byline get a full-size tap area on phones. */
@media (max-width: 640px) { main blockquote footer a { display: inline-block; min-height: 44px; line-height: 44px; padding-block: 0; } }
/* Command Staff: an odd last card sits centred under the pair above it, like the branch cards. */
@media (min-width: 641px) and (max-width: 900px) {
  .staff > li:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc((100% - 24px) / 2); }
}
/* Members News and Resources: a comfortable reading width. */
.members-feed { max-width: 880px; }
.news-post h2, .members-feed > .card > h2 { font-size: clamp(28px, 3vw, 36px); }
/* Roll Call: names as a tidy list in even columns. */
.roll-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.roll-list > li { padding: 14px 18px; background: var(--glass-light); border: 1px solid var(--glass-light-line); border-radius: var(--r-sm); font-weight: 600; color: var(--ink); }
.roll-list > li.muted { grid-column: 1 / -1; background: none; border: 0; padding: 0; font-weight: 400; color: var(--muted); }
/* Calm motion: no lifts, presses or pulsing when reduced motion is on. */
@media (prefers-reduced-motion: reduce) {
  .btn-ghost-light:hover, .btn-ghost-dark:hover, .btn:active { transform: none; }
  .odo-col, .theme-toggle, .choice, .sub-toggle .icon, .faq summary::after { transition: none; }
}
/* Keyboard focus ring: gold on navy, navy on light backgrounds, white on red bands, so it always shows. */
:root:not([data-theme="dark"]) main :focus-visible { outline-color: var(--navy-800); }
:root:not([data-theme="dark"]) main .on-dark :focus-visible, :root:not([data-theme="dark"]) main .pledge-side :focus-visible,
:root:not([data-theme="dark"]) main .event-head :focus-visible { outline-color: var(--gold); }
.on-red :focus-visible { outline-color: #FFFFFF; }

/* Show/hide eye on password boxes */
.pw-box { position: relative; display: block; }
.field .pw-box input { padding-right: 52px; }
.pw-box input::-ms-reveal { display: none; }
.pw-eye { position: absolute; top: 50%; right: 2px; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: var(--ink); opacity: .75; cursor: pointer; border-radius: 4px; }
.pw-eye:hover { opacity: 1; }
[data-theme="dark"] .pw-eye { color: #FFFFFF; }

/* ---------- Launch fixes (11/18) ---------- */
/* Light mode only: gold on a light background is too faint, so links turn navy on hover there.
   Navy, red and dark-mode sections keep their colours. */
:root:not([data-theme="dark"]) main a:not(.btn):hover { color: var(--navy-700); }
:root:not([data-theme="dark"]) main .on-dark a:not(.btn):hover, :root:not([data-theme="dark"]) main .pledge-side a:not(.btn):hover { color: var(--gold); }
:root:not([data-theme="dark"]) main .on-red a:not(.btn):hover { color: #FFFFFF; }

/* Menu arrow buttons: a full 44px tap area on tablets and phones. */
.sub-toggle { min-width: 44px; min-height: 44px; }

/* Members menu: "More" is a dropdown on wide screens and folds open inside the menu on smaller ones. */
.more-toggle { width: auto; gap: 6px; padding: 0 6px; font-weight: 600; font-size: 16px; color: inherit; white-space: nowrap; }
.nav-more.is-current > .more-toggle { color: var(--gold); }
.nav-more .sub { left: auto; right: -18px; }
.nav-more.open::after, .nav-more:hover::after { left: auto; right: -18px; }

/* Members menu folds into the menu button below 1280px: it has more links than the public one. */
@media (min-width: 901px) and (max-width: 1280px) {
  .site-header--members .nav-toggle { display: inline-flex; }
  .site-header--members .nav { display: none; position: absolute; top: 100px; left: 0; right: 0; flex: none; margin-left: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 32px 24px; background: var(--navy-900); border-bottom: 1px solid rgba(255,255,255,.1); box-shadow: 0 24px 40px -12px rgba(11,20,34,.55); max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); overflow-y: auto; overscroll-behavior: contain; }
  .site-header--members .nav.open { display: flex; }
  .site-header--members .nav > * { margin-left: 0 !important; }
  .site-header--members .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .site-header--members .nav a[aria-current]:not(.btn) { box-shadow: none; }
  .site-header--members .nav .btn { margin-top: 12px; min-height: 52px; padding: 14px 26px; }
  .site-header--members .theme-toggle { margin-top: 12px; justify-content: flex-start; padding: 0 16px; }
  .site-header--members .theme-label { position: static; width: auto; height: auto; clip: auto; }
}
@media (max-width: 1280px) {
  .site-header--members .nav-more { display: block; }
  .site-header--members .nav-more::after { display: none; }
  .site-header--members .more-toggle { display: flex; width: 100%; justify-content: space-between; min-height: 48px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; }
  .site-header--members .nav-more .sub, .site-header--members .nav-more:hover .sub { display: none; position: static; min-width: 0; margin: 0; padding: 0 0 0 18px; background: none; border: 0; border-radius: 0; box-shadow: none; }
  .site-header--members .nav-more.open .sub { display: block; }
  .site-header--members .nav .sub a, .site-header--members .nav .sub a[aria-current] { padding: 12px 0; font-weight: 500; font-size: 15px; }
  .site-header--members .nav .sub a:not([aria-current]) { color: var(--on-navy-2); }
  .site-header--members .nav .sub a:hover { background: none; }
  .site-header--members .nav-more:hover .sub-toggle .icon { transform: none; }
  .site-header--members .nav-more.open .sub-toggle .icon { transform: rotate(180deg); }
}

/* Forms: the "* Required" note, the DD-214 points as a real list, a quiet note inside a legend. */
.form-required { font-size: 15px; margin: 0; }
.dd-help ul { list-style: disc; padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; }
.dd-help p + p { margin-top: 8px; }
.legend-note { font-family: var(--body); font-stretch: 100%; font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.form-thanks a { color: inherit; font-weight: 700; }

/* Founder page: one line under the staff cards when posts are still open. */
.staff-more { margin-top: 24px; text-align: center; font-size: 18px; }

/* Privacy Policy page and its footer link. */
.privacy h2 { margin-top: 16px; }
.footer-privacy { color: var(--on-navy-3); }
.footer-privacy:hover { color: var(--gold); }

/* Members are already signed in: no Join buttons inside the members area */
.members-area a[href^="/join"] { display: none; }
