
:root{font-family:Vazirmatn,Tahoma,Arial,sans-serif;background:#f3f4ef;color:#1f2a1d}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;background:linear-gradient(180deg,#e9ecdf,#f7f7f4)}
.shell{max-width:760px;margin:0 auto;padding:28px 14px}
.card{background:#fff;border:1px solid #dfe3d7;border-radius:22px;padding:28px;box-shadow:0 12px 36px rgba(30,45,25,.08)}
.brand{font-size:12px;letter-spacing:3px;color:#687750;margin-bottom:8px}
h1{margin:.2rem 0 .4rem;font-size:30px}
h2{font-size:22px;line-height:1.8}
.sub{color:#66705f}
.notice{background:#f3f5ed;border-right:4px solid #687750;padding:14px;border-radius:10px;margin:24px 0;line-height:1.9}
button{border:0;border-radius:12px;padding:13px 18px;font-size:16px;cursor:pointer;background:#566744;color:#fff}
button:hover{filter:brightness(.95)}
.hidden{display:none!important}
.options{display:grid;gap:10px;margin-top:18px}
.option{width:100%;text-align:right;background:#f7f8f4;color:#26311f;border:1px solid #dfe4d8}
.option:hover{background:#eef2e7}
.progress{height:8px;background:#ecefe8;border-radius:999px;margin:10px 0 24px;overflow:hidden}
#bar{height:100%;width:8%;background:#687750;transition:width .25s}
.qid{font-size:12px;color:#909889}
.resultBox{background:#f7f8f4;padding:18px;border-radius:14px;margin-top:16px}
.safe{background:#fff0ed;border-right:4px solid #9a3f32;padding:16px;border-radius:10px;line-height:1.8}
.score{font-size:12px;color:#7a8373}
.dx{font-size:20px;font-weight:700;margin-bottom:4px}
.clue{font-size:14px;color:#56604f;line-height:1.7}
input{width:100%;padding:14px;border-radius:10px;border:1px solid #ccd3c4;font-size:17px;margin-bottom:10px}

.rank{float:right;margin-left:10px;width:32px;height:32px;border-radius:50%;background:#687750;color:white;display:flex;align-items:center;justify-content:center;font-weight:bold}.en{font-size:12px;color:#8a9284;margin:2px 42px 7px 0}.resultBox{position:relative;overflow:hidden}

.checkOption{display:flex;gap:10px;align-items:flex-start;background:#f7f8f4;border:1px solid #dfe4d8;border-radius:12px;padding:12px;line-height:1.7}.checkOption input{width:auto;margin-top:5px}
/* Final Persian patient-facing UI — Vazirmatn via official rastikerdar CDN */
:root{font-family:Vazirmatn,Tahoma,Arial,sans-serif}
html,body,button,input,select,textarea{font-family:inherit}
.pageHeader h1{font-size:clamp(22px,4vw,29px);line-height:1.6;margin:0}
.guidance{margin:4px 0 20px;font-size:17px;line-height:1.8}
.intro,.disclaimer,.resultIntro{line-height:2;font-size:17px}
.disclaimer{color:#66705f;font-size:15px;margin-top:20px}
.nav{display:flex;gap:10px;justify-content:flex-start;flex-wrap:wrap;margin-top:20px}
.secondary{background:#e9eee2;color:#3b5131;border:1px solid #aab89d}
button:disabled{opacity:.5;cursor:not-allowed}
.resultHead{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.rank{float:none;flex:0 0 32px;margin:0}
.score{display:flex;justify-content:space-between;font-size:16px;gap:12px;color:#4c6142}
.meter{height:8px;border-radius:30px;background:#e1e6db;overflow:hidden;margin:10px 0 15px}
.meter div{height:100%;background:#718659;border-radius:30px}
details{border-top:1px solid #dfe4d8;padding-top:9px;font-size:14px}
summary{cursor:pointer;color:#566744}
.clue{overflow-wrap:anywhere;margin-top:8px}
.kneeMap{background:#fbfcf8;border:1px solid #e1e6da;border-radius:16px;padding:14px}
.mapTitle,.mapHint,.mapSelection{text-align:center;color:#59684c;line-height:1.8;margin:5px 0 10px}
.mapHint{font-size:13px}
.mapSelection{font-weight:bold}
.kneeViews{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.kneeView{text-align:center;background:#fff;border-radius:12px;border:1px solid #e7eadf;padding:9px}
.kneeView strong{display:block;font-size:16px}
.kneeView svg{max-width:190px;width:100%;height:auto;display:block;margin:auto}
.mapZones ellipse{fill:#80965a;fill-opacity:.10;stroke:#718659;stroke-opacity:.65;stroke-dasharray:4 4;stroke-width:1.6;cursor:pointer;transition:fill-opacity .15s}
.mapZones ellipse:hover,.mapZones ellipse:focus,.mapZones ellipse.selected{fill:#718659;fill-opacity:.53;stroke-opacity:1;outline:none}
.multiOptions{display:grid;gap:10px}
@media(max-width:480px){.card{padding:18px}.shell{padding:12px}.kneeViews{gap:7px}.kneeView{padding:4px}}

.sideSwitch{display:flex;justify-content:center;align-items:center;gap:10px;margin:10px 0}.sideSwitch select{padding:7px 12px;border:1px solid #bac6ae;border-radius:9px;font:inherit;background:white}

/* Image-backed, accessible, two-step location selection */
.shell{max-width:1100px}.locationPicker{display:grid;grid-template-columns:minmax(230px,1fr) minmax(250px,1fr);gap:20px;direction:ltr;align-items:start}
.locationPicture{position:relative;direction:ltr;max-width:100%;background:#f8f8f6;border-radius:16px;overflow:hidden;border:1px solid #e1e5d9}
.locationPicture img{width:100%;display:block;height:auto}.locationHotspots{position:absolute;inset:0}
.locationZone{position:absolute;border:2px solid transparent;border-radius:48%;background:transparent;padding:0;min-width:25px;min-height:25px;transition:background .15s,border-color .15s}
.locationZone.hovered,.locationZone:focus-visible{background:#71865955;border-color:#425e29}.locationZone.chosen{background:#71865966;border-color:#294e20}
.locationControls{direction:rtl;display:grid;gap:8px}.locationHint{margin:0 0 6px;color:#526447;line-height:1.7;font-size:15px}
.locationChoice{background:#f8faf6;color:#26311f;border:1px solid #d4ddcd;text-align:right;line-height:1.6;padding:10px 14px}
.locationChoice.hovered,.locationChoice:focus-visible{background:#edf3e6;border-color:#799260}.locationChoice.chosen{background:#e4eed8;border:2px solid #617f3b}
.locationNext{margin-top:8px}.locationNext:disabled{opacity:.4}
@media(max-width:650px){.locationPicker{grid-template-columns:1fr;gap:12px}.locationPicture{max-width:430px;width:100%;margin:auto}.locationChoice{padding:9px 12px}}

/* Fixed-view knee selector: genuine interactive view controls */
.viewBar{position:relative;display:flex;gap:6px;padding:9px;background:#f8faf6;direction:rtl;justify-content:center;z-index:3}
.viewBar button{flex:1;min-width:0;padding:10px 3px;background:white;color:#31442a;border:1px solid #b8c6b1;border-radius:9px;font-weight:700}
.viewBar button.active{background:#526b3a;color:white}
.overviewZone{border-radius:42%;border:3px solid #667f43;z-index:2;background:rgba(107,135,67,.06)}
.overviewZone.hovered,.overviewZone.chosen{background:rgba(110,141,62,.24);border-color:#345a25}
.overviewZone.deepZone{border-radius:48%;border-width:4px}
.locationZone[hidden]{display:none!important}
.lateralFocused{overflow:hidden}
.lateralFocused img{width:100%;height:auto}

/* v36 two-stage location UI: stage one has no numbered subregions */
.overviewClean{max-width:430px;margin-inline:auto;background:#f5f5f5}
.overviewClean .overviewCaption{direction:rtl;font-size:13px;text-align:center;padding:8px 12px;margin:0;color:#45593b}
.overviewClean .locationHotspots{bottom:36px}
.overviewClean .overviewZone{border-radius:45%;z-index:2}
.overviewClean .deepZone{z-index:1;border-radius:48%}
.overviewClean .overviewZone:not(.chosen):not(.hovered){background:transparent;border-color:transparent}

/* Final approved five-image first step: no subregion numbering. */
.overviewCards{background:#fff;border:0;overflow:visible}
.overviewCardGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:4px;direction:rtl}
.overviewCard{position:relative;display:flex;flex-direction:column;overflow:hidden;align-items:stretch;border:2px solid #d5dfcb;background:#fff;border-radius:15px;padding:0;color:#293b22;cursor:pointer}
.overviewCard img{width:100%;aspect-ratio:1;object-fit:cover;display:block}
.overviewCard>span:not(.deepJointOval){padding:9px 3px;font-weight:700;font-size:14px;direction:rtl;text-align:center}
.overviewCard.hovered,.overviewCard:focus-visible,.overviewCard.chosen{border-color:#48652d;background:#e9f0df;box-shadow:0 0 0 2px #7d99534d}
.overviewCard.chosen img,.overviewCard.hovered img{filter:saturate(1.18)}
.deepJointOval{display:none;position:absolute;top:19%;left:18%;width:64%;height:60%;border:4px solid #41632b;background:#78944d38;border-radius:48%;pointer-events:none}
.overviewCard.hovered .deepJointOval,.overviewCard.chosen .deepJointOval,.overviewCard:focus-visible .deepJointOval{display:block}
@media(max-width:650px){.overviewCardGrid{gap:8px}.overviewCard>span:not(.deepJointOval){font-size:12px;padding:7px 2px}}
