/* LangleyLimo.ca contrast guardrails v7.0.1
   Prevent inherited light text from disappearing on light cards and
   prevent page-specific dark text overrides from disappearing on dark bands. */

/* Dark section surfaces */
.section.dark,
.quote-band,
.pagehero,
.imagehero,
.p41-finder,
.p42-result {
  color:#fff;
}
.section.dark > .wrap > h2,
.section.dark > .wrap > h3,
.section.dark .heading h2,
.section.dark .heading h3,
.section.dark .prose > h2,
.section.dark .prose > h3,
.quote-band h2,
.quote-band h3,
.pagehero h1,
.pagehero h2,
.pagehero h3,
.imagehero h1,
.imagehero h2,
.imagehero h3,
.p41-finder h2,
.p41-finder h3,
.p42-result h2,
.p42-result h3 {
  color:#fff !important;
}
.section.dark .heading > p:not(.eyebrow),
.section.dark > .wrap > p:not(.eyebrow),
.quote-band p,
.pagehero p,
.imagehero p,
.p41-finder p,
.p42-result p {
  color:#d9e0ea !important;
}
.section.dark .eyebrow,
.quote-band .eyebrow,
.pagehero .eyebrow,
.imagehero .eyebrow,
.p41-finder .eyebrow,
.p42-result .eyebrow {
  color:#e7bd75 !important;
}

/* Any light card placed inside a dark section must reset inherited text. */
.section.dark :is(.card,.local,.finder-option,.p41-mini a,.p41-related a,.p41-recommend,.p41-summary),
:is(.dark,.quote-band,.p41-finder,.p42-result) :is(.card,.local,.finder-option,.p41-mini a,.p41-related a,.p41-recommend,.p41-summary) {
  color:#172033 !important;
}
.section.dark :is(.card,.local,.finder-option,.p41-mini a,.p41-related a,.p41-recommend,.p41-summary) :is(h2,h3,h4,strong,summary),
:is(.dark,.quote-band,.p41-finder,.p42-result) :is(.card,.local,.finder-option,.p41-mini a,.p41-related a,.p41-recommend,.p41-summary) :is(h2,h3,h4,strong,summary) {
  color:#1c1f26 !important;
}
.section.dark :is(.card,.local,.finder-option,.p41-mini a,.p41-related a,.p41-recommend,.p41-summary) p,
:is(.dark,.quote-band,.p41-finder,.p42-result) :is(.card,.local,.finder-option,.p41-mini a,.p41-related a,.p41-recommend,.p41-summary) p {
  color:#5f6878 !important;
}
.section.dark :is(.card,.local) .eyebrow,
:is(.dark,.quote-band,.p41-finder,.p42-result) :is(.card,.local) .eyebrow {
  color:#8a4f23 !important;
}
.section.dark :is(.card,.local) a:not(.btn),
:is(.dark,.quote-band,.p41-finder,.p42-result) :is(.card,.local) a:not(.btn) {
  color:#6f3f1d !important;
}

/* Light/cream sections should never inherit white headings from page modules. */
.section:not(.dark) .heading :is(h2,h3),
.section.cream .heading :is(h2,h3),
.section:not(.dark) > .wrap > :is(h2,h3),
.section.cream > .wrap > :is(h2,h3),
.section:not(.dark) .prose :is(h2,h3),
.section.cream .prose :is(h2,h3) {
  color:#172033 !important;
}
.section:not(.dark) .heading > p:not(.eyebrow),
.section.cream .heading > p:not(.eyebrow) {
  color:#5f6878 !important;
}

/* White cards anywhere: deterministic readable text. */
.card,
.local,
.finder-option {
  color:#172033;
}
.card :is(h2,h3,h4,summary),
.local :is(h2,h3,h4,summary),
.finder-option :is(h2,h3,h4,summary) {
  color:#1c1f26;
}
.card p,
.local p,
.finder-option p {
  color:#5f6878;
}
