/* SIG — layout and component styles modeled on the WIS reference design,
   recolored with Episcopal High School's maroon and gray. */
:root {
  --brand: #7b1339;          /* EHS maroon (sampled from the official logo) */
  --brand-dark: #63102e;
  --brand-rgb: 123, 19, 57;
  --gray: #616161;           /* EHS gray (official logo) */
  --ink: #33242a;
  --body: #4e4247;
  --muted: #5f5358;
  --copy: #574b50;
  --canvas: #faf8f9;
  --tint: #f6edf0;
  --tint-2: #f1e4e9;
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", serif;
  --sans: -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--sans); font-size: 16px; line-height: 1.5; color: var(--body);
  background: var(--canvas);
}
main { flex: 1; outline: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); }
p, ul { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: 10px; background: #fff; color: var(--brand); font-weight: 600; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.skip-link:focus { top: 12px; }

.container { max-width: 1152px; margin-inline: auto; padding-inline: 16px; }

/* Placeholder marker — remove content placeholders before publication */
.ph {
  display: inline; padding: 1px 6px; border: 1px dashed #c08a2b; border-radius: 6px;
  background: #fff7e6; color: #7a5410; font-style: italic;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.ph::before { content: "Placeholder: "; font-style: normal; font-weight: 600; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 200; background: var(--brand);
  border-bottom: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 5px 24px rgba(var(--brand-rgb),.12), inset 0 1px 0 rgba(255,255,255,.07);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav { background: rgba(var(--brand-rgb),.94); -webkit-backdrop-filter: blur(14px) saturate(130%); backdrop-filter: blur(14px) saturate(130%); }
}
.nav a:focus-visible, .nav button:focus-visible { outline-color: #fff; outline-offset: 3px; }
.nav-inner { max-width: 1280px; margin-inline: auto; padding-inline: 16px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
@media (min-width: 640px) { .nav-inner { padding-inline: 24px; } }
.nav-brand { display: flex; align-items: center; gap: 10px; min-width: 0; margin-left: -4px; border-radius: 8px; }
.nav-mark { display: block; flex-shrink: 0; width: 36px; height: 36px; }
.nav-mark img { width: 36px; height: 36px; }
.nav-brand-text { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--serif); font-size: 14px; color: rgba(255,255,255,.9); }
.nav-brand-sub { color: rgba(255,255,255,.62); }
@media (max-width: 479px) { .nav-brand-sub { display: none; } }
.nav-links { display: none; align-items: center; gap: 4px; font-size: 14px; white-space: nowrap; }
@media (min-width: 1100px) { .nav-links { display: flex; } }
.nav-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 44px; padding: 8px 12px;
  border: 1px solid transparent; border-radius: 999px; color: rgba(255,255,255,.8); line-height: 20px;
  transition: color .18s, background .18s, border-color .18s;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-link.is-active { color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.18); }
.nav-link svg { transition: transform .18s; }
.nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-join {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 17px; margin-left: 4px;
  border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font-size: 13px; line-height: 20px;
  transition: background .18s;
}
.nav-join:hover, .nav-join[aria-current="page"] { background: rgba(255,255,255,.2); }
.nav-dd { position: relative; z-index: 50; }
.nav-dropdown {
  position: absolute; top: 100%; left: 0; width: 192px; padding: 6px; margin-top: 8px;
  border: 1px solid rgba(255,255,255,.9); border-radius: 16px; background: #faf8f9;
  box-shadow: 0 16px 40px -12px rgba(var(--brand-rgb),.3);
}
.nav-dropdown[hidden] { display: none; }
.nav-dropdown a { display: flex; align-items: center; min-height: 44px; padding: 10px 13px; border-radius: 10px; color: var(--brand); font-size: 13px; transition: background .18s; }
.nav-dropdown a:hover, .nav-dropdown a[aria-current="page"] { background: var(--tint-2); }
.nav .nav-dropdown a:focus-visible { outline-color: var(--brand); outline-offset: -2px; }
.nav-tools { display: flex; flex-shrink: 0; align-items: center; gap: 8px; }
.nav-about { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; color: rgba(255,255,255,.65); transition: color .18s, background .18s; }
.nav-about:hover, .nav-about.is-active { color: #fff; background: rgba(255,255,255,.06); }
.nav-menu-btn {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px;
  border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: rgba(255,255,255,.06); color: #fff;
}
.nav-menu-btn:hover { background: rgba(255,255,255,.1); }
.nav-menu-btn .icon-close, .nav-menu-btn[aria-expanded="true"] .icon-open { display: none; }
.nav-menu-btn[aria-expanded="true"] .icon-close { display: block; }
@media (min-width: 1100px) { .nav-menu-btn { display: none; } }
.nav-mobile { max-width: 1280px; margin-inline: auto; padding: 12px 16px 16px; border-top: 1px solid rgba(255,255,255,.13); }
.nav-mobile[hidden] { display: none; }
@media (min-width: 1100px) { .nav-mobile { display: none !important; } }
.nav-mobile-link { display: block; min-height: 44px; padding: 12px; color: rgba(255,255,255,.85); font-size: 14px; line-height: 20px; border-radius: 12px; }
.nav-mobile-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-mobile-link.is-active { color: #fff; background: rgba(255,255,255,.12); font-weight: 600; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; padding: 48px 24px 116px; min-height: 490px; }
.hero-backdrop { position: absolute; inset: 0; z-index: -1; background: #4a0b22; }
.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.hero-pattern {
  position: absolute; inset: 0;
  /* Colonnade motif echoing the building in the EHS logo */
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.10), transparent 60%),
    repeating-linear-gradient(90deg, transparent 0 58px, rgba(255,255,255,.07) 58px 74px, transparent 74px 132px),
    linear-gradient(180deg, #5b0d29, #3b0819);
}
.hero-backdrop::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(transparent calc(100% - 130px), rgba(250,248,249,.18) calc(100% - 96px), rgba(250,248,249,.75) calc(100% - 38px), #faf8f9),
    linear-gradient(90deg, rgba(var(--brand-rgb),.82), rgba(var(--brand-rgb),.74) 55%, rgba(var(--brand-rgb),.64));
}
.hero-content { width: min(100%, 800px); text-align: center; }
.hero-title {
  max-width: 740px; margin: 0 auto; color: #fff; font-size: clamp(36px, 4.4vw, 56px); font-weight: 650;
  line-height: 1.06; letter-spacing: -.045em; text-wrap: balance;
}
.hero-subtitle { max-width: 650px; margin: 20px auto 0; color: rgba(255,255,255,.94); font-size: 16px; line-height: 1.7; text-wrap: pretty; }
.hero-actions { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.btn-hero-primary, .btn-hero-secondary {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; gap: 14px; padding: 10px 19px;
  border-radius: 999px; border: 1px solid transparent; font-size: 13px; font-weight: 500; line-height: 1.5;
  transition: background .18s, border-color .18s;
}
.btn-hero-primary { background: #fff; color: var(--brand); box-shadow: 0 3px 10px rgba(60,10,28,.1); }
.btn-hero-primary:hover { background: var(--tint); }
.btn-hero-primary span { font-size: 17px; font-weight: 400; }
.btn-hero-secondary { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.55); color: #fff; }
.btn-hero-secondary:hover { background: rgba(255,255,255,.18); border-color: #fff; }
.hero a:focus-visible { outline-color: #fff; }
@media (max-width: 639px) {
  .hero { min-height: 0; padding: 40px 24px 116px; }
  .hero-title { font-size: clamp(32px, 8.5vw, 42px); }
  .hero-subtitle { margin-top: 18px; font-size: 14px; line-height: 1.65; }
  .hero-actions { margin-top: 22px; gap: 9px; }
  .btn-hero-primary, .btn-hero-secondary { padding: 10px 15px; font-size: 12px; }
}

/* ---------- Home content ---------- */
.home { background: var(--canvas); }
.home-content { position: relative; margin-top: -28px; padding-bottom: 48px; }
.home-content > * + * { margin-top: 64px; }
.home-heading { margin-bottom: 30px; color: var(--brand); text-align: center; font-size: 32px; font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.stack-32 > * + * { margin-top: 32px; }
.stack-16 > * + * { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.mt-24 { margin-top: 24px; }

.surface { border: 1px solid rgba(var(--brand-rgb),.1); border-radius: 20px; background: #fff; box-shadow: 0 12px 32px -26px rgba(var(--brand-rgb),.22); }
.surface.pad { padding: 24px; }
@media (min-width: 640px) { .surface.pad { padding: 32px; } }
@media (max-width: 639px) { .surface { border-radius: 17px; } }
.section-title { margin-bottom: 20px; color: var(--ink); font-size: 24px; font-weight: 600; line-height: 32px; letter-spacing: -.025em; }
.body-copy { color: var(--copy); line-height: 1.625; }
.body-muted { color: var(--copy); }
.text-sm { font-size: 14px; line-height: 20px; }

/* Portfolio panel */
.portfolio-frame { max-width: 896px; margin-inline: auto; padding: 3px; border: 1px solid rgba(255,255,255,.8); border-radius: 21px; background: rgba(255,255,255,.62); box-shadow: 0 14px 34px -24px rgba(var(--brand-rgb),.23); }
.fin-panel { padding: 24px; border-radius: 17px; border-color: rgba(var(--brand-rgb),.09); }
@media (max-width: 639px) { .fin-panel { padding: 18px 16px; } }
.fin-label { margin-bottom: 4px; color: #6b6468; font-size: 24px; font-weight: 500; line-height: 32px; }
.fin-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 16px; }
.fin-value { color: var(--brand); font-size: clamp(32px, 4vw, 42px); font-weight: 600; line-height: 1.2; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.fin-change { font-size: 14px; color: var(--muted); }
.fin-periods { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 16px; }
@media (min-width: 640px) { .fin-periods { gap: 8px; } }
.fin-period { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 44px; padding: 6px 0; border-radius: 9px; color: var(--muted); font-size: 12px; font-weight: 500; }
.fin-period span { display: flex; align-items: center; justify-content: center; min-width: 40px; min-height: 30px; padding: 5px 10px; border-radius: 8px; line-height: 20px; transition: background .18s, color .18s; }
.fin-period:hover span { background: #f6f1f3; color: var(--brand); }
.fin-period[aria-pressed="true"] span { background: var(--tint-2); color: var(--brand); font-weight: 600; }
.fin-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 24px; }
.fin-sub { margin: -10px 0 14px; color: var(--muted); font-size: 13px; }
.fin-change.pos { color: #1f7a4d; font-size: 18px; font-weight: 600; }
.fin-change.neg { color: #b42318; font-size: 18px; font-weight: 600; }
.fin-modes { display: inline-flex; padding: 3px; border: 1px solid rgba(var(--brand-rgb),.12); border-radius: 12px; background: #fbf8f9; }
.fin-mode { min-height: 38px; padding: 6px 12px; border-radius: 9px; color: var(--muted); font-size: 12px; font-weight: 500; transition: background .18s, color .18s; }
.fin-mode:hover { color: var(--brand); }
.fin-mode[aria-pressed="true"] { background: #fff; color: var(--brand); font-weight: 600; box-shadow: 0 1px 4px rgba(var(--brand-rgb),.14); }
.fin-legend { display: flex; gap: 18px; margin: -4px 0 8px; font-size: 12px; color: var(--muted); }
.fin-legend[hidden] { display: none; }
.fin-key::before { content: ""; display: inline-block; width: 18px; height: 0; margin-right: 6px; vertical-align: middle; border-top: 2.5px solid var(--brand); }
.fin-key--spx::before { border-top: 2px dashed #8b8487; }
.fin-chart { position: relative; min-height: 230px; border-radius: 10px; touch-action: pan-y; cursor: crosshair; }
.fin-chart:focus-visible { outline-offset: 4px; }
.fin-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.fin-gridline { stroke: #e6dfe2; stroke-dasharray: 4 4; }
.fin-gridline.is-zero { stroke: #b9adb2; stroke-dasharray: none; }
.fin-axis { fill: #7a6f74; font-size: 11px; font-family: var(--sans); }
.fin-line-sig { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; }
.fin-line-spx { fill: none; stroke: #8b8487; stroke-width: 1.6; stroke-dasharray: 5 4; }
.fin-cross { stroke: rgba(var(--brand-rgb),.35); stroke-width: 1; }
.fin-dot { fill: #fff; stroke: var(--brand); stroke-width: 2; }
.fin-dot-spx { fill: #fff; stroke: #8b8487; stroke-width: 2; }
.fin-tip { position: absolute; top: -6px; z-index: 2; display: flex; flex-direction: column; gap: 1px; padding: 7px 10px; border: 1px solid rgba(var(--brand-rgb),.14); border-radius: 10px; background: rgba(255,255,255,.96); box-shadow: 0 8px 20px -10px rgba(var(--brand-rgb),.35); font-size: 12px; color: var(--ink); white-space: nowrap; pointer-events: none; }
.fin-tip[hidden] { display: none; }
.fin-tip strong { font-weight: 600; color: var(--muted); font-size: 11px; }
.fin-tip span { font-size: 14px; font-weight: 600; color: var(--brand); font-variant-numeric: tabular-nums; }
.fin-tip .spx { color: #6d6569; font-size: 13px; }
.fin-tip em { font-style: normal; font-size: 11px; color: #1f7a4d; }
.fin-note { margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.portfolio-frame--page { max-width: none; }

/* Sector holdings (expanded tiles) */
.sectors-sub { margin: -6px 0 18px; text-align: center; color: var(--muted); font-size: 13px; }
.sg-holdings { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; align-content: start; flex: 1 1 0; min-height: 0; width: 100%; overflow-y: auto; scrollbar-width: thin; }
.sg-holdings[data-count="1"] { grid-template-columns: 1fr; }
.sg-ticker { min-height: 30px; padding: 4px; border: 1px solid rgba(var(--brand-rgb),.09); border-radius: 8px; background: rgba(255,255,255,.94); color: var(--brand); font-size: 12px; font-weight: 600; letter-spacing: .025em; transition: background .16s; }
.sg-ticker:hover { background: var(--tint-2); }
.sg-ticker:focus-visible, .sg-detail-back:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.sg-detail { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 100%; text-align: center; }
.sg-detail[hidden], .sg-holdings[hidden] { display: none; }
.sg-company { color: var(--brand); font-family: var(--serif); font-size: 16px; line-height: 1.3; }
.sg-weight { color: var(--brand); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sg-weight span { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 400; }
.sg-detail-back { padding: 4px 10px; border-radius: 8px; color: var(--muted); font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.sg-foot { flex-shrink: 0; width: 100%; margin-top: 6px; color: var(--muted); font-size: 10px; text-align: left; }
.sg-preview { align-items: stretch; justify-content: flex-start; }

/* Portfolio page */
.stat-row { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (min-width: 768px) { .stat-row { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.stat { padding: 16px 18px; }
.stat-label { display: block; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.stat-value { display: block; margin-top: 4px; color: var(--brand); font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.alloc { list-style: none; padding: 0; display: grid; gap: 10px; }
.alloc-row { display: grid; grid-template-columns: minmax(0, 220px) 1fr 56px; align-items: center; gap: 12px; font-size: 14px; }
.alloc-name { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alloc-bar { height: 10px; border-radius: 999px; background: #f3eef0; overflow: hidden; }
.alloc-fill { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.alloc-fill--cash { background: var(--gray); }
.alloc-pct { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 639px) { .alloc-row { grid-template-columns: 1fr 52px; } .alloc-bar { grid-column: 1 / -1; grid-row: 2; } }
.table-head { padding: 24px 24px 0; }
.table-head .section-title { margin-bottom: 4px; }
.data-table td { padding: 10px 16px; border-bottom: 1px solid #f3edf0; color: var(--copy); white-space: nowrap; }
.data-table th[scope="row"] { padding: 10px 16px; border-bottom: 1px solid #f3edf0; text-align: left; font-weight: 600; color: var(--brand); white-space: nowrap; }
.data-table td.num, .data-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table td.muted { color: var(--muted); font-size: 13px; }
.data-table td.pos { color: #1f7a4d; } .data-table td.neg { color: #b42318; }
.data-table tbody tr:hover { background: #fcf9fa; }
.data-table .row-cash th, .data-table .row-cash td { color: var(--muted); }
.data-table tfoot th, .data-table tfoot td { padding: 12px 16px; font-weight: 600; color: var(--ink); border-top: 2px solid #eadfe3; }

/* Members page */
.sub-heading { margin: 8px 0 14px; color: var(--ink); font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.members-grid--lead { margin-bottom: 32px; }
@media (min-width: 768px) { .members-grid--lead { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.member-role--lead { color: var(--brand); font-weight: 600; }
.member-note { margin-top: 4px; color: var(--muted); font-size: 12px; }
.group-cards { display: grid; gap: 20px; }
@media (min-width: 900px) { .group-cards { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.gc { padding: 24px; }
.gc-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--tint); color: var(--brand); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.gc-title { margin-top: 10px; color: var(--ink); font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.gc-leader { margin-top: 2px; color: var(--muted); font-size: 14px; }
.gc-leader strong { color: var(--ink); }
.gc-table { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 14px; }
.gc-table th { padding: 8px 10px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 600; text-align: left; }
.gc-table th:last-child, .gc-table td:last-child { text-align: right; }
.gc-table th:first-child { border-radius: 8px 0 0 0; } .gc-table th:last-child { border-radius: 0 8px 0 0; }
.gc-table td { padding: 8px 10px; border-bottom: 1px solid #f1eaed; color: var(--copy); }
.gc-table td:last-child { color: var(--muted); font-size: 13px; }
.gc-table .gc-lead td { font-weight: 600; color: var(--ink); }
.gc-table .gc-lead td:last-child { color: var(--brand); }
.gc-foot { margin-top: 14px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.gc-foot strong { color: var(--ink); }

/* Mission photo */
.team-photo { margin-top: 32px; border-radius: 16px; overflow: hidden; }
.team-photo img { width: 100%; height: auto; object-fit: cover; }
.team-photo--ph { aspect-ratio: 3 / 2; display: grid; place-items: center; background: repeating-linear-gradient(135deg, #f7f2f4 0 14px, #f1e9ec 14px 28px); border: 1px dashed #d6c6cc; text-align: center; padding: 16px; }

/* Org structure */
.role { border-left: 4px solid var(--brand); padding-left: 16px; }
.role--secondary { border-left-color: var(--gray); }
.role-title { margin-bottom: 8px; color: var(--body); font-size: 20px; font-weight: 600; line-height: 28px; }

/* Process */
.process-grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .process-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.process-title { margin-bottom: 8px; color: var(--brand); font-size: 18px; font-weight: 600; line-height: 28px; }

/* Sector groups */
.sectors { padding: 24px; }
.sectors-heading { margin-bottom: 16px; text-align: center; color: var(--brand); font-size: 30px; font-weight: 600; line-height: 32px; letter-spacing: -.025em; }
.sectors-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 14px; align-items: start; }
@media (min-width: 768px) { .sectors-grid { grid-template-columns: repeat(5, minmax(0,1fr)); } }
.sg { position: relative; min-width: 0; height: 196px; border: 1px solid transparent; border-radius: 16px; transition: background .2s, border-color .2s, box-shadow .2s; }
.sg[data-expanded="true"] { border-color: rgba(var(--brand-rgb),.13); background: linear-gradient(145deg, #fdf9fa, #f6ecef); box-shadow: inset 0 1px 0 #fff, 0 8px 22px -18px rgba(var(--brand-rgb),.28); }
.sg-trigger { position: relative; width: 100%; height: 100%; padding: 14px 10px; border-radius: 16px; text-align: center; transition: background .2s; }
.sg[data-expanded="false"] .sg-trigger:hover { background: #fbf7f8; }
.sg-trigger:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.sg-face { display: block; }
.sg-icon { display: flex; justify-content: center; margin-bottom: 14px; color: var(--brand); }
.w-10 { width: 40px; height: 40px; }
.sg-name { display: block; margin-bottom: 8px; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.4; }
.sg-desc { display: block; color: var(--muted); font-size: 12px; line-height: 1.6; }
.sg .ph { font-size: .92em; }
.sg .ph::before, .member .ph::before { content: none; }
.sg-active-title, .sg-back { display: none; }
.sg[data-expanded="true"] .sg-trigger { height: 54px; padding: 8px 25px 8px 10px; border-radius: 16px 16px 0 0; text-align: left; }
.sg[data-expanded="true"] .sg-face { display: none; }
.sg[data-expanded="true"] .sg-active-title { display: block; color: var(--brand); font-size: 13px; font-weight: 600; line-height: 1.35; }
.sg[data-expanded="true"] .sg-back { position: absolute; right: 8px; top: 19px; display: block; width: 14px; height: 14px; color: #8a7a80; }
.sg-preview { position: absolute; inset: 54px 10px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.sg-preview[hidden] { display: none; }
.sg-status { padding: 14px 4px; color: var(--muted); font-size: 12px; line-height: 1.5; text-align: center; }
@media (max-width: 639px) {
  .sectors { padding: 18px 12px; }
  .sectors-heading { font-size: 26px; margin-bottom: 12px; }
  .sectors-grid { column-gap: 8px; }
  .sg-trigger { padding: 14px 8px; }
  .sg-name { font-size: 14px; }
  .sg-desc { font-size: 11px; }
}

/* Constraints */
.constraints { padding-left: 20px; list-style: disc; color: var(--copy); line-height: 1.625; }
.constraints > li + li { margin-top: 12px; }

/* EHS band */
.ehs-band { display: grid; gap: 24px; align-items: center; }
.ehs-band .section-title { margin-bottom: 12px; }
.ehs-band .body-copy { margin-bottom: 12px; }
.ehs-band-logo { width: 220px; height: auto; margin-inline: auto; }
@media (min-width: 768px) { .team-photo--ph { aspect-ratio: 21 / 8; } }
@media (min-width: 768px) { .ehs-band { grid-template-columns: 260px 1fr; gap: 40px; } .ehs-band-logo { width: 260px; } }

.text-link { color: var(--brand); font-weight: 500; text-underline-offset: 4px; }
.text-link:hover { text-decoration: underline; }

/* Closing */
.closing { padding: 36px 0 64px; background: linear-gradient(#faf8f9, #f4ecef); }
.closing-inner { text-align: center; }
.public-title { margin-bottom: 20px; color: var(--brand); font-size: clamp(30px, 3vw, 42px); font-weight: 600; line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
.closing-copy { max-width: 672px; margin: 0 auto 28px; color: var(--copy); line-height: 1.625; }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  border: 1px solid transparent; border-radius: 12px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 500; line-height: 1.4;
  transition: background .18s;
}
.btn-primary:hover { background: var(--brand-dark); }
.btn-primary.is-disabled { cursor: default; opacity: .55; }
.btn-primary.is-disabled:hover { background: var(--brand); }

/* ---------- Inner pages ---------- */
.public-page { min-height: 100%; background: var(--canvas); color: var(--ink); }
.page-header { padding: 32px 0 24px; background: linear-gradient(rgba(var(--brand-rgb),.043), transparent); }
.eyebrow { margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.page-title { color: var(--brand); font-size: clamp(30px, 3vw, 42px); font-weight: 600; line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
.page-subtitle { margin-top: 10px; max-width: 660px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.page-content { padding-top: 8px; padding-bottom: 48px; }
.page-note { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.join-actions .page-note { margin-top: 12px; }
.empty { padding: 40px 24px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.7; }
@media (max-width: 639px) { .page-header { padding: 26px 0 20px; } .empty { padding: 30px 18px; } }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { padding: 14px 16px; text-align: left; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; border-bottom: 1px solid #eee4e8; white-space: nowrap; }
.data-table th.num { text-align: right; }

.members-grid { list-style: none; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (min-width: 768px) { .members-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.member { padding: 20px 16px; text-align: center; }
.member-photo { width: 88px; height: 88px; margin: 0 auto 14px; border-radius: 999px; overflow: hidden; display: grid; place-items: center; background: var(--tint); color: rgba(var(--brand-rgb),.35); }
.member-photo svg { width: 52px; height: 52px; margin-top: 10px; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-name { color: var(--ink); font-size: 17px; font-weight: 600; line-height: 1.35; }
.member-role { margin-top: 8px; color: var(--muted); font-size: 13px; }
.member .ph { font-size: 12px; font-family: var(--sans); }

/* ---------- Footer ---------- */
.footer { padding: 48px 0 24px; color: #fff; background: var(--brand); border-top: 1px solid rgba(255,255,255,.2); }
.footer-container { max-width: 1152px; }
@media (min-width: 640px) { .footer-container { padding-inline: 24px; } }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr .85fr; gap: 48px; }
.footer-brand { display: inline-flex; align-items: center; gap: 13px; color: #fff; font-family: var(--serif); font-size: 24px; line-height: 1.08; letter-spacing: -.025em; border-radius: 4px; }
.footer-brand img { width: 44px; height: 44px; }
.footer-desc { max-width: 290px; margin-top: 18px; color: rgba(255,255,255,.8); font-size: 13px; line-height: 1.7; }
.footer-label { margin-bottom: 12px; color: rgba(255,255,255,.7); font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .09em; line-height: 1.5; text-transform: uppercase; }
.footer-links { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: rgba(255,255,255,.9); font-size: 13px; text-underline-offset: 5px; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-location { padding-top: 10px; font-size: 13px; color: rgba(255,255,255,.8); line-height: 1.8; }
.footer-school { display: inline-block; margin-top: 18px; border-radius: 4px; opacity: .92; transition: opacity .18s; }
.footer-school:hover { opacity: 1; }
.footer-school img { width: 150px; height: auto; }
.footer-legal { margin-top: 32px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.75); font-size: 11px; }
.footer a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
@media (max-width: 767px) {
  .footer { padding-top: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 22px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-links { grid-template-columns: 1fr; }
  .footer-desc { max-width: 360px; }
  .footer-brand { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
