/* KBM Single Experience 1.0.1-rc.1 — contrast regression guard.
 * Page-scoped and deliberately last in the stylesheet chain.
 * Uses route + component selectors: no wildcard color resets and no business-logic changes.
 */

/* Route-safe visual overrides must share the named GDB3 cascade layer.
 * CSS important declarations in a named layer PRECEDE unlayered important declarations,
 * so a later standalone important rule cannot repair the inherited colors. */
@layer kbm-gdb3 {

/* 01 / Score Gauge. Foregrounds are explicit because other KBM layers force
 * -webkit-text-fill-color and can turn otherwise legible text invisible. */
body.kbmse-single-active:not(.kbm-b3-single) .kbmse-score{
  color:#f7fcff!important;
  -webkit-text-fill-color:#f7fcff!important;
}
body.kbmse-single-active:not(.kbm-b3-single) .kbmse-score .kbmse-score__eyebrow{
  color:#ffe898!important;-webkit-text-fill-color:#ffe898!important;
  background:#123d47!important;border-color:#cda839!important;
  opacity:1!important;text-shadow:none!important;
}
body.kbmse-single-active:not(.kbm-b3-single) .kbmse-score .kbmse-score__intro h2{
  color:#fff!important;-webkit-text-fill-color:#fff!important;
  opacity:1!important;text-shadow:none!important;
}
body.kbmse-single-active:not(.kbm-b3-single) .kbmse-score .kbmse-score__intro p{
  color:#e0fff2!important;-webkit-text-fill-color:#e0fff2!important;
  opacity:1!important;
}
body.kbmse-single-active:not(.kbm-b3-single) .kbmse-score .kbmse-score__intro small,
body.kbmse-single-active:not(.kbm-b3-single) .kbmse-score .kbmse-score__message{
  color:#d7e8ed!important;-webkit-text-fill-color:#d7e8ed!important;
  opacity:1!important;
}
body.kbmse-single-active:not(.kbm-b3-single) .kbmse-score .kbmse-score__heading,
body.kbmse-single-active:not(.kbm-b3-single) .kbmse-score .kbmse-score__heading strong{
  color:#fff!important;-webkit-text-fill-color:#fff!important;opacity:1!important;
}
body.kbmse-single-active:not(.kbm-b3-single) .kbmse-score .kbmse-score__criterion :is(span,b){
  color:#e8f5f8!important;-webkit-text-fill-color:#e8f5f8!important;opacity:1!important;
}
body.kbmse-single-active:not(.kbm-b3-single) .kbmse-score .kbmse-score__criterion b{
  color:#a8ffd9!important;-webkit-text-fill-color:#a8ffd9!important;
}
body.kbmse-single-active:not(.kbm-b3-single) .kbmse-score .kbmse-score__reviewcount{
  color:#e0ffee!important;-webkit-text-fill-color:#e0ffee!important;opacity:1!important;
}
body.kbmse-single-active:not(.kbm-b3-single) .kbmse-score .kbmse-score__number span{
  color:#e1ecf0!important;-webkit-text-fill-color:#e1ecf0!important;
}
body.kbmse-single-active:not(.kbm-b3-single) .kbmse-score .kbmse-score__dial[data-level="none"] .kbmse-score__number strong{
  color:#fff!important;-webkit-text-fill-color:#fff!important;
}
body.kbmse-single-active:not(.kbm-b3-single) .kbmse-score .kbmse-score__dial[data-level="high"] .kbmse-score__number strong{
  color:#9dffd0!important;-webkit-text-fill-color:#9dffd0!important;
}
body.kbmse-single-active:not(.kbm-b3-single) .kbmse-score .kbmse-score__dial[data-level="good"] .kbmse-score__number strong{
  color:#e1ff9f!important;-webkit-text-fill-color:#e1ff9f!important;
}
body.kbmse-single-active:not(.kbm-b3-single) .kbmse-score .kbmse-score__dial[data-level="medium"] .kbmse-score__number strong{
  color:#ffd29c!important;-webkit-text-fill-color:#ffd29c!important;
}
body.kbmse-single-active:not(.kbm-b3-single) .kbmse-score .kbmse-score__dial[data-level="low"] .kbmse-score__number strong{
  color:#ffe995!important;-webkit-text-fill-color:#ffe995!important;
}
body.kbmse-single-active:not(.kbm-b3-single) .kbmse-score .kbmse-scale{
  fill:#e4f2f5!important;opacity:1!important;
}

/* 02 / Contractor contact: GDB3 forces nearly-white dt/dd on a light surface.
 * Establish a single LIGHT authority for the contact card and all of its values. */
body.kbmse-single-active:not(.kbm-b3-single) #kbm-vr-single .kbm-c118-single .kbm-c118-contact,
body.kbmse-single-active:not(.kbm-b3-single) .kbm-v6-single .kbm-c118-contact{
  background:#fff!important;color:#102d40!important;
  -webkit-text-fill-color:#102d40!important;
  border:1px solid #d6e2ea!important;
  box-shadow:0 12px 30px rgba(9,37,56,.1)!important;
}
body.kbmse-single-active:not(.kbm-b3-single) #kbm-vr-single .kbm-c118-contact .kbm-ad-single-recode-contact-head,
body.kbmse-single-active:not(.kbm-b3-single) .kbm-v6-single .kbm-c118-contact .kbm-ad-single-recode-contact-head{
  background:#f3f7fa!important;color:#102d40!important;
  border:1px solid #dce6ec!important;
}
body.kbmse-single-active:not(.kbm-b3-single) #kbm-vr-single .kbm-c118-contact .kbm-ad-single-recode-contact-head :is(span,strong),
body.kbmse-single-active:not(.kbm-b3-single) .kbm-v6-single .kbm-c118-contact .kbm-ad-single-recode-contact-head :is(span,strong){
  color:#0b2b43!important;-webkit-text-fill-color:#0b2b43!important;
  opacity:1!important;text-shadow:none!important;
}
body.kbmse-single-active:not(.kbm-b3-single) #kbm-vr-single .kbm-c118-contact dl :is(dt,dd),
body.kbmse-single-active:not(.kbm-b3-single) .kbm-v6-single .kbm-c118-contact dl :is(dt,dd){
  color:#263f50!important;-webkit-text-fill-color:#263f50!important;
  opacity:1!important;visibility:visible!important;text-shadow:none!important;
}
body.kbmse-single-active:not(.kbm-b3-single) #kbm-vr-single .kbm-c118-contact dl dt,
body.kbmse-single-active:not(.kbm-b3-single) .kbm-v6-single .kbm-c118-contact dl dt{
  color:#475569!important;-webkit-text-fill-color:#475569!important;
}
body.kbmse-single-active:not(.kbm-b3-single) #kbm-vr-single .kbm-c118-contact :is(h2,p,small),
body.kbmse-single-active:not(.kbm-b3-single) .kbm-v6-single .kbm-c118-contact :is(h2,p,small){
  color:#203a4c!important;-webkit-text-fill-color:#203a4c!important;
}
body.kbmse-single-active:not(.kbm-b3-single) #kbm-vr-single .kbm-c118-contact .kbm-c154-contact-button,
body.kbmse-single-active:not(.kbm-b3-single) .kbm-v6-single .kbm-c118-contact .kbm-c154-contact-button{
  color:#0a2a40!important;-webkit-text-fill-color:#0a2a40!important;
  background:#ffcc00!important;
}

/* 03 / Driver. Phase 1963 has a dark summary with white text, GDB07 sets
 * a white summary, and SP2002 still enforces white fact values. Resolve the
 * contradictory theme as an explicit LIGHT card for this route. */
body.kbmse-single-active:not(.kbm-b3-single) #kbm-vr-single.kbm-v6-single--driver .kbm-driver198-summary-card{
  background:#fff!important;color:#102d40!important;
  -webkit-text-fill-color:#102d40!important;
  border:1px solid #d5e1e9!important;
  box-shadow:0 12px 30px rgba(9,37,56,.1)!important;
}
body.kbmse-single-active:not(.kbm-b3-single) #kbm-vr-single.kbm-v6-single--driver .kbm-driver198-summary-card :is(h1,h2,h3,p){
  color:#102d40!important;-webkit-text-fill-color:#102d40!important;
  opacity:1!important;text-shadow:none!important;
}
body.kbmse-single-active:not(.kbm-b3-single) #kbm-vr-single.kbm-v6-single--driver .kbm-driver198-summary-card .kbm-driver198-eyebrow{
  color:#0b2a3e!important;-webkit-text-fill-color:#0b2a3e!important;
  background:#fff1ae!important;border-color:#e8c84a!important;opacity:1!important;
}
body.kbmse-single-active:not(.kbm-b3-single) #kbm-vr-single.kbm-v6-single--driver .kbm-driver198-summary-card .kbm-driver158-badges span,
body.kbmse-single-active:not(.kbm-b3-single) #kbm-vr-single.kbm-v6-single--driver .kbm-driver198-summary-card .kbm-driver158-stats :is(span,small){
  color:#203e50!important;-webkit-text-fill-color:#203e50!important;
  background:#edf4f8!important;border-color:#d0e0e9!important;opacity:1!important;
}
body.kbmse-single-active:not(.kbm-b3-single) #kbm-vr-single.kbm-v6-single--driver .kbm-driver198-summary-card .kbm-driver158-badges .is-availability{
  color:#12384e!important;-webkit-text-fill-color:#12384e!important;background:#ffed9d!important;
}
body.kbmse-single-active:not(.kbm-b3-single) #kbm-vr-single.kbm-v6-single--driver .kbm-driver198-summary-card .kbm-driver158-facts article{
  background:#f1f6f9!important;color:#102d40!important;
  border:1px solid #d7e4eb!important;box-shadow:none!important;
}
body.kbmse-single-active:not(.kbm-b3-single) #kbm-vr-single.kbm-v6-single--driver .kbm-driver198-summary-card .kbm-driver158-facts :is(span,small){
  color:#465e6f!important;-webkit-text-fill-color:#465e6f!important;
  opacity:1!important;text-shadow:none!important;
}
body.kbmse-single-active:not(.kbm-b3-single) #kbm-vr-single.kbm-v6-single--driver .kbm-driver198-summary-card .kbm-driver158-facts :is(strong,b){
  color:#102d40!important;-webkit-text-fill-color:#102d40!important;
  opacity:1!important;text-shadow:none!important;
}
/* The driver hero can be light in older templates too. Avoid white-on-white
 * fallback values outside summary without recoloring the gallery/buttons. */
body.kbmse-single-active:not(.kbm-b3-single) .kbm-v6-single--driver .kbm-driver158-hero:not(.kbm-driver198-media-card) .kbm-driver158-facts :is(span,small,strong){
  color:#12384d!important;-webkit-text-fill-color:#12384d!important;
}

/* 04 / Contractor evaluation: no fake numeric score when no user reviews.
 * Keep the native '—' and count, but make it legible and tactile. */
body.kbmse-single-active:not(.kbm-b3-single) .kbm-v6-single .kbm-c118-single .kbm-ad-single-recode-trust{
  background:#fff!important;color:#102d40!important;border:1px solid #d6e2ea!important;
}
body.kbmse-single-active:not(.kbm-b3-single) .kbm-v6-single .kbm-c118-single .kbm-ad-single-recode-trust h2{
  color:#102d40!important;-webkit-text-fill-color:#102d40!important;opacity:1!important;
}
body.kbmse-single-active:not(.kbm-b3-single) .kbm-v6-single .kbm-c118-trust-score{
  background:#fff8d6!important;border:1px solid #edce55!important;color:#5e4600!important;
}
body.kbmse-single-active:not(.kbm-b3-single) .kbm-v6-single .kbm-c118-trust-score :is(strong,span){
  color:#5e4600!important;-webkit-text-fill-color:#5e4600!important;
  opacity:1!important;text-shadow:none!important;
}
body.kbmse-single-active:not(.kbm-b3-single) .kbm-v6-single .kbm-ad-single-recode-safe-list li{
  color:#334155!important;-webkit-text-fill-color:#334155!important;
}

/* 05 / No animated flourishes when accessibility asks for reduced motion. */
@media (prefers-reduced-motion: reduce) {
 body.kbmse-single-active:not(.kbm-b3-single) .kbmse-score *,
 body.kbmse-single-active:not(.kbm-b3-single) .kbmse-score *::before,
 body.kbmse-single-active:not(.kbm-b3-single) .kbmse-score *::after{transition:none!important;animation:none!important}
}

} /* @layer kbm-gdb3 */


/* KBM VISUAL PATCH 001 — 2026-11-04, presentation only */
@layer kbm-gdb3 {
/* Rental single white summary: never paint headings/chips white on white. */
body.kbmse-single-active:not(.kbm-b3-single) #kbm-vr-single .kbm-ad-single-recode-head{background:#fbfdff!important;color:#102e43!important;-webkit-text-fill-color:#102e43!important;border:1px solid #d7e3ec!important}
body.kbmse-single-active:not(.kbm-b3-single) #kbm-vr-single .kbm-ad-single-recode-head :is(h1,h2,h3){color:#102e43!important;-webkit-text-fill-color:#102e43!important;opacity:1!important;text-shadow:none!important}

body.kbmse-single-active:not(.kbm-b3-single) #kbm-vr-single.kbm-v6-single--rental :is(.kbm-ad-single-recode-head,.kbm-gdb04-hero),
body.kbmse-single-active:not(.kbm-b3-single) #kbm-vr-single.kbm-v6-single--ad :is(.kbm-ad-single-recode-head,.kbm-gdb04-hero){background:#fbfdff!important;color:#102e43!important;border:1px solid #d7e3ec!important}
body.kbmse-single-active:not(.kbm-b3-single) #kbm-vr-single :is(.kbm-ad-single-recode-title,.kbm-gdb04-hero h1){color:#0e3047!important;-webkit-text-fill-color:#0e3047!important;opacity:1!important;text-shadow:none!important}
body.kbmse-single-active:not(.kbm-b3-single) #kbm-vr-single :is(.kbm-ad-single-recode-meta,.kbm-gdb04-hero__meta,.kbm-gdb04-hero__facts,.kbm-ad-single-recode-facts,.kbm-ad-single-recode-subtitle) :is(span,small,strong,b,dd,dt){color:#243f52!important;-webkit-text-fill-color:#243f52!important;opacity:1!important;text-shadow:none!important}
body.kbmse-single-active:not(.kbm-b3-single) #kbm-vr-single :is(.kbm-ad-single-recode-meta,.kbm-gdb04-hero__meta) :is(span,small){background:#eff4f8!important;border:1px solid #d8e4ec!important;border-radius:10px!important;padding:5px 9px!important}
body.kbmse-single-active:not(.kbm-b3-single) #kbm-vr-single :is(.kbm-ad-single-recode-head,.kbm-gdb04-hero) :is(a,button):focus-visible{outline:3px solid #dfaa16!important;outline-offset:2px!important}
}


/* PEP-KBM-SINGLE-COMMERCIAL-CONTRAST-002
 * Root cause: GDB04 header uses a navy commercial card but inherited dark
 * text / -webkit-text-fill-color from shared light-card authority.
 * Exact Core-owned class, scoped to native rental singles; yellow CTA kept dark.
 * Use same named cascade layer as older contrast guards for !important parity. */
@layer kbm-gdb3 {
  body.kbmse-single-active:not(.kbm-b3-single) .kbm-ad-single-recode-head.kbm-gdb04-hero .kbm-gdb04-hero__commercial {
    background:linear-gradient(135deg,#0b2639,#0a4352)!important;
    border:1px solid rgba(255,255,255,.26)!important;
    color:#f8fcff!important;
    -webkit-text-fill-color:#f8fcff!important;
  }
  body.kbmse-single-active:not(.kbm-b3-single) .kbm-ad-single-recode-head.kbm-gdb04-hero .kbm-gdb04-hero__commercial > span {
    color:#e6f3f9!important;
    -webkit-text-fill-color:#e6f3f9!important;
    opacity:1!important;
    text-shadow:none!important;
  }
  body.kbmse-single-active:not(.kbm-b3-single) .kbm-ad-single-recode-head.kbm-gdb04-hero .kbm-gdb04-hero__commercial > strong,
  body.kbmse-single-active:not(.kbm-b3-single) .kbm-ad-single-recode-head.kbm-gdb04-hero .kbm-gdb04-hero__commercial > strong :is(span,b,bdi,small) {
    color:#ffffff!important;
    -webkit-text-fill-color:#ffffff!important;
    opacity:1!important;
    text-shadow:0 1px 2px rgba(0,0,0,.28)!important;
  }
  body.kbmse-single-active:not(.kbm-b3-single) .kbm-ad-single-recode-head.kbm-gdb04-hero .kbm-gdb04-hero__commercial > .kbm-gdb04-hero__cta {
    color:#102638!important;
    -webkit-text-fill-color:#102638!important;
  }
}

/* KBM-U4a / Single Experience 1.1.3: 5 native verticals, contrast & detail.
 * All selectors are inside the page-scoped Core V6 single root.
 * Keep Core's gallery controllers, contact permissions, trust score and data intact. */
@layer kbm-gdb3 {
 body.kbmse-single-active:not(.kbm-b3-single) :is(#kbm-vr-single,.kbm-v6-single){
  --kbm-u4-surface:#fff;--kbm-u4-ink:#102d41;--kbm-u4-muted:#3e596b;
  --kbm-u4-border:#d7e3eb;--kbm-u4-accent:#ffcf35;
  min-width:0;max-width:100%;box-sizing:border-box;
 }
 body.kbmse-single-active:not(.kbm-b3-single) :is(#kbm-vr-single,.kbm-v6-single) :is(.kbm-ad-single-recode-title,.kbm-gdb04-hero h1,.kbm-machine-sale-recode-title,.kbm-driver158-hero h1,.kbm-ps73-hero h1,.kbm-c118-single h1){
  font-size:clamp(21px,2.15vw,32px);line-height:1.58;font-weight:900;overflow-wrap:break-word;word-break:normal;
 }
 /* Gallery: preserve upload's aspect and the canonical carousel state. */
 body.kbmse-single-active:not(.kbm-b3-single) :is(#kbm-vr-single,.kbm-v6-single) :is(.kbm-ad-single-recode-gallery,.kbm-gdb06-gallery,.kbm-ps132-gallery,.kbm-c112-gallery){
  min-width:0;max-width:100%;overflow:hidden;border-radius:20px;
 }
 body.kbmse-single-active:not(.kbm-b3-single) :is(#kbm-vr-single,.kbm-v6-single) :is(.kbm-ad-single-recode-gallery-stage,.kbm-gdb06-gallery__stage,.kbm-ps132-gallery-stage,.kbm-c112-gallery-stage){
  min-width:0;max-width:100%;overflow:hidden;border:1px solid var(--kbm-u4-border);border-radius:18px;
  background:linear-gradient(145deg,#eaf1f5,#fafcfd);
 }
 body.kbmse-single-active:not(.kbm-b3-single) :is(#kbm-vr-single,.kbm-v6-single) :is(.kbm-ad-single-recode-gallery-slide,.kbm-ps132-gallery-stage,.kbm-gdb06-gallery__stage) img{
  object-fit:contain;object-position:center;max-width:100%;max-height:min(540px,76vh);
 }
 body.kbmse-single-active:not(.kbm-b3-single) :is(#kbm-vr-single,.kbm-v6-single) :is(.kbm-ad-single-recode-gallery-thumbs,.kbm-gdb06-gallery__thumbs){
  min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;
  gap:9px;padding:5px 3px 10px;
 }
 body.kbmse-single-active:not(.kbm-b3-single) :is(#kbm-vr-single,.kbm-v6-single) :is(.kbm-ad-single-recode-thumb,.kbm-gdb06-gallery__thumbs button){
  min-width:56px;min-height:56px;border-radius:11px;scroll-snap-align:start;
 }
 body.kbmse-single-active:not(.kbm-b3-single) :is(#kbm-vr-single,.kbm-v6-single) :is(.kbm-ad-single-recode-thumb,.kbm-gdb06-gallery__thumbs button):focus-visible{
  outline:3px solid #a97500;outline-offset:3px;
 }
 /* Data passport: values must be readable, not truncated or turned vertical. */
 body.kbmse-single-active:not(.kbm-b3-single) :is(#kbm-vr-single,.kbm-v6-single) :is(.kbm-ad-single-recode-specs,.kbm-machine-sale-recode-passport,.kbm-gdb06-passport,.kbm-ps132-passport,.kbm-c118-panel){
  min-width:0;max-width:100%;overflow-wrap:break-word;word-break:normal;
  background:var(--kbm-u4-surface);border:1px solid var(--kbm-u4-border);border-radius:17px;
 }
 body.kbmse-single-active:not(.kbm-b3-single) :is(#kbm-vr-single,.kbm-v6-single) :is(.kbm-ad-single-recode-spec,.kbm-gdb04-quick-specs > *, .kbm-driver158-facts > *){
  min-width:0;overflow-wrap:break-word;word-break:normal;
 }
 body.kbmse-single-active:not(.kbm-b3-single) :is(#kbm-vr-single,.kbm-v6-single) :is(.kbm-ad-single-recode-spec,.kbm-gdb06-passport,.kbm-gdb04-quick-specs) :is(dt,small){
  color:var(--kbm-u4-muted);-webkit-text-fill-color:var(--kbm-u4-muted);font-size:12px;line-height:1.7;
 }
 body.kbmse-single-active:not(.kbm-b3-single) :is(#kbm-vr-single,.kbm-v6-single) :is(.kbm-ad-single-recode-spec,.kbm-gdb06-passport,.kbm-gdb04-quick-specs) :is(dd,strong,b){
  color:var(--kbm-u4-ink);-webkit-text-fill-color:var(--kbm-u4-ink);font-size:clamp(13px,1vw,15px);line-height:1.75;
 }
 /* Trust panels: don't invent review counts or verified claims. */
 body.kbmse-single-active:not(.kbm-b3-single) :is(#kbm-vr-single,.kbm-v6-single) :is(.kbm-ad-single-recode-trust,.kbm-c118-trust-score,.kbm-ur105-review-box){
  max-width:100%;min-width:0;overflow-wrap:break-word;border-radius:17px;
 }
 body.kbmse-single-active:not(.kbm-b3-single) :is(#kbm-vr-single,.kbm-v6-single) .kbm-ad-single-recode-safe-list li{
  font-size:13px;line-height:1.95;overflow-wrap:break-word;
 }
 /* Contacts: no new button, link, visibility or permission logic; only tap geometry. */
 body.kbmse-single-active:not(.kbm-b3-single) :is(#kbm-vr-single,.kbm-v6-single) :is(.kbm-gdb04-hero__cta,.kbm-machine-sale-recode-btn,.kbm-drivers-recode-cta,.kbm-services-recode-cta,.kbm-c154-contact-button,.kbm-ps132-contact-actions a,.kbm-ad-single-recode-contact [data-kbm-contact-trigger]){
  min-height:44px;max-width:100%;box-sizing:border-box;line-height:1.5;
  white-space:normal;overflow-wrap:break-word;word-break:normal;
  border-radius:12px;
 }
 body.kbmse-single-active:not(.kbm-b3-single) :is(#kbm-vr-single,.kbm-v6-single) :is(a,button,input,select,textarea):focus-visible{
  outline:3px solid #bb7e00;outline-offset:3px;
 }
 @media(max-width:767px){
  body.kbmse-single-active:not(.kbm-b3-single) :is(#kbm-vr-single,.kbm-v6-single) :is(.kbm-ad-single-recode-gallery-stage,.kbm-gdb06-gallery__stage){border-radius:14px}
  body.kbmse-single-active:not(.kbm-b3-single) :is(#kbm-vr-single,.kbm-v6-single) :is(.kbm-ad-single-recode-specs,.kbm-gdb06-passport,.kbm-c118-panel){border-radius:14px}
  body.kbmse-single-active:not(.kbm-b3-single) :is(#kbm-vr-single,.kbm-v6-single) :is(.kbm-ad-single-recode-thumb,.kbm-gdb06-gallery__thumbs button){min-width:60px;min-height:60px}
 }
 @media(prefers-reduced-motion:reduce){
  body.kbmse-single-active:not(.kbm-b3-single) :is(#kbm-vr-single,.kbm-v6-single) :is(.kbm-ad-single-recode-thumb,.kbm-gdb06-gallery__thumbs button,.kbm-gdb04-hero__cta,.kbm-machine-sale-recode-btn){animation:none!important;transition:none!important;transform:none!important}
 }
}
