/* YBB board space. Built for reading comfort first: 20px body text, 52px tap targets, AA contrast
   or better everywhere, visible focus, and nothing that depends on color alone. Colors are the YBB
   brand tokens (deep teal and warm gold) from the website's design system. */

:root {
  --teal-900: #16232C;
  --teal-800: #1F323E;
  --teal-700: #2D4554;
  --teal-600: #3D5A6C;
  --teal-200: #CBD8DF;
  --teal-100: #E3EBEF;
  --teal-50: #F2F6F8;
  --gold-700: #8A5E0E;
  --gold-500: #EDB23B;
  --gold-300: #F8DBA1;
  --gold-100: #FDF6E7;
  --sand-100: #FAF8F5;
  --ink-900: #141A1F;
  --ink-700: #2F3A42;
  --ink-600: #46535C;
  --line: #6E7C85;
  --ok: #1D6A44;
  --ok-bg: #E7F4EC;
  --warn: #7A4A00;
  --warn-bg: #FFF4DD;
  --bad: #A3261B;
  --bad-bg: #FCECEA;
  --radius: 0.75rem;
  --tap: 3.25rem;
  --font-body: "Atkinson Hyperlegible", "Helvetica Neue", Arial, sans-serif;
  --font-head: "Poppins", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--sand-100);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 1.55;
}

img { max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--teal-900);
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); margin: 0.4rem 0 0.6rem; }
h2 { font-size: 1.5rem; margin: 0 0 0.6rem; }
h3 { font-size: 1.25rem; margin: 0 0 0.4rem; }
p { margin: 0 0 0.9rem; }

a { color: var(--teal-700); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--teal-900); text-decoration-thickness: 3px; }

:focus-visible { outline: 4px solid var(--gold-700); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 54rem; margin: 0 auto; padding: 0 1rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--gold-500); color: var(--teal-900); padding: 0.75rem 1.25rem; font-weight: 700; border-radius: var(--radius);
}
.skip:focus { top: 1rem; }

.demo-banner {
  margin: 0; padding: 0.6rem 1rem; text-align: center;
  background: var(--gold-300); color: var(--teal-900); font-size: 1.05rem;
}

/* ---------- header and footer ---------- */

.top { background: var(--teal-900); color: #fff; }
.top-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.25rem; padding-top: 0.5rem; padding-bottom: 0.5rem; }
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: var(--tap);
  color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem;
}
.brand:hover { color: var(--gold-500); }
.top :focus-visible { outline-color: var(--gold-500); }
.nav { flex: 1 1 auto; }
.nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.nav a {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 0.85rem;
  color: #fff; text-decoration: none; border-radius: 0.5rem; font-weight: 700;
}
.nav a:hover { background: var(--teal-700); color: #fff; }
.nav a[aria-current="page"] { box-shadow: inset 0 -4px 0 var(--gold-500); }
.signout { margin: 0; }
.link-button {
  min-height: var(--tap); padding: 0 0.85rem; background: none; border: 2px solid var(--teal-600);
  color: #fff; font: inherit; font-size: 1.05rem; border-radius: 0.5rem; cursor: pointer;
}
.link-button:hover { border-color: var(--gold-500); }

main { padding-top: 1.25rem; padding-bottom: 3rem; }
main:focus { outline: none; }

.foot { border-top: 1px solid var(--teal-200); background: #fff; color: var(--ink-600); font-size: 1.05rem; padding: 1.25rem 0 2rem; }

.crumb { margin: 0 0 0.25rem; }
.crumb a { display: inline-flex; align-items: center; gap: 0.4rem; min-height: var(--tap); font-weight: 700; }

.lede { font-size: 1.35rem; color: var(--ink-700); max-width: 44rem; margin-bottom: 1.5rem; }

/* ---------- buttons ---------- */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: var(--tap); padding: 0.6rem 1.4rem;
  background: #fff; color: var(--teal-900);
  border: 2px solid var(--teal-900); border-radius: var(--radius);
  font: inherit; font-weight: 700; font-size: 1.15rem; line-height: 1.25; text-align: center; text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--teal-50); color: var(--teal-900); }
.button-primary { background: var(--teal-900); color: #fff; }
.button-primary:hover { background: var(--teal-700); color: #fff; }
.button-small { min-height: 3rem; padding: 0.4rem 1rem; font-size: 1.05rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* ---------- cards and notices ---------- */

.card {
  background: #fff; border: 1px solid var(--teal-200); border-radius: var(--radius);
  padding: 1.25rem; margin: 0 0 1.25rem;
}
.card > :last-child { margin-bottom: 0; }
.card-primary { border: 2px solid var(--teal-900); }
.card-urgent { border: 3px solid var(--gold-500); background: var(--gold-100); }
.card-celebrate { border: 3px solid var(--gold-500); background: linear-gradient(180deg, var(--gold-100), #fff); }

.section { margin: 2rem 0; }
.muted { color: var(--ink-600); }
.block { display: block; }
.hint { color: var(--ink-600); font-size: 1.1rem; margin: 0.15rem 0 0.5rem; }
.optional { font-weight: 400; color: var(--ink-600); }

.notice { border-radius: var(--radius); padding: 1rem 1.25rem; margin: 0 0 1.25rem; }
.notice > :last-child { margin-bottom: 0; }
.notice-info { background: var(--teal-50); border-left: 6px solid var(--teal-700); }
.notice-title { font-weight: 700; margin-bottom: 0.4rem; }

.flash {
  display: flex; gap: 0.85rem; align-items: center;
  background: var(--ok-bg); border: 2px solid var(--ok); color: var(--ink-900);
  border-radius: var(--radius); padding: 0.85rem 1.1rem; margin: 0 0 1.25rem;
}
.flash p { margin: 0; font-weight: 700; }
.flash-mark {
  flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--ok); color: #fff; font-weight: 700;
}
.flash-celebrate { background: var(--gold-100); border-color: var(--gold-500); }
.flash-celebrate .flash-mark { background: var(--gold-500); color: var(--teal-900); animation: pop 0.6s ease-out both; }

@keyframes pop {
  0% { transform: scale(0.4); }
  60% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.error-summary { border: 3px solid var(--bad); background: var(--bad-bg); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 0 0 1.25rem; }
.error-summary ul { margin: 0; padding-left: 1.25rem; }
.error-summary a { color: var(--bad); font-weight: 700; }
.field-error { color: var(--bad); font-weight: 700; margin: 0.15rem 0 0.4rem; }
.has-error { border-left: 5px solid var(--bad); padding-left: 0.9rem; }

.badge {
  display: inline-block; padding: 0.1rem 0.6rem; border-radius: 999px;
  background: var(--teal-50); border: 1px solid var(--teal-200); color: var(--teal-800);
  font-size: 0.95rem; font-weight: 700; vertical-align: middle;
}
.badge-strong { background: var(--teal-800); border-color: var(--teal-800); color: #fff; }

details.more { margin: 1.25rem 0; border-top: 1px solid var(--teal-200); padding-top: 0.5rem; }
details.more > summary, details.bio > summary {
  min-height: var(--tap); display: flex; align-items: center; gap: 0.5rem;
  cursor: pointer; font-weight: 700; color: var(--teal-700); list-style: none;
}
details > summary::-webkit-details-marker { display: none; }
details.more > summary::before, details.bio > summary::before { content: "+"; display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border: 2px solid currentColor; border-radius: 50%; font-size: 1.1rem; line-height: 1; }
details[open].more > summary::before, details[open].bio > summary::before { content: "\2212"; }
details.more > :not(summary) { margin-top: 0.75rem; }

/* ---------- forms ---------- */

.field { margin: 0 0 1.25rem; border: 0; padding: 0; min-width: 0; }
.field-row { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.field-row > .field { flex: 1 1 14rem; }
label, legend { display: block; font-weight: 700; margin-bottom: 0.35rem; color: var(--ink-900); }
legend { padding: 0; font-size: 1.25rem; }
.small-label { font-size: 1.05rem; margin-top: 0.75rem; }

input[type="text"], input[type="email"], input[type="date"], input[type="datetime-local"], input:not([type]), select, textarea {
  width: 100%; min-height: var(--tap); padding: 0.6rem 0.8rem;
  font: inherit; font-size: 1.2rem; color: var(--ink-900); background: #fff;
  border: 2px solid var(--ink-600); border-radius: 0.5rem;
}
textarea { line-height: 1.5; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--teal-900); }
[aria-invalid="true"] { border-color: var(--bad); }

.choices { display: grid; gap: 0.6rem; }
.choices-row { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.choice {
  display: flex; align-items: center; gap: 0.75rem; min-height: var(--tap);
  padding: 0.55rem 0.9rem; margin: 0; font-weight: 400;
  border: 2px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer;
}
.choice:hover { border-color: var(--teal-700); }
.choice input { flex: none; width: 1.6rem; height: 1.6rem; margin: 0; accent-color: var(--teal-900); }
.choice:has(input:checked) { border-color: var(--teal-900); background: var(--teal-50); box-shadow: inset 0 0 0 1px var(--teal-900); }
.choice-card { align-items: flex-start; padding: 0.9rem 1rem; }
.choice-card input { margin-top: 0.15rem; }
.choice-card strong { display: block; font-size: 1.25rem; }
.choice-hint { display: block; color: var(--ink-600); font-size: 1.1rem; }
.choice-support:has(input:checked) { border-color: var(--ok); background: var(--ok-bg); box-shadow: inset 0 0 0 1px var(--ok); }
.choice-concern:has(input:checked) { border-color: var(--warn); background: var(--warn-bg); box-shadow: inset 0 0 0 1px var(--warn); }
.reveal[hidden] { display: none; }
.reveal { margin-top: 0.75rem; }
.counter { color: var(--ink-600); font-size: 1rem; margin: 0.25rem 0 0; }

/* ---------- election steps ---------- */

.election-top { margin-bottom: 1.25rem; }
.admin-link { margin: 0.25rem 0 0; }
.steps-compact { display: none; }
.demo-banner .short { display: none; }
.steps ol { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.steps li {
  display: flex; align-items: center; gap: 0.5rem; flex: 1 1 11rem;
  padding: 0.5rem 0.75rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--teal-200);
  font-size: 1.05rem; color: var(--ink-600);
}
.step-dot { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; border: 2px solid var(--line); font-weight: 700; }
.steps .done { color: var(--ink-700); }
.steps .done .step-dot { background: var(--teal-900); border-color: var(--teal-900); color: #fff; }
.steps .now { border: 2px solid var(--teal-900); color: var(--ink-900); font-weight: 700; background: var(--gold-100); }
.steps .now .step-dot { background: var(--gold-500); border-color: var(--gold-500); color: var(--teal-900); }
.round { display: inline-block; font-weight: 400; color: var(--ink-700); }

/* ---------- people ---------- */

.avatar {
  flex: none; display: inline-grid; place-items: center; border-radius: 50%; object-fit: cover;
  background: var(--teal-100); color: var(--teal-900); border: 2px solid var(--teal-200);
  font-family: var(--font-head); font-weight: 700;
}
.avatar-sm { width: 2.75rem; height: 2.75rem; font-size: 0.95rem; }
.avatar-md { width: 3.5rem; height: 3.5rem; font-size: 1.15rem; }
.avatar-lg { width: 5.5rem; height: 5.5rem; font-size: 1.7rem; }
.avatar.is-support { background: var(--gold-500); border-color: var(--teal-900); }
.avatar.is-concern { background: var(--warn-bg); border: 3px dashed var(--warn); color: var(--warn); }
.avatar.is-waiting { background: #fff; border: 2px dashed var(--line); color: var(--ink-600); }

.person { display: inline-flex; align-items: center; gap: 0.6rem; }
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.people-row { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; }
.people-row li { display: flex; align-items: center; gap: 0.75rem; }

.interest { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.interest > li { background: #fff; border: 1px solid var(--teal-200); border-radius: var(--radius); padding: 1rem; }

.role-title { margin-bottom: 0.2rem; }
.role-meta { color: var(--ink-600); font-size: 1.1rem; }
.slate { display: grid; gap: 0.25rem; }
.candidate { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-top: 1px solid var(--teal-100); }
.candidate:first-of-type { border-top: 0; }
.candidate h3 { font-size: 1.35rem; margin-bottom: 0.3rem; }
.candidate-body { flex: 1; min-width: 0; }
.statement, .concern {
  margin: 0.5rem 0 0.75rem; padding: 0.6rem 1rem; border-left: 5px solid var(--gold-500); background: var(--gold-100); border-radius: 0 0.5rem 0.5rem 0;
}
.statement p, .concern p { margin: 0 0 0.3rem; }
.statement footer { color: var(--ink-600); font-size: 1.05rem; }
.concern { border-left-color: var(--warn); background: var(--warn-bg); }

.compact-slate { list-style: none; margin: 0 0 0.75rem; padding: 0; }
.compact-slate li { padding: 0.35rem 0; border-bottom: 1px solid var(--teal-100); }

/* ---------- consensus status ---------- */

.status {
  background: #fff; border: 2px solid var(--teal-200); border-left: 8px solid var(--teal-700);
  border-radius: var(--radius); padding: 1.1rem 1.25rem; margin: 0 0 1.5rem;
}
.status-not-yet { border-left-color: var(--warn); }
.status-reached { border-color: var(--gold-500); border-left-color: var(--gold-500); background: linear-gradient(180deg, var(--gold-100), #fff 70%); }
.status-formal { border-left-color: var(--teal-900); }
.status-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.status-headline { display: flex; align-items: center; gap: 0.6rem; margin: 0.25rem 0 0.5rem; font-size: 1.6rem; }
.status-lotus { animation: pop 0.8s ease-out both; }
.round-pill { margin: 0; padding: 0.15rem 0.8rem; border-radius: 999px; background: var(--teal-900); color: #fff; font-weight: 700; font-size: 1rem; }
.status-note { margin: 0.75rem 0 0; font-weight: 700; color: var(--ink-700); }

.dots { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0.25rem 0 1rem; padding: 0; }
.dot { position: relative; }
.dot .avatar { transition: transform 0.3s ease; }
.dot-mark {
  position: absolute; right: -0.2rem; bottom: -0.2rem; display: grid; place-items: center;
  width: 1.25rem; height: 1.25rem; border-radius: 50%; font-size: 0.8rem; font-weight: 700; line-height: 1;
}
.dot-mark:empty { display: none; }
.dot.is-support .dot-mark { background: var(--teal-900); color: #fff; }
.dot.is-concern .dot-mark { background: var(--warn); color: #fff; }
.dot .is-support { transform: scale(1.05); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0.75rem; margin: 0; }
.facts > div { background: var(--teal-50); border-radius: 0.6rem; padding: 0.6rem 0.8rem; }
.facts dt { font-size: 1rem; color: var(--ink-600); font-weight: 700; }
.facts dd { margin: 0; font-weight: 700; }
.sec { font-weight: 400; font-size: 0.95rem; }

.responses { list-style: none; margin: 0; padding: 0; }
.response { display: flex; gap: 0.9rem; align-items: flex-start; padding: 0.9rem 0; border-top: 1px solid var(--teal-100); }
.response > div { flex: 1; min-width: 0; }
.response-name { font-weight: 700; margin: 0; }
.response-state { margin: 0; }
.response.is-support .response-state { color: var(--ok); font-weight: 700; }
.response.is-concern .response-state { color: var(--warn); font-weight: 700; }
.received { font-size: 1.05rem; color: var(--ink-700); background: var(--teal-50); border-radius: 0.5rem; padding: 0.4rem 0.7rem; margin: 0.4rem 0 0; }
.received-label { font-weight: 700; }

.your-position { font-size: 1.35rem; font-weight: 700; }
.your-position.is-support { color: var(--ok); }
.your-position.is-concern { color: var(--warn); }

/* ---------- home ---------- */

.next-step { border: 3px solid var(--teal-900); }
.next-step.is-urgent { border-color: var(--gold-500); background: var(--gold-100); }
.next-step.is-done { border-color: var(--ok); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.95rem; font-weight: 700; color: var(--ink-600); margin-bottom: 0.25rem; }
.next-text { font-size: 1.3rem; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.checklist li { display: flex; align-items: center; gap: 0.75rem; min-height: var(--tap); padding: 0.4rem 0.75rem; background: #fff; border: 1px solid var(--teal-200); border-radius: var(--radius); }
.check { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; border: 2px solid var(--line); font-weight: 700; }
.checklist .is-done .check { background: var(--gold-500); border-color: var(--teal-900); color: var(--teal-900); animation: pop 0.5s ease-out both; }
.checklist .is-done { color: var(--ink-700); }
.checklist .is-skipped { color: var(--ink-600); }

progress { width: 100%; height: 1.25rem; accent-color: var(--gold-500); }

/* ---------- admin ---------- */

.plain-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.plain-list > li { padding: 0.5rem 0; border-bottom: 1px solid var(--teal-100); }
.bullets { list-style: disc; padding-left: 1.4rem; }
.bullets > li { border: 0; padding: 0.2rem 0; }
.plain { padding-left: 1.2rem; }
.row-between { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 1rem; }
.attendance { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.6rem; }
.attendance li { display: grid; grid-template-columns: minmax(10rem, 1fr) minmax(12rem, 1.2fr); gap: 0.5rem 1rem; align-items: center; }
.attendance label { margin: 0; }
.slate-role { border-top: 1px solid var(--teal-100); padding-top: 1rem; }
.checks { background: var(--warn-bg); border-left: 6px solid var(--warn); border-radius: var(--radius); padding: 0.9rem 1.1rem; margin: 1rem 0; }
.checks ul { margin: 0; padding-left: 1.2rem; }
.check-block { font-weight: 700; }
.check-ok { color: var(--ok); font-weight: 700; }
.check-ok::before { content: "\2713  "; }
.check-ok-inline { color: var(--ok); font-weight: 700; }
.timing { border-radius: var(--radius); padding: 0.8rem 1rem; margin: 1rem 0; background: var(--teal-50); }
.timing-late { background: var(--warn-bg); border-left: 6px solid var(--warn); }
.timing-on_time { background: var(--ok-bg); border-left: 6px solid var(--ok); }
.timing p { margin: 0; }
.pm-row p { margin: 0.25rem 0; }
.formal-row { border-top: 1px solid var(--teal-100); padding-top: 0.75rem; }

/* ---------- formats and scripts ---------- */

.format-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.85rem; margin: 0 0 1.25rem; }
.format {
  display: flex; flex-direction: column; gap: 0.3rem; min-height: 6rem; padding: 1rem 1.1rem;
  background: #fff; border: 2px solid var(--teal-200); border-radius: var(--radius);
  color: var(--ink-900); text-decoration: none;
}
.format strong { color: var(--teal-900); font-size: 1.25rem; }
.format span { color: var(--ink-600); font-size: 1.05rem; }
.format:hover { border-color: var(--teal-900); color: var(--ink-900); }
.format-primary { border-color: var(--teal-900); background: var(--teal-900); }
.format-primary strong, .format-primary span { color: #fff; }
.format-primary:hover { background: var(--teal-700); }

.script { padding-left: 1.75rem; margin: 0 0 1rem; }
.script li { margin-bottom: 0.5rem; padding-left: 0.25rem; }
.script-large { font-size: 1.5rem; line-height: 1.5; }
.script-large li { margin-bottom: 0.9rem; }
.phone-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.phone-steps > li { counter-increment: step; }
.phone-steps > li > h2::before { content: counter(step) ". "; color: var(--gold-700); }

.securus-parts { list-style: none; margin: 0; padding: 0; }
.part-title { margin: 0; }
.char-count { margin: 0; font-weight: 700; color: var(--ok); }
.securus-text { font-size: 1.1rem; background: var(--teal-50); margin: 0.75rem 0; }
.copy-status { font-weight: 700; color: var(--ok); }

.preview { white-space: pre-wrap; font-family: var(--font-body); font-size: 1.1rem; background: #fff; border: 1px solid var(--teal-200); border-radius: var(--radius); padding: 1rem; overflow-x: auto; }

/* ---------- result ---------- */

.record-seal { display: flex; gap: 1rem; align-items: flex-start; border: 3px solid var(--gold-500); background: linear-gradient(180deg, var(--gold-100), #fff); }
.fingerprint code { font-size: 1.1rem; background: #fff; padding: 0.1rem 0.4rem; border-radius: 0.3rem; border: 1px solid var(--teal-200); }
.officers { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.officer { display: flex; gap: 1rem; align-items: center; margin: 0; }
.officer p { margin: 0; }
.officer-role { font-weight: 700; color: var(--teal-700); }
.officer-name { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; color: var(--teal-900); }
.participation { padding-left: 1.3rem; }
.participation li { margin-bottom: 0.4rem; }

/* ---------- roster, bylaws, history ---------- */

.roster { list-style: none; margin: 0; padding: 0; }
.member { display: flex; gap: 1rem; align-items: flex-start; }
.member-body { flex: 1; min-width: 0; }
.member-name { margin-bottom: 0.15rem; }
.member-role { font-weight: 700; color: var(--teal-700); margin-bottom: 0.4rem; }
.member.is-former { opacity: 0.8; }

.bylaws-toc { list-style: none; margin: 0; padding: 0; }
.bylaws-toc > li { margin-bottom: 1.5rem; }
.bylaws-toc h2 { font-size: 1.3rem; }
.bylaw p { max-width: 42rem; }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin: 1rem 0; }
.pager a { display: inline-flex; align-items: center; gap: 0.4rem; min-height: var(--tap); font-weight: 700; }

.audit { list-style: none; margin: 0; padding: 0; }
.audit-item { padding: 0.85rem 0; border-top: 1px solid var(--teal-200); }
.audit-item.is-behalf { border-left: 5px solid var(--teal-700); padding-left: 0.9rem; }
.audit-when { color: var(--ink-600); font-size: 1.05rem; margin-bottom: 0.2rem; }
.audit-what { margin-bottom: 0.2rem; }
.audit-link { font-size: 1.05rem; margin: 0; }
.versions { list-style: none; margin: 0; padding: 0; }
.diff { margin: 0; display: grid; gap: 0.4rem; }
.diff > div { display: grid; grid-template-columns: minmax(8rem, 12rem) 1fr; gap: 0.75rem; }
.diff dt { font-weight: 700; color: var(--ink-600); }
.diff dd { margin: 0; overflow-wrap: anywhere; }
del { color: var(--bad); }
ins { color: var(--ok); text-decoration: none; font-weight: 700; }

.mailbox { list-style: none; margin: 0; padding: 0; }
.mail-subject { font-weight: 700; font-size: 1.25rem; }
.mail-body { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--teal-50); padding: 0.75rem 1rem; border-radius: 0.5rem; }
.form-narrow { max-width: 34rem; }
code { overflow-wrap: anywhere; }

/* ---------- small screens ---------- */

@media (max-width: 40rem) {
  body { font-size: 1.15rem; }
  .demo-banner { font-size: 1rem; padding: 0.4rem 1rem; }
  .demo-banner span:not(.short) { display: none; }
  .demo-banner .short { display: inline; }
  .top-inner { gap: 0 0.5rem; }
  .brand { font-size: 1.1rem; }
  .brand img { width: 32px; height: 32px; }
  .nav { order: 3; flex-basis: 100%; }
  .nav ul { gap: 0; justify-content: space-between; }
  .nav a { padding: 0 0.5rem; font-size: 1.05rem; }
  .signout { margin-left: auto; }
  .link-button { min-height: 3rem; }
  .steps-compact {
    display: block; margin: 0; padding: 0.6rem 0.9rem; border-radius: var(--radius);
    background: var(--gold-100); border: 2px solid var(--teal-900); font-weight: 700; font-size: 1.05rem;
  }
  .steps ol { display: none; }
  .lede { font-size: 1.2rem; }
  .card { padding: 1rem; }
  .candidate { flex-direction: column; }
  .attendance li { grid-template-columns: 1fr; }
  .diff > div { grid-template-columns: 1fr; gap: 0.1rem; }
  .steps li { flex-basis: 100%; }
  .record-seal { flex-direction: column; }
  .button { width: 100%; }
  .button-row .button { width: auto; flex: 1 1 auto; }
  .link-button { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  body { background: #fff; color: #000; font-size: 14pt; }
  .top, .foot, .skip, .demo-banner, .button, .button-row, .crumb, .steps, .admin-link, details.more, form { display: none !important; }
  .card, .status { border: 1px solid #000; background: #fff; }
  a { color: #000; text-decoration: none; }
  .script-large { font-size: 18pt; }
}
