/* Mediwisa sitesi — koyu tema + erişilebilirlik paneli (21.11.2026; kullanıcı: «w45 deki erişilebilirlik ve dark light modu da ekle siteye»).
   Kaynak: w45crm.com assets/site.css (§5.20 paneli + tema düğmesi) — Mediwisa değişkenleriyle. Tema: <html data-theme="dark"> (head betiği
   ilk boyamadan önce yazar, erisim.js değiştirir). --yuzey: beyaz kart / cam zeminleri (site.css'teki #fff'ler buna bağlı, uret.py çevirir);
   --p1-yazi / --vurgu-yazi: mavinin YAZI rengi olarak kullanıldığı yerler (koyu temada daha açık mavi; düğme zemini koyu mavide kalır,
   beyaz yazıyla 4,86:1). Yazı boyutu kuralları assets/erisim-boyut.css (ÜRETİLİR: dagitim/site/uret.py; yalnız ayar açıkken iner). */

/* ---------- 0 · değişkenler ---------- */
:root{--yuzey:#fff;--mw-ff:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;--ea-maske:rgba(0,0,0,.62);--ea-imlec:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 24 24'%3E%3Cpath d='M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z' fill='%23111' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") 7 7;--ea-imlec-el:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='-1 -1 26 26' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg stroke='%23fff' stroke-width='4.2'%3E%3Cpath d='M22 14a8 8 0 0 1-8 8'/%3E%3Cpath d='M18 11v-1a2 2 0 0 0-2-2a2 2 0 0 0-2 2'/%3E%3Cpath d='M14 10V9a2 2 0 0 0-2-2a2 2 0 0 0-2 2v1'/%3E%3Cpath d='M10 9.5V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v10'/%3E%3Cpath d='M18 11a2 2 0 1 1 4 0v3a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15'/%3E%3C/g%3E%3Cg stroke='%23111' stroke-width='2'%3E%3Cpath d='M22 14a8 8 0 0 1-8 8'/%3E%3Cpath d='M18 11v-1a2 2 0 0 0-2-2a2 2 0 0 0-2 2'/%3E%3Cpath d='M14 10V9a2 2 0 0 0-2-2a2 2 0 0 0-2 2v1'/%3E%3Cpath d='M10 9.5V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v10'/%3E%3Cpath d='M18 11a2 2 0 1 1 4 0v3a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15'/%3E%3C/g%3E%3C/svg%3E") 15 5}
[data-renk]{--p1-yazi:var(--p1);--vurgu-yazi:var(--vurgu)}
:root[data-theme="dark"]{color-scheme:dark;--yuzey:#181c22;
  --z0:#0f1216;--z1:#14171c;--z2:#1a1e25;--z3:#242a33;--cizgi:#2e3540;--cizgi-yumusak:#252b34;
  --y0:#eef2f7;--y1:#c7ced8;--y2:#9ca6b4;--y3:#87929f;
  --iyi:#4ccf8f;--bekle:#f0bf4c;--kotu:#ff7b6b;--mavi:#6fb2ff;--mw-lacivert:#eef2f7}
:root[data-theme="dark"] [data-renk]{--p1-yazi:#6fb2ff;--vurgu-yazi:#6fb2ff;--vurgu-zemin:color-mix(in srgb,var(--p1) 22%,var(--yuzey))}
/* PageSpeed renk karşıtlığı (≥4,5:1): koyu temada açık renkli çiplerin üstündeki beyaz yazı koyu; açık temada seçili sekme yazısı biraz koyu */
:root[data-theme="dark"] .no-sira b.plan,:root[data-theme="dark"] .no-sira b.yap,:root[data-theme="dark"] .tkv-simdi b{color:#0f1216}
:root:not([data-theme="dark"]) .tkv-anahtar a.on{color:color-mix(in srgb,var(--vurgu-yazi) 88%,#000)}
/* koyu temada açık zemin için yazılmış koyu yazılar */
:root[data-theme="dark"] .d-arandi{color:var(--bekle)}
:root[data-theme="dark"] .btn6.grad{box-shadow:0 10px 24px -14px #000}
:root[data-theme="dark"] .sahne-cerceve,:root[data-theme="dark"] .cerceve6{border-color:var(--cizgi)}
:root[data-theme="dark"] .yuzen{border-color:var(--cizgi)}
:root[data-theme="dark"] img:not([src$=".svg"]){filter:brightness(.92)}

/* Yüksek kontrast: zemin tam beyaz / tam siyah, yazılar tam siyah / tam beyaz, çizgiler belirgin */
:root.ea-kontrast:not([data-theme="dark"]){--z0:#fff;--z1:#fff;--z2:#fff;--z3:#f2f2f2;--yuzey:#fff;--cizgi:rgba(0,0,0,.6);--cizgi-yumusak:rgba(0,0,0,.45);--y0:#000;--y1:#000;--y2:#111;--y3:#222}
:root.ea-kontrast[data-theme="dark"]{--z0:#000;--z1:#000;--z2:#000;--z3:#111;--yuzey:#000;--cizgi:rgba(255,255,255,.6);--cizgi-yumusak:rgba(255,255,255,.45);--y0:#fff;--y1:#fff;--y2:#f0f0f0;--y3:#e0e0e0}
:root.ea-kontrast :focus-visible{outline-width:3px}

/* ---------- 1 · üst çubuk: erişilebilirlik + tema düğmeleri (Klinik girişi düğmesinin ölçüsünde) ---------- */
.ust6-sag{align-items:center}
.erisim6,.tema6{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;width:40px;height:40px;padding:0;border-radius:12px;border:1px solid color-mix(in srgb,var(--p1) 22%,var(--cizgi));background:color-mix(in srgb,var(--yuzey) 75%,transparent);color:var(--y0);cursor:pointer;transition:background-color .18s ease,border-color .18s ease}
.erisim6:hover,.tema6:hover{background:var(--vurgu-zemin)}
.erisim6[aria-expanded="true"]{background:var(--vurgu-zemin);border-color:var(--p1)}
.erisim6 svg,.tema6 svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.erisim6[data-ayarli]::after{content:"";position:absolute;top:-4px;right:-4px;width:10px;height:10px;border-radius:50%;background:var(--p1);box-shadow:0 0 0 2px var(--z1)}
.tema6 .tema-gunes,:root[data-theme="dark"] .tema6 .tema-ay{display:none}
:root[data-theme="dark"] .tema6 .tema-gunes{display:block}
.ust6 .logo6-ikon{display:none}
/* 1000 px ve altı: üstteki düğmelere yer açmak için Klinik girişi yalnız simge (telefondaki gibi) */
@media (max-width:1000px){.ust6-sag .cam{padding-inline:9px}.ust6-sag .cam span{display:none}}
@media (max-width:480px){.ust6 .kap{gap:12px}.ust6 .logo6 .logo6-tam{display:none}.ust6 .logo6 .logo6-ikon{display:block;height:30px;width:auto}.ust6-sag{gap:6px}.erisim6,.tema6,.ust6 .dil6{width:38px;height:38px}}
/* Telefon: üstteki dil düğmesine yer açmak için sağ grup sıkışır; 374 px ve altında dil seçimi yalnız alt bilgide */
@media (max-width:420px){.ust6 .kap{gap:8px}.ust6-sag{gap:4px}.erisim6,.tema6,.ust6 .dil6{width:36px;height:36px}.ust6-sag .cam{padding-inline:8px}.ust6-sag .grad{padding:9px 11px;font-size:13px}}
@media (max-width:374px){.ust6 .dil6{display:none}}

/* ---------- 2 · panel (erisim.js kurar; üst çubuğun hemen altında, sağda) ---------- */
.ea-panel .ic{display:block;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ea-panel{position:fixed;z-index:60;top:calc(var(--ea-ust,70px) + 10px);right:16px;width:392px;max-height:calc(100dvh - var(--ea-ust,70px) - 20px);display:flex;flex-direction:column;background:var(--yuzey);border:1px solid var(--cizgi);border-radius:16px;box-shadow:0 24px 60px -20px rgba(16,24,40,.45);color:var(--y0);font:400 14px/1.45 var(--mw-ff);overflow:hidden;text-align:left}
.ea-panel:focus{outline:none}
.ea-panel.acil{animation:eaGir .18s ease-out}
@keyframes eaGir{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.ea-bas{display:flex;align-items:center;gap:12px;padding:12px 12px 11px 16px;border-bottom:1px solid var(--cizgi-yumusak);flex:none}
.ea-logo{width:36px;height:36px;border-radius:10px;background:var(--grad,var(--p1));color:#fff;display:flex;align-items:center;justify-content:center;flex:none}
.ea-logo .ic{width:21px;height:21px}
.ea-bas h2{margin:0;font:700 16.5px/1.2 var(--mw-ff);letter-spacing:-.01em;color:var(--y0)}
.ea-bas p{margin:2px 0 0;font-size:12.5px;line-height:1.35;color:var(--y2)}
.ea-kapat{margin-left:auto;flex:none;width:34px;height:34px;border-radius:9px;border:1px solid var(--cizgi);background:transparent;color:var(--y0);display:flex;align-items:center;justify-content:center;cursor:pointer}
.ea-kapat:hover{background:var(--z2)}
.ea-kapat .ic{width:18px;height:18px}
.ea-govde{flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;padding:0 14px 12px}
.ea-bolum{margin-top:11px}
.ea-bolum > h3{margin:0 2px 7px;font:600 11px/1 var(--mw-ff);letter-spacing:.08em;text-transform:uppercase;color:var(--y3)}
.ea-izgara{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ea-izgara.ea-ara{margin-top:8px}
.ea-kare{display:flex;align-items:center;gap:10px;min-height:42px;padding:6px 10px;border:1px solid var(--cizgi);border-radius:12px;background:var(--yuzey);color:var(--y0);font:600 13px/1.25 var(--mw-ff);text-align:left;cursor:pointer;transition:background-color .15s ease,border-color .15s ease}
.ea-kare:hover{border-color:var(--y3);background:var(--z2)}
.ea-kare:disabled{opacity:.5;cursor:default}
.ea-kare > .ic{width:18px;height:18px;color:var(--y2);flex:none}
.ea-kare > span{flex:1;min-width:0}
.ea-kare small{display:block;margin-top:2px;font-weight:400;font-size:11.5px;line-height:1.3;color:var(--y2)}
.ea-kare .ea-tik{flex:none;width:18px;height:18px;border-radius:50%;border:1.5px solid var(--y3);display:flex;align-items:center;justify-content:center;color:transparent}
.ea-kare .ea-tik .ic{width:12px;height:12px;stroke-width:3}
.ea-kare[aria-pressed="true"]{border-color:color-mix(in srgb,var(--p1) 55%,transparent);background:var(--vurgu-zemin)}
.ea-kare[aria-pressed="true"] > .ic{color:var(--p1-yazi)}
.ea-kare[aria-pressed="true"] .ea-tik{background:var(--p1);border-color:var(--p1);color:#fff}
.ea-profil{min-height:50px}
.ea-satir{display:flex;align-items:center;gap:10px;min-height:44px;padding:4px 5px 4px 10px;border:1px solid var(--cizgi);border-radius:12px;background:var(--yuzey)}
.ea-satir + .ea-satir{margin-top:8px}
.ea-satir > .ic{width:18px;height:18px;color:var(--y2);flex:none}
.ea-satir > span{font:600 13px/1.25 var(--mw-ff)}
.ea-satir.degisti{border-color:color-mix(in srgb,var(--p1) 55%,transparent);background:var(--vurgu-zemin)}
.ea-satir.degisti > .ic{color:var(--p1-yazi)}
.ea-adim{margin-left:auto;display:flex;align-items:center;gap:4px}
.ea-adim button{width:32px;height:32px;border-radius:9px;border:1px solid var(--cizgi);background:var(--z2);color:var(--y0);display:flex;align-items:center;justify-content:center;cursor:pointer}
.ea-adim button:hover:not(:disabled){border-color:var(--y3)}
.ea-adim button:disabled{opacity:.4;cursor:default}
.ea-adim button .ic{width:16px;height:16px;stroke-width:2.2}
.ea-adim output{min-width:50px;text-align:center;font:700 13.5px/1 var(--mw-ff);font-variant-numeric:tabular-nums}
.ea-sec{margin-left:auto;display:inline-flex;padding:3px;border:1px solid var(--cizgi);border-radius:10px;gap:2px;background:var(--z2)}
.ea-sec button{border:0;background:transparent;color:var(--y2);font:600 12.5px/1 var(--mw-ff);padding:7px 9px;border-radius:7px;cursor:pointer;white-space:nowrap}
.ea-sec button:hover{color:var(--y0)}
.ea-sec button[aria-pressed="true"]{background:var(--yuzey);color:var(--y0);box-shadow:0 1px 2px rgba(0,0,0,.12)}
.ea-alt{display:flex;align-items:center;gap:12px;padding:9px 12px 9px 14px;border-top:1px solid var(--cizgi-yumusak);flex:none}
.ea-sifirla{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 13px;border-radius:9px;border:1px solid var(--cizgi);background:transparent;color:var(--y0);font:600 13px/1 var(--mw-ff);cursor:pointer;white-space:nowrap}
.ea-sifirla:hover:not(:disabled){background:var(--z2)}
.ea-sifirla:disabled{opacity:.45;cursor:default}
.ea-sifirla .ic{width:16px;height:16px}
.ea-alt p{margin:0 0 0 auto;font-size:11.5px;line-height:1.35;color:var(--y2);text-align:right}
@media (max-width:560px){.ea-panel{left:8px;right:8px;width:auto;top:calc(var(--ea-ust,64px) + 8px);max-height:calc(100dvh - var(--ea-ust,64px) - 16px)}.ea-kare small{font-size:11px}.ea-sec button{padding:7px 6px}}
@media (max-width:400px){.ea-izgara{grid-template-columns:1fr}}

/* ---------- 3 · ayarların sayfaya etkisi (html sınıfları) ---------- */
/* Okuma maskesi */
.ea-maske-ust,.ea-maske-alt{position:fixed;left:0;right:0;z-index:58;pointer-events:none;background:var(--ea-maske)}
.ea-maske-ust{top:0;height:var(--ea-my,40vh)}
.ea-maske-alt{top:calc(var(--ea-my,40vh) + var(--ea-mh,128px));bottom:0}
.ea-maske-ust::after,.ea-maske-alt::before{content:"";position:absolute;left:0;right:0;height:2px;background:var(--p1)}
.ea-maske-ust::after{bottom:0}
.ea-maske-alt::before{top:0}
/* Sesli okuma */
:root.ea-ses :is(main,.ft6) :is(p,h1,h2,h3,h4,li,dd,dt,summary,blockquote,figcaption){cursor:pointer}
.ea-okunuyor{outline:3px solid var(--p1) !important;outline-offset:4px;border-radius:6px;background:var(--vurgu-zemin)}
.ea-not{position:fixed;z-index:61;left:50%;bottom:24px;transform:translateX(-50%);max-width:calc(100vw - 32px);padding:11px 16px;border-radius:12px;background:var(--yuzey);border:1px solid var(--cizgi);box-shadow:0 16px 40px -18px rgba(0,0,0,.45);color:var(--y0);font:600 13.5px/1.4 var(--mw-ff);text-align:center}
/* Yazı boyutu: yalnız yazılar büyür; kurallar erisim-boyut.css (h1 ve 48 px üstü hariç, üst çubuk / panel / maketler aynı) */
:root.ea-b1{--ea-f:1.15;--ea-fb:1.06}
:root.ea-b2{--ea-f:1.3;--ea-fb:1.12}
:root.ea-b3{--ea-f:1.5;--ea-fb:1.2}
:root.ea-boyut .ust6{font-size:15px}
:root.ea-b2 .ft6-izgara,:root.ea-b3 .ft6-izgara{grid-template-columns:minmax(0,1fr)}
/* Metin aralığı (WCAG 1.4.12) */
:root.ea-a1 :is(main,.ft6) :is(p,li,dd,dt,h1,h2,h3,h4,summary,blockquote,label,figcaption,td,th):not([aria-hidden="true"] *){line-height:1.8 !important;letter-spacing:.035em !important;word-spacing:.1em !important}
:root.ea-a2 :is(main,.ft6) :is(p,li,dd,dt,h1,h2,h3,h4,summary,blockquote,label,figcaption,td,th):not([aria-hidden="true"] *){line-height:2.05 !important;letter-spacing:.12em !important;word-spacing:.16em !important}
:root.ea-a2 :is(main,.ft6) p:not([aria-hidden="true"] *){margin-bottom:.6em}
/* Okunaklı yazı tipi (Verdana; yoksa Tahoma / DejaVu Sans) */
:root.ea-font body,:root.ea-font :is(button,input,select,textarea){font-family:Verdana,Tahoma,"DejaVu Sans",system-ui,sans-serif}
:root.ea-font :is(h1,h2,h3,h4){letter-spacing:0}
/* Renkleri yumuşat */
:root.ea-sakin :is(main,.ft6,.ust6){filter:saturate(.35)}
/* Animasyonları durdur */
:root.ea-hareket *,:root.ea-hareket *::before,:root.ea-hareket *::after{animation-duration:.001ms !important;animation-delay:0s !important;animation-iteration-count:1 !important;transition-duration:.001ms !important;transition-delay:0s !important}
:root.ea-hareket{scroll-behavior:auto !important}
/* Bağlantıları vurgula */
:root.ea-baglanti :is(main,.ft6,.ust6) a{text-decoration:underline 2px !important;text-underline-offset:3px !important;outline:2px solid color-mix(in srgb,#f5c518 80%,transparent);outline-offset:2px;border-radius:4px}
:root.ea-baglanti :is(main,.ft6,.ust6) button:not(.erisim6):not(.tema6){outline:2px solid color-mix(in srgb,#f5c518 80%,transparent);outline-offset:2px}
/* Büyük imleç */
:root.ea-imlec,:root.ea-imlec *{cursor:var(--ea-imlec),auto !important}
:root.ea-imlec :is(a,button,summary,label,[role="button"]),:root.ea-imlec :is(a,button,summary,label,[role="button"]) *{cursor:var(--ea-imlec-el),pointer !important}
:root.ea-imlec :is(input[type="text"],input[type="email"],input[type="tel"],input:not([type]),textarea){cursor:text !important}
