/*
 * contrast-aa.css: WCAG 2.1 AA text contrast (compliance audit 2026-11-19, finding M1).
 *
 * The brand gold (#C8A84B) and the light gray (#8FA3B1) are too pale for text on
 * white or cream. This file swaps them for darker text-only versions on light
 * backgrounds and leaves buttons, rules, icons and anything on navy alone.
 *
 * How it works:
 *   --gold-text   gold for TEXT. Dark on light backgrounds, brand gold inside dark sections.
 *   --text-light  muted gray for TEXT. Same idea.
 * New dark section? Add its class to the "dark sections" list or its gold text
 * will render dark-on-dark. New gold text class? Add it to the "gold text" list.
 * The "html" prefix only raises specificity so these win over the per-page <style> blocks.
 */
html:root {
  --gold-text: #7d6219;   /* 5.8:1 on white, 5.1:1 on cream */
  --text-light: #5a6b78;  /* was #8fa3b1 (2.6:1 on white) */
}

/* Dark sections: keep the brand colors. */
footer,
#a11y-bar,
.util-bar,
.hero,
.page-hero,
.ty-hero,
.blog-card-top,
.direction-strip,
.proc-card-head,
.glance-card,
.anatomy-card,
.anatomy-box,
.t-featured,
.satellite-panel,
.pathway-num,
.sec-navy,
.about-sec,
.philosophy-box,
.wc-callout,
.proc-links-more,
.ssm-band,
.urgency-band,
.sidebar-navy,
[style*="background:var(--navy"],
[style*="background: var(--navy"],
/* .sidebar-card is navy on these page families and white elsewhere */
body[class*="page-template-page-areas-"]:not(.page-template-page-areas-norman) .sidebar-card,
body[class*="page-template-page-wc-"] .sidebar-card,
body[class*="page-template-page-patient-education-"] .sidebar-card,
body.single .sidebar-card,
/* .step-num is a navy circle on these pages and plain text elsewhere */
body.page-id-102 .step-num /* First Visit */,
body.page-template-page-about-policies .step-num,
body.page-template-page-insurance .step-num,
body.page-template-page-medical-records .step-num,
body.page-template-page-thank-you .step-num,
.profile-sidebar .sidebar-card {
  --gold-text: var(--gold);
  --text-light: #8fa3b1;
}

/* Gold text. */
html .faq-chevron,
html .sec-eyebrow,
html .sec-title em,
html .step-num,
html .list-card-title,
html .timeline-year,
html .blog-card-link,
html .rel-link,
html .sidebar-label,
html .pres-year,
html .sec-label,
html .block-title em,
html .award-year,
html .proc-card-link,
html .ref-link span,
html .guide-tag,
html .hist-year,
html .tx-num,
html .proc-link-arrow,
html .cond-card-link,
html .add-cond-item span,
html .faq-icon,
html .resource-link,
html .day-time,
html .proc-group-label,
html .pathway-tag,
html .info-label,
html .why-card-label,
html .proc-indications-label,
html .audience-link,
html .toc-title,
html .city-section-label,
html .info-card-label,
html .referring-strip h3 em,
html .dx-callout-label {
  color: var(--gold-text);
}

/* Gold text set in style="" attributes (text color only, not border or background color). */
[style^="color:var(--gold)"], [style*=";color:var(--gold)"], [style*="; color:var(--gold)"],
[style^="color: var(--gold)"], [style*=";color: var(--gold)"], [style*="; color: var(--gold)"] {
  color: var(--gold-text) !important;
}

/* Muted white labels on navy: were 22 to 50% white, now 62%. */
html .glance-key,
html #a11y-bar .a11y-label,
html .hero-meta,
html .breadcrumb,
html .breadcrumb-nav-hero,
html .profile-breadcrumb,
html .hero-inner .breadcrumb span,
html .footer-brand-text,
html .footer-bottom p,
html .glance-row dt,
html .glance-note,
html .contact-lbl,
html .contact-sidebar-lbl,
html .contact-sidebar-label,
html .sidebar-cta-label,
html .t-featured-attr,
html .t-hero-lbl,
html .anatomy-lbl,
html .assoc-row .assoc-badge,
html .sidebar-navy .sidebar-lbl,
html .profile-sidebar .sidebar-label-dark {
  color: rgba(255, 255, 255, 0.62);
}

/* Body copy on the gold call-to-action band. */
html .cta-band p {
  color: rgba(15, 34, 64, 0.92);
}
