/* Shared polish for Social Health Systems.
   Brand green stays #65A30D for fills and the logo.
   Small text uses a darker lime so it clears WCAG AA on white. */

:root {
  --green-text: #3f6212;
  --ink-soft: #334155;
  --muted: #334155;
  --muted-2: #475569;
}

html { scroll-behavior: smooth; }

body {
  text-rendering: optimizeLegibility;
}

:focus-visible {
  outline: 3px solid var(--green-text);
  outline-offset: 3px;
}

.nav-toggle:focus-visible,
.bio-open:focus-visible,
.bio-close:focus-visible {
  outline-offset: 2px;
}

/* Accent text that used the bright brand green */
.eyebrow,
.page-eyebrow,
.section-eyebrow,
.brand-sub,
.nav-back,
.hero-title em,
.page-title em,
.content h2 em,
.content a.inline,
.pillar-num,
.step-num,
.step-tag,
.tl-year,
.process-step-num,
.stat-num,
.footer a,
.insight-readtime,
.principle h2,
.tier-level,
.tier-title,
.tier-detail h4,
.comparison h2,
.principle-card h3,
.section-header h2,
.overview h2,
.phase-header h2,
.phase-item h3,
.module-body h4,
.pillar-legend h3,
.pillar-item h4,
.outcomes h3,
.outcome-item h4,
.compare-box h3,
.dimension,
.cta-section h2,
.nav-links a:hover,
.nav-donate:hover {
  color: var(--green-text);
}

.stat-word { font-size: clamp(28px, 2.6vw, 40px) !important; letter-spacing: -0.03em; line-height: 1.15; }

.eyebrow::before,
.page-eyebrow::before {
  background: var(--green-text);
}

.content a.inline { border-bottom-color: var(--green-text); }

/* Buttons and chips: white on the bright lime fails contrast */
.nav-cta,
.apply .btn,
.cta-button,
.tier-badge,
.download-section,
.module-header,
.credentials .hero,
table th {
  background-color: var(--green-text);
  color: #ffffff;
}

#nav > a.nav-cta,
#nav .nav-links a.nav-cta {
  background: #3f6212;
  color: #ffffff;
  padding: 11px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
}

.nav-cta:hover,
.cta-button:hover,
.apply .btn:hover {
  background-color: #0f172a;
  color: #ffffff;
}

.cta-secondary {
  background: transparent;
  color: var(--green-text);
  border-color: var(--green-text);
}

.cta-secondary:hover {
  background: var(--green-text);
  color: #ffffff;
}

.btn-primary:hover { background: var(--green-text); color: #ffffff; }

/* Dark surfaces: slate "gold" token is too dim on ink */
.footer-quote-text em,
.footer-quote-mark,
.cta-band h2 em {
  color: #e2e8f0;
}

.footer-brand-text { color: rgba(255, 255, 255, 0.86); }
.footer-col a { color: rgba(255, 255, 255, 0.88); }
.footer-col a:hover { color: #ffffff; }
.footer-quote-cite,
.footer-tagline { color: rgba(255, 255, 255, 0.74); }

.principle p,
.tier-subtitle,
.tier-detail p,
.tier-detail li,
.overview p,
.phase-item p,
.module-body p,
.module-body li,
.pillar-item p,
.section-header p,
.outcome-item li,
.principle-card p,
.compare-box,
.compare-box p,
.compare-box li {
  color: #334155;
}

.page-nav ~ .hero,
.page-nav ~ .hero h1,
.page-nav ~ .hero p,
.download-section,
.download-section h3,
.download-section p,
.module-header,
.module-header * {
  color: #ffffff;
}

.page-nav ~ .hero {
  background: #0f172a;
}

.footer-social-link,
.footer-top { color: rgba(255, 255, 255, 0.88); }

/* Homepage menu */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border-radius: 4px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #0f172a;
}

#nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#nav .brand { flex: 0 0 auto; }
#nav .nav-links {
  display: flex;
  flex: 1;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 16px;
  min-width: 0;
  font-size: 13.5px;
  align-items: center;
}
#nav .nav-links a { color: #334155; white-space: nowrap; }
#nav > .nav-cta { flex: 0 0 auto; margin-left: 8px; }
@media (min-width: 1181px) {
  a.mobile-only { display: none !important; }
}
#nav .nav-links a:hover,
#nav .nav-links a[aria-current="page"] { color: var(--green-text); }

@media (max-width: 1180px) {
  #nav .nav-toggle { display: inline-flex; }
  #nav .nav-donate { display: none; }
  #nav .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 12px;
    background: #ffffff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  }
  #nav.nav-open .nav-links { display: flex; }
  #nav .nav-links a {
    padding: 14px clamp(20px, 4vw, 64px);
    font-size: 16px;
    color: #0f172a;
  }
  #nav > .nav-cta { display: none; }
  #nav .nav-links a.nav-cta {
    display: inline-flex;
    margin: 8px clamp(20px, 4vw, 64px) 4px;
    justify-content: center;
    color: #ffffff;
  }
}

#nav .nav-links a.nav-cta { color: #ffffff; }
.nav-cta-menu { display: none; }
@media (max-width: 1180px) {
  #nav .nav-cta-menu { display: inline-flex; }
}

@media (max-width: 640px) {
  .page-nav ~ .hero h1 { font-size: 2rem !important; line-height: 1.15 !important; }
  .page-nav ~ .hero { padding: 72px 20px !important; }
  .module-grid,
  .phase-list,
  .pillar-grid,
  .principles,
  .compare-grid,
  .outcomes-grid,
  .creds {
    grid-template-columns: 1fr !important;
  }
  .page-hero { padding-top: 120px; }
  .cta-band .btn.ghost { margin-left: 0; }
}

@media (min-width: 768px) and (max-width: 1100px) {
  .module-grid { grid-template-columns: 1fr 1fr !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 8px;
}

@media (min-width: 768px) {
  .team-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (min-width: 1280px) {
  .team-grid { grid-template-columns: repeat(4, 1fr); }
}

.team-card {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0f172a;
  color: #ffffff;
  font-family: var(--f-display, "Inter Tight", Inter, system-ui, sans-serif);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.team-card h2 {
  font-family: var(--f-display, "Inter Tight", Inter, system-ui, sans-serif);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 6px;
  color: #0f172a;
}

.team-role {
  font-family: var(--f-mono, "JetBrains Mono", monospace);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-text);
  margin: 0 0 14px;
  line-height: 1.45;
}

.team-line {
  color: #334155;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 18px;
  flex: 1;
}

.bio-open {
  align-self: flex-start;
  padding: 10px 14px;
  border-radius: 4px;
  background: #0f172a;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

.bio-open:hover { background: var(--green-text); }

.bio-dialog {
  width: min(640px, calc(100vw - 32px));
  border: none;
  border-radius: 10px;
  padding: 28px 28px 24px;
  color: #0f172a;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
}

.bio-dialog::backdrop { background: rgba(15, 23, 42, 0.62); }

.bio-dialog h2 {
  font-family: var(--f-display, "Inter Tight", Inter, system-ui, sans-serif);
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
  line-height: 1.2;
}

.bio-kicker {
  font-family: var(--f-mono, "JetBrains Mono", monospace);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-text);
  margin: 0 0 16px;
}

.bio-dialog p:last-of-type {
  font-size: 16.5px;
  line-height: 1.65;
  color: #1e293b;
  margin: 0;
}

.bio-close {
  float: right;
  padding: 8px 12px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 600;
}

.speaking-band {
  background: #0f172a;
  color: #ffffff;
  padding: 72px clamp(20px, 4vw, 64px);
}

.speaking-band-inner {
  max-width: 860px;
  margin: 0 auto;
}

.speaking-band .eyebrow { color: #d9f99d; }
.speaking-band .eyebrow::before { background: #d9f99d; }

.speaking-band h2 {
  font-family: var(--f-display, "Inter Tight", Inter, system-ui, sans-serif);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 16px;
  color: #ffffff;
}

.speaking-band p {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  max-width: 640px;
  margin: 0 0 24px;
}

.speaking-band .btn {
  background: #ffffff;
  color: #0f172a;
}
.speaking-band .btn:hover { background: #d9f99d; color: #0f172a; }
