/* Elyria Education Association — Frontline stylesheet */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.shell {
  max-width: var(--maxw);
  margin: clamp(0px, 2vw, 40px) auto;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border-radius: clamp(0px, 1vw, 16px);
}
.wrap { padding-inline: var(--gutter); }

a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: var(--red); color: #fff; padding: 10px 16px; border-radius: 6px; }

:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-body); font-weight: 700; font-size: 1rem; padding: 15px 30px; border-radius: var(--r-btn); border: 1px solid transparent; cursor: pointer; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease); white-space: nowrap; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-hover); }
.btn--ghost { background: transparent; color: #fff; border-color: var(--border-2); }
.btn--ghost:hover { border-color: var(--text-muted); }
.btn--dark { background: var(--bg); color: #fff; }
.btn--dark:hover { background: var(--bg-deep); }
.btn--sm { padding: 11px 22px; font-size: 0.94rem; }

/* ---------- Ticker ---------- */
.ticker { background: var(--red); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: 0.4px; padding: 9px var(--gutter); display: flex; gap: 20px; align-items: center; }
.ticker .live { font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.ticker .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 2s var(--ease) infinite; }
@media (prefers-reduced-motion: reduce) { .ticker .live::before { animation: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.ticker .msg { flex: 1; min-width: 0; }
.ticker .close { background: transparent; border: 0; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px; opacity: 0.85; }
.ticker .close:hover { opacity: 1; }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in oklab, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--hairline); }
.nav { display: flex; justify-content: space-between; align-items: center; padding: 16px var(--gutter); gap: 16px; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 1px solid var(--hairline-raise); flex: none; }
.brand .lock1 { display: block; font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -0.3px; line-height: 1.15; }
.brand .lock2 { display: block; margin-top: 3px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--lockup-sub); font-weight: 600; line-height: 1; }
.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-weight: 500; font-size: 15px; color: var(--nav); transition: color var(--dur) var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links .nav-member { display: inline-flex; align-items: center; gap: 6px; }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--hairline-raise); border-radius: 8px; padding: 8px; color: var(--text); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; stroke: currentColor; fill: none; }

@media (max-width: 900px) {
  /* backdrop-filter would trap the fixed menu panel inside the header box — drop it on mobile */
  .site-header { backdrop-filter: none; background: var(--bg); }
  .nav-toggle { display: inline-flex; position: relative; z-index: 60; }
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(300px, 82vw); flex-direction: column; align-items: stretch; gap: 6px; background: var(--bg-deep); border-left: 1px solid var(--hairline); box-shadow: -24px 0 70px -20px rgba(0, 0, 0, 0.7); padding: 88px 20px 24px; transform: translateX(100%); transition: transform var(--dur) var(--ease); z-index: 50; overflow-y: auto; }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: 14px 14px; border-radius: 10px; font-size: 17px; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--hairline); }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-links a:hover, .nav-links a:focus-visible { background: var(--surface); }
  .nav-links .nav-member { justify-content: flex-start; }
  .nav-links .btn { justify-content: center; margin-top: 10px; border-bottom: 0; }

  /* Full-screen scrim behind the panel — page text can't bleed through */
  body:has(.nav-links.open) { overflow: hidden; }
  body:has(.nav-links.open)::after { content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(2px); z-index: 45; }
  /* Keep the header (logo + toggle) above the panel so the toggle stays tappable */
  body:has(.nav-links.open) .site-header { z-index: 55; background: var(--bg-deep); }
  /* Swap the hamburger for an ✕ when open */
  .nav-toggle[aria-expanded="true"] svg { display: none; }
  .nav-toggle[aria-expanded="true"]::before { content: "\2715"; font-size: 20px; line-height: 1; color: var(--text); }

  /* Brand text fits small screens */
  .brand img { width: 46px; height: 46px; }
  .brand .lock1 { font-size: 16px; }
}
@media (max-width: 380px) {
  .brand .lock2 { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 2rem + 5vw, 4.5rem) var(--gutter) var(--section-y); }
.hero-mark { position: absolute; right: -4vw; top: -3vw; font-family: var(--font-display); font-weight: 900; font-size: clamp(140px, 26vw, 340px); color: var(--watermark); line-height: 0.8; z-index: 0; user-select: none; pointer-events: none; }
.hero-inner { position: relative; z-index: 1; max-width: 820px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--eyebrow-border); color: var(--eyebrow); font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; padding: 7px 15px; border-radius: var(--r-pill); margin-bottom: 26px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--red-bright); border-radius: 50%; }
.hero h1 { font-weight: 900; font-size: var(--h1); line-height: 0.98; letter-spacing: -0.03em; margin: 0 0 24px; text-transform: uppercase; }
.hero h1 .hl { color: var(--red-bright); }
.hero .lead { font-size: clamp(1rem, 0.95rem + 0.4vw, 1.19rem); line-height: 1.55; color: var(--text-muted); max-width: 600px; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* ---------- Stat rail ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.stat { padding: 30px var(--gutter); border-right: 1px solid var(--hairline); }
.stat:last-child { border-right: 0; }
.stat b { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem); color: var(--red-bright); line-height: 1; display: block; }
.stat span { font-size: 14px; color: var(--text-dim); margin-top: 6px; display: block; }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--hairline); } }

/* ---------- Section heads ---------- */
.section { padding: var(--section-y) var(--gutter); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { font-weight: 800; font-size: var(--h2); letter-spacing: -0.02em; text-transform: uppercase; }
.section-head .more { font-weight: 600; font-size: 14px; color: var(--red-bright); }
.section-head .more:hover { color: var(--red-kicker); }
.kicker { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--red-bright); display: block; margin-bottom: 10px; }

/* ---------- Card grids ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; padding: 26px; transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.card:hover { border-color: var(--hairline-raise); transform: translateY(-3px); }
a.card { display: block; }
.card .idx { font-family: var(--font-display); font-weight: 800; font-size: 14px; color: var(--red-bright); letter-spacing: 1px; }
.card h3 { font-weight: 700; font-size: 18px; margin: 10px 0 8px; }
.card p { font-size: 14px; color: var(--text-dim); line-height: 1.5; margin: 0; }
.card .go { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--red-bright); text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Officers ---------- */
.officers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .officers { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .officers { grid-template-columns: 1fr; } }
.officer { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 18px 18px 22px; text-align: center; transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.officer:hover { border-color: var(--hairline-raise); transform: translateY(-3px); }
.officer .avatar { width: 176px; height: 176px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 50px; color: #fff; background: linear-gradient(150deg, var(--red), oklch(0.4 0.18 25)); border: 2px solid var(--hairline-raise); object-fit: cover; }
img.avatar { display: block; }
@media (max-width: 400px) { .officer .avatar { width: 150px; height: 150px; } }
img.avatar { display: block; }
.officer h3 { font-weight: 800; font-size: 19px; }
.officer .role { color: var(--red-bright); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin: 6px 0 12px; }
.officer a.mail { font-size: 13px; color: var(--text-dim); word-break: break-word; }
.officer a.mail:hover { color: var(--text); }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr 1fr; } .news-grid .feature { grid-column: 1 / -1; } }
@media (max-width: 620px) { .news-grid { grid-template-columns: 1fr; } }
.post { border-radius: var(--r-card); overflow: hidden; background: var(--surface); border: 1px solid var(--hairline); transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); display: block; }
.post:hover { border-color: var(--hairline-raise); transform: translateY(-3px); }
.post .thumb { height: 150px; background: repeating-linear-gradient(135deg, oklch(0.32 0.02 60), oklch(0.32 0.02 60) 12px, oklch(0.28 0.02 60) 12px, oklch(0.28 0.02 60) 24px); }
.post.feature .thumb { height: 230px; background: repeating-linear-gradient(135deg, oklch(0.3 0.05 27), oklch(0.3 0.05 27) 12px, oklch(0.26 0.04 27) 12px, oklch(0.26 0.04 27) 24px); }
.post .body { padding: 22px; }
.post.feature .body { padding: 24px; }
.post .kick { font-size: 12px; font-weight: 700; color: var(--red-kicker); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.post h3 { font-weight: 700; font-size: 19px; line-height: 1.2; }
.post.feature h3 { font-size: var(--feature-h3); line-height: 1.15; margin-bottom: 8px; }
.post p { font-size: 15px; color: var(--text-dim); line-height: 1.5; margin: 0; }

/* ---------- CTA band ---------- */
.cta { margin: 0 var(--gutter) var(--section-y); background: var(--red); border-radius: var(--r-panel); padding: clamp(2.5rem, 1.5rem + 3vw, 3.25rem) clamp(1.75rem, 1rem + 3vw, 2.75rem); display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta h2 { font-weight: 900; font-size: var(--cta-h2); line-height: 1; text-transform: uppercase; color: #fff; margin: 0 0 12px; }
.cta p { font-size: 17px; color: var(--cta-body); margin: 0; max-width: 520px; line-height: 1.5; }
.cta .cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Member Hub CTA (dark variant) ---------- */
.memberband { margin: 0 var(--gutter) var(--section-y); background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-panel); padding: clamp(2rem, 1.5rem + 2vw, 2.75rem); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.memberband .lock { width: 46px; height: 46px; border-radius: 12px; background: var(--bg); border: 1px solid var(--hairline-raise); display: grid; place-items: center; color: var(--red-bright); flex: none; }
.memberband .lock svg { width: 22px; height: 22px; stroke: currentColor; fill: none; }
.memberband .mb-copy { display: flex; align-items: center; gap: 18px; }
.memberband h2 { font-weight: 800; font-size: 1.5rem; text-transform: uppercase; }
.memberband p { color: var(--text-dim); margin: 4px 0 0; font-size: 15px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--hairline); padding: 44px var(--gutter); display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; font-size: 14px; color: var(--text-faint); }
@media (max-width: 820px) { .footer { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer { grid-template-columns: 1fr; } }
.footer .fbrand { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.footer .fbrand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1px solid var(--hairline-raise); }
.footer .fbrand span { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: #fff; }
.footer .col h4 { color: #fff; font-weight: 700; font-size: 14px; margin: 0 0 10px; font-family: var(--font-body); }
.footer .col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer .col a:hover { color: var(--text); }
.footer .muted { line-height: 1.6; }
.footer-legal { border-top: 1px solid var(--hairline); padding: 18px var(--gutter); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-faint); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ============================================================
   Member / officer components (dark Frontline)
   ============================================================ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.band { background: color-mix(in oklab, var(--surface) 60%, var(--bg)); }

/* Inputs */
input, textarea, select { font-family: var(--font-body); font-size: 15px; color: var(--text); background: var(--bg-deep); border: 1px solid var(--hairline); border-radius: 8px; padding: 12px 14px; width: 100%; }
input::placeholder, textarea::placeholder { color: var(--text-faint); }
input:focus, textarea:focus, select:focus { border-color: var(--red-bright); outline: none; }
textarea { resize: vertical; min-height: 90px; }
label { font-size: 13px; font-weight: 600; color: var(--text-dim); display: grid; gap: 6px; }

/* Subpage hero */
.page-hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 2rem + 3vw, 4rem) var(--gutter) clamp(1.5rem, 1rem + 2vw, 2.5rem); border-bottom: 1px solid var(--hairline); }
/* Keep the giant EEA watermark BEHIND the text on subpages */
.page-hero > *:not(.hero-mark) { position: relative; z-index: 1; }
.page-hero .hero-mark { top: auto; bottom: -6vw; opacity: 0.6; }
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.2rem, 1.4rem + 3.5vw, 3.5rem); text-transform: uppercase; letter-spacing: -0.02em; line-height: 1; margin: 0 0 14px; }
.page-hero p { color: var(--text-muted); max-width: 640px; font-size: 1.06rem; margin: 0; }
.breadcrumb { font-size: 13px; color: var(--text-faint); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--text); }

/* Prose / legal */
.prose { max-width: 760px; }
.prose h2 { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; margin: 1.8rem 0 0.6rem; }
.prose p, .prose li { color: var(--text-muted); line-height: 1.7; }
.prose a { color: var(--red-bright); }
.prose a:hover { color: var(--red-kicker); }
.prose ul { padding-left: 1.2rem; }

/* Gate / login */
.gate { display: grid; place-items: center; min-height: 60vh; }
.gate-card { max-width: 440px; margin-inline: auto; text-align: center; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-panel); padding: 40px 34px; }
.gate-card .lock, .memberband .lock, .pin-wrap .lock { width: 52px; height: 52px; border-radius: 14px; background: var(--bg); border: 1px solid var(--hairline-raise); display: grid; place-items: center; color: var(--red-bright); margin: 0 auto 18px; }
.gate-card .lock svg, .pin-wrap .lock svg { width: 24px; height: 24px; stroke: currentColor; fill: none; }
.gate-card h2 { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; margin: 6px 0 8px; }
.gate-card p { color: var(--text-dim); font-size: 15px; margin: 0 0 20px; }
.login-form { display: grid; gap: 12px; text-align: left; }
.login-form .btn { justify-content: center; }
.gate-error { color: oklch(0.72 0.16 27); font-size: 13px; margin: 4px 0 0; }
.gate-help { margin-top: 18px; font-size: 13px; color: var(--text-faint); }
.gate-help a { color: var(--red-bright); }

/* Member bar */
.member-bar { background: var(--surface); border-bottom: 1px solid var(--hairline); }
.member-bar .wrap { display: flex; justify-content: space-between; align-items: center; padding: 10px var(--gutter); font-size: 13px; color: var(--text-dim); font-weight: 600; }
.member-bar a { display: inline-flex; align-items: center; gap: 7px; color: var(--red-bright); font-weight: 700; }
.member-bar a svg { stroke: currentColor; fill: none; }

/* Hub quicklinks */
.hub-quicklinks { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.hub-chip { padding: 9px 16px; border: 1px solid var(--hairline); border-radius: var(--r-pill); font-size: 14px; font-weight: 600; color: var(--nav); background: var(--surface); }
.hub-chip:hover { border-color: var(--red); color: var(--text); }

/* Featured member resources */
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
@media (max-width: 860px) { .res-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .res-grid { grid-template-columns: 1fr; } }
.res-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 24px; display: flex; flex-direction: column; gap: 8px; transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.res-card:hover { border-color: var(--hairline-raise); transform: translateY(-3px); }
.res-card.is-wide { grid-column: span 1; }
.res-tag { align-self: flex-start; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--red-bright); border: 1px solid var(--eyebrow-border); padding: 3px 9px; border-radius: var(--r-pill); }
.res-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--bg); border: 1px solid var(--hairline-raise); display: grid; place-items: center; color: var(--red-bright); }
.res-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; }
.res-card h3 { font-weight: 700; font-size: 18px; }
.res-card p { color: var(--text-dim); font-size: 14px; line-height: 1.5; margin: 0; flex: 1; }
.res-card .go { font-size: 13px; font-weight: 700; color: var(--red-bright); text-transform: uppercase; letter-spacing: 1px; }

/* Hub directory */
.hub-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-panel); padding: clamp(1.5rem, 1rem + 2vw, 2.25rem); }
.hub-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 860px) { .hub-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .hub-cols { grid-template-columns: 1fr; } }
.hub-col h3 { font-family: var(--font-display); font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--red-bright); margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--hairline); }
.hub-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.hub-col a { color: var(--text-muted); font-size: 15px; }
.hub-col a:hover { color: var(--text); }
.soon { color: var(--text-faint); font-size: 15px; }
.soon em { font-size: 12px; font-style: normal; text-transform: uppercase; letter-spacing: 1px; color: var(--red-kicker); margin-left: 6px; }

/* Key dates markdown */
.key-dates h2 { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--text); margin: 1.6rem 0 0.5rem; }
.key-dates h2:first-child { margin-top: 0; }
.key-dates h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--red-bright); margin: 1.2rem 0 0.35rem; }
.key-dates h4 { font-size: 0.95rem; color: var(--red-kicker); text-transform: uppercase; letter-spacing: 0.04em; margin: 1rem 0 0.3rem; }
.key-dates p, .key-dates li { color: var(--text-muted); }
.key-dates ul, .key-dates ol { margin: 0.4rem 0 0.9rem; padding-left: 1.3rem; display: grid; gap: 0.3rem; }
.key-dates a { color: var(--red-bright); font-weight: 600; }
.key-dates strong { color: var(--text); }
.key-dates code { background: var(--bg); padding: 0.05rem 0.35rem; border-radius: 4px; font-size: 0.88em; }
.key-dates blockquote { margin: 0.9rem 0; padding: 0.7rem 1rem; border-left: 4px solid var(--red); background: color-mix(in oklab, var(--red) 12%, transparent); border-radius: 0 8px 8px 0; color: var(--text-muted); }
.key-dates hr { border: 0; border-top: 1px solid var(--hairline); margin: 1.5rem 0; }

/* Hub admin editor */
.ha-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.ha-editor { display: grid; gap: 16px; }
.ha-section { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 20px; }
.ha-section .ha-title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin-bottom: 12px; }
.ha-link { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 8px; align-items: center; margin-bottom: 8px; }
@media (max-width: 680px) { .ha-link { grid-template-columns: 1fr; } }
.ha-link .ha-l-soon { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.ha-row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.admin-status { font-size: 13px; color: var(--red-kicker); font-weight: 600; }

/* Key-dates admin */
.kd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.kd-pane { display: grid; gap: 6px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-faint); }
textarea[data-kd-text] { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.85rem; line-height: 1.5; min-height: 60vh; }
.kd-preview { background: var(--surface); border: 1px solid var(--hairline); border-radius: 10px; padding: 1.2rem 1.4rem; min-height: 60vh; overflow: auto; }
@media (max-width: 820px) { .kd-grid { grid-template-columns: 1fr; } textarea[data-kd-text] { min-height: 300px; } .kd-preview { min-height: auto; } }

/* ---------- Announcements (home) ---------- */
.announcements .ann-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.gear { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--hairline); color: var(--text-dim); font-family: var(--font-body); font-weight: 600; font-size: 14px; padding: 9px 15px; border-radius: 8px; cursor: pointer; }
.gear:hover { border-color: var(--hairline-raise); color: var(--text); }
.gear svg { width: 17px; height: 17px; stroke: currentColor; fill: none; }
.ann-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.ann-card { background: var(--surface); border: 1px solid var(--hairline); border-left: 3px solid var(--red); border-radius: var(--r-card); padding: 22px; }
.ann-card.is-good { border-left-color: oklch(0.6 0.16 150); }
.ann-card.is-event { border-left-color: oklch(0.62 0.15 250); }
.ann-card.is-announcement { border-left-color: var(--red); }
.ann-card .ann-type { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--red-kicker); }
.ann-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin: 8px 0; }
.ann-card p { color: var(--text-dim); font-size: 14px; line-height: 1.55; margin: 0; }
.ann-card .ann-link { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--red-bright); }
.ann-card .ann-pin { font-size: 11px; color: var(--red-bright); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Officer console dialog ---------- */
dialog.admin { width: min(780px, 96vw); max-height: 90vh; border: 1px solid var(--hairline); border-radius: var(--r-panel); background: var(--bg); color: var(--text); padding: 0; overflow: auto; }
dialog.admin::backdrop { background: rgba(0,0,0,0.6); backdrop-filter: blur(3px); }
.pin-wrap { text-align: center; padding: 40px 34px; }
.pin-wrap h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; margin: 6px 0 8px; }
.pin-wrap p { color: var(--text-dim); font-size: 15px; margin: 0 0 18px; }
.pin-form { display: flex; gap: 10px; max-width: 340px; margin: 0 auto 12px; }
.pin-err { color: oklch(0.72 0.16 27); font-size: 13px; min-height: 18px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--hairline); position: sticky; top: 0; background: var(--bg); }
.admin-head h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; }
.admin-head .x { background: transparent; border: 0; color: var(--text-dim); font-size: 26px; line-height: 1; cursor: pointer; width: auto; padding: 0 6px; }
.admin-body { padding: 22px 24px 28px; }
.admin-quicklinks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.admin-list { display: grid; gap: 10px; margin: 12px 0; }
.admin-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: 10px; padding: 14px 16px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.admin-card .meta { font-size: 12px; color: var(--text-faint); }
.admin-card .row-actions { display: flex; gap: 6px; }
.admin-form { display: grid; gap: 12px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px; padding: 18px; margin-top: 12px; }
.admin-form.is-hidden { display: none; }
.admin-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .admin-grid2 { grid-template-columns: 1fr; } }
.admin-check { flex-direction: row; align-items: center; gap: 8px; }
.admin-check input { width: auto; }
.admin-actions { display: flex; gap: 10px; }
.admin-note, .admin-instr { font-size: 12.5px; color: var(--text-faint); line-height: 1.6; }
.admin-sep { border: 0; border-top: 1px solid var(--hairline); margin: 22px 0; }
.admin-instr-list { font-size: 13px; color: var(--text-dim); line-height: 1.7; padding-left: 1.2rem; }
.char-count { color: var(--text-faint); font-weight: 400; font-size: 11px; }
.btn--teal { background: var(--surface); color: var(--text); border: 1px solid var(--hairline-raise); }
.btn--teal:hover { border-color: var(--red); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-hover); }

/* ---------- Inline Member Hub editor (officer console) ---------- */
.hub-ed h3, .an-panel h3, .admin-members h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; font-size: 1.05rem; margin-bottom: 6px; }
.hub-ed-list { display: grid; gap: 14px; margin-top: 12px; }
.hub-ed-section { background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px; padding: 16px; }
.hub-ed-shead { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.hub-ed-title { flex: 1; font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.hub-ed-links { display: grid; gap: 10px; margin-bottom: 12px; }
.hub-ed-link { display: grid; gap: 8px; background: var(--bg); border: 1px solid var(--hairline); border-radius: 10px; padding: 12px; }
.hub-ed-soonwrap { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-dim); }
.hub-ed-soonwrap input { width: auto; }
.hub-ed-ic-row { display: inline-flex; gap: 6px; align-items: center; }
.hub-ed-ic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--hairline-raise); border-radius: 8px; color: var(--text-dim); font-size: 15px; cursor: pointer; padding: 0; }
.hub-ed-ic:hover { border-color: var(--red); color: var(--text); }
.hub-ed-link .hub-ed-ic-row { justify-content: flex-end; }

/* ---------- Visitor analytics tiles ---------- */
.an-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
@media (max-width: 520px) { .an-grid { grid-template-columns: 1fr; } }
.an-tile { background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px; padding: 18px 20px; display: grid; gap: 2px; }
.an-tile b { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; color: var(--red-bright); line-height: 1; }
.an-tile span { font-size: 13px; color: var(--text-dim); font-weight: 600; }
.an-tile small { font-size: 11px; color: var(--text-faint); }
.an-note { font-size: 12.5px; color: var(--text-faint); line-height: 1.6; margin-top: 10px; }

/* ---------- Member login report ---------- */
.lr-panel h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; font-size: 1.05rem; margin-bottom: 6px; }
.lr-summary { font-size: 14px; color: var(--text-dim); margin: 4px 0 14px; }
.lr-summary strong { color: var(--red-bright); }
.lr-bars { display: flex; align-items: flex-end; gap: 6px; padding: 8px 0 4px; margin-bottom: 16px; overflow-x: auto; border-bottom: 1px solid var(--hairline); }
.lr-bar { display: grid; justify-items: center; gap: 4px; min-width: 34px; }
.lr-bar-n { font-size: 11px; color: var(--text-dim); font-family: var(--font-display); font-weight: 700; }
.lr-bar-fill { width: 20px; background: linear-gradient(var(--red-bright), var(--red)); border-radius: 4px 4px 0 0; }
.lr-bar-lab { font-size: 10px; color: var(--text-faint); }
.lr-scroll { overflow-x: auto; }
.lr-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.lr-table th { text-align: left; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 11px; color: var(--text-faint); padding: 8px 10px; border-bottom: 1px solid var(--hairline); }
.lr-table td { padding: 9px 10px; border-bottom: 1px solid var(--hairline); color: var(--text-muted); vertical-align: baseline; }
.lr-table td b { color: var(--text); font-weight: 600; }
.lr-table td small { color: var(--text-faint); }
.lr-table tr.lr-never td { color: var(--text-faint); }
.lr-table tbody tr:hover { background: var(--surface); }

/* Page/hub editor page picker */
.hub-ed-picker { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); margin: 6px 0 14px; }
.hub-ed-picker select { width: auto; max-width: 360px; font-weight: 600; text-transform: none; letter-spacing: 0; }

/* Facebook embed */
.fb-embed { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.fb-iframe { width: 500px; max-width: 100%; height: 640px; border: 0; border-radius: 14px; background: #fff; box-shadow: var(--shadow-card); }
.btn svg { flex: none; }

/* Homepage stats editor */
.stats-ed h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; font-size: 1.05rem; margin-bottom: 6px; }
.stat-ed-list { display: grid; gap: 8px; margin: 10px 0; }
.stat-ed-row { display: grid; grid-template-columns: 130px 1fr; gap: 8px; }
.stat-ed-row .stat-big { font-family: var(--font-display); font-weight: 700; }
@media (max-width: 480px) { .stat-ed-row { grid-template-columns: 1fr; } }
