/* WhatDx v0.5.8 · Warm editorial polish / mobile legibility. Homepage only. */
body.reference-home{--wdx58-paper:#faf7f2;--wdx58-ink:#182b24;--wdx58-accent:#164b40;--wdx58-line:#dcded5;background:#faf7f2}
body.reference-home .ref-header{background:rgba(250,247,242,.93);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid rgba(22,66,60,.09)}
body.reference-home .ref-paper,body.reference-home .ref-free-card,body.reference-home .ref-purchase-card{border-radius:19px;box-shadow:0 12px 35px rgba(21,47,36,.055);border-color:#dfdfd8}
body.reference-home .ref-hero-eyebrow{background:#e9f0e9;color:#164c40;font-weight:700}
body.reference-home .wdx-analysis-hero .ref-hero-lede[hidden]{display:none!important}
body.reference-home .wdx-analysis-hero h1{letter-spacing:-.026em;font-size:clamp(37px,4vw,59px);line-height:1.13;max-width:760px;text-wrap:pretty}
body.reference-home .wdx-analysis-hero .ref-hero-detail{color:#495951;line-height:1.68;max-width:650px}
body.reference-home .wdx-analysis-hero .ref-hero-detail strong{color:#1f3d32}
/* Mini visual: static example of linked evidence and two practical report views. */
.wdx58-mini{min-width:0;background:#fffefa;border:1px solid #d5e1d7;border-radius:22px;padding:20px 20px 16px;box-shadow:0 18px 43px rgba(25,66,53,.10);align-self:center;direction:inherit}
.wdx58-mini *{box-sizing:border-box}.wdx58-mini-top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding-bottom:15px;border-bottom:1px solid #e5e9e1}
.wdx58-mini-status{font-size:11px;font-weight:700;color:#467061;display:flex;gap:7px;align-items:center}
.wdx58-mini-status i{width:7px;height:7px;display:inline-block;background:#4ea185;border-radius:50%;box-shadow:0 0 0 3px #dceee5}
.wdx58-mini-tabs{display:inline-flex;gap:2px;background:#f1f1eb;border:1px solid #e6e8e1;padding:3px;border-radius:99px}
.wdx58-mini-tabs button{font:600 11px/1.35 'Plus Jakarta Sans',system-ui,sans-serif;border:0;border-radius:99px;background:transparent;color:#4c6559;padding:7px 10px;cursor:pointer;min-height:31px}
.wdx58-mini-tabs button[aria-pressed=true]{background:#174d3f;color:#fff;box-shadow:0 2px 5px #00000019}
.wdx58-mini-tabs button:focus-visible{outline:2px solid #bd773a;outline-offset:2px}
.wdx58-mini-clues{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding-top:16px}
.wdx58-mini-clue{border:1px solid #e5e7df;border-radius:13px;background:#f8f8f4;min-width:0;padding:13px 9px;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center}
.wdx58-mini-clue span{display:grid;place-items:center;font-size:20px;line-height:1;color:#297664;width:36px;height:36px;border-radius:11px;background:#e7f1e9}
.wdx58-mini-clue b{font:650 11px/1.32 'Plus Jakarta Sans',system-ui,sans-serif;color:#27463b;overflow-wrap:anywhere}
.wdx58-mini-connect{display:flex;align-items:center;gap:12px;justify-content:center;color:#35836d;font-weight:800;font-size:19px;padding:2px 0}
.wdx58-mini-connect span{height:1px;width:26%;background:#bdd8ca}
.wdx58-mini-report{background:#174c3e;border-radius:16px;color:white;padding:18px 18px 16px}
.wdx58-mini-report-top{display:flex;gap:10px;align-items:center;font:700 14px/1.4 'Plus Jakarta Sans',system-ui,sans-serif;margin-bottom:9px}
.wdx58-mini-report-top>span{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:#2c715c;color:#edfff5;font-size:20px}
.wdx58-mini-report-lines{display:grid;gap:8px}
.wdx58-mini-report-lines p{margin:0;display:flex;gap:10px;align-items:flex-start;font:500 12px/1.5 'Plus Jakarta Sans',system-ui,sans-serif;color:#e8f3ed}
.wdx58-mini-report-lines p span:first-child{color:#9cdbc2}
.wdx58-mini-note{font:500 10.5px/1.5 'Plus Jakarta Sans',system-ui,sans-serif;color:#67796e;text-align:center;margin:12px 0 0}
/* Readable section introductions */
body.reference-home .ref-free h2{line-height:1.14;text-wrap:pretty;max-width:830px}
body.reference-home .ref-free-lede{line-height:1.67;max-width:780px;color:#506058}
body.reference-home .ref-philosophy-lede{color:#53655b;line-height:1.74}
body.reference-home .ref-pillars article,body.reference-home .ref-comparison{border-radius:16px}
/* Quick-fill buttons augment the original real LLM free screener; do not replace it. */
.wdx58-quick{margin:11px 0 15px}.wdx58-quick>p{font-size:12px;line-height:1.5;font-weight:650;color:#48695a;margin:0 0 8px}
.wdx58-quick-list{display:flex;gap:7px;flex-wrap:wrap}
.wdx58-quick-chip{border:1px solid #cbddd0;border-radius:100px;background:#f3f8f4;color:#285b46;font:600 11.5px/1.4 'Plus Jakarta Sans',system-ui,sans-serif;padding:8px 11px;text-align:start;cursor:pointer;max-width:100%}
.wdx58-quick-chip:hover,.wdx58-quick-chip[aria-pressed=true]{background:#e1f1e7;border-color:#458e72}
.wdx58-quick-chip:focus-visible{outline:3px solid #bc835b;outline-offset:2px}
/* Six-screen story compatibility: keep existing script, stepper, image overlays and choices. */
#the-loop .wdx58-story-heading{font:400 clamp(34px,4.4vw,52px)/1.13 'Newsreader',Georgia,serif;letter-spacing:-.027em;color:#193328;margin:12px auto 14px;text-wrap:pretty}
#the-loop .wdx58-story-sub{font:400 16px/1.66 'Plus Jakarta Sans',system-ui,sans-serif;color:#52645b;max-width:740px;margin:0 auto 22px}
#the-loop .wdx-j-case{border-color:#dce4dc;border-radius:16px;background:#fffefa}
#the-loop .wdx-j-case.is-current{background:#edf6ee;border-color:#8ab5a1}
#the-loop .wdx-j-main{box-shadow:0 14px 34px #123f360d}
/* Doctor-collaboration guidance */
.wdx58-doctor{max-width:900px;margin:19px auto 29px;background:#eff5ee;border:1px solid #cadfcf;border-radius:18px;padding:0 20px;color:#223c2f}
.wdx58-doctor summary{display:flex;align-items:center;gap:13px;cursor:pointer;list-style:none;padding:17px 0;font-size:15px;line-height:1.45}
.wdx58-doctor summary::-webkit-details-marker{display:none}.wdx58-doctor summary strong{font-weight:700;flex:1}
.wdx58-doctor-icon{display:grid;place-items:center;width:32px;height:32px;flex-shrink:0;border-radius:50%;background:#d4e8d9;color:#165543;font-size:16px;font-weight:800}
.wdx58-doctor-plus{color:#376b55;font-size:23px;line-height:1}.wdx58-doctor[open] .wdx58-doctor-plus{transform:rotate(45deg)}
.wdx58-doctor p{margin:0 0 20px 45px;font-size:14px;line-height:1.75;color:#465d50}
.wdx58-doctor summary:focus-visible{outline:3px solid #b48a5b;outline-offset:2px}
/* Benefits: preserve original paid-mode controls and actual checkout. */
#start-case .ref-purchase-points{list-style:none;padding:19px 0 0;margin:21px 0 22px;border-top:1px solid #dee5dc}
#start-case .ref-purchase-points li{position:relative;padding-inline-start:30px;margin-bottom:14px;font-size:14px;line-height:1.58;color:#45584e}
#start-case .ref-purchase-points li::before{content:'✓';position:absolute;inset-inline-start:0;top:0;display:grid;place-items:center;background:#e3f0e6;color:#205f48;width:21px;height:21px;border-radius:50%;font-size:11px;font-weight:800}
body.reference-home .ref-comparison{overflow-x:auto;scrollbar-width:thin}
@media(max-width:850px){
 #the-loop .wdx-j-choices{display:grid;grid-template-columns:repeat(3,minmax(190px,1fr));overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;gap:9px;padding-bottom:8px}
 #the-loop .wdx-j-choices>.wdx-j-case{min-width:190px;scroll-snap-align:start}
 #the-loop .wdx-story-tabs{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:9px}
 #the-loop .wdx-story-tabs>button{flex:0 0 205px;scroll-snap-align:start}
}
@media(max-width:620px){
 body.reference-home .wdx-analysis-hero h1{font-size:clamp(30px,8vw,41px);line-height:1.15}
 body.reference-home .wdx-analysis-hero .ref-hero-detail{font-size:17px!important;line-height:1.7!important}
 body.reference-home .ref-free-lede{font-size:16px!important;line-height:1.72!important}
 body.reference-home .ref-free h2{font-size:clamp(30px,8vw,40px);line-height:1.14}
 body.reference-home .ref-philosophy-lede{font-size:16px!important;line-height:1.75!important}
 #the-loop .wdx58-story-heading{font-size:clamp(32px,8vw,41px)!important}
 #the-loop .wdx58-story-sub,#the-loop .wdx-j-top>p,#the-loop .wdx-story-top>p{font-size:16px!important;line-height:1.72!important}
 #the-loop .wdx-j-summary,#the-loop .wdx-j-dialogue>div,#the-loop .wdx-j-evidence-card p{font-size:15px!important;line-height:1.67!important}
 #the-loop .wdx-j-case{grid-template-columns:37px minmax(0,1fr);padding:11px;min-height:80px}
 #the-loop .wdx-j-case strong{font-size:13px}#the-loop .wdx-j-case small{font-size:11.5px}
 #the-loop .wdx-j-choices{grid-template-columns:repeat(3,minmax(180px,1fr));margin-block:17px 12px}
 #the-loop .wdx-j-choices>.wdx-j-case{min-width:180px}
 .wdx58-mini{padding:14px;border-radius:16px}.wdx58-mini-top{justify-content:center}.wdx58-mini-clue{padding:11px 5px}.wdx58-mini-clue b{font-size:10.8px}
 .wdx58-doctor{padding-inline:13px}.wdx58-doctor summary{font-size:15px}.wdx58-doctor p{margin-inline-start:0;font-size:15px}
 #start-case .ref-purchase-points li{font-size:15px;line-height:1.6}
 body.reference-home .ref-hero-note{font-size:12px;line-height:1.65}
 body.reference-home .wdx-faq-answer{font-size:15px;line-height:1.7}
}
@media(prefers-reduced-motion:reduce){.wdx58-mini *,.wdx58-doctor *{transition:none!important}}
