/* Greater Springfield Pioneers Wolfpack — navy + gold, sampled from the club banner. */
:root {
  --bg: #f4f2ec;
  --surface: #ffffff;
  --surface-2: #ece8de;
  --text: #121a2c;
  --muted: #5a6274;
  --border: #d9d4c7;
  --brand: #0b1121;
  --brand-2: #1a2742;
  --on-brand: #f3eee3;
  --accent: #cc963a;
  --accent-strong: #ddb05a;
  --on-accent: #0b1121;
  --link: #1d3a72;
  --danger: #b4372f;
  --ok: #2f7a4f;
  --warn: #9a6512;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(11, 17, 33, 0.06), 0 4px 14px rgba(11, 17, 33, 0.07);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Oswald", "Arial Narrow", Impact, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f1d;
    --surface: #111a2e;
    --surface-2: #19233b;
    --text: #ece7dc;
    --muted: #a3abbd;
    --border: #26324d;
    --brand: #070b16;
    --brand-2: #1a2742;
    --accent: #d6a24a;
    --accent-strong: #e8bd68;
    --link: #e2b45e;
    --danger: #e0675e;
    --ok: #5cbf86;
    --warn: #e0a54a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: 0.01em; }
h1, h2, .h2 { text-transform: uppercase; letter-spacing: 0.02em; }
h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
h2, .h2 { font-size: 1.6rem; }
h3, .h3 { font-size: 1.25rem; }
.h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
code { background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.9em; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.page-pad { padding-top: 2rem; padding-bottom: 3rem; }
.section { padding: 2.5rem 16px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.lead { font-size: 1.15rem; color: var(--muted); }
.pre { white-space: pre-line; }
.stack > * + * { margin-top: 1rem; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 8px; }
ul.plain { list-style: none; padding: 0; margin: 0; }
.inline { display: inline; margin: 0; }

/* Header */
.site-header { background: var(--brand); color: var(--on-brand); position: sticky; top: 0; z-index: 20; border-bottom: 2px solid var(--accent); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: inherit; text-decoration: none; }
.brand img { width: 52px; height: 52px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; font-family: var(--font-display); text-transform: uppercase; }
.brand-text small { font-size: 0.68rem; letter-spacing: 0.16em; color: var(--accent); font-weight: 500; }
.brand-text strong { font-size: 1.2rem; font-weight: 600; letter-spacing: 0.04em; }
.site-nav { display: flex; align-items: center; flex: 1; gap: 1rem; }
.site-nav ul { display: flex; gap: 0.25rem; list-style: none; margin: 0 auto 0 1rem; padding: 0; flex-wrap: wrap; }
.site-nav ul a { color: var(--on-brand); text-decoration: none; padding: 0.4rem 0.7rem; border-radius: 8px; opacity: 0.85; }
.site-nav ul a:hover, .site-nav ul a.active { opacity: 1; background: rgba(255, 255, 255, 0.1); }
.nav-actions { display: flex; gap: 0.5rem; align-items: center; white-space: nowrap; }
.site-nav ul a, .dd-toggle { white-space: nowrap; }

/* Club dropdown: opens on hover/focus (desktop), on tap via app.js, and is always expanded in the mobile menu. */
.site-nav .dd { position: relative; }
.dd-toggle { font: inherit; background: none; border: 0; color: var(--on-brand); padding: 0.4rem 0.7rem; border-radius: 8px; opacity: 0.85; cursor: pointer; }
.dd-toggle:hover, .dd-toggle.active, .dd.open .dd-toggle { opacity: 1; background: rgba(255, 255, 255, 0.1); }
.dd-toggle .caret { display: inline-block; font-size: 0.75em; margin-left: 0.15rem; transition: transform 0.15s; }
.dd.open .caret { transform: rotate(180deg); }
.site-nav .dd-menu { display: none; position: absolute; top: 100%; left: 0; z-index: 30; min-width: 240px; margin: 0; padding: 0.4rem; list-style: none; flex-direction: column; gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 10px 30px rgba(11, 17, 33, 0.25); }
.site-nav .dd:hover .dd-menu, .site-nav .dd:focus-within .dd-menu, .site-nav .dd.open .dd-menu { display: flex; }
.site-nav .dd-menu a { display: block; color: var(--text); opacity: 1; padding: 0.55rem 0.8rem; border-radius: 6px; }
.site-nav .dd-menu a:hover, .site-nav .dd-menu a.active { background: var(--surface-2); }
@media (max-width: 1024px) {
  .dd-toggle { padding-left: 0.7rem; cursor: default; background: none !important; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; }
  .dd-toggle .caret { display: none; }
  .site-nav .dd-menu, .site-nav .dd:hover .dd-menu { display: flex; position: static; min-width: 0; padding: 0 0 0.4rem 0.6rem; background: none; border: 0; box-shadow: none; }
  .site-nav .dd-menu a { color: var(--on-brand); opacity: 0.85; padding: 0.4rem 0.7rem; }
  .site-nav .dd-menu a:hover, .site-nav .dd-menu a.active { background: rgba(255, 255, 255, 0.1); opacity: 1; }
}
.site-header .btn-ghost { color: var(--on-brand); border-color: rgba(255, 255, 255, 0.25); }
.site-header .btn-link { color: var(--on-brand); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid rgba(255, 255, 255, 0.3); color: var(--on-brand); font-size: 1.2rem; border-radius: 8px; padding: 0.25rem 0.6rem; cursor: pointer; }
@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--brand); flex-direction: column; align-items: stretch; padding: 0.5rem 16px 1rem; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; margin: 0; }
  .nav-actions { flex-wrap: wrap; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; font: inherit; font-weight: 600; padding: 0.6rem 1.1rem; border-radius: 10px; border: 1px solid transparent; cursor: pointer; text-decoration: none; line-height: 1.2; background: var(--surface-2); color: var(--text); transition: background 0.15s, border-color 0.15s; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-outline { background: transparent; border-color: currentColor; color: inherit; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-link { background: none; border: none; color: var(--link); padding-left: 0.3rem; padding-right: 0.3rem; text-decoration: underline; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.875rem; border-radius: 8px; }
.btn-lg { padding: 0.85rem 1.4rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Hero: the club banner on wide screens; crest + headline on phones. */
.hero { background: #0b1121; color: var(--on-brand); }
.hero-banner { display: block; width: 100%; max-width: 1942px; margin: 0 auto; aspect-ratio: 1942 / 809; height: auto; }
.hero-mobile { display: none; text-align: center; padding: 2rem 16px 1.5rem; background: radial-gradient(ellipse at top, #1a2742 0%, #0b1121 70%); }
.hero-mobile img { width: 220px; height: 220px; }
.hero-mobile h1 { font-size: 2.6rem; line-height: 1; margin: 0.8rem 0 0.4rem; color: var(--accent); }
.hero-mobile h1 span { display: block; color: #fff; font-style: italic; font-size: 0.8em; }
.hero-mobile p { letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.8rem; margin: 0; }
.hero-mobile p b { color: var(--accent); font-weight: 600; }
.hero-cta { background: linear-gradient(180deg, #0b1121, #121b31); border-bottom: 1px solid rgba(204, 150, 58, 0.35); }
.hero-cta .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.hero-cta p { margin: 0; color: rgba(243, 238, 227, 0.85); max-width: 60ch; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero .btn-outline { color: var(--on-brand); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; color: var(--accent); font-weight: 700; }
@media (max-width: 720px) {
  .hero-banner { display: none; }
  .hero-mobile { display: block; }
  .hero-cta .container { justify-content: center; text-align: center; }
  .hero-cta p { display: none; }
}

.band { background: var(--brand); color: var(--on-brand); padding: 2.5rem 0; border-top: 2px solid var(--accent); border-bottom: 2px solid var(--accent); }
.values { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; }
.value { display: flex; align-items: center; gap: 0.75rem; }
.value-icon { flex: none; width: 52px; height: 52px; border: 2px solid var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--accent); }
.value-icon svg { width: 26px; height: 26px; }
.value strong { display: block; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.1rem; }
.value span { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; color: var(--accent); }
/* The banner already shows the values on wide screens; the band stands in for it on phones. */
@media (min-width: 721px) { .band.values-band { display: none; } }
@media (max-width: 720px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Layout */
.grid { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.two-col { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 2rem; align-items: start; margin-top: 1.5rem; }
.two-col.even { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.section-head h1, .section-head h2 { margin: 0; }
.sticky { position: sticky; top: 84px; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
a.card { color: inherit; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
a.card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(20, 30, 25, 0.12); }
.event-card { display: flex; gap: 1rem; }
.event-card h3 { margin-bottom: 0.2rem; }
.event-card p { margin-bottom: 0.5rem; }
.date-badge { flex: none; width: 56px; height: 64px; border-radius: 10px; background: var(--brand); color: var(--on-brand); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.date-badge .m { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); font-weight: 700; }
.date-badge .d { font-size: 1.6rem; font-weight: 700; margin-top: 2px; }
.tags { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.post-card h3 { margin-bottom: 0.4rem; }

/* Badges */
.badge { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 0.15rem 0.55rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); text-transform: capitalize; white-space: nowrap; }
.badge-amber, .badge-pending, .badge-maybe, .badge-dues-due-soon { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.badge-active, .badge-paid, .badge-going, .badge-dues-current { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.badge-suspended, .badge-failed, .badge-declined, .badge-dues-lapsed, .badge-refunded { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }

/* Flash & callouts */
.flash-stack { margin-top: 1rem; }
.flash { padding: 0.8rem 1rem; border-radius: 10px; margin-bottom: 0.75rem; border: 1px solid var(--border); background: var(--surface); }
.flash ul { margin: 0; padding-left: 1.2rem; }
.flash-success { border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: color-mix(in srgb, var(--ok) 10%, var(--surface)); }
.flash-error { border-color: color-mix(in srgb, var(--danger) 45%, transparent); background: color-mix(in srgb, var(--danger) 9%, var(--surface)); }
.flash-info { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.callout { padding: 0.9rem 1rem; border-left: 4px solid var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border-radius: 8px; margin: 1rem 0; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 0.9rem; }
.form + .form, .card + .card.form, form.card + form.card { margin-top: 1rem; }
label { display: flex; flex-direction: column; gap: 0.3rem; font-weight: 600; font-size: 0.92rem; }
label .muted { font-weight: 400; }
input, select, textarea { font: inherit; font-weight: 400; padding: 0.6rem 0.75rem; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); width: 100%; }
textarea { resize: vertical; min-height: 5rem; }
label.check { flex-direction: row; align-items: center; gap: 0.5rem; font-weight: 400; }
label.check input { width: auto; }
.checks { display: flex; flex-direction: column; gap: 0.4rem; }
.row-2, .row-3 { display: grid; gap: 0.9rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.align-end { align-items: end; }
@media (max-width: 640px) { .row-2, .row-3 { grid-template-columns: 1fr; } }
.auth { max-width: 520px; }
.admin-login { border-top: 4px solid var(--accent); }
.admin-login-crest { display: block; margin: 0 auto -0.4rem; }
.admin-login .eyebrow { margin: 0; }
.narrow-form { max-width: 720px; }
.search-bar { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.search-bar input { flex: 1; min-width: 180px; }
.search-bar select { width: auto; }
.segmented { display: flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; padding: 0; margin: 0; }
.segmented label { flex: 1; font-weight: 600; }
.segmented input { position: absolute; opacity: 0; width: 1px; }
.segmented span { display: block; text-align: center; padding: 0.5rem; cursor: pointer; }
.segmented input:checked + span { background: var(--brand-2); color: var(--on-brand); }
.segmented input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: -3px; }
.chips { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.chip { font: inherit; padding: 0.35rem 0.8rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer; }
.chip:hover { border-color: var(--accent); }
.price { font-size: 2rem; font-weight: 700; margin-bottom: 0.4rem; }
.price .muted { font-size: 1rem; font-weight: 400; }
.danger-zone { margin-top: 1rem; border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); }

/* Meta lists */
dl.meta { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1rem; margin: 0 0 1rem; }
dl.meta dt { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; padding-top: 0.15rem; }
dl.meta dd { margin: 0; }
.attendee-list { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; }
.attendee-list li { background: var(--surface-2); padding: 0.2rem 0.7rem; border-radius: 999px; font-size: 0.9rem; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 0.6rem 0; border-bottom: 1px solid var(--border); display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: baseline; }

/* Prose */
.prose { font-size: 1.05rem; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose img { border-radius: var(--radius); }
.prose a > img { max-width: 260px; }
.prose blockquote { border-left: 4px solid var(--accent); margin: 1em 0; padding: 0.2em 1em; color: var(--muted); }

.prose table { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1.25rem; font-size: 0.95rem; background: var(--surface); border: 1px solid var(--border); }
.prose th, .prose td { text-align: left; padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--border); }
.prose th { background: var(--surface-2); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.prose ul li, .prose ol li { margin-bottom: 0.3rem; }

/* Complaints & feedback */
.narrow-wide { max-width: 980px; }
.urgent { border: 2px solid var(--danger); border-radius: var(--radius); background: color-mix(in srgb, var(--danger) 8%, var(--surface)); padding: 0.9rem 1.1rem; margin: 1.25rem 0; }
.urgent strong { display: block; color: var(--danger); }
.avenues { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin-top: 1rem; }
.avenue { display: flex; flex-direction: column; gap: 0.25rem; padding: 1rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; box-shadow: var(--shadow); }
.avenue:hover { border-color: var(--accent); }
.avenue .num { width: 2rem; height: 2rem; border-radius: 50%; background: var(--brand); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.avenue b { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.1rem; }
.avenue span:last-child { color: var(--muted); font-size: 0.9rem; }
.avenue.confidential .num { background: var(--danger); color: #fff; }
.feedback-section { padding: 2.5rem 0; scroll-margin-top: 70px; }
.feedback-section.alt { background: var(--surface-2); }
.form-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 2rem; align-items: start; }
.form-confidential { border-top: 4px solid var(--danger); }
.sent-receipt { border-left: 4px solid var(--ok); margin: 1rem 0; scroll-margin-top: 80px; }
.sent-receipt .ref { font-family: ui-monospace, Consolas, monospace; font-size: 1.1rem; }
.receipt-copy { white-space: pre-wrap; font: inherit; background: var(--surface-2); padding: 0.75rem; border-radius: 8px; margin: 0.5rem 0 0; }
@media (max-width: 860px) { .avenues, .form-split { grid-template-columns: 1fr; } }
@media print {
  .site-header, .site-footer, .urgent, .avenues, .feedback-section, .no-print, .lead, .eyebrow { display: none !important; }
  .sent-receipt { border: 0; box-shadow: none; }
}

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; font-size: 0.94rem; }
.table th, .table td { padding: 0.6rem 0.75rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { background: var(--surface-2); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.table tr:last-child td { border-bottom: none; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions { text-align: right; white-space: nowrap; }
.table tr.past td { opacity: 0.6; }
.table.compact td { padding: 0.4rem 0.5rem; }

/* Stats */
.stats { margin: 1rem 0 1.5rem; }
.stat { display: flex; flex-direction: column; gap: 0.3rem; align-items: flex-start; }
.stat-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
.stat-value { font-size: 1.7rem; font-weight: 700; line-height: 1.1; text-transform: capitalize; }

/* Sub-navigation */
.subnav { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--border); margin: 1rem 0 1.5rem; overflow-x: auto; }
.subnav a { padding: 0.6rem 0.9rem; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; font-weight: 600; }
.subnav a.active, .subnav a:hover { color: var(--text); border-bottom-color: var(--accent); }

/* Member directory */
.member-card { display: flex; gap: 0.9rem; }
.member-card h3 { margin-bottom: 0.1rem; }
.avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--brand-2); color: var(--on-brand); display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* Calendar */
.calendar { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.cal-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-head div { padding: 0.5rem; text-align: center; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); background: var(--surface-2); font-weight: 600; }
.cal-day { min-height: 110px; border-top: 1px solid var(--border); border-left: 1px solid var(--border); padding: 0.35rem; display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.cal-day:first-child { border-left: none; }
.cal-day.out { background: var(--bg); color: var(--muted); }
.cal-num { font-size: 0.85rem; font-weight: 600; }
.cal-day.today .cal-num { background: var(--accent); color: var(--on-accent); border-radius: 999px; width: 1.7em; height: 1.7em; display: inline-flex; align-items: center; justify-content: center; }
.cal-event { display: block; font-size: 0.78rem; padding: 0.2rem 0.35rem; border-radius: 6px; background: color-mix(in srgb, var(--brand-2) 14%, transparent); color: var(--text); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid var(--brand-2); }
.cal-event.members { border-left-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.cal-time { font-weight: 700; }
@media (max-width: 640px) {
  .cal-day { min-height: 64px; padding: 0.2rem; }
  .cal-event { font-size: 0; padding: 0; height: 6px; border-left: none; background: var(--brand-2); }
  .cal-event.members { background: var(--accent); }
  .cal-head div { font-size: 0.65rem; padding: 0.4rem 0.1rem; }
}

/* Admin */
.admin-shell { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 2rem; padding-top: 1.5rem; padding-bottom: 3rem; }
.admin-nav { display: flex; flex-direction: column; gap: 0.15rem; position: sticky; top: 84px; align-self: start; }
.admin-nav a { padding: 0.55rem 0.8rem; border-radius: 8px; text-decoration: none; color: var(--text); font-weight: 600; }
.admin-nav a:hover { background: var(--surface-2); }
.admin-nav a.active { background: var(--brand-2); color: var(--on-brand); }
.admin-main section { margin-bottom: 2rem; }
.admin-main .card.form + .card.form { margin-top: 1rem; }
.message.handled { opacity: 0.6; }
.message-confidential { border-left: 4px solid var(--danger); }
.message-complaint { border-left: 4px solid var(--warn); }
.message code { margin: 0 0.3rem; }
@media (max-width: 860px) {
  .admin-shell { grid-template-columns: 1fr; gap: 1rem; }
  .admin-nav { flex-direction: row; overflow-x: auto; position: static; padding-bottom: 0.3rem; }
  .admin-nav a { white-space: nowrap; }
}

/* Footer */
.site-footer { background: var(--brand); color: var(--on-brand); margin-top: 2rem; border-top: 2px solid var(--accent); }
.footer-crest { width: 96px; height: 96px; margin-bottom: 0.5rem; }
.footer-motto { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); font-size: 1.15rem; margin-bottom: 0.2rem; }
.site-footer a { color: var(--on-brand); }
.site-footer .muted { color: rgba(244, 241, 234, 0.7); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; padding-top: 2.5rem; padding-bottom: 1.5rem; }
.footer-grid h4 { text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.1em; color: var(--accent); }
.footer-grid li { margin-bottom: 0.35rem; }
.brand-footer { margin-bottom: 0.5rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 1rem; padding-bottom: 1.5rem; font-size: 0.85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 1rem; } }
