:root {
  --navy: #08243e;
  --ink: #0e3150;
  --emerald: #118568;
  --emerald-dark: #0b6c55;
  --mint: #dff4ed;
  --cloud: #f5f8f8;
  --sand: #f2eee5;
  --line: #dbe4e6;
  --muted: #64748b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.font-display, h1, h2, h3 { font-family: "Manrope", "DM Sans", system-ui, sans-serif; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }

.skip-link {
  position: fixed; left: 1rem; top: -5rem; z-index: 1000;
  border-radius: .75rem; background: #fff; color: var(--navy);
  padding: .75rem 1rem; font-weight: 800; box-shadow: 0 10px 30px rgba(8,36,62,.2);
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

.brand-mark {
  display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 auto;
  border-radius: 999px; background: var(--navy); color: #45d0ad;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.brand-mark svg { width: 30px; height: 30px; }
.brand-mark-small { width: 38px; height: 38px; }
.brand-mark-small svg { width: 25px; height: 25px; }

.nav-link, .mobile-nav-link {
  border-radius: .85rem; color: #334155; font-weight: 700; transition: .2s ease;
}
.nav-link { padding: .7rem .88rem; font-size: .93rem; }
.nav-link:hover, .nav-link.active { background: #eef7f4; color: var(--emerald-dark); }
.mobile-nav-link { width: 100%; padding: .85rem 1rem; text-align: left; }
.mobile-nav-link:hover, .mobile-nav-link.active { background: var(--cloud); color: var(--emerald-dark); }

.btn-primary, .btn-secondary, .btn-ghost, .btn-light {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  border-radius: .9rem; padding: .72rem 1.15rem; font-weight: 800; font-size: .92rem;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--emerald); color: white; box-shadow: 0 10px 22px rgba(17,133,104,.20); }
.btn-primary:hover { background: var(--emerald-dark); transform: translateY(-1px); box-shadow: 0 14px 26px rgba(17,133,104,.25); }
.btn-secondary { border: 1px solid #cbd5e1; background: white; color: var(--navy); }
.btn-secondary:hover { border-color: var(--emerald); color: var(--emerald-dark); transform: translateY(-1px); }
.btn-ghost { border: 1px solid rgba(8,36,62,.18); background: transparent; color: var(--navy); }
.btn-ghost:hover { border-color: var(--emerald); background: white; transform: translateY(-1px); }
.btn-light { background: white; color: var(--navy); }
.btn-light:hover { background: var(--mint); transform: translateY(-1px); }
.btn-large { padding: .9rem 1.35rem; font-size: 1rem; }

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid rgba(17,133,104,.28); outline-offset: 3px;
}

.route-page { animation: page-in .32s ease both; }
@keyframes page-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.hero-grid { position: relative; isolation: isolate; }
.hero-grid::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .45;
  background-image: radial-gradient(circle at 1px 1px, rgba(8,36,62,.08) 1px, transparent 0);
  background-size: 25px 25px; mask-image: linear-gradient(90deg, black, transparent 72%);
}
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; color: var(--emerald); font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 1.8rem; height: 2px; border-radius: 999px; background: currentColor; }
.eyebrow-light { color: #75e2c8; }
.page-title { max-width: 55rem; font-family: "Manrope", sans-serif; font-size: clamp(2.7rem, 6vw, 5rem); font-weight: 800; line-height: 1.03; letter-spacing: -.045em; color: var(--navy); }
.section-heading { font-family: "Manrope", sans-serif; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1.1; letter-spacing: -.035em; color: var(--navy); }
.section-copy { max-width: 46rem; font-size: 1.1rem; line-height: 1.8; color: #526174; }
.text-link { color: var(--emerald-dark); font-weight: 800; transition: color .18s ease; }
.text-link:hover { color: var(--navy); }
.check-dot { display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; flex: 0 0 auto; border-radius: 999px; background: var(--mint); color: var(--emerald-dark); font-size: .75rem; }
.check-dot-dark { background: rgba(117,226,200,.14); color: #75e2c8; }

.image-placeholder {
  display: grid; place-items: center; min-height: 240px; border: 2px dashed #9eb2b6;
  background: linear-gradient(145deg, rgba(255,255,255,.86), rgba(223,244,237,.55));
  color: #547079; text-align: center; overflow: hidden;
}
.image-placeholder::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, transparent 49.6%, rgba(84,112,121,.08) 50%, transparent 50.4%),
              linear-gradient(45deg, transparent 49.6%, rgba(84,112,121,.08) 50%, transparent 50.4%);
}
.image-placeholder > div, .image-placeholder > span { position: relative; z-index: 1; }
.hero-image-placeholder { position: relative; }
.image-placeholder-dark { position: relative; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.06); color: rgba(255,255,255,.75); }
.image-placeholder-dark::after { background: linear-gradient(135deg, transparent 49.6%, rgba(255,255,255,.05) 50%, transparent 50.4%), linear-gradient(45deg, transparent 49.6%, rgba(255,255,255,.05) 50%, transparent 50.4%); }
.placeholder-icon { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 999px; border: 1px solid currentColor; font-size: 1.5rem; }
.profile-placeholder { position: relative; min-height: 320px; border-width: 0 0 1px 0; border-radius: 0; background: linear-gradient(145deg, #edf6f3, #f8fafc); }

.impact-card { border-radius: 1.4rem; border: 1px solid #e2e8f0; background: white; padding: 1.65rem; box-shadow: 0 10px 28px rgba(8,36,62,.05); }
.impact-number { font-family: "Manrope", sans-serif; font-size: 2.5rem; font-weight: 800; letter-spacing: -.04em; color: var(--navy); }
.impact-label { margin-top: .35rem; color: #64748b; font-weight: 700; }
.program-card { position: relative; min-height: 315px; overflow: hidden; border: 1px solid #dfe8e8; border-radius: 1.7rem; background: white; padding: 2rem; box-shadow: 0 12px 34px rgba(8,36,62,.06); transition: transform .2s ease, box-shadow .2s ease; }
.program-card:hover { transform: translateY(-4px); box-shadow: 0 20px 46px rgba(8,36,62,.11); }
.program-card h3 { margin-top: 4.2rem; font-size: 1.45rem; font-weight: 800; color: var(--navy); }
.program-card p { margin-top: .9rem; line-height: 1.75; color: #64748b; }
.program-icon { position: absolute; right: 1.7rem; top: 1.2rem; font-family: "Manrope", sans-serif; font-size: 4.5rem; font-weight: 800; color: rgba(17,133,104,.1); }
.dark-stat { display: flex; flex-direction: column; gap: .2rem; border-left: 2px solid #45d0ad; padding-left: 1rem; }
.dark-stat strong { font-family: "Manrope", sans-serif; font-size: 2rem; }
.dark-stat span { color: #cbd5e1; font-size: .85rem; line-height: 1.5; }

.statement-card { border-radius: 2rem; padding: 2.25rem; color: white; min-height: 340px; box-shadow: 0 20px 52px rgba(8,36,62,.12); }
.statement-card-navy { background: var(--navy); }
.statement-card-green { background: var(--emerald-dark); }
.statement-card h2 { margin-top: 2.6rem; font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 800; line-height: 1.2; }
.statement-card p:last-child { margin-top: 1.2rem; color: rgba(255,255,255,.78); line-height: 1.75; }
.value-card { border-radius: 1.4rem; border: 1px solid #dbe6e6; background: white; padding: 1.7rem; }
.value-card > span { font-size: .76rem; font-weight: 800; letter-spacing: .15em; color: var(--emerald); }
.value-card h3 { margin-top: 1.7rem; font-size: 1.25rem; font-weight: 800; color: var(--navy); }
.value-card p { margin-top: .8rem; color: #64748b; line-height: 1.7; }
.team-card { overflow: hidden; border: 1px solid #dbe4e6; border-radius: 1.7rem; background: white; box-shadow: 0 12px 34px rgba(8,36,62,.06); }
.timeline { position: relative; display: grid; gap: 1rem; }
.timeline::before { content: ""; position: absolute; left: 1.35rem; top: 1.4rem; bottom: 1.4rem; width: 1px; background: #cbd5e1; }
.timeline article { position: relative; display: grid; grid-template-columns: 2.8rem 1fr; column-gap: 1.2rem; padding: 1rem 0; }
.timeline article > span { z-index: 1; display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 999px; background: var(--navy); color: white; font-size: .75rem; font-weight: 800; }
.timeline h3, .timeline p { grid-column: 2; }
.timeline h3 { margin-top: -.05rem; color: var(--navy); font-size: 1.2rem; font-weight: 800; }
.timeline p { margin-top: .5rem; color: #64748b; line-height: 1.65; }

.resource-filter { border: 1px solid #cbd5e1; border-radius: 999px; background: white; padding: .65rem 1rem; color: #475569; font-size: .85rem; font-weight: 800; transition: .2s ease; }
.resource-filter:hover, .resource-filter.active { border-color: var(--emerald); background: var(--mint); color: var(--emerald-dark); }
.resource-card { display: flex; flex-direction: column; min-height: 330px; border: 1px solid #dbe4e6; border-radius: 1.5rem; background: white; padding: 1.75rem; box-shadow: 0 12px 32px rgba(8,36,62,.055); transition: transform .2s ease, box-shadow .2s ease; }
.resource-card:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(8,36,62,.10); }
.resource-card[hidden] { display: none; }
.resource-symbol { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: .9rem; background: var(--navy); color: #75e2c8; font-family: "Manrope", sans-serif; font-weight: 800; }
.resource-meta { margin-top: 1.2rem; color: var(--emerald); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.resource-card h2 { margin-top: .65rem; font-size: 1.35rem; font-weight: 800; color: var(--navy); }
.resource-card p { margin-top: .8rem; flex: 1; color: #64748b; line-height: 1.7; }
.resource-action { display: inline-flex; align-items: center; justify-content: space-between; gap: .7rem; margin-top: 1.5rem; border-top: 1px solid #e2e8f0; padding-top: 1.2rem; color: var(--emerald-dark); font-weight: 800; text-align: left; }
.resource-action:hover { color: var(--navy); }

.substack-card { border: 1px solid #dbe4e6; border-radius: 2rem; background: white; padding: 1.6rem; box-shadow: 0 20px 54px rgba(8,36,62,.1); }
.substack-embed-wrap { overflow: hidden; border-radius: 1.2rem; background: white; min-height: 285px; }
.substack-embed-wrap iframe { display: block; width: 100%; max-width: 100%; border: 0; background: white; }
.article-card { display: flex; flex-direction: column; overflow: hidden; min-height: 480px; border: 1px solid #dbe4e6; border-radius: 1.5rem; background: white; box-shadow: 0 12px 34px rgba(8,36,62,.06); transition: transform .2s ease, box-shadow .2s ease; }
.article-card:hover { transform: translateY(-4px); box-shadow: 0 20px 46px rgba(8,36,62,.12); }
.article-thumbnail { position: relative; display: grid; place-items: center; height: 210px; border-bottom: 1px solid #dbe4e6; background: linear-gradient(145deg, #e9f6f2, #f7faf9); color: #6a8588; }
.article-thumbnail::before, .article-thumbnail::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 49.7%, rgba(8,36,62,.05) 50%, transparent 50.3%); }
.article-thumbnail::after { transform: scaleX(-1); }
.article-thumbnail span { position: relative; z-index: 1; border: 1px dashed #8ca6aa; border-radius: 999px; padding: .45rem .75rem; font-size: .73rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.article-body { display: flex; flex: 1; flex-direction: column; padding: 1.5rem; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; color: #64748b; font-size: .73rem; font-weight: 700; }
.article-tag { border-radius: 999px; background: var(--mint); padding: .25rem .55rem; color: var(--emerald-dark); text-transform: uppercase; letter-spacing: .08em; }
.article-card h3 { margin-top: 1rem; color: var(--navy); font-size: 1.3rem; font-weight: 800; line-height: 1.3; }
.article-card p { margin-top: .8rem; flex: 1; color: #64748b; line-height: 1.65; }
.article-action { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.3rem; color: var(--emerald-dark); font-weight: 800; }
.article-action:hover { color: var(--navy); }

.auth-tabs, .portal-tabs { display: inline-flex; border: 1px solid #dbe4e6; border-radius: 1rem; background: var(--cloud); padding: .3rem; }
.auth-tabs button, .portal-tabs button { border-radius: .72rem; padding: .72rem 1rem; color: #64748b; font-size: .88rem; font-weight: 800; transition: .18s ease; }
.auth-tabs button.active, .portal-tabs button.active { background: white; color: var(--navy); box-shadow: 0 5px 16px rgba(8,36,62,.08); }
.form-label { display: block; margin-bottom: .45rem; color: var(--navy); font-size: .84rem; font-weight: 800; }
.form-input { width: 100%; border: 1px solid #cbd5e1; border-radius: .85rem; background: white; padding: .85rem .95rem; color: #0f172a; transition: .18s ease; }
.form-input:focus { border-color: var(--emerald); box-shadow: 0 0 0 4px rgba(17,133,104,.09); outline: none; }

.dashboard-panel { border: 1px solid #dce5e7; border-radius: 1.35rem; background: white; padding: 1.4rem; box-shadow: 0 10px 26px rgba(8,36,62,.045); }
.dashboard-kicker { color: var(--emerald); font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.dashboard-heading { margin-top: .35rem; color: var(--navy); font-size: 1.45rem; font-weight: 800; line-height: 1.25; }
.budget-field { display: block; color: #475569; font-size: .78rem; font-weight: 800; }
.budget-field input { display: block; width: 100%; margin-top: .45rem; border: 1px solid #cbd5e1; border-radius: .8rem; padding: .75rem .85rem; font-size: 1rem; color: #0f172a; }
.budget-field input:focus { border-color: var(--emerald); box-shadow: 0 0 0 4px rgba(17,133,104,.08); outline: 0; }
.budget-result { border-radius: 1rem; background: var(--cloud); padding: 1rem; }
.budget-result span { display: block; color: #64748b; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.budget-result strong { display: block; margin-top: .35rem; color: var(--navy); font-family: "Manrope", sans-serif; font-size: 1.35rem; }
.milestone-item { display: flex; align-items: flex-start; gap: .85rem; border: 1px solid #e2e8f0; border-radius: 1rem; padding: .9rem; transition: .18s ease; }
.milestone-item:hover { border-color: #9bd6c5; }
.milestone-item input { margin-top: .15rem; width: 1.05rem; height: 1.05rem; accent-color: var(--emerald); }
.milestone-item strong { display: block; color: var(--navy); font-size: .9rem; }
.milestone-item p { margin-top: .2rem; color: #64748b; font-size: .76rem; line-height: 1.45; }
.milestone-item.completed { border-color: #a7dfd0; background: #f2fbf8; }
.toolkit-card { display: flex; flex-direction: column; gap: .25rem; border: 1px solid #dbe4e6; border-radius: 1rem; padding: 1rem; transition: .18s ease; }
.toolkit-card:hover { border-color: var(--emerald); transform: translateY(-2px); }
.toolkit-card > span { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; margin-bottom: .55rem; border-radius: .7rem; background: var(--navy); color: #75e2c8; font-weight: 800; }
.toolkit-card strong { color: var(--navy); }
.toolkit-card small { color: #64748b; }

.research-shell { display: flex; align-items: flex-start; gap: 1.25rem; }
.research-sidebar { position: sticky; top: 7rem; display: grid; width: 220px; flex: 0 0 auto; overflow: hidden; border: 1px solid #dbe4e6; border-radius: 1.25rem; background: white; padding: .45rem; box-shadow: 0 10px 26px rgba(8,36,62,.04); }
.research-sidebar button { display: flex; align-items: center; gap: .8rem; border-radius: .85rem; padding: .8rem; color: #64748b; font-size: .82rem; font-weight: 800; text-align: left; transition: .18s ease; }
.research-sidebar button span { color: #94a3b8; font-size: .68rem; }
.research-sidebar button:hover, .research-sidebar button.active { background: var(--mint); color: var(--emerald-dark); }
.research-sidebar button.active span { color: var(--emerald); }
.data-badge { border: 1px solid #cddbdc; border-radius: 999px; background: var(--cloud); padding: .4rem .7rem; color: #526174; font-size: .7rem; font-weight: 800; }
.research-kpi { border-radius: 1rem; background: var(--cloud); padding: 1.1rem; }
.research-kpi span { color: #64748b; font-size: .67rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.research-kpi strong { display: block; margin-top: .35rem; color: var(--navy); font-family: "Manrope", sans-serif; font-size: 1.8rem; }
.research-kpi small { display: block; margin-top: .3rem; color: #64748b; font-size: .72rem; line-height: 1.45; }
.chart-title { color: var(--navy); font-family: "Manrope", sans-serif; font-size: 1rem; font-weight: 800; }
.chart-subtitle { margin-top: .25rem; color: #64748b; font-size: .75rem; line-height: 1.5; }
.chart-box { position: relative; height: 310px; margin-top: 1rem; }
.insight-card { border: 1px solid #dbe4e6; border-left: 4px solid var(--emerald); border-radius: 1rem; padding: 1rem; }
.insight-card[data-tone="danger"] { border-left-color: #db5c5c; }
.insight-card[data-tone="warn"] { border-left-color: #d5a63c; }
.insight-card[data-tone="success"] { border-left-color: var(--emerald); }
.insight-card span { color: #64748b; font-size: .67rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.insight-card strong { display: block; margin-top: .35rem; color: var(--navy); font-family: "Manrope", sans-serif; font-size: 1.35rem; }
.insight-card p { margin-top: .45rem; color: #64748b; font-size: .76rem; line-height: 1.55; }
.cluster-card { border-radius: 1rem; background: var(--cloud); padding: 1rem; }
.cluster-card span { color: var(--emerald); font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cluster-card h4 { margin-top: .4rem; color: var(--navy); font-size: .9rem; font-weight: 800; }
.cluster-card p { margin-top: .55rem; color: #64748b; font-size: .72rem; line-height: 1.55; }
.guardrail-card { border-radius: 1rem; background: var(--cloud); padding: 1rem; }
.guardrail-card strong { color: var(--navy); font-size: .9rem; }
.guardrail-card p { margin-top: .5rem; color: #64748b; font-size: .78rem; line-height: 1.6; }
.filter-label { color: #475569; font-size: .72rem; font-weight: 800; }
.filter-label input, .filter-label select { display: block; width: 100%; margin-top: .42rem; border: 1px solid #cbd5e1; border-radius: .75rem; background: white; padding: .72rem .8rem; color: #0f172a; font-size: .82rem; }
.filter-label input:focus, .filter-label select:focus { border-color: var(--emerald); box-shadow: 0 0 0 4px rgba(17,133,104,.08); outline: 0; }
.district-table { width: 100%; min-width: 900px; border-collapse: collapse; }
.district-table th { position: sticky; top: 0; z-index: 1; background: var(--cloud); padding: .9rem 1rem; color: #64748b; font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-align: left; text-transform: uppercase; white-space: nowrap; cursor: pointer; }
.district-table th:hover { color: var(--emerald-dark); }
.district-table td { border-top: 1px solid #edf1f2; padding: .85rem 1rem; color: #334155; font-size: .78rem; white-space: nowrap; }
.district-table tbody tr { transition: background .15s ease; cursor: pointer; }
.district-table tbody tr:hover { background: #f3faf8; }
.district-name-cell { color: var(--navy) !important; font-weight: 800; }
.type-pill, .band-pill { display: inline-flex; border-radius: 999px; padding: .3rem .55rem; font-size: .65rem; font-weight: 800; }
.type-pill { background: #eef2f7; color: #526174; }
.band-high { background: #e2f6ed; color: #0b6c55; }
.band-above { background: #e7f0fb; color: #24558a; }
.band-below { background: #fbf4df; color: #886a1c; }
.band-low { background: #fbe8e8; color: #a33c3c; }
.band-unknown { background: #eef2f7; color: #64748b; }
.pagination-button { border: 1px solid #cbd5e1; border-radius: .7rem; background: white; padding: .55rem .75rem; color: var(--navy); font-size: .75rem; font-weight: 800; }
.pagination-button:hover:not(:disabled) { border-color: var(--emerald); color: var(--emerald-dark); }
.method-source { border: 1px solid #dbe4e6; border-radius: 1rem; padding: 1rem; }
.method-source strong { display: block; color: var(--navy); }
.method-source a { display: block; margin-top: .35rem; overflow-wrap: anywhere; color: var(--emerald-dark); font-size: .75rem; line-height: 1.5; }
.method-list { display: grid; gap: .8rem; }
.method-list li { position: relative; padding-left: 1.25rem; color: #526174; font-size: .82rem; line-height: 1.65; }
.method-list li::before { content: ""; position: absolute; left: 0; top: .65rem; width: .45rem; height: .45rem; border-radius: 999px; background: var(--emerald); }

.footer-heading { color: var(--navy); font-family: "Manrope", sans-serif; font-size: .9rem; font-weight: 800; }
.footer-links { display: grid; gap: .6rem; margin-top: 1rem; }
.footer-links button { width: max-content; color: #64748b; font-size: .88rem; text-align: left; }
.footer-links button:hover { color: var(--emerald-dark); }

.modal-shell, .drawer-shell { position: fixed; inset: 0; z-index: 100; }
.modal-backdrop, .drawer-backdrop { position: absolute; inset: 0; background: rgba(3,18,31,.68); backdrop-filter: blur(5px); }
.modal-card { position: relative; z-index: 1; width: min(92vw, 500px); margin: min(10vh, 6rem) auto; border-radius: 1.5rem; background: white; padding: 2rem; box-shadow: 0 30px 80px rgba(0,0,0,.28); animation: modal-in .22s ease both; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; right: 1rem; top: 1rem; display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 999px; background: #eef2f7; color: var(--navy); font-size: 1.35rem; line-height: 1; }
.modal-close:hover { background: var(--mint); }
.donation-amount { border: 1px solid #cbd5e1; border-radius: .8rem; padding: .75rem; color: var(--navy); font-weight: 800; }
.donation-amount:hover, .donation-amount.active { border-color: var(--emerald); background: var(--mint); color: var(--emerald-dark); }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; z-index: 1; width: min(92vw, 510px); overflow-y: auto; background: white; padding: 2rem; box-shadow: -24px 0 70px rgba(0,0,0,.22); animation: drawer-in .22s ease both; }
@keyframes drawer-in { from { transform: translateX(30px); opacity: .7; } to { transform: none; opacity: 1; } }
.drawer-stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-top: 1.5rem; }
.drawer-stat { border-radius: 1rem; background: var(--cloud); padding: 1rem; }
.drawer-stat span { display: block; color: #64748b; font-size: .67rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.drawer-stat strong { display: block; margin-top: .35rem; color: var(--navy); font-family: "Manrope", sans-serif; font-size: 1.2rem; }
.toast-region { position: fixed; right: 1rem; bottom: 1rem; z-index: 120; display: grid; width: min(92vw, 390px); gap: .65rem; }
.toast { border: 1px solid #dbe4e6; border-left: 4px solid var(--emerald); border-radius: 1rem; background: white; padding: .9rem 1rem; color: var(--navy); font-size: .82rem; font-weight: 700; box-shadow: 0 16px 46px rgba(8,36,62,.18); animation: toast-in .25s ease both; }
.toast.error { border-left-color: #d95b5b; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 1023px) {
  .research-shell { display: block; }
  .research-sidebar { position: static; display: flex; width: 100%; overflow-x: auto; margin-bottom: 1rem; }
  .research-sidebar button { flex: 0 0 auto; }
}
@media (max-width: 640px) {
  .page-title { font-size: 2.75rem; }
  .statement-card { padding: 1.6rem; min-height: 300px; }
  .modal-card { padding: 1.5rem; margin-top: 4rem; }
  .chart-box { height: 280px; }
  .drawer-panel { padding: 1.4rem; }
  .drawer-stat-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Version 2 brand, partner, profile, and donation components */
.brand-logo-shell {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 1rem;
  background: #142a3b;
  box-shadow: 0 8px 22px rgba(8,36,62,.16), inset 0 0 0 1px rgba(255,255,255,.08);
}
.brand-logo-shell-small { width: 44px; height: 44px; border-radius: .8rem; }
.brand-logo-image { width: 100%; height: 100%; object-fit: cover; display: block; }

.ai-assist-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  border: 1px solid rgba(17,133,104,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  padding: .48rem .8rem;
  color: var(--emerald-dark);
  font-size: .76rem;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(8,36,62,.06);
}
.ai-assist-dot { width: .55rem; height: .55rem; border-radius: 999px; background: var(--emerald); box-shadow: 0 0 0 4px rgba(17,133,104,.11); }

.profile-photo {
  display: block;
  width: 100%;
  height: 390px;
  object-fit: cover;
  object-position: center 28%;
  border-bottom: 1px solid #dbe4e6;
  background: var(--cloud);
}

.partner-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-height: 128px;
  border: 1px solid #dbe4e6;
  border-radius: 1.25rem;
  background: white;
  padding: 1.25rem;
  box-shadow: 0 10px 28px rgba(8,36,62,.045);
}
.partner-card > span {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  flex: 0 0 auto;
  border-radius: .75rem;
  background: var(--mint);
  color: var(--emerald-dark);
  font-size: .72rem;
  font-weight: 800;
}
.partner-card h3 { color: var(--navy); font-size: 1rem; font-weight: 800; }
.partner-card p { margin-top: .35rem; color: #64748b; font-size: .78rem; line-height: 1.55; }

.donation-status-card {
  border-radius: 1.75rem;
  background: white;
  padding: 2rem;
  color: #334155;
  box-shadow: 0 24px 70px rgba(0,0,0,.22);
}
.donation-status-card [aria-disabled="true"] { cursor: not-allowed; opacity: .68; box-shadow: none; }
.support-use-card {
  border: 1px solid #dbe4e6;
  border-radius: 1.5rem;
  background: white;
  padding: 1.7rem;
  box-shadow: 0 12px 32px rgba(8,36,62,.055);
}
.support-use-card > span { color: var(--emerald); font-size: .72rem; font-weight: 800; letter-spacing: .14em; }
.support-use-card h2 { margin-top: 1.25rem; color: var(--navy); font-size: 1.25rem; font-weight: 800; }
.support-use-card p { margin-top: .75rem; color: #64748b; line-height: 1.7; }
.transparency-list { display: grid; gap: .1rem; }
.transparency-list > div {
  display: grid;
  grid-template-columns: minmax(130px,.7fr) minmax(0,1.3fr);
  gap: 1rem;
  border-top: 1px solid #dbe4e6;
  padding: 1rem 0;
}
.transparency-list dt { color: #64748b; font-size: .78rem; font-weight: 800; }
.transparency-list dd { color: var(--navy); font-size: .86rem; font-weight: 700; overflow-wrap: anywhere; }
.footer-links a { width: max-content; color: #64748b; font-size: .88rem; text-align: left; }
.footer-links a:hover { color: var(--emerald-dark); }

@media (max-width: 640px) {
  .brand-logo-shell { width: 46px; height: 46px; border-radius: .8rem; }
  .profile-photo { height: 330px; }
  .transparency-list > div { grid-template-columns: 1fr; gap: .35rem; }
}
