/* ===========================================================================
   JNVKAA public section kit. Loaded by _Layout after public.css, on public and member pages.
   Tokens, gutters and containers come from site.css (never redefined here). MOBILE-FIRST.

   Band         section.section.section-fluid[.is-white|.is-paper|.dark] > .container
                full-bleed background, fluid content with the shared --gutter
   Section head .shead[.is-center] > .shead-text (span.eyebrow + h2 + p) + .shead-actions
   Card grids   .cards (1 → 2 → 3 columns) [.is-four 4-up on wide] [.is-six 3 → 6] [.is-auto auto-fill]
   Media card   .mcard (a or article) > .mcard-media img + .mcard-body (pill, h3.mcard-title, p.mcard-text, .mcard-foot)
   Feature card .fcard (a or article) > .fcard-ico + div (h3 + p) [+ .fcard-go arrow on links]
   Info card    a.icard > .icard-ico + .icard-text (span label + strong value)
   Stat strip   .stats > .stat (.stat-ico + .n counter + .l label), counters never shift layout
   CTA band     .cta-band > .cta-text (h2 + p) + .cta-actions
   Checklist    ul.ticks > li
   ========================================================================= */

/* ---- section rhythm ------------------------------------------------------- */
.section-fluid { width: 100%; overflow-x: clip; }
.section.section-fluid { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section-tight.section-fluid { padding-block: clamp(1.5rem, 3vw, 2.5rem); }
.section-fluid.is-white { background: #fff; }
.section-fluid.is-paper { background: var(--paper); }
.section-fluid.is-flush-top { padding-top: 0; }
.measure-center { max-width: var(--measure); margin-inline: auto; }

/* ---- section head --------------------------------------------------------- */
.shead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--sp-3) var(--sp-6);
  margin: 0 0 clamp(1.25rem, 2.6vw, 2rem); }
.shead-text { min-width: 0; flex: 1 1 420px; max-width: 68ch; }
.shead .eyebrow { margin-bottom: .55rem; }
.shead h2 { margin: 0; font-size: clamp(1.45rem, 1.1rem + 1.35vw, 2.3rem); line-height: 1.14; text-wrap: balance; }
.shead p { margin: .55rem 0 0; color: var(--muted); font-size: var(--fs-md); line-height: 1.6; text-wrap: pretty; }
.shead-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); flex: none; }
.shead.is-center { justify-content: center; text-align: center; }
.shead.is-center .shead-text { flex-basis: 100%; margin-inline: auto; }
.dark .shead p { color: rgba(255,255,255,.76); }
@media (max-width: 599px) { .shead-actions { width: 100%; } .shead-actions .btn { flex: 1 1 auto; } }
@media (min-width: 1280px) { .shead p { font-size: 1rem; } }

/* A heading + copy block inside a split layout */
.prose-block h2 { font-size: clamp(1.45rem, 1.1rem + 1.35vw, 2.3rem); line-height: 1.14; margin: 0 0 .7rem; text-wrap: balance; }
.prose-block .lead { font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: var(--ink-2); line-height: 1.6; margin-bottom: .9rem; }
.prose-block p { color: var(--muted); line-height: 1.7; max-width: 62ch; }
.prose-block p:last-of-type { margin-bottom: 0; }
.dark .prose-block .lead { color: rgba(255,255,255,.9); }
.dark .prose-block p { color: rgba(255,255,255,.75); }
.actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-5); }
@media (max-width: 479px) { .actions > .btn { flex: 1 1 auto; } }
.actions.is-center { justify-content: center; }

/* ---- card grids ----------------------------------------------------------- */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(.75rem, 1.3vw, 1.25rem); list-style: none; margin: 0; padding: 0; }
.cards > li { display: flex; min-width: 0; }
.cards > li > * { flex: 1; }
@media (min-width: 600px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1440px) { .cards.is-four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1760px) { .cards.is-six { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.cards.is-auto { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.cards.is-two { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .cards.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- media card ----------------------------------------------------------- */
.mcard { position: relative; display: flex; flex-direction: column; min-width: 0; height: 100%; background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
a.mcard:hover { color: var(--ink); }
.mcard-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream); flex: none; }
.mcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
@media (hover: hover) and (pointer: fine) { a.mcard:hover .mcard-media img { transform: scale(1.04); } }
.mcard-flag { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; padding: .3rem .6rem; border-radius: 8px;
  background: rgba(255,255,255,.94); color: var(--ink); font-size: var(--fs-xs); font-weight: 600; box-shadow: 0 4px 14px -6px rgba(0,0,0,.35); }
.mcard-flag i { color: var(--teal-700); }
.mcard-flag.is-warn { background: var(--warn-bg); color: var(--warn); }
.mcard-body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-2); padding: var(--sp-4) var(--sp-4) var(--sp-5); flex: 1; min-width: 0; }
.mcard-title { margin: 0; font-size: var(--fs-lg); line-height: 1.3; overflow-wrap: anywhere; }
.mcard-text { margin: 0; color: var(--muted); font-size: var(--fs-base); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mcard-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-size: var(--fs-xs); color: var(--muted); }
.mcard-meta i { color: var(--teal); margin-right: 4px; }
.mcard-foot { margin-top: auto; padding-top: var(--sp-2); display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 600; color: var(--teal-700); }
.mcard-foot i { transition: transform .2s; }
a.mcard:hover .mcard-foot i { transform: translateX(3px); }
.mcard .pill { font-size: var(--fs-xs); }
/* .cards.is-rows: on phones each media card becomes a compact row (thumbnail + text) */
@media (max-width: 599px) {
  .cards.is-rows .mcard { flex-direction: row; align-items: stretch; }
  .cards.is-rows .mcard-media { width: 104px; aspect-ratio: auto; min-height: 104px; }
  .cards.is-rows .mcard-body { padding: var(--sp-3) var(--sp-4); gap: var(--sp-1); justify-content: center; }
  .cards.is-rows .mcard-title { font-size: var(--fs-md); }
  .cards.is-rows .mcard-text { font-size: var(--fs-sm); -webkit-line-clamp: 3; }
}
.dark .mcard { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.1); color: #fff; box-shadow: none; }
.dark .mcard-title { color: #fff; }
.dark .mcard-text { color: rgba(255,255,255,.72); }
.dark .mcard-media { background: rgba(255,255,255,.06); }

/* ---- feature card --------------------------------------------------------- */
.fcard { position: relative; display: flex; gap: var(--sp-4); align-items: flex-start; height: 100%; min-width: 0; padding: var(--sp-5);
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; }
a.fcard:hover { color: var(--ink); }
.fcard-ico { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--cream); color: var(--teal-700); font-size: 1.1rem; }
.fcard-text { min-width: 0; flex: 1; }
.fcard h3 { margin: 0 0 .3rem; font-size: var(--fs-lg); line-height: 1.3; }
.fcard p { margin: 0; color: var(--muted); font-size: var(--fs-base); line-height: 1.55; }
.fcard-go { flex: none; align-self: center; color: var(--teal); font-size: .85rem; opacity: .55; transition: transform .2s, opacity .2s; }
a.fcard:hover .fcard-go { opacity: 1; transform: translateX(3px); }
a.fcard:hover .fcard-ico { background: var(--teal); color: #fff; }
.fcard-ico { transition: background .2s, color .2s; }
.dark .fcard { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.1); color: #fff; }
.dark .fcard h3 { color: #fff; }
.dark .fcard p { color: rgba(255,255,255,.72); }
.dark .fcard-ico { background: rgba(18,146,152,.28); color: #9af4f8; }

/* ---- info card (contact methods, quick facts) ------------------------------ */
.icard { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; padding: var(--sp-3) var(--sp-4); min-height: 64px;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; }
a.icard:hover { color: var(--ink); }
.icard-ico { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--cream); color: var(--teal-700); }
.icard-text { min-width: 0; display: grid; gap: 1px; }
.icard-text > span { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.icard-text > strong { font-weight: 600; font-size: var(--fs-base); line-height: 1.4; overflow-wrap: anywhere; }
.icard-list { display: grid; gap: var(--sp-2); list-style: none; margin: 0; padding: 0; }
@media (min-width: 600px) and (max-width: 1023px) { .icard-list.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- checklist ------------------------------------------------------------ */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.ticks li { position: relative; padding-left: 30px; line-height: 1.55; color: var(--ink-2); }
.ticks li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: .1rem;
  width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--cream); color: var(--teal-700); font-size: .6rem; }
.ticks.is-steps { counter-reset: step; }
.ticks.is-steps li::before { counter-increment: step; content: counter(step); font-family: var(--font-head); font-weight: 700; font-size: .72rem; }

/* ---- CTA band ------------------------------------------------------------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: var(--sp-5); align-items: center;
  padding: clamp(1.75rem, 4vw, 3.25rem) clamp(1.25rem, 4vw, 3.5rem); border-radius: 20px; color: #fff;
  background: radial-gradient(60% 120% at 100% 0%, rgba(154,244,248,.28), transparent 60%), linear-gradient(118deg, var(--teal-700) 0%, var(--teal) 70%, #1aa9ae 100%);
  box-shadow: var(--shadow-lg); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .22;
  background-image: radial-gradient(rgba(255,255,255,.7) 1px, transparent 1px); background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 100%); mask-image: linear-gradient(100deg, transparent 35%, #000 100%); }
.cta-band h2 { color: #fff; margin: 0 0 .45rem; font-size: clamp(1.35rem, 1rem + 1.4vw, 2.15rem); line-height: 1.15; text-wrap: balance; }
.cta-band p { margin: 0; color: rgba(255,255,255,.88); max-width: 62ch; line-height: 1.6; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.cta-band .btn-ghost { --bg: rgba(255,255,255,.08); --fg: #fff; border-color: rgba(255,255,255,.5); }
.cta-band.is-soft .btn-ghost { --bg: #fff; --fg: var(--ink); border-color: var(--line-strong); }
.cta-band .btn-ghost:hover { --fg: #fff; background: rgba(255,255,255,.14); border-color: #fff; }
.cta-band.is-soft .btn-ghost:hover { --fg: var(--teal-700); background: #fff; border-color: var(--teal-300); }
@media (max-width: 479px) { .cta-actions .btn { flex: 1 1 auto; } }
@media (min-width: 1024px) { .cta-band { grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-8); } }
.cta-band.is-soft { background: var(--cream); color: var(--ink); box-shadow: none; }
.cta-band.is-soft::before { background-image: radial-gradient(rgba(11,101,105,.35) 1px, transparent 1px); }
.cta-band.is-soft h2 { color: var(--ink); }
.cta-band.is-soft p { color: var(--muted); }

/* ---- stat strip ------------------------------------------------------------
   Equal-height cards; numbers never wrap or change the card size while they count up
   (/js/counters.js reserves the final width). */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: clamp(.6rem, 1.4vw, 1.1rem); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(var(--stat-cols, 4), minmax(0, 1fr)); } }
.stats:has(> .stat:nth-child(3):last-child) { --stat-cols: 3; }
.stats:has(> .stat:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats > .stat:only-child { grid-column: 1 / -1; }
@media (max-width: 899px) { .stats > .stat:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.stat { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; text-align: center;
  padding: clamp(.9rem, 2vw, 1.4rem) clamp(.6rem, 1.4vw, 1rem); background: #fff; border: 1px solid var(--line); border-radius: 14px;
  container-type: inline-size; }
.stat-ico { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--cream); color: var(--teal-700); font-size: .95rem; }
.cnt, [data-count] { font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat .n { margin: 0; font-family: var(--font-head); font-weight: 800; color: var(--teal-700); line-height: 1.05; letter-spacing: -.01em;
  font-size: clamp(1.35rem, 6vw, 2.4rem); font-size: clamp(1.35rem, 17cqi, 2.4rem);
  white-space: nowrap; overflow-wrap: normal; font-variant-numeric: tabular-nums; max-width: 100%; }
.stat .l { margin: 0; font-size: var(--fs-sm); line-height: 1.3; color: var(--muted); min-height: 2.6em; display: flex; align-items: center; justify-content: center; text-wrap: balance; }
.dark .stat { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }
.dark .stat .n { color: #9af4f8; }
.dark .stat .l { color: rgba(255,255,255,.72); }
.dark .stat-ico { background: rgba(18,146,152,.28); color: #9af4f8; }

/* ---- progress (cause cards) ----------------------------------------------- */
.cause { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-2); height: 100%; min-width: 0; padding: var(--sp-5);
  background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.cause h3 { margin: 0; font-size: var(--fs-lg); line-height: 1.3; }
.cause > p { margin: 0; color: var(--muted); font-size: var(--fs-base); line-height: 1.55; }
.cause-progress { margin-top: auto; width: 100%; padding-top: var(--sp-3); display: grid; gap: 6px; }
.cause-nums { display: flex; justify-content: space-between; gap: var(--sp-2); flex-wrap: wrap; font-size: var(--fs-sm); color: var(--muted); }
.cause-nums strong { color: var(--teal-700); font-variant-numeric: tabular-nums; }
.cause-pct { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.cause-link { font-size: var(--fs-sm); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.dark .cause { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.1); }
.dark .cause h3 { color: #fff; }
.dark .cause > p, .dark .cause-nums { color: rgba(255,255,255,.72); }
.dark .cause-nums strong, .dark .cause-pct { color: #9af4f8; }
.dark .cause-link { color: #9af4f8; }

/* ---- home: hero tweaks (the hero itself lives in site.css) ----------------- */
.hero .lead { font-size: clamp(.95rem, .9rem + .35vw, 1.15rem); line-height: 1.6; text-wrap: pretty; }
.hero-cta .btn-lg { min-width: 180px; }
.home-stats { position: relative; z-index: 2; }

/* home: alumni businesses strip */
.bizrow { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); list-style: none; margin: 0; padding: 0; }
@media (min-width: 600px) { .bizrow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .bizrow { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1600px) { .bizrow:has(> :nth-child(6):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.bizrow > li { display: flex; min-width: 0; }
.bizcard { flex: 1; display: flex; gap: var(--sp-3); align-items: center; min-width: 0; min-height: 72px; padding: var(--sp-3) var(--sp-4);
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; }
.bizcard:hover { color: var(--ink); }
.bizcard .logo { width: 44px; height: 44px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--cream); color: var(--teal-700);
  font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; }
.bizcard-text { min-width: 0; display: grid; gap: 2px; }
.bizcard-text b { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-md); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bizcard-text span { font-size: var(--fs-xs); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* home: gallery strip */
.gstrip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .gstrip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gstrip a { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.06); }
.gstrip img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
@media (hover: hover) and (pointer: fine) { .gstrip a:hover img { transform: scale(1.06); } }
.gstrip .cap { position: absolute; inset: auto 0 0 0; padding: 2rem .75rem .7rem; background: linear-gradient(transparent, rgba(0,20,25,.85));
  color: #fff; font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); line-height: 1.3; }

/* home: batch distribution chart */
.batchchart { display: grid; gap: .55rem; }
.batchrow { display: grid; grid-template-columns: 48px minmax(0, 1fr) 40px; gap: .75rem; align-items: center; }
.batchrow .yr { font-family: var(--font-head); font-weight: 700; color: var(--teal-700); font-size: var(--fs-sm); }
.batchrow .cnt { font-family: var(--font-head); font-weight: 700; color: var(--muted); font-size: var(--fs-sm); text-align: right; }
.panel-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: clamp(1rem, 2.4vw, 1.6rem); box-shadow: var(--shadow-sm); min-width: 0; }
.panel-card-title { margin: 0 0 var(--sp-4); font-size: var(--fs-md); font-family: var(--font-head); font-weight: 700; display: flex; justify-content: space-between; gap: var(--sp-2); align-items: baseline; }
.panel-card-title small { font-family: var(--font-body); font-weight: 500; font-size: var(--fs-xs); color: var(--muted); }
.batchchart-scroll { max-height: 420px; overflow-y: auto; padding-right: .3rem; overscroll-behavior: contain; }

/* FAQ: two columns of questions on wide screens */
.faq { display: grid; gap: var(--sp-2); max-width: 880px; margin-inline: auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.faq details[open] { border-color: var(--teal-300); }
.faq summary { cursor: pointer; list-style: none; min-height: 52px; padding: .8rem 1rem; font-family: var(--font-head); font-weight: 600; font-size: var(--fs-md);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 1.35rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2013"; }
.faq p { padding: 0 1rem 1rem; color: var(--muted); margin: 0; font-size: var(--fs-base); line-height: 1.6; }
@media (min-width: 1100px) { .faq.is-two { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: var(--sp-3) var(--sp-4); } }

/* Members-vs-donors / batch chart wrapper scroll on About */
.mvd-scroll { max-height: 520px; overflow-y: auto; padding-right: .3rem; overscroll-behavior: contain; }

/* ---- listing pages of other areas: more columns on wide screens instead of stretched cards ---- */
@media (min-width: 1440px) {
  .container-fluid .st-featured, .container .st-featured { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .container-fluid .grid-3:not(.grid-list):has(> :nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .container-fluid .grid-3:not(.grid-list):has(> :nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .donor-wall.cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1760px) {
  .container-fluid .st-featured, .container .st-featured { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .donor-wall.cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Long-form rich event bodies stay at a readable measure */
.container-fluid .event-body, .container .event-body { max-width: var(--measure); }

/* empty states: .pg-empty (console.css) with an h2 title on public pages */
.pg-empty > h2 { font-size: var(--fs-md); color: var(--ink); margin: var(--sp-3) 0 var(--sp-1); }
.section .pg-empty { border-radius: 14px; }

/* ---- motion --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .mcard-media img, .gstrip img, .fcard-go, .fcard-ico, .mcard-foot i { transition: none !important; }
}
