/* V24: readable type, bidirectional layout, existing MyCare palette retained. */
@font-face{font-family:Vazirmatn;src:url('/assets/fonts/Vazirmatn.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
:root{--mc-muted:#526a60;--mc-body-size:1rem}
body{font-size:var(--mc-body-size);line-height:1.65}
html[lang=fa] body{font-family:Vazirmatn,Tahoma,sans-serif;font-size:1.0625rem;line-height:1.9}
html[lang=fa] :is(h1,h2,h3,h4,.mc-eyebrow,.mc-brand,.mc-intro__phase,.mc-intro__signature){font-family:Vazirmatn,Tahoma,sans-serif;letter-spacing:0;text-transform:none}
h1,h2,h3{overflow-wrap:anywhere;text-wrap:balance}
.mc-home-hero h1,.mc-page-heading h1{font-size:clamp(2rem,3.4vw,3rem);line-height:1.22;letter-spacing:-.025em}
html[lang=fa] :is(.mc-home-hero h1,.mc-page-heading h1){font-size:clamp(1.875rem,3vw,2.75rem);line-height:1.6;letter-spacing:0;font-weight:750}
:is(.mc-care-card,.mc-context-card) h2{font-size:1.25rem;line-height:1.6;margin-block:0 1rem}
.mc-modal h2{font-size:1.25rem;line-height:1.6}
.mc-modal h3,.mc-flow-step h3{font-size:1.375rem;line-height:1.6}
.mc-page-heading p,.mc-home-hero p{font-size:1.0625rem;line-height:1.85}
.mc-eyebrow,.mc-intro__phase{font-size:.875rem;line-height:1.6;letter-spacing:.06em}
html[lang=fa] :is(.mc-eyebrow,.mc-intro__phase){letter-spacing:0}
.mc-demo-pill,.mc-status-pill,.mc-helper,.mc-field>span,.mc-field small,.mc-sidebar__principles,small{font-size:.875rem;line-height:1.8}
.mc-status-pill{white-space:normal;max-width:100%}
input,textarea,select,button{font-size:1rem}
input,textarea,select{line-height:1.7;min-height:48px}
textarea{resize:vertical}
button{touch-action:manipulation}
.mc-btn,.mc-text-btn,.mc-icon-btn{min-height:48px}
.mc-home-action,.mc-sidebar__nav button{text-align:start}
.mc-home-action{grid-template-columns:auto 1fr;box-shadow:none;padding:1.25rem;align-items:start}
.mc-home-action strong{font-size:1.0625rem;line-height:1.7}
.mc-home-action small{font-size:.9375rem;line-height:1.85}
.mc-home-hero{min-height:260px;box-shadow:none}
.mc-home-hero img{min-height:260px;max-height:340px}
.mc-home-hero__copy{padding:2rem}
.mc-home-context{grid-template-columns:1fr 1fr;margin-top:1.5rem}
.mc-latest{margin-block:1.5rem; border-inline-start:4px solid var(--mc-green)}
.mc-latest small{display:block;margin-block:.5rem}
.mc-latest p,[data-user-content]{white-space:pre-wrap;overflow-wrap:anywhere}
.mc-sidebar{gap:1.25rem}
.mc-sidebar .mc-brand{padding:0 10px 12px}
.mc-sidebar__principles{color:#d0e0d8}
.mc-step-labels{display:flex;gap:.5rem;padding:0;list-style:none;counter-reset:steps;margin-block:1rem 1.5rem}
.mc-step-labels li{flex:1;padding:.75rem .5rem;border-bottom:3px solid var(--mc-line);color:var(--mc-muted);font-size:.875rem}
.mc-step-labels li.active{border-color:var(--mc-green);color:var(--mc-green);font-weight:750}
.mc-choice-field{border:0;padding:0;margin:1.25rem 0;min-width:0}
.mc-choice-field legend{font-weight:700;padding:0}
.mc-flow-actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.5rem}
.mc-flow-actions .mc-btn{flex:1 1 160px}
.mc-region-list button,.mc-subareas button,.mc-choice-row button{font-size:.9375rem;min-height:48px;line-height:1.7;padding:.625rem .875rem}
.mc-body-map__hotspot:focus{stroke:#a14d28;stroke-width:4}
.mc-record-check input,.mc-plan-item input{width:22px;height:22px;min-height:22px;flex-shrink:0;accent-color:var(--mc-green)}
.mc-record-list article{grid-template-columns:minmax(0,1fr) auto}
.mc-history-entry{gap:1rem;align-items:start;flex-wrap:wrap;font-size:.9375rem}
.mc-history-entry p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.mc-inline-notice{border-left:0;border-inline-start:4px solid var(--mc-coral)}
.mc-error{color:#a22b24;font-weight:600}
.mc-modal{max-height:calc(100dvh - 2rem);overscroll-behavior:contain}
.mc-modal__header{gap:1rem}
.mc-modal__header h2{margin:0}
.mc-modal__header .mc-btn{flex-shrink:0}
.mc-modal__body{padding:1.5rem}
.mc-appointment-modal__row{flex-wrap:wrap}
.mc-appointment-modal__row span{unicode-bidi:plaintext}
.mc-tabs{flex-wrap:wrap}
.mc-tabs button{font-size:.9375rem;min-height:48px}
.mc-intro{height:auto;min-height:100svh;overflow:visible;display:flex;flex-direction:column}
.mc-intro__main{height:auto;min-height:calc(100svh - 210px);padding-block:2rem;flex:1}
.mc-intro__footer{position:relative;margin-top:auto;padding-bottom:max(1.5rem,env(safe-area-inset-bottom))}
.mc-intro__main h1{font-size:clamp(2.25rem,5vw,4rem);line-height:1.2}
html[lang=fa] .mc-intro__main h1{font-size:clamp(2rem,4.4vw,3.5rem);line-height:1.65}
.mc-intro--rtl .mc-intro__main{align-items:flex-start;text-align:start}
.mc-intro__main p{font-size:1.125rem;line-height:1.9}
.mc-intro--rtl .mc-intro__signature{font-size:1.6rem;font-weight:700;letter-spacing:0}
html[lang=fa] .mc-brand{font-size:1.65rem;font-weight:700;letter-spacing:0}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid #ad5b36;outline-offset:3px}
.mc-flow-step h3:focus{outline:none}
@media(max-width:900px){
 .mc-page{padding-bottom:2rem}.mc-home-context{grid-template-columns:1fr}
 .mc-home-hero{grid-template-columns:1fr}.mc-home-hero img{height:160px;min-height:160px}.mc-home-hero__copy{padding:1.5rem}
 .mc-bottom-nav{gap:2px}.mc-bottom-nav button{font-size:.875rem;min-height:56px;line-height:1.5;padding:5px 2px}
 .mc-shell__page{padding-bottom:calc(90px + env(safe-area-inset-bottom))}
 .mc-topbar{height:72px}.mc-shell__page{padding-top:72px}
}
@media(max-width:600px){
 .mc-intro__overlay,.mc-intro--rtl .mc-intro__overlay{background:linear-gradient(180deg,rgba(7,34,28,.2),rgba(7,34,28,.15) 20%,rgba(7,34,28,.7) 55%,rgba(7,34,28,.96))}
 .mc-intro__main{min-height:calc(100svh - 185px);justify-content:flex-end;padding:1rem 1.25rem 1.5rem;width:100%}
 .mc-intro__main p{font-size:1rem}.mc-intro__phase{font-size:.875rem}
 .mc-intro__main h1{font-size:2.25rem}.mc-logo-morph{width:76px;height:76px}
 .mc-modal-backdrop{padding:8px}.mc-modal{max-height:calc(100dvh - 16px);border-radius:20px}.mc-modal__body{padding:1rem}
 .mc-region-list{grid-template-columns:repeat(2,minmax(0,1fr))}.mc-choice-row{flex-wrap:wrap}
 .mc-doctor-card__head{grid-template-columns:64px minmax(0,1fr)}.mc-doctor-avatar{width:64px;height:64px}
 .mc-step-labels{gap:4px}.mc-step-labels li{padding:.5rem .25rem}
}
@media(prefers-color-scheme:dark){
 :root{--mc-bg:#10221f;--mc-surface:#18332e;--mc-surface-soft:#24483e;--mc-ink:#edf6f0;--mc-muted:#bccfc5;--mc-line:#426357;--mc-green:#a3d7be;--mc-green-deep:#c1ead5}
 .mc-shell,.mc-shell__page{background:var(--mc-bg)}
 .mc-context-card,.mc-topbar,.mc-bottom-nav,.mc-modal__header,.mc-search-field,.mc-record-check{background:var(--mc-surface);color:var(--mc-ink);border-color:var(--mc-line)}
 .mc-inline-notice{background:#3a342a;color:#fff2e5}.mc-summary-card,.mc-doctor-detail-grid>div,.mc-doctor-services span{color:var(--mc-ink)}
 .mc-home-hero h1,.mc-context-card h2,.mc-home-action strong,.mc-summary-card p,.mc-doctor-detail h3,.mc-eyebrow{color:var(--mc-ink)}
 .mc-home-action small,.mc-doctor-location,.mc-doctor-availability,.mc-record-list p,.mc-record-list small{color:var(--mc-muted)}
 .mc-btn--primary,.mc-choice-row button.chosen,.mc-region-list button.chosen,.mc-subareas button.chosen{background:#a3d7be;color:#102b22;border-color:#a3d7be}
 .mc-status-pill{background:#284e40;color:#d4f4e2}.mc-demo-pill{background:#284036;color:#dae9e1}.mc-btn--danger{background:#372721;color:#ffc3b6}
 .mc-error{color:#ffb4a9}.mc-bottom-nav button{color:#c0d1c8}.mc-sidebar .mc-btn{color:#d9f0e4}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
