/* ============================================================
   BROOKSIDE MUSEUM · Saratoga County History Center
   Redesign — warm heritage editorial, modern UX
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Palette — SCHC brand: deep teal + cyan + reserved coral CTA, soft warm white.
     Variable names kept (spruce=teal, brass=cyan, garnet=coral) so all
     components inherit the rebrand automatically. */
  --paper:      #F6F5F0;
  --paper-2:    #ECEAE1;
  --paper-3:    #DFDDD1;
  --ink:        #15323B;
  --ink-soft:   #3F555C;
  --ink-faint:  #546469;
  --spruce:     #1C4E5F;   /* TEAL — primary brand */
  --spruce-2:   #163E4C;
  --spruce-deep:#0E2B35;
  --brass:      #1C6E78;   /* deep CYAN — accent text on light (AA) */
  --brass-soft: #5BC6D0;   /* bright cyan — accent on dark */
  --garnet:     #B0432C;   /* CORAL, darkened so text and white-on-coral both meet WCAG AA */
  --garnet-2:   #93361F;
  --cream:      #FBFAF6;
  --line:       rgba(21, 50, 59, 0.14);
  --line-soft:  rgba(21, 50, 59, 0.08);

  /* Type */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Rhythm */
  --container: 1200px;
  --gap: clamp(1rem, 3vw, 2rem);
  --section-y: clamp(3rem, 6.5vw, 5.5rem);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(28,27,20,.06), 0 2px 8px rgba(28,27,20,.05);
  --shadow-md: 0 6px 20px rgba(28,27,20,.10), 0 2px 6px rgba(28,27,20,.06);
  --shadow-lg: 0 18px 48px rgba(15,38,32,.20);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
/* Two-tone ring: the white shows on dark backgrounds, the dark outline on light ones. */
:focus-visible { outline: 3px solid var(--spruce-deep); outline-offset: 2px; box-shadow: 0 0 0 2px #fff; border-radius: 4px; }
html { scroll-padding-top: 6.5rem; } /* keeps focused items clear of the sticky header */
.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; }
/* Links inside running text need more than color to stand out. */
main p a:not(.btn), main li a:not(.btn), .req-status a { text-decoration: underline; text-underline-offset: .15em; }

/* Paper grain overlay */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); font-weight: 460; }
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.serif-italic { font-style: italic; }

.container { width: min(100% - 2.4rem, var(--container)); margin-inline: auto; }
.container-narrow { width: min(100% - 2.4rem, 880px); margin-inline: auto; }

/* Section scaffolding */
section { position: relative; z-index: 2; }
.section { padding-block: var(--section-y); }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  font-family: var(--sans);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--brass);
  display: inline-flex; align-items: center; gap: .6rem;
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brass); display: inline-block; }
.section-head.center .eyebrow::before { display: none; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-soft); margin-top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .82rem 1.5rem;
  border-radius: 100px;
  font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.05em; height: 1.05em; }
.btn-primary { background: var(--spruce); color: var(--cream); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--spruce-2); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); background: rgba(28,27,20,.03); }
.btn-donate { background: var(--garnet); color: #fff; box-shadow: 0 2px 10px rgba(166,57,42,.35); }
.btn-donate:hover { background: var(--garnet-2); box-shadow: 0 8px 22px rgba(166,57,42,.42); }
.btn-light { background: var(--cream); color: var(--spruce-deep); }
.btn-light:hover { background: #fff; }
.btn-outline-light { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); color: var(--cream); background: rgba(14,43,53,.72); }
.btn-outline-light:hover { box-shadow: inset 0 0 0 1.5px #fff; background: rgba(14,43,53,.75); }
.btn-sm { padding: .55rem 1.05rem; font-size: .9rem; }

/* ============================================================
   HEADER
   ============================================================ */
.topbar {
  background: var(--spruce-deep); color: var(--cream);
  font-size: .82rem; letter-spacing: .02em;
  position: relative; z-index: 60;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; padding-block: .5rem; gap: 1rem; }
.topbar a { opacity: .85; transition: opacity .2s; }
.topbar a:hover { opacity: 1; }
.topbar-status { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brass-soft); box-shadow: 0 0 0 0 rgba(201,164,85,.6); }
.status-dot.open { background: #7BB36A; animation: pulse 2.4s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(123,179,106,.5);} 70%{box-shadow:0 0 0 7px rgba(123,179,106,0);} 100%{box-shadow:0 0 0 0 rgba(123,179,106,0);} }
.topbar-socials { display: flex; gap: 1.1rem; align-items: center; }
.topbar-socials svg { width: 15px; height: 15px; }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,238,220,.85);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 24px rgba(28,27,20,.06); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .85rem; transition: padding .3s; }
.header.scrolled .nav { padding-block: .55rem; }

/* Brand mark */
.brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand-mark { width: 42px; height: 42px; flex-shrink: 0; transition: transform .3s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-4deg) scale(1.04); }
/* SCHC four-color lettermark (recreated from the official logo) */
.schc-mark { font-family: var(--serif); font-size: 1.95rem; line-height: 1; letter-spacing: -.005em;
  display: inline-flex; flex-shrink: 0; transition: transform .3s var(--ease); padding-right: .85rem; }
.brand:hover .schc-mark { transform: translateY(-1px) scale(1.03); }
.schc-mark b { font-weight: 600; }
.schc-mark .c1 { color: var(--spruce); }   /* S — teal */
.schc-mark .c2 { color: #E8745B; }          /* C — coral */
.schc-mark .c3 { color: #4FBCC7; }          /* H — cyan */
.schc-mark .c4 { color: #16242A; }          /* C — near-black */
.brand-text { border-left: 1.5px solid var(--line); padding-left: .85rem; }
.footer .schc-mark .c1 { color: #74B7C3; }
.footer .schc-mark .c4 { color: #F3EFE6; }
.footer .brand-text { border-left-color: rgba(255,255,255,.16); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.32rem; letter-spacing: -.01em; }
.brand-sub { font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); margin-top: .28rem; font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-links a, .nav-menu-btn {
  padding: .5rem .8rem; border-radius: 8px; font-weight: 500; font-size: .96rem;
  color: var(--ink-soft); position: relative; transition: color .2s, background .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .32rem; height: 2px;
  background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease);
  border-radius: 2px;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--ink); }

.nav-cta { display: flex; align-items: center; gap: .6rem; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; align-items: center; justify-content: center; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, var(--spruce) 0%, var(--spruce-2) 55%, var(--spruce-deep) 100%);
  color: var(--cream);
  z-index: 2;
}
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; z-index: 0; }
.hero-mapbadge { position: absolute; top: 1.6rem; right: clamp(1.25rem, 4vw, 3.5rem); height: clamp(74px, 9vw, 122px); width: auto; z-index: 4; filter: drop-shadow(0 4px 14px rgba(0,0,0,.38)); }
.hero-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(98deg, var(--spruce-deep) 4%, rgba(14,43,53,.92) 32%, rgba(14,43,53,.66) 64%, rgba(14,43,53,.42) 100%),
    linear-gradient(to top, rgba(14,43,53,.55), transparent 38%); }
.hero-topo { position: absolute; inset: 0; opacity: .10; pointer-events: none; z-index: 1; }
.hero-topo svg { width: 100%; height: 100%; }
.hero-glow { position: absolute; z-index: 1; pointer-events: none; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  right: -10%; top: -20%; background: radial-gradient(circle, rgba(91,198,208,.16), transparent 65%); }
.hero .container { position: relative; z-index: 2; }
.hero-inner { padding-block: clamp(4rem, 11vw, 8.5rem) clamp(0rem, 2vw, 1.5rem); max-width: 920px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brass-soft); margin-bottom: 1.6rem;
}
.hero-eyebrow .seal { width: 22px; height: 22px; }
.hero h1 { color: var(--cream); margin-bottom: 1.4rem; }
.hero h1 em { color: var(--brass-soft); font-weight: 460; }
.hero-sub { font-size: clamp(1.08rem, 1.8vw, 1.32rem); color: rgba(251,246,234,.82); max-width: 620px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }

/* At-a-glance bar */
.glance {
  position: relative; z-index: 3;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  background: rgba(15,38,32,.55);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(6px);
  display: grid; grid-template-columns: repeat(5, 1fr);
  overflow: hidden;
}
.glance-item { padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: .25rem; position: relative; }
.glance-item + .glance-item::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: rgba(255,255,255,.14); }
.glance-label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-soft); font-weight: 700; }
.glance-value { font-family: var(--serif); font-size: 1.18rem; color: var(--cream); }
.glance-value small { font-family: var(--sans); font-size: .85rem; color: rgba(251,246,234,.7); display: block; font-weight: 400; }

.hero-curve { display: block; width: 100%; height: clamp(40px, 6vw, 80px); position: relative; z-index: 2; color: var(--paper); margin-top: clamp(2rem,5vw,3.5rem); }

/* ============================================================
   MARQUEE / trust strip
   ============================================================ */
.trust { background: var(--paper-2); border-block: 1px solid var(--line-soft); }
.trust .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; padding-block: 1.4rem; }
.trust-item { display: flex; align-items: center; gap: .65rem; font-size: .92rem; color: var(--ink-soft); }
.trust-item svg { width: 22px; height: 22px; color: var(--spruce); flex-shrink: 0; }
.trust-item strong { color: var(--ink); font-weight: 600; }

/* ============================================================
   EVENTS
   ============================================================ */
.events { background: var(--paper); }
.events-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.5rem; }

/* Featured next event */
.next-event {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(1rem, 3vw, 2.5rem);
  background: linear-gradient(120deg, var(--spruce) 0%, var(--spruce-2) 100%);
  color: var(--cream); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.2rem);
  margin-bottom: 2.5rem; box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.next-event::after { content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(201,164,85,.18), transparent 70%); pointer-events: none; }
.next-badge { position: absolute; top: 1.1rem; right: 1.4rem; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--brass-soft); }
.ne-date {
  text-align: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px; padding: 1rem 1.2rem; min-width: 96px;
}
.ne-date .mo { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-soft); font-weight: 700; }
.ne-date .day { font-family: var(--serif); font-size: 2.7rem; line-height: 1; margin: .2rem 0; }
.ne-date .dow { font-size: .78rem; color: rgba(251,246,234,.7); text-transform: uppercase; letter-spacing: .08em; }
.ne-body h3 { color: var(--cream); margin-bottom: .4rem; }
.ne-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; color: rgba(251,246,234,.8); font-size: .92rem; margin-bottom: .6rem; }
.ne-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.ne-meta svg { width: 15px; height: 15px; opacity: .8; }
.ne-desc { color: rgba(251,246,234,.78); font-size: .96rem; max-width: 52ch; }
.ne-countdown { font-size: .82rem; color: var(--brass-soft); font-weight: 600; margin-top: .5rem; }

/* Events grid */
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.4rem; }
.event-card {
  background: var(--cream); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 1.5rem; display: flex; flex-direction: column; gap: .85rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  position: relative;
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line); }
.ec-top { display: flex; align-items: flex-start; gap: 1rem; }
.date-chip {
  flex-shrink: 0; text-align: center; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 12px; padding: .55rem .65rem; min-width: 64px; line-height: 1;
}
.date-chip .mo { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--garnet); }
.date-chip .day { font-family: var(--serif); font-size: 1.75rem; color: var(--ink); display: block; margin-top: .15rem; }
.ec-cat { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brass); }
.event-card h3 { font-size: 1.22rem; margin-top: .15rem; }
.ec-meta { display: flex; flex-direction: column; gap: .35rem; font-size: .88rem; color: var(--ink-soft); }
.ec-meta span { display: inline-flex; align-items: center; gap: .5rem; }
.ec-meta svg { width: 15px; height: 15px; color: var(--ink-faint); flex-shrink: 0; }
.ec-desc { font-size: .94rem; color: var(--ink-soft); flex-grow: 1; }
.ec-foot { display: flex; align-items: center; justify-content: space-between; margin-top: .35rem; padding-top: .9rem; border-top: 1px solid var(--line-soft); }
.price-tag { font-weight: 700; font-size: .92rem; color: var(--spruce); }
.price-tag.free { color: var(--spruce); }
.ec-link { font-weight: 600; font-size: .9rem; color: var(--garnet); display: inline-flex; align-items: center; gap: .3rem; transition: gap .2s; }
.event-card:hover .ec-link { gap: .55rem; }

.events-foot { text-align: center; margin-top: 2.5rem; }

/* ============================================================
   VIDEOS
   ============================================================ */
.videos { background: var(--spruce-deep); color: var(--cream); }
.videos .eyebrow { color: var(--brass-soft); }
.videos .eyebrow::before { background: var(--brass-soft); }
.videos h2 { color: var(--cream); }
.videos .lead { color: rgba(251,246,234,.75); }
.videos-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.2rem; }
.yt-sub { display: inline-flex; align-items: center; gap: .5rem; color: var(--cream); font-weight: 600; font-size: .95rem; }
.yt-sub svg { width: 22px; height: 22px; color: #FF4B3E; }

.video-feature { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.6rem; margin-bottom: 2.2rem; }
.vf-main { border-radius: var(--radius-lg); overflow: hidden; position: relative; background: #000; box-shadow: var(--shadow-lg); }
.vf-thumb { aspect-ratio: 16/9; width: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.vf-main:hover .vf-thumb { transform: scale(1.04); }
.play-btn {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(to top, rgba(15,38,32,.55), rgba(15,38,32,.05) 50%);
}
.play-icon { width: 76px; height: 76px; border-radius: 50%; background: rgba(166,57,42,.92); display: grid; place-items: center; transition: transform .3s var(--ease), background .3s; box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.vf-main:hover .play-icon { transform: scale(1.08); background: var(--garnet); }
.play-icon svg { width: 30px; height: 30px; color: #fff; margin-left: 4px; }
.vf-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem; }
.vf-series { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--brass-soft); margin-bottom: .4rem; }
.vf-title { display: block; font-family: var(--serif); line-height: 1.08; letter-spacing: -0.01em; color: #fff; font-size: clamp(1.2rem,2vw,1.7rem); }
.vf-side { display: flex; flex-direction: column; gap: .9rem; }
.vf-side-label { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-soft); font-weight: 700; }
.vf-mini { display: grid; grid-template-columns: 120px 1fr; gap: .85rem; align-items: center; cursor: pointer; border-radius: 12px; padding: .4rem; transition: background .2s; text-align: left; width: 100%; }
.vf-mini:hover { background: rgba(255,255,255,.06); }
.vf-mini img { width: 120px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; }
.vf-mini .t { font-size: .9rem; font-weight: 500; line-height: 1.3; color: var(--cream); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vf-mini .d { font-size: .78rem; color: rgba(251,246,234,.78); margin-top: .25rem; }

/* Filters */
.vid-filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.6rem; }
.chip {
  padding: .5rem 1.05rem; border-radius: 100px; font-size: .88rem; font-weight: 600;
  color: rgba(251,246,234,.8); background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12); transition: all .2s;
}
.chip:hover { background: rgba(255,255,255,.12); color: var(--cream); }
.chip.active { background: var(--brass-soft); color: var(--spruce-deep); border-color: var(--brass-soft); }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.3rem; }
.vid-card { cursor: pointer; text-align: left; width: 100%; transition: transform .3s var(--ease); }
.vid-card:hover { transform: translateY(-4px); }
.vc-thumb { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; background: #0b1a15; box-shadow: var(--shadow-sm); }
.vc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.vid-card:hover .vc-thumb img { transform: scale(1.06); }
.vc-thumb .mini-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15,38,32,.18); opacity: 0; transition: opacity .25s; }
.vid-card:hover .mini-play { opacity: 1; }
.vc-thumb .mini-play span { width: 50px; height: 50px; border-radius: 50%; background: rgba(166,57,42,.95); display: grid; place-items: center; }
.vc-thumb .mini-play svg { width: 20px; height: 20px; color: #fff; margin-left: 3px; }
.vc-meta { padding-top: .8rem; }
.vc-series { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-soft); font-weight: 700; }
.vc-title { font-size: .98rem; font-weight: 500; line-height: 1.35; margin-top: .3rem; color: var(--cream); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vc-date { font-size: .8rem; color: rgba(251,246,234,.78); margin-top: .35rem; }
.videos-foot { text-align: center; margin-top: 2.6rem; }

/* ============================================================
   EXHIBITS
   ============================================================ */
.exhibits { background: var(--paper); }
.exhibit-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.4rem; }
.ex-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 280px;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.7rem;
  color: var(--cream); isolation: isolate; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.ex-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.ex-card::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--g, linear-gradient(150deg,var(--spruce),var(--spruce-deep))); }
.ex-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(8,20,16,.78) 8%, rgba(8,20,16,.12) 60%, transparent); }
.ex-pattern { position: absolute; inset: 0; z-index: -1; opacity: .16; }
.ex-card.lg { grid-column: span 6; min-height: 360px; }
.ex-card.sm { grid-column: span 3; }
.ex-card.md { grid-column: span 4; }
.ex-card.half { grid-column: span 6; }
.ex-card.tall { min-height: 360px; }
.ex-tag { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--brass-soft); margin-bottom: .55rem; }
.ex-card h3 { color: #fff; font-size: clamp(1.25rem, 2vw, 1.6rem); }
.ex-card p { color: rgba(255,255,255,.82); font-size: .94rem; margin-top: .5rem; max-width: 40ch; }
.ex-card .ec-arrow { margin-top: .9rem; display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .9rem; color: var(--brass-soft); transition: gap .2s; }
.ex-card:hover .ec-arrow { gap: .7rem; }

/* ============================================================
   SUPPORT / DONATE
   ============================================================ */
.support { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }
.give-band {
  background: var(--garnet);
  background: linear-gradient(135deg, #B5402F 0%, var(--garnet) 50%, var(--garnet-2) 100%);
  color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg); margin-bottom: 3rem;
}
.give-band::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(255,255,255,.12), transparent 70%); }
.give-band .eyebrow { color: rgba(255,255,255,.9); }
.give-band .eyebrow::before { background: rgba(255,255,255,.7); }
.give-band h2 { color: #fff; }
.give-band p { color: rgba(255,255,255,.9); margin-top: 1rem; font-size: 1.05rem; max-width: 46ch; }
.give-actions { position: relative; z-index: 2; }
.give-amounts { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; margin-bottom: 1rem; }
.amt {
  background: rgba(255,255,255,.14); border: 1.5px solid rgba(255,255,255,.3); color: #fff;
  border-radius: 12px; padding: 1rem; font-family: var(--serif); font-size: 1.45rem; text-align: center;
  transition: all .2s; font-weight: 500;
}
.amt:hover, .amt.sel { background: #fff; color: var(--garnet); border-color: #fff; transform: translateY(-2px); }
.amt small { display: block; font-family: var(--sans); font-size: .68rem; letter-spacing: .04em; opacity: .7; margin-top: .2rem; font-weight: 600; }
.give-cta-row { display: flex; gap: .7rem; flex-wrap: wrap; }
.give-note { font-size: .8rem; color: rgba(255,255,255,.7); margin-top: .9rem; }

/* Membership */
.mem-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.mem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; align-items: stretch; }
.mem-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.7rem 1.5rem; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.mem-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.mem-card.featured { background: var(--spruce); color: var(--cream); border-color: var(--spruce); position: relative; box-shadow: var(--shadow-lg); }
.mem-flag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--brass-soft); color: var(--spruce-deep); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .35rem .85rem; border-radius: 100px; white-space: nowrap; }
.mem-tier { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--brass); }
.mem-card.featured .mem-tier { color: var(--brass-soft); }
.mem-price { font-family: var(--serif); font-size: 2.6rem; margin: .4rem 0 .1rem; line-height: 1; }
.mem-price span { font-size: .95rem; font-family: var(--sans); color: var(--ink-faint); font-weight: 500; }
.mem-card.featured .mem-price span { color: rgba(251,246,234,.78); }
.mem-benefits { list-style: none; margin: 1.2rem 0; display: flex; flex-direction: column; gap: .6rem; flex-grow: 1; }
.mem-benefits li { display: flex; gap: .55rem; font-size: .9rem; color: var(--ink-soft); align-items: flex-start; }
.mem-card.featured .mem-benefits li { color: rgba(251,246,234,.85); }
.mem-benefits svg { width: 16px; height: 16px; color: var(--spruce); flex-shrink: 0; margin-top: .15rem; }
.mem-card.featured .mem-benefits svg { color: var(--brass-soft); }
.mem-more { margin: 1.8rem auto 0; text-align: center; }
.mem-more-h { font-family: var(--serif); font-size: 1.1rem; margin: 0 0 .7rem; }
.mem-more-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.mem-more-list a { display: inline-flex; align-items: baseline; gap: .5rem; padding: .55rem 1rem; border: 1px solid var(--line, rgba(0,0,0,.14)); border-radius: 999px; background: var(--paper, #fff); color: inherit; text-decoration: none; }
.mem-more-list a:hover { border-color: var(--garnet); }
.mm-name { font-weight: 600; }
.mm-price { color: var(--ink-soft); font-weight: 600; }
.mem-foot { text-align: center; margin-top: 2rem; color: var(--ink-soft); }
.mem-foot a { color: var(--garnet); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   SUPPORTERS / PARTNERS
   ============================================================ */
.thanks-band {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding: clamp(1.8rem, 4vw, 2.6rem) clamp(1rem, 3vw, 2rem);
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); text-align: center;
}
.thanks-band h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.thanks-sub { color: var(--ink-soft); max-width: 58ch; margin: .6rem auto 1.8rem; }
.partner-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .9rem; }
.partner-card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.partner-card.has-logo { width: 190px; height: 92px; padding: .9rem 1.1rem; }
.partner-card.has-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.partner-card.name-only { padding: .55rem 1rem; min-height: 0; }
.partner-card.on-dark { background: var(--spruce); border-color: var(--spruce); }
.pc-name { font-weight: 600; color: var(--ink-soft); font-size: .9rem; line-height: 1.3; }
a.partner-card { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
a.partner-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
@media (max-width: 560px) { .partner-card.has-logo { width: 46%; height: 78px; } }

/* ---------- Site-wide announcement banner ---------- */
.site-banner {
  background: var(--garnet); color: #fff; text-align: center;
  padding: .7rem 1.2rem; font-size: .95rem; font-weight: 500; line-height: 1.4;
  position: relative; z-index: 45;
}
.site-banner a { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }

/* ============================================================
   VISIT
   ============================================================ */
.visit { background: var(--spruce); color: var(--cream); }
.visit .eyebrow { color: var(--brass-soft); } .visit .eyebrow::before { background: var(--brass-soft); }
.visit h2 { color: var(--cream); }
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.visit-info { display: flex; flex-direction: column; gap: 1.6rem; }
.vi-row { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start; padding-bottom: 1.4rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.vi-row:last-child { border-bottom: none; }
.vi-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.vi-icon svg { width: 22px; height: 22px; color: var(--brass-soft); }
.vi-row h3 { font-family: var(--sans); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-soft); font-weight: 700; margin-bottom: .35rem; }
.vi-row p { color: rgba(251,246,234,.9); font-size: 1.02rem; line-height: 1.5; }
.vi-row p small { color: rgba(251,246,234,.78); font-size: .85rem; }
.vi-row a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.4); }
.visit-map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.14); min-height: 420px; height: 100%; }
.visit-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: saturate(.9); }
.visit-cta { margin-top: 1rem; display: flex; gap: .8rem; flex-wrap: wrap; }

/* ============================================================
   ABOUT / STORY
   ============================================================ */
.about { background: var(--paper); position: relative; overflow: hidden; }
.about-map { position: absolute; right: -5%; top: 50%; transform: translateY(-50%); height: 125%; width: auto; opacity: .085; z-index: 0; pointer-events: none; }
.about .container { position: relative; z-index: 1; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-art { position: relative; }
.house-illo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.about-quote { font-family: var(--serif); font-size: clamp(1.4rem,2.6vw,2rem); line-height: 1.35; color: var(--ink); font-style: italic; }
.about-body p { color: var(--ink-soft); margin-top: 1.1rem; }
.about-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 2rem; }
.stat { border-left: 2px solid var(--brass); padding-left: 1rem; }
.stat .n { font-family: var(--serif); font-size: 2.1rem; color: var(--spruce); line-height: 1; }
.stat .l { font-size: .82rem; color: var(--ink-faint); margin-top: .3rem; }
.fact-pin { position: absolute; bottom: 1rem; right: 1rem; background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1.1rem; max-width: 240px; box-shadow: var(--shadow-md); font-size: .85rem; color: var(--ink-soft); }
.fact-pin strong { color: var(--ink); display: block; font-family: var(--serif); font-size: .95rem; margin-bottom: .2rem; }

/* ============================================================
   INTERIOR PAGE BANNER + exhibit detail rows
   ============================================================ */
.page-hero { background: linear-gradient(135deg, var(--spruce), var(--spruce-deep)); color: var(--cream); padding: clamp(2.6rem,6vw,4.5rem) 0 clamp(2.4rem,5vw,3.4rem); position: relative; overflow: hidden; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero .crumb { font-size: .84rem; color: rgba(251,246,234,.78); margin-bottom: 1rem; }
.page-hero .crumb a { color: var(--brass-soft); text-decoration: none; }
.page-hero .crumb a:hover { text-decoration: underline; }
.page-hero .eyebrow { color: var(--brass-soft); }
.page-hero .eyebrow::before { background: var(--brass-soft); }
.page-hero h1 { color: var(--cream); font-size: clamp(2.3rem,5vw,3.7rem); }
.page-hero p { color: rgba(251,246,234,.82); max-width: 62ch; margin-top: 1rem; font-size: clamp(1rem,1.5vw,1.15rem); }
.page-hero .pmap { position: absolute; right: -2%; top: 50%; transform: translateY(-50%); height: 165%; opacity: .12; z-index: 1; pointer-events: none; }

.exhibit-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,3.2rem); align-items: center; margin-bottom: clamp(2.5rem,5vw,4rem); }
.ed-img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-md); }
.ed-img img { width: 100%; height: 100%; object-fit: cover; }
.exhibit-detail:nth-child(even) .ed-img { order: 2; }
.ed-body .ex-tag { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--brass); margin-bottom: .6rem; }
.ed-body h2 { font-size: clamp(1.5rem,2.6vw,2.1rem); margin-bottom: .7rem; }
.ed-body p { color: var(--ink-soft); }
@media (max-width: 760px){ .exhibit-detail{ grid-template-columns: 1fr; } .exhibit-detail:nth-child(even) .ed-img{ order: 0; } }

/* ============================================================
   LIFE AT BROOKSIDE (gallery mosaic)
   ============================================================ */
.life { background: var(--paper-2); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 215px; gap: 14px; }
.g-item { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-sm); margin: 0; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.g-item:hover img { transform: scale(1.06); }
.g-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.1rem 1.2rem;
  color: #fff; font-size: .92rem; font-weight: 500; line-height: 1.3;
  background: linear-gradient(to top, rgba(14,43,53,.9), rgba(14,43,53,.1) 90%, transparent);
}
.g-wide { grid-column: span 2; }
.g-tall { grid-row: span 2; }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter { background: var(--paper-2); }
.nl-box { background: var(--spruce-deep); color: var(--cream); border-radius: var(--radius-lg); padding: clamp(2rem,5vw,3.5rem); text-align: center; position: relative; overflow: hidden; }
.nl-box::before { content: ""; position: absolute; inset: 0; opacity: .1; background-image: radial-gradient(var(--brass-soft) 1px, transparent 1px); background-size: 26px 26px; }
.nl-box > * { position: relative; }
.nl-box h2 { color: var(--cream); }
.nl-box p { color: rgba(251,246,234,.78); max-width: 52ch; margin: 1rem auto 1.8rem; }
.nl-form { display: flex; gap: .6rem; max-width: 480px; margin: 0 auto; flex-wrap: wrap; }
.nl-form input { flex: 1; min-width: 220px; padding: .9rem 1.2rem; border-radius: 100px; border: 1.5px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: var(--cream); font-size: 1rem; }
.nl-form input::placeholder { color: rgba(251,246,234,.78); }
.nl-form input:focus { border-color: var(--brass-soft); background: rgba(255,255,255,.1); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: rgba(251,246,234,.7); padding-block: clamp(3rem,6vw,4.5rem) 2rem; position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .brand-name { color: var(--cream); }
.footer .brand-sub { color: var(--brass-soft); }
.foot-about { font-size: .92rem; margin-top: 1.1rem; max-width: 34ch; }
.foot-socials { display: flex; gap: .8rem; margin-top: 1.3rem; }
.foot-socials a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.07); display: grid; place-items: center; transition: background .2s, transform .2s; }
.foot-socials a:hover { background: var(--brass); transform: translateY(-2px); }
.foot-socials svg { width: 18px; height: 18px; color: var(--cream); }
.foot-col h2 { font-family: var(--sans); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-soft); font-weight: 700; margin-bottom: 1.1rem; }
.foot-col ul { display: flex; flex-direction: column; gap: .6rem; }
.foot-col a { font-size: .92rem; transition: color .2s; }
.foot-col a:hover { color: var(--cream); }
.foot-hours { font-size: .9rem; line-height: 1.7; }
.foot-hours strong { color: var(--cream); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 2rem; font-size: .82rem; }
.footer-bottom a:hover { color: var(--cream); }

/* ============================================================
   VIDEO LIGHTBOX MODAL
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 1.5rem; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8,18,14,.85); backdrop-filter: blur(6px); animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.modal-content { position: relative; width: min(960px, 100%); z-index: 2; animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(10px); } }
.modal-content .frame { aspect-ratio: 16/9; width: 100%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: #000; }
.modal-content iframe { width: 100%; height: 100%; border: 0; }
.modal-title { color: var(--cream); margin-top: 1rem; font-family: var(--serif); font-size: 1.2rem; }
.modal-close { position: absolute; top: -3rem; right: 0; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; transition: background .2s; }
.modal-close:hover { background: rgba(255,255,255,.25); }
.modal-close svg { width: 22px; height: 22px; color: #fff; }

/* ---------- Reveal animation (only hides when JS is active) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Skip link ---------- */
.skip { position: absolute; left: -999px; top: 0; z-index: 999; background: var(--spruce); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 10px 0; }
.skip:focus { left: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .hide-mobile { display: none !important; }
}
@media (max-width: 1040px) {
  .video-feature { grid-template-columns: 1fr; }
  .mem-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
}
@media (max-width: 860px) {
  .glance { grid-template-columns: repeat(2, 1fr); }
  .glance-item:nth-child(3)::before { display: none; }
  .next-event { grid-template-columns: auto 1fr; }
  .next-event .btn { grid-column: 1 / -1; justify-self: start; }
  .give-band { grid-template-columns: 1fr; }
  .visit-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-art { order: -1; }
  .exhibit-grid { grid-template-columns: repeat(6, 1fr); }
  .ex-card.lg, .ex-card.md, .ex-card.sm, .ex-card.half { grid-column: span 6; min-height: 240px; }
  .topbar-socials { display: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .g-tall { grid-row: span 1; }
}
@media (max-width: 560px) {
  .glance { grid-template-columns: 1fr; }
  .glance-item + .glance-item::before { display: none; }
  .glance-item { border-top: 1px solid rgba(255,255,255,.1); }
  .glance-item:first-child { border-top: none; }
  .mem-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .next-event { grid-template-columns: 1fr; text-align: left; }
  .ne-date { justify-self: start; }
  .brand-sub { display: none; }
  .brand { min-width: 0; }
  .brand-name { font-size: 1.08rem; }
  .brand-mark { width: 34px; height: 34px; }
  .schc-mark { font-size: 1.5rem; padding-right: .55rem; }
  .brand-text { padding-left: .55rem; }
  .nav { gap: .5rem; }
  .nav-cta { gap: .4rem; }
  .btn-donate.btn-sm { padding: .5rem .9rem; }
  .nav-toggle { width: 40px; }
  h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
}
@media (max-width: 400px) {
  .schc-mark { display: none; }
  .brand-text { border-left: 0; padding-left: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Event photos (optional, added via the staff portal) ---------- */
.ec-photo { width: calc(100% + 3rem); max-width: none; height: 170px; object-fit: cover; margin: -1.5rem -1.5rem .2rem; border-radius: var(--radius) var(--radius) 0 0; }
.next-event.has-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(120deg, rgba(28,78,95,.97) 30%, rgba(22,62,76,.80) 100%), var(--ne-photo) center/cover;
}
.next-event.has-photo > *:not(.next-badge) { position: relative; z-index: 1; }

/* Information pages: research, education, shop, give */
.req-form label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: .8rem; }
.req-form input, .req-form select, .req-form textarea { display: block; width: 100%; margin-top: .3rem; padding: .65rem .75rem; font: inherit; font-weight: 400; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.req-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 .9rem; }
.req-hp { position: absolute; left: -9999px; }
.req-status { margin: .7rem 0 0; min-height: 1.4em; }
.req-status a { color: var(--garnet); text-decoration: underline; }
@media (max-width: 760px) { .req-grid { grid-template-columns: 1fr; } }
.info-wrap { max-width: 1040px; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.info-grid-3 { grid-template-columns: repeat(3, 1fr); }
.info-card { background: #fff; border: 1px solid var(--line-soft); border-radius: 16px; padding: 1.5rem; }
.info-card h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.info-card p { color: var(--ink-soft); margin-bottom: .8rem; }
.info-card p a, .info-note a, .info-cta p a { color: var(--garnet); text-decoration: underline; text-underline-offset: 3px; }
.info-card .btn { margin-top: .3rem; }
.info-h { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 2.6rem 0 1rem; scroll-margin-top: 110px; }
.info-note { color: var(--ink-faint); font-size: .92rem; margin: .8rem 0 0; }
.doc-list, .plain-list { margin: 0; padding: 0; list-style: none; }
.doc-list li { border-top: 1px solid var(--line-soft); }
.doc-list a { display: block; padding: .55rem 0; color: var(--spruce, var(--ink)); font-weight: 600; font-size: .95rem; }
.doc-list a:hover { color: var(--garnet); }
.plain-list { margin-bottom: .8rem; }
.plain-list li { position: relative; padding: .28rem 0 .28rem 1.05rem; color: var(--ink-soft); }
.plain-list li::before { content: ""; position: absolute; left: 0; top: .78rem; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); }
.soon { display: inline-block; font: 600 .68rem var(--sans, inherit); letter-spacing: .04em; color: var(--ink-faint); margin-left: .25rem; vertical-align: middle; }
.info-cta { text-align: center; background: var(--paper-2); border-radius: 18px; padding: 2.2rem 1.5rem; margin-top: 2.4rem; }
.info-wrap > .info-cta:first-child { margin-top: 0; }
.info-cta p { color: var(--ink-soft); margin: .5rem 0 1.1rem; }
.btn-row-c { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }
@media (max-width: 860px) { .info-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .info-grid, .info-grid-3 { grid-template-columns: 1fr; } }

/* ---------- About, team, contact, and by-laws pages ---------- */
.card-h { font-size: 1.3rem; margin-bottom: .6rem; }
.info-h-first { margin-top: 0; }
.person .role { font-weight: 600; font-size: .9rem; color: var(--brass); margin-bottom: .5rem; }
.info-quote { font-family: var(--serif); font-size: 1.2rem; line-height: 1.4; color: var(--ink); border-left: 3px solid var(--brass); padding-left: 1rem; margin: 1rem 0; }
.legal { max-width: 72ch; margin-inline: auto; color: var(--ink-soft); }
.legal h2 { font-size: 1.4rem; margin: 2rem 0 .7rem; color: var(--ink); }
.legal h3 { font-size: 1.1rem; margin: 1.2rem 0 .4rem; }
.legal p { margin-bottom: .8rem; }
.legal ol { list-style: decimal; padding-left: 1.6rem; margin-bottom: .9rem; }
.legal li { margin-bottom: .4rem; }

/* ---------- Article archive ---------- */
.art-filter { max-width: 420px; }
.art-year li small { color: var(--ink-faint); margin-left: .3rem; }
.article img { height: auto; margin: 1rem 0; border-radius: 8px; }
.article iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; margin: 1rem 0; }
.article a { color: var(--garnet); text-decoration: underline; }
.article blockquote { border-left: 3px solid var(--brass); padding-left: 1rem; margin: 1rem 0; }
.article table { border-collapse: collapse; margin: 1rem 0; }
.article td, .article th { border: 1px solid var(--line); padding: .4rem .6rem; }
.article ul { list-style: disc; padding-left: 1.6rem; margin-bottom: .9rem; }
.article-back { max-width: 72ch; margin: 2rem auto 0; }
.article table { display: block; max-width: 100%; overflow-x: auto; }
.article img { max-width: 100%; }
.article a, .article p { overflow-wrap: anywhere; }

/* ---------- Top menu with dropdowns ---------- */
.nav-a-only { display: block; }
.nav-b-only { display: none; }
html[data-nav="b"] .nav-a-only { display: none; }
html[data-nav="b"] .nav-b-only { display: block; }
.nav-item { position: relative; }
.nav-menu-btn { display: inline-flex; align-items: center; gap: .3rem; }
.nav-menu-btn:hover, .nav-menu-btn.active, .nav-item.open > .nav-menu-btn { color: var(--ink); }
.nav-menu-btn.active { box-shadow: inset 0 -2px 0 var(--brass); }
.nav-chev { width: 14px; height: 14px; transition: transform .2s; }
.nav-item.open .nav-chev { transform: rotate(180deg); }
.nav-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 210px; margin: 0; padding: .4rem; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md); z-index: 60; }
.nav-item.open > .nav-menu { display: block; }
.nav-menu a { display: block; padding: .55rem .8rem; white-space: nowrap; }
.nav-menu a::after { display: none; }
.nav-menu a:hover, .nav-menu a[aria-current="page"] { background: var(--paper-2); color: var(--ink); }
@media (max-width: 1240px) { .nav-cta .hide-mobile { display: none !important; } }
@media (max-width: 1080px) {
  .nav-menu-btn { width: 100%; justify-content: space-between; min-height: 44px; }
  .nav-links > li > a { display: block; min-height: 44px; padding-block: .7rem; }
  .nav-menu-btn.active { box-shadow: none; }
  .nav-menu { position: static; min-width: 0; padding: 0 0 .4rem .8rem; background: none; border: 0; box-shadow: none; }
  .nav-menu a { min-height: 44px; padding-block: .7rem; white-space: normal; }
}
/* Education: expandable program descriptions */
.program-list { display: grid; gap: .6rem; margin: 1rem 0 2rem; }
.program { background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 0 1.1rem; }
.program summary { cursor: pointer; padding: .9rem 0; display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: baseline; font-weight: 600; color: var(--ink); min-height: 44px; }
.program summary .program-grade { font-weight: 400; font-size: .92em; color: var(--ink-soft, var(--ink)); }
.program[open] summary { border-bottom: 1px solid var(--line); }
.program p { margin: .8rem 0 1rem; }
