:root {
  --sky: #71cadf;
  --purple: #3f1d5a;
  --gold: #ffc100;
  --ink: #111111;
  --paper: #ffffff;
  --canvas: #f8fafc;
  --line: #d9e3e6;
  --muted: #4b5860;
  --shadow: 0 22px 55px rgba(17, 17, 17, 0.13);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* High Contrast Theme Override */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.skip-link { position: absolute; left: 1rem; top: -3rem; background: var(--gold); color: var(--ink); padding: .75rem 1rem; z-index: 20; }
.skip-link:focus { top: 1rem; }
.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; }

.global-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-inline: clamp(1rem, 4vw, 4rem);
  min-height: 4.65rem;
  background: #ffffff;
}
.account-actions, .actions, .row { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-width: auto;
  padding: 4px 0;
  height: auto;
  max-height: 52px;
  overflow: visible;
}
.brand:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 4px;
  border-radius: 6px;
}
.brand img, .brand .brand-logo {
  height: 44px;
  max-height: 48px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
  transform: none;
}

.header-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex: 1;
}
nav { display: flex; align-items: center; justify-content: center; gap: .25rem; flex-wrap: wrap; }
nav a { min-height: 2.55rem; display: inline-flex; align-items: center; text-decoration: none; padding: .55rem .78rem; border-radius: 8px; font-weight: 760; color: #263139; }
nav a:hover, nav a[aria-current="page"] { background: var(--canvas); color: var(--purple); }
.mobile-header-controls { display: none; }
.mobile-drawer-footer { display: none; }

/* Dedicated Search Plane (Beneath White Header) */
.search-plane {
  position: relative;
  background: #f8fafc;
  border-top: 1px solid var(--line);
  padding: .65rem clamp(1rem, 4vw, 4rem);
}
.search-plane-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: 1400px;
  margin: 0 auto;
}
.search-plane-form {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex: 1;
  max-width: 680px;
}
.search-plane-input-box {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .45rem .85rem;
  flex: 1;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.search-plane-input-box:focus-within {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(63, 29, 90, 0.12);
}
.search-plane-icon {
  color: var(--muted);
  flex-shrink: 0;
}
.search-plane-input-box input {
  border: none;
  outline: none;
  background: transparent;
  font-size: .92rem;
  color: var(--ink);
  width: 100%;
  font-family: inherit;
}
.search-plane-clear-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: .85rem;
  cursor: pointer;
  padding: 0 .25rem;
  min-height: auto;
}
.search-plane-clear-btn:hover {
  color: var(--ink);
}
.search-plane-submit-btn {
  white-space: nowrap;
  flex-shrink: 0;
}
.search-plane-tags {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}
.search-tags-label {
  font-size: .8rem;
  font-weight: 700;
  color: var(--muted);
}
.search-plane-tag {
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: .78rem;
  font-weight: 650;
  padding: .28rem .65rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
  min-height: auto;
}
.search-plane-tag:hover {
  background: var(--purple);
  color: #ffffff;
  border-color: var(--purple);
}
.plane-search-results {
  position: absolute;
  top: 100%;
  left: clamp(1rem, 4vw, 4rem);
  right: clamp(1rem, 4vw, 4rem);
  max-width: 760px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 16px 36px rgba(17, 17, 17, 0.15);
  max-height: 420px;
  overflow-y: auto;
  z-index: 100;
  padding: .75rem;
}
.plane-results-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
body.nav-open { overflow: hidden; }

.button, button {
  border: 1px solid var(--purple);
  border-radius: 8px;
  background: #fff;
  min-height: 2.85rem;
  padding: .78rem 1rem;
  text-decoration: none;
  cursor: pointer;
  font-weight: 820;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.button.small { min-height: 2.45rem; padding: .52rem .8rem; font-size: .9rem; white-space: nowrap; }
.primary, .button.primary { background: var(--purple); color: #fff; border-color: var(--purple); }
.gold, .button.gold { background: var(--gold); color: var(--purple); border-color: var(--gold); }
.cyan, .button.cyan { background: var(--sky); color: var(--purple); border-color: var(--sky); }
.ghost, .button.ghost { background: transparent; color: var(--purple); }
.outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }

/* Home Hero - Unstacked and spacious layout */
.home-hero {
  position: relative;
  min-height: auto;
  display: grid;
  align-items: center;
  gap: 2.5rem;
  padding: clamp(3.5rem, 6vw, 5.5rem) clamp(1rem, 5vw, 5rem) clamp(2.5rem, 5vw, 4rem);
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 22%, rgba(113,202,223,.45), transparent 28rem),
    radial-gradient(circle at 22% 78%, rgba(255,193,0,.2), transparent 24rem),
    linear-gradient(135deg, var(--purple), #241033 78%);
}
.home-hero::after {
  content: "";
  position: absolute;
  right: -5rem;
  bottom: -5rem;
  width: 28rem;
  height: 28rem;
  border: 1.5rem solid rgba(113,202,223,.08);
  border-radius: 50%;
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; max-width: 58rem; }
.hero-logo-lockup {
  width: clamp(14rem, 30vw, 24rem);
  max-width: 100%;
  height: auto;
  aspect-ratio: 1000 / 245;
  object-fit: contain;
  margin: 0 0 1.25rem;
  display: block;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .28));
}
.tagline-pill {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  padding: .45rem .75rem;
  color: var(--gold);
  text-transform: uppercase;
  font-size: .76rem;
  font-weight: 880;
  letter-spacing: 0;
}
.home-hero h1, .page-hero h1, .member-access h1, .contact-directory h1, .donate-hero h1 {
  margin: .8rem 0 1.2rem;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
  max-width: 22ch;
  word-wrap: break-word;
}
.home-hero p:not(.tagline-pill) {
  max-width: 48rem;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

/* Stats strip - Flows cleanly without overlapping hero or pillars */
.stats-strip {
  position: relative;
  z-index: 2;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(17, 17, 17, 0.18);
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.stats-strip span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .25rem;
  min-height: 5.5rem;
  padding: 1.25rem 1.5rem;
  background: #ffffff;
  color: var(--purple);
  font-weight: 750;
}
.stats-strip b { font-size: 2.1rem; color: var(--ink); line-height: 1; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  padding: clamp(3rem, 5vw, 4.5rem) clamp(1rem, 4vw, 4rem);
  background: #fff;
}
.pillars article, .program-card, .people-grid article, .board-table article, .vault a, .inspiration-grid span, .plan, .table-list article, .support-results aside, .support-links a, .giving-table article, .impact-visualizer aside, .contact-directory article, .contact-form, .editor-panel, .capability-grid article, .course-row, .tracks-grid article, .remote-ecosystem, .dimension-template article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17,17,17,.05);
}
.pillars article { padding: 1.5rem; min-height: 11rem; }
.pillars h2 { margin: 0; color: var(--purple); font-size: clamp(1.8rem, 2.8vw, 2.6rem); line-height: 1.18; }
.pillars p { margin: .55rem 0; color: var(--ink); font-weight: 800; font-size: 1.12rem; }
.pillars span { color: var(--muted); line-height: 1.55; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 4vw, 4rem) 1.25rem;
  background: var(--canvas);
}
.section-head.flush { padding-inline: 0; background: transparent; }
.section-head.compact-head { background: transparent; padding: 1rem 0 0; }
.section-head h2, .resource-locator h2, .timeline h2, .people-grid h2, .vault h2, .inspiration-grid h2, .board-table h2, .impact-visualizer h2, .testimonial-band h2, .community-cta h2, .reflexive-card h2, .remote-ecosystem h2 {
  margin: 0;
  color: var(--purple);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
}
.section-head p {
  margin: .55rem 0 0;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.35;
  font-weight: 700;
  color: var(--muted);
}
.filter-pills, .membership-switcher { display: flex; flex-wrap: wrap; gap: .55rem; }
.filter-pills button, .membership-switcher button { min-height: 2.7rem; border-color: var(--line); color: var(--purple); background: #fff; }
.filter-pills button.active, .membership-switcher button.active { background: var(--purple); color: #fff; border-color: var(--purple); }

.program-matrix, .program-toolbar, .text-grid, .mission-vision, .timeline, .people-grid, .board-table, .vault, .inspiration-grid, .pricing-grid, .resource-locator, .support-results, .table-list, .donate-hero, .giving-table, .impact-visualizer, .contact-page, .opportunity-list, .live-status, .member-access, .wellness-preview, .wellness-hub, .tracks-grid, .dimension-template {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 4vw, 4rem);
}
.program-matrix { grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--canvas); }
.program-matrix.full { grid-template-columns: repeat(3, minmax(0, 1fr)); background: #fff; }
.program-card { overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.program-card[hidden] { display: none; }
.program-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.program-card > div { padding: 1rem; display: grid; gap: .55rem; }
.program-card h3 { margin: 0; color: var(--purple); font-size: 1.45rem; line-height: 1.06; }
.program-card p { margin: 0; color: var(--muted); line-height: 1.45; }
.program-card .card-tagline { color: var(--ink); font-weight: 850; }
.program-card a { color: var(--purple); font-weight: 880; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.status, .readiness {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: .27rem .6rem;
  font-size: .76rem;
  font-weight: 880;
  background: rgba(113,202,223,.24);
  color: #185f70;
}
.status.active, .status.published { background: rgba(113,202,223,.25); color: #185f70; }
.status.on-hold, .status.draft, .readiness.phase-1 { background: rgba(255,193,0,.23); color: #6a5000; }
.status.being-redesigned, .status.final-contract-negotiation, .readiness.foundation { background: #f2eafa; color: var(--purple); }
.status.archived, .readiness.disabled, .readiness.future { background: rgba(17,17,17,.1); color: #303035; }
.readiness.planned { background: var(--canvas); color: var(--purple); }

.wellness-preview, .wellness-hub {
  grid-template-columns: minmax(22rem, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 2rem;
  background: #fff;
}
.wellness-hub { background: var(--canvas); }
.wellness-wheel {
  position: relative;
  width: min(100%, 32rem);
  aspect-ratio: 1;
  margin: auto;
}
.wellness-wheel.large { width: min(100%, 36rem); }

.wellness-circle-track {
  position: relative;
  width: 100%;
  height: 100%;
  border: 2px dashed rgba(255, 193, 0, 0.45);
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 30%, rgba(113, 202, 223, 0.12) 31% 72%, transparent 73%);
}

.wellness-area-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: rotate(calc(var(--i) * 45deg)) translate(11.2rem) rotate(calc(var(--i) * -45deg)) translate(-50%, -50%);
  background: transparent;
  border: none;
  box-shadow: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 4;
}

.wellness-wheel.large .wellness-area-btn {
  transform: rotate(calc(var(--i) * 45deg)) translate(12.8rem) rotate(calc(var(--i) * -45deg)) translate(-50%, -50%);
}

.wellness-word {
  font-size: 0.95rem;
  font-weight: 750;
  color: var(--purple);
  line-height: 1.15;
  white-space: nowrap;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.wellness-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b88200;
  transition: transform 0.2s ease, color 0.2s ease;
}

.wellness-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.wellness-area-btn:hover,
.wellness-area-btn:focus-visible {
  background: rgba(113, 202, 223, 0.16);
}

.wellness-area-btn:hover .wellness-word,
.wellness-area-btn:focus-visible .wellness-word {
  color: #1b0a2a;
}

.wellness-area-btn:hover .wellness-icon,
.wellness-area-btn:focus-visible .wellness-icon {
  color: var(--purple);
  transform: translateY(2px) scale(1.15);
}

.wellness-area-btn.active {
  background: rgba(255, 193, 0, 0.22);
}

.wellness-area-btn.active .wellness-word {
  color: var(--purple);
  font-weight: 850;
}

.wellness-area-btn.active .wellness-icon {
  color: var(--purple);
  transform: translateY(2px) scale(1.15);
}

.wellness-hub-center {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 8.5rem;
  pointer-events: none;
  gap: 0.2rem;
}

.hub-count {
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
  color: var(--gold);
}

.wellness-hub-center strong {
  color: var(--purple);
  text-transform: uppercase;
  font-size: 0.88rem;
  line-height: 1.25;
  letter-spacing: 0.05em;
  font-weight: 850;
}
#wellnessPanel {
  border-left: 8px solid var(--gold);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--purple);
  color: #fff;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#wellnessPanel span { color: var(--gold); font-weight: 880; text-transform: uppercase; font-size: .82rem; letter-spacing: 0.05em; }
#wellnessPanel h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1.15; margin: .6rem 0 .8rem; }
#wellnessPanel p { line-height: 1.6; font-size: 1.05rem; }

.testimonial-band { padding: clamp(2.5rem, 5vw, 5rem) clamp(1rem, 4vw, 4rem); background: var(--ink); color: #fff; }
.testimonial-band h2 { color: var(--gold); margin-bottom: 1.5rem; }
.testimonial-band > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.testimonial-band.compact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
blockquote { margin: 0; border-left: 5px solid var(--sky); padding: 1.25rem; background: rgba(255,255,255,.08); border-radius: 8px; }
blockquote p { margin: 0 0 .8rem; line-height: 1.6; }
cite { color: var(--sky); font-weight: 850; font-style: normal; }
.community-cta { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: clamp(2.5rem, 5vw, 5rem) clamp(1rem, 4vw, 4rem); background: var(--sky); color: var(--purple); }
.community-cta h2 { max-width: 18ch; }

.page-hero {
  padding: clamp(3rem, 6vw, 5.5rem) clamp(1rem, 5vw, 5rem);
  background: linear-gradient(135deg, #fff, var(--canvas) 56%, rgba(113,202,223,.22));
}
.page-hero.compact {
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 5vw, 5rem);
}
.page-hero p:first-of-type {
  max-width: 49rem;
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  font-weight: 750;
  color: var(--purple);
  line-height: 1.35;
}
.page-hero p:not(:first-of-type) { max-width: 52rem; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.about-hero, .wellness-hero { background: linear-gradient(135deg, var(--purple), #221031); color: #fff; }
.about-hero p:first-of-type, .wellness-hero p:first-of-type { color: var(--sky); }
.mission-vision { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.mission-vision article { padding: 1.6rem; border-radius: 8px; color: #fff; background: var(--purple); }
.mission-vision article:nth-child(2) { background: var(--sky); color: var(--purple); }
.mission-vision h2 { font-size: clamp(2rem, 3.5vw, 3.2rem); line-height: 1.15; margin: 0 0 .8rem; }
.timeline { max-width: 76rem; }
.timeline article { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; border-left: 5px solid var(--gold); padding: 1rem 0 1rem 1rem; }
.timeline span { color: var(--purple); font-weight: 880; text-transform: uppercase; font-size: .8rem; }
.timeline h3 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.5rem); color: var(--purple); }
.timeline p { margin: .45rem 0 0; line-height: 1.6; color: var(--muted); }
.people-grid, .vault, .inspiration-grid, .giving-table, .tracks-grid, .dimension-template { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.people-grid .section-head, .timeline .section-head { grid-column: 1 / -1; }
.people-grid article, .vault a, .inspiration-grid, .board-table, .giving-table article, .tracks-grid article, .dimension-template article { padding: 1rem; }
.avatar { width: 4rem; height: 4rem; display: grid; place-items: center; background: var(--purple); color: var(--gold); border-radius: 50%; font-size: 2rem; font-weight: 900; }
.board-table, .vault, .inspiration-grid { background: var(--canvas); }
.board-table { grid-template-columns: 1fr 1fr; }
.board-table h2, .vault h2, .inspiration-grid h2 { grid-column: 1 / -1; }
.board-table article, .vault a { display: grid; gap: .3rem; text-decoration: none; }
.inspiration-grid p { grid-column: 1 / -1; margin: 0; color: var(--muted); }
.inspiration-grid span { padding: 1rem; font-weight: 850; color: var(--purple); }

.program-toolbar { grid-template-columns: 1fr 18rem; padding-bottom: 0; }
.toolbar { display: flex; gap: 1rem; padding: 1rem clamp(1rem, 4vw, 4rem) 0; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 2.85rem;
  padding: .78rem;
  background: #fff;
}
label { display: grid; gap: .35rem; font-weight: 760; }
fieldset { border: 1px solid var(--line); border-radius: 8px; display: flex; flex-wrap: wrap; gap: .7rem; padding: .8rem; }
fieldset label { display: flex; align-items: center; gap: .4rem; }
fieldset input, .checkbox-row input { width: auto; min-height: auto; }
dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
dt { font-size: .75rem; color: #617179; font-weight: 850; text-transform: uppercase; }
dd { margin: .1rem 0 0; }
.detail-panel { margin: 1rem clamp(1rem, 4vw, 4rem) 4rem; padding: 1.3rem; border-radius: 8px; border: 1px solid var(--line); }
.program-detail-hero { display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: 2rem; padding: clamp(2.5rem, 5vw, 5rem); color: #fff; }
.program-detail-hero.purple-detail { background: var(--purple); }
.program-detail-hero.cyan-detail { background: var(--sky); color: var(--purple); }
.program-detail-hero h1 { margin: .4rem 0; font-size: clamp(2.5rem, 5vw, 4.4rem); line-height: 1.15; }
.program-detail-hero p { font-size: clamp(1.2rem, 2.4vw, 1.8rem); font-weight: 750; line-height: 1.35; }
.program-detail-hero img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: 8px; }
.tracks-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.remote-ecosystem { margin: clamp(1rem, 4vw, 4rem); padding: 1.5rem; background: var(--canvas); border-radius: 8px; }
.remote-ecosystem h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.2; }

.wellness-hub { grid-template-columns: minmax(24rem, 1fr) minmax(0, .9fr); }
.reflexive-card { margin: clamp(1rem, 4vw, 4rem); padding: clamp(2rem, 5vw, 4rem); border-radius: 8px; background: var(--ink); color: #fff; border: 1px solid var(--gold); }
.reflexive-card h2 { color: var(--gold); }
.dimension-template { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dimension-template article:last-child { grid-column: 1 / -1; }

/* Accessibility Statement Container and Typography */
.accessibility-content-container {
  max-width: 64rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem);
}
.accessibility-content-container .legal-content-card {
  padding: clamp(1.5rem, 4vw, 3rem);
  line-height: 1.65;
}
.accessibility-content-container h3 {
  color: var(--purple);
  font-size: 1.35rem;
  margin: 1.8rem 0 .6rem;
  line-height: 1.25;
}
.accessibility-content-container .lead-text {
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.styled-list {
  padding-left: 1.4rem;
  margin: .6rem 0 1.2rem;
  display: grid;
  gap: .45rem;
}
.styled-list li {
  line-height: 1.55;
  color: var(--muted);
}
.styled-list strong {
  color: var(--ink);
}

.membership-switcher { padding: clamp(1rem, 4vw, 4rem) clamp(1rem, 4vw, 4rem) 0; }
.pricing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plan { position: relative; overflow: hidden; padding: 1.1rem; min-height: 18rem; display: grid; align-content: space-between; }
.plan::before { content: ""; position: absolute; inset: 0 0 auto; height: .6rem; background: var(--sky); }
.plan.sky::before { background: var(--sky); }
.plan.gold::before { background: var(--gold); }
.plan.purple::before { background: var(--purple); }
.plan.cyan::before { background: var(--sky); }
.plan.charcoal::before { background: var(--ink); }
.plan.gold { background: #fff9df; }
.plan.sky, .plan.cyan { background: #effbfe; }
.plan.purple { background: #fbf7ff; }
.plan.charcoal { background: #f3f4f6; }
.plan h2 { margin: .7rem 0 0; color: var(--purple); }
.plan strong { font-size: 2rem; color: var(--ink); }
.plan p { color: var(--muted); line-height: 1.5; }
.member-access { grid-template-columns: .85fr 1.15fr; align-items: start; background: linear-gradient(135deg, #fff, var(--canvas)); }
.access-form, .account-note, .live-status { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 1rem; box-shadow: 0 8px 22px rgba(17,17,17,.05); }
.access-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.access-form .checkbox-row, .access-form button, .access-form .button, .access-form p { grid-column: 1 / -1; }
.checkbox-row { display: flex; align-items: start; gap: .6rem; }
#memberAccessStatus { color: var(--purple); font-weight: 850; }

.donate-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; background: var(--purple); color: #fff; }
.donate-hero img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: 8px; }
.donate-hero p { font-size: clamp(1.35rem, 2.6vw, 2.1rem); color: var(--sky); font-weight: 850; }
.giving-table { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.giving-table article { padding: 1rem; border-top: .55rem solid var(--gold); }
.giving-table h2 { color: var(--purple); margin: 0; }
.giving-table span { color: var(--muted); }
.impact-visualizer { grid-template-columns: 1fr .9fr; background: var(--canvas); align-items: center; }
.impact-visualizer > div, .impact-visualizer aside { padding: 1rem; }
.impact-visualizer input { accent-color: var(--gold); }

.resource-library { display: grid; gap: 1rem; }
.section-heading h2 { color: var(--purple); margin-bottom: .25rem; }
.section-heading p { color: var(--muted); margin: 0; }
.local-support-service { display: grid; gap: 0; margin-top: clamp(3rem, 7vw, 7rem); padding-top: clamp(1.5rem, 3vw, 3rem); border-top: .7rem solid var(--sky); background: linear-gradient(180deg, var(--canvas), #fff 35%); }
.resource-locator { grid-template-columns: .8fr 1fr; align-items: end; }
.resource-locator form { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 1rem; align-items: end; }
.support-results { grid-template-columns: minmax(0, 1.1fr) minmax(18rem, .9fr); }
.support-results aside { max-height: 36rem; overflow-y: auto; }
.provider-map { display: flex; flex-direction: column; width: 100%; min-height: 33rem; border: 1px solid var(--line); border-radius: 8px; background: #f5fafb; overflow: hidden; box-shadow: 0 8px 22px rgba(17,17,17,.05); position: relative; }
.map-toolbar { display: flex; align-items: center; justify-content: space-between; padding: .65rem .9rem; background: #fff; border-bottom: 1px solid var(--line); font-size: .82rem; gap: .5rem; z-index: 2; }
.map-zoom-label { font-weight: 800; color: var(--purple); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-hint { color: var(--muted); font-size: .78rem; }
.map-reset-btn { appearance: none; background: var(--canvas); color: var(--purple); border: 1px solid var(--line); border-radius: 4px; padding: .25rem .65rem; font-size: .75rem; font-weight: 800; cursor: pointer; white-space: nowrap; transition: all .15s; }
.map-reset-btn:hover { background: var(--purple); color: #fff; border-color: var(--purple); }
.map-empty-state { padding: 3rem 1.5rem; text-align: center; color: var(--muted); }
.provider-map svg { width: 100%; flex: 1; min-height: 28rem; display: block; }
.provider-map [data-map-index] { cursor: pointer; outline: none; }
.provider-map circle { fill: var(--purple); stroke: #fff; stroke-width: 1; transition: .2s; }
.provider-map [data-map-index]:hover circle, .provider-map [data-map-index]:focus circle { fill: var(--gold); stroke: var(--purple); }
.provider-map [data-map-index].active circle { fill: var(--gold); stroke: var(--purple); stroke-width: 1.2; }
.provider-map text { fill: #fff; font-size: 3px; font-weight: 900; pointer-events: none; }
.provider-map [data-map-index].active text { fill: var(--purple); }
.map-pulse { animation: mapPulse 2s infinite ease-in-out; pointer-events: none; }
@keyframes mapPulse { 0% { r: 5; opacity: .7; } 50% { r: 8.5; opacity: .15; } 100% { r: 5; opacity: .7; } }
.map-callout text { font-family: inherit; font-size: 2.2px; font-weight: 800; }
.map-attribution { margin: .4rem .8rem; color: var(--muted); font-size: .75rem; }
.result-head { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.result-head h2 { margin: 0; color: var(--purple); }
.result-head span, .support-links span { color: var(--purple); font-weight: 850; font-size: .86rem; text-transform: uppercase; }
.support-links { display: grid; gap: .75rem; }
.support-links a { display: grid; gap: .2rem; padding: .85rem; text-decoration: none; }
.provider-card { padding: 1rem 1.15rem; border: 1px solid var(--line); border-left: .35rem solid var(--sky); border-radius: 8px; background: #fff; cursor: pointer; transition: all .2s ease; outline: none; position: relative; }
.provider-card:hover { border-color: var(--purple); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(63,29,90,.08); }
.provider-card:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.provider-card.active { border-color: var(--purple); border-left-color: var(--gold); background: #fdfcf9; box-shadow: 0 4px 16px rgba(63,29,90,.16); outline: 2px solid rgba(63,29,90,.25); }
.provider-card-header { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .25rem; }
.provider-pin-badge { display: inline-block; padding: .15rem .45rem; border-radius: 999px; background: rgba(63,29,90,.08); color: var(--purple); font-size: .75rem; font-weight: 850; white-space: nowrap; }
.provider-card.active .provider-pin-badge { background: var(--gold); color: var(--purple); }
.provider-card > strong, .provider-card > span { display: block; }
.provider-actions { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .4rem; }
.provider-actions a { display: inline; padding: 0; color: var(--purple); font-weight: 700; font-size: .85rem; text-decoration: underline; }
.provider-actions a:hover { color: var(--gold); }
.open-status { color: #176b36; }.closed-status { color: #9b2c2c; }
.support-message { line-height: 1.6; }
.table-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.table-list article { padding: 1rem; }
.table-list span { color: var(--purple); font-weight: 850; }

.live-status { margin: clamp(1rem, 4vw, 4rem) clamp(1rem, 4vw, 4rem) 0; }
.live-status h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); line-height: .95; color: var(--purple); }
.opportunity-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opportunity-list article { border: 1px solid var(--line); border-radius: 8px; padding: 1.2rem; }
.opportunity-list article > span { color: var(--purple); font-weight: 850; text-transform: uppercase; font-size: .78rem; }

.contact-page { grid-template-columns: .9fr 1.1fr; align-items: start; background: var(--canvas); }
.contact-directory, .contact-form { padding: 1rem; background: #fff; border-radius: 8px; }
.contact-directory { display: grid; gap: 1rem; }
.contact-directory h1 { color: var(--purple); margin-top: 0; }
.contact-directory h2 { color: var(--purple); margin: 0 0 .4rem; }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.contact-form fieldset, .contact-form label:has(textarea), .contact-form button { grid-column: 1 / -1; }

.admin-layout { display: grid; grid-template-columns: 17rem 1fr; min-height: calc(100vh - 7rem); }
.admin-sidebar { background: var(--ink); color: #fff; padding: 1rem; display: grid; align-content: start; gap: .4rem; }
.admin-sidebar button { color: #fff; border-color: rgba(255,255,255,.2); background: transparent; text-align: left; justify-content: space-between; gap: .75rem; }
.admin-sidebar button span { overflow-wrap: anywhere; }
.admin-sidebar button small { color: var(--gold); font-weight: 850; }
.admin-sidebar button.active, .admin-sidebar button:hover { background: var(--sky); color: var(--ink); }
.admin-main { padding: clamp(1rem, 3vw, 2rem); background: #f7fafb; }
.admin-top { display: flex; gap: 1rem; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.admin-top h2 { margin: 0; color: var(--purple); font-size: clamp(2rem, 4vw, 3.5rem); }
.admin-panel { display: none; margin-bottom: 1rem; }
.admin-panel.active { display: block; }
.cms-workbench { display: grid; grid-template-columns: minmax(18rem, .85fr) minmax(0, 1.15fr); gap: 1rem; align-items: start; }
.cms-list { display: grid; gap: .75rem; }
.admin-list { display: grid; gap: .75rem; }
.admin-list button, .admin-list article {
  width: 100%;
  display: grid;
  gap: .25rem;
  justify-content: stretch;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: .85rem;
}
.admin-list span { color: var(--muted); font-size: .9rem; }
.admin-list p { margin: 0; color: var(--muted); line-height: 1.45; }
.media-uploader { margin-bottom: 1rem; }
.editor-grid { display: grid; grid-template-columns: 1fr .8fr; gap: 1rem; }
.wide { grid-column: 1 / -1; }
.admin-warning { border: 1px solid rgba(255,193,0,.55); border-radius: 8px; background: #fff9df; padding: 1rem; margin-bottom: 1rem; }
.capability-grid, .course-list, .course-actions, .setting-grid { display: grid; gap: .75rem; }
.capability-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 1rem; }
.capability-grid article, .course-row, .editor-panel { padding: 1rem; }
.course-manager { display: grid; gap: 1rem; margin-bottom: 1rem; }
.course-actions { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.course-actions button { min-height: 2.4rem; padding: .55rem .65rem; }
.danger { border-color: #b3261e; color: #b3261e; }
.course-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(22rem, .9fr); gap: 1rem; align-items: start; }
.setting-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.setting-grid span { border: 1px solid var(--line); border-radius: 999px; padding: .55rem .75rem; background: var(--canvas); font-weight: 750; }
.permission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.permission-grid div { border: 1px solid var(--line); border-radius: 8px; padding: .75rem; background: #fff; }
.admin-gate { min-height: 68vh; display: grid; align-content: center; gap: 1rem; padding: clamp(2rem, 6vw, 6rem); background: linear-gradient(135deg, #fff, var(--canvas)); }
.admin-gate h1 { font-size: clamp(4rem, 9vw, 8rem); line-height: .88; margin: 0; color: var(--purple); }
.admin-gate p:first-of-type { max-width: 44rem; font-size: clamp(1.35rem, 2.6vw, 2.2rem); font-weight: 850; color: var(--purple); margin: 0; }

.mobile-sticky { display: none; }
.site-footer {
  display: grid;
  grid-template-columns: 1.1fr repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  padding: 2.4rem clamp(1rem, 4vw, 4rem);
  background: var(--ink);
  color: #fff;
}
.site-footer section { display: grid; gap: .35rem; align-content: start; }
.site-footer h2 { font-size: 1rem; margin: 0 0 .35rem; color: var(--gold); }
.site-footer a { text-decoration: none; color: #fff; }
.site-footer a:hover { color: var(--sky); }
.site-footer b { color: var(--sky); }
.footer-brand strong { color: var(--gold); font-size: 1.3rem; }
.footer-bottom { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.18); padding-top: 1rem; grid-template-columns: 1.1fr 1fr 1fr; }
.footer-bottom p { margin: 0; }

@media (max-width: 1100px) {
  .program-matrix, .program-matrix.full, .pricing-grid, .giving-table, .tracks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-bottom { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .global-header {
    position: sticky;
    top: 0;
    z-index: 50;
  }
  .site-header {
    min-height: 3.85rem;
    padding: .5rem 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
  }
  .brand {
    min-width: auto;
    gap: 0;
    height: auto;
    max-height: none;
    overflow: visible;
    display: inline-flex;
    align-items: center;
  }
  .brand img, .brand .brand-logo {
    height: 38px;
    max-height: 42px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transform: none;
  }
  .mobile-header-controls {
    display: flex;
    align-items: center;
    gap: .45rem;
  }
  .mobile-header-donate {
    min-height: 2.45rem;
    padding: .45rem .8rem;
    font-size: .88rem;
    font-weight: 850;
    border-radius: 8px;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: var(--purple);
    color: #ffffff;
    border: 1px solid var(--purple);
    padding: .45rem .75rem;
    border-radius: 8px;
    font-weight: 800;
    font-size: .88rem;
    cursor: pointer;
    min-height: 2.45rem;
    line-height: 1;
    transition: all .2s ease;
  }
  .mobile-menu-toggle:hover {
    background: #2b113e;
  }
  .mobile-menu-toggle[aria-expanded="true"] {
    background: var(--gold);
    color: var(--purple);
    border-color: var(--gold);
  }
  .menu-hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 15px;
    height: 11px;
  }
  .menu-hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
  }
  .mobile-menu-toggle[aria-expanded="true"] .menu-hamburger-icon span:nth-child(1) {
    transform: translateY(4.5px) rotate(45deg);
  }
  .mobile-menu-toggle[aria-expanded="true"] .menu-hamburger-icon span:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-toggle[aria-expanded="true"] .menu-hamburger-icon span:nth-child(3) {
    transform: translateY(-4.5px) rotate(-45deg);
  }

  /* Header Nav Wrap on mobile: Collapsible drawer */
  .header-nav-wrap {
    display: none;
    position: fixed;
    top: 3.85rem;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1.25rem 1.25rem 4rem;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: 0 16px 36px rgba(17, 17, 17, 0.2);
    border-top: 1px solid var(--line);
  }

  /* Search plane mobile */
  .search-plane {
    padding: .5rem 1rem;
  }
  .search-plane-container {
    flex-direction: column;
    align-items: stretch;
    gap: .5rem;
  }
  .search-plane-form {
    max-width: 100%;
  }
  .search-plane-tags {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: .25rem;
    -webkit-overflow-scrolling: touch;
  }
  .plane-search-results {
    left: 1rem;
    right: 1rem;
  }
  .header-nav-wrap.is-open {
    display: flex;
    animation: mobileNavFadeIn .2s ease-out;
  }
  @keyframes mobileNavFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .header-nav-wrap nav {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    width: 100%;
    align-items: stretch;
  }
  .header-nav-wrap nav a {
    min-height: 2.85rem;
    font-size: 1.05rem;
    font-weight: 750;
    padding: .65rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--canvas);
    color: var(--purple);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .header-nav-wrap nav a:hover,
  .header-nav-wrap nav a[aria-current="page"] {
    background: var(--purple);
    color: #ffffff;
    border-color: var(--purple);
  }
  .header-nav-wrap nav a[aria-current="page"]::after {
    content: "●";
    color: var(--gold);
    font-size: .85rem;
  }

  .header-nav-wrap .account-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .65rem;
    width: 100%;
    border-top: 1px solid var(--line);
    padding-top: 1.25rem;
  }
  .header-nav-wrap .account-actions .button {
    min-height: 2.75rem;
    width: 100%;
    font-size: .92rem;
    justify-content: center;
    border-radius: 8px;
  }
  .mobile-drawer-footer {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding-top: .75rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .82rem;
  }
  .mobile-drawer-footer a {
    color: var(--purple);
    font-weight: 700;
    text-decoration: underline;
  }

  .community-cta, .admin-top { align-items: stretch; flex-direction: column; }
  .stats-strip, .pillars, .mission-vision, .wellness-preview, .wellness-hub, .program-detail-hero, .dimension-template, .resource-locator, .resource-locator form, .support-results, .donate-hero, .impact-visualizer, .contact-page, .member-access, .admin-layout, .editor-grid, .course-row { grid-template-columns: 1fr; }
  .cms-workbench { grid-template-columns: 1fr; }
  .stats-strip { position: static; transform: none; margin-top: 1.5rem; }
  .pillars { padding-top: clamp(1rem, 4vw, 4rem); }
  .wellness-area-btn, .wellness-wheel.large .wellness-area-btn {
    transform: rotate(calc(var(--i) * 45deg)) translate(9.2rem) rotate(calc(var(--i) * -45deg)) translate(-50%, -50%);
    padding: 0.25rem 0.45rem;
  }
  .wellness-word { font-size: 0.86rem; }
  .footer-bottom { padding-bottom: 4rem; }
  .mobile-sticky {
    position: sticky;
    bottom: 0;
    z-index: 9;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--ink);
    border-top: 1px solid rgba(255,255,255,.18);
  }
  .mobile-sticky a {
    min-height: 2.75rem;
    display: grid;
    place-items: center;
    color: var(--purple);
    background: var(--gold);
    font-weight: 850;
    font-size: .9rem;
    text-decoration: none;
  }
  .mobile-sticky a:first-child { background: var(--sky); }
}

@media (max-width: 640px) {
  .program-matrix, .program-matrix.full, .people-grid, .vault, .inspiration-grid, .board-table, .pricing-grid, .table-list, .giving-table, .opportunity-list, .site-footer, .capability-grid, .setting-grid, .course-actions, .permission-grid, .contact-form, .testimonial-band > div, .testimonial-band.compact { grid-template-columns: 1fr; }
  .section-head, .toolbar, .program-toolbar { display: grid; grid-template-columns: 1fr; }
  .home-hero h1, .page-hero h1, .member-access h1, .contact-directory h1, .donate-hero h1 { font-size: clamp(1.85rem, 6.8vw, 2.5rem); line-height: 1.18; }
  .home-hero { padding: 2.25rem 1.25rem 2rem; gap: 1.5rem; }
  .hero-logo-lockup { width: min(100%, 16rem); }
  .hero-text { gap: .85rem; }
  .wellness-wheel, .wellness-wheel.large {
    width: 100%;
    aspect-ratio: auto;
    border-radius: 14px;
    background: #fbf9fd;
    padding: 1.25rem 1rem;
    border: 1px solid var(--line);
  }
  .wellness-circle-track {
    border: none;
    background: none;
    border-radius: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    width: 100%;
    height: auto;
  }
  .wellness-hub-center {
    grid-column: 1 / -1;
    position: static;
    transform: none;
    margin: 0 auto 0.75rem;
  }
  .wellness-area-btn, .wellness-wheel.large .wellness-area-btn {
    position: static;
    transform: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.75rem 0.5rem;
    width: 100%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  }
  .wellness-area-btn.active {
    border-color: var(--gold);
    background: rgba(255, 193, 0, 0.15);
  }
  dl { grid-template-columns: 1fr; }
}

/* About Sub Navigation */
.about-subnav {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 72px;
  z-index: 15;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.about-subnav-container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.about-subnav-container::-webkit-scrollbar {
  display: none;
}
.about-subnav-link {
  padding: 0.9rem 1.15rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
}
.about-subnav-link:hover {
  color: var(--purple);
}
.about-subnav-link.active {
  color: var(--purple);
  border-bottom-color: var(--gold);
}

/* Modals & Overlays */
.search-modal, .app-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
}
.search-modal[hidden], .app-modal[hidden] {
  display: none;
}
.search-modal-backdrop, .app-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.72);
  backdrop-filter: blur(8px);
}
.search-modal-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 44rem;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 64px rgba(17, 17, 17, 0.28);
  overflow: hidden;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}
.search-modal-header {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}
.search-input-wrap {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.search-input-wrap svg {
  color: var(--purple);
  flex-shrink: 0;
}
.search-input-wrap input {
  flex: 1;
  border: none;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  outline: none;
  background: transparent;
}
.close-search-btn, .close-app-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  padding: .35rem .6rem;
  border-radius: 6px;
  line-height: 1;
  min-height: auto;
}
.close-search-btn:hover, .close-app-btn:hover {
  background: var(--canvas);
  color: var(--purple);
}
.search-results-list {
  padding: 1rem 1.25rem;
  overflow-y: auto;
  display: grid;
  gap: .65rem;
}
.search-hint {
  color: var(--muted);
  font-size: .95rem;
  margin: .5rem 0;
}
.search-result-item {
  display: grid;
  gap: .25rem;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  background: #ffffff;
  transition: all .15s ease;
}
.search-result-item:hover {
  border-color: var(--purple);
  background: var(--canvas);
}
.search-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.search-result-head strong {
  color: var(--purple);
  font-size: 1.05rem;
}
.search-badge {
  font-size: .75rem;
  text-transform: uppercase;
  font-weight: 800;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: var(--canvas);
  border: 1px solid var(--line);
  color: var(--purple);
}
.search-result-item p {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.4;
}

/* Application Intake Modal */
.app-modal-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 42rem;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 64px rgba(17, 17, 17, 0.28);
  overflow-y: auto;
  max-height: 90vh;
  padding: clamp(1.25rem, 3vw, 2rem);
}
.app-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}
.app-modal-header h2 {
  margin: .35rem 0 0;
  color: var(--purple);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.05;
}
.app-form {
  display: grid;
  gap: .9rem;
}
.app-intro {
  margin: 0 0 .5rem;
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.45;
  background: var(--canvas);
  padding: .75rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
.modal-actions {
  display: flex;
  gap: .75rem;
  margin-top: .5rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  max-width: min(26rem, calc(100vw - 3rem));
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: var(--purple);
  color: #ffffff;
  padding: .9rem 1.2rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 36px rgba(17, 17, 17, 0.25);
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.4;
  animation: toastSlideIn .25s ease-out;
  transition: opacity .35s ease, transform .35s ease;
}
.toast.toast-fade {
  opacity: 0;
  transform: translateY(12px);
}
.toast.toast-success {
  background: var(--purple);
  border-left: 4px solid var(--gold);
}
@keyframes toastSlideIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Legal Notice & Decision Required Framework */
.legal-notice-section {
  padding: clamp(1.5rem, 4vw, 3.5rem);
  max-width: 56rem;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}
.decision-required-box {
  background: #ffffff;
  border: 2px solid var(--gold);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(63, 29, 90, 0.08);
}
.decision-pill {
  display: inline-block;
  background: var(--purple);
  color: var(--gold);
  font-size: .76rem;
  font-weight: 880;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .35rem .7rem;
  border-radius: 999px;
  margin-bottom: .65rem;
}
.decision-required-box h2 {
  margin: 0 0 .5rem;
  color: var(--purple);
  font-size: 1.35rem;
}
.decision-required-box p {
  margin: 0;
  color: var(--ink);
  line-height: 1.55;
  font-size: 1rem;
}
.legal-content-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}
.legal-content-card h3 {
  margin: 0;
  color: var(--purple);
  font-size: 1.15rem;
}
.legal-content-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.legal-meta {
  display: grid;
  gap: .35rem;
  font-size: .9rem;
  color: var(--ink);
  border-top: 1px solid var(--line);
  padding-top: .85rem;
}

/* ==========================================================================
   Google Workspace Identity & Shared Drive Component Styles
   ========================================================================== */
.google-sso-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-weight: 650;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.google-sso-cta:hover {
  transform: translateY(-1px);
}
.admin-gate-sso-cta {
  margin: 1.25rem 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}
.admin-gate-subtext {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}
.admin-gate-status {
  font-size: 0.88rem;
  color: var(--purple);
  margin: 0.25rem 0 0;
  min-height: 1.25rem;
}

/* User Account Menu in Top Bar & Header */
.workspace-user-menu {
  position: relative;
  display: inline-block;
}
.workspace-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  font-weight: 600;
}
.user-avatar-img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}
.user-avatar-initial {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--purple);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.workspace-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 280px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.12);
  padding: 1rem;
  z-index: 1000;
  display: grid;
  gap: 0.75rem;
}
.workspace-dropdown[hidden] {
  display: none !important;
}
.dropdown-header {
  display: grid;
  gap: 0.2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.65rem;
}
.dropdown-header strong {
  color: var(--ink);
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dropdown-header small {
  color: var(--muted);
  font-size: 0.8rem;
  word-break: break-all;
}
.org-badge {
  display: inline-block;
  align-self: flex-start;
  margin-top: 0.25rem;
  background: rgba(113, 202, 223, 0.18);
  color: #035266;
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}
.dropdown-links {
  display: grid;
  gap: 0.4rem;
}
.dropdown-links a {
  display: block;
  font-size: 0.88rem;
  color: var(--purple);
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  transition: background 0.15s ease;
}
.dropdown-links a:hover {
  background: var(--canvas);
}
.top-bar-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--purple);
  background: rgba(63, 29, 90, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
.user-avatar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34A853;
}
.top-bar-btn {
  background: transparent;
  border: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  text-decoration: underline;
}
.top-bar-btn:hover {
  color: var(--purple);
}

/* Admin Identity Banner */
.admin-identity-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 0.75rem;
}
.admin-identity-status-bar strong {
  display: block;
  color: var(--purple);
  font-size: 0.95rem;
}
.admin-identity-status-bar p {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.admin-identity-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Shared Drive Section & Cards */
.shared-drive-section {
  display: grid;
  gap: 1.25rem;
  margin-top: 1rem;
}
.drive-config-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
  display: grid;
  gap: 0.75rem;
}
.drive-config-box h4 {
  margin: 0;
  color: var(--purple);
  font-size: 1.1rem;
}
.drive-config-box p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}
.drive-field-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: end;
}
.drive-files-container {
  display: grid;
  gap: 0.75rem;
}
.drive-file-card {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem 1.15rem;
}
.drive-file-icon {
  font-size: 1.5rem;
}
.drive-file-meta strong {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
  word-break: break-word;
}
.drive-file-meta small {
  color: var(--muted);
  font-size: 0.8rem;
}
.drive-file-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* Confirmation Modal for Destructive Operations */
.confirm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.65);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}
.confirm-modal-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.75rem;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  display: grid;
  gap: 1rem;
  border: 1px solid var(--line);
}
.confirm-modal-card h3 {
  margin: 0;
  color: #b3261e;
  font-size: 1.25rem;
}
.confirm-modal-card p {
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
  font-size: 0.95rem;
}
.confirm-item-target {
  background: var(--canvas);
  border: 1px solid var(--line);
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  font-size: 0.88rem;
  word-break: break-all;
}
.confirm-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* What Participants Can Expect Section */
.expectations-band {
  padding: clamp(3rem, 5vw, 5rem) clamp(1rem, 4vw, 4rem);
  background: var(--canvas);
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.expectations-band .section-head {
  padding: 0;
  margin-bottom: 2.25rem;
  border: none;
}
.expectations-band .section-head h2 {
  color: var(--purple);
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 850;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.expectations-band .section-head p {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.6;
  max-width: 65ch;
  margin: 0;
}
.expectations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.expectation-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 4px 14px rgba(17, 17, 17, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.expectation-card:hover {
  transform: translateY(-3px);
  border-color: var(--purple);
  box-shadow: 0 10px 24px rgba(63, 29, 90, 0.09);
}
.expectation-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.expectation-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: rgba(63, 29, 90, 0.08);
  color: var(--purple);
  font-weight: 850;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.expectation-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 800;
}
.expectation-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.96rem;
}

/* Interactive Resource Cards */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  padding: 1.5rem clamp(1rem, 4vw, 4rem) 3rem;
}
.resource-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.4rem;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.04);
  cursor: pointer;
}
.resource-card:hover, .resource-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.09);
  border-color: var(--purple);
}
.resource-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.resource-badge {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: var(--canvas);
  color: var(--purple);
  border: 1px solid var(--line);
}
.resource-category {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 650;
}
.resource-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.18rem;
  color: var(--purple);
  line-height: 1.25;
}
.resource-card p {
  margin: 0 0 1rem;
  color: #4a5568;
  font-size: 0.93rem;
  line-height: 1.55;
}
.resource-action-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 750;
  font-size: 0.9rem;
  color: var(--purple);
  margin-top: auto;
}
.resource-card:hover .resource-action-link {
  color: var(--gold-dark, #b58900);
}

/* Transparency & Accountability Section */
.transparency-section {
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 4rem);
  background: var(--canvas);
}
.transparency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.transparency-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 2px 8px rgba(17, 17, 17, 0.04);
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.transparency-card:hover, .transparency-card:focus-visible {
  border-color: var(--purple);
  box-shadow: 0 8px 20px rgba(17, 17, 17, 0.08);
}
.transparency-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}
.transparency-card h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--purple);
}
.transparency-status-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.transparency-status-pill.available {
  background: #e6f4ea;
  color: #137333;
  border: 1px solid #ceead6;
}
.transparency-status-pill.pending {
  background: #f1f3f4;
  color: #5f6368;
  border: 1px solid #dadce0;
}
.transparency-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
.transparency-card-foot {
  margin-top: auto;
  font-weight: 750;
  font-size: 0.88rem;
  color: var(--purple);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Partnership Pathways */
.partner-pathways-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  padding: 2rem clamp(1rem, 4vw, 4rem) 4rem;
}
.partner-pathway-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.04);
}
.partner-pathway-card h3 {
  margin: 0;
  color: var(--purple);
  font-size: 1.2rem;
}
.partner-pathway-card p {
  margin: 0;
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.55;
}
.partner-pathway-card .partner-inquire-btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Course Manager Interactive Selected State */
.course-row {
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.course-row.is-selected {
  background: #fdfaf0 !important;
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 2px var(--gold);
}

/* Events Empty State Card */
.events-empty-card {
  text-align: center;
  padding: 4rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  max-width: 48rem;
  margin: 2rem auto 4rem;
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.05);
}
.events-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.events-empty-card h2 {
  color: var(--purple);
  margin: 0 0 0.75rem;
  font-size: 1.8rem;
}
.events-empty-card p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 36rem;
  margin: 0 auto 1.75rem;
}
.events-empty-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   Google Drive Course Import & Provenance Styles
   ========================================================================== */
.course-provenance-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 650;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: #e8f0fe;
  color: #174ea6;
  border: 1px solid #aecbfa;
  text-decoration: none;
  margin-left: 0.5rem;
  vertical-align: middle;
}
.course-provenance-tag:hover {
  background: #d2e3fc;
}
.reimport-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  margin-left: 0.5rem;
  transition: all 0.15s ease;
}
.reimport-btn:hover {
  border-color: #174ea6;
  color: #174ea6;
  background: #f8faff;
}

/* Course Import Modal */
.import-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.import-modal[hidden] {
  display: none !important;
}
.import-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
}
.import-modal-card {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  width: 100%;
  max-width: 56rem;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}
.import-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: #fafbfc;
}
.import-modal-header h2 {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
  color: var(--purple);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.import-modal-header p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.import-modal-close {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: var(--muted);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}
.import-modal-close:hover {
  background: #eee;
  color: var(--ink);
}
.import-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}
.import-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--line);
  background: #fafbfc;
  gap: 1rem;
  flex-wrap: wrap;
}

/* File Picker inside Modal */
.drive-picker-toolbar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.drive-picker-toolbar input {
  flex: 1;
  min-width: 200px;
}
.drive-picker-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 340px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem;
  background: #fdfdfd;
}
.drive-picker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #fff;
}
.drive-picker-item:hover {
  background: #f0f4ff;
  border-color: #c2e7ff;
}
.drive-picker-item.is-selected {
  background: #e8f0fe;
  border-color: #1a73e8;
}
.drive-picker-item-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.drive-picker-icon {
  font-size: 1.4rem;
}
.drive-picker-name {
  font-weight: 650;
  font-size: 0.95rem;
  color: var(--ink);
}
.drive-picker-meta {
  font-size: 0.78rem;
  color: var(--muted);
}
.mime-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: #eef2f6;
  color: #475569;
  text-transform: uppercase;
}
.mime-badge.gdoc {
  background: #e8f0fe;
  color: #174ea6;
}
.mime-badge.docx {
  background: #e0f2fe;
  color: #0369a1;
}
.mime-badge.slides {
  background: #fef3c7;
  color: #b45309;
}

/* Import Review Grid & Hierarchy */
.review-provenance-banner {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.review-provenance-item {
  font-size: 0.84rem;
  color: var(--muted);
}
.review-provenance-item strong {
  color: var(--ink);
}
.draft-lock-badge {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
  font-size: 0.8rem;
  font-weight: 750;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ai-enhance-panel {
  background: linear-gradient(135deg, #f3f0ff 0%, #e8f0fe 100%);
  border: 1px solid #d8b4fe;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.ai-enhance-info h4 {
  margin: 0 0 0.25rem;
  color: var(--purple);
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.ai-enhance-info p {
  margin: 0;
  font-size: 0.84rem;
  color: #4b5563;
}

.review-form-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.review-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.review-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.review-field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.review-field input, .review-field select, .review-field textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.92rem;
  font-family: inherit;
}
.review-field textarea {
  resize: vertical;
}

/* Module & Lesson Accordion Tree */
.review-hierarchy-title {
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--purple);
  margin: 1.5rem 0 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.review-module-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 0.85rem;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.review-module-head {
  background: #f8fafc;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.review-module-head h4 {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink);
  font-weight: 700;
}
.review-module-body {
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.review-lesson-item {
  background: #fdfdfd;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  padding: 0.75rem 0.95rem;
}
.review-lesson-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}
.review-lesson-head strong {
  font-size: 0.92rem;
  color: var(--purple);
}
.review-lesson-content {
  font-size: 0.84rem;
  color: #4b5563;
  line-height: 1.5;
}
.review-lesson-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
}
.review-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  background: #f1f5f9;
  color: #334155;
}
.review-tag.takeaway {
  background: #dcfce7;
  color: #166534;
}
.review-tag.reflection {
  background: #fef3c7;
  color: #92400e;
}
.review-tag.resource {
  background: #e0f2fe;
  color: #075985;
}
.form-trap {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
