/* Kerr University™ contrast fix, 2026-11-20 (Webster).
   Dark mode (html[data-theme="dark"]) recolors text to light cream sitewide, but some
   components hard-code light backgrounds (#fff, #fbf8f1, cream gradients) or crimson/dark text.
   This file gives those components dark surfaces + light text in dark mode, and fixes a few
   low-contrast colors in light mode. Styling only; no copy changes.
   UNDO: remove the <link data-ku-contrast-fix> line from a page, or delete this file. */

/* ---------- Shared dark tokens ---------- */
html[data-theme="dark"]{--kcf-surface:#201814;--kcf-surface2:#17110f;--kcf-line:rgba(199,161,74,.38);--kcf-ink:#f2ece3;--kcf-soft:#ddd3c6;--kcf-gold:#f0d98f;--kcf-pink:#f4b3b7}

/* Form placeholders: browser default #757575 on dark inputs was 2.4:1 */
html[data-theme="dark"] ::placeholder{color:#c2b6a8!important;opacity:1}
html[data-theme="dark"] body :is(input,textarea,select):not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]){color:var(--kcf-ink)}

/* ---------- 1. Work With Digby hero (all 11 languages) ---------- */
html[data-theme="dark"] body .hero-e1{background:radial-gradient(1200px 400px at 85% 0%,rgba(201,162,75,.16),transparent 60%),#17110f!important;border-bottom-color:rgba(199,161,74,.28)!important}
html[data-theme="dark"] body .hero-e1 h1{color:#f6efe4!important}
html[data-theme="dark"] body .hero-e1 p{color:#e6ddd1!important}
html[data-theme="dark"] body .hero-e1 .rule{color:var(--kcf-gold)!important}
html[data-theme="dark"] body .hero-e1 .btn--ghost{color:#f6efe4!important;border-color:rgba(240,217,143,.7)!important;background:rgba(240,217,143,.06)!important}
html[data-theme="dark"] body .hero-e1 .e1-tile{background:#201814!important;border-color:rgba(201,162,75,.6)!important}
html[data-theme="dark"] body .hero-e1 .e1-tile b{color:var(--kcf-gold)!important}
html[data-theme="dark"] body .hero-e1 .e1-tile span{color:#e6ddd1!important}

/* ---------- 2. Light cards/panels that kept a white or cream background ---------- */
html[data-theme="dark"] body :is(.mod,.idiom,.opt,.cert-lock,.gate,.kup,.kyl-card,.mlg-free,.ku-leading-panel,.kus,.hero-card.ku-frame,article.module,section.block,p.take,.vip-includes,.kgx-card){background:var(--kcf-surface)!important;border-color:var(--kcf-line)!important;color:var(--kcf-ink)!important}
html[data-theme="dark"] body section.section.modules{background:var(--kcf-surface2)!important}
html[data-theme="dark"] body .opt.sel{background:#3a1b1d!important;border-color:#f0a3a8!important}
html[data-theme="dark"] body .opt.correct{background:#173322!important}
html[data-theme="dark"] body .opt.wrong{background:#3a1717!important}
html[data-theme="dark"] body .opt{color:var(--kcf-ink)!important}
html[data-theme="dark"] body :is(.idiom .mean,.idiom .eg,.idiom .eg b,.quiz .qhint,.cert-lock p,.gate p,.mlg-free p,.kup-b,.kus,.hero-card.ku-frame :is(p,li,b),article.module p,section.block :is(p,li,strong),p.take,p.take strong,.kyl-card p){color:var(--kcf-soft)!important}
html[data-theme="dark"] body :is(.kup-page h2,.kup-b strong,.kyl-card h3,.mod-head h3,.cert-lock h3,.gate h3,article.module h3,section.block h3,.hero-card.ku-frame h2,section.modules h2,.mlg-free h2,.ku-leading-panel h2){color:var(--kcf-ink)!important}
html[data-theme="dark"] body :is(.mod-head .chev,.mod-head .mm){color:var(--kcf-gold)!important}
html[data-theme="dark"] body :is(.ku-leading-panel .eyebrow,.kus .eyebrow,.hero-card.ku-frame .eyebrow,section.modules .eyebrow,.mlg-free a,section.block a){color:var(--kcf-gold)!important}
html[data-theme="dark"] body .ku-leading-panel :is(p,li){color:var(--kcf-soft)!important}

/* ---------- 3. Crimson text/links/buttons left on dark surfaces ---------- */
html[data-theme="dark"] body :is(header.top.ku-legacy-top .brand small,header.top.ku-legacy-top a.exit){color:var(--kcf-gold)!important}
html[data-theme="dark"] body .ku-mc-cobrand figcaption a{color:var(--kcf-gold)!important}
html[data-theme="dark"] body :is(a.btn.ghost,a.button.outline){color:var(--kcf-gold)!important;border-color:rgba(240,217,143,.7)!important}
html[data-theme="dark"] body .mlg-toc .m{color:var(--kcf-pink)!important}
html[data-theme="dark"] body .mlg-toc .t{color:var(--kcf-ink)!important}
html[data-theme="dark"] body .mlg-toc .p{color:#cbbfae!important}
html[data-theme="dark"] body .sh-search-box svg{color:var(--kcf-gold)!important}
html[data-theme="dark"] body .vip-includes a{color:var(--kcf-gold)!important}
html[data-theme="dark"] body .dk-yelp-review .yk-more{color:var(--kcf-pink)!important}
html[data-theme="dark"] body .card .ic{color:var(--kcf-gold)!important;background:rgba(240,217,143,.1)!important}
html[data-theme="dark"] body :is(.faq a,p.fine a,p.fine){color:var(--kcf-soft)!important}
html[data-theme="dark"] body :is(.faq a,p.fine a){color:var(--kcf-gold)!important}

/* ---------- 4. Dark text left on surfaces that turned dark ---------- */
html[data-theme="dark"] body .ku-course-lessons :is(p,div,span){color:var(--kcf-soft)!important}
html[data-theme="dark"] body .ku-course-lessons a.btn:not(.ghost){color:#2a1d05!important}
html[data-theme="dark"] body .hero-grid :is(p,.ku-class-line){color:#ece4d8!important}
html[data-theme="dark"] body .card.ku-glass-panel form label{color:var(--kcf-ink)!important}
html[data-theme="dark"] body .card.ku-glass-panel :is(p.small,p.trust){color:#cbbfae!important}
html[data-theme="dark"] body :is(div.by,div.by time,div.issue){color:#bdb1a3!important}
html[data-theme="dark"] body .band .wrap [style*="color:#14233f"],html[data-theme="dark"] body .band .wrap [style*="color: #14233f"]{color:var(--kcf-ink)!important}
html[data-theme="dark"] body .band .wrap [style*="color:#666"]{color:#cbbfae!important}

/* ---------- 5. Gold-on-gold and gold-on-white links ---------- */
html[data-theme="dark"] body a.kgx-btn{color:#251b07!important}
html[data-theme="dark"] body .kyl a:not(.kyl-lang){color:var(--kcf-gold)!important}
html[data-theme="dark"] body .kyl a.kyl-lang{color:#3d2a12!important}
html[data-theme="dark"] body div.top:has(> nav),html[data-theme="dark"] body div.top:has(> .wrap > nav){background:#1b1411!important}
html[data-theme="dark"] body p.kg-coming{color:#2a1d05!important}

/* ---------- 6. Both modes ---------- */
/* Footer "Manage my billing" link: browser blue / crimson on crimson footer */
footer.foot a[href*="billing"],body > footer:not([class]) a[href*="billing"]{color:#f0d98f!important}
/* Blog header separators "|" on crimson bar */
div.top:has(> a[href$="/daily-news/"]){color:#fff}
/* Course chevrons gold on white (2.4:1) */
.mod-head .chev{color:#8a6a1f}
html[data-theme="dark"] body .mod-head .chev{color:var(--kcf-gold)!important}
/* Header tagline "Educating the World" gold on cream (2.2:1) */
html:not([data-theme="dark"]) header.site .brand small{color:#8a6a1f}
html:not([data-theme="dark"]) .card-price-amt{color:#7a5d12}

/* ---------- 7. Round 2 ---------- */
/* Blog CTA box: white pill button with crimson text (the dark-mode gold link color made it gold on white) */
html[data-theme="dark"] body div.cta > a{color:#7a0019!important}
html[data-theme="dark"] body :is(article.module b,.idiom .term){color:var(--kcf-pink)!important}
/* Embedded MailerLite form keeps its white card: keep a dark placeholder there */
html[data-theme="dark"] body .ml-form-embedContainer ::placeholder{color:#6b6259!important}
html[data-theme="dark"] body .ml-form-embedContainer input{color:#1c1714!important}
html[data-theme="dark"] body .ku-book-heading p{color:#cbbfae!important}
html[data-theme="dark"] body .kgx-card :is(input,select){background:#17110f!important;color:var(--kcf-ink)!important;border-color:var(--kcf-line)!important}
html[data-theme="dark"] body .kup-b :is(p,li,span){color:var(--kcf-soft)!important}
html[data-theme="dark"] body .kus :is(h2,h3,b,strong){color:var(--kcf-ink)!important}
html[data-theme="dark"] body .kus :is(p,li,span):not(.eyebrow){color:var(--kcf-soft)!important}
html[data-theme="dark"] body .kx-rate:not(.ku-tutorela-stars){color:var(--kcf-gold)!important}
html[data-theme="dark"] body a.kx-li{color:#fff!important}
html[data-theme="dark"] body a.button.gold{color:#2a1d05!important}
/* WhatsApp button green 4.2:1 -> 5.2:1 (both modes) */
a.kup-wa{background:#1a7a43!important}
/* Yelp red pill: white label */
a.ku-yelp span,.ky-cta span{color:#fff!important}

/* Light mode: shared glass-panel script turned dark-designed panels cream, leaving white text on cream */
html:not([data-theme="dark"]) section.wrap > .callout.ku-glass-panel.ku-callout{background:linear-gradient(135deg,#7d1418,#510c12)!important}
html:not([data-theme="dark"]) .hero-card.ku-frame :is(p,b){color:#3a322c!important}
html:not([data-theme="dark"]) div.band:has(.sub){background:#7a0019!important}
/* Light mode: gold labels on cream (2.2:1) -> darker gold (4.8:1+) */
html:not([data-theme="dark"]) :is(.hero-e1 .rule,section.band.cream > .wrap > .rule,section.band.paper > .wrap > .rule,.card.ku-glass-panel .tag){color:#7f6424!important}
html:not([data-theme="dark"]) :is(.kyl .eyebrow,.kus .eyebrow,.kx-rate:not(.ku-tutorela-stars)){color:#7f6424!important}
html:not([data-theme="dark"]) .kx-google-score .rating{color:#a2470b!important}
html:not([data-theme="dark"]) .mlg-toc .p{color:#6f604a!important}
/* Light mode: language links in the dark footer strip were crimson on near-black (1.7:1) */
html:not([data-theme="dark"]) body:has(.hero-e1) footer.site :is(nav.ku-lang-switch,.ku-foot-langs) a{color:#e9c876!important}
html[data-theme="dark"] body .kus p.kus-why{background:#2a2014!important;color:var(--kcf-soft)!important}

/* ---------- 8. Round 3 (full-site pass) ---------- */
html[data-theme="dark"] body details.kup :is(summary,summary span,span){color:var(--kcf-ink)!important}
html[data-theme="dark"] body a.kup-full{color:var(--kcf-gold)!important}
html[data-theme="dark"] body header.section-head p{color:#cbbfae!important}
html[data-theme="dark"] body .ku-leading-panel :is(.ml-form-embedContainer p,p.ku-leading-note){color:#3a322c!important}
html[data-theme="dark"] body form div.field > input{background:#17110f!important;color:var(--kcf-ink)!important;border-color:var(--kcf-line)!important}
html[data-theme="dark"] body p[style*="color:#8b1e2d"]{color:var(--kcf-pink)!important}
/* Level badges (white on green/blue/orange, 3.4:1) -> slightly deeper fills, both modes */
:is(ol.ftf-ladder .lv,.dn-meta .dn-lvl){filter:brightness(.8) saturate(1.1)}
.dn-def .dn-ipa{color:#b45309!important}
html[data-theme="dark"] body .dn-def .dn-ipa{color:#b45309!important}

/* ---------- 9. Round 4 (axe-core 4.10.2 leftovers) ---------- */
/* Current language chip: ink on crimson (1.65:1). Intended color is white. */
header :is(.ku-lang-switch, .ku-lang-mm, .ku-lang-dd) a[aria-current],
.mobile-menu :is(.ku-lang-switch, .ku-lang-mm, .ku-lang-dd) a[aria-current],
header a[data-ku-added][aria-current],
.mobile-menu a[data-ku-added][aria-current]{color:#fff!important}
html[data-theme="dark"] body .ku-lang-mm-label{color:var(--kcf-gold)!important}

/* Course header chips: crimson on dusty rose (4.24:1) */
.badge.ku-chip, span.badge.ku-chip{color:#5c1014!important}

/* Locked booking tiles used opacity + grayscale, which washed the type out */
.kub-opts--locked .kub-opt{filter:none!important;opacity:1!important;background:#efeae3!important}
.kub-opts--locked .kub-opt .kub-opt-n{color:#3f3a37!important}
.kub-opts--locked .kub-opt .kub-opt-u{color:#5c4a18!important}
.kub-opts--locked .kub-opt .kub-opt-d{color:#3f3a37!important}
.kub-opts--locked .kub-opt .kub-opt-cta{background:#4f4a46!important;color:#fff!important}

/* Proof ticker: brown on dark crimson */
html[data-theme="dark"] body :is(.ku-proof-track, .ku-proof-track strong){color:#f0d98f!important}
html:not([data-theme="dark"]) body :is(.ku-proof-track, .ku-proof-track strong){color:#f6efe4!important}

/* Light-mode greys that sat just under 4.5:1 */
html:not([data-theme="dark"]) :is(.section-desc, #show-pw1, #show-pw2, button#show-pw1, button#show-pw2, .pw-toggle, [id^="show-pw"]){color:#3f4a58!important}
html:not([data-theme="dark"]) .dn-speeds-lbl > span{color:#4b5563!important}
html[data-theme="dark"] body .dn-speeds-lbl > span{color:#cbbfae!important}

/* IPA on a light definition card should stay a dark amber in both modes */
.dn-def .dn-ipa{color:#b45309!important}

/* Level badges: deepen the fills so white labels clear 4.5:1 */
:is(ol.ftf-ladder .lv, .dn-meta .dn-lvl, .dn-lvl, span.lvl){filter:none}
:is(.dn-lvl, ol.ftf-ladder .lv, span.lvl){box-shadow:inset 0 0 0 999px rgba(0,0,0,.22)}

/* Step numbers on the Fast Track method page */
html[data-theme="dark"] body .ftf-step > .num{color:var(--kcf-gold)!important}
html:not([data-theme="dark"]) .ftf-step > .num{color:#7d1418!important}

/* Class-60 notes, Wyzant footer and band, Yelp CTA, gold stars, outline button */
.c60note, .c60body i, .c60sig i{color:#5c4a18!important}
html[data-theme="dark"] body footer.site a[aria-label="Amazon author page"] span,
html[data-theme="dark"] body p.dk-amz-foot, html[data-theme="dark"] body p.dk-amz-foot span{color:#cbbfae!important}
html:not([data-theme="dark"]) .c60band > p{color:#034e96!important}
.ky-cta a, .ky-cta a span, a.ky-cta span{color:#fff!important}
.ku-tutorela-stars{color:#8a6500!important}
html:not([data-theme="dark"]) .hero-grid :is(a.outline, a.button.outline, .outline.button){color:#f6efe4!important;border-color:#e3c77d!important}

/* ---------- 10. Round 5 (axe leftovers, higher specificity) ---------- */
/* Proof bar: keep cream/gold on deep crimson, including the strong and mid-fade text */
html body .ku-proof-bar,
html body .ku-proof-bar .ku-proof-track,
html body .ku-proof-bar .ku-proof-track strong,
html body .ku-proof-bar strong{color:#f6efe4!important}
html body .ku-proof-bar strong,
html body .ku-proof-bar .ku-proof-track strong{color:#f0d98f!important}

/* Tutorela gold stars: later stylesheet used #fbbc04 on white (1.7:1) */
html body .ku-tutorela-stars,
html body .kx-rate.ku-tutorela-stars,
html body .kx-card.ku-tutorela-card .ku-tutorela-stars{color:#8a6500!important}
html[data-theme="dark"] body .ku-tutorela-stars,
html[data-theme="dark"] body .kx-rate.ku-tutorela-stars,
html[data-theme="dark"] body .kx-card.ku-tutorela-card .ku-tutorela-stars{color:#f0d98f!important}

/* Yelp CTA inner span was left as ink on Yelp red */
html body .ky-cta a,
html body .ky-cta a span,
html body .ky-cta > a > span{color:#fff!important}

/* Level badges: set real background colors (filters and shadows do not change axe's bg) */
.dn-lvl{background:#146c3a!important;color:#fff!important}
.ftf-rung[style*="--lc:#2e9e5b"] .lv,
ol.ftf-ladder li:nth-child(1) .lv{background:#146c3a!important;color:#fff!important}
.ftf-rung[style*="--lc:#2f7fd1"] .lv,
ol.ftf-ladder li:nth-child(2) .lv{background:#1558a0!important;color:#fff!important}
.ftf-rung[style*="--lc:#b8651b"] .lv,
ol.ftf-ladder li:nth-child(3) .lv{background:#8a3f0c!important;color:#fff!important}
.ftf-rung[style*="--lc:#7d1418"] .lv,
ol.ftf-ladder li:nth-child(4) .lv,
.ftf-rung[style*="--lc:#c9a24b"] .lv{background:#7d1418!important;color:#fff!important}

/* IPA and speed labels sit on a light card even in dark mode */
.dn-def .dn-ipa,
html[data-theme="dark"] body .dn-def .dn-ipa{color:#b45309!important}
.dn-speeds-lbl > span,
html[data-theme="dark"] body .dn-speeds-lbl > span{color:#3f4a58!important}

/* Class note: dark gold on cream, cream on dark surfaces */
.c60note, .c60body i, .c60sig i,
html[data-theme="dark"] body :is(.c60note, .c60body i, .c60sig i){color:#5c4a18!important}

/* Japanese homepage eyebrow, just under 4.5:1 */
html:not([data-theme="dark"]) p[data-i18n="mech_eyebrow"]{color:#8a3334!important}
