/* NTEU Chapter 8 member portal
   Built on U.S. Web Design System patterns (type scale, spacing, 4px radius, focus rings, form fields).
   Palette from the chapter: Egyptian Blue #03203D, Stone Blue #639CC5, Scarlet Red #EB2F33 and white.
   Egyptian Blue carries the header, footer and archive panels; scarlet is only ever a rule or a bar. */

:root {
  --paper: #ffffff;
  --paper-2: #f1f5f9;
  --ink: #03203D;
  --text: #1a2533;
  --muted: #4b5868;
  --rule: #d3dce6;
  --brass: #EB2F33;
  --focus: #2b6896;
  --ok: #1f6b45;
  --panel: #03203D;
  --panel-ink: #ffffff;
  --panel-muted: #b9cfe2;
  --logo-filter: none;
  --label: #2b6896;
  --link: #1d5b8c;
  --field: #6b7684;
  --band: #03203D;
  --band-ink: #ffffff;
  --band-muted: #b9cfe2;
  --stone: #639CC5;
  --scarlet: #EB2F33;
  --serif: "Merriweather", Georgia, Cambria, "Times New Roman", serif;
  --sans: "Public Sans", "Source Sans Pro", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.6rem + 3.2vw, 3.6rem);
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --measure: 66ch;
  --wide: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #021629;
    --paper-2: #062340;
    --ink: #e9f1f8;
    --text: #e3eaf2;
    --muted: #a7b7c8;
    --rule: #1d3c5c;
    --brass: #EB2F33;
    --focus: #8fbde0;
    --ok: #6fc59a;
    --panel: #03203D;
    --panel-ink: #ffffff;
    --panel-muted: #b9cfe2;
    --logo-filter: brightness(0) invert(0.92);
    --label: #8fbde0;
    --link: #8fbde0;
    --field: #7d8fa3;
    --band: #03203D;
    --band-ink: #ffffff;
    --band-muted: #b9cfe2;
    --stone: #639CC5;
    --scarlet: #EB2F33;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #021629;
  --paper-2: #062340;
  --ink: #e9f1f8;
  --text: #e3eaf2;
  --muted: #a7b7c8;
  --rule: #1d3c5c;
  --brass: #EB2F33;
  --focus: #8fbde0;
  --ok: #6fc59a;
  --panel: #03203D;
  --panel-ink: #ffffff;
  --panel-muted: #b9cfe2;
  --logo-filter: brightness(0) invert(0.92);
  --label: #8fbde0;
  --link: #8fbde0;
  --field: #7d8fa3;
  --band: #03203D;
  --band-ink: #ffffff;
  --band-muted: #b9cfe2;
  --stone: #639CC5;
  --scarlet: #EB2F33;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--step-4); letter-spacing: -0.01em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 600; }
p { margin: 0; max-width: var(--measure); }

.wrap {
  width: 100%;
  max-width: calc(var(--wide) + 40px);
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}
.eyebrow {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}
.lede { font-size: var(--step-1); color: var(--muted); line-height: 1.55; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.stack { display: grid; gap: 1rem; }
.stack-lg { display: grid; gap: 2rem; }

/* Header */
.idbar {
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
  font-size: 0.8rem;
  color: var(--muted);
}
.idbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; padding-block: 0.45rem; }
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.1rem;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-mark {
  flex: none;
  width: 2.6rem; height: 2.6rem;
  border: 1.5px solid var(--ink);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1;
}
.brand-text { display: grid; line-height: 1.2; min-width: 0; }
.brand-name { font-family: var(--serif); font-size: 1.3rem; }
.brand-sub { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }
.nav a { text-decoration: none; font-size: 0.95rem; color: var(--text); padding-block: 0.3rem; border-bottom: 1.5px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ink); color: var(--ink); }
.menu-btn { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.6rem 1.25rem;
  font: 600 0.95rem/1 var(--sans);
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
}
.btn:hover { filter: brightness(1.15); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--paper-2); filter: none; }

@media (max-width: 860px) {
  .menu-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    min-height: 2.75rem; padding: 0.5rem 0.9rem;
    border: 1px solid var(--rule); background: var(--paper); color: var(--ink);
    font: 600 0.9rem var(--sans); cursor: pointer;
  }
  .nav { width: 100%; flex-direction: column; align-items: stretch; gap: 1rem; }
  .nav[data-open="false"] { display: none; }
  .nav ul { flex-direction: column; gap: 0; border-top: 1px solid var(--rule); }
  .nav li a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--rule); }
  .nav a[aria-current="page"] { border-bottom-color: var(--rule); font-weight: 600; }
}

/* Sections */
.section { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.section + .section { border-top: 1px solid var(--rule); }
.band { background: var(--paper-2); }
.section-head { display: grid; gap: 0.75rem; margin-bottom: 2.25rem; max-width: 46rem; }

.hero { padding-block: clamp(3.5rem, 2rem + 6vw, 7rem) clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: end; }
.hero h1 { max-width: 16ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.photo-slot {
  aspect-ratio: 4 / 3;
  max-width: 100%;
  border: 1px solid var(--rule);
  background:
    linear-gradient(135deg, transparent 49.6%, var(--rule) 49.6%, var(--rule) 50.4%, transparent 50.4%),
    var(--paper-2);
  display: grid; place-items: end start;
  padding: 1rem;
}
.photo-slot span { background: var(--paper); border: 1px solid var(--rule); padding: 0.4rem 0.7rem; font-size: 0.8rem; color: var(--muted); }
@media (max-width: 760px) { .hero-grid { grid-template-columns: 1fr; } }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 2.5rem 2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 2.5rem; }
.pillar { display: grid; gap: 0.6rem; align-content: start; padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.pillar p { color: var(--muted); }

.offices { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); border-top: 1px solid var(--rule); }
.offices li { padding: 1rem 0; border-bottom: 1px solid var(--rule); font-family: var(--serif); font-size: var(--step-1); color: var(--ink); }
.offices li small { display: block; font-family: var(--sans); font-size: 0.8rem; color: var(--muted); letter-spacing: 0.04em; }

/* Lists of things */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.rows > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.35rem 1.5rem; padding: 1.2rem 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.rows .meta { font-size: var(--step--1); color: var(--muted); }
.rows .desc { grid-column: 1 / -1; color: var(--muted); font-size: 0.97rem; }
.rows a.title { font-family: var(--serif); font-size: var(--step-1); text-decoration: none; }
.rows a.title:hover { text-decoration: underline; }
.tag { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass); border: 1px solid currentColor; padding: 0.1rem 0.45rem; white-space: nowrap; }
.tag.plain { color: var(--muted); }

.search { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.search input { flex: 1 1 16rem; min-width: 0; }

/* Forms */
label { display: grid; gap: 0.35rem; font-size: 0.92rem; font-weight: 600; color: var(--ink); }
input, select, textarea {
  font: 400 1rem var(--sans);
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-bottom: 1.5px solid var(--muted);
  padding: 0.7rem 0.8rem;
  width: 100%;
  border-radius: 0;
}
textarea { min-height: 8rem; resize: vertical; }
.form { display: grid; gap: 1.1rem; max-width: 40rem; }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1.1rem; }
.hint { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.notice { border-left: 3px solid var(--brass); padding: 0.75rem 1rem; background: var(--paper-2); font-size: 0.95rem; max-width: 44rem; }
.status { font-size: 0.95rem; color: var(--ok); min-height: 1.5em; }

/* Quote */
.quote { display: grid; gap: 1.25rem; max-width: 48rem; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem); line-height: 1.45; color: var(--ink); }
.quote blockquote p { max-width: none; }
.quote blockquote p + p { margin-top: 1rem; }
.quote figcaption { font-size: 0.95rem; color: var(--muted); }
.quote figcaption strong { color: var(--text); display: block; }

/* Tables */
.table-wrap { overflow-x: auto; border-top: 2px solid var(--ink); }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 0.97rem; }
th, td { text-align: left; padding: 0.85rem 0.75rem 0.85rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Gate */
.gate { min-height: 60vh; display: grid; place-items: center; padding-block: 4rem; }
.gate-card { max-width: 40rem; display: grid; gap: 1.25rem; border-top: 3px solid var(--brass); padding-top: 1.75rem; }
.gate-card .actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.5rem; }

/* Footer */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--rule); font-size: 0.9rem; color: var(--muted); }
.site-footer .wrap { padding-block: 2.5rem; display: grid; gap: 1.5rem; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1.5rem; }
.footer-cols h2 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); margin-bottom: 0.6rem; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.disclaimer { border-top: 1px solid var(--rule); padding-top: 1.25rem; max-width: none; }

.members-flag { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--muted); }
.members-flag::before { content: ""; width: 0.55rem; height: 0.55rem; border: 1.5px solid var(--brass); border-radius: 50%; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Added for pages */
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; z-index: 20; }
.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); top: 0.5rem; }
.subnav { border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; column-gap: 1.4rem; }
.subnav a { display: block; padding: 0.85rem 0; font-size: 0.92rem; text-decoration: none; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.page-head { padding-block: clamp(2.5rem, 2rem + 3vw, 4rem) clamp(1.5rem, 1rem + 2vw, 2.5rem); display: grid; gap: 0.9rem; }
.page-head p { color: var(--muted); font-size: var(--step-1); }
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 2rem; }
.people li { display: grid; gap: 0.3rem; padding-top: 1.1rem; border-top: 1px solid var(--rule); }
.people .name { font-family: var(--serif); font-size: var(--step-1); color: var(--ink); }
.people .role { color: var(--muted); font-size: 0.95rem; }
.empty { border: 1px dashed var(--rule); padding: 1.5rem; color: var(--muted); max-width: 44rem; }
.state-block + .state-block { margin-top: 3rem; }
.state-block h3 { font-size: var(--step-2); font-weight: 400; margin-bottom: 1rem; }
td .who { font-family: var(--serif); font-size: 1.08rem; color: var(--ink); display: block; }
td .chamber { font-size: 0.82rem; color: var(--muted); }
td ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
td .city { font-weight: 600; color: var(--text); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.ext::after { content: " \2197"; font-size: 0.85em; }
.hide { display: none !important; }
.rows .title { font-family: var(--serif); font-size: var(--step-1); color: var(--ink); min-width: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.nav a.btn, .nav a.btn:hover { color: var(--paper); border-bottom: 1.5px solid var(--ink); padding: 0.6rem 1.25rem; }
.stack, .stack-lg { align-content: start; }
.hero h1 { max-width: 19ch; }
.page-head p.eyebrow, .pillar p.eyebrow { color: var(--brass); font-size: var(--step--1); }
figure.quote { margin: 0; }
@media (max-width: 640px) {
  .dir-table .table-wrap { overflow: visible; }
  .dir-table table { min-width: 0; }
  .dir-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .dir-table table, .dir-table tbody, .dir-table tr, .dir-table td { display: block; width: 100%; }
  .dir-table tr { padding-block: 1.1rem; border-bottom: 1px solid var(--rule); }
  .dir-table td { border: 0; padding: 0.35rem 0; }
  .dir-table td[data-label]::before { content: attr(data-label); display: block; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0.6rem 0 0.25rem; }
}
.nav a.btn.ghost, .nav a.btn.ghost:hover { color: var(--ink); background: transparent; }
@media (max-width: 760px) { .photo-slot { aspect-ratio: 16 / 9; } }

/* Chapter logo */
.brand { gap: 1rem; }
.brand-logo { display: block; height: 3.4rem; width: auto; filter: var(--logo-filter); }
.brand .brand-sub { padding-left: 1rem; border-left: 1px solid var(--rule); line-height: 1.35; max-width: 9rem; }
@media (max-width: 420px) { .brand-logo { height: 2.9rem; } .brand .brand-sub { display: none; } }
.footer-logo { display: block; width: 8.5rem; height: auto; margin-bottom: 0.9rem; filter: var(--logo-filter); }

/* Hero with slideshow */
.hero-stack { display: grid; gap: clamp(2rem, 3vw, 3rem); }
.hero .hero-grid { align-items: end; }
.hero .hero-grid .actions { margin-top: 1.25rem; }

.showcase { display: grid; gap: 0; border: 1px solid var(--rule); background: var(--paper); }
.slides { position: relative; aspect-ratio: 2 / 1; max-width: 100%; overflow: hidden; background: var(--panel); }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity 1.1s ease, visibility 0s linear 1.1s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.1s ease, visibility 0s; }
.slide > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-archive {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: minmax(0, 1fr);
  align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1.25rem, 4vw, 3.5rem);
  background: var(--panel); color: var(--panel-ink);
}
.archive-quote { margin: 0; display: grid; gap: 1rem; max-width: 30rem; }
.archive-quote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 0.8rem + 1.4vw, 1.9rem); line-height: 1.35; color: var(--panel-ink); max-width: none; text-wrap: balance; }
.archive-quote footer { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--panel-muted); }
.archive-print { height: 100%; min-height: 0; display: grid; place-items: center; }
.archive-print img { height: 100%; width: auto; max-width: 100%; object-fit: contain; border: 6px solid #fff; box-shadow: 0 10px 30px rgb(0 0 0 / 0.35); background: #fff; }

.slide-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1.5rem; padding: 0.75rem 1rem; border-top: 1px solid var(--rule); }
.slide-caption { margin: 0; font-size: var(--step--1); color: var(--text); min-width: 0; flex: 1 1 18rem; max-width: none; }
.slide-credit { color: var(--muted); }
.slide-controls { display: flex; align-items: center; gap: 0.5rem; flex: none; }
.icon-btn, .slide-pause {
  font: 600 0.9rem var(--sans); min-height: 2.5rem; min-width: 2.5rem; padding: 0 0.75rem;
  border: 1px solid var(--rule); background: var(--paper); color: var(--ink); cursor: pointer;
}
.icon-btn span { font-size: 1.35rem; line-height: 1; }
.icon-btn:hover, .slide-pause:hover { border-color: var(--ink); }
.icon-btn:focus-visible, .slide-pause:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.slide-count { font-size: var(--step--1); color: var(--muted); min-width: 4.2rem; text-align: center; font-variant-numeric: tabular-nums; }

@media (max-width: 960px) { .slides { aspect-ratio: 16 / 10; } }
@media (max-width: 760px) {
  .slides { aspect-ratio: 4 / 3; }
  .slide-archive { grid-template-columns: 1fr; padding: 1rem; }
  .archive-quote { display: none; }
}
@media (prefers-reduced-motion: reduce) { .slide, .slide.is-active { transition: none !important; } }
.hero:has(.showcase) { padding-block: clamp(2rem, 1rem + 3vw, 3.5rem) clamp(2.5rem, 2rem + 3vw, 4rem); }
.brand-logo { height: 3.7rem; }


/* ---------- Red, white and blue layer (USWDS patterns) ---------- */
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2 { font-weight: 300; line-height: 1.22; letter-spacing: 0; }
h1 { font-size: clamp(2rem, 1.45rem + 2.4vw, 3.05rem); }
h2 { font-size: clamp(1.55rem, 1.25rem + 1.4vw, 2.2rem); }
h3 { font-weight: 700; font-size: 1.15rem; }
body { line-height: 1.62; }
.eyebrow, .page-head p.eyebrow, .pillar p.eyebrow {
  text-transform: none; letter-spacing: 0; font-weight: 700; font-size: 0.95rem; color: var(--label);
}
.tag { color: var(--label); text-transform: none; letter-spacing: 0; font-size: 0.78rem; border-radius: 2px; }
th, .dir-table td[data-label]::before { text-transform: none; letter-spacing: 0; font-size: 0.85rem; }
.btn { border-radius: 4px; letter-spacing: 0; font-weight: 700; }
.btn:hover { filter: none; background: var(--link); border-color: var(--link); }
.btn.ghost:hover { background: var(--paper-2); color: var(--ink); border-color: var(--ink); }
input, select, textarea { border-radius: 4px; border: 1px solid var(--field); }
.notice { border-left-width: 4px; }
.gate-card { border-top-width: 4px; }

/* Header band */
.idbar { background: var(--paper-2); }
.site-header { background: var(--band); border-bottom: 4px solid var(--scarlet); color: var(--band-ink); }
.site-header .brand { color: var(--band-ink); }
.site-header .brand-logo { filter: brightness(0) invert(1); }
.site-header .brand .brand-sub { color: var(--band-muted); border-left-color: rgb(255 255 255 / 0.28); text-transform: none; letter-spacing: 0; font-size: 0.9rem; }
.site-header .nav a { color: var(--band-ink); }
.site-header .nav a:hover, .site-header .nav a[aria-current="page"] { color: var(--band-ink); border-bottom-color: var(--stone); }
.site-header .nav a.btn, .site-header .nav a.btn:hover { background: #ffffff; color: var(--band); border: 1.5px solid #ffffff; border-radius: 4px; }
.site-header .nav a.btn:hover { background: var(--paper-2); }
.site-header .nav a.btn.ghost, .site-header .nav a.btn.ghost:hover { background: transparent; color: var(--band-ink); border-color: rgb(255 255 255 / 0.7); }
.site-header .menu-btn { background: transparent; color: var(--band-ink); border-color: rgb(255 255 255 / 0.5); border-radius: 4px; }
@media (max-width: 860px) {
  .site-header .nav ul { border-top-color: rgb(255 255 255 / 0.2); }
  .site-header .nav li a { border-bottom-color: rgb(255 255 255 / 0.2); }
  .site-header .nav a[aria-current="page"] { border-bottom-color: rgb(255 255 255 / 0.2); box-shadow: inset 4px 0 0 var(--stone); padding-left: 0.85rem; }
}

/* Pillars carry a short scarlet bar, like a ribbon on a campaign button */
.pillar { border-top: 1px solid var(--rule); padding-top: 1.4rem; position: relative; }
.pillar::before { content: ""; position: absolute; top: -1px; left: 0; width: 3rem; height: 4px; background: var(--scarlet); }

/* Footer band */
.site-footer { background: var(--band); color: var(--band-muted); border-top: 0; }
.site-footer a { color: var(--band-ink); }
.site-footer .footer-cols h2 { color: var(--stone); text-transform: none; letter-spacing: 0; font-size: 0.95rem; font-weight: 700; }
.site-footer .footer-logo { filter: brightness(0) invert(1); }
.site-footer .disclaimer { border-top-color: rgb(255 255 255 / 0.2); }
.site-footer :focus-visible { outline-color: var(--stone); }
.site-header :focus-visible { outline-color: var(--stone); }

/* Slideshow tweaks */
.archive-quote p { font-weight: 300; }
.archive-quote footer { text-transform: none; letter-spacing: 0; font-size: 0.9rem; }
.archive-quote::before { content: ""; display: block; width: 3rem; height: 4px; background: var(--scarlet); }
.icon-btn, .slide-pause { border-radius: 4px; border-color: var(--field); }
.members-flag::before { border-color: var(--scarlet); }

/* Header tidy (Nov 13): one strip, one line for the region, header reads as one navy block */
.idbar { background: #021629; color: var(--band-muted); border-bottom: 1px solid rgb(255 255 255 / 0.08); }
.idbar .wrap { justify-content: flex-end; padding-block: 0.4rem; font-size: 0.8rem; }
.site-header .brand .brand-sub { max-width: none; white-space: nowrap; }
@media (max-width: 760px) { .idbar .wrap { justify-content: flex-start; } }
@media (max-width: 520px) { .site-header .brand .brand-sub { display: none; } }

/* Where we work: Dakotas map (Nov 13, restyled as a reference map) */
.where { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.state-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; border-top: 1px solid var(--rule); padding-top: 1.25rem; }
.state-lists h3 { font-family: var(--sans); font-size: 0.9rem; font-weight: 700; color: var(--label); margin: 0 0 0.5rem; }
.state-lists ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.state-lists li { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }
.map-card { margin: 0; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 4px; padding: clamp(1rem, 3vw, 2rem); max-width: 100%; }
.dakota-map { display: block; width: 100%; height: auto; max-height: 36rem; margin-inline: auto; }
.map-state { fill: var(--map-land); stroke: var(--paper-2); stroke-width: 3; stroke-linejoin: round; }
.map-state-name { font-family: var(--sans); font-weight: 600; font-size: 19px; letter-spacing: 0.06em; fill: var(--map-faint); }
.map-dot { fill: var(--scarlet); stroke: var(--paper-2); stroke-width: 2.5; }
.map-city { font-family: var(--sans); font-weight: 600; font-size: 22px; fill: var(--ink); paint-order: stroke; stroke: var(--map-land); stroke-width: 5px; stroke-linejoin: round; }
:root { --map-land: #d6e4f0; --map-faint: #4f6f8c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --map-land: #123a5e; --map-faint: #8fb3d3; } }
:root[data-theme="dark"] { --map-land: #123a5e; --map-faint: #8fb3d3; }
@media (max-width: 760px) { .where { grid-template-columns: 1fr; } }

/* ---------- Nov 13: design fixes ---------- */
/* Bigger header logo so its fine print reads */
.brand-logo { height: 4.75rem; }
@media (max-width: 860px) { .brand-logo { height: 4.1rem; } }
@media (max-width: 420px) { .brand-logo { height: 3.6rem; } }
/* Map card fits the map; text lines up with its top */
.where { grid-template-columns: minmax(0, 1fr) minmax(0, 27rem); align-items: start; justify-content: space-between; }
.where-text { padding-top: 0.5rem; }
.dakota-map { max-height: none; }
@media (max-width: 760px) {
  .where { grid-template-columns: 1fr; }
  .map-card { max-width: 27rem; }
  /* the map shrinks to about half size on phones, so its type grows to stay readable */
  .map-city { font-size: 34px; stroke-width: 7px; }
  .map-state-name { font-size: 27px; }
}

/* ---------- Nov 13: new content ---------- */
.sub-h { margin: 3rem 0 1rem; }

/* Public events */
.events { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1.5rem; }
.event { background: var(--paper); border: 1px solid var(--rule); border-top: 4px solid var(--ink); border-radius: 4px; padding: 1.5rem; display: grid; gap: 0.5rem; align-content: start; }
.event-when { font-weight: 700; font-size: 0.95rem; color: var(--label); }
.event h3 { font-family: var(--serif); font-weight: 300; font-size: 1.5rem; }
.event p:last-child { color: var(--muted); }
.events-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.75rem; }

/* Members events */
.event-tables { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: 2.5rem; }
.event-table { display: grid; gap: 0.5rem; align-content: start; min-width: 0; }
.event-table h3 { font-family: var(--serif); font-weight: 300; font-size: 1.4rem; }
.event-table table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.event-table th[scope="row"] { font-weight: 600; color: var(--ink); font-size: 0.95rem; }
td.tbd { color: var(--muted); font-style: italic; }

/* Why join */
.join { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 2.5rem clamp(2rem, 5vw, 4.5rem); align-items: start; }
.join-head { grid-row: span 2; }
.reasons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 2rem; }
.reasons li { display: grid; gap: 0.45rem; align-content: start; padding-top: 1.1rem; border-top: 1px solid var(--rule); }
.reasons p { color: var(--muted); }
.join-how { background: var(--paper-2); border-left: 4px solid var(--scarlet); padding: 1.5rem; display: grid; gap: 0.75rem; }
@media (max-width: 860px) { .join { grid-template-columns: 1fr; } .join-head { grid-row: auto; } }

/* History timeline */
.timeline { list-style: none; margin: 0; padding: 0; max-width: 56rem; }
.tl-item { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0 2rem; position: relative; padding-bottom: 2.75rem; }
.tl-item::before { content: ""; position: absolute; left: calc(8.5rem + 1rem - 1px); top: 0.6rem; bottom: 0; width: 2px; background: var(--rule); }
.tl-item:last-child::before { display: none; }
.tl-item::after { content: ""; position: absolute; left: calc(8.5rem + 1rem - 6px); top: 0.45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--scarlet); box-shadow: 0 0 0 3px var(--paper); }
.tl-year { font-family: var(--serif); font-weight: 300; font-size: 1.6rem; line-height: 1.1; color: var(--ink); text-align: right; }
.tl-body { display: grid; gap: 0.6rem; padding-left: 1.25rem; min-width: 0; }
.tl-title { font-family: var(--sans); font-weight: 700; font-size: 1.15rem; line-height: 1.35; }
.tl-body > p { color: var(--muted); }
.tl-photo { width: 100%; max-width: 34rem; height: auto; border-radius: 2px; margin-top: 0.5rem; }
.tl-prints { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin-top: 0.5rem; max-width: 34rem; }
.tl-prints img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; filter: grayscale(1) contrast(1.05); }
.tl-credit { font-size: 0.82rem; color: var(--muted); }
.tl-item.is-blank .tl-year { font-family: var(--sans); font-size: 0.9rem; font-weight: 700; color: var(--scarlet); padding-top: 0.25rem; }
.tl-item.is-blank .tl-body { border: 1px dashed var(--rule); border-radius: 4px; padding: 0.9rem 1.1rem; margin-left: 1.25rem; }
.tl-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
@media (max-width: 600px) {
  .tl-item { grid-template-columns: 1fr; padding-left: 1.75rem; }
  .tl-item::before { left: 5px; }
  .tl-item::after { left: 0; }
  .tl-year { text-align: left; font-size: 1.35rem; margin-bottom: 0.35rem; }
  .tl-body { padding-left: 0; }
  .tl-item.is-blank .tl-body { margin-left: 0; }
}

/* Rights page */
.dated { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.dated li { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 0.25rem 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.dated-when { font-weight: 700; color: var(--label); font-size: 0.95rem; }
@media (max-width: 520px) { .dated li { grid-template-columns: 1fr; } }
.say { background: var(--band); color: var(--band-ink); border-radius: 4px; padding: 1.25rem 1.5rem; display: grid; gap: 0.5rem; max-width: 34rem; }
.say-label { font-weight: 700; font-size: 0.9rem; color: var(--stone); }
.say-text { font-family: var(--serif); font-weight: 300; font-size: 1.25rem; line-height: 1.5; color: var(--band-ink); }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 0.2rem 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(step); grid-row: span 2; width: 2rem; height: 2rem; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-weight: 700; font-size: 0.95rem; }
.steps h3 { font-size: 1.05rem; }
.steps p { color: var(--muted); }
.brand-logo { height: 6rem; }
@media (max-width: 860px) { .brand-logo { height: 4.6rem; } }
@media (max-width: 420px) { .brand-logo { height: 3.9rem; } }
.join-head { position: sticky; top: 1.5rem; }
@media (max-width: 860px) { .join-head { position: static; } }
/* Sticky in-page menu stays one line on phones and scrolls sideways */
@media (max-width: 760px) {
  .subnav ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .subnav ul::-webkit-scrollbar { display: none; }
}
.people li { align-content: start; }

/* ---------- Nov 13: union look ---------- */
.site-header .nav ul { gap: 1.25rem; }
.site-header.on-poster { border-bottom: 1px solid rgb(255 255 255 / 0.12); }
.btn.on-dark { background: #ffffff; color: var(--band); border-color: #ffffff; }
.btn.on-dark:hover { background: var(--stone); border-color: var(--stone); color: var(--band); }
.btn.ghost.on-dark { background: transparent; color: #ffffff; border-color: rgb(255 255 255 / 0.7); }
.btn.ghost.on-dark:hover { background: rgb(255 255 255 / 0.1); color: #ffffff; border-color: #ffffff; }
.band-dark :focus-visible, .poster :focus-visible, .since :focus-visible { outline-color: var(--stone); }

/* Home: poster. Navy panel with a scarlet bar, photo running to the right edge */
.poster { background: var(--band); color: var(--band-ink); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.poster-panel {
  display: grid; gap: 1.4rem; align-content: center;
  padding-block: clamp(2.5rem, 5vw, 5rem);
  padding-left: max(var(--gutter), calc((100vw - var(--wide)) / 2));
  padding-right: clamp(1.5rem, 4vw, 3.5rem);
}
.poster-panel::before { content: ""; width: 4.5rem; height: 6px; background: var(--scarlet); }
.poster h1 { color: #ffffff; font-weight: 300; font-size: clamp(2.1rem, 1.2rem + 2.3vw, 3.2rem); line-height: 1.15; max-width: 15ch; }
.poster .lede { color: var(--band-muted); font-size: 1.1rem; max-width: 36ch; }
.poster .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.poster-photo { display: grid; min-width: 0; }
.poster .showcase { border: 0; background: transparent; display: grid; grid-template-rows: minmax(26rem, 1fr) auto; }
.poster .slides { aspect-ratio: auto; height: 100%; min-height: 0; }
.poster .slide-bar { border-top: 0; background: rgb(0 0 0 / 0.22); padding: 0.7rem max(1rem, env(safe-area-inset-right, 0px)) 0.7rem 1rem; }
.poster .slide-caption { color: #ffffff; }
.poster .slide-credit { color: var(--band-muted); }
.poster .slide-count { color: var(--band-muted); }
.poster .icon-btn, .poster .slide-pause { background: transparent; color: #ffffff; border-color: rgb(255 255 255 / 0.45); }
.poster .icon-btn:hover, .poster .slide-pause:hover { border-color: #ffffff; }
.poster .slide-archive { padding: clamp(1.25rem, 3vw, 2.5rem); }
.poster .archive-quote::before { display: none; }
@media (max-width: 1240px) { .poster .archive-quote { display: none; } .poster .slide-archive { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .poster { grid-template-columns: 1fr; }
  .poster-photo { order: -1; }
  .poster .showcase { grid-template-rows: auto auto; }
  .poster .slides { aspect-ratio: 4 / 3; height: auto; }
  .poster-panel { padding-left: var(--gutter); padding-right: var(--gutter-r); padding-block: 2rem 2.75rem; }
}

/* Home: what the chapter does, as a statement and a list */
.statement { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 2rem clamp(2rem, 6vw, 5rem); align-items: start; }
.statement h2 { font-size: clamp(1.8rem, 1.3rem + 1.9vw, 2.75rem); max-width: 16ch; }
.statement-list { list-style: none; margin: 0; padding: 0; }
.statement-list li { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 0.4rem 1.5rem; padding-block: 1.25rem; border-top: 1px solid var(--rule); }
.statement-list li:first-child { border-top: 4px solid var(--scarlet); }
.statement-list li:last-child { border-bottom: 1px solid var(--rule); }
.statement-list p { color: var(--muted); }
@media (max-width: 860px) { .statement { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .statement-list li { grid-template-columns: 1fr; } }

/* Home: archive strip */
.since { background: var(--band); color: var(--band-ink); padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.since-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 2rem clamp(2rem, 5vw, 4rem); align-items: center; }
.since-text { display: grid; gap: 1.1rem; justify-items: start; }
.since h2 { color: #ffffff; font-size: clamp(2.6rem, 1.6rem + 4vw, 4.8rem); font-weight: 300; line-height: 1; }
.since p { color: var(--band-muted); max-width: 34ch; }
.since-prints { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.since-prints img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; filter: grayscale(1) contrast(1.05); border: 5px solid #ffffff; }
.since-prints li:nth-child(even) { margin-top: 1.5rem; }
@media (max-width: 860px) { .since-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .since-prints { grid-template-columns: repeat(2, minmax(0, 1fr)); } .since-prints li:nth-child(even) { margin-top: 0; } }

/* Upcoming events and the calendar */
.tag.sample { color: var(--muted); border-style: dashed; font-family: var(--sans); font-weight: 600; vertical-align: middle; }
.upcoming { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.upcoming li { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 0.25rem 1.5rem; padding-block: 1.1rem; border-bottom: 1px solid var(--rule); }
.up-month { font-weight: 700; color: var(--label); }
.upcoming h3 { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; }
@media (max-width: 520px) { .upcoming li { grid-template-columns: 1fr; } }
.cal-section { padding-top: 0.5rem; }
.cal { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); gap: 1rem; }
.cal-month { border: 1px solid var(--rule); border-top: 4px solid var(--rule); border-radius: 4px; padding: 1rem 1.15rem 1.2rem; min-height: 9rem; display: grid; gap: 0.75rem; align-content: start; background: var(--paper); }
.cal-month.has-events { border-top-color: var(--scarlet); background: var(--paper-2); }
.cal-name { font-size: 1.35rem; font-weight: 400; }
.cal-name span { color: var(--muted); font-size: 0.9rem; font-family: var(--sans); }
.cal-month ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.cal-month li { display: grid; gap: 0.15rem; }
.cal-title { font-weight: 700; color: var(--ink); }
.cal-where { font-size: 0.9rem; color: var(--muted); }
.cal-none { font-size: 0.9rem; color: var(--muted); }

/* Event page and officer screen */
.back { font-size: 0.95rem; }
.officer-note { margin-top: 1.25rem; }
.event-detail { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.join-box { background: var(--paper-2); border-left: 4px solid var(--scarlet); padding: 1.5rem; display: grid; gap: 0.8rem; }
.join-box h2 { font-size: 1.5rem; }
.btn.disabled { opacity: 0.5; cursor: not-allowed; }
@media (max-width: 860px) { .event-detail { grid-template-columns: 1fr; } }
.admin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.admin h2 { font-size: 1.5rem; }
@media (max-width: 860px) { .admin { grid-template-columns: 1fr; } }
fieldset.checks { border: 1px solid var(--field); border-radius: 4px; padding: 0.6rem 1rem 1rem; margin: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; }
fieldset.checks legend { font-size: 0.92rem; font-weight: 600; color: var(--ink); padding-inline: 0.3rem; }
label.check { display: flex; align-items: center; gap: 0.5rem; font-weight: 400; color: var(--text); }
label.check input { width: auto; accent-color: var(--ink); }
.mail { border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); overflow: hidden; }
.mail-head { margin: 0; padding: 1rem 1.25rem; background: var(--paper-2); display: grid; gap: 0.35rem; font-size: 0.92rem; }
.mail-head div { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 0.5rem; }
.mail-head dt { color: var(--muted); }
.mail-head dd { margin: 0; color: var(--text); min-width: 0; overflow-wrap: anywhere; }
.mail-body { padding: 1.25rem; display: grid; gap: 0.9rem; border-top: 4px solid var(--scarlet); }

/* Offices */
.office-grid { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 2rem clamp(2rem, 5vw, 4rem); }
.office-name h2 { font-size: clamp(2rem, 1.5rem + 2vw, 2.9rem); }
.office-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 2rem; }
.office-cols h3 { padding-top: 0.9rem; border-top: 1px solid var(--rule); }
.office .empty { padding: 1rem; font-size: 0.95rem; }
.person { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }
.mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
@media (max-width: 760px) { .office-grid { grid-template-columns: 1fr; } }

/* Shout-outs */
.shout-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.shout-list li { background: var(--paper-2); border-left: 4px solid var(--stone); border-radius: 4px; padding: 1rem 1.2rem; display: grid; gap: 0.4rem; }
.shout-route { font-weight: 700; color: var(--label); }

/* Rights: pocket card to screenshot */
.pocket { margin: 0; padding: 10px; display: grid; gap: 0.9rem; justify-items: start; }
.pocket-card {
  position: relative; width: min(100%, 23.5rem); aspect-ratio: 1.586;
  background: var(--band); color: #ffffff; border-radius: 14px; overflow: hidden;
  padding: 1rem 1.25rem 0.9rem 1.7rem; display: grid; grid-template-rows: auto auto 1fr auto; gap: 0.4rem;
  outline: 2px dashed var(--field); outline-offset: 8px;
}
.pocket-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 8px; background: var(--scarlet); }
.pocket-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; font-size: 0.75rem; color: var(--band-muted); }
.pocket-top img { height: 2.3rem; width: auto; filter: brightness(0) invert(1); }
.pocket-top span { text-align: right; max-width: 11rem; line-height: 1.3; }
.pocket-label { font-size: 0.82rem; font-weight: 700; color: var(--stone); }
.pocket-text { font-family: var(--serif); font-weight: 300; font-size: 1.08rem; line-height: 1.42; color: #ffffff; }
.pocket-foot { font-size: 0.72rem; color: var(--band-muted); }
.pocket figcaption { font-size: 0.9rem; color: var(--muted); }

/* Five Strong */
.game { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3rem clamp(2rem, 5vw, 4.5rem); align-items: start; --cell: clamp(2.6rem, 11vw, 3.4rem); }
@media (max-width: 860px) { .game { grid-template-columns: 1fr; } }
.game-play { display: grid; gap: 1.25rem; justify-items: start; min-width: 0; }
.game-bar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 0.75rem 1.5rem; width: 100%; }
.game-bar select { width: auto; min-width: 12rem; }
.game-num { color: var(--muted); font-size: 0.95rem; }
.fs-board { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.fs-row { display: grid; grid-template-columns: 1.4rem auto; align-items: center; gap: 0.6rem; }
.fs-try { font-size: 0.85rem; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.fs-row.is-current .fs-try { color: var(--scarlet); font-weight: 700; }
.fs-cells { display: grid; grid-template-columns: repeat(5, var(--cell)); gap: 0.45rem; }
.fs-cell {
  width: var(--cell); height: var(--cell); border-radius: 50%; display: grid; place-items: center;
  font: 700 calc(var(--cell) * 0.42) var(--serif); color: var(--ink);
  border: 2px solid var(--rule); background: var(--paper);
}
.fs-cell.filled { border-color: var(--muted); }
.fs-cell.here { background: var(--scarlet); border-color: var(--scarlet); color: #ffffff; }
.fs-cell.near { border: 5px solid var(--stone); }
.fs-cell.out { border: 2px dashed var(--field); background: var(--paper-2); color: var(--muted); }
.fs-msg { min-height: 3.2em; color: var(--text); max-width: 34rem; }
.fs-keys { display: grid; gap: 0.35rem; width: 100%; max-width: 30rem; }
.fs-keyrow { display: flex; justify-content: center; gap: 0.3rem; }
.fs-key {
  flex: 1 1 0; min-width: 0; max-width: 3.4rem; height: 3rem; border-radius: 4px;
  border: 1px solid var(--field); background: var(--paper); color: var(--ink);
  font: 700 1rem var(--sans); cursor: pointer; padding: 0;
}
.fs-key.wide { flex-grow: 1.7; max-width: 5.2rem; font-size: 0.85rem; }
.fs-key:hover { border-color: var(--ink); }
.fs-key.here { background: var(--scarlet); border-color: var(--scarlet); color: #ffffff; }
.fs-key.near { border: 3px solid var(--stone); }
.fs-key.out { background: var(--paper-2); color: var(--muted); border-style: dashed; }
.fs-result { width: 100%; max-width: 34rem; background: var(--paper-2); border-left: 4px solid var(--scarlet); padding: 1.1rem 1.25rem; display: grid; gap: 0.6rem; }
.game-side { display: grid; gap: 2.5rem; min-width: 0; }
.game-side h2 { font-size: 1.5rem; }
.fs-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.fs-legend li { display: flex; align-items: center; gap: 0.8rem; --cell: 2.4rem; }
.fs-legend .fs-cell { flex: none; }
.standings { min-width: 0; }
[hidden] { display: none !important; }
.game-section { padding-top: 1rem; }
.game-play { justify-items: stretch; }
.game-bar { justify-content: flex-start; }
.fs-board, .fs-keys, .fs-msg { justify-self: center; }
.fs-msg { text-align: center; }
.fs-board { padding-right: 2rem; }
.mini li { display: grid; gap: 0.15rem; }
.mini-meta { font-size: 0.9rem; color: var(--muted); }

/* ===== Accounts, roles and officer tools (Nov 13) ===== */
:root { --pv: #fff4d6; --pv-ink: #4a3a00; --pv-rule: #e6cf8a; --danger: #b3261e; --mine: #e8f1f8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --pv: #2e2610; --pv-ink: #f1dea0; --pv-rule: #5c4c1c; --danger: #ff8a80; --mine: #12304b; } }
:root[data-theme="dark"] { --pv: #2e2610; --pv-ink: #f1dea0; --pv-rule: #5c4c1c; --danger: #ff8a80; --mine: #12304b; }

/* Preview switch bar */
.pv-bar { background: var(--pv); color: var(--pv-ink); border-bottom: 1px solid var(--pv-rule); font-size: 0.85rem; }
.pv-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem; padding-block: 0.45rem; }
.pv-label { font-weight: 700; }
.pv-bar label { display: inline-flex; align-items: center; gap: 0.4rem; }
.pv-bar select { font-size: 0.85rem; padding: 0.2rem 0.4rem; min-height: 0; }

/* Header account links */
.nav-account { display: flex; align-items: center; gap: 1rem; }
.site-header .nav-account > a:not(.btn) { color: var(--band-ink); }

/* Members only gate */
.gate-msg { min-height: 50vh; display: grid; place-items: center; padding-block: 4rem; }

/* Sign in, request access */
.auth { padding-block: clamp(2.5rem, 2rem + 4vw, 5rem); }
.auth-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.auth-grid > .stack p { max-width: 34rem; }
.auth-form { border-top: 4px solid var(--ink); padding-top: 1.5rem; }
.form label { display: grid; gap: 0.35rem; font-weight: 600; color: var(--ink); }
.form label.check { display: flex; align-items: flex-start; gap: 0.6rem; font-weight: 400; color: var(--text); }
.form label.check input { width: 1.15rem; height: 1.15rem; margin-top: 0.15rem; flex: none; }
.done-box { border-top: 4px solid var(--ok); padding-top: 1.5rem; display: grid; gap: 1rem; max-width: 40rem; }
@media (max-width: 760px) { .auth-grid { grid-template-columns: 1fr; } }

/* Account */
.account { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.account h2 { font-size: 1.5rem; }
.readout { display: grid; gap: 0.2rem; border-left: 3px solid var(--stone); padding-left: 0.8rem; }
.readout p:last-child { font-weight: 700; color: var(--ink); }
fieldset.checks.stacked { flex-direction: column; flex-wrap: nowrap; }
.confirm { border-left: 4px solid var(--danger); background: var(--paper-2); padding: 1rem 1.2rem; display: grid; gap: 0.75rem; }
.btn.danger { background: var(--danger); border-color: var(--danger); color: var(--paper); }
.btn.danger:hover { background: var(--danger); border-color: var(--danger); filter: brightness(0.9); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--link); text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--ink); }
.link-btn.danger { color: var(--danger); }
@media (max-width: 860px) { .account { grid-template-columns: 1fr; } }

/* Privacy */
.prose { max-width: var(--measure); display: grid; gap: 1rem; }
.prose h2 { font-size: var(--step-2); margin-top: 1.5rem; }
.prose ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.prose .table-wrap { margin-block: 0.5rem; }
.prose table { min-width: 30rem; }

/* Members page welcome strip and contact routing */
.welcome { background: var(--paper-2); border-left: 4px solid var(--stone); padding: 1rem 1.2rem; margin-bottom: 2rem; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.6rem 2rem; }
.welcome ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; font-size: 0.95rem; }
.from-box { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 0.8rem; background: var(--paper-2); padding: 1rem; border-radius: 4px; }
.from-box input[readonly] { background: transparent; border-color: transparent; padding-inline: 0; font-weight: 700; color: var(--ink); }
.route { border-left: 3px solid var(--stone); padding: 0.4rem 0 0.4rem 0.9rem; display: grid; gap: 0.3rem; font-size: 0.95rem; }
.route strong { color: var(--ink); }

/* "Your office" markers */
.mine-flag { display: none; font-size: 0.78rem; font-weight: 700; color: var(--label); }
.is-mine .mine-flag { display: inline-block; }
th .mine-flag { margin-left: 0.5rem; }
tr.is-mine th, tr.is-mine td { background: var(--mine); }
section.office.is-mine { box-shadow: inset 5px 0 0 var(--stone); }
p.mine-flag { margin-bottom: -0.5rem; }
.playing-for { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 0.3rem 0.8rem; text-align: center; }
.playing-for strong { color: var(--ink); }

/* Officer tools */
.admin-top { background: var(--band); color: var(--band-ink); }
.admin-top .wrap { padding-block: clamp(2rem, 1.5rem + 2vw, 3rem); display: grid; gap: 0.6rem; }
.admin-top h1 { color: var(--band-ink); }
.admin-top p { color: var(--band-muted); font-size: var(--step-1); max-width: 44rem; }
.admin-top .members-flag { color: var(--band-muted); }
.admin-nav ul { column-gap: 1.6rem; }
.admin-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--scarlet); font-weight: 600; }
.lead-note { margin-bottom: 2rem; }

.dash { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1rem; }
.dash a { display: grid; gap: 0.3rem; padding: 1.2rem 1.2rem 1.3rem; border: 1px solid var(--rule); border-top: 4px solid var(--ink); text-decoration: none; color: var(--text); background: var(--paper); height: 100%; }
.dash a:hover { border-top-color: var(--scarlet); }
.dash-n { font-family: var(--serif); font-size: var(--step-3); color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.dash-n:empty::before { content: "\2014"; color: var(--muted); }
.dash-l { font-size: 0.95rem; }
.matrix td { color: var(--ink); font-size: 0.92rem; }
.matrix .no { color: var(--muted); }
.matrix th[scope="row"] { color: var(--text); font-size: 0.92rem; max-width: 22rem; }

.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 0.8rem 1.2rem; margin-bottom: 1.2rem; }
.filters label { display: grid; gap: 0.3rem; font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.filters input { min-width: 0; width: 15rem; max-width: 100%; }
.filters p { margin: 0 0 0.6rem; }
.members-table th[scope="row"] span { display: block; font-weight: 400; margin-top: 0.15rem; }
.members-table th[scope="row"] { color: var(--ink); font-size: 1rem; font-family: var(--serif); }
.members-table select { padding: 0.3rem 0.4rem; min-height: 0; font-size: 0.92rem; }
.members-table .status { margin: 0.3rem 0 0; color: var(--text); }

.reqs { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.req { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.6rem 2rem; padding-block: 1.2rem; border-bottom: 1px solid var(--rule); align-items: start; }
.req > label { display: grid; gap: 0.3rem; font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.req-main { display: grid; gap: 0.35rem; min-width: 0; }
.req-name { font-family: var(--serif); font-size: var(--step-1); color: var(--ink); }
.req-actions { display: flex; flex-wrap: wrap; align-items: end; gap: 0.6rem; }
.req-actions label { display: grid; gap: 0.3rem; font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.req .status { grid-column: 1 / -1; margin: 0; }
.req .status:empty { display: none; }
.req [data-req-body] { max-width: var(--measure); }
[data-signups] .req .req-actions { justify-content: flex-end; }
.return-note input { width: 16rem; max-width: 100%; }
.shout-route { font-weight: 700; color: var(--label); }
@media (max-width: 760px) {
  .req, [data-signups] .req { grid-template-columns: 1fr; }
}

.words-admin { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.words-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem; }
.words-table { min-width: 28rem; }
.words-table td.word { font-family: var(--sans); font-weight: 700; letter-spacing: 0.12em; color: var(--ink); }
.hidden-word { letter-spacing: 0.25em; color: var(--muted); font-size: 0.8rem; }
.inline-set { display: inline-flex; margin-right: 0.4rem; }
.inline-set input { width: 7rem; text-transform: uppercase; letter-spacing: 0.1em; }
.words-table .btn { min-height: 2.2rem; padding-block: 0.3rem; }
.word-list { font-size: 0.95rem; line-height: 1.8; color: var(--muted); word-spacing: 0.15em; }
.wide-form { max-width: none; }
.wide-form h2 { margin-top: 1rem; }
.wide-form select { max-width: 100%; }
@media (max-width: 860px) { .words-admin { grid-template-columns: 1fr; } }
.pv-bar select, .filters select, .req select, .account select { width: auto; max-width: 100%; }
.auth-form .status:empty, .form .status:empty { min-height: 0; margin: 0; }
.checks input[type="checkbox"], td input[type="checkbox"] { width: 1.15rem; height: 1.15rem; }

/* Live data (Nov 13): errors, loading, request replies, role ticks */
.status.is-error, .members-table .status.is-error, .confirm .status.is-error { color: var(--danger); font-weight: 600; }
[aria-busy="true"] { opacity: 0.6; transition: opacity 0.2s; }
.req .reply { border-left: 3px solid var(--stone); padding-left: 0.75rem; color: var(--text); }
.req.is-masked .req-main > p:last-child { font-style: italic; }
.req > .status, .req > .reply-form { grid-column: 1 / -1; }
.reply-form { max-width: 40rem; }
.members-table td.roles { display: grid; gap: 0.25rem; min-width: 11rem; }
.members-table td.roles .check { font-size: 0.88rem; font-weight: 400; }
.inline-set { display: inline-flex; gap: 0.4rem; align-items: center; }
.inline-set input { width: 6.5rem; text-transform: uppercase; letter-spacing: 0.15em; }
.standings td { white-space: nowrap; }
.standings tr.is-mine th, .standings tr.is-mine td { background: var(--mine); }
@media (prefers-reduced-motion: reduce) { [aria-busy="true"] { transition: none; } }

/* Polish (Nov 13): finished surfaces for sign in, the members home, officer tools and the account page */

/* The engraved skyline, painted as a mask so it takes the ink of whatever it sits on */
.skyline { width: 100%; max-width: 100%; aspect-ratio: 2360 / 1176; background: currentColor;
  -webkit-mask: url(img/skyline-900.webp) center bottom / contain no-repeat; mask: url(img/skyline-900.webp) center bottom / contain no-repeat; }
@media (min-width: 1000px) { .skyline { -webkit-mask-image: url(img/skyline-1600.webp); mask-image: url(img/skyline-1600.webp); } }

/* Sign in, request access, reset, choose a password: a navy poster beside a white form card */
.auth { background: var(--paper-2); padding-block: clamp(1.5rem, 1rem + 3vw, 4rem); }
.auth-grid { gap: 0; align-items: stretch; max-width: calc(64rem + 40px); }
.auth-poster { background: var(--band); color: var(--band-ink); padding: clamp(1.75rem, 1.2rem + 2.5vw, 3rem); display: flex; flex-direction: column; gap: 0.9rem; min-width: 0; }
.auth-poster h1 { color: var(--band-ink); }
.auth-poster p { color: var(--band-muted); max-width: 30rem; }
.auth-poster a { color: var(--band-ink); }
.auth-poster :focus-visible { outline-color: var(--stone); }
.auth-poster .skyline { margin-top: auto; padding-top: 1rem; color: var(--band-ink); opacity: 0.5; }
.auth-card { background: var(--paper); border: 1px solid var(--rule); border-left: 0; padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); display: grid; gap: 1.5rem; align-content: start; min-width: 0; }
.auth-card .auth-form { border-top: 0; padding-top: 0; max-width: none; }
.auth-form.auth-card { border-top: 1px solid var(--rule); padding-top: clamp(1.5rem, 1rem + 2.5vw, 3rem); max-width: none; }
.auth-card .done-box { display: grid; gap: 0.9rem; }
@media (max-width: 760px) {
  .auth { padding-block: 0 2rem; }
  .auth .wrap.auth-grid { grid-template-columns: 1fr; padding-inline: 0; }
  .auth-poster { padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
  .auth-poster .skyline { max-width: 26rem; align-self: center; }
  .auth-card, .auth-form.auth-card { border-left: 0; border-right: 0; border-top: 0; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
}

/* Continue with Google, in Google's own neutral button style */
.google-wrap { display: grid; gap: 1.1rem; }
.btn.google { width: 100%; background: var(--paper); color: var(--text); border: 1px solid var(--field); font-weight: 600; gap: 0.75rem; }
.btn.google:hover { background: var(--paper-2); color: var(--ink); border-color: var(--ink); }
.btn.google svg { flex: none; }
.or { display: flex; align-items: center; gap: 0.75rem; margin: 0; color: var(--muted); font-size: 0.85rem; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }
.google-note { margin: 0; }
.auth-form input[readonly] { background: var(--paper-2); color: var(--muted); }

/* Members home: a banner with the skyline, then the four things people come for */
.member-hero { background: var(--paper-2); border-bottom: 1px solid var(--rule); overflow: hidden; }
.member-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: end; gap: 0 clamp(1.5rem, 4vw, 3rem); padding-top: clamp(2rem, 1.5rem + 3vw, 3.5rem); }
.member-hero-text { display: grid; gap: 0.8rem; padding-bottom: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); align-content: end; }
.member-hero-text > p:not(.hello) { color: var(--muted); font-size: var(--step-1); }
.member-hero .skyline { color: var(--ink); opacity: 0.8; align-self: end; }
.hello { font-size: 0.95rem; color: var(--text); padding-top: 0.9rem; border-top: 1px solid var(--rule); }
@media (max-width: 760px) {
  .member-hero .wrap { grid-template-columns: 1fr; }
  .member-hero-text { padding-bottom: 0.5rem; }
}
.quick { list-style: none; margin: 1.75rem 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1rem; }
.quick a { display: grid; gap: 0.3rem; align-content: start; height: 100%; padding: 1.1rem 1.2rem 1.25rem; background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--ink); text-decoration: none; color: var(--text); transition: border-color 0.15s; }
.quick a:hover { border-color: var(--ink); border-top-color: var(--scarlet); }
.quick-k { font-size: 0.85rem; font-weight: 700; color: var(--label); }
.quick-t { font-family: var(--serif); font-size: var(--step-1); line-height: 1.25; color: var(--ink); }
.quick-d { font-size: 0.88rem; color: var(--muted); }

/* Officer tools: a compact header, tighter section rhythm, content in panels */
.admin-top .wrap { padding-block: clamp(1.4rem, 1rem + 1.5vw, 2.1rem); gap: 0.4rem; }
.admin-top h1 { font-size: var(--step-3); }
.admin-top p { font-size: 1rem; }
.admin-top p.admin-who { font-size: 0.85rem; color: var(--stone); font-weight: 600; }
.app .section { padding-block: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.app .section > .wrap:not(.admin):not(.words-admin):not(.account) > * + * { margin-top: 1rem; }
.app .section > .wrap > h2 + * { margin-top: 0.5rem; }
.app .section > .wrap > .muted + .reqs, .app .section > .wrap > .muted + .rows, .app .section > .wrap > .toolbar + .reqs { margin-top: 1.5rem; }
.app .dash { margin-bottom: 1rem; }
.app .sub-h { margin-top: 2.5rem; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; padding: 0.75rem 1rem; background: var(--paper-2); border: 1px solid var(--rule); }
.toolbar .check { font-size: 0.92rem; font-weight: 400; color: var(--text); display: flex; align-items: center; gap: 0.6rem; }
.filters { padding: 1rem 1.1rem; background: var(--paper); border: 1px solid var(--rule); margin-block: 1.25rem; }
.filters p { margin: 0 0 0.75rem auto; }
.filters input, .filters select, .req select, .req-actions .btn, .members-table select { min-height: 2.75rem; }
.filters select, .req select { padding-block: 0.5rem; }

/* Requests, sign-ups and reviews as cards with a status badge and date */
.reqs.cards { border-top: 0; display: grid; gap: 1rem; }
.reqs.cards > .req { background: var(--paper); border: 1px solid var(--rule); padding: 1.15rem 1.25rem; transition: border-color 0.15s; }
.reqs.cards > .req:hover { border-color: var(--field); }
.reqs.cards > .req.is-masked { background: var(--paper-2); }
.req-top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0; }
.req-date { margin-left: auto; font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.badge { display: inline-flex; align-items: center; min-height: 1.5rem; padding: 0 0.6rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700; white-space: nowrap; background: var(--paper-2); color: var(--ink); border: 1px solid var(--rule); }
.badge.s-new { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.badge.s-in-progress { background: var(--mine); border-color: var(--stone); }
.badge.s-closed { color: var(--muted); }
.badge.s-private { background: transparent; color: var(--scarlet); border-color: currentColor; }
.reqs.cards .req-actions { align-items: end; }

/* Members table: roles as toggle chips, rows centred */
.members-table th, .members-table td { vertical-align: middle; padding-block: 0.9rem; }
.members-table td.roles { display: flex; flex-wrap: wrap; gap: 0.4rem; min-width: 15rem; }
.chip { position: relative; display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0 0.85rem; border: 1px solid var(--field); border-radius: 999px; background: var(--paper); color: var(--muted); font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.members-table .chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip:has(input:checked) span::before { content: "\2713\00a0"; }
.chip:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.members-table td.roles > .status { flex-basis: 100%; }

/* Account: panels on a tinted band */
.panel { background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--ink); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); max-width: none; }
.panel.quiet { border-top-color: var(--rule); }
.panel h2 { font-size: 1.35rem; }
.account .stack-lg { gap: 1.25rem; }
.band.app { padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem); }

/* Five Strong: the office line reads as a header strip; empty standings say so once */
.game-bar { padding: 0.8rem 1rem; background: var(--paper-2); border: 1px solid var(--rule); align-items: center; }
.playing-for { display: grid; gap: 0.15rem; }
.game-num { font-variant-numeric: tabular-nums; font-weight: 600; }
.standings td.tbd { font-style: normal; }
[data-standings-note] { margin-top: 0.75rem; }

/* Footer: logo across the top on phones, link columns two by two */
@media (max-width: 640px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-cols > :first-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) { .quick a, .chip, .reqs.cards > .req { transition: none; } }

.playing-for { justify-content: flex-start; text-align: left; justify-items: start; }
.game-bar { justify-content: space-between; }
.members-table .status:empty, .panel .status:empty { display: none; }
.members-table td:last-child { white-space: nowrap; }

/* Accessibility pass (Nov 13): bigger tap targets on phones, readable badges */
.badge.s-private { color: var(--danger); }
.link-btn { padding-block: 0.3rem; min-height: 24px; }
label.check { min-height: 24px; }
@media (max-width: 700px) {
  label.check input, .form label.check input, .checks input[type="checkbox"], td input[type="checkbox"] { width: 1.5rem; height: 1.5rem; }
  .form label.check input { margin-top: 0; }
  .form label.check { align-items: center; }
}

/* ---------- Polish pass, Nov 13 ---------- */
/* Hero: a wider text column so the headline sets in four lines, not six */
@media (min-width: 861px) { .poster { grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); } }
.poster h1 { max-width: 17ch; font-size: clamp(2.1rem, 1.25rem + 2.1vw, 3.05rem); letter-spacing: -0.01em; }

/* Slideshow controls: quiet round icon buttons */
.icon-btn, .slide-pause { width: 2.5rem; height: 2.5rem; padding: 0; border-radius: 50%; display: inline-grid; place-items: center; }
.poster .icon-btn, .poster .slide-pause { border-color: rgb(255 255 255 / 0.32); }
.poster .icon-btn:hover, .poster .slide-pause:hover { background: rgb(255 255 255 / 0.1); border-color: rgb(255 255 255 / 0.7); }
.slide-pause .i-play { display: none; }
.slide-pause.is-paused .i-play { display: inline; }
.slide-pause.is-paused .i-pause { display: none; }
.slide-controls { gap: 0.4rem; }
.slide-count { min-width: 3.6rem; }

/* Agenda: month tile, title, where and how */
.agenda { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.agenda > li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1.4rem; align-items: start; padding-block: 1.25rem; border-bottom: 1px solid var(--rule); }
.agenda .when { display: grid; place-content: center; text-align: center; width: 4.5rem; height: 4.5rem; background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--scarlet); }
.agenda .mon { font-family: var(--serif); font-size: 1.35rem; line-height: 1.1; color: var(--ink); }
.agenda .yr { font-size: 0.78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.agenda .what { display: grid; gap: 0.3rem; padding-top: 0.2rem; min-width: 0; }
.agenda h3 { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; line-height: 1.3; }
.agenda h3 a { text-decoration: none; color: var(--ink); }
.agenda h3 a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
.agenda .ag-where { color: var(--muted); font-size: 0.97rem; }
.agenda .sum { color: var(--text); font-size: 0.97rem; max-width: 62ch; }
@media (max-width: 420px) { .agenda > li { grid-template-columns: 3.75rem minmax(0, 1fr); gap: 1rem; } .agenda .when { width: 3.75rem; height: 3.75rem; } .agenda .mon { font-size: 1.15rem; } }

/* Public calendar */
.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); gap: 2.5rem clamp(2rem, 6vw, 5rem); align-items: start; }
.cal-aside { display: grid; gap: 2rem; padding: 1.5rem; background: var(--paper-2); border-top: 4px solid var(--ink); }
.cal-aside h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.cal-aside p { color: var(--muted); margin-bottom: 1rem; }
.cal-aside p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .cal-layout { grid-template-columns: 1fr; } }

/* Offices: six cards, your office first */
.office-section { padding-top: 0.5rem; }
.office-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1.25rem; }
.office-card { display: grid; align-content: start; gap: 1rem; padding: 1.5rem 1.5rem 1.6rem; border: 1px solid var(--rule); border-top: 4px solid var(--ink); background: var(--paper); scroll-margin-top: 4rem; }
.office-card h3 { font-size: clamp(1.7rem, 1.4rem + 1vw, 2.1rem); font-weight: 400; line-height: 1.1; }
.office-card .oc-state { color: var(--muted); font-size: 0.92rem; margin-top: -0.6rem; }
.office-card .oc-part { border-top: 1px solid var(--rule); padding-top: 0.9rem; display: grid; gap: 0.35rem; }
.office-card h4 { font-family: var(--sans); font-size: 0.85rem; font-weight: 700; color: var(--label); }
.office-card .person { font-weight: 700; color: var(--ink); }
.office-card.is-mine { order: -1; border-top-color: var(--scarlet); box-shadow: inset 0 0 0 1px var(--stone); }
.office-card .mine-flag { margin: 0 0 -0.5rem; }

/* Legislative: a seat that changes hands */
.seat-note { display: block; margin: 0.4rem 0 0.4rem; font-size: 0.85rem; color: var(--muted); max-width: 26ch; }

/* Officer overview: three across so no tile sits alone */
.dash { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .dash { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .dash { grid-template-columns: 1fr; } }
td .chamber { display: block; margin-bottom: 0.35rem; }

/* Event page before dates are set */
.pending-card { border: 1px solid var(--rule); border-top: 3px solid var(--stone); background: var(--paper-2); padding: 1.25rem 1.4rem; display: grid; gap: 1rem; }
.how-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: 0 1.5rem; }
.how-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-top: 1px solid var(--rule); }
.how-list .hl-o { font-weight: 700; color: var(--ink); }
.how-list .hl-h { color: var(--muted); font-size: 0.95rem; }
.how-list .mine-flag { margin-left: 0.5rem; }
.table-wrap { position: relative; } /* keeps visually hidden cell text inside the scroll box */

/* Shout-out form: From and To line up */
.row.row-top { align-items: start; }
input.is-fixed { background: var(--paper-2); color: var(--muted); border-style: dashed; }
/* Prose pages start at the same left edge as their heading */
.wrap.prose { max-width: calc(var(--wide) + 40px); }
.page-head p.small { font-size: 0.9rem; }
.wrap.prose > * { max-width: var(--measure); }
.wrap.prose > .table-wrap { max-width: min(100%, 48rem); }
.page-head + .section { padding-top: clamp(1rem, 0.5rem + 1.5vw, 2rem); }
/* Side boxes share one style: a navy top rule on a pale panel */
.join-box { border-left: 0; border-top: 4px solid var(--ink); }
.app .dash + .sub-h, .dash + .sub-h { margin-top: 3.5rem; }

/* ==========================================================================
   Members area, Nov 13: news, community, directory, search, Congress cards,
   take-down tools. Same tokens as the rest: navy carries weight, stone marks
   "yours", scarlet is only ever a bar or a rule.
   ========================================================================== */

/* Header search link */
.nav-search { display: inline-flex; align-items: center; gap: 0.4rem; }
.nav-search svg { flex: none; }
@media (min-width: 861px) { .nav-search span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; } }

/* Search boxes */
.site-search { display: flex; gap: 0.5rem; max-width: 36rem; }
.site-search input { flex: 1 1 auto; min-width: 0; }
.site-search .btn { flex: none; }
.site-search.big input { font-size: 1.15rem; padding-block: 0.85rem; }
.home-hero .site-search { margin-top: 0.4rem; }
@media (max-width: 420px) { .site-search { flex-direction: column; } }

/* Members home: what's new beside the quick tiles */
.home-top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.5rem clamp(1.5rem, 4vw, 3rem); padding-block: 2rem 0.5rem; align-items: start; }
@media (max-width: 860px) { .home-top { grid-template-columns: 1fr; } }
.whatsnew { border: 1px solid var(--rule); border-top: 4px solid var(--ink); background: var(--paper); padding: 1.25rem 1.4rem 1.4rem; display: grid; gap: 0.75rem; align-content: start; }
.whatsnew h2 { font-size: 1.35rem; }
.wn-head { font-size: 1.02rem; color: var(--text); }
.wn-count { font-size: 0.9rem; color: var(--muted); margin-top: -0.4rem; }
.wn-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.wn-list li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto; gap: 0.25rem 1rem; align-items: baseline; padding: 0.65rem 0; border-bottom: 1px solid var(--rule); }
.wn-list a { min-width: 0; overflow-wrap: anywhere; }
.wn-type { font-size: 0.8rem; font-weight: 700; color: var(--label); }
.wn-type.t-reply { color: var(--scarlet); }
.wn-when { font-size: 0.82rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 520px) { .wn-list li { grid-template-columns: minmax(0, 1fr) auto; } .wn-type { grid-column: 1 / -1; } }
.quick.quick-stack { margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 420px) { .quick.quick-stack { grid-template-columns: 1fr; } }
.row-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem; max-width: none; }
.row-head .more { font-weight: 600; white-space: nowrap; }
.section-head.row-head { margin-bottom: 1.5rem; }
.lede-s { margin: -0.75rem 0 1.5rem; }
.section .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.section.tight { padding-top: 0.5rem; }

/* Office tags and pills */
.office-tag { display: inline-flex; align-items: center; min-height: 1.5rem; padding: 0 0.55rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700; color: var(--ink); background: var(--mine); border: 1px solid var(--stone); white-space: nowrap; }
.office-tag.is-all { background: transparent; border-color: var(--rule); color: var(--muted); }
.pill { display: inline-flex; align-items: center; min-height: 1.5rem; padding: 0 0.6rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700; background: var(--paper-2); color: var(--muted); border: 1px solid var(--rule); white-space: nowrap; }
.pill.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill.is-warn { color: var(--danger); border-color: currentColor; background: transparent; }

/* Office filter chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.chip-btn { min-height: 2.5rem; padding: 0 1rem; border: 1px solid var(--field); border-radius: 999px; background: var(--paper); color: var(--text); font: 600 0.9rem var(--sans); cursor: pointer; }
.chip-btn:hover { border-color: var(--ink); color: var(--ink); }
.chip-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* Post cards */
.post-list { display: grid; gap: 1rem; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1.25rem; }
.post-card { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--ink); min-width: 0; }
.post-card:hover { border-color: var(--field); border-top-color: var(--ink); }
.post-photo { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-2); }
.post-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-body { display: grid; gap: 0.55rem; padding: 1.1rem 1.25rem 1.2rem; align-content: start; min-width: 0; }
.post-kicker { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.post-title { font-family: var(--serif); font-weight: 400; font-size: var(--step-1); line-height: 1.3; }
.post-title a { color: var(--ink); text-decoration: none; }
.post-title a:hover { text-decoration: underline; }
.post-excerpt { color: var(--text); font-size: 0.97rem; overflow-wrap: anywhere; }
.byline { font-size: 0.86rem; color: var(--muted); }
.byline .by-part { white-space: nowrap; }
.byline .by-who { color: var(--text); font-weight: 600; }
.byline .muted { font-weight: 400; }
.by-comments { font-weight: 600; }
.post-state { font-size: 0.88rem; color: var(--muted); background: var(--paper-2); border-left: 3px solid var(--stone); padding: 0.45rem 0.7rem; }
.post-state.is-returned { border-left-color: var(--danger); }
/* The newest news post leads, photo beside the text on wide screens */
.post-card.is-feature { border-top-color: var(--scarlet); }
.post-list > .post-card.is-feature.has-photo { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.post-list > .post-card.is-feature .post-photo { aspect-ratio: auto; min-height: 16rem; }
.post-list > .post-card.is-feature .post-title { font-size: var(--step-2); }
.post-list > .post-card.is-feature .post-body { padding: 1.5rem 1.6rem; }
@media (max-width: 760px) { .post-list > .post-card.is-feature.has-photo { grid-template-columns: 1fr; } .post-list > .post-card.is-feature .post-photo { min-height: 0; aspect-ratio: 16 / 9; } }
/* Other posts in a list: a small photo to the side */
.post-list > .post-card.has-photo:not(.is-feature) { grid-template-columns: 11rem minmax(0, 1fr); }
.post-list > .post-card.has-photo:not(.is-feature) .post-photo { aspect-ratio: auto; height: 100%; }
@media (max-width: 560px) { .post-list > .post-card.has-photo:not(.is-feature) { grid-template-columns: 1fr; } .post-list > .post-card.has-photo:not(.is-feature) .post-photo { aspect-ratio: 16 / 9; } }
.post-list.compact { gap: 0; border-top: 1px solid var(--rule); }
.post-list.compact > .post-card { border: 0; border-bottom: 1px solid var(--rule); background: transparent; }
.post-list.compact .post-body { padding: 1rem 0; }
.month-h { font-family: var(--sans); font-size: 0.9rem; font-weight: 700; color: var(--label); margin: 1rem 0 -0.25rem; }

/* Community page: feed beside the write box */
.community { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem); gap: 2rem clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 900px) { .community { grid-template-columns: 1fr; } .community .write-box { order: -1; position: static; } }
.write-box { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 4rem); border: 1px solid var(--rule); border-top: 4px solid var(--scarlet); background: var(--paper); padding: 1.25rem 1.3rem; display: grid; gap: 0.85rem; scroll-margin-top: 5rem; }
.write-box h2 { font-size: 1.3rem; }
.write-box .form { max-width: none; }
.write-box .btn[data-post-open] { justify-self: start; }
.write-box .rules { border-top: 1px solid var(--rule); padding-top: 0.8rem; }

/* Take-down tools under every post, comment and shout-out */
.mod-bar { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; font-size: 0.85rem; }
.mod-bar:empty { display: none; }
.mod-bar .link-btn { color: var(--muted); text-decoration-color: var(--rule); min-height: 2rem; }
.mod-bar .link-btn:hover { color: var(--ink); }
.mod-bar .link-btn.danger { color: var(--danger); }
.mod-bar .link-btn:disabled { text-decoration: none; cursor: default; color: var(--muted); }
.mod-panel { display: grid; gap: 0.75rem; max-width: 32rem; padding: 0.9rem 1rem; background: var(--paper-2); border-left: 4px solid var(--stone); }
.mod-panel.confirm { border-left-color: var(--danger); }
.mod-panel p { margin: 0; }
.mod-btns { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.small-btn { min-height: 2.5rem; padding: 0.45rem 0.95rem; font-size: 0.9rem; }
.gone-line { padding: 0.9rem 1.1rem; border: 1px dashed var(--rule); color: var(--muted); font-size: 0.95rem; }
.gone-line:focus { outline: 3px solid var(--focus); outline-offset: 2px; }

/* One post */
.crumbs { padding-top: 1.5rem; font-size: 0.92rem; }
.crumbs a { display: inline-flex; align-items: center; min-height: 1.75rem; }
.crumbs a::before { content: "\2190\00a0"; }
.article-wrap { padding-bottom: clamp(3rem, 2rem + 4vw, 5rem); }
.article { max-width: 46rem; display: grid; gap: 1.5rem; padding-top: 1rem; }
.article-head { display: grid; gap: 0.9rem; }
.article-head h1 { font-size: var(--step-4); line-height: 1.12; text-wrap: balance; overflow-wrap: anywhere; }
.article .kind { font-size: 0.85rem; font-weight: 700; color: var(--label); }
.article-by { display: flex; align-items: center; gap: 0.75rem; }
.article-photo { margin: 0; }
.article-photo img { width: 100%; height: auto; display: block; border: 1px solid var(--rule); }
.article-body { font-family: var(--serif); font-size: 1.08rem; line-height: 1.75; color: var(--text); }
.article-body p { margin: 0; overflow-wrap: anywhere; }
.article-body.prose { gap: 1.1rem; }
.article-foot { border-top: 1px solid var(--rule); padding-top: 0.75rem; display: grid; gap: 0.75rem; }
.comments { max-width: 46rem; margin-top: 3rem; display: grid; gap: 1.25rem; scroll-margin-top: 4rem; }
.comments h2 { font-size: var(--step-2); }
.comments h2 .count { color: var(--muted); font-family: var(--sans); font-size: 1rem; }
.comment-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.comment { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.9rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 5rem; }
.comment:target { background: var(--mine); box-shadow: -0.75rem 0 0 var(--mine), 0.75rem 0 0 var(--mine); }
.comment-main { display: grid; gap: 0.4rem; min-width: 0; }
.comment-by { font-size: 0.9rem; }
.comment-by strong { color: var(--ink); }
.comment-body p { margin: 0; overflow-wrap: anywhere; }
.comment-body p + p { margin-top: 0.6rem; }
.comment-form { max-width: none; }

/* Avatars: a photo, or initials on navy */
.avatar { width: 3.5rem; height: 3.5rem; border-radius: 50%; object-fit: cover; flex: none; display: inline-grid; place-items: center; background: var(--paper-2); border: 1px solid var(--rule); }
.avatar.sm { width: 2.5rem; height: 2.5rem; }
.avatar.is-initials { background: var(--ink); color: var(--paper); border-color: var(--ink); font: 700 1rem var(--sans); letter-spacing: 0.03em; }
.avatar.sm.is-initials { font-size: 0.82rem; }

/* People tabs (directory, offices, officers) */
.tabs { border-bottom: 1px solid var(--rule); margin-bottom: 1.5rem; }
.tabs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.75rem; }
.tabs a { display: block; padding: 0.75rem 0; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* Directory */
.dir-tools { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem 1.5rem; margin-bottom: 1.5rem; }
.dir-tools label { flex: 1 1 14rem; max-width: 22rem; }
.dir-tools p { margin: 0 0 0.75rem; }
.join-dir { margin-bottom: 1.5rem; }
.dir-office { padding-block: 1.5rem; border-top: 1px solid var(--rule); display: grid; gap: 1rem; }
.dir-office h2 { font-size: var(--step-2); display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.75rem; }
.dir-office.is-mine h2 .mine-flag { display: inline-block; }
.people-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }
.dir-person { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.9rem; align-items: start; padding: 1rem; border: 1px solid var(--rule); background: var(--paper); }
.dir-person.is-off { opacity: 0.6; border-style: dashed; }
.person-text { display: grid; gap: 0.2rem; min-width: 0; }
.person-name { font-family: var(--serif); font-size: 1.1rem; color: var(--ink); }
.person-title { font-size: 0.85rem; color: var(--label); font-weight: 600; }
.person-bio { font-size: 0.93rem; color: var(--text); overflow-wrap: anywhere; }
.profile-card { display: grid; gap: 0.6rem; }

/* Photo picker */
.photo-field { display: grid; gap: 0.75rem; }
.photo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.photo-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.photo-btns label.btn { display: inline-flex; font-size: 0.9rem; }
.photo-btns input[type="file"]:focus-visible + label.btn { outline: 3px solid var(--focus); outline-offset: 2px; }
.photo-preview { width: 10rem; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--rule); background: var(--paper-2); }
.photo-preview.is-square { width: 5.5rem; aspect-ratio: 1; border-radius: 50%; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Officers page */
.open-pos { margin-top: 2.5rem; max-width: 46rem; }
.open-pos h2 { font-size: var(--step-2); }

/* Documents: rights first */
.feature-link { display: grid; gap: 0.4rem; padding: 1.4rem 1.5rem; margin-bottom: 2rem; background: var(--band); color: var(--band-ink); text-decoration: none; border-left: 6px solid var(--scarlet); max-width: 46rem; }
.feature-link .fl-t { font-family: var(--serif); font-size: var(--step-2); }
.feature-link .fl-d { color: var(--band-muted); }
.feature-link:hover .fl-t { text-decoration: underline; }

/* Offices page: what each office has posted */
.office-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; font-size: 0.93rem; }
.office-feed li { overflow-wrap: anywhere; }
.of-shout { font-weight: 600; color: var(--label); }

/* Shout-out wall */
.shout-msg { overflow-wrap: anywhere; }
.shout-list .mod-bar { margin-top: 0.2rem; }

/* Search results */
.result-group { display: grid; gap: 0.75rem; margin-bottom: 2.5rem; }
.result-group h2 { font-size: var(--step-1); font-family: var(--sans); font-weight: 700; color: var(--ink); }
.result-group h2 .count { color: var(--muted); font-weight: 400; }
.results { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); max-width: 50rem; }
.results li { display: grid; gap: 0.25rem; padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
.results a { font-family: var(--serif); font-size: 1.12rem; overflow-wrap: anywhere; }
.result-meta { font-size: 0.82rem; color: var(--muted); }
.result-text { font-size: 0.95rem; color: var(--text); overflow-wrap: anywhere; }
mark { background: var(--mine); color: inherit; padding: 0 0.1em; box-shadow: inset 0 -2px 0 var(--stone); }

/* Congress cards */
.rep-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 1000px) { .rep-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .rep-grid { grid-template-columns: 1fr; } }
.state-block h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.75rem; }
.state-block.is-mine h3 .mine-flag { display: inline-block; }
.rep-card { display: grid; grid-template-rows: auto 1fr; background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--ink); min-width: 0; }
.rep-top { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; align-items: end; padding: 1.1rem 1.1rem 0; }
.rep-photo { width: 100%; height: auto; display: block; background: var(--paper-2); border: 1px solid var(--rule); }
.rep-id { display: grid; gap: 0.35rem; padding-bottom: 0.2rem; min-width: 0; }
.rep-body { display: grid; gap: 0.6rem; padding: 1rem 1.1rem 1.15rem; align-content: start; min-width: 0; }
.rep-name { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; color: var(--ink); line-height: 1.25; }
.rep-chamber { font-size: 0.85rem; color: var(--muted); }
.call { display: inline-flex; flex-wrap: wrap; align-items: center; min-height: 1.75rem; gap: 0.15rem 0.5rem; font-weight: 600; }
.call .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rep-body .btn.call { justify-content: flex-start; flex-direction: column; align-items: flex-start; gap: 0.2rem; line-height: 1.2; padding-block: 0.6rem; }
.rep-body .btn.call .num { font-weight: 400; opacity: 0.85; }
.rep-near { display: none; gap: 0.2rem; padding: 0.6rem 0.75rem; background: var(--mine); border-left: 3px solid var(--stone); }
.rep-near.is-mine { display: grid; }
.rn-k { font-size: 0.78rem; font-weight: 700; color: var(--label); }
.rn-a { font-size: 0.88rem; color: var(--text); overflow-wrap: anywhere; }
.rep-near .call { font-size: 0.92rem; }
.rep-all summary { cursor: pointer; font-size: 0.9rem; font-weight: 600; color: var(--link); min-height: 2rem; display: flex; align-items: center; }
.rep-all ul { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; gap: 0.5rem; font-size: 0.86rem; }
.rep-all .city { font-weight: 700; color: var(--ink); display: block; }
.rep-all .call { font-weight: 400; }
.rep-write { font-size: 0.9rem; }
@media (max-width: 380px) { .rep-top { grid-template-columns: 5rem minmax(0, 1fr); } }
.rep-card .seat-note { max-width: none; margin: 0; }

/* Officer screens: news editor, reviews, reports */
.news-admin { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (max-width: 960px) { .news-admin { grid-template-columns: 1fr; } }
.news-admin .form { max-width: none; }
.news-admin .actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.req-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--muted); }
.req-title { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); overflow-wrap: anywhere; }
.review-photo { max-width: 18rem; height: auto; border: 1px solid var(--rule); }
.review-body { font-size: 0.95rem; max-width: var(--measure); }
.review-body p { margin: 0; overflow-wrap: anywhere; }
.reported-text { margin: 0; padding: 0.7rem 0.9rem; background: var(--paper-2); border-left: 3px solid var(--danger); font-size: 0.95rem; overflow-wrap: anywhere; max-width: var(--measure); }
.req.report .req-actions { flex-direction: column; align-items: stretch; min-width: 14rem; }
@media (max-width: 760px) { .req { grid-template-columns: 1fr; } .req.report .req-actions { min-width: 0; } }

/* Member nav has more items: switch to the menu button sooner */
@media (min-width: 861px) and (max-width: 1180px) {
  .site-header.is-members .menu-btn { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.5rem 0.9rem; border: 1px solid rgb(255 255 255 / 0.5); border-radius: 4px; background: transparent; color: var(--band-ink); font: 600 0.9rem var(--sans); cursor: pointer; }
  .site-header.is-members .wrap { flex-wrap: wrap; }
  .site-header.is-members .nav { width: 100%; flex-direction: column; align-items: stretch; gap: 1rem; padding-bottom: 1rem; }
  .site-header.is-members .nav[data-open="false"] { display: none; }
  .site-header.is-members .nav ul { flex-direction: column; gap: 0; border-top: 1px solid rgb(255 255 255 / 0.2); }
  .site-header.is-members .nav li a { display: block; padding: 0.85rem 0; border-bottom: 1px solid rgb(255 255 255 / 0.2); }
  .site-header.is-members .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--stone); padding-left: 0.85rem; }
  .site-header.is-members .nav-search span { position: static; width: auto; height: auto; clip: auto; clip-path: none; }
}
@media (prefers-reduced-motion: no-preference) { .post-card, .chip-btn { transition: border-color 0.15s, background 0.15s, color 0.15s; } }
.subnav + .section.tight { padding-top: clamp(1.75rem, 1rem + 2vw, 2.75rem); }

/* v18: slideshow without captions. Photos only, steady height, controls on the right. */
.showcase .slide-archive { display: grid; grid-template-columns: 1fr; place-items: center; padding: 0; background: var(--panel); }
.showcase .slide-archive .archive-print { display: grid; place-items: center; width: 100%; height: 100%; padding: clamp(0.75rem, 2.5vw, 1.75rem); box-sizing: border-box; }
.showcase .slide-archive .archive-print img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.showcase .slide-bar { display: flex; justify-content: flex-end; align-items: center; min-height: 3rem; }
.showcase .slide-caption, .showcase .archive-quote { display: none; }

/* v18: office cards. A navy nameplate per office, the person to ask with a face, and a footer of next steps. */
.office-cards { gap: 1.5rem; }
.office-card { display: flex; flex-direction: column; gap: 0; padding: 0; border: 1px solid var(--rule); border-top: 0; background: var(--paper); scroll-margin-top: 5rem; overflow: hidden; }
.office-card .oc-head { position: relative; display: grid; gap: 0.15rem; padding: 1.35rem 1.5rem 1.25rem; background: var(--panel); color: var(--panel-ink); border-top: 5px solid var(--stone); }
.office-card h3 { color: var(--panel-ink); font-size: clamp(1.8rem, 1.5rem + 1vw, 2.25rem); font-weight: 400; line-height: 1.05; }
.office-card .oc-state { order: -1; margin: 0; color: var(--panel-muted); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em; }
.office-card .mine-flag { position: absolute; top: 1.2rem; right: 1.25rem; margin: 0; padding: 0.2rem 0.55rem; border-radius: 999px; background: #c41d23; color: #ffffff; font-size: 0.75rem; }
.office-card.is-mine { order: -1; box-shadow: none; border-color: var(--stone); }
.office-card.is-mine .oc-head { border-top-color: var(--scarlet); }
.office-card .oc-body { flex: 1; display: grid; align-content: start; gap: 1.25rem; padding: 1.25rem 1.5rem 1.4rem; }
.office-card .oc-part { border-top: 0; padding-top: 0; display: grid; gap: 0.55rem; }
.office-card h4 { font-family: var(--sans); font-size: 0.82rem; font-weight: 700; color: var(--label); }
.oc-person { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.8rem; align-items: center; padding: 0.7rem 0.8rem; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper-2); text-decoration: none; color: var(--text); }
.oc-person:hover { border-color: var(--stone); }
.oc-person .avatar { width: 3rem; height: 3rem; }
.oc-person .person { display: block; font-family: var(--serif); font-size: 1.1rem; font-weight: 400; color: var(--ink); }
.oc-person:hover .person { text-decoration: underline; text-underline-offset: 3px; }
.oc-person .oc-role { display: block; color: var(--muted); font-size: 0.9rem; }
.oc-open { display: grid; gap: 0.3rem; padding: 0.7rem 0.85rem; border: 1px dashed var(--field); border-radius: 6px; font-size: 0.95rem; }
.oc-open p { margin: 0; color: var(--muted); }
.oc-open a { font-weight: 700; }
.oc-feed { font-size: 0.95rem; }
.oc-feed > * + * { margin-top: 0.6rem; }
.office-card .oc-foot { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; padding: 0.85rem 1.5rem; border-top: 1px solid var(--rule); background: var(--paper-2); font-size: 0.92rem; font-weight: 600; }
.office-card:target { outline: 3px solid var(--stone); outline-offset: 3px; }
/* officers: photo cards that open each officer's profile */
.officer-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 1.5rem; }
.officer-card { display: grid; gap: 0.3rem; text-decoration: none; color: var(--text); }
.officer-photo { display: block; width: 100%; height: auto; aspect-ratio: 480 / 616; object-fit: cover; border-radius: 6px; margin-bottom: 0.6rem; background: var(--paper-2); }
.officer-photo.is-initials { display: grid; place-items: center; background: var(--panel); color: var(--panel-ink); font: 400 clamp(2.4rem, 1.8rem + 2vw, 3.4rem) var(--serif); letter-spacing: 0.04em; }
.officer-name { font-family: var(--serif); font-size: var(--step-1); color: var(--ink); }
.officer-role { color: var(--muted); font-size: 0.95rem; }
.officer-go { color: var(--link); font-size: 0.9rem; font-weight: 600; }
.officer-card:hover .officer-name, .officer-card:focus-visible .officer-name { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 30rem) { .officer-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; } .officer-name { font-size: 1.05rem; } }
.chapter-mail a, .footer-mail a { font-weight: 600; }
.footer-mail { margin-top: 0.75rem; }
/* one member's profile page */
.profile-view { display: grid; gap: 2rem; max-width: 46rem; }
.profile-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.avatar.is-large { width: 8rem; height: 8rem; font-size: 2.2rem; font-family: var(--serif); font-weight: 400; }
.profile-id { display: grid; gap: 0.55rem; min-width: 0; }
.profile-title { font-family: var(--serif); font-size: var(--step-1); color: var(--ink); margin: 0; }
.profile-office { margin: 0; }
.profile-bio { font-size: 1.1rem; max-width: 52ch; margin: 0; }
.profile-posts h2 { font-size: var(--step-1); margin-bottom: 0.6rem; }
.profile-posts .plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.person-link, .person-name a { color: inherit; }
.dir-officers { border-bottom: 1px solid var(--rule); padding-bottom: 1.5rem; }
@media (max-width: 30rem) { .profile-hero { grid-template-columns: 1fr; } .avatar.is-large { width: 6.5rem; height: 6.5rem; } }

/* v18: a calmer members header. Seven sections on the left; search, officer tools, account and sign out
   sit together as one quieter group after a divider, all in the same text style. Smaller logo. */
.site-header.is-members .wrap { padding-block: 0.8rem; }
.site-header.is-members .brand-logo { height: 4.4rem; }
.site-header.is-members .nav { gap: 1.5rem; }
.site-header.is-members .nav ul { gap: 1.15rem; }
.site-header.is-members .nav-account { gap: 1.1rem; padding-left: 1.5rem; border-left: 1px solid rgb(255 255 255 / 0.22); }
.site-header.is-members .nav-account > a { font-size: 0.88rem; color: var(--band-muted); }
.site-header.is-members .nav-account > a:hover, .site-header.is-members .nav-account > a[aria-current="page"] { color: var(--band-ink); }
.site-header.is-members .nav-account > a[hidden] { display: none; }
.site-header.on-poster { border-bottom: 4px solid var(--scarlet); }
@media (max-width: 1180px) {
  .site-header.is-members .nav-account { padding-left: 0; border-left: 0; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
  .site-header.is-members .nav-account > a { font-size: 0.95rem; color: var(--band-ink); }
}
@media (max-width: 860px) { .site-header.is-members .brand-logo { height: 3.6rem; } }
/* One header height on every page, public and members. */
.site-header .wrap { padding-block: 0.8rem; }
.site-header .brand-logo { height: 4.4rem; }
@media (max-width: 860px) { .site-header .brand-logo { height: 3.6rem; } }
.office-card .oc-foot { padding-block: 0.3rem; }
.office-card .oc-foot a { display: inline-flex; align-items: center; min-height: 2.75rem; }
