/* Members Portal
   Palette: deep station navy, cool concrete paper, reflective-stripe amber.
   Type: Barlow (road-sign lineage) for text, Barlow Condensed for numerals and headings. */

:root {
  --navy: #14324F;
  --navy-deep: #0C2236;
  --paper: #EEF1F4;
  --white: #FFFFFF;
  --ink: #18212B;
  --muted: #566476;
  --line: #CED6DF;
  --amber: #F2A900;
  --amber-soft: #FFF3D1;
  --red: #B42318;
  --red-soft: #FDECEA;
  --green: #1D6F42;
  --green-soft: #E5F3EA;
  --blue-soft: #E4EDF6;
  --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-cond: 'Barlow Condensed', 'Arial Narrow', 'Barlow', sans-serif;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-underline-offset: 2px; }
a:hover { color: var(--navy-deep); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--font-cond); font-weight: 700; line-height: 1.1; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3rem); }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--amber); color: var(--ink); padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.main { flex: 1; padding-top: 2rem; padding-bottom: 4rem; }

/* ---------- Header ---------- */
.site-header { background: var(--navy); color: var(--white); border-bottom: 4px solid var(--amber); }
.header-bar { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--white); text-decoration: none; font-family: var(--font-cond); font-weight: 700; font-size: 1.45rem; margin-right: auto; }
.brand:hover { color: var(--white); }
.brand-mark { width: 14px; height: 28px; background: repeating-linear-gradient(135deg, var(--amber) 0 6px, var(--navy) 6px 12px); border: 2px solid var(--amber); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; flex-wrap: wrap; }
.site-nav a { display: block; padding: .5rem .65rem; color: #D7E2EE; text-decoration: none; font-weight: 500; border-radius: var(--radius); }
.site-nav a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.site-nav a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -3px 0 var(--amber); border-radius: 0; }
.badge { display: inline-block; min-width: 1.4em; padding: 0 .4em; border-radius: 999px; background: var(--amber); color: var(--ink); font-size: .8rem; font-weight: 700; text-align: center; }
.nav-toggle { display: none; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-block; background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.5); border-radius: var(--radius); padding: .4rem .9rem; font: 600 1rem var(--font); cursor: pointer; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--navy); border-bottom: 4px solid var(--amber); z-index: 50; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: .5rem 1.25rem 1rem; }
  .site-nav a { padding: .8rem .25rem; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .site-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--amber); padding-left: .9rem; }
  .site-header { position: relative; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #A9B8C8; font-size: .9rem; }
.footer-bar { display: flex; justify-content: space-between; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.site-footer a { color: #D7E2EE; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .65rem 1.15rem; min-height: 44px;
  font: 600 1rem var(--font); text-decoration: none; cursor: pointer;
  color: var(--navy); background: var(--white);
  border: 2px solid var(--navy); border-radius: var(--radius);
}
.btn:hover { background: var(--blue-soft); color: var(--navy-deep); }
.btn-primary { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.btn-primary:hover { background: #DB9900; border-color: #DB9900; color: var(--ink); }
.btn-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-light:hover { background: rgba(255,255,255,.1); color: var(--white); }
.btn-danger { color: var(--red); border-color: var(--red); }
.btn-danger:hover { background: var(--red-soft); color: var(--red); }
.btn-small { padding: .3rem .7rem; min-height: 34px; font-size: .9rem; }
.btn-link { border-color: transparent; background: transparent; text-decoration: underline; }
.btn-link:hover { background: transparent; }
.btn-facebook { background: #1877F2; border-color: #1877F2; color: #fff; width: 100%; }
.btn-facebook:hover { background: #166FE0; border-color: #166FE0; color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: 1.25rem; }
.wrap-actions form { margin: 0; }

/* ---------- Alerts ---------- */
.alert { padding: .85rem 1rem; border-radius: var(--radius); margin-bottom: 1.25rem; border-left: 5px solid; background: var(--white); }
.alert-success { border-color: var(--green); background: var(--green-soft); }
.alert-error { border-color: var(--red); background: var(--red-soft); }
.alert-info { border-color: var(--navy); background: var(--blue-soft); }
.alert a { font-weight: 600; }

/* ---------- Panels & layout ---------- */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; }
.panel.narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.panel.empty { text-align: center; color: var(--muted); padding: 2.5rem 1.5rem; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .75rem; }
.panel-head h2 { margin: 0; }
.panel-head a { font-size: .95rem; white-space: nowrap; }
.page-head { margin-bottom: 1.5rem; }
.dash-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.dash-grid .panel { margin-bottom: 0; }
.dash-grid.two { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); margin-top: 1.5rem; }
.admin-split { display: grid; gap: 2rem; grid-template-columns: minmax(300px, 400px) 1fr; align-items: start; }
@media (max-width: 860px) { .admin-split { grid-template-columns: 1fr; } }
.crumbs { margin-bottom: .5rem; }
.confirm h1 { color: var(--navy); }

/* ---------- Forms ---------- */
.field { margin-bottom: 1.1rem; min-width: 0; }
label, legend { display: block; font-weight: 600; margin-bottom: .35rem; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
  width: 100%; padding: .65rem .75rem; min-height: 46px;
  font: 1rem var(--font); color: var(--ink);
  background: var(--white); border: 1.5px solid #9AA8B7; border-radius: var(--radius);
}
textarea { min-height: 7rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(242,169,0,.45); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--red); }
input[type=file] { font: inherit; max-width: 100%; }
.field-error { color: var(--red); font-weight: 500; font-size: .95rem; margin: .35rem 0 0; }
.hint { color: var(--muted); font-size: .9rem; margin: .35rem 0 0; }
.check { display: flex; gap: .5rem; align-items: center; font-weight: 500; margin-bottom: 1rem; }
.check input { width: 1.15rem; height: 1.15rem; accent-color: var(--navy); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-sections fieldset { padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.form-sections fieldset:last-of-type { border-bottom: 0; margin-bottom: 0; }
.form-sections legend { font-family: var(--font-cond); font-size: 1.45rem; font-weight: 700; margin-bottom: .75rem; }
.row-2 { display: grid; gap: 0 1rem; grid-template-columns: 1fr 1fr; }
.row-3 { display: grid; gap: 0 1rem; grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 560px) { .row-2, .row-3 { grid-template-columns: 1fr; } }
.divider { display: flex; align-items: center; gap: 1rem; color: var(--muted); margin: 1.5rem 0; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.filter-bar { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: flex-end; margin-bottom: 1.25rem; }
.filter-bar .field { margin: 0; flex: 1 1 200px; max-width: 320px; }
.inline-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.inline-form label { margin: 0; flex-basis: 100%; }
.inline-form input, .inline-form select { flex: 1 1 180px; width: auto; }
.manage-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Station picker: five big numerals */
.station-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.station-option { position: relative; margin: 0; cursor: pointer; }
.station-option input { position: absolute; opacity: 0; inset: 0; }
.station-num {
  display: flex; align-items: center; justify-content: center; height: 68px;
  font: 700 2.4rem/1 var(--font-cond); color: var(--navy);
  border: 2px solid #9AA8B7; border-radius: var(--radius); background: var(--white);
}
.station-option:hover .station-num { border-color: var(--navy); }
.station-option input:checked + .station-num { background: var(--navy); border-color: var(--navy); color: var(--amber); }
.station-option input:focus-visible + .station-num { outline: 3px solid var(--amber); outline-offset: 2px; }
.station-picker[aria-invalid="true"] .station-num { border-color: var(--red); }

/* Address suggestions */
.addr-wrap { position: relative; }
.addr-list {
  position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px);
  list-style: none; margin: 0; padding: .3rem 0; max-height: 18rem; overflow-y: auto;
  background: var(--white); border: 1.5px solid var(--navy); border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(12, 34, 54, .18);
}
.addr-list [role=option] { display: flex; flex-direction: column; padding: .55rem .85rem; cursor: pointer; line-height: 1.3; }
.addr-list [role=option][aria-selected=true], .addr-list [role=option]:hover { background: var(--blue-soft); box-shadow: inset 4px 0 0 var(--amber); }
.addr-main { font-weight: 600; color: var(--ink); }
.addr-sub { font-size: .88rem; color: var(--muted); }
.addr-credit { padding: .35rem .85rem .15rem; font-size: .72rem; color: var(--muted); text-align: right; border-top: 1px solid var(--line); margin-top: .2rem; }

/* ---------- Landing ---------- */
.hero {
  background: var(--white); border: 1px solid var(--line); border-top: 6px solid var(--navy);
  border-radius: var(--radius); padding: clamp(1.75rem, 5vw, 3.25rem) clamp(1.25rem, 5vw, 3rem);
  margin-bottom: 2.5rem; text-align: center;
}
.hero-logo { margin: 0 auto 1.5rem; max-width: 820px; }
.hero-logo img { width: 100%; height: auto; }
.hero .lede { margin: 0 auto; color: var(--ink); font-size: clamp(1.1rem, 2.2vw, 1.35rem); }
.hero .actions { justify-content: center; margin-top: 1.75rem; }
.how { max-width: 760px; }
.steps { padding-left: 1.4rem; }
.steps li { margin-bottom: .8rem; padding-left: .3rem; }
.steps li::marker { font: 700 1.3rem var(--font-cond); color: var(--navy); }

/* ---------- Dashboard ---------- */
.hello { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 2rem; }
.hello h1 { margin-bottom: .2rem; }
.hello .lede { margin: 0; }
.station-badge {
  flex: none; width: 92px; height: 104px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--navy); border-radius: var(--radius); border-bottom: 6px solid var(--amber);
}
.station-badge .num { font: 700 4.2rem/0.9 var(--font-cond); color: var(--amber); }
.station-badge .label { color: #C9D6E3; font: 600 .95rem/1 var(--font-cond); text-transform: uppercase; letter-spacing: .12em; margin-bottom: .3rem; }
.event-list, .plain-list, .mini-albums, .event-detail-list, .admin-list, .request-list, .doc-list, .stat-row { list-style: none; margin: 0; padding: 0; }
.event-row { display: flex; gap: .9rem; align-items: center; padding: .6rem 0; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.event-list li:last-child .event-row { border-bottom: 0; }
.event-row:hover strong { text-decoration: underline; }
.date-chip { flex: none; width: 54px; text-align: center; border: 2px solid var(--navy); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.date-chip .mon { display: block; background: var(--navy); color: var(--white); font-size: .78rem; font-weight: 600; padding: 1px 0; }
.date-chip .day { display: block; font: 700 1.7rem/1.15 var(--font-cond); color: var(--navy); }
.plain-list li { padding: .45rem 0; border-bottom: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 0; }
.mini-albums li a { display: flex; gap: .9rem; align-items: center; padding: .45rem 0; text-decoration: none; color: var(--ink); }
.mini-albums img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; }

/* ---------- Calendar ---------- */
.cal-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.cal-head h1 { margin: 0; }
.cal-nav { display: flex; gap: .5rem; flex-wrap: wrap; }
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--line); gap: 1px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 2.5rem; }
.cal-dow { background: var(--navy); color: #D7E2EE; text-align: center; font-weight: 600; font-size: .9rem; padding: .45rem 0; }
.cal-day { background: var(--white); min-height: 112px; padding: .3rem .4rem .5rem; display: flex; flex-direction: column; gap: 3px; }
.cal-day.other { background: #F6F8FA; }
.cal-day.other .cal-date { color: #9AA8B7; }
.cal-date { font: 600 1.25rem/1.2 var(--font-cond); color: var(--ink); }
.cal-day.today .cal-date { background: var(--amber); color: var(--ink); width: 1.8em; text-align: center; border-radius: 999px; }
.cal-event { display: block; font-size: .82rem; line-height: 1.25; padding: 2px 5px; border-radius: 3px; background: var(--blue-soft); color: var(--navy-deep); text-decoration: none; border-left: 3px solid var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-event:hover { background: #D3E1EF; }
.cal-event .t { font-weight: 600; }
@media (max-width: 700px) { .calendar { display: none; } }
.event-detail { display: flex; gap: 1rem; padding: 1.1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .75rem; scroll-margin-top: 1rem; }
.event-detail:target { border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.event-detail h3 { margin-bottom: .2rem; }
.event-detail .meta { color: var(--muted); margin-bottom: .5rem; }
.event-detail .desc { max-width: 70ch; }

/* ---------- Forms (documents) ---------- */
.doc { display: flex; gap: 1.25rem; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: .75rem; }
.doc-kind { flex: none; width: 92px; text-align: center; font: 700 1rem var(--font-cond); color: var(--navy); background: var(--blue-soft); border-radius: 4px; padding: .5rem .25rem; }
.doc-body { flex: 1; min-width: 0; }
.doc-body h2 { font-size: 1.3rem; margin-bottom: .15rem; }
.doc-body p { margin: 0 0 .2rem; }
@media (max-width: 560px) { .doc { flex-wrap: wrap; } .doc-kind { width: auto; padding: .2rem .6rem; } .doc .btn { width: 100%; } }

/* ---------- Announcements ---------- */
.announcements { margin-bottom: 2.5rem; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.section-head h2 { margin: 0; font-size: 1.9rem; display: flex; align-items: center; gap: .6rem; }
.section-head h2::before { content: ""; width: 6px; height: 1.1em; background: var(--amber); border-radius: 2px; }

.ann-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); grid-auto-rows: 1fr; }
.ann-count-1 { grid-template-columns: 1fr; }
.ann-count-2 { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.ann-count-3 .ann-lead { grid-row: span 2; }
@media (max-width: 820px) { .ann-grid { grid-template-columns: 1fr !important; grid-auto-rows: auto; } .ann-count-3 .ann-lead { grid-row: auto; } }

.ann {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: 8px;
  padding: 1.25rem 1.35rem 1.15rem;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.ann:hover { border-color: var(--navy); box-shadow: 0 6px 18px rgba(12, 34, 54, .10); transform: translateY(-2px); }
.ann:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px var(--amber); }
.ann h3 { font-size: 1.4rem; line-height: 1.15; margin: 0 0 .45rem; }
.ann-link { color: var(--navy-deep); text-decoration: none; }
.ann-link:focus-visible { outline: none; }
.ann .ann-link::after { content: ""; position: absolute; inset: 0; border-radius: 8px; } /* whole card is clickable */
.ann-excerpt { color: var(--muted); margin: 0 0 1rem; flex: 1; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; align-self: start; }
.ann-meta { display: flex; align-items: center; gap: .5rem; margin: 0 0 .55rem; font: 600 .82rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ann-new { display: inline-block; padding: .22rem .5rem; border-radius: 999px; background: var(--amber); color: var(--ink); font: 700 .7rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; }
.ann-more { font-weight: 600; color: var(--navy); font-size: .95rem; }
.ann-more .arrow { display: inline-block; transition: transform .15s ease; }
.ann:hover .ann-more .arrow { transform: translateX(4px); }

.ann-lead {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  border: 0; color: #D7E2EE; padding: 1.75rem 1.9rem 1.6rem;
  overflow: hidden;
}
.ann-lead::before { /* reflective-stripe accent, echoing the logo mark */
  content: ""; position: absolute; top: 0; right: 0; width: 120px; height: 8px;
  background: repeating-linear-gradient(135deg, var(--amber) 0 10px, transparent 10px 20px);
  opacity: .9;
}
.ann-lead:hover { box-shadow: 0 10px 28px rgba(12, 34, 54, .28); }
.ann-lead h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: .7rem; }
.ann-lead .ann-link { color: var(--white); }
.ann-lead .ann-meta { color: #A9C0D8; }
.ann-lead .ann-excerpt { color: #D7E2EE; font-size: 1.08rem; line-height: 1.6; -webkit-line-clamp: 7; line-clamp: 7; }
@media (max-width: 820px) { .ann-lead .ann-excerpt { -webkit-line-clamp: 5; line-clamp: 5; } }
.ann-more { margin-top: auto; }
.ann-lead .ann-more { color: var(--amber); }

.ann-all { margin: 1rem 0 0; text-align: right; }
.ann-all a { font-weight: 600; text-decoration: none; padding: .4rem 0; border-bottom: 2px solid var(--amber); }
.ann-all a:hover { color: var(--navy-deep); border-bottom-color: var(--navy); }
.ann-empty { border: 2px dashed var(--line); border-radius: 8px; padding: 1.5rem; text-align: center; color: var(--muted); }
.ann-empty p { margin: 0; }

/* All-announcements feed */
.post-feed { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.feed-item { position: relative; display: flex; gap: 1.25rem; padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.post-feed li:first-child .feed-item { padding-top: .25rem; }
.feed-date { flex: none; width: 64px; text-align: center; border-top: 4px solid var(--amber); padding-top: .35rem; }
.feed-date .mon { display: block; font: 600 .8rem/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.feed-date .day { display: block; font: 700 2.3rem/1 var(--font-cond); color: var(--navy); }
.feed-date .yr { display: block; font-size: .8rem; color: var(--muted); }
.feed-body h2 { font-size: 1.55rem; margin-bottom: .35rem; }
.feed-body > p { margin-bottom: .4rem; }
.feed-item .ann-link::after { content: ""; position: absolute; inset: 0; }
.feed-item:hover .ann-link { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; }
.feed-more { color: var(--navy); font-weight: 600; }
.pager { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }

/* Single announcement */
.post-full { max-width: 760px; background: var(--white); border: 1px solid var(--line); border-top: 6px solid var(--navy); border-radius: 8px; padding: clamp(1.5rem, 4vw, 2.75rem); }
.post-full h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); margin-bottom: 1.25rem; }
.post-body { font-size: 1.12rem; line-height: 1.7; }
.post-body p { margin-bottom: 1.1em; }
.post-body a { word-break: break-word; }
.post-admin { margin: 1.5rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.post-pager { max-width: 760px; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.25rem; }
.post-pager a { display: block; padding: .9rem 1.1rem; background: var(--white); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.post-pager a:hover { border-color: var(--navy); }
.post-pager .newer { text-align: right; grid-column: 2; }
.post-pager .label { display: block; font-size: .85rem; color: var(--muted); font-weight: 600; }
.post-pager .t { display: block; font: 700 1.15rem/1.2 var(--font-cond); color: var(--navy-deep); }
@media (max-width: 560px) { .post-pager { grid-template-columns: 1fr; } .post-pager .newer { grid-column: auto; } }
.composer textarea { min-height: 14rem; line-height: 1.6; }

/* ---------- Directory ---------- */
.dir-count { margin: 0 0 .75rem; }
.dir-table td:first-child, .dir-table th:first-child { width: 4.5rem; }
.dir-table .station-pill { width: 36px; height: 36px; font-size: 1.4rem; }
.dir-table a { word-break: break-all; }
.dir-table th a { color: inherit; text-decoration: none; }
.dir-table th a:hover { text-decoration: underline; }
.dir-table th a[aria-sort]::after { content: " \25BE"; }
.you { font-size: .78rem; font-weight: 600; color: var(--muted); margin-left: .35rem; }
@media (max-width: 640px) {
  .dir-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .dir-table, .dir-table tbody, .dir-table tr, .dir-table td { display: block; width: 100%; }
  .dir-table tr { display: grid; grid-template-columns: 3rem 1fr; column-gap: .75rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
  .dir-table tr:last-child { border-bottom: 0; }
  .dir-table td { padding: 0; border: 0; width: auto !important; }
  .dir-table td:first-child { grid-row: span 3; }
  .dir-table td.dir-first { display: none; }
  .dir-table td.dir-last .full { display: inline; }
}
.dir-table .full { display: none; }

/* ---------- Bylaws ---------- */
.bylaws-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.bylaws-head h2 { margin-bottom: .2rem; }
.bylaws-head p { margin: 0; }
.bylaws-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.bylaws-viewer { display: block; width: 100%; height: 78vh; min-height: 520px; margin-top: 1.25rem; border: 1px solid var(--line); border-radius: 4px; background: #F6F8FA; }
/* Phones can't scroll embedded PDFs well, so they use the buttons instead */
@media (max-width: 700px) { .bylaws-viewer { display: none; } .bylaws-actions, .bylaws-actions .btn { width: 100%; } }
.hint-tight { margin-top: -.6rem; }

/* Forms the site fills in */
.fill-forms { margin-bottom: 1.5rem; }
.fill-card {
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1.15rem 1.35rem; border-radius: 8px; text-decoration: none;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #D7E2EE;
  position: relative; overflow: hidden;
  transition: box-shadow .15s ease, transform .15s ease;
}
.fill-card::before { content: ""; position: absolute; top: 0; right: 0; width: 96px; height: 7px; background: repeating-linear-gradient(135deg, var(--amber) 0 10px, transparent 10px 20px); }
.fill-card:hover { color: #D7E2EE; box-shadow: 0 10px 26px rgba(12, 34, 54, .25); transform: translateY(-2px); }
.fill-card:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.fill-icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 8px; background: rgba(242, 169, 0, .14); color: var(--amber); }
.fill-text { flex: 1; min-width: 0; }
.fill-title { display: block; font: 700 1.5rem/1.15 var(--font-cond); color: var(--white); }
.fill-desc { display: block; font-size: .98rem; }
.fill-btn { flex: none; pointer-events: none; }
@media (max-width: 560px) { .fill-card { flex-wrap: wrap; } .fill-btn { width: 100%; } }

/* Change of Beneficiary page */
.ben-layout { display: grid; gap: 1.5rem; grid-template-columns: minmax(300px, 420px) 1fr; align-items: start; }
.ben-layout .panel { margin: 0; }
.ben-you .details { grid-template-columns: 4.5rem 1fr; font-size: .92rem; gap: .45rem .9rem; }
.ben-you .details dd { overflow-wrap: anywhere; }
.ben-next { margin-top: 1.5rem; max-width: 760px; }
@media (max-width: 820px) { .ben-layout { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.album-grid, .photo-grid, .admin-photos { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.album-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.album { display: block; text-decoration: none; color: var(--ink); }
.album img, .album-empty { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: #DCE3EA; }
.album-empty { display: block; background: repeating-linear-gradient(135deg, #DCE3EA 0 12px, #E6EBF0 12px 24px); }
.album-empty.small { width: 56px; height: 56px; aspect-ratio: auto; }
.album:hover img { filter: brightness(.92); }
.album-title { display: block; font: 700 1.3rem/1.2 var(--font-cond); margin-top: .55rem; }
.album-meta { display: block; color: var(--muted); font-size: .9rem; }
.photo-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .5rem; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; background: #DCE3EA; }
.photo-grid a:hover img { filter: brightness(.9); }
.admin-photos { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.admin-photos li { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem; }
.admin-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.cover-tag { position: absolute; top: 1rem; left: 1rem; }
.caption-form { display: flex; gap: .35rem; margin: .5rem 0; }
.caption-form input { min-height: 34px !important; padding: .3rem .5rem !important; font-size: .9rem !important; }
.album-row { display: flex; align-items: center; gap: .8rem; }
.album-row img { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; }
.danger-zone { margin-bottom: 1.5rem; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8, 18, 29, .94); display: grid; grid-template-columns: 64px 1fr 64px; grid-template-rows: auto 1fr; align-items: center; }
.lightbox[hidden] { display: none; }
.lb-top { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: .5rem; padding: .75rem; }
.lightbox figure { margin: 0; grid-column: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; min-height: 0; padding-bottom: 1rem; }
.lightbox img { max-height: calc(100vh - 130px); max-width: 100%; object-fit: contain; }
.lightbox figcaption { color: #E3EAF1; margin-top: .75rem; text-align: center; min-height: 1.5em; }
.lb-btn { background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: var(--radius); font: 600 1rem var(--font); padding: .55rem .9rem; cursor: pointer; text-decoration: none; }
.lb-btn:hover { background: rgba(255,255,255,.2); color: #fff; }
.lb-nav { font-size: 2rem; height: 64px; width: 52px; justify-self: center; }
@media (max-width: 600px) { .lightbox { grid-template-columns: 0 1fr 0; } .lb-nav { position: fixed; bottom: 1rem; } .lb-prev { left: 1rem; } .lb-next { right: 1rem; } }

/* ---------- Admin ---------- */
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; border-bottom: 2px solid var(--line); }
.subnav a { display: block; padding: .5rem .9rem; text-decoration: none; font-weight: 600; color: var(--muted); margin-bottom: -2px; border-bottom: 3px solid transparent; }
.subnav a:hover { color: var(--navy); }
.subnav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--amber); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-row a { display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; text-decoration: none; color: var(--muted); }
.stat-row strong { display: block; font: 700 2.4rem/1 var(--font-cond); color: var(--navy); }
.stat-row a:hover { border-color: var(--navy); }
.request { display: flex; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.request:last-child { border-bottom: 0; }
.request-body { flex: 1 1 260px; display: flex; flex-direction: column; }
.request-actions { display: flex; gap: .5rem; align-items: flex-start; flex-wrap: wrap; }
.request-actions form { margin: 0; }
.decline summary { list-style: none; }
.decline summary::-webkit-details-marker { display: none; }
.decline[open] summary { background: var(--blue-soft); }
.decline-form { margin-top: .6rem !important; padding: .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.decline-form .check { margin-bottom: .6rem; font-size: .95rem; }
.station-pill { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--radius); background: var(--navy); color: var(--amber); font: 700 1.9rem/1 var(--font-cond); }
.station-pill.small-pill { width: 32px; height: 32px; font-size: 1.3rem; }
.admin-list li { display: flex; gap: 1rem; justify-content: space-between; align-items: center; padding: .8rem 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .5rem; }
.admin-list li.current { border-color: var(--amber); box-shadow: 0 0 0 2px var(--amber-soft); }
.row-actions { display: flex; gap: .4rem; flex-wrap: wrap; flex: none; }
.row-actions form { margin: 0; }
.past { margin-top: 1.5rem; }
.past summary { cursor: pointer; font-weight: 600; margin-bottom: .75rem; }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; padding: .05rem .45rem; border-radius: 3px; background: var(--amber-soft); color: #6B4A00; margin-left: .35rem; vertical-align: middle; }
.tag-muted { background: #E6EBF0; color: var(--muted); }
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .9rem; color: var(--muted); background: #F6F8FA; }
.table tr:last-child td { border-bottom: 0; }
.table tr.disabled td { opacity: .6; }
.checks td { padding: .5rem .5rem; }
.ok { color: var(--green); font-weight: 700; }
.bad { color: var(--red); font-weight: 700; }
.details { display: grid; grid-template-columns: 8.5rem 1fr; gap: .5rem 1rem; margin: 0; }
.details dt { color: var(--muted); font-weight: 500; }
.details dd { margin: 0; }
.panel.emergency { border-top: 5px solid var(--red); }
.prose { max-width: 70ch; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .btn, .subnav, .filter-bar { display: none !important; } body { background: #fff; } .panel { border: 0; } }
