/* otispanel.com — üst çubuk ayarları (TR | EN · erişilebilirlik · tema) + erişilebilirlik paneli + ayarların sayfaya etkisi (21.11.2026).
   Kaynak: w45crm.com paneli (w45crm-com-dv BILESENLER §5.20). Ana sayfa (#nav, koyu cam çubuk) ve yasal sayfalar (.ust, koyu bant)
   aynı dosyayı kullanır. <html data-theme="light|dark"> ve ea-* sınıfları head betiğinden gelir (erisim_ortak.BAS_BETIK).
   Yazı boyutu kuralları ÜRETİLİR: ana sayfa /assets/otis-erisim-boyut.css, yasal sayfalar kendi CSS'inde (erisim_uret.py). */

/* ---------- panel renkleri (iki tema) ---------- */
:root {
  --ea-kart: #ffffff; --ea-kart2: #f6f9fc; --ea-kart-h: #eef3f9;
  --ea-cizgi: rgba(14, 26, 43, .12); --ea-cizgi2: rgba(14, 26, 43, .22); --ea-cizgi3: rgba(14, 26, 43, .42);
  --ea-yazi: #0e1a2b; --ea-soluk: #4f5f74; --ea-vurgu: #1b8fd0; --ea-vurgu-zemin: rgba(61, 181, 245, .12); --ea-vurgu-kenar: rgba(27, 143, 208, .55);
  --ea-dugme: #0e1a2b; --ea-dugme-yazi: #f6f9fc; --ea-secili: rgba(14, 26, 43, .08); --ea-golge: 0 24px 48px -16px rgba(14, 26, 43, .35);
  --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;
}
:root[data-theme="dark"] {
  --ea-kart: #13233a; --ea-kart2: #0e1a2b; --ea-kart-h: #1a2d47;
  --ea-cizgi: rgba(246, 249, 252, .1); --ea-cizgi2: rgba(246, 249, 252, .2); --ea-cizgi3: rgba(246, 249, 252, .42);
  --ea-yazi: #eef3f9; --ea-soluk: #a8b6c9; --ea-vurgu: #3db5f5; --ea-vurgu-zemin: rgba(61, 181, 245, .14); --ea-vurgu-kenar: rgba(61, 181, 245, .55);
  --ea-dugme: #3db5f5; --ea-dugme-yazi: #0e1a2b; --ea-secili: rgba(246, 249, 252, .1); --ea-golge: 0 24px 48px -16px rgba(0, 0, 0, .6);
}

/* ---------- üst çubuk: TR | EN · erişilebilirlik · tema (iki sayfa türünde de zemin koyu) ---------- */
.ust-ayar { display: flex; align-items: center; gap: .5rem; }
.dil-sec { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid rgba(246, 249, 252, .22); border-radius: 999px; }
.dil-sec a { display: inline-flex; align-items: center; justify-content: center; min-width: 2.25rem; height: 2rem; padding: 0 .55rem; border-radius: 999px; color: #a8b6c9; font-size: .8125rem; font-weight: 600; line-height: 1; letter-spacing: .03em; text-decoration: none; background: none; transition: color .18s, background-color .18s; }
.dil-sec a:hover { color: #f6f9fc; }
.dil-sec a[aria-current] { background: rgba(246, 249, 252, .16); color: #f6f9fc; }
.ayar-btn { position: relative; display: inline-grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; padding: 0; border: 1px solid rgba(246, 249, 252, .22); border-radius: 999px; background: transparent; color: #f6f9fc; cursor: pointer; transition: background-color .18s, border-color .18s; }
.ayar-btn:hover { background: rgba(246, 249, 252, .1); border-color: rgba(246, 249, 252, .45); }
.ayar-btn[aria-expanded="true"] { background: rgba(246, 249, 252, .16); border-color: rgba(246, 249, 252, .45); }
.ayar-btn svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ayar-btn[data-ayarli]::after { content: ""; position: absolute; top: -2px; right: -2px; width: .625rem; height: .625rem; border-radius: 50%; background: #3db5f5; box-shadow: 0 0 0 2px #0e1a2b; }   /* bir ayar açık */
.ayar-btn:focus-visible, .dil-sec a:focus-visible { outline: 2px solid #f6f9fc; outline-offset: 2px; }
.tema-btn .ik-gunes { display: none; }
:root[data-theme="dark"] .tema-btn .ik-gunes { display: block; }
:root[data-theme="dark"] .tema-btn .ik-ay { display: none; }

/* ana sayfa çubuğu (#nav): masaüstünde bağlantıların sağında, telefonda hamburgerin solunda; TR | EN telefonda menüde */
#nav .menu .dil-sec a { min-width: 3.25rem; height: 2.75rem; font-size: 1rem; }
#nav .nav__links a, #nav .nav__cta { white-space: nowrap; }
@media (max-width: 79.99rem) { #nav .nav__bar { gap: 1.25rem; } #nav .nav__links { gap: 1.25rem; } }
/* ayarlar eklenince bağlantılar 1200 px altında tek satıra sığmıyor → menü düğmesine o genişlikte geçilir (şablonda 1024) */
@media (max-width: 74.99rem) {
  #nav .nav__links, #nav .nav__cta { display: none; }
  #nav .nav__toggle { display: inline-grid; margin-left: 0; }
  #nav .nav__bar { gap: .5rem; }
  #nav .nav__brand { margin-right: auto; }
}
@media (max-width: 39.99rem) { #nav .nav__bar .dil-sec { display: none; } }
@media (max-width: 22.49rem) { #nav .ust-ayar { gap: .375rem; } #nav .ayar-btn { width: 2.25rem; height: 2.25rem; } }

/* ---------- panel: sağda, üst çubuğun hemen altında (--ea-ust = çubuğun alt kenarı, otis-erisim.js ölçer) ---------- */
.ea-panel { position: fixed; z-index: 70; top: calc(var(--ea-ust, 72px) + 10px); right: 16px; width: 392px; max-height: calc(100dvh - var(--ea-ust, 72px) - 20px); display: flex; flex-direction: column; background: var(--ea-kart2); border: 1px solid var(--ea-cizgi2); border-radius: 16px; box-shadow: var(--ea-golge); color: var(--ea-yazi); font: 400 14px/1.45 "Host Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow: hidden; text-align: left; }
.ea-panel[hidden] { display: none; }
.ea-panel:focus { outline: none; }
.ea-panel.acil { animation: eaGir .18s ease-out; }
@keyframes eaGir { from { opacity: 0; transform: translateY(-6px); } }
.ea-panel h2, .ea-panel h3, .ea-panel p { margin: 0; }
.ea-ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; display: block; }
.ea-bas { display: flex; align-items: center; gap: 12px; padding: 12px 12px 11px 16px; border-bottom: 1px solid var(--ea-cizgi); flex: none; }
.ea-logo { width: 36px; height: 36px; border-radius: 10px; background: #3db5f5; color: #0e1a2b; display: flex; align-items: center; justify-content: center; flex: none; }
.ea-logo .ea-ic { width: 21px; height: 21px; }
.ea-bas h2 { font-size: 16.5px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; color: var(--ea-yazi); }
.ea-bas p { font-size: 12.5px; line-height: 1.35; color: var(--ea-soluk); margin-top: 2px; }
.ea-kapat { margin-left: auto; flex: none; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--ea-cizgi2); background: transparent; color: var(--ea-yazi); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.ea-kapat:hover { background: var(--ea-secili); border-color: var(--ea-cizgi3); }
.ea-govde { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 0 14px 12px; }
.ea-bolum { margin-top: 11px; }
.ea-bolum > h3 { font-size: 11px; font-weight: 600; line-height: 1; letter-spacing: .08em; text-transform: uppercase; color: var(--ea-soluk); margin: 0 2px 7px; }
.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(--ea-cizgi2); border-radius: 12px; background: var(--ea-kart); color: var(--ea-yazi); font: 600 13px/1.25 inherit; font-family: inherit; text-align: left; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.ea-kare:hover { border-color: var(--ea-cizgi3); background: var(--ea-kart-h); }
.ea-kare:disabled { opacity: .5; cursor: default; }
.ea-kare > .ea-ic { color: var(--ea-soluk); }
.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(--ea-soluk); }
.ea-kare .ea-tik { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--ea-cizgi3); display: flex; align-items: center; justify-content: center; color: transparent; }
.ea-kare .ea-tik .ea-ic { width: 12px; height: 12px; stroke-width: 3; }
.ea-kare[aria-pressed="true"] { border-color: var(--ea-vurgu-kenar); background: var(--ea-vurgu-zemin); }
.ea-kare[aria-pressed="true"] > .ea-ic { color: var(--ea-vurgu); }
.ea-kare[aria-pressed="true"] .ea-tik { background: var(--ea-dugme); border-color: var(--ea-dugme); color: var(--ea-dugme-yazi); }
.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(--ea-cizgi2); border-radius: 12px; background: var(--ea-kart); }
.ea-satir + .ea-satir { margin-top: 8px; }
.ea-satir > .ea-ic { color: var(--ea-soluk); }
.ea-satir > span { font-size: 13px; font-weight: 600; line-height: 1.25; }
.ea-satir.degisti { border-color: var(--ea-vurgu-kenar); background: var(--ea-vurgu-zemin); }
.ea-satir.degisti > .ea-ic { color: var(--ea-vurgu); }
.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(--ea-cizgi2); background: var(--ea-kart2); color: var(--ea-yazi); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.ea-adim button:hover:not(:disabled) { border-color: var(--ea-cizgi3); background: var(--ea-secili); }
.ea-adim button:disabled { opacity: .4; cursor: default; }
.ea-adim button .ea-ic { width: 16px; height: 16px; stroke-width: 2.2; }
.ea-adim output { min-width: 50px; text-align: center; font-size: 13.5px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.ea-sec { margin-left: auto; display: inline-flex; padding: 3px; border: 1px solid var(--ea-cizgi2); border-radius: 10px; gap: 2px; background: var(--ea-kart2); }
.ea-sec button { border: 0; background: transparent; color: var(--ea-soluk); font: inherit; font-size: 12.5px; font-weight: 600; line-height: 1; padding: 7px 9px; border-radius: 7px; cursor: pointer; white-space: nowrap; }
.ea-sec button:hover { color: var(--ea-yazi); }
.ea-sec button[aria-pressed="true"] { background: var(--ea-secili); color: var(--ea-yazi); }
.ea-alt { display: flex; align-items: center; gap: 12px; padding: 9px 12px 9px 14px; border-top: 1px solid var(--ea-cizgi); flex: none; }
.ea-sifirla { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 13px; border-radius: 9px; border: 1px solid var(--ea-cizgi2); background: transparent; color: var(--ea-yazi); font: inherit; font-size: 13px; font-weight: 600; line-height: 1; cursor: pointer; white-space: nowrap; }
.ea-sifirla:hover:not(:disabled) { background: var(--ea-secili); border-color: var(--ea-cizgi3); }
.ea-sifirla:disabled { opacity: .45; cursor: default; }
.ea-sifirla .ea-ic { width: 16px; height: 16px; }
.ea-alt p { margin-left: auto; font-size: 11.5px; line-height: 1.35; color: var(--ea-soluk); text-align: right; }
.ea-panel :focus-visible { outline: 2px solid var(--ea-vurgu); outline-offset: 2px; }
@media (max-width: 720px) {
  .ea-panel { left: 8px; right: 8px; width: auto; top: calc(var(--ea-ust, 72px) + 8px); max-height: calc(100dvh - var(--ea-ust, 72px) - 16px); }
  .ea-kare small { font-size: 11px; }
}
@media (max-width: 380px) { .ea-sec button { padding: 7px 6px; } }
@media (max-width: 340px) { .ea-izgara { grid-template-columns: 1fr; } }

/* ---------- okuma maskesi · sesli okuma ---------- */
.ea-maske-ust, .ea-maske-alt { position: fixed; left: 0; right: 0; z-index: 68; 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: #3db5f5; }
.ea-maske-ust::after { bottom: 0; }
.ea-maske-alt::before { top: 0; }
:root.ea-ses :is(main, footer) :is(p, h1, h2, h3, h4, li, dd, dt, summary, blockquote, figcaption, td, th) { cursor: pointer; }
.ea-okunuyor { outline: 3px solid #3db5f5 !important; outline-offset: 4px; border-radius: 6px; background: rgba(61, 181, 245, .14); }
.ea-not { position: fixed; z-index: 71; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 11px 16px; border-radius: 12px; background: var(--ea-kart); border: 1px solid var(--ea-cizgi2); box-shadow: var(--ea-golge); color: var(--ea-yazi); font: 600 13.5px/1.4 "Host Grotesk", system-ui, sans-serif; text-align: center; }
.ea-not[hidden] { display: none; }

/* ---------- ayarların etkisi ---------- */
/* Yazı boyutu: YALNIZ yazılar büyür (yakınlaştırma değil). Kurallar ÜRETİLİR (erisim_uret.py). */
: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 :is(main, footer) :is(a, p, li, td, th, dd) { overflow-wrap: anywhere; }

/* Metin aralığı */
:root.ea-a1 :is(main, footer) :is(p, li, dd, dt, h1, h2, h3, h4, summary, blockquote, label, figcaption, td, th):not([aria-hidden="true"] *, [role="img"] *) { line-height: 1.8 !important; letter-spacing: .035em !important; word-spacing: .1em !important; }
:root.ea-a2 :is(main, footer) :is(p, li, dd, dt, h1, h2, h3, h4, summary, blockquote, label, figcaption, td, th):not([aria-hidden="true"] *, [role="img"] *) { line-height: 2.05 !important; letter-spacing: .12em !important; word-spacing: .16em !important; }
:root.ea-a2 :is(main, footer) p:not([aria-hidden="true"] *, [role="img"] *) { margin-bottom: .6em; }

/* Okunaklı yazı tipi (dosya inmez) */
:root.ea-font { --font-1: Verdana, Tahoma, "DejaVu Sans", system-ui, sans-serif; }
:root.ea-font body, :root.ea-font .ea-panel { font-family: Verdana, Tahoma, "DejaVu Sans", system-ui, sans-serif; }
:root.ea-font :is(h1, h2, h3, h4) { letter-spacing: 0 !important; }

/* Yüksek kontrast — ana sayfa (--color-*) ve yasal sayfalar (--c*) belirteçleri; koyu temada açık bölümler ayrıca (otis-tema stili) */
:root.ea-kontrast { --color-1: #000; --color-2: #fff; --color-3: #fff; --color-5: #000; --color-6: #00205b; --color-8: #000; --color-9: #fff;
  --c1: #000; --c2: #fff; --c3: #000; --c5: #000; --c6: #0033a0; --c9: #fff;
  --ea-kart: #fff; --ea-kart2: #fff; --ea-cizgi: rgba(0,0,0,.55); --ea-cizgi2: rgba(0,0,0,.72); --ea-cizgi3: #000; --ea-yazi: #000; --ea-soluk: #000; }
:root.ea-kontrast[data-theme="dark"] { --ea-kart: #000; --ea-kart2: #000; --ea-kart-h: #111; --ea-cizgi: rgba(255,255,255,.5); --ea-cizgi2: rgba(255,255,255,.72); --ea-cizgi3: #fff; --ea-yazi: #fff; --ea-soluk: #fff; }
:root.ea-kontrast :is(.m-text-7, .m-text-8) { color: inherit; }
:root.ea-kontrast .m-card, :root.ea-kontrast .kutu { outline: 1px solid currentColor; }
:root.ea-kontrast :focus-visible { outline-width: 3px !important; }

/* Renkleri yumuşat */
:root.ea-sakin :is(main, footer, #nav, .ust) { filter: saturate(.35); }

/* Animasyonları durdur: CSS süreleri ~0; GSAP / Lenis head betiğindeki hareket sorusu ile kapanır */
: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, footer) a:not([aria-hidden="true"] *) { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 3px !important; outline: 1px dashed currentColor; 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, label, summary, select, [role="button"]), :root.ea-imlec :is(a, button, label, summary, select, [role="button"]) * { cursor: var(--ea-imlec-el), pointer !important; }
