/* ============================================================
   WEST VALLEY · WARNER CENTER CHAMBER OF COMMERCE
   Production design system — "Civic Editorial"
   Heritage navy + gold · warm paper · Fraunces × Hanken Grotesk
   Built by Heed Business Solutions
   ============================================================ */

:root {
  /* ── Brand (real WVWCCC palette — heritage forest green + antique gold,
        sampled from the chamber's circular "Since 1930" seal) ── */
  --green-deep:  #1E5631;   /* primary dark green (logo ring) */
  --green-ink:   #143C20;   /* deepest green — headers / footers */
  --forest:      #1E5631;   /* forest green — event/flyer placeholders, pricing (was undefined) */
  --green-char:  #0E2A16;   /* near-black green */
  --green:       #3A8A3F;   /* primary green / links */
  --leaf-soft:   #E4F0E4;   /* soft green wash */
  --green-bright:#5FB364;   /* hover / highlights */
  --gold:        #C9A227;   /* heritage antique-gold accent */
  --gold-bright: #E4BE45;
  --gold-soft:   #F4E9C1;
  --gold-deep:   #8C6E14;

  /* ── Paper & neutrals ── */
  --cream:       #FAF6EC;
  --cream-deep:  #F3ECDA;
  --sand:        #ECE3CD;
  --paper:       #FDFBF6;   /* warm off-white — cozier than stark white on cream */
  --ink:         #16202C;
  --slate:       #2A3340;
  --slate-mid:   #515A66;
  --muted:       #707A86;
  --line:        #E4DCC8;
  --line-soft:   #EFE8D7;

  /* ── Status ── */
  --green:       #1F7A3A;
  --green-soft:  #E3F0E6;
  --red:         #B33A3A;
  --amber:       #B5811A;

  /* ── Type ── */
  --display:  'Fraunces', 'Source Serif Pro', Georgia, serif;
  --sans:     'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:     'Spline Sans Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* ── Layout ── */
  --container: 1220px;
  --narrow:    860px;

  /* ── Space scale ── */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px;

  /* ── Radii ── */
  --r-sm: 5px; --r-md: 10px; --r-lg: 16px; --r-xl: 24px; --r-full: 999px;

  /* ── Shadows (warm-tinted) ── */
  --sh-sm: 0 1px 2px rgba(20,60,32,.06), 0 1px 3px rgba(20,60,32,.05);
  --sh-md: 0 6px 18px rgba(20,60,32,.09), 0 2px 5px rgba(20,60,32,.05);
  --sh-lg: 0 18px 44px rgba(20,60,32,.14), 0 5px 12px rgba(20,60,32,.07);
  --sh-gold: 0 8px 28px rgba(201,162,39,.28);

  --tr: 220ms cubic-bezier(.4, 0, .2, 1);
}

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400&family=Hanken+Grotesk:wght@400;500;600;700;800&family=Spline+Sans+Mono:wght@400;500;600&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }
/* the hidden attribute must win over display-setting utility classes (.grid etc.) */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--ink);
  background-color: var(--cream);
  /* paper grain — atmosphere, not noise */
  background-image:
    radial-gradient(circle at 15% 12%, rgba(201,162,39,.05), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(58,138,63,.06), transparent 40%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}
body::before {
  /* ultra-subtle film grain */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, video { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: var(--green); text-decoration: none; transition: color var(--tr); }
a:hover { color: var(--green-deep); }
input, select, textarea, button { font-family: inherit; font-size: 1rem; }
::selection { background: var(--gold-soft); color: var(--green-ink); }

/* ── Headings ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  color: var(--green-deep);
  letter-spacing: -0.015em;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.18rem; font-weight: 600; }
p  { margin-bottom: var(--s-4); }
.lead { font-size: 1.22rem; color: var(--slate); line-height: 1.66; }

/* ── Eyebrow / kicker ── */
.kicker {
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex; align-items: center; gap: var(--s-3);
}
.kicker::before {
  content: ""; width: 28px; height: 1.5px; background: var(--gold); display: inline-block;
}
.kicker--center { justify-content: center; }
.bg-forest .kicker { color: var(--gold-bright); }

/* ── Layout primitives ── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--s-5); }
.container-narrow { max-width: var(--narrow); margin: 0 auto; padding: 0 var(--s-5); }
.section { padding: var(--s-9) 0; }
.section-sm { padding: var(--s-7) 0; }
.bg-forest   { background: var(--green-deep); color: var(--paper); }
.bg-forest-deep { background: var(--green-ink); color: var(--paper); }
.bg-cream-deep { background: var(--cream-deep); }
.bg-paper { background: var(--paper); }
.bg-forest h1, .bg-forest h2, .bg-forest h3, .bg-forest h4,
.bg-forest-deep h1, .bg-forest-deep h2, .bg-forest-deep h3, .bg-forest-deep h4 { color: var(--paper); }
.bg-forest p, .bg-forest-deep p { color: rgba(255,255,255,.82); }

.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ── Utilities ── */
.mt-2{margin-top:var(--s-2)}.mt-3{margin-top:var(--s-3)}.mt-4{margin-top:var(--s-4)}
.mt-5{margin-top:var(--s-5)}.mt-6{margin-top:var(--s-6)}.mt-7{margin-top:var(--s-7)}
.text-center{text-align:center}.text-gold{color:var(--gold-deep)}
.measure{max-width:62ch}.measure-center{max-width:62ch;margin-left:auto;margin-right:auto}
.section-head{max-width:640px;margin-bottom:var(--s-7)}
.section-head--center{margin-left:auto;margin-right:auto;text-align:center}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  font-family: var(--sans); font-weight: 600; font-size: .98rem;
  padding: 13px 26px; border-radius: var(--r-full);
  transition: transform var(--tr), box-shadow var(--tr), background var(--tr), color var(--tr);
  white-space: nowrap; line-height: 1; cursor: pointer; border: 1.5px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: var(--green-ink); box-shadow: var(--sh-gold); }
.btn--gold:hover { background: var(--gold-bright); color: var(--green-ink); transform: translateY(-2px); }
.btn--forest { background: var(--green-deep); color: #fff; }
.btn--forest:hover { background: var(--green-ink); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--green-deep); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--green-deep); background: var(--paper); color: var(--green-deep); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.32); }
.btn--ghost-light:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.btn--sm { padding: 9px 18px; font-size: .88rem; }
.btn--lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: .68rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--r-full);
  background: var(--leaf-soft); color: var(--green);
}
.badge--platinum { background: #E7EAF0; color: #3A4356; }
.badge--gold     { background: var(--gold-soft); color: var(--gold-deep); }
.badge--silver   { background: #ECEEF1; color: #5A636E; }
.badge--bronze   { background: #F0E6D8; color: #8A6A3E; }
.badge--leader   { background: var(--green-deep); color: var(--gold-bright); }
.badge--new      { background: var(--green-soft); color: var(--green); }
.badge--dot::before { content:""; width:6px; height:6px; border-radius:50%; background:currentColor; }

/* ── Cards ── */
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s-6);
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--gold-soft); }
.card__icon {
  width: 52px; height: 52px; border-radius: var(--r-md);
  display: grid; place-items: center; background: var(--green-deep); color: var(--gold-bright);
  font-family: var(--display); font-size: 1.5rem; margin-bottom: var(--s-4);
}

/* ── Member tile ── */
.member-tile { display: flex; flex-direction: column; gap: var(--s-3); }
.member-tile__seal {
  width: 50px; height: 50px; border-radius: var(--r-md); flex: none;
  display: grid; place-items: center; font-family: var(--display);
  font-weight: 600; font-size: 1.35rem; color: #fff;
  background: linear-gradient(135deg, var(--green-deep), var(--green));
}
.member-tile__head { display: flex; align-items: flex-start; gap: var(--s-3); }
.member-tile__id { flex: 1; min-width: 0; }
.member-tile__head .badge { flex: none; margin-top: 2px; }
.member-tile__name { font-family: var(--display); font-weight: 600; font-size: 1.06rem; color: var(--green-deep); line-height: 1.18; display: inline-block; }
a.member-tile__name:hover { color: var(--green); }
.member-tile__meta { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.member-tile__tag { font-size: .88rem; color: var(--slate-mid); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.member-tile__facts { display: flex; flex-direction: column; gap: 5px; font-size: .84rem; }
.member-tile__row { display: inline-flex; align-items: center; gap: 7px; color: var(--slate-mid); font-weight: 500; overflow-wrap: anywhere; }
.member-tile__row:hover { color: var(--green); }
.member-tile__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: auto; padding-top: var(--s-2); flex-wrap: wrap; }
.member-tile.card { height: 100%; padding: var(--s-5); }
.dir-grid .member-tile__name { word-break: normal; overflow-wrap: anywhere; }

/* ── Forms ── */
.field { margin-bottom: var(--s-4); }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--slate); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: var(--r-md); background: var(--paper); color: var(--ink); transition: border-color var(--tr);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft);
}

/* ── Pill input (search / concierge bar) ── */
.pill-input {
  display: flex; align-items: center; gap: var(--s-3);
  background: var(--paper); border: 1.5px solid var(--line);
  border-radius: var(--r-full); padding: 6px 6px 6px 22px; box-shadow: var(--sh-md);
}
.pill-input input { flex: 1; border: none; background: none; outline: none; font-size: 1.02rem; }
.pill-input input::placeholder { color: var(--muted); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--green-deep); border-bottom: 2px solid var(--gold); }
.site-header__top { background: var(--green-ink); color: rgba(255,255,255,.85); font-size: .82rem; }
.site-header__top .container { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.site-header__top-meta { display: flex; gap: var(--s-5); }
.site-header__top-meta span { display: inline-flex; align-items: center; gap: 6px; }
.site-header__top-actions { display: flex; align-items: center; gap: var(--s-3); }
.site-header__top-actions a { color: rgba(255,255,255,.85); font-weight: 500; }
.site-header__top-actions a:hover { color: var(--gold-bright); }
@media (max-width: 820px) { .site-header__top-meta { display: none; } }

.site-header__main {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); height: 78px;
}

.brand { display: flex; align-items: center; gap: var(--s-3); }
.brand__seal {
  width: 48px; height: 48px; border-radius: 12px; flex: none;
  display: grid; place-items: center; background: var(--gold);
  color: var(--green-ink); font-family: var(--display); font-weight: 700; font-size: 1.15rem;
  letter-spacing: -.02em; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.25);
}
/* real chamber seal — black corners of the PNG are clipped by the circle */
.brand__logo {
  width: 56px; height: 56px; flex: none; border-radius: 50%;
  object-fit: cover; background: var(--green-char);
  box-shadow: 0 0 0 2px var(--gold), var(--sh-sm);
}
.brand__name { font-family: var(--display); font-weight: 600; font-size: 1rem; color: #fff; line-height: 1.05; }
.brand__sub { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-bright); }

.nav { display: flex; align-items: center; gap: 13px; }
.nav > a { color: rgba(255,255,255,.82); font-weight: 500; font-size: .85rem; position: relative; white-space: nowrap; }
.nav > a:hover { color: #fff; }
.nav > a.active { color: var(--gold-bright); }
.nav > a:not(.nav-cta).active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -28px; height: 2px; background: var(--gold);
}
.menu-toggle { display: none; color: #fff; padding: 8px; }
.menu-toggle svg { width: 26px; height: 26px; }

.lang-switch { display: inline-flex; align-items: center; gap: 4px; }
.lang-switch a { color: rgba(255,255,255,.7); font-family: var(--mono); font-size: .72rem; font-weight: 500; padding: 2px 5px; border-radius: 4px; }
.lang-switch a.active { color: var(--green-ink); background: var(--gold-bright); }

@media (max-width: 1260px) {
  .nav { position: fixed; inset: 118px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--green-ink); padding: var(--s-5); gap: var(--s-2); border-bottom: 2px solid var(--gold);
    box-shadow: var(--sh-lg);
    /* The expanded menu (all dropdown sections inline) is taller than a phone
       screen; without its own scroll the bottom links are unreachable. */
    max-height: calc(100vh - 118px); max-height: calc(100dvh - 118px);
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity var(--tr), transform var(--tr), visibility var(--tr); }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav > a { padding: 12px 8px; }
  .nav > a.active::after { display: none; }
  .menu-toggle { display: block; }
}

/* ============================================================
   HERO  (distinctive parity hero)
   ============================================================ */
.hero { position: relative; overflow: hidden; background: var(--green-deep); color: #fff; }
/* Framed banner (per the office, Jul 2026 — smaller and narrower, not the
   full width of the screen, with a beige border). The page's cream shows
   around it on wide screens; phones keep the full-bleed banner. */
@media (min-width: 981px) {
  .hero { max-width: 1240px; margin: 0 auto; border: 6px solid var(--gold-soft, #e6dcbf); border-top: none; border-radius: 0 0 18px 18px; }
}
.hero::after {
  /* heritage gold "century" arc */
  content: ""; position: absolute; right: -180px; top: -180px; width: 620px; height: 620px;
  border-radius: 50%; border: 1.5px solid rgba(201,162,39,.22);
  box-shadow: 0 0 0 60px rgba(201,162,39,.05); pointer-events: none;
}
/* hero event-photo slider (admin-managed; falls back to solid hero when empty) */
.hero__slides { position: absolute; inset: 0; z-index: 0; }
.hero__slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__overlay { position: absolute; inset: 0; z-index: 1;
  /* Left stays dark for legible copy; right lightens so the warm chamber photos
     glow through. Soft bottom vignette for depth + dot contrast. */
  background:
    linear-gradient(102deg, rgba(14,42,22,.90) 0%, rgba(20,60,32,.72) 42%, rgba(30,86,49,.40) 78%, rgba(95,179,100,.20) 100%),
    linear-gradient(to top, rgba(14,42,22,.42), transparent 38%); }
.hero__dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 8px; }
.hero__dots button { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.45); border: none; cursor: pointer; padding: 0; transition: background var(--tr); }
.hero__dots button.is-active { background: var(--gold-bright); }

/* Compact hero, second pass (Jul 2026 — the office flagged the banner as
   still too tall after the first trim; tighter type and rhythm throughout). */
.hero__inner { position: relative; z-index: 2; padding: var(--s-6) 0 var(--s-5); display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--s-6); align-items: center; }
.hero h1 { color: #fff; font-size: clamp(1.5rem, 2.8vw, 2.15rem); }
.hero h1 em { font-style: italic; color: var(--gold-bright); font-weight: 500; }
.hero__lead { color: rgba(255,255,255,.86); font-size: 1rem; max-width: 50ch; margin-top: var(--s-3); }
.hero__cta { margin-top: var(--s-4); }
.hero__concierge { margin-top: var(--s-4); max-width: 480px; }
.hero__concierge .pill-input { background: rgba(255,255,255,.97); }
.hero__stats { display: flex; gap: var(--s-6); margin-top: var(--s-4); }
.hero__stat-num { font-family: var(--display); font-size: 1.55rem; font-weight: 600; color: var(--gold-bright); line-height: 1; }
.hero__stat-lbl { font-size: .78rem; color: rgba(255,255,255,.7); margin-top: 4px; }

/* Hero feature card (right column) */
.hero__feature {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-xl); padding: var(--s-6); backdrop-filter: blur(4px);
}
.hero__feature-label { font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-bright); }
/* Homepage "Featured this week" box: solid card for readability over the busy
   hero. Scoped to .hero so the reused .hero__feature on dark sections (e.g.
   "Support the community") keeps its translucent, light-text treatment. */
.hero .hero__feature { background: #fff; border-color: var(--gold-soft, #e6dcbf);
  box-shadow: 0 18px 44px rgba(0,0,0,.34); backdrop-filter: none; }
.hero .hero__feature .hero__feature-label { color: var(--gold-deep, #b8860b); }
@media (max-width: 920px) {
  .hero__inner { grid-template-columns: 1fr; padding: var(--s-6) 0 var(--s-5); }
  .hero__feature { display: none; }
}
/* Phones: the stats row is the tallest non-essential block in the banner —
   drop it so events surface within the first swipe. */
@media (max-width: 640px) {
  .hero__stats { display: none; }
  .hero__lead { font-size: .95rem; }
}

/* ── geo banner ── */
.geo-banner {
  background: var(--gold-soft); border-bottom: 1px solid var(--gold);
  font-size: .9rem; color: var(--gold-deep);
}
.geo-banner .container { display: flex; align-items: center; justify-content: center; gap: var(--s-3); height: 42px; }
.geo-banner strong { color: var(--green-deep); }
.geo-banner button { color: var(--gold-deep); font-weight: 600; text-decoration: underline; }

/* ── filter chips ── */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip {
  font-size: .88rem; font-weight: 500; padding: 7px 15px; border-radius: var(--r-full);
  background: var(--paper); border: 1.5px solid var(--line); color: var(--slate); cursor: pointer; transition: all var(--tr);
}
.chip:hover { border-color: var(--gold); color: var(--green-deep); }
.chip.active { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }

/* ── Event row / list ── */
.event-row {
  display: grid; grid-template-columns: 84px 1fr auto; gap: var(--s-5); align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s-5); transition: box-shadow var(--tr), border-color var(--tr);
}
.event-row:hover { box-shadow: var(--sh-md); border-color: var(--gold-soft); }
/* A home-page event can carry a picture under its date (Felicia, Sep 14 2026).
   The lead column widens to give the artwork somewhere to live; rows without a
   picture are untouched. object-fit: contain so a portrait flyer is never
   cropped and a wide logo is never stretched. */
.event-row--thumb { grid-template-columns: 124px 1fr auto; }
.event-row__lead { display: grid; gap: var(--s-3); align-self: start; }
.event-thumb {
  display: block; width: 100%; max-height: 170px; object-fit: contain;
  border-radius: var(--r-md); background: var(--cream-deep);
}
/* Phones: three columns leave no room for the title — date + text share the
   top line, the RSVP/tickets column drops underneath. */
@media (max-width: 640px) {
  .event-row { grid-template-columns: 64px 1fr; gap: var(--s-4); }
  .event-row--thumb { grid-template-columns: 96px 1fr; }
  .event-row > div:last-child { grid-column: 1 / -1; justify-self: start; }
  .event-thumb { max-height: 130px; }
}
.event-date { text-align: center; border-radius: var(--r-md); background: var(--cream-deep); padding: var(--s-3) var(--s-2); }
.event-date__mo { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.event-date__day { font-family: var(--display); font-size: 1.7rem; font-weight: 600; color: var(--green-deep); line-height: 1; }

/* ── view toggle ── */
.view-toggle { display: inline-flex; background: var(--cream-deep); border: 1px solid var(--line); border-radius: var(--r-full); padding: 4px; }
.view-toggle button { padding: 8px 18px; border-radius: var(--r-full); font-weight: 600; font-size: .9rem; color: var(--slate-mid); }
.view-toggle button.active { background: var(--green-deep); color: #fff; }

/* ── month calendar grid ── */
.cal-head { font-family: var(--display); font-size: 1.5rem; color: var(--green-deep); margin-bottom: var(--s-4); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.cal-dow { background: var(--green-deep); color: #fff; text-align: center; padding: 8px 0; font-size: .72rem; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.cal-cell { background: var(--paper); min-height: 96px; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.cal-cell--empty { background: var(--cream); }
.cal-day { font-family: var(--display); font-weight: 600; color: var(--slate-mid); font-size: .9rem; }
.cal-event { font-size: .72rem; background: var(--leaf-soft); color: var(--green-deep); padding: 3px 6px; border-radius: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-left: 2px solid var(--green); }
.cal-event:hover { background: var(--green); color: #fff; }
@media (max-width: 700px) {
  .cal-cell { min-height: 64px; font-size: .8rem; }
  .cal-event { font-size: 0; padding: 4px; } /* dots-only on mobile */
  .cal-event::before { content: "•"; font-size: 1rem; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--green-ink); color: rgba(255,255,255,.72); padding: var(--s-9) 0 var(--s-6); }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s-6); padding-bottom: var(--s-7); border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: var(--s-4); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: var(--s-2); }
.site-footer a { color: rgba(255,255,255,.72); font-size: .95rem; }
.site-footer a:hover { color: var(--gold-bright); }
.site-footer__brand p { color: rgba(255,255,255,.66); max-width: 38ch; }
.footer-social { display: flex; gap: var(--s-3); margin-top: var(--s-5); }
.footer-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); transition: background .2s, transform .2s, border-color .2s; }
.footer-social a:hover { background: var(--green-deep); border-color: var(--gold-bright); transform: translateY(-2px); }
.footer-social img { display: block; width: 18px; height: 18px; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; padding-top: var(--s-5); font-size: .85rem; color: rgba(255,255,255,.55); }
@media (max-width: 820px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ── Featured placement (sponsored member spot on resource pages) ── */
.featured-spot {
  position: relative; display: flex; align-items: center; gap: var(--s-5);
  background: linear-gradient(120deg, #fff 0%, var(--cream, #faf6ea) 70%);
  border: 1px solid var(--gold-soft, #e6dcbf); border-left: 4px solid var(--gold, #c9a227);
  border-radius: var(--r-lg, 16px); padding: var(--s-5) var(--s-6);
  box-shadow: 0 10px 30px rgba(27, 51, 38, .08); margin-bottom: var(--s-6);
}
.featured-spot__badge {
  position: absolute; top: -11px; left: 18px; background: var(--gold-deep, #8c6e14); color: #fff;
  font-family: var(--mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px;
}
.featured-spot__logo { flex: none; width: 116px; height: 72px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line, #e8e3d5); border-radius: var(--r-md); padding: 6px 8px; }
.featured-spot__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.featured-spot__body { flex: 1; min-width: 220px; }
.featured-spot__name { font-family: var(--display); font-size: 1.18rem; font-weight: 700; color: var(--green-ink); text-decoration: none; }
.featured-spot__name:hover { color: var(--green-deep); }
.featured-spot__tag { margin-top: 4px; color: var(--slate-mid); font-size: .94rem; }
.featured-spot__cta { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
@media (max-width: 640px) { .featured-spot { flex-wrap: wrap; } .featured-spot__cta { flex-direction: row; width: 100%; } }

/* ── Join / list-your-business CTA band ── */
.join-cta { background: var(--green-ink); border-radius: var(--r-lg, 16px); margin-top: var(--s-8);
  background-image: radial-gradient(ellipse at 85% 10%, rgba(201, 162, 39, .22), transparent 55%); }
.join-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-6);
  flex-wrap: wrap; padding: var(--s-7) var(--s-7); }
.join-cta h2 { color: #fff; margin-bottom: 6px; }
.join-cta p { color: rgba(255,255,255,.78); max-width: 52ch; }
.join-cta__actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }

/* ── Community guide cards ── */
.guide-card { text-decoration: none; color: inherit; display: block; }
.guide-card__emoji { font-size: 2rem; margin-bottom: var(--s-2); }

/* ── Real-estate listings ── */
.listing-card__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--r-md); margin-bottom: var(--s-3); }
.listing-card__facts { font-family: var(--display); font-weight: 700; color: var(--green-deep); margin-top: 4px; }
.chip--active { background: var(--green-deep); color: #fff; border-color: var(--green-deep); }

/* ── notice / data flag ── */
.notice {
  border-left: 3px solid var(--amber); background: var(--gold-soft);
  padding: var(--s-3) var(--s-4); border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: .9rem; color: var(--gold-deep);
}

/* ── reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  /* never let a disabled reveal animation leave content invisible */
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ── reveal on load (staggered) ── */
.reveal { opacity: 0; transform: translateY(16px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.d1{animation-delay:.05s}.d2{animation-delay:.13s}.d3{animation-delay:.21s}.d4{animation-delay:.29s}.d5{animation-delay:.37s}

/* ── Event preview cards — image-forward "upcoming events" (homepage) ── */
.evp { display: grid; grid-template-columns: 168px 1fr; gap: var(--s-4); align-items: stretch;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; cursor: pointer; transition: box-shadow .22s ease, transform .22s ease; }
.evp:hover { box-shadow: 0 16px 40px rgba(20, 60, 32, .15); transform: translateY(-3px); }
.evp__media { background-size: cover; background-position: center; min-height: 132px; background-color: var(--leaf-soft); }
.evp__media--ph { display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden;
  background: linear-gradient(140deg, var(--forest), var(--green-ink)); color: #fff; }
.evp__media--ph span { font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; opacity: .82; }
.evp__media--ph strong { font-family: var(--display); font-size: 2.8rem; line-height: 1; }
.evp__media--ph .evp__ph-logo { width: 74px; height: 74px; object-fit: contain; margin-bottom: 10px; filter: drop-shadow(0 3px 8px rgba(0,0,0,.35)); }
.evp__body { padding: var(--s-5) var(--s-5) var(--s-5) 0; display: flex; flex-direction: column; gap: 4px; }
.evp__title { font-family: var(--display); font-size: 1.42rem; line-height: 1.15; margin: 6px 0 2px; color: var(--green-ink); }
.evp__meta { color: var(--gold-deep, #b8860b); font-weight: 600; font-size: .92rem; }
.evp__sum { color: var(--slate-mid); margin: 4px 0 0; font-size: .96rem; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.evp__cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: var(--s-4); }
@media (max-width: 640px) {
  .evp { grid-template-columns: 1fr; }
  .evp__media { min-height: 210px; }
  .evp__body { padding: 0 var(--s-5) var(--s-5); }
}

/* ── Membership pricing tiers (join.html) ── */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
@media (max-width: 940px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pricing-grid { grid-template-columns: 1fr; } }
.pricing-card { position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s-6) var(--s-5); display: flex; flex-direction: column;
  gap: 8px; text-align: center; transition: box-shadow .22s ease, transform .22s ease; }
.pricing-card:hover { box-shadow: 0 14px 36px rgba(20, 60, 32, .13); transform: translateY(-3px); }
.pricing-card--pop { border-color: var(--gold); box-shadow: 0 12px 30px rgba(228, 190, 69, .22); }
.pricing-card__flag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--green-ink); font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: 4px 12px; border-radius: var(--r-full); white-space: nowrap; }
.pricing-card__name { font-family: var(--display); font-size: 1.18rem; color: var(--green-ink); margin: 4px 0 0; }
.pricing-card__amt { font-family: var(--display); font-size: 2.5rem; line-height: 1; color: var(--forest); margin: 6px 0; }
.pricing-card__amt span { font-family: var(--body, inherit); font-size: .9rem; font-weight: 500; color: var(--slate-mid); }
.pricing-card__blurb { color: var(--slate-mid); font-size: .9rem; line-height: 1.5; margin: 0 0 var(--s-3); flex: 1; }
.pricing-card .btn { margin-top: auto; }

/* ── Directory: collapsed green dropdown filters + quadrant grid ── */
.dir-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-3); margin-bottom: var(--s-5); }
.dir-filters { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.dd { position: relative; }
.dd__btn { display: inline-flex; align-items: center; gap: 8px; background: var(--green-deep); color: #fff;
  border: none; border-radius: var(--r-full); padding: 10px 18px; font-weight: 600; font-size: .9rem; cursor: pointer;
  box-shadow: var(--sh-sm); transition: background .2s, transform .2s; }
.dd__btn:hover { background: var(--green); transform: translateY(-1px); }
.dd__btn.is-set { background: var(--gold-deep); }
.dd__caret { font-size: .7rem; opacity: .85; }
.dd__menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 50; min-width: 232px; max-height: 60vh; overflow: auto;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-lg); padding: 6px; }
.dd__opt { display: block; width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 9px 12px; border-radius: var(--r-sm); font-size: .9rem; color: var(--ink); }
.dd__opt:hover { background: var(--cream-deep); }
.dd__opt.is-active { background: var(--leaf-soft); color: var(--green-deep); font-weight: 600; }
.dd__sect { padding: 10px 12px 4px; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--green-deep); opacity: .75; }
.dd__sect + .dd__opt { margin-top: 2px; }
.dd__sect ~ .dd__sect { border-top: 1px solid var(--line); margin-top: 6px; }
.dd__opt--sub { padding-left: 20px; }
.dd__clear { background: none; border: none; color: var(--gold-deep); font-weight: 600; cursor: pointer; font-size: .88rem; padding: 6px 4px; }
.dd__clear:hover { text-decoration: underline; }
/* Denser "quadrant" directory: smaller boxes, more per row (Chamber feedback). */
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s-3); }
.dir-grid .member-tile.card { padding: var(--s-4); gap: var(--s-2); }
.dir-grid .member-tile__seal { width: 44px; height: 44px; font-size: 1.1rem; }
@media (max-width: 560px) { .dir-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); } }

/* ── Member video embed (responsive 16:9) ── */
.video-embed { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-md); }
.video-embed iframe, .video-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ElevenLabs "Ask Wendy" ConvAI widget — hidden on phones (crowds small screens) */
@media (max-width: 767px) { elevenlabs-convai { display: none !important; } }

/* ── Leaders wall — tiered leader/sponsor board at the bottom of every page ── */
.leaders-wall { background: var(--paper); padding: var(--s-7) 0 var(--s-8); border-top: 1px solid var(--line-soft); }
.leaders-wall__title { font-family: var(--display); font-size: 1.5rem; color: var(--green-deep); margin: 0 0 var(--s-3); padding-bottom: var(--s-3); border-bottom: 2px solid var(--green); }
.leader-wall-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: var(--s-6) var(--s-5); }
.leader-cell { flex: none; width: 132px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.leader-cell__tier { font-family: var(--display); font-size: .82rem; font-weight: 600; color: var(--green-deep); }
.leader-cell__logo { width: 132px; height: 78px; display: grid; place-items: center; background: #fff; border-radius: var(--r-sm); padding: 6px 10px; transition: transform .2s; }
.leader-cell:hover .leader-cell__logo { transform: translateY(-3px); }
.leader-cell__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.leader-wall__rule { border: none; border-top: 2px solid var(--green); margin: var(--s-6) 0; }
@media (max-width: 560px) { .leader-cell, .leader-cell__logo { width: 108px; } .leader-cell__logo { height: 66px; } }

/* ════════ Eye-comfort & UX polish pass ════════ */

/* Balanced headlines + tidy paragraph rag (no orphans) where supported */
h1, h2, h3, .section-head .lead { text-wrap: balance; }
p, .lead, .evp__sum, .member-tile__tag { text-wrap: pretty; }

/* Kicker: wrap gracefully instead of breaking mid-phrase under the dash */
.kicker { flex-wrap: wrap; row-gap: 4px; line-height: 1.5; }
@media (max-width: 640px) { .kicker { letter-spacing: .14em; font-size: .68rem; } }

/* Anchor jumps land below the sticky header */
[id] { scroll-margin-top: 118px; }

/* Consistent, accessible focus ring (keyboard only — no ring on mouse click) */
a:focus-visible, button:focus-visible, .chip:focus-visible, .btn:focus-visible,
[tabindex]:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px;
}
a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; }

/* Sticky header lifts off the page once you scroll */
.site-header { transition: box-shadow .3s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(14,42,22,.18); }

/* Cards end flush — no stray bottom margins making ragged card bottoms */
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

/* Warm, slim scrollbar */
html { scrollbar-color: var(--gold) var(--cream-deep); scrollbar-width: thin; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--cream-deep); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--gold), var(--gold-deep)); border-radius: 8px; border: 2px solid var(--cream-deep); }
::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }

/* Gentle rise-in as sections scroll into view (added by partials.js; below-fold only) */
.sr { opacity: 0; transform: translateY(14px);
  transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.sr.sr-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .sr { opacity: 1; transform: none; transition: none; } }

/* Fixed-attachment grain janks on mobile GPUs — scroll it instead */
@media (max-width: 820px) { body { background-attachment: scroll; } }

/* Hero copy legibility over bright photo slides */
.hero .kicker { color: var(--gold-bright); text-shadow: 0 1px 10px rgba(14,42,22,.55); }
.hero .kicker::before { background: var(--gold-bright); }
.hero h1 { text-shadow: 0 2px 18px rgba(14,42,22,.45); }
.hero__lead, .hero__areas { text-shadow: 0 1px 10px rgba(14,42,22,.5); }

/* Grid/flex blowout guards — inputs' intrinsic size was pushing the hero copy
   column ~20px past the viewport on phones (clipped text at the right edge) */
.hero__inner > * { min-width: 0; }
.pill-input input { min-width: 0; }

/* .card resets background to paper LATER in the sheet than .bg-forest sets it
   dark — so `card bg-forest` rendered white text on a light card (invisible) on
   join.html and the member dashboard. Specificity fix: */
.card.bg-forest { background: var(--green-deep); border-color: var(--green-deep); }

/* Leader cell company name (matches the legacy board listing style) */
.leader-cell__name { font-size: .74rem; font-weight: 600; color: var(--slate-mid); line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.leader-cell:hover .leader-cell__name { color: var(--green-deep); }

/* ── Groups & networks ── */
.group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: var(--s-5); }
.group-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; transition: transform .22s ease, box-shadow .22s ease; color: inherit; }
.group-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(20,60,32,.15); }
.group-card__media { height: 170px; background: linear-gradient(140deg, var(--forest, #1E5631), var(--green-ink)); background-size: cover; background-position: center top; }
.group-card__body { padding: var(--s-5); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.group-card__body h3 { font-size: 1.22rem; line-height: 1.2; }
.group-card__tag { color: var(--slate-mid); font-size: .94rem; flex: 1; margin: 0; }
.group-card .btn { align-self: flex-start; margin-top: var(--s-2); }

.group-hero { position: relative; background: var(--green-ink); background-size: cover; background-position: center; }
.group-hero__overlay { position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(14,42,22,.92) 0%, rgba(20,60,32,.74) 50%, rgba(30,86,49,.42) 100%); }
.group-hero__inner { position: relative; z-index: 1; padding: var(--s-9) var(--s-5); }
.group-hero h1 { text-shadow: 0 2px 18px rgba(14,42,22,.5); }
@media (max-width: 880px) { #groupCols { grid-template-columns: 1fr !important; } #groupCols aside { position: static !important; } }

/* ── Photo gallery grid (groups + gallery page) ── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s-3); }
.gallery-grid a { display: block; border-radius: var(--r-md); overflow: hidden; }
.gallery-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .3s ease; }
.gallery-grid a:hover img { transform: scale(1.04); }
.gallery-grid figcaption, .gallery-card__cap { font-size: .82rem; color: var(--slate-mid); padding: 6px 2px 0; }

/* gallery page variant — larger tiles + captions */
.gallery-grid--lg { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s-5); }
.gallery-card { margin: 0; }
.gallery-card a { display: block; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); cursor: zoom-in; }
/* A photo's own share row sits under its caption — quieter than the event
   share row so the photos stay the loudest thing on the page. */
.gallery-card .share-row { margin-top: 6px; gap: 4px; }
.gallery-card .share-row .chip { font-size: .72rem; padding: 2px 8px; }
.alb-by { display: block; color: var(--slate-mid); font-size: .78rem; margin-top: 2px; }

/* ── Photo albums (Diana, Jul 30 2026) ── */
.alb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--s-5); }
.alb-grid--sm { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: var(--s-4); }
.alb-section { margin: var(--s-6) 0 0; }
.alb-section h3 { margin: 0 0 var(--s-3); }
.alb-card { display: block; text-decoration: none; color: inherit; border-radius: var(--r-lg);
  overflow: hidden; background: var(--paper); border: 1px solid var(--gold-soft, #e6dcbf);
  box-shadow: var(--sh-sm); transition: transform .2s ease, box-shadow .2s ease; }
.alb-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md, 0 12px 30px rgba(18,36,26,.16)); }
.alb-card__img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--forest); }
.alb-card__img img { width: 100%; height: 100%; object-fit: cover; }
.alb-card__ph { display: grid; place-items: center; width: 100%; height: 100%;
  background: linear-gradient(140deg, var(--forest), var(--green-ink)); }
.alb-card__ph img { width: 84px; height: 84px; object-fit: contain; }
.alb-card__count { position: absolute; right: 10px; bottom: 10px; background: rgba(18,36,26,.82);
  color: #f3e8c8; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; }
.alb-card__body { padding: var(--s-3) var(--s-4) var(--s-4); }
.alb-card__body h3 { margin: 0; font-size: 1.05rem; line-height: 1.25; }
.alb-card__body p { margin: 5px 0 0; color: var(--slate-mid); font-size: .88rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Follow the Chamber (social section) ── */
.social-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s-5); align-items: start; }
@media (max-width: 880px) { .social-grid { grid-template-columns: 1fr; } }
.social-card { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-5); color: inherit; }
.social-card > span:nth-child(2) { flex: 1; line-height: 1.35; }
.social-card .btn { flex: none; }
.social-card__icon { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 1.3rem; }

/* ── Event detail modal — refined, branded "program card" (Est. 1930) ── */
.ev-modal { animation: evFade .22s ease; }
@keyframes evFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes evRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.ev-card {
  background: var(--paper); width: 100%; max-width: 660px; border-radius: var(--r-xl);
  box-shadow: var(--sh-lg); position: relative; overflow: hidden;
  border: 1px solid var(--line); animation: evRise .3s cubic-bezier(.2,.7,.3,1) both;
}
.ev-card__accent { height: 6px; background: linear-gradient(90deg, var(--green-ink), var(--green) 45%, var(--gold) 100%); }
.ev-card__x { position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.7); backdrop-filter: blur(4px); font-size: 1.4rem; line-height: 1;
  cursor: pointer; color: var(--green-ink); z-index: 2; transition: background .15s, transform .15s; }
.ev-card__x:hover { background: #fff; transform: rotate(90deg); }
.ev-card__body { padding: 26px 30px 28px; }
.ev-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.ev-card__seal { width: 46px; height: 46px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px var(--gold); }
.ev-card__kicker { font-family: var(--mono); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-deep); display: block; margin-bottom: 3px; }
.ev-card__title { font-family: var(--display); font-size: 1.7rem; line-height: 1.1; margin: 0; color: var(--green-ink); }
.ev-card__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 12px 0 4px; border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft); margin-bottom: 16px; }
.ev-card__meta > div { font-size: .95rem; color: var(--slate); font-weight: 600; }
.ev-card__meta .ev-card__when { color: var(--green-deep); }
.ev-card__flyer { display: block; width: 100%; max-height: 560px; object-fit: contain; border-radius: var(--r-lg);
  margin: 0 0 16px; background: var(--cream-deep); border: 1px solid var(--line); box-shadow: var(--sh-sm); }
.ev-card__imgs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.ev-card__imgs img { width: 120px; height: 88px; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--line); }
.ev-card__desc { white-space: pre-wrap; line-height: 1.7; color: var(--slate); margin: 0 0 18px; }
/* Formatted (rich) descriptions: the public page and the admin editor must
   agree on type metrics and paragraph gaps, or text that looked right while
   typing re-wraps and bunches up once published (Felicia, Jul 29 2026 — her
   Aug 5 sponsor blurb). `.rt-typo` is applied to BOTH containers so there is
   one definition of the spacing, not two that drift apart. */
/* THE MEASURE — the single most important number for "what I typed is what
   published". The public event description sits in an 860px card with 30px of
   body padding and a 1px border, so its text column is 798px. The admin editor
   was 900px wide at identical font metrics, which meant every hard line break
   the office typed re-wrapped ~100px later once published: Felicia, Jul 29 AND
   again Jul 30 2026 — "the spacing/text formatting is still not synching."
   Matching font-size and line-height was necessary but NOT sufficient; the
   column width is what decides where a line actually breaks. Change the card
   width and you must change this with it. */
:root { --rt-measure: 798px; }
.rt-typo { font-size: 1rem; line-height: 1.7; color: var(--slate); }
.rt-typo p { margin: 0 0 var(--s-4); }
.rt-typo p:last-child { margin-bottom: 0; }
.rt-typo div { min-height: 1.7em; }              /* an empty line stays a blank line */
.rt-typo ul, .rt-typo ol { margin: 0 0 var(--s-4); padding-left: 1.35em; }
.rt-typo li { margin: 0 0 var(--s-2); }
.rt-typo h3, .rt-typo h4 { margin: 0 0 var(--s-3); line-height: 1.25; }
.rt-typo blockquote { margin: 0 0 var(--s-4); padding-left: var(--s-4); border-left: 3px solid var(--line); }
.rt-typo img { height: auto; }
.rt-typo a img { border-radius: var(--r-md); }
.ev-card__row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
/* Action buttons at the TOP of the event card (Felicia, Aug 26 2026) —
   under the date/venue, above the flyer, so RSVP/Purchase never hides
   below a long description. */
.ev-card__cta--top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0 2px; }
.ev-card__foot { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 16px; display: flex; flex-wrap: wrap;
  align-items: center; gap: 12px; }
@media (max-width: 560px) { .ev-card__body { padding: 22px 18px 24px; } .ev-card__title { font-size: 1.4rem; } .ev-card__cta--top { width: 100%; } .ev-card__cta--top .btn { flex: 1 1 100%; text-align: center; } }

/* ── Member profile: Meet the team ── */
.meet-team h3 { margin-bottom: var(--s-4); }
.meet-team .member-tile__seal { display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }
@media (max-width: 640px) {
  .meet-team .grid-2 { grid-template-columns: 1fr; }
}

/* Event image layered over the logo placeholder; removed on error → logo shows. */
.evp__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ev-card__flyer--ph { object-fit: contain !important; background: linear-gradient(140deg, var(--forest), var(--green-ink)); padding: 22px; }
/* Compact chamber-logo banner for events with no flyer (Felicia, Jul 29 2026).
   Same card structure and green identity as a flyer, a fraction of the height,
   so the date, venue and RSVP button stay above the fold. */
.ev-card__logobar { display: flex; align-items: center; justify-content: center; gap: 22px;
  border-radius: var(--r-lg);
  background: linear-gradient(140deg, var(--forest), var(--green-ink)); border: 1px solid var(--line);
  box-shadow: var(--sh-sm); margin: 0 0 16px; padding: 22px 26px; min-height: 128px; }
.ev-card__logobar img { width: 92px; height: 92px; flex: none; object-fit: contain; border-radius: 50%;
  background: #fff; padding: 5px; box-shadow: 0 0 0 2px var(--gold); }
.ev-card__logobar-txt { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.ev-card__logobar-name { font-family: var(--display); font-weight: 600; color: #fff;
  font-size: 1.12rem; line-height: 1.22; letter-spacing: .01em; }
.ev-card__logobar-name b { display: block; font-weight: 600; }
.ev-card__logobar-when { font-size: .82rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--gold-bright); }
@media (max-width: 560px) {
  .ev-card__logobar { flex-direction: column; text-align: center; gap: 14px; padding: 20px 16px; min-height: 0; }
  .ev-card__logobar img { width: 72px; height: 72px; }
  .ev-card__logobar-name { font-size: 1rem; }
}

/* ── Album slideshow ("Play as a slideshow") ────────────────────────────
   The album as a video, without an encoded file that would go stale every
   time the office adds a photo. Two stacked <img>s crossfade so there is no
   flash of empty stage between shots. */
.wv-show {
  position: fixed; inset: 0; z-index: 10000;
  background: #0c1710;
  display: flex; flex-direction: column;
}
.wv-show__stage { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.wv-show__img {
  position: absolute; inset: 0; margin: auto;
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  opacity: 0; transition: opacity 900ms ease;
}
.wv-show__img.is-on { opacity: 1; }
/* A slow drift gives stills a sense of motion. Switched off entirely for
   anyone who asked for reduced motion (see .wv-show--calm). */
@keyframes wvShowDrift { from { transform: scale(1); } to { transform: scale(1.06); } }
.wv-show__img.is-on { animation: wvShowDrift 14s ease-out forwards; }

.wv-show__bar { height: 3px; background: rgba(255,255,255,.16); flex: none; }
.wv-show__fill { display: block; height: 100%; width: 0; background: var(--gold, #C9A227); }

.wv-show__cap {
  flex: none; color: rgba(255,255,255,.9); text-align: center;
  padding: 10px 20px 0; font-size: .95rem;
}
.wv-show__credit {
  flex: none; margin: 0; padding: 0 20px 6px;
  text-align: center; color: rgba(255,255,255,.5); font-size: .74rem;
}
.wv-show__ui {
  flex: none; display: flex; gap: 10px; align-items: center; justify-content: center;
  flex-wrap: wrap; padding: 14px 16px 20px;
}
.wv-show__ui button, .wv-show__spd select {
  background: rgba(255,255,255,.1); color: #fff;
  border: 1px solid rgba(255,255,255,.28); border-radius: 999px;
  padding: 9px 16px; font: inherit; font-size: .92rem; cursor: pointer;
  min-width: 46px; transition: background 150ms;
}
.wv-show__ui button:hover, .wv-show__ui button:focus-visible { background: rgba(201,162,39,.35); }
.wv-show__ui button:focus-visible, .wv-show__spd select:focus-visible { outline: 2px solid var(--gold, #C9A227); outline-offset: 2px; }
.wv-show__spd { color: rgba(255,255,255,.68); font-size: .8rem; display: inline-flex; align-items: center; gap: 6px; }
.wv-show__spd select { padding: 7px 10px; min-width: 0; }
.wv-show__n { color: rgba(255,255,255,.72); font-size: .85rem; min-width: 84px; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .wv-show__img { transition: none; }
  .wv-show__img.is-on { animation: none; }
}
@media (max-width: 560px) {
  .wv-show__ui { gap: 7px; padding: 10px 10px 16px; }
  .wv-show__ui button, .wv-show__spd select { padding: 8px 12px; font-size: .86rem; }
  .wv-show__spd { display: none; }        /* speed lives on the desktop UI */
  .wv-show__cap { font-size: .85rem; }
}

/* ── Mobile pass (Felicia, Aug 19 2026 call — "audit the whole site from a
   mobile perspective"). Appended late so these win the cascade. ─────────── */

/* Long event descriptions and pasted URLs wrap instead of clipping. */
.ev-card__desc { overflow-wrap: anywhere; }

/* Card grids sized with a fixed minimum overflowed a 320px phone —
   min(…,100%) lets the track shrink to the container instead. */
.group-grid { grid-template-columns: repeat(auto-fill, minmax(min(310px, 100%), 1fr)); }
.alb-grid { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }

/* The member dashboard's two columns come from an inline style, so this
   mirrors the #groupCols fix: stack them on anything phone/tablet-narrow. */
@media (max-width: 880px) {
  .member-cols { grid-template-columns: 1fr !important; }
}

@media (max-width: 640px) {
  /* 96px of section padding is a desktop luxury — phones get the content. */
  .section { padding: var(--s-7) 0; }
}

@media (max-width: 560px) {
  /* Full-width buttons used to CLIP long office-typed labels ("Sponsor/
     Exhibit/Purchase") because .btn is nowrap and .ev-card is
     overflow:hidden. On phones, labels wrap instead. */
  .btn { white-space: normal; line-height: 1.25; }
}

/* ── Inline two-column grids must stack on phones (Aug 20 2026 audit) ──
   Several pages set grid-template-columns in an inline style attribute.
   Inline styles outrank any media query, so these layouts stayed
   side-by-side at 320px: on join.html the form ran 70px off-screen and the
   whole "What members get" panel sat at x=438, invisible. Attribute
   selectors + !important are the only way to reach them. */
@media (max-width: 880px) {
  .grid[style*="1.1fr .9fr"],
  .grid[style*=".9fr 1.1fr"],
  .grid[style*="1.15fr .85fr"],
  .grid[style*="1fr 1.2fr"],
  .grid[style*="1fr 1.4fr"],
  .grid[style*="1.4fr"],
  .grid[style*="1.35fr"],
  .grid[style*="300px 1fr"],
  .grid[style*="1fr 1fr"] { grid-template-columns: 1fr !important; }
  .grid[style*="300px 1fr"] > aside,
  .grid[style*="1.35fr"] > aside { position: static !important; }
}
/* Photo walls sized with a fixed minimum overflowed a 320px phone. */
.gallery-grid--lg { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.gallery-grid { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }

/* Cloudflare Turnstile renders a fixed 300px widget; on a 320px phone inside
   a padded card it overhangs. Let its wrapper scale it down instead. */
.cf-turnstile, .cf-turnstile iframe { max-width: 100% !important; }
@media (max-width: 360px) {
  .cf-turnstile { transform: scale(.92); transform-origin: left top; }
}

/* Form controls carry a ~300px INTRINSIC width from the browser. width:100%
   does not remove it, so on a phone the widest input set the minimum width of
   its whole column: the Join form's card measured 366px inside a 272px
   container, pushing the page sideways and the benefits panel off-screen
   entirely. min-width:0 lets them shrink to their container (Aug 20 2026). */
input, select, textarea { min-width: 0; }
.field, .field input, .field select, .field textarea { min-width: 0; max-width: 100%; }
.grid > *, .btn-row > * { min-width: 0; }
