/* Sana İyi Gelsin — erişilebilirlik: "İçeriğe geç", ayar penceresi ve ayarların etkileri (tüm sayfalarda ortak) */

/* İçeriğe geç: klavyeyle ilk Tab'da görünür */
.skip-link { position: absolute; left: 12px; top: -200px; z-index: 10000; padding: 14px 20px; border-radius: 14px; background: #1F1D2B; color: #FFFFFF;
  font: 600 16px/1.2 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif; text-decoration: none; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.skip-link:focus, .skip-link:focus-visible { top: 12px; outline: 3px solid #FFC93C; outline-offset: 2px; }
html[data-theme="dark"] .skip-link { background: #F2EFFA; color: #1B1530; }
main:focus { outline: none; }

/* Erişilebilirlik düğmesi (başlık ve alt bilgi) */
.a11y-open svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.top-r .a11y-open, .hdr-r .a11y-open { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--field, #F1EEF8); color: var(--ink, #1F1D2B); vertical-align: middle; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
p > .link-btn { color: var(--accent, inherit); font-weight: 600; }
.link-btn:focus-visible { outline: 2px solid var(--accent, #5A4A9C); outline-offset: 2px; border-radius: 4px; }

/* Ayar penceresi */
.a11y-dlg { --a-bg: #FFFFFF; --a-ink: #1F1D2B; --a-muted: #4B4860; --a-line: #E4DFEC; --a-field: #F1EEF8; --a-acc: #5A4A9C; --a-on: #FFFFFF;
  width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; padding: 22px 22px 18px; border: 0; border-radius: 24px;
  background: var(--a-bg); color: var(--a-ink); box-shadow: 0 24px 60px rgba(20,16,40,.35); font: 16px/1.45 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif; }
html[data-theme="dark"] .a11y-dlg { --a-bg: #1D1A2A; --a-ink: #F2EFFA; --a-muted: #CFCADF; --a-line: #3B3555; --a-field: #282438; --a-acc: #C9BCFA; --a-on: #1B1530; }
.a11y-dlg::backdrop { background: rgba(20,16,40,.55); }
.a11y-dlg h2 { margin: 0; font: 400 26px/1.15 'Fraunces', Georgia, serif; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.a11y-x { width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--a-field); color: var(--a-ink); font-size: 26px; line-height: 1; cursor: pointer; }
.a11y-intro { margin: 8px 0 14px; color: var(--a-muted); font-size: 15px; }
.a11y-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--a-line); }
.a11y-fs { flex-wrap: wrap; }
.a11y-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.a11y-lbl { font-weight: 600; }
.a11y-desc { color: var(--a-muted); font-size: 14px; }
.a11y-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--a-field); }
.a11y-seg button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--a-ink); font: 600 15px/1 inherit; font-family: inherit; cursor: pointer; }
.a11y-seg button.fs1 { font-size: 16.5px; } .a11y-seg button.fs2 { font-size: 18px; }
.a11y-seg button[aria-pressed="true"] { background: var(--a-acc); color: var(--a-on); }
.a11y-sw { flex: 0 0 auto; position: relative; width: 54px; height: 32px; border: 2px solid var(--a-muted); border-radius: 999px; background: var(--a-field); cursor: pointer; padding: 0; }
.a11y-sw span { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--a-muted); transition: transform .15s; }
.a11y-sw[aria-checked="true"] { background: var(--a-acc); border-color: var(--a-acc); }
.a11y-sw[aria-checked="true"] span { transform: translateX(22px); background: var(--a-on); }
.a11y-tip { margin: 6px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--a-field); color: var(--a-muted); font-size: 14px; }
.a11y-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }
.a11y-foot button { min-height: 44px; padding: 0 18px; border-radius: 999px; font: 600 15px/1 inherit; font-family: inherit; cursor: pointer; }
.a11y-reset { border: 2px solid var(--a-line); background: transparent; color: var(--a-ink); }
.a11y-done { border: 0; background: var(--a-ink); color: var(--a-bg); }
.a11y-dlg button:focus-visible { outline: 3px solid var(--a-acc); outline-offset: 2px; }

/* ---------- Ayarların etkileri ---------- */
/* Yazı boyutu: içerik büyür, satırlar ekrana göre yeniden dizilir (yakınlaştırılan öğe kendi genişliğine sığar).
   Başlık ve alt menü sabit kalır; dar ekranda sığmaları için. Geniş ekranda sayfanın tamamı büyür. */
html[data-a11y-fs="1"] :is(main, .site-footer, footer.foot, .wrap > footer, .modal-backdrop) { zoom: 1.12; }
html[data-a11y-fs="2"] :is(main, .site-footer, footer.foot, .wrap > footer, .modal-backdrop) { zoom: 1.25; }
@media (min-width: 1000px) {
  html[data-a11y-fs="1"] { zoom: 1.12; }
  html[data-a11y-fs="2"] { zoom: 1.25; }
  html[data-a11y-fs] :is(main, .site-footer, footer.foot, .wrap > footer, .modal-backdrop) { zoom: 1; }
}

/* Hareketleri durdur */
html[data-a11y-motion="1"] *, html[data-a11y-motion="1"] *::before, html[data-a11y-motion="1"] *::after {
  animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }

/* Okuma kolaylığı (WCAG 1.4.12 metin aralığı) */
html[data-a11y-read="1"] body { letter-spacing: .03em; word-spacing: .12em; }
html[data-a11y-read="1"] :is(p, li, dd, blockquote, label, .quote-text) { line-height: 1.75 !important; }
html[data-a11y-read="1"] body :is(p, li, dd, blockquote, h1, h2, h3, h4, em, i, cite, span, strong, a, button, label, small, div):not(.wordmark *, .brand *) { font-style: normal !important; }
html[data-a11y-read="1"] body :is(p, li, dd, blockquote, label, small, .quote-text) { font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif !important; }

/* Yüksek kontrast: soluk yazılar ve çizgiler koyulaşır (sistemde "kontrastı artır" açıksa kendiliğinden) */
html[data-a11y-contrast="1"] { --muted: #2E2B3D; --soft: #2E2B3D; --body: #1F1D2B; --line: #A9A3BC; --line2: #9690AD; --line-strong: #7D7796; --accent: #3E2F86; --shadow: rgba(20, 16, 40, .18); }
html[data-a11y-contrast="1"][data-theme="dark"] { --muted: #E6E2F3; --soft: #EEEBF8; --body: #F7F5FC; --line: #6A6488; --line2: #7A7499; --line-strong: #8C86AA; --accent: #D9CFFF; }
@media (prefers-contrast: more) {
  html:not([data-a11y-contrast]) { --muted: #2E2B3D; --soft: #2E2B3D; --body: #1F1D2B; --line: #A9A3BC; --line2: #9690AD; --line-strong: #7D7796; --accent: #3E2F86; }
  html:not([data-a11y-contrast])[data-theme="dark"] { --muted: #E6E2F3; --soft: #EEEBF8; --body: #F7F5FC; --line: #6A6488; --line2: #7A7499; --line-strong: #8C86AA; --accent: #D9CFFF; }
}

/* Bağlantıların altını çiz */
html[data-a11y-links="1"] :is(main, footer, .site-footer, .foot) a:not([class*="btn"]):not([class*="card"]):not([class*="feat"]):not(.soc),
html[data-a11y-links="1"] :is(p, li) a { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 3px !important; }

/* Belirgin klavye odağı */
html[data-a11y-focus="1"] :focus-visible { outline: 4px solid #FFB000 !important; outline-offset: 3px !important; box-shadow: 0 0 0 7px #1F1D2B !important; border-radius: 6px; }
.hdr-r .a11y-open { margin-right: 0; }
/* Büyük yazıda dar kartların düğme sırası alta geçebilsin */
html[data-a11y-fs] .nr-foot { flex-wrap: wrap; row-gap: 6px; }
