/* ============================================
   Online Nutrition Programs Database — styles v1
   ONP palette: olive, peach, lime, turmeric, dandelion
   ============================================ */
:root {
  /* Surface */
  --cream: #fbfaf6;        /* body background — warm off-white */
  --cream-2: #f1ede1;      /* card headers, alt sections */
  --ink: #1e2a2a;          /* near-black with teal undertone */
  --ink-soft: #4a5555;     /* body copy */
  --ink-mute: #8a9090;     /* meta + labels */
  --line: #e4dfd2;         /* hairline borders */
  --line-soft: #eeeadd;    /* ghost separators */

  /* Primary accent — slate teal (replaces turmeric entirely) */
  --accent:        #4e6b6e;
  --accent-dark:   #36504f;
  --accent-hover:  #3c5a5a;
  --accent-light:  #e1e9e8;

  /* Secondary — sage */
  --sage:       #8fa37d;
  --sage-dark:  #6b7f5a;
  --sage-light: #eaefe0;

  /* Tertiary tints — cluster differentiation */
  --sky:        #c9d8db;
  --sky-soft:   #e7eef0;
  --blush:      #e8d7d0;
  --blush-soft: #f4eae5;

  /* Legacy-name aliases — so we don't have to sweep every file.
     These let the existing CSS keep referencing --turmeric / --olive / --peach / --dandelion
     etc. during the transition, but resolve to the new palette values. */
  --olive:        var(--sage-dark);
  --olive-dark:   var(--accent-dark);
  --olive-light:  var(--accent-light);
  --peach:        var(--blush);
  --peach-soft:   var(--blush-soft);
  --lime:         var(--sage);
  --turmeric:     var(--accent);
  --turmeric-dark: var(--accent-dark);
  --dandelion:    var(--sage);

  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(30, 42, 42, 0.05);
  --shadow-md: 0 4px 14px rgba(30, 42, 42, 0.08);
  --shadow-lg: 0 14px 40px rgba(30, 42, 42, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--olive-dark); text-decoration: none; }
a:hover { color: var(--turmeric); }

.container { max-width: 1320px; margin: 0 auto; padding: 0 24px; }

/* ---------- Shared Header (used across home + /programs/) ---------- */
.site-header {
  background: rgba(253, 249, 242, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 10px;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.brand-name {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.header-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}
.header-nav a {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: all 0.15s ease;
}
.header-nav a:hover {
  color: var(--turmeric-dark);
  background: var(--cream-2);
}
.header-nav a.active {
  color: var(--turmeric-dark);
  background: var(--peach-soft);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s ease;
}
.mobile-menu-toggle.is-active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.is-active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .brand-name { display: none; }
  .header-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, padding 0.25s ease;
  }
  .header-nav.is-open {
    max-height: 400px;
    padding: 16px 24px;
  }
  .header-nav a {
    padding: 12px 16px;
    border-radius: 8px;
  }
  .mobile-menu-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--accent-light);
  padding: 70px 0 56px;
  border-bottom: 1px solid var(--line);
}
.hero .badge {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 { max-width: 18ch; margin-bottom: 16px; }
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 66ch;
  margin-bottom: 28px;
}
.hero-sub strong { color: var(--turmeric-dark); font-weight: 600; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-sm { padding: 8px 16px; font-size: 0.88rem; }
.btn-primary {
  background: var(--turmeric);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--turmeric-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--olive); color: var(--olive-dark); }

/* ---------- Main grid ---------- */
.main-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  padding-top: 40px;
  padding-bottom: 60px;
  align-items: start;
}

.sidebar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: 84px;
  box-shadow: var(--shadow-sm);
}
.filter-block { margin-bottom: 22px; }
.filter-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-mute);
  margin-bottom: 10px;
}
#search {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--cream);
}
#search:focus {
  outline: none;
  border-color: var(--olive);
  background: var(--white);
}

.chip-group { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}
.chip:hover { border-color: var(--olive); }
.chip.active {
  background: var(--olive);
  border-color: var(--olive);
  color: var(--white);
}

/* ---------- Results ---------- */
.results-bar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 22px;
  flex-wrap: wrap; gap: 14px;
}
.results-count { font-size: 1rem; color: var(--ink-soft); }
.results-count strong { color: var(--ink); font-size: 1.15rem; }
.results-sort label { font-size: 0.85rem; color: var(--ink-mute); margin-right: 8px; }
.results-sort select {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--white);
  color: var(--ink);
}

.programs-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}

.program-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}
.program-card:hover {
  border-color: var(--olive);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-header {
  background: var(--cream-2);
  padding: 18px 22px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
}
.card-logo {
  width: 64px;
  height: 64px;
  background: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  flex-shrink: 0;
}
.card-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.card-logo-placeholder { background: var(--line-soft); }
.card-badge {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}
.card-body {
  padding: 18px 22px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
  background: var(--cream-2);
  color: var(--ink-soft);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.tag-cluster { background: var(--olive-light); color: var(--olive-dark); }
.tag-affiliate { background: var(--blush-soft); color: #8a6b5a; font-style: italic; }
.tag-accred { background: var(--peach-soft); color: var(--turmeric-dark); }
.tag-accred-pro { background: #fef7d6; color: #8a6b13; }
.card-title {
  font-size: 1.08rem;
  line-height: 1.3;
  margin: 4px 0 0;
}
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--turmeric); }
.card-provider {
  font-size: 0.86rem;
  color: var(--ink-mute);
  margin: 0;
}
.card-credential {
  font-size: 0.85rem;
  color: var(--olive-dark);
  font-weight: 600;
  margin: 0;
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: auto;
  padding-top: 10px;
}
.card-cta {
  padding: 0 22px 18px;
  display: flex;
  gap: 8px;
}
.card-cta .btn { flex: 1; justify-content: center; padding: 8px 12px; font-size: 0.82rem; }

.load-more-wrap { margin-top: 32px; text-align: center; }

/* ---------- Compare checkbox ---------- */
.compare-check {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--ink-mute);
  padding: 4px 0;
  user-select: none;
  transition: color 0.15s ease;
}
.compare-check:hover { color: var(--accent); }
.compare-check input { accent-color: var(--accent); width: 16px; height: 16px; cursor: pointer; }
.compare-check span { font-weight: 500; }

/* ---------- Sticky compare bar ---------- */
.compare-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: var(--cream);
  z-index: 100;
  box-shadow: 0 -4px 24px rgba(30, 42, 42, 0.25);
  transition: transform 0.25s ease;
}
.compare-bar.hidden { transform: translateY(100%); pointer-events: none; }
.compare-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 20px;
  flex-wrap: wrap;
}
.compare-bar-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}
.compare-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--cream);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.compare-pill-x {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 2px;
}
.compare-pill-x:hover { color: var(--cream); }
.compare-bar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}
.compare-bar-actions .btn-primary {
  background: var(--sage);
  color: var(--ink);
}
.compare-bar-actions .btn-primary:hover { background: var(--sage-dark); color: var(--cream); }
.compare-bar-actions .btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.compare-bar-actions .btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.2);
}
.compare-bar-actions .btn-ghost:hover { color: var(--cream); border-color: rgba(255, 255, 255, 0.5); }

/* ---------- Compare view ---------- */
.compare-view {
  margin: 40px 0 60px;
  padding: 40px 0;
  border-top: 2px solid var(--line);
  scroll-margin-top: 80px;
}
.compare-view.hidden { display: none; }
.compare-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 14px;
}
.compare-header h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0;
  letter-spacing: -0.015em;
}
.compare-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.compare-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.compare-table th, .compare-table td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}
.compare-table thead th {
  background: var(--cream-2);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink);
  border-bottom: 2px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 2;
  min-width: 180px;
}
.compare-table thead th:first-child { min-width: 160px; background: var(--cream); }
.compare-table .compare-label {
  font-weight: 600;
  color: var(--ink-mute);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--cream);
  position: sticky;
  left: 0;
  z-index: 1;
}
.compare-table tbody td {
  color: var(--ink-soft);
}
.compare-table tbody tr:hover td { background: rgba(78, 107, 110, 0.04); }

@media (max-width: 640px) {
  .compare-bar-inner { flex-direction: column; align-items: stretch; gap: 12px; }
  .compare-bar-actions { justify-content: center; }
}

/* ---------- Shared Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(253, 249, 242, 0.82);
  padding: 70px 0 40px;
  margin-top: 80px;
  font-size: 0.9rem;
  line-height: 1.6;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(253, 249, 242, 0.1);
}
.footer-brand-col { padding-right: 20px; }
.footer-brand {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.24rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.footer-tag {
  color: rgba(253, 249, 242, 0.7);
  font-size: 0.88rem;
  max-width: 40ch;
  margin-bottom: 22px;
  line-height: 1.55;
}
.footer-badges {
  display: flex;
  gap: 10px;
  align-items: center;
}
.footer-badges img {
  width: 44px;
  height: 44px;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.footer-badges img:hover { opacity: 1; }

.footer-col h4 {
  color: var(--dandelion);
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 16px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  color: rgba(253, 249, 242, 0.72);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--lime); }

.footer-disclosure {
  padding-top: 32px;
  max-width: 900px;
}
.footer-disclosure p {
  color: rgba(253, 249, 242, 0.6);
  font-size: 0.82rem;
  margin: 0 0 12px;
  line-height: 1.6;
}
.footer-disclosure strong { color: rgba(253, 249, 242, 0.85); font-weight: 600; }
.footer-disclosure a {
  color: var(--lime);
  text-decoration: none;
}
.footer-disclosure a:hover { color: var(--dandelion); }
.footer-sources { font-size: 0.8rem !important; }
.footer-copy { margin-top: 16px !important; }

@media (max-width: 1000px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 36px;
  }
  .footer-brand-col { grid-column: 1 / -1; padding-right: 0; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .site-footer { padding: 48px 0 32px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .main-grid { grid-template-columns: 1fr; gap: 20px; }
  .sidebar { position: static; }
  .programs-list { grid-template-columns: 1fr; }
}


/* ============================================
   Detail page styles (appended) — v2 with hero strip
   ============================================ */
.detail-page { padding-top: 24px; padding-bottom: 60px; max-width: 960px; }
.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-mute);
  margin-bottom: 22px;
}
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--turmeric); }

/* ---------- Hero strip ---------- */
.detail-hero {
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.detail-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 100px 1fr 88px;
  gap: 28px;
  align-items: center;
}
.detail-hero-logo-wrap {
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
  flex-shrink: 0;
}
.hero-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.hero-logo-placeholder {
  width: 100%;
  height: 100%;
  background: var(--cream-2);
  border-radius: 8px;
}
.detail-hero-text .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.detail-hero-text .tag {
  background: rgba(255,255,255,0.18);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.detail-hero-text h1 {
  color: var(--white);
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: 8px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.detail-provider {
  color: rgba(255,255,255,0.95);
  font-size: 1rem;
  margin-bottom: 4px;
}
.detail-provider strong { color: var(--white); font-weight: 600; }
.detail-credential {
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
  margin-bottom: 0;
}
.detail-hero-badge {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,0.22));
}
.detail-hero-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 720px) {
  .detail-hero { padding: 28px 24px; }
  .detail-hero-inner {
    grid-template-columns: 72px 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
  }
  .detail-hero-logo-wrap { width: 72px; height: 72px; padding: 8px; }
  .detail-hero-badge {
    grid-column: 1 / -1;
    width: 72px;
    height: 72px;
    justify-self: start;
    margin-top: 8px;
  }
}

.detail-cta-top, .detail-cta-bottom {
  margin: 24px 0 32px;
}
.btn-large { padding: 16px 28px; font-size: 1rem; }

.detail-facts {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}
.detail-facts h2 { font-size: 1.3rem; margin-bottom: 14px; }
.facts-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.facts-table th, .facts-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.facts-table th {
  color: var(--ink-mute);
  font-weight: 600;
  width: 38%;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.88rem;
}
.facts-table tr:last-child th, .facts-table tr:last-child td { border-bottom: 0; }

.detail-description { margin-bottom: 30px; }
.detail-description h2 { font-size: 1.3rem; margin-bottom: 14px; }
.detail-description p { color: var(--ink-soft); font-size: 1rem; line-height: 1.65; }
.detail-description .disclaimer { font-size: 0.85rem; color: var(--ink-mute); margin-top: 18px; }

.related-section { margin: 50px 0 30px; padding-top: 30px; border-top: 1px solid var(--line); }
.related-section h2 { font-size: 1.3rem; margin-bottom: 16px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.related-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.related-card:hover { border-color: var(--olive); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.related-name { font-weight: 600; color: var(--ink); font-size: 0.95rem; line-height: 1.35; margin-bottom: 4px; }
.related-provider { color: var(--ink-mute); font-size: 0.82rem; }

.detail-footer-cta {
  background: var(--olive-light);
  border-radius: var(--radius);
  padding: 30px 32px;
  text-align: center;
  margin-top: 40px;
}
.detail-footer-cta h3 { font-size: 1.3rem; margin-bottom: 8px; }
.detail-footer-cta p { color: var(--ink-soft); margin-bottom: 16px; }

/* ---------- Outbound text link (demoted from CTA) ---------- */
.facts-outbound {
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.85rem;
  color: var(--ink-mute);
}
.outbound-link {
  color: var(--ink-mute);
  text-decoration: none;
  border-bottom: 1px dashed var(--ink-mute);
  padding-bottom: 1px;
  transition: all 0.15s ease;
}
.outbound-link:hover {
  color: var(--turmeric-dark);
  border-bottom-color: var(--turmeric-dark);
}

/* ---------- Request info form (lead capture) ---------- */
.request-info-section {
  margin: 50px 0 40px;
  scroll-margin-top: 80px;
}
.request-info-card {
  background: var(--accent-light);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.request-info-body {
  padding: 40px 44px;
}
.request-info-eyebrow {
  display: inline-block;
  background: var(--white);
  color: var(--turmeric-dark);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
}
.request-info-card h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
  margin-bottom: 10px;
  max-width: 22ch;
}
.request-info-sub {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 56ch;
}
.request-info-form .form-row { margin-bottom: 12px; }
.request-info-form input,
.request-info-form select {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  transition: all 0.15s ease;
}
.request-info-form input::placeholder { color: var(--ink-mute); }
.request-info-form input:focus,
.request-info-form select:focus {
  outline: none;
  border-color: var(--turmeric);
  box-shadow: 0 0 0 3px rgba(231, 132, 41, 0.15);
}
.request-info-form .btn-primary {
  width: 100%;
  margin-top: 6px;
}
.request-info-disclosure {
  margin: 14px 0 0;
  font-size: 0.78rem;
  color: var(--ink-mute);
  line-height: 1.5;
}
.request-info-status {
  margin-top: 14px;
  font-size: 0.9rem;
  min-height: 1.2em;
}
.request-info-status.pending { color: var(--ink-mute); }
.request-info-status.error { color: #b23c24; font-weight: 600; }
.request-info-success {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 28px;
  border: 1px solid var(--line);
  text-align: center;
}
.request-info-success h3 {
  font-size: 1.3rem;
  color: var(--olive-dark);
  margin-bottom: 10px;
}
.request-info-success p {
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 640px) {
  .request-info-body { padding: 30px 26px; }
}


/* ============================================
   Cluster landing page styles (appended)
   ============================================ */
.cluster-page { padding-top: 24px; padding-bottom: 60px; max-width: 1180px; }

.cluster-hero {
  background: var(--accent-light);
  border-radius: var(--radius-lg);
  padding: 56px 48px 52px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.cluster-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 300px;
  height: 300px;
  pointer-events: none;
}
.cluster-hero-inner { position: relative; max-width: 72ch; }
.cluster-hero-label {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--olive-dark);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.cluster-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.08;
  margin-bottom: 14px;
  max-width: 18ch;
}
.cluster-count {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
}
.cluster-count strong { color: var(--turmeric-dark); font-weight: 600; }

.cluster-intro-section { margin-bottom: 40px; padding: 0 4px; }
.cluster-intro {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 72ch;
}

.cluster-why {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--turmeric);
  padding: 26px 30px;
  border-radius: var(--radius-sm);
  margin-bottom: 48px;
  box-shadow: var(--shadow-sm);
}
.cluster-why h2 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--turmeric-dark);
}
.cluster-why p { color: var(--ink-soft); line-height: 1.68; margin: 0; font-size: 1rem; }

/* ---------- Scope of practice block ---------- */
.cluster-scope {
  display: flex;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 28px 30px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
}
.scope-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  color: var(--accent);
}
.scope-body h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.3rem;
  margin: 0 0 12px;
  color: var(--accent-dark);
}
.scope-body p {
  color: var(--ink-soft);
  line-height: 1.68;
  margin: 0 0 12px;
  font-size: 0.96rem;
}
.scope-states {
  background: var(--cream-2);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin: 14px 0 !important;
}
.scope-note {
  font-size: 0.88rem !important;
  color: var(--ink-mute) !important;
  font-style: italic;
}

/* ---------- Salary block ---------- */
.cluster-salary {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 32px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}
.salary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 16px;
}
.salary-item {
  text-align: center;
  padding: 16px 12px;
  background: var(--cream);
  border-radius: var(--radius-sm);
}
.salary-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.salary-value {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.6rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.salary-median {
  color: var(--accent-dark);
  font-size: 2rem;
}
.salary-source {
  font-size: 0.82rem;
  color: var(--ink-mute);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 640px) {
  .salary-grid { grid-template-columns: 1fr; gap: 12px; }
  .cluster-scope { flex-direction: column; }
}

.cluster-picks { margin-bottom: 48px; }
.cluster-programs { margin-bottom: 50px; }
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.section-heading h2 { font-size: 1.4rem; margin: 0; }
.section-heading p {
  color: var(--ink-mute);
  font-size: 0.88rem;
  margin: 0;
}
.cluster-programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.cluster-program-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
}
.cluster-program-card:hover {
  border-color: var(--olive);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.cpc-header {
  background: var(--cream-2);
  padding: 16px 20px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
}
.cpc-logo {
  width: 56px;
  height: 56px;
  background: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  flex-shrink: 0;
}
.cpc-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cpc-badge { width: 50px; height: 50px; flex-shrink: 0; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.08)); }
.cpc-body { padding: 16px 20px 18px; flex: 1; }
.cluster-program-card h3 {
  font-size: 1.02rem;
  line-height: 1.3;
  margin-bottom: 4px;
}
.cluster-program-card h3 a { color: var(--ink); }
.cluster-program-card h3 a:hover { color: var(--turmeric); }
.cluster-program-card .card-provider {
  color: var(--ink-mute);
  font-size: 0.84rem;
  margin-bottom: 6px;
}
.cluster-program-card .card-meta {
  color: var(--ink-soft);
  font-size: 0.8rem;
  margin: 0;
}
.cluster-program-card .card-tags {
  margin-bottom: 8px;
}

.faq-section {
  margin: 40px 0;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.faq-section h2 { font-size: 1.5rem; margin-bottom: 22px; }
.faq-item { margin-bottom: 24px; }
.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--olive-dark);
}
.faq-item p {
  color: var(--ink-soft);
  line-height: 1.65;
  margin: 0;
}

.cluster-footer-cta {
  background: var(--olive-light);
  border-radius: var(--radius);
  padding: 34px 40px;
  text-align: center;
  margin-top: 30px;
}
.cluster-footer-cta h3 { font-size: 1.3rem; margin-bottom: 10px; }
.cluster-footer-cta p { color: var(--ink-soft); margin-bottom: 18px; }
