/* Chapter Yearbook. Calm, editorial, one accent. */

:root {
  --paper: #f6f3ec;
  --surface: #fffdf8;
  --surface-2: #f0ece3;
  --ink: #1f2933;
  --ink-2: #5b6470;
  --ink-3: #8a9099;
  --navy: #14213d;
  --navy-2: #24365f;
  --gold: #a8842a;
  --gold-2: #d9c48a;
  --line: #e6e1d6;
  --line-2: #d5cfc1;
  --ok: #2f7d4f;
  --ok-bg: #e7f3ec;
  --warn: #9a6a12;
  --warn-bg: #f7efd9;
  --danger: #b03a2e;
  --danger-bg: #f8e6e3;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --on-brand: #ffffff;
  --shadow: 0 10px 30px rgba(20, 33, 61, .10);
  color-scheme: light;
}
[data-theme="dark"] {
  --paper: #121620;
  --surface: #1a2030;
  --surface-2: #222a3d;
  --ink: #e9e6df;
  --ink-2: #b2b6bf;
  --ink-3: #7d8593;
  --navy: #dfe6f5;
  --navy-2: #c5cfe6;
  --gold: #d3b46a;
  --gold-2: #7a6535;
  --line: #2b3346;
  --line-2: #3a4359;
  --ok-bg: #1d3a2b; --warn-bg: #3a2f14; --danger-bg: #3d1f1b;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
[data-theme="dark"] { --on-brand: #12151c; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font: 15px/1.5 var(--sans); min-height: 100vh; }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a.plink, .prose a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a.plink:hover { text-decoration-color: var(--navy); }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; line-height: 1.2; }
h1 { font-size: 28px; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }
p { max-width: 68ch; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 12.5px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; z-index: 100; }
[hidden] { display: none !important; }

/* ---------- top bar ---------- */
/* One layer for everything a page draws, below the header, the menu, a modal
   and a toast. Without it a positioned or sticky element inside a page (a form
   control in a sticky card, a card scrolling under the header) paints over the
   chrome it should pass behind. */
.main { position: relative; z-index: 0; }
.topbar { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); }
.topbar .wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; height: 54px; display: flex; align-items: center; gap: 20px; }
.brand { font-family: var(--serif); font-size: 19px; line-height: 1.1; white-space: nowrap; display: flex; align-items: center; gap: 10px; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { padding: 6px 12px; border-radius: 999px; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a.active { background: var(--navy); color: var(--on-brand); }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: 42px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-width: 200px; padding: 6px; z-index: 45; }
.menu-panel a, .menu-panel button { display: block; width: 100%; text-align: left; padding: 7px 11px; border-radius: 8px; background: none; border: 0; font: inherit; color: var(--ink); cursor: pointer; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--surface-2); }
.menu-panel .sep { height: 1px; background: var(--line); margin: 6px 0; }

/* ---------- bottom tab bar (mobile) ---------- */
.tabbar { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface); border-top: 1px solid var(--line); z-index: 40; padding-bottom: env(safe-area-inset-bottom); overflow-x: auto; scrollbar-width: none; }
.tabbar::-webkit-scrollbar { display: none; }
.tabbar a { flex: 1 0 auto; min-width: 62px; text-align: center; padding: 9px 8px; font-size: 11.5px; color: var(--ink-2); font-weight: 500; }
.tabbar a.active { color: var(--navy); font-weight: 700; }

/* ---------- layout ---------- */
.main { max-width: 1120px; margin: 0 auto; padding: 24px 20px 88px; }
.page-head { margin-bottom: 20px; }
.title-with-icon { display: inline-flex; align-items: center; gap: 8px; }
.page-head h1 { margin-bottom: 3px; }
.page-head p { color: var(--ink-2); }
.page-head .row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.section { margin-bottom: 28px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.section-head h2 { font-size: 19px; }
.section-head a { color: var(--ink-2); font-size: 13.5px; }
.eyebrow { font-size: 10.5px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 6px; }
.back { display: inline-block; color: var(--ink-2); font-size: 13.5px; margin-bottom: 12px; }
.back:hover { color: var(--ink); }
.stack > * + * { margin-top: 10px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 8px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs a { padding: 8px 12px; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-weight: 500; }
.tabs a.active { color: var(--ink); border-color: var(--navy); }
.subnav { display: flex; flex-direction: column; gap: 2px; }
.subnav a { padding: 7px 11px; border-radius: 9px; color: var(--ink-2); }
.subnav a.active { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.with-subnav { display: grid; grid-template-columns: 178px minmax(0, 1fr); gap: 26px; align-items: start; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.card.tight { padding: 12px 14px; }
.card.pinned { border-color: var(--gold-2); }
.card.quiet { background: transparent; border-style: dashed; }
.list > .item { padding: 12px 0; border-top: 1px solid var(--line); }
.list > .item:first-child { border-top: 0; padding-top: 0; }
.item-title { font-weight: 600; }
.meta { color: var(--ink-3); font-size: 12.5px; }
.empty { color: var(--ink-3); padding: 18px 0; text-align: center; font-style: italic; }
.prose { white-space: pre-line; }
.prose p + p { margin-top: 9px; }

/* people cards */
.pcard { display: flex; align-items: center; gap: 10px; text-align: left; padding: 9px 12px 9px 9px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; transition: transform .12s ease, border-color .12s ease; }
.pcard:hover { transform: translateY(-2px); border-color: var(--line-2); }
.pcard .avatar { margin: 0; }
.pcard .avatar-lg { width: 46px; height: 46px; font-size: 16px; }
.pcard-text { min-width: 0; }
.pcard .name, .pcard .sub, .pcard .sub2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .name { font-family: var(--serif); font-size: 15.5px; line-height: 1.25; }
.pcard .sub { color: var(--ink-2); font-size: 12px; line-height: 1.3; margin-top: 2px; }
.pcard .sub2 { color: var(--ink-3); font-size: 11px; line-height: 1.3; margin-top: 1px; }
.group-title { font-family: var(--serif); font-size: 18px; margin: 18px 0 8px; padding-bottom: 5px; border-bottom: 1px solid var(--line); }
.group-title:first-child { margin-top: 0; }

/* person page */
.hero { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 22px; align-items: start; margin-bottom: 26px; }
.hero h1 { font-size: 31px; margin-bottom: 3px; }
.hero .sub { color: var(--ink-2); font-size: 15.5px; }
.hero .chips { margin: 14px 0 18px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 22px; }
.facts dt { font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-bottom: 2px; }
.facts dd { margin-bottom: 5px; }
.family-row { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-top: 1px solid var(--line); }
.family-row:first-of-type { border-top: 0; }
.milestone { display: flex; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.milestone .when { color: var(--ink-3); font-size: 13px; min-width: 84px; padding-top: 2px; }

/* ---------- avatars, chips, badges ---------- */
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; object-fit: cover; color: #fff; font-weight: 600; font-family: var(--sans); flex: none; vertical-align: middle; }
.avatar-xs { width: 26px; height: 26px; font-size: 10px; }
.avatar-sm { width: 32px; height: 32px; font-size: 12px; }
.avatar-md { width: 44px; height: 44px; font-size: 16px; }
.avatar-lg { width: 76px; height: 76px; font-size: 26px; }
.avatar-xl { width: 148px; height: 148px; font-size: 46px; border-radius: 20px; }
.avatar-stack { display: flex; }
.avatar-stack .avatar { margin-left: -8px; border: 2px solid var(--surface); }
.avatar-stack .avatar:first-child { margin-left: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 12px; font-weight: 500; white-space: nowrap; }
.chip.gold { background: var(--warn-bg); color: var(--warn); }
.chip.navy { background: var(--navy); color: var(--on-brand); }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.danger { background: var(--danger-bg); color: var(--danger); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.stars { color: var(--gold); letter-spacing: 1px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 13px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--ink-3); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-primary { background: var(--navy); border-color: var(--navy); color: var(--on-brand); }
.btn-primary:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: transparent; color: var(--ink); }
.btn-danger { color: var(--danger); border-color: var(--danger-bg); background: var(--danger-bg); }
.btn-sm { padding: 4px 9px; font-size: 12.5px; border-radius: 7px; }
.btn.on { background: var(--ok-bg); border-color: var(--ok-bg); color: var(--ok); }
.btn-row { display: flex; gap: 6px; flex-wrap: wrap; }
.linkish { background: none; border: 0; color: var(--ink-2); font: inherit; font-size: 14px; cursor: pointer; padding: 0; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.field label, .field > span { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.field .hint { font-size: 12.5px; color: var(--ink-3); }
input[type="text"], input[type="email"], input[type="number"], input[type="date"], input[type="time"], input[type="search"], input[type="url"], select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14.5px;
}
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: transparent; }
/* Everything that can be reached by keyboard says so. Buttons, links, tabs,
   chips and cards were relying on the browser default, which several of the
   darker surfaces here swallow. */
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 6px;
}
.btn-primary:focus-visible, .btn-danger:focus-visible { outline-color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink); }
.check input { width: 18px; height: 18px; accent-color: var(--navy); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.search { position: relative; }
.search input { padding-left: 14px; }
.segmented { display: inline-flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.segmented button { border: 0; background: var(--surface); padding: 6px 12px; font: inherit; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.segmented button + button { border-left: 1px solid var(--line-2); }
.segmented button.on { background: var(--navy); color: var(--on-brand); }

/* ---------- events ---------- */
.event-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.event-row:first-child { border-top: 0; }
.date-block { text-align: center; line-height: 1.1; }
.date-block .d { font-family: var(--serif); font-size: 24px; }
.date-block .w { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.event-row .title { font-weight: 600; font-size: 15px; }
.event-row .meta { margin-top: 2px; }
.rsvp-box { position: sticky; top: 70px; z-index: 1; }
.seat-bar { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin: 10px 0 6px; }
.seat-bar i { display: block; height: 100%; background: var(--navy); }

/* An event row in the narrow column keeps to two lines: the detail is one line
   with an ellipsis rather than a three line wrap. */
.cols aside .event-row { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; padding: 9px 0; }
.cols aside .event-row .title { font-size: 14px; line-height: 1.25; }
.cols aside .event-row .meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cols aside .date-block .d { font-size: 20px; }


/* ---------- announcements ---------- */
.ann { padding: 16px 18px; }
.ann h2 { font-size: 19px; margin: 4px 0 6px; }
.ann .body { white-space: pre-line; margin-bottom: 12px; }
.ann .foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px; }
.react { border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 3px 9px; font: inherit; font-size: 12.5px; cursor: pointer; color: var(--ink-2); }
.react.on { background: var(--surface-2); border-color: var(--ink-3); color: var(--ink); }
.comments { margin-top: 10px; padding-left: 12px; border-left: 2px solid var(--line); }
.comment { padding: 6px 0; }
.comment .meta { margin-bottom: 2px; }
.compose { display: flex; gap: 8px; margin-top: 10px; }
.compose input { flex: 1; }

/* ---------- tables, numbers ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink-3); padding: 6px 8px; font-weight: 700; }
.table td { padding: 8px 7px; border-top: 1px solid var(--line); vertical-align: top; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
.table .btn-row { flex-wrap: nowrap; }
.numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(136px, 1fr)); gap: 10px; }
.number { padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; }
.number b { display: block; font-family: var(--serif); font-size: 25px; font-weight: 500; }
.number span { color: var(--ink-2); font-size: 12.5px; }
.bar { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--navy); }
.bar.gold i { background: var(--gold); }
.tier-Engaged { color: var(--ok); } .tier-Steady { color: var(--warn); } .tier-Quiet { color: var(--danger); }

/* ---------- modal, toast ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(20, 33, 61, .45); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; z-index: 50; overflow-y: auto; }
.modal { background: var(--surface); border-radius: 18px; width: 100%; max-width: 560px; box-shadow: var(--shadow); }
.modal.wide { max-width: 820px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 8px; }
.modal-head h2 { font-size: 19px; }
.modal-body { padding: 6px 18px 18px; }
.toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 60; pointer-events: none; }
.toast { background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; font-size: 14px; opacity: 0; transform: translateY(8px); transition: all .25s ease; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: none; }
.toast.err { background: var(--danger); color: #fff; }
.toast.ok { background: var(--ok); color: #fff; }

/* ---------- sign in ---------- */
.signin { min-height: calc(100vh - 80px); display: grid; place-items: center; }
.signin .card { width: 100%; max-width: 420px; padding: 28px 28px 24px; }
.signin h1 { font-size: 26px; margin: 4px 0 3px; }
.signin .lede { color: var(--ink-2); margin-bottom: 18px; }
.notice { padding: 10px 12px; border-radius: 9px; background: var(--warn-bg); color: var(--warn); font-size: 13.5px; margin-bottom: 12px; }
.notice.ok { background: var(--ok-bg); color: var(--ok); }
.notice.danger { background: var(--danger-bg); color: var(--danger); }

/* ---------- chapter branding ---------- */
.brand-logo { height: 34px; width: auto; max-width: 140px; object-fit: contain; display: block; }
.brand-text { display: block; line-height: 1.12; }
.brand-text small { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: 2.2px; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 3px; }
.signin-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-family: var(--serif); font-size: 20px; line-height: 1.15; }
.signin-brand .brand-logo { height: 40px; }
.brand-logo-preview { max-width: 100%; max-height: 120px; object-fit: contain; margin: 10px auto; display: block; }
.color-row { display: flex; gap: 8px; align-items: center; }
.color-row input[type="color"] { width: 46px; height: 42px; padding: 2px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); cursor: pointer; flex: none; }
.color-row input[type="text"] { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }

/* ---------- celebrations by month ---------- */
.month-block + .month-block { margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); }
.month-head { font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 5px; }
.cel { display: flex; gap: 8px; padding: 3px 0; font-size: 13.5px; align-items: baseline; }
.cel-when { color: var(--ink-3); font-variant-numeric: tabular-nums; min-width: 46px; flex: none; }
.cel-icon { flex: none; width: 17px; text-align: center; font-size: 12.5px; }
.cel-mark { color: var(--ink-2); }

/* ---------- get to know ---------- */
.spot-head { gap: 11px; margin-bottom: 10px; }
.spot .avatar-lg { width: 64px; height: 64px; font-size: 22px; }
.spot-name { font-family: var(--serif); font-size: 18px; line-height: 1.15; }
.spot-bio { font-size: 13.5px; color: var(--ink-2); margin-bottom: 10px; }
.spot-facts { grid-template-columns: 1fr 1fr; gap: 8px 14px; margin-bottom: 2px; }
.spot-facts dd { margin-bottom: 0; font-size: 13.5px; }
.spot-block { margin-top: 9px; }
.spot-block dt { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-bottom: 6px; }
.spot-fact { margin-top: 9px; font-style: italic; }
.spot-actions { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }

/* ---------- reactions ---------- */
.react-add { font-weight: 700; color: var(--ink-3); padding: 4px 11px; }
.react-add:hover { color: var(--ink); }
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; }
.emoji-pick { font-size: 24px; line-height: 1; padding: 10px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; }
.emoji-pick:hover { border-color: var(--ink-3); background: var(--surface-2); }

.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink-2); cursor: pointer; flex: none; }
.icon-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.icon-btn:active svg { transform: rotate(-90deg); }
.icon-btn svg { transition: transform .25s ease; }

.nudge { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; border-color: var(--gold-2); }

.bio-line { font-size: 17.5px; line-height: 1.45; max-width: 60ch; }
.section-head .linkish { font-size: 13px; }

.officer-card { display: flex; flex-direction: column; }
.officer-card .eyebrow { margin-bottom: 0; }

/* ---------- chapter seat editor ---------- */
.seat-move { white-space: nowrap; width: 1%; }
.seat-move .icon-btn { width: 24px; height: 22px; padding: 0; }
#seats-table input[type="text"], #kinds-table input[type="text"] { min-width: 150px; }
#kinds-table input[type="color"] { width: 46px; height: 30px; padding: 2px; border-radius: 7px; }

/* ---------- photo editor ---------- */
.photo-edit { display: grid; justify-items: center; gap: 12px; }
.photo-frame { position: relative; overflow: hidden; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); touch-action: none; }
.photo-frame canvas { display: block; cursor: grab; }
.photo-frame canvas:active { cursor: grabbing; }
.photo-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.photo-zoom { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.photo-zoom input[type="range"] { width: 150px; }
.photo-edit .actions { width: 100%; }

/* ---------- sessions ---------- */
.session-list { display: grid; gap: 2px; }
.session-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.session-row:first-child { border-top: 0; }

/* ---------- exec committee ladders ---------- */
.ladders { display: grid; grid-template-columns: repeat(auto-fill, minmax(252px, 1fr)); gap: 10px; align-items: start; }
.ladder { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 11px; }
.ladder-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--navy); font-weight: 700; padding-bottom: 8px; border-bottom: 2px solid var(--navy); margin-bottom: 8px; }
.ladder-term { font-size: 10px; letter-spacing: 0.4px; text-transform: none; color: var(--ink-3); font-weight: 600; white-space: nowrap; }
.rung { padding: 6px 0 6px 11px; border-left: 2px solid var(--line-2); position: relative; }
.rung + .rung { margin-top: 2px; }
.rung::before { content: ""; position: absolute; left: -5px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--navy); }
.rung-incoming::before { background: var(--gold); }
.rung-volunteer::before { background: var(--ok); }
.rung-empty::before { background: var(--surface); border: 2px solid var(--line-2); }
.rung-title { font-size: 10px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-bottom: 3px; }
.rung-person { display: flex; align-items: center; gap: 7px; padding: 1px 0; min-width: 0; }
.rung-person + .rung-person { margin-top: 4px; }
.rung-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rung-person:hover .rung-name { text-decoration: underline; text-underline-offset: 3px; }
.rung-none { font-size: 13px; color: var(--ink-3); font-style: italic; }
.rung-note { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
@media (max-width: 720px) {
  .ladders { grid-template-columns: 1fr; }
}

/* ---------- committees before this one ---------- */
.past-committees { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 12px; }
.past-committees > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-2); list-style: none; }
.past-committees > summary::-webkit-details-marker { display: none; }
.past-committees > summary::before { content: "B8"; display: inline-block; margin-right: 7px; color: var(--ink-3); transition: transform .15s ease; }
.past-committees[open] > summary::before { transform: rotate(90deg); }
.past-years { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 12px; }
.past-year { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; }
.past-year-head { font-size: 11px; letter-spacing: 1.2px; font-weight: 700; color: var(--ink-3); margin-bottom: 5px; }
.past-row { font-size: 13.5px; padding: 2px 0; }
.past-seat { color: var(--ink-3); }
.past-row a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- members map ---------- */
.map-card { padding: 10px; }
.map-frame { position: relative; overflow: hidden; border-radius: 10px; background: var(--surface-2); margin: 0 auto; max-width: 100%; touch-action: none; }
.map-frame[data-interactive] { cursor: grab; }
.map-frame[data-interactive]:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.map-frame.dragging { cursor: grabbing; }
.map-layer { position: absolute; inset: 0; }
.map-frame.dragging .map-layer { will-change: transform; }
.map-tile { position: absolute; width: 256px; height: 256px; user-select: none; -webkit-user-drag: none; }
.map-pin { position: absolute; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--navy); color: var(--on-brand); font-weight: 700; font-size: 12px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .85), 0 2px 6px rgba(0, 0, 0, .3); }
.map-pin:hover { transform: scale(1.08); }
.map-name { position: absolute; transform: translateX(-50%); font-size: 11px; font-weight: 600; color: #1f2933; background: rgba(255, 255, 255, .82); padding: 0 4px; border-radius: 4px; white-space: nowrap; pointer-events: none; }
.map-controls { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 4px; }
.map-btn { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: 8px; background: rgba(255, 255, 255, .94); color: #1f2933; font: inherit; font-size: 16px; font-weight: 700; line-height: 1; cursor: pointer; box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.map-btn:hover { background: #fff; border-color: var(--ink-3); }
.map-btn-fit { font-size: 11px; letter-spacing: .4px; }
.map-credit { position: absolute; right: 0; bottom: 0; background: rgba(255, 255, 255, .8); font-size: 10px; padding: 1px 5px; border-radius: 4px 0 0 0; }
.map-credit a { color: #1f2933; }
.map-foot { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; gap: 10px; }
.map-foot .chips { justify-content: flex-end; }
a.chip:hover { background: var(--navy); color: var(--on-brand); }

.cal-band { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }

/* ---------- program year calendar ---------- */
.filter-bar { gap: 8px; margin-bottom: 14px; }
.cal-day { text-decoration: none; }
.cal { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.cal-month { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 9px 9px; }
.cal-mh { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 5px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; }
.cal-dow { font-size: 9px; color: var(--ink-3); text-align: center; font-weight: 700; padding-bottom: 2px; }
.cal-pad { height: 26px; }
.cal-day { height: 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 10.5px; color: var(--ink-3); border: 0; background: none; padding: 0; font-family: inherit; border-radius: 6px; position: relative; }
.cal-day.has { cursor: pointer; }
.cal-mark { display: flex; align-items: center; justify-content: center; width: 19px; height: 19px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 10.5px; line-height: 1; transition: transform .1s ease; }
.cal-day.has:hover .cal-mark { transform: scale(1.14); }
.cal-day.today { outline: 1.5px solid var(--gold); outline-offset: -1px; }
.cal-day.today:not(.has) { color: var(--gold); font-weight: 700; }
.cal-day.on .cal-mark { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--ink); }
.cal-dots { display: flex; gap: 1.5px; position: absolute; bottom: 0; }
.cal-dots i { width: 3.5px; height: 3.5px; border-radius: 50%; display: block; }
@media (max-width: 720px) {
  .cal { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .cols { grid-template-columns: 1fr; gap: 32px; }
  .with-subnav { grid-template-columns: 1fr; gap: 16px; }
  .subnav { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .subnav a { white-space: nowrap; }
  .hero { grid-template-columns: 1fr; gap: 20px; }
  .avatar-xl { width: 112px; height: 112px; font-size: 38px; }
  .hero h1 { font-size: 26px; }
  .two, .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .topbar .wrap { height: 50px; padding: 0 14px; gap: 10px; }
  .brand-text { max-width: 52vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; }
  .brand-logo { height: 28px; }
  .nav { display: none; }
  .tabbar { display: flex; }
  .main { padding: 18px 14px 80px; }
  h1 { font-size: 24px; }
  .grid { grid-template-columns: 1fr; gap: 6px; }
  .pcard { padding: 8px 10px 8px 8px; }
  .pcard .name { font-size: 15px; }
  .pcard .avatar-lg { width: 42px; height: 42px; font-size: 15px; }
  .event-row { grid-template-columns: 46px minmax(0, 1fr); }
  .event-row > :last-child { grid-column: 2; }
  .rsvp-box { position: static; }
  .modal-back { padding: 0; align-items: flex-end; }
  .modal { border-radius: 18px 18px 0 0; max-height: 92vh; overflow-y: auto; }
  .signin .card { padding: 28px 22px; }
}
@media print {
  .topbar, .tabbar, .btn, .toasts { display: none !important; }
  .main { padding: 0; }
}
