/* V18 — Continuous service pages & targeted text contrast corrections (2026-11-17).
   Keeps global navigation and all other pages' topic tabs unchanged. */

/* Complete Survey Care: no editorial left-column sticky headings. Each heading
   stays above its own content as part of an uninterrupted document. */
body[data-route="/complete-survey-care"] main.site-main #complete-survey-care
  :is(.cal-svc-section[data-layout="intro"], .cal-svc-section[data-layout="split"]) {
  display: block !important;
  grid-template-columns: none !important;
}
body[data-route="/complete-survey-care"] main.site-main #complete-survey-care
  :is(.cal-svc-section[data-layout="intro"], .cal-svc-section[data-layout="split"]) > h2 {
  position: static !important;
  top: auto !important;
  align-self: auto !important;
  grid-column: auto !important;
  grid-row: auto !important;
  max-width: 100% !important;
  margin-bottom: 20px !important;
}
body[data-route="/complete-survey-care"] main.site-main #complete-survey-care
  :is(.cal-svc-section[data-layout="intro"], .cal-svc-section[data-layout="split"]) > :not(h2) {
  grid-column: auto !important;
  grid-row: auto !important;
}
/* The spotlight section uses white cards on navy. Its card content must
   remain dark, despite global selectors intended for dark-background cards. */
body[data-route="/complete-survey-care"] main.site-main
  #complete-survey-care [data-layout="spotlight"] .cal-svc-card {
  color: #24394e !important;
  background: #ffffff !important;
}
body[data-route="/complete-survey-care"] main.site-main
  #complete-survey-care [data-layout="spotlight"] .cal-svc-card :is(h3,h4,strong) {
  color: #173753 !important;
}
body[data-route="/complete-survey-care"] main.site-main
  #complete-survey-care [data-layout="spotlight"] .cal-svc-card :is(p,li,span) {
  color: #40596e !important;
}

/* Live Consensus: the process and example bands are navy, while the process
   steps and callout are light surfaces. Restore dark text on those light
   surfaces without changing the pale text on the navy background itself. */
body[data-route="/live-consensus"] main.site-main #calibrum-live-consensus
  .cal-live-process .cal-live-step {
  background: #ffffff !important;
  color: #24394e !important;
  border-color: #cedee9 !important;
}
body[data-route="/live-consensus"] main.site-main #calibrum-live-consensus
  .cal-live-process .cal-live-step strong {
  color: #163650 !important;
}
body[data-route="/live-consensus"] main.site-main #calibrum-live-consensus
  .cal-live-process .cal-live-step :is(p,span,li) {
  color: #40596e !important;
}
body[data-route="/live-consensus"] main.site-main #calibrum-live-consensus
  .cal-live-example .cal-live-note {
  background: #f2f7fb !important;
  border-left-color: #258297 !important;
  color: #354c62 !important;
}
body[data-route="/live-consensus"] main.site-main #calibrum-live-consensus
  .cal-live-example .cal-live-note strong {
  color: #163650 !important;
}

/* RAND/UCLA: the online-delivery explanation is a light callout, regardless
   of whether the surrounding timeline is rendered as a light or navy section.
   The global timeline text rules must not make the callout pale on pale. */
body[data-route="/rand-ucla-method"] main.site-main .cal-ram-page
  [data-layout="timeline"] .cal-ram-note {
  background: #f2f7fb !important;
  border-left-color: #218298 !important;
  color: #354c62 !important;
}
body[data-route="/rand-ucla-method"] main.site-main .cal-ram-page
  [data-layout="timeline"] .cal-ram-note strong {
  color: #163650 !important;
}
/* Also keep the white timeline-step tiles readable under generic dark-band
   styling. This does not alter text directly on the surrounding navy panel. */
body[data-route="/rand-ucla-method"] main.site-main .cal-ram-page
  [data-layout="timeline"] .cal-ram-step {
  background: #ffffff !important;
  color: #24394e !important;
}
body[data-route="/rand-ucla-method"] main.site-main .cal-ram-page
  [data-layout="timeline"] .cal-ram-step strong {
  color: #163650 !important;
}
body[data-route="/rand-ucla-method"] main.site-main .cal-ram-page
  [data-layout="timeline"] .cal-ram-step :is(p,span,li) {
  color: #40596e !important;
}
