/* Category accents: white/black/charcoal stay primary; color is reserved for
   pale card surfaces, rules, numbers and small controls. */
html[data-abelle-site="true"] {
  --ab-palette-ink:#20282d;
  --ab-palette-accent:#617887;
  --ab-palette-soft:#edf3f5;
  --ab-palette-soft-2:#dfe9ed;
  --ab-palette-line:#cbd9df;
}

html[data-ab-about-page="doctor"] {--ab-palette-accent:#58788b;--ab-palette-soft:#eef5f8;--ab-palette-soft-2:#dceaf0;--ab-palette-line:#c7d8e0}
html[data-ab-about-page="safety"] {--ab-palette-accent:#5f7d73;--ab-palette-soft:#eef6f2;--ab-palette-soft-2:#dcebe4;--ab-palette-line:#c8dad2}
html:has(#subtitle.ab-facility-hero) {--ab-palette-accent:#68779a;--ab-palette-soft:#f0f2f8;--ab-palette-soft-2:#e0e5f1;--ab-palette-line:#ccd3e4}
html[data-ab-about-page="location"] {--ab-palette-accent:#5e7788;--ab-palette-soft:#eef3f6;--ab-palette-soft-2:#dce6ec;--ab-palette-line:#c7d5dd}

html:is(.ab-sev2-active,.ab-eyev3-active,.ab-snv2-active,.ab-ndv3-active,.ab-spv2-active,.ab-scv2-active,.ab-cbv3-active) {--ab-palette-accent:#587487;--ab-palette-soft:#eef4f6;--ab-palette-soft-2:#dce8ed;--ab-palette-line:#c8d8df}
html:is(.ab-pfv2-active,.ab-pbv2-active,.ab-thv2-active,.ab-psbv2-active) {--ab-palette-accent:#746f8c;--ab-palette-soft:#f1f0f6;--ab-palette-soft-2:#e3e1ed;--ab-palette-line:#d2cfdf}
html:is(.ab-sbv2-active,.ab-scv3-active,.ab-slh2-active) {--ab-palette-accent:#557a76;--ab-palette-soft:#eef6f4;--ab-palette-soft-2:#dcebe7;--ab-palette-line:#c7ddd7}
html.ab-mtv2-active {--ab-palette-accent:#567b88;--ab-palette-soft:#eef5f6;--ab-palette-soft-2:#dcebed;--ab-palette-line:#c7dbdf}
html:is(.ab-aiv2-active,.ab-asv2-active,.ab-stv2-active) {--ab-palette-accent:#68738f;--ab-palette-soft:#f1f2f7;--ab-palette-soft-2:#e2e5ef;--ab-palette-line:#cfd4e2}

/* ABELLE hero copy: light color fields use crisp charcoal; location remains white on slate. */
html[data-abelle-site="true"][data-ab-about-page="doctor"] body #subtitle#subtitle > .container *,
html[data-abelle-site="true"][data-ab-about-page="safety"] body #subtitle#subtitle > .container *,
html[data-abelle-site="true"]:has(#subtitle.ab-facility-hero) body #subtitle#subtitle > .container * {
  color:var(--ab-palette-ink)!important;
  -webkit-text-fill-color:var(--ab-palette-ink)!important;
  text-shadow:none!important;
}
html[data-abelle-site="true"][data-ab-about-page="location"] body #subtitle#subtitle > .container * {
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  text-shadow:0 1px 2px rgba(9,20,29,.28)!important;
}
html[data-abelle-site="true"][data-ab-about-page="location"] body #subtitle#subtitle .ab-about-hero__eyebrow {color:#b9d5e4!important;-webkit-text-fill-color:#b9d5e4!important}

/* Keep ABELLE navigation cool-toned as well: no residual beige active state. */
html[data-abelle-site="true"][data-ab-page-family="about"] .ab-about-tabs__link.is-active {
  background:var(--ab-palette-soft)!important;
  color:var(--ab-palette-ink)!important;
}
html[data-abelle-site="true"][data-ab-page-family="about"] .ab-about-tabs__link:after {
  background:var(--ab-palette-accent)!important;
}
html[data-abelle-site="true"]:has(#subtitle.ab-facility-hero) .ab-about-tabs__link.is-active {
  background:var(--ab-palette-soft)!important;
  color:var(--ab-palette-ink)!important;
}
html[data-abelle-site="true"]:has(#subtitle.ab-facility-hero) .ab-about-tabs__link:after {
  background:var(--ab-palette-accent)!important;
}

/* ABELLE content surfaces. */
html[data-ab-about-page="doctor"] .ab-doctor-philosophy {background:var(--ab-palette-soft)!important}
html[data-ab-about-page="doctor"] .ab-doctor-credentials__group {background:#f7fafb!important;border-top-color:var(--ab-palette-accent)!important}
html[data-ab-about-page="doctor"] .ab-doctor-credentials__group:nth-child(2) {background:var(--ab-palette-soft)!important}
html[data-ab-about-page="doctor"] :is(.ab-doctor-philosophy__eyebrow,.ab-doctor-credentials__head p) {color:var(--ab-palette-accent)!important}

html[data-ab-about-page="safety"] .ab-about-safety-lead {background:var(--ab-palette-soft)!important}
html[data-ab-about-page="safety"] .ab-about-safety-card {border-color:var(--ab-palette-line)!important;background:#fff!important}
html[data-ab-about-page="safety"] .ab-about-safety-card:nth-child(2n) .ab-about-safety-card__content {background:var(--ab-palette-soft)!important}
html[data-ab-about-page="safety"] .ab-about-safety-card__content > span {color:var(--ab-palette-accent)!important}
html[data-ab-about-page="safety"] .ab-about-safety-card:first-child .ab-about-safety-card__visual img {object-position:center 18%!important}

html[data-ab-about-page="location"] :is(.ab-about-hours,.ab-about-contact,.ab-about-map-links a) {border-color:var(--ab-palette-line)!important}
html[data-ab-about-page="location"] .ab-about-hours {background:var(--ab-palette-soft)!important}
html[data-ab-about-page="location"] .ab-about-map-links a {background:var(--ab-palette-accent)!important;color:#fff!important}
html[data-ab-about-page="location"] :is(.ab-about-contact-numbers a,.ab-about-eyebrow) {color:var(--ab-palette-accent)!important}

/* Reusable procedure cards. Only surfaces and small accents change; spacing and geometry stay untouched. */
html:is(.ab-sev2-active,.ab-eyev3-active,.ab-snv2-active,.ab-ndv3-active,.ab-spv2-active,.ab-scv2-active,.ab-cbv3-active)
  :is(.ab-eyev3__assessment article,.ab-eyev3__types article,.ab-eyev3__method-grid article,.ab-ndv3-assessment article,.ab-ndv3-types article,.ab-ndv3-methods article,.ab-ndv3-recovery li,.ab-sev2-check__grid article,.ab-sev2-methods__list article,.ab-scv2-types__list article,.ab-scv2-options__list article) {
  background:var(--ab-palette-soft)!important;border-color:var(--ab-palette-line)!important;
}

html:is(.ab-pbv2-active,.ab-pfv2-active,.ab-thv2-active,.ab-psbv2-active)
  :is(.ab-pbv2-facts li,.ab-pbv2-areas article,.ab-pbv2-products article,.ab-pbv2-standard article,.ab-pbv2-process li,.ab-pfv2-facts li,.ab-pfv2-products article,.ab-pfv2-process li,.ab-thv2-process li,.ab-psbv2-process li) {
  background:var(--ab-palette-soft)!important;border-color:var(--ab-palette-line)!important;
}

html:is(.ab-sbv2-active,.ab-scv3-active,.ab-slh2-active)
  :is(.ab-sbv2-facts li,.ab-sbv2-products article,.ab-sbv2-principles article,.ab-sbv2-process li,.ab-scv3-check article,.ab-scv3-programs article,.ab-slh2-programs article) {
  background:var(--ab-palette-soft)!important;border-color:var(--ab-palette-line)!important;
}

html.ab-mtv2-active :is(.ab-mtv2-facts li,.ab-mtv2-check article,.ab-mtv2-check li,.ab-mtv2-decision article,.ab-mtv2-methods article,.ab-mtv2-process li) {
  background:var(--ab-palette-soft)!important;border-color:var(--ab-palette-line)!important;
}

html:is(.ab-aiv2-active,.ab-asv2-active,.ab-stv2-active)
  :is(.ab-aiv2-facts li,.ab-aiv2-check article,.ab-aiv2-check li,.ab-aiv2-priority article,.ab-aiv2-programs article,.ab-aiv2-process li,.ab-asv2-programs article,.ab-asv2-process li,.ab-stv2-programs article,.ab-stv2-process li) {
  background:var(--ab-palette-soft)!important;border-color:var(--ab-palette-line)!important;
}

html:is(.ab-sev2-active,.ab-eyev3-active,.ab-snv2-active,.ab-ndv3-active,.ab-spv2-active,.ab-scv2-active,.ab-cbv3-active,.ab-pbv2-active,.ab-pfv2-active,.ab-thv2-active,.ab-psbv2-active,.ab-sbv2-active,.ab-scv3-active,.ab-slh2-active,.ab-mtv2-active,.ab-aiv2-active,.ab-asv2-active,.ab-stv2-active)
  :is(p[class*="label"],article > span:first-child,li > span:first-child,dt) {color:var(--ab-palette-accent)!important}

html[data-abelle-site="true"] .ab-event-card {background:#f3f1f6!important;border-color:#d4cfdf!important}
html[data-abelle-site="true"] .ab-event-card :is(.ab-event-card__eyebrow,.ab-event-card__date) {color:#716987!important}

@media(max-width:767px) {
  html[data-abelle-site="true"][data-ab-about-page="doctor"] body #subtitle#subtitle > .container * {color:#1f313c!important;-webkit-text-fill-color:#1f313c!important;text-shadow:none!important}
  html[data-abelle-site="true"][data-ab-about-page="safety"] body #subtitle#subtitle > .container * {color:#20342f!important;-webkit-text-fill-color:#20342f!important;text-shadow:none!important}
}
