/* ============================================================
   Treatment Approaches Page
   Source: _design-reference/redesign/treatment-approaches.html
   ============================================================ */

/* ── Stats band (dark) ── */
.ta-stats {
  background: #1F2A3D;
  padding: 64px 0;
}

.ta-stats__grid {
  display: grid;
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}

/* ── Anchor navigation (sticky below header on scroll) ── */
.ta-nav {
  position: sticky;
  /* CSS fallback: approximate header height so nav sticks below it.
     JS refines this value on load/scroll for pixel-perfect placement. */
  top: 130px;
  left: 0;
  right: 0;
  border-bottom: 1px solid #EAEAE7;
  background: #FAFAF9;
  z-index: 39;
}

.admin-bar .ta-nav { top: 162px; }
@media screen and (max-width: 782px) {
  .admin-bar .ta-nav { top: 176px; }
}

/* Spacer no longer needed — nav is in-flow with sticky positioning.
   Kept as zero-height for backward compat if markup still outputs it. */
.ta-nav-spacer {
  height: 0;
}

/* Offset anchor targets: set dynamically by JS, fallback for no-JS */
.ta-category {
  scroll-margin-top: var(--ta-scroll-offset, 120px);
}

.ta-nav__inner {
  display: flex;
  gap: 0;
  overflow-x: auto;
  max-width: 1180px;
  margin: 0 auto;
}

.ta-nav__link {
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #6E7079;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}

.ta-nav__link--active {
  font-weight: 800;
  color: var(--apoh-blue);
  border-bottom-color: var(--apoh-green);
}

.ta-nav__link:hover {
  color: var(--apoh-blue);
  text-decoration: none;
}

/* ── Cards shared ── */
.ta-cards__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.ta-cards__eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* Enforce AA-safe accent colors on inline-styled eyebrows */
.ta-cards__eyebrow[style*="color:#89BE40"] { color: var(--apoh-green-aa) !important; }
.ta-cards__eyebrow[style*="color:#F7921E"] { color: var(--apoh-orange-aa) !important; }
.ta-cards__eyebrow[style*="color:#E55934"] { color: #C0401A !important; }

.ta-cards__heading {
  font-size: 28px;
  font-weight: 900;
  color: #1F2A3D;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.15;
}

.ta-cards__lead {
  font-size: 15px;
  line-height: 1.6;
  color: #585961;
  margin: 12px auto 0;
  max-width: 620px;
}

.ta-cards__note {
  font-size: 13px;
  color: var(--fg-3);
  font-style: italic;
  text-align: center;
  margin: 24px 0 0;
}

.ta-cards__grid--3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ta-cards__grid--2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 1080px; margin: 0 auto; }

/* ── Modality cards ── */
.ta-modality-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 22px;
  border: 1px solid #EAEAE7;
  transition: all 0.2s;
}

.ta-modality-card:hover {
  transform: translateY(-2px);
  border-color: var(--card-color);
  box-shadow: 0 12px 32px -12px rgba(31, 42, 61, 0.14);
}

.ta-modality-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.ta-modality-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--card-color);
  flex: 0 0 auto;
}

.ta-modality-card__name {
  font-size: 16px;
  font-weight: 800;
  color: #1F2A3D;
  margin: 0;
}

.ta-modality-card__desc {
  font-size: 14px;
  line-height: 1.6;
  color: #585961;
  margin: 0;
}

/* ── Group category cards ── */
.ta-group-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  border: 1px solid #EAEAE7;
  border-top: 3px solid;
}

.ta-group-card__label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

/* Enforce AA-safe accent colors on inline-styled labels */
.ta-group-card__label[style*="color:#89BE40"] { color: var(--apoh-green-aa) !important; }
.ta-group-card__label[style*="color:#F7921E"] { color: var(--apoh-orange-aa) !important;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.ta-group-card__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ta-group-card__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: #3D3F47;
  font-weight: 600;
}

.ta-group-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}

/* ── Checklist cards ── */
.ta-checklist-card {
  border-radius: 14px;
  padding: 22px 24px;
  border-left: 4px solid;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ta-checklist-card__title {
  font-size: 16px;
  font-weight: 800;
  color: #1F2A3D;
  margin: 0;
}

.ta-checklist-card__desc {
  font-size: 14px;
  line-height: 1.55;
  color: #585961;
  margin: 0;
}

/* ── Dark video section ── */
.ta-video-dark {
  background: #1F2A3D !important;
}
.ta-video-dark .info-video-enhanced__heading { color: #fff; }
.ta-video-dark .info-video-enhanced__lead { color: rgba(255, 255, 255, 0.75); }
.ta-video-dark .info-video-enhanced__caption { color: rgba(255, 255, 255, 0.6); }
.ta-video-dark .apoh-section-label { color: #89BE40; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .ta-stats__grid { grid-template-columns: repeat(2, 1fr) !important; }
  .ta-cards__grid--3 { grid-template-columns: 1fr; }
  .ta-cards__grid--2 { grid-template-columns: 1fr; }
  .ta-cards__heading { font-size: 24px; }
  .ta-nav__inner { scrollbar-width: none; -ms-overflow-style: none; }
  .ta-nav__inner::-webkit-scrollbar { display: none; }
}
