/* November 11 launch fixes. Loaded last on every brand page. Presentation only. */
:root{--sj-lf-gold:#c6a45a;--sj-lf-gold-light:#ecd393;--sj-lf-ink:#17130e;--sj-lf-text:#efe6d2;--sj-lf-muted:#d8cfbc}

/* Native choice controls use the gold system, never the inherited cyan accent. */
input[type=checkbox],input[type=radio]{accent-color:var(--sj-lf-gold)!important}
input[type=checkbox]:focus-visible,input[type=radio]:focus-visible,
.sjq-consent input[type=checkbox]:focus-visible{outline:2px solid var(--sj-lf-gold-light)!important;outline-offset:3px!important}
input[type=checkbox]:disabled,input[type=radio]:disabled{opacity:.55;cursor:not-allowed}

/* Quiz popup and referral permission controls (approved additive fields). */
.qconsent,.sj-consent-label{display:flex!important;align-items:flex-start;gap:12px;margin:14px 0 12px;cursor:pointer;
  color:var(--sj-lf-text)!important;-webkit-text-fill-color:var(--sj-lf-text)!important;font-size:.92rem;line-height:1.5;text-align:left;font-weight:500}
.qconsent input,.sj-consent-label input{flex:0 0 22px;width:22px!important;height:22px!important;min-height:0!important;margin:1px 0 0!important;padding:0!important;cursor:pointer}
.qconsent span,.sj-consent-label span{color:inherit!important;-webkit-text-fill-color:inherit!important}
.qconsent.sj-invalid,.sj-consent-label.sj-invalid{outline:1px solid #ff9b8f;outline-offset:6px;border-radius:6px}
.sj-attest{margin-top:6px}
.sj-ref-direct a{color:var(--sj-lf-gold-light)!important;-webkit-text-fill-color:var(--sj-lf-gold-light)!important;text-decoration:underline;text-underline-offset:3px}
.sj-ref-direct a:hover,.sj-ref-direct a:focus-visible{color:#fff3cf!important;-webkit-text-fill-color:#fff3cf!important}

/* Wide state table scrolls inside its own region instead of widening the page. */
.sj-table-scroll{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
.sj-table-scroll:focus-visible{outline:2px solid var(--sj-lf-gold-light);outline-offset:4px;border-radius:8px}
.sj-table-scroll>table{margin-bottom:0}

/* Consent sentences read as sentences, not as the uppercase field labels they sit beside. */
#refForm .sj-consent-label,#refForm .sj-consent-label span,.qconsent,.qconsent span{text-transform:none!important;letter-spacing:normal!important;font-size:.92rem!important;font-family:Manrope,system-ui,sans-serif!important}

/* Phone hero rhythm: same order and content, tighter spacing so the form arrives sooner. */
@media(max-width:760px){
  html body.sj-hero-concept:not(#hc-a):not(#hc-b):not(#hc-c):not(#hc-d) #hero{padding:104px 0 18px!important}
  html body.sj-hero-concept:not(#hc-a):not(#hc-b):not(#hc-c):not(#hc-d) #hero #heroInner{gap:24px!important}
  html body.sj-hero-concept:not(#hc-a):not(#hc-b):not(#hc-c):not(#hc-d) #hero .sj-cro-advisor{height:384px!important}
  html body.sj-hero-concept:not(#hc-a):not(#hc-b):not(#hc-c):not(#hc-d) .sj-concept-benefits{margin-top:20px!important;gap:12px!important}
  html body.sj-hero-concept:not(#hc-a):not(#hc-b):not(#hc-c):not(#hc-d) .sj-concept-review{padding:22px 0 36px!important}
}

/* Quiz popup sits above the fixed header so its close control is reachable; tall steps scroll inside. */
#quizOverlay{z-index:1100!important}
#quizOverlay.open{overflow-y:auto!important;overscroll-behavior:contain}
#quizOverlay .quiz{max-height:calc(100vh - 24px)!important;max-height:calc(100dvh - 24px)!important;overflow-y:auto!important;overscroll-behavior:contain}

/* The homepage coverage icon float was the only infinite animation still running under reduced motion. */
@media(prefers-reduced-motion:reduce){.ico{animation:none!important}}

/* About KPI figures scale with the card so "5.0★ 200+" never spills past its edge. */
body.sj-brand-route-about .kpi b{font-size:clamp(26px,3.4vw,52px)!important;white-space:nowrap}

/* Header "navcta" turned white behind gold text once the page scrolled; keep the dark glass fill. */
body.sj-brand-route-coverage-cost-estimator .navcta:not(:hover):not(:focus-visible){background-color:rgba(236,211,147,.10)!important}

/* Calculator card was pulled up 99px over the paragraph above it on tablet and desktop. */
@media(min-width:761px){body.sj-brand-route-coverage-cost-estimator section.toolwrap{margin-top:28px!important}}
