/* ============================================================
   ESBAP.org — design system
   Civic-editorial: deep navy ink · warm paper · gold action · teal signal
   Type: Fraunces (display serif) + Public Sans (body)
   ============================================================ */

:root {
  /* palette */
  --navy:        #1a2a56;
  --navy-deep:   #13204380;
  --navy-solid:  #132043;
  --navy-ink:    #0c142e;
  --gold:        #f2b724;
  --gold-deep:   #cf9200;
  --gold-soft:   #fdf3d7;
  --teal:        #17879b;
  --teal-deep:   #0e5f6e;
  --teal-soft:   #e2f2f5;
  --red:         #b23a2e;
  --red-soft:    #f9e8e6;
  --green:       #2e7d4f;
  --paper:       #faf7f1;
  --white:       #ffffff;
  --line:        #e6e1d4;
  --line-navy:   #2c3d6e;
  --ink:         #22284a;
  --ink-soft:    #5a608a;
  --ink-faint:   #8b90ad;

  /* type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Public Sans", "Segoe UI", Helvetica, sans-serif;

  /* spacing scale (4-base) */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-1: 0 1px 3px rgba(19,32,67,.08), 0 4px 14px rgba(19,32,67,.06);
  --shadow-2: 0 4px 10px rgba(19,32,67,.10), 0 18px 44px rgba(19,32,67,.14);
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--gold); color: var(--navy-ink); }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 3px;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s5); }
.container--narrow { max-width: 860px; }

/* ---------- typography ---------- */
.overline {
  font-size: .72rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--teal-deep);
  display: inline-flex; align-items: center; gap: 10px;
}
.overline::before { content: ""; width: 26px; height: 2px; background: var(--gold); }
.overline--plain::before { display: none; }
.overline--ondark { color: var(--gold); }

h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy-solid);
  line-height: 1.15;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); }
h3 { font-size: 1.22rem; }
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 62ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 8px; border: none;
  font-size: .95rem; font-weight: 700; letter-spacing: .01em;
  text-decoration: none !important; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--gold {
  background: var(--gold); color: var(--navy-ink);
  box-shadow: 0 2px 0 var(--gold-deep), 0 8px 22px rgba(242,183,36,.35);
}
.btn--gold:hover { background: #ffc633; }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-solid); }
.btn--ghost {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,.55);
}
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn--outline {
  background: var(--white); color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--sm { padding: 9px 18px; font-size: .85rem; }

/* ---------- nav ---------- */
.nav {
  background: var(--navy-ink);
  background: linear-gradient(180deg, #0c142e 0%, #13204a 100%);
  position: sticky; top: 0; z-index: 60;
  border-bottom: 1px solid rgba(242,183,36,.25);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s5);
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: var(--s5);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none !important; }
.brand img { height: 40px; width: auto; }
.brand__text { line-height: 1.1; }
.brand__name {
  font-family: var(--serif); font-weight: 700; font-size: 1.45rem;
  color: var(--white); letter-spacing: .04em;
}
/* Masthead subtitle — single shared class; swap the string site-wide if the
   canon name ruling changes ("Ethics" vs "Ethical"). */
.brand-sub {
  display: block; font-size: .6rem; font-weight: 600; letter-spacing: .06em;
  color: #9fb0d8; text-transform: uppercase; max-width: 180px;
}
.nav__links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav__links a {
  color: #cdd6ec; font-size: .9rem; font-weight: 600; padding: 8px 13px;
  border-radius: 6px; text-decoration: none !important;
}
.nav__links a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.nav__links a.active { color: var(--gold); }
.nav__links a.nav-cta {
  background: var(--gold); color: var(--navy-ink); margin-left: 8px; font-weight: 700;
}
.nav__links a.nav-cta:hover { background: #ffc633; color: var(--navy-ink); }
.nav__toggle {
  display: none; background: none; border: 1.5px solid rgba(255,255,255,.4);
  color: var(--white); border-radius: 7px; padding: 7px 12px; font-size: 1.05rem;
}

/* ---------- hero ---------- */
.hero {
  position: relative; color: var(--white);
  background: var(--navy-ink);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 30%;
  filter: brightness(1.15) saturate(1.05);
}
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,17,40,.88) 0%, rgba(13,24,58,.72) 45%, rgba(13,24,58,.35) 100%);
}
.hero__inner {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(56px, 9vw, 110px) var(--s5) clamp(56px, 8vw, 96px);
}
.hero h1 { color: var(--white); max-width: 17ch; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .lede { color: #d7ddf0; margin-top: var(--s4); }

/* search panel */
.search-panel {
  margin-top: var(--s6);
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  padding: var(--s4);
  display: grid; gap: var(--s3);
  grid-template-columns: 1.4fr 1fr 1fr auto;
  max-width: 980px;
  border-top: 4px solid var(--gold);
}
.search-panel--compact { grid-template-columns: 1.5fr 1fr auto; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field label {
  font-size: .68rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-soft);
}
.field input, .field select {
  font-family: inherit; font-size: .96rem; color: var(--ink);
  padding: 12px 13px; border: 1.5px solid var(--line);
  border-radius: 8px; background: var(--white); width: 100%;
}
.field select { cursor: pointer; }
.field input:focus, .field select:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(23,135,155,.16);
}
.search-panel .btn { align-self: end; min-height: 47px; white-space: nowrap; }

/* ---------- stat band ---------- */
.stat-band { background: var(--navy-solid); color: var(--white); position: relative; overflow: hidden; }
.stat-band::after {
  content: ""; position: absolute; right: -70px; top: -70px; width: 300px; height: 300px;
  background:
    conic-gradient(from 45deg, var(--gold) 0 25%, var(--teal) 0 50%, #3452a4 0 75%, var(--gold-deep) 0);
  opacity: .12; transform: rotate(18deg); border-radius: 36px;
}
.stat-band__inner {
  max-width: var(--maxw); margin: 0 auto; padding: var(--s7) var(--s5);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6);
  position: relative;
}
.stat { border-left: 3px solid var(--gold); padding-left: var(--s4); }
.stat__num {
  font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700; color: var(--gold); line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.stat__label { color: #c3cce6; font-size: .92rem; margin-top: 4px; }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--navy { background: var(--navy-ink); color: #d7ddf0; }
.section--navy h2 { color: var(--white); }
.section-head { max-width: 720px; margin-bottom: var(--s6); }
.section-head h2 { margin-top: var(--s3); }
.section-head p { margin-top: var(--s3); color: var(--ink-soft); }

/* ---------- audience cards ---------- */
.aud-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4);
}
.aud-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 250px; display: flex; align-items: flex-end;
  text-decoration: none !important;
  box-shadow: var(--shadow-1);
  transition: transform .2s ease, box-shadow .2s ease;
}
.aud-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.aud-card__bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: brightness(1.35) saturate(1.05); transition: transform .35s ease;
}
.aud-card:hover .aud-card__bg { transform: scale(1.05); }
.aud-card__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,20,46,0) 30%, rgba(12,20,46,.92) 100%);
}
.aud-card__body { position: relative; padding: var(--s4); color: var(--white); }
.aud-card__kicker { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.aud-card__title { font-family: var(--serif); font-size: 1.28rem; font-weight: 600; margin-top: 2px; }
.aud-card__hint { font-size: .84rem; color: #c9d2ea; margin-top: 4px; }

.family-banner {
  margin-top: var(--s4);
  background: var(--teal-soft); border: 1.5px solid var(--teal);
  border-radius: var(--radius); padding: var(--s5) var(--s5);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s5);
}
.family-banner h3 { color: var(--teal-deep); font-size: 1.35rem; }
.family-banner p { color: var(--ink-soft); margin-top: 4px; max-width: 56ch; }

/* ---------- band chips & badges ---------- */
.band-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none !important; white-space: nowrap;
}
.band-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.band-chip--verified_strong { background: var(--gold-soft); color: #8a6100; border-color: var(--gold); }
.band-chip--verified        { background: var(--teal-soft); color: var(--teal-deep); border-color: var(--teal); }
.band-chip--listed          { background: #eef1f8; color: var(--navy); border-color: #b9c3de; }
.band-chip--unrated         { background: #f2f0ea; color: #6d6f7e; border-color: #d8d5c9; }
.band-chip--flagged         { background: var(--red-soft); color: var(--red); border-color: var(--red); }
a.band-chip:hover { filter: brightness(.96); }

.ownership-chip {
  display: inline-flex; align-items: center; font-size: .74rem; font-weight: 700;
  padding: 4px 10px; border-radius: 5px; letter-spacing: .03em; white-space: nowrap;
}
.ownership-chip--pe    { background: var(--red-soft); color: var(--red); }
.ownership-chip--indep { background: #edf3ee; color: var(--green); }
.ownership-chip--univ  { background: var(--teal-soft); color: var(--teal-deep); }

/* ---------- directory ---------- */
.page-head {
  background: var(--navy-ink); color: var(--white);
  padding: var(--s7) 0 var(--s6);
  position: relative; overflow: hidden;
}
.page-head::after {
  content: ""; position: absolute; right: -40px; bottom: -110px; width: 320px; height: 320px;
  background: conic-gradient(from 45deg, var(--gold) 0 25%, var(--teal) 0 50%, #3452a4 0 75%, var(--gold-deep) 0);
  opacity: .14; transform: rotate(24deg); border-radius: 40px;
}
.page-head h1 { color: var(--white); font-size: clamp(1.7rem, 3.4vw, 2.5rem); position: relative; }
.page-head p { color: #c3cce6; margin-top: var(--s2); max-width: 66ch; position: relative; }

.filter-bar {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1); padding: var(--s4);
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr auto; gap: var(--s3);
  margin-top: -34px; position: relative; z-index: 5;
  border-top: 4px solid var(--gold);
}
.results-meta {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  margin: var(--s5) 0 var(--s4); flex-wrap: wrap;
}
.results-meta__count { font-size: .95rem; color: var(--ink-soft); }
.results-meta__count strong { color: var(--navy-solid); font-variant-numeric: tabular-nums; }
.sort-wrap { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--ink-soft); }
.sort-wrap select {
  font-family: inherit; font-size: .88rem; padding: 8px 10px;
  border: 1.5px solid var(--line); border-radius: 7px; background: var(--white); cursor: pointer;
}

.org-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
.org-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s5); box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; gap: var(--s3);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  position: relative;
}
.org-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: #cfd7ea; }
.org-card__top { display: flex; justify-content: space-between; gap: 8px var(--s3); align-items: flex-start; flex-wrap: wrap; }
.org-card__top .band-chip { flex-shrink: 0; }
.org-card__name {
  font-family: var(--serif); font-size: 1.18rem; font-weight: 600; line-height: 1.25;
  color: var(--navy-solid);
}
.org-card__name a { color: inherit; text-decoration: none; }
.org-card__name a::after { content: ""; position: absolute; inset: 0; }
.org-card:hover .org-card__name { color: var(--teal-deep); }
.org-card__meta { font-size: .88rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.org-card__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; position: relative; z-index: 2; }

/* pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: var(--s6); flex-wrap: wrap; }
.pagination button {
  min-width: 40px; padding: 9px 13px; border: 1.5px solid var(--line);
  background: var(--white); border-radius: 8px; font-size: .9rem; font-weight: 600; color: var(--ink);
}
.pagination button:hover:not(:disabled) { border-color: var(--navy); }
.pagination button[aria-current="page"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pagination button:disabled { opacity: .4; cursor: default; }
.pagination .pag-ellip { color: var(--ink-faint); padding: 0 2px; }

/* ---------- states: loading / empty / error ---------- */
.skeleton-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--s4); }
.skeleton-card {
  height: 168px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(100deg, #f3f0e8 40%, #faf8f2 50%, #f3f0e8 60%);
  background-size: 300% 100%;
  animation: shimmer 1.3s infinite linear;
}
@keyframes shimmer { to { background-position: -300% 0; } }
.state-box {
  text-align: center; padding: var(--s8) var(--s5);
  background: var(--white); border: 1.5px dashed var(--line); border-radius: var(--radius-lg);
}
.state-box__icon { font-size: 2rem; margin-bottom: var(--s3); }
.state-box h3 { margin-bottom: var(--s2); }
.state-box p { color: var(--ink-soft); max-width: 46ch; margin: 0 auto var(--s4); }
.state-box--error { border-color: var(--red); background: var(--red-soft); }

/* ---------- organization profile ---------- */
.profile-head { background: var(--navy-ink); color: var(--white); padding: var(--s7) 0; position: relative; overflow: hidden; }
.profile-head::after {
  content: ""; position: absolute; right: -60px; top: -90px; width: 280px; height: 280px;
  background: conic-gradient(from 45deg, var(--gold) 0 25%, var(--teal) 0 50%, #3452a4 0 75%, var(--gold-deep) 0);
  opacity: .13; transform: rotate(20deg); border-radius: 36px;
}
.profile-head__inner { position: relative; display: flex; justify-content: space-between; gap: var(--s6); align-items: flex-start; flex-wrap: wrap; }
.profile-head h1 { color: var(--white); font-size: clamp(1.6rem, 3.4vw, 2.4rem); max-width: 24ch; }
.profile-head__meta { margin-top: var(--s3); color: #c3cce6; font-size: .95rem; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.profile-head__chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: var(--s4); }

.profile-grid { display: grid; grid-template-columns: 1.9fr 1fr; gap: var(--s5); align-items: start; }
.panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1); padding: var(--s5);
}
.panel + .panel { margin-top: var(--s5); }
.panel__kicker {
  font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--teal-deep); margin-bottom: var(--s3);
  display: flex; align-items: center; gap: 10px;
}
.panel__kicker::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.panel h2 { font-size: 1.3rem; margin-bottom: var(--s3); }

.standing-panel { border-top: 5px solid var(--gold); }
.standing-panel__band { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s4); }
.standing-panel__badge img, .standing-panel__badge svg { height: 58px; width: auto; }
.standing-panel__expl { font-size: .95rem; color: var(--ink-soft); max-width: 60ch; }

.evidence { list-style: none; margin-top: var(--s4); display: grid; gap: 6px; }
.evidence li {
  display: flex; align-items: baseline; gap: 10px; font-size: .93rem;
  padding: 9px 12px; border-radius: 7px; background: var(--paper);
}
.evidence .ev-mark { font-weight: 800; width: 18px; flex: none; text-align: center; }
.evidence .ev-yes .ev-mark, .ev-yes .ev-mark { color: var(--green); }
.evidence li.ev-yes { background: #f2f7f3; }
.evidence li.ev-no { color: var(--ink-faint); }
.evidence li.ev-no .ev-mark { color: var(--ink-faint); }
.evidence li.ev-flag { background: var(--red-soft); color: var(--red); }
.evidence li.ev-flag .ev-mark { color: var(--red); }

.kv { display: grid; gap: 0; }
.kv > div { display: flex; justify-content: space-between; gap: var(--s4); padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.kv > div:last-child { border-bottom: none; }
.kv dt { color: var(--ink-soft); flex: none; }
.kv dd { text-align: right; font-weight: 600; color: var(--navy-solid); overflow-wrap: anywhere; }

.loc-list { list-style: none; display: grid; gap: var(--s3); }
.loc-list li {
  border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4);
  display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; font-size: .93rem;
}
.loc-list .loc-addr strong { color: var(--navy-solid); }
.loc-list .loc-phone { color: var(--ink-soft); white-space: nowrap; }

/* third-party ratings — display-only strip, visually separate */
.ratings-strip {
  background: var(--paper); border: 1.5px dashed #cfc9b8; border-radius: var(--radius-lg);
  padding: var(--s4) var(--s5); margin-top: var(--s5);
}
.ratings-strip__label { font-size: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: var(--s3); }
.ratings-strip__row { display: flex; gap: var(--s6); flex-wrap: wrap; }
.rating-item { font-size: .9rem; color: var(--ink-soft); }
.rating-item strong { font-size: 1.25rem; color: var(--navy-solid); font-variant-numeric: tabular-nums; font-family: var(--serif); }
.ratings-strip__note { font-size: .78rem; color: var(--ink-faint); margin-top: var(--s3); font-style: italic; }

.reply-note {
  margin-top: var(--s5); padding: var(--s4) var(--s5);
  background: var(--teal-soft); border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0; font-size: .92rem; color: var(--teal-deep);
}

/* ---------- methodology ---------- */
.dim-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4); counter-reset: dim; }
.dim-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s5); box-shadow: var(--shadow-1); counter-increment: dim; position: relative;
}
.dim-card::before {
  content: "0" counter(dim);
  font-family: var(--serif); font-size: 2.4rem; font-weight: 700; color: var(--gold);
  line-height: 1; display: block; margin-bottom: var(--s3);
}
.dim-card h3 { margin-bottom: var(--s2); }
.dim-card p { font-size: .93rem; color: var(--ink-soft); }

.band-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); }
.band-table th, .band-table td { padding: 15px 18px; text-align: left; font-size: .93rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.band-table th { background: var(--navy-solid); color: var(--white); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.band-table tr:last-child td { border-bottom: none; }

.tier-list { list-style: none; display: grid; gap: var(--s3); }
.tier-list li { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 8px; padding: var(--s4); font-size: .94rem; }
.tier-list li strong { color: var(--navy-solid); }

.isnot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.isnot { border-radius: var(--radius); padding: var(--s5); }
.isnot--is { background: #f2f7f3; border: 1.5px solid #bcd8c4; }
.isnot--not { background: var(--red-soft); border: 1.5px solid #e0b3ad; }
.isnot h3 { margin-bottom: var(--s3); }
.isnot ul { margin-left: 20px; display: grid; gap: 8px; font-size: .94rem; }

/* ---------- email signup ---------- */
.signup-band { background: var(--navy-solid); position: relative; overflow: hidden; }
.signup-band::before {
  content: ""; position: absolute; left: -80px; bottom: -120px; width: 300px; height: 300px;
  background: conic-gradient(from 45deg, var(--gold) 0 25%, var(--teal) 0 50%, #3452a4 0 75%, var(--gold-deep) 0);
  opacity: .12; transform: rotate(-14deg); border-radius: 36px;
}
.signup-band__inner {
  max-width: var(--maxw); margin: 0 auto; padding: var(--s8) var(--s5);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s6); align-items: center; position: relative;
}
.signup-band h2 { color: var(--white); }
.signup-band p { color: #c3cce6; margin-top: var(--s3); }
.signup-form { display: flex; gap: var(--s3); }
.signup-form input {
  flex: 1; padding: 14px 16px; border-radius: 8px; border: none; font-size: .98rem; font-family: inherit;
}
.signup-form input:focus { outline: 3px solid var(--gold); }
.signup-msg { margin-top: var(--s3); font-size: .9rem; min-height: 1.4em; color: var(--gold); }

/* ---------- footer ---------- */
.footer { background: var(--navy-ink); color: #aab4d4; font-size: .9rem; }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto; padding: var(--s8) var(--s5) var(--s5);
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: var(--s6);
}
.footer h4 { color: var(--white); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: var(--s4); }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer a { color: #aab4d4; }
.footer a:hover { color: var(--gold); }
.footer__brand img { height: 44px; margin-bottom: var(--s3); }
.footer__mission { max-width: 34ch; line-height: 1.55; }
.footer__legal {
  border-top: 1px solid var(--line-navy);
  max-width: var(--maxw); margin: 0 auto; padding: var(--s4) var(--s5) var(--s6);
  font-size: .8rem; color: #7d88ad; display: grid; gap: 8px;
}

/* ---------- misc ---------- */
.prose { max-width: 70ch; }
.prose p + p { margin-top: var(--s4); }
.prose h2 { margin: var(--s6) 0 var(--s3); }
.prose ul { margin: var(--s3) 0 var(--s3) 22px; display: grid; gap: 8px; }
.callout {
  background: var(--gold-soft); border-left: 4px solid var(--gold);
  padding: var(--s4) var(--s5); border-radius: 0 var(--radius) var(--radius) 0;
  margin: var(--s5) 0; font-size: .97rem;
}
.divider-mark { display: flex; justify-content: center; padding: var(--s6) 0 0; }
.divider-mark span { display: inline-flex; gap: 6px; }
.divider-mark i { width: 10px; height: 10px; border-radius: 2px; transform: rotate(45deg); display: inline-block; }
.divider-mark i:nth-child(1) { background: var(--gold); }
.divider-mark i:nth-child(2) { background: var(--teal); }
.divider-mark i:nth-child(3) { background: var(--navy); }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--navy-ink);
  padding: 10px 18px; font-weight: 700; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* reveal on load */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); animation: rise .6s ease forwards; }
  .reveal--d1 { animation-delay: .08s; } .reveal--d2 { animation-delay: .16s; }
  .reveal--d3 { animation-delay: .24s; } .reveal--d4 { animation-delay: .32s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .aud-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .search-panel { grid-template-columns: 1fr 1fr; }
  .search-panel .btn { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy-ink); flex-direction: column; align-items: stretch;
    padding: var(--s3) var(--s5) var(--s5); gap: 2px; border-bottom: 2px solid var(--gold);
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 12px 10px; }
  .profile-grid { grid-template-columns: 1fr; }
  .signup-band__inner { grid-template-columns: 1fr; }
  .org-grid, .skeleton-grid { grid-template-columns: 1fr; }
  .dim-grid { grid-template-columns: 1fr; }
  .isnot-grid { grid-template-columns: 1fr; }
  .family-banner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .container { padding: 0 var(--s4); }
  .search-panel, .filter-bar { grid-template-columns: 1fr; }
  .aud-grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
  .signup-form { flex-direction: column; }
  .stat-band__inner { grid-template-columns: 1fr; gap: var(--s5); }
  .kv > div { flex-direction: column; gap: 2px; }
  .kv dd { text-align: left; }
}
