/* ===========================================================
   McNeil Red Cross - Shared Stylesheet
   Fonts: Playfair Display (headings) + Source Serif 4 (body)
   =========================================================== */

:root {
  --red: #ED1B2E;
  --red-dark: #C4121F;
  --bg: #FAF8F5;
  --ink: #1A1A1A;
  --accent: #F0ECEA;
  --white: #FFFFFF;
  --muted: #5A5550;
  --border: #E3DDD8;

  --maxw: 1120px;
  --nav-h: 64px;

  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Source Serif 4", Georgia, serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Soft, layered "expensive" shadows - not cheap drop shadows */
  --shadow-card: 0 1px 2px rgba(26, 26, 26, 0.04), 0 12px 30px -20px rgba(26, 26, 26, 0.22);
  --shadow-card-hover: 0 2px 6px rgba(26, 26, 26, 0.06), 0 26px 50px -26px rgba(26, 26, 26, 0.30);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--ink);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh; /* iOS Safari: avoid the address-bar 100vh jump */
  display: flex;
  flex-direction: column;
}

/* Subtle paper grain - pure CSS/SVG, no image requests */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

/* Keep real content above the grain */
main,
.site-footer { position: relative; z-index: 1; }
/* Nav must sit above page content (esp. the mobile dropdown) */
.site-nav { position: sticky; z-index: 50; }

img { max-width: 100%; display: block; }

a { color: var(--red); text-decoration: none; }

/* Inline content links: a refined underline that grows in on hover */
.prose a,
.faq-item .answer a,
.steps a,
.callout a {
  background-image: linear-gradient(var(--red), var(--red));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1.5px;
  padding-bottom: 1px;
  transition: background-size 0.3s var(--ease);
}
.prose a:hover,
.faq-item .answer a:hover,
.steps a:hover,
.callout a:hover { background-size: 100% 1.5px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
}

p { margin: 0 0 1.1em; max-width: 68ch; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--red);
  margin: 0 0 1rem;
}
/* Editorial leading rule */
.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  background: var(--red);
  flex: none;
}

/* ===========================================================
   ACCESSIBILITY - skip link + focus ring
   =========================================================== */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7rem 1.1rem;
  border-radius: 2px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0.75rem; outline: 2px solid var(--white); outline-offset: 2px; }

main { scroll-margin-top: var(--nav-h); }
main:focus { outline: none; }

/* Consistent, on-brand keyboard focus ring across all interactive elements */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}
/* On the red footer, a red ring is invisible - use white there */
.site-footer a:focus-visible { outline-color: var(--white); }

/* ===========================================================
   NAV (injected by nav.js)
   =========================================================== */
.site-nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  height: var(--nav-h);
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}

.brand-mark {
  width: 22px;
  height: 22px;
  flex: none;
  position: relative;
}
/* Red Cross glyph from two bars */
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: var(--red);
  border-radius: 1px;
}
.brand-mark::before { inset: 0 40%; }      /* vertical bar */
.brand-mark::after  { inset: 40% 0; }      /* horizontal bar */

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 1.9rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.35rem 0;
  white-space: nowrap;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-links a.active { color: var(--red); }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transform: translateX(-50%);
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }

.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateX(-50%) rotate(45deg); top: 0; }
.nav-open .nav-toggle span::after  { transform: translateX(-50%) rotate(-45deg); top: 0; }

/* ===========================================================
   BUTTONS
   =========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85rem 1.6rem;
  border-radius: 2px;
  border: 2px solid var(--red);
  background: var(--red);
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -12px rgba(237, 27, 46, 0.55);
}
.btn:active { transform: translateY(0); box-shadow: none; }

.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.88rem; }

/* ===========================================================
   PAGE HEADER (interior pages)
   =========================================================== */
.page-head {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2rem, 5vw, 3.25rem);
  border-bottom: 1px solid var(--border);
}
.page-head h1 {
  font-size: clamp(2.4rem, 6vw, 4.25rem);
}
/* Render the ampersand in the body serif so it reads as a normal "&" */
.amp {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  font-style: italic;
}
.page-head .lead {
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
  color: var(--muted);
  max-width: 60ch;
}

.section { padding: clamp(2.75rem, 7vw, 5rem) 0; }
.section + .section { border-top: 1px solid var(--border); }
.section h2 { font-size: clamp(1.8rem, 4vw, 2.75rem); }
/* Tinted "feature band" - gives depth so white cards read as floating */
.section.surface {
  background: linear-gradient(180deg, #F2EDE9 0%, #ECE6E0 100%);
  border-top: 1px solid var(--border);
}
.section.surface + .section { border-top: 0; }

/* ===========================================================
   HERO (home)
   =========================================================== */
.hero {
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100dvh - var(--nav-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  /* Soft coral-red gradient fading into the page background (Westwood-style) */
  background: linear-gradient(
    180deg,
    #F5847A 0%,
    #F89B92 16%,
    #FBC1BB 38%,
    #FDE0DC 60%,
    var(--bg) 100%
  );
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  width: 100%;
}
.hero-copy h1 {
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 0.95;
}
.hero-copy h1 .line2 { color: var(--red); }
.hero-sub {
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.45rem);
  color: var(--muted);
  max-width: 34ch;
  margin: 1.25rem 0 2rem;
}

/* Offset rectangle + diagonal cut */
.hero-art {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
}
.hero-art .slab {
  position: absolute;
  inset: 8% -6% 8% 14%;
  background: var(--red);
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
  box-shadow: -18px 18px 0 0 var(--accent);
}
.hero-art .slab::after {
  /* white cross emblem */
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  width: 34%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(var(--white), var(--white)) center / 34% 100% no-repeat,
    linear-gradient(var(--white), var(--white)) center / 100% 34% no-repeat;
}
.hero-art .tag {
  position: absolute;
  left: 0;
  bottom: 4%;
  background: var(--ink);
  color: var(--white);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.5rem 0.9rem;
}

/* ===========================================================
   WELCOME + TWO-COLUMN
   =========================================================== */
.welcome-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.welcome-logo { display: flex; justify-content: center; }
.welcome-logo img {
  width: min(100%, 340px);
  height: auto;
}
.welcome-text p { max-width: 60ch; }
.welcome-text p:first-child {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.85rem);
  line-height: 1.4;
  color: var(--ink);
}
.welcome-text p:last-child { color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: stretch;
}
.split .panel {
  background: var(--red);
  color: var(--white);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.split .panel .stat {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1;
  margin-bottom: 0.2rem;
}
.split .panel .stat-label { font-size: 0.95rem; opacity: 0.92; }
.mission-quote {
  margin: 1.75rem 0 0;
  padding: 0.15rem 0 0.15rem 1.5rem;
  border-left: 4px solid var(--red);
}
.mission-quote p {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 0.65rem;
  max-width: 60ch;
}
.mission-quote cite {
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.split .panel::after {
  content: "";
  position: absolute;
  right: -30%;
  bottom: -30%;
  width: 70%;
  aspect-ratio: 1;
  border: 2px solid rgba(255,255,255,0.18);
  border-radius: 50%;
}

/* ===========================================================
   CARD LINKS (home bottom)
   =========================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.link-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--red);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--ink);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.link-card h3 { font-size: 1.5rem; margin: 0; transition: color 0.25s ease; }
.link-card p { color: var(--muted); margin: 0; font-size: 0.95rem; transition: color 0.25s ease; }
.link-card .arrow {
  margin-top: auto;
  font-weight: 600;
  color: var(--red);
  transition: color 0.25s ease, transform 0.3s var(--ease);
}
.link-card:hover {
  transform: translateY(-4px);
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  box-shadow: var(--shadow-card-hover);
}
.link-card:hover .arrow { transform: translateX(6px); }
.link-card:hover h3,
.link-card:hover p,
.link-card:hover .arrow { color: var(--white); }

/* ===========================================================
   EVENT CARDS (calendar)
   =========================================================== */
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.event-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.2s ease;
}
.event-card:hover { transform: translateY(-4px); border-color: var(--red); box-shadow: var(--shadow-card-hover); }
.event-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding: 0.55rem 0.8rem;
  line-height: 1;
}
.event-badge .d { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; }
.event-badge .m { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; }
.event-card h3 { font-size: 1.4rem; margin: 0.5rem 0 0; padding-right: 3.5rem; }
.event-meta { font-size: 0.85rem; color: var(--red); font-weight: 600; letter-spacing: 0.03em; }
.event-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.event-card .btn { align-self: flex-start; margin-top: 0.4rem; }

.calendar-embed,
.sheet-embed,
.form-embed {
  border: 1px solid var(--border);
  background: var(--white);
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  padding: 2rem;
}
/* Sheet embed fills edge-to-edge */
.sheet-embed { padding: 0; }

/* Sheet frame: on-brand title bar + "open in Google Sheets" button */
.sheet-frame { border: 1px solid var(--border); background: var(--white); }
.sheet-frame .sheet-embed { border: 0; }
.sheet-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.9rem;
  background: var(--accent);
  border-bottom: 1px solid var(--border);
}
.sheet-bar-title {
  font-family: var(--font-head);
  font-size: 1.02rem;
  color: var(--ink);
}
.sheet-bar-open {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  background: var(--red);
  padding: 0.5rem 0.9rem;
  border-radius: 2px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.sheet-bar-open:hover { background: var(--red-dark); transform: translateY(-1px); }
/* Form embed holds a tall Google Form iframe that sets its own height */
.form-embed { display: block; height: auto; min-height: 0; padding: 0; }

/* ---------- Access your hours (icon + text) ---------- */
.access-grid {
  display: grid;
  grid-template-columns: minmax(0, 200px) 1fr;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  align-items: center;
}
.access-icon { display: flex; justify-content: center; }
.sheet-glyph { width: min(100%, 170px); height: auto; }
.access-grid h2 { margin-bottom: 0.75rem; }
.req-list {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  max-width: 60ch;
}
.req-list li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.45rem;
  color: var(--muted);
}
.req-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  background: var(--red);
}
/* Make any pasted iframe fill the embed box edge-to-edge */
.calendar-embed > iframe,
.sheet-embed > iframe,
.form-embed > iframe {
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
  display: block;
}
.form-embed > iframe { height: 1100px; }

/* ---------- Steps to Register ---------- */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 70ch;
}
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 3.25rem;
  margin-bottom: 1.5rem;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  width: 2.1rem;
  height: 2.1rem;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.steps ul {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}
.steps ul li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.97rem;
}
.steps ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  background: var(--red);
}

/* ===========================================================
   CALLOUT (hours note)
   =========================================================== */
.callout {
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
  background: var(--white);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  margin-top: 1.75rem;
}
.callout p { margin: 0; color: var(--muted); }
.callout strong { color: var(--ink); }

/* ===========================================================
   OFFICERS
   =========================================================== */
.officer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.officer-card {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.2s ease;
}
.officer-card:hover { transform: translateY(-4px); border-color: var(--red); box-shadow: var(--shadow-card-hover); }
.officer-card .avatar { transition: transform 0.3s var(--ease); }
.officer-card:hover .avatar { transform: scale(1.06) rotate(-3deg); }
.avatar {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}
.officer-card h3 { font-size: 1.3rem; margin: 0 0 0.15rem; }
.officer-card .role {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin: 0;
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 2.5rem);
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.1rem 1.4rem;
  flex: 1 1 300px;
  min-width: 0;
}
.contact-item > span:last-child { min-width: 0; }
.contact-item .sq { width: 28px; height: 28px; background: var(--red); flex: none; }
.contact-item .k { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.contact-item .v {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.85rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

/* ---------- Coming Soon (calendar) ---------- */
.coming-soon {
  text-align: center;
  max-width: 540px;
  margin-inline: auto;
  padding: clamp(1.5rem, 5vw, 3.5rem) 0;
}
.coming-soon .cs-mark {
  display: block;
  width: 40px;
  height: 40px;
  margin: 0 auto 1.5rem;
  position: relative;
}
.coming-soon .cs-mark::before,
.coming-soon .cs-mark::after {
  content: "";
  position: absolute;
  background: var(--red);
  border-radius: 1px;
}
.coming-soon .cs-mark::before { inset: 0 40%; }
.coming-soon .cs-mark::after { inset: 40% 0; }
.coming-soon .cs-eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--red);
  margin: 0 0 0.6rem;
}
.coming-soon h2 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  margin: 0 0 1rem;
}
.coming-soon .cs-text {
  color: var(--muted);
  max-width: 44ch;
  margin: 0 auto 2rem;
}

/* ---------- Prose (About) ---------- */
.prose p { max-width: 72ch; color: var(--ink); }
.prose p + p { margin-top: 0.2rem; }

/* ---------- FAQ accordion ---------- */
.faq {
  max-width: 78ch;
  border-top: 1px solid var(--border);
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item > summary {
  cursor: pointer;
  list-style: none;
  padding: 1.2rem 0;
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 1rem + 0.45vw, 1.4rem);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color 0.2s ease;
}
.faq-item > summary:hover { color: var(--red); }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "+";
  flex: none;
  color: var(--red);
  font-size: 1.6rem;
  line-height: 1;
}
.faq-item[open] > summary::after { content: "\2013"; }
.faq-item .answer {
  padding: 0 0 1.3rem;
  animation: fadeUp 0.3s ease-out both;
}
.faq-item .answer p {
  margin: 0;
  max-width: 70ch;
  color: var(--muted);
}

/* ---------- Past officer year dropdowns (for future use) ---------- */
.past-year {
  border: 1px solid var(--border);
  background: var(--white);
  margin-bottom: 0.75rem;
}
.past-year > summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.25rem;
  font-family: var(--font-head);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s ease;
}
.past-year > summary:hover { background: var(--accent); }
.past-year > summary::-webkit-details-marker { display: none; }
.past-year > summary::after { content: "+"; color: var(--red); font-size: 1.4rem; line-height: 1; }
.past-year[open] > summary::after { content: "\2013"; }
.past-year ul { list-style: none; margin: 0; padding: 0 1.25rem 1rem; }
.past-year ul li {
  display: flex;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--border);
  color: var(--ink);
}
.past-year ul li span {
  flex: none;
  width: 11rem;
  color: var(--red);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ===========================================================
   FOOTER (injected by nav.js)
   =========================================================== */
.site-footer {
  margin-top: auto;
  background: var(--red);
  color: var(--white);
}
.footer-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(2.25rem, 5vw, 3.25rem) clamp(1.25rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}
.site-footer .brand { color: var(--white); }
.site-footer .brand .brand-mark::before,
.site-footer .brand .brand-mark::after { background: var(--white); }
.footer-col h4 {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  opacity: 0.85;
  margin: 0 0 0.7rem;
}
.footer-col a { color: var(--white); text-decoration: none; opacity: 0.92; }
.footer-col a:hover { text-decoration: underline; }
.footer-col p { margin: 0 0 0.35rem; opacity: 0.92; font-size: 0.95rem; max-width: none; }
.footer-tagline { font-size: 0.95rem; opacity: 0.9; margin-top: 0.6rem; max-width: 32ch; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.22);
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem);
  max-width: var(--maxw);
  margin-inline: auto;
  font-size: 0.82rem;
  opacity: 0.85;
}

/* ===========================================================
   ANIMATIONS
   =========================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.4s ease-out both; }
.fade-up.d1 { animation-delay: 0.08s; }
.fade-up.d2 { animation-delay: 0.16s; }
.fade-up.d3 { animation-delay: 0.24s; }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 920px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
    max-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    visibility: hidden; /* keep the closed menu fully hidden (no first-item peek) */
    transition: max-height 0.32s var(--ease), padding 0.32s var(--ease), visibility 0s linear 0.32s;
  }
  .nav-open .nav-links {
    max-height: calc(100dvh - var(--nav-h));
    padding: 0.25rem clamp(1.25rem, 4vw, 2.5rem) 0.75rem;
    visibility: visible;
    transition: max-height 0.32s var(--ease), padding 0.32s var(--ease), visibility 0s;
  }
  .nav-links a { width: 100%; padding: 0.85rem 0; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a::after { display: none; }

  /* Mobile hero: copy first, then an edge-to-edge red banner (not a shrunken square) */
  .hero { min-height: auto; padding: clamp(2rem, 8vw, 3rem) 0 clamp(2.5rem, 8vw, 3.5rem); }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-art {
    max-width: none;
    width: auto;
    aspect-ratio: 16 / 9;
    margin: clamp(1.75rem, 6vw, 2.5rem) calc(-1 * clamp(1.25rem, 4vw, 2.5rem)) 0;
  }
  .hero-art .slab {
    inset: 0;
    clip-path: polygon(6% 0, 100% 0, 100% 100%, 0 100%);
    box-shadow: none;
  }
  .hero-art .slab::after { width: auto; height: 46%; left: 52%; }
  .hero-art .tag { left: clamp(1.25rem, 4vw, 2.5rem); bottom: 1rem; }

  .welcome-grid,
  .access-grid,
  .split { grid-template-columns: 1fr; }
  .welcome-logo img { width: min(70%, 280px); }
  .access-icon { justify-content: flex-start; }
  .sheet-glyph { width: 120px; }

  /* Embeds: viewport-relative height + smooth momentum scroll on phones */
  .calendar-embed,
  .sheet-embed { height: 68vh; min-height: 380px; }
  .calendar-embed > iframe,
  .sheet-embed > iframe,
  .form-embed > iframe { -webkit-overflow-scrolling: touch; }
  /* Google Form reflows much taller when narrow - give it room so it
     doesn't get its own cramped inner scrollbar */
  .form-embed > iframe { height: 1400px; }
  .sheet-bar { flex-wrap: wrap; }

  .card-grid,
  .feature-list,
  .event-grid,
  .officer-grid { grid-template-columns: 1fr; }

  .form-grid { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; }

  /* Condensed officer roster - tighter rows, thumb-sized */
  .officer-grid { gap: 0.7rem; }
  .officer-card {
    flex-direction: row;
    align-items: center;
    gap: 0.9rem;
    padding: 0.95rem 1.05rem;
  }
  .officer-card .avatar { width: 52px; height: 52px; font-size: 1.1rem; }
  .officer-card h3 { font-size: 1.15rem; }
}

@media (max-width: 480px) {
  .event-card h3 { padding-right: 3.25rem; }

  /* Dial back oversized display type so headings fit small phones */
  .hero-copy h1 { font-size: clamp(2.6rem, 12vw, 3.25rem); }
  .page-head { padding: clamp(2.25rem, 9vw, 3rem) 0 clamp(1.5rem, 6vw, 2rem); }
  .page-head h1 { font-size: clamp(2rem, 9vw, 2.7rem); }
  .section { padding: clamp(2.25rem, 9vw, 3rem) 0; }

  /* Long emails: let the contact cards take the full width and wrap */
  .contact-item { flex: 1 1 100%; }
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
