/* ==========================================================================
   Erişilebilirlik araç çubuğu — arayüz (marka renkleri) + sayfa geneli etkiler
   Ayarlar <html data-a11y-*> özniteliklerinde; renk/kontrast tek bir CSS filter olarak <html>'e yazılır (a11y.js).
   ========================================================================== */
.a11y-root { --a11y-z: 2147483000; }
.a11y-launcher {
    position: fixed; left: 16px; bottom: 16px; z-index: var(--a11y-z);
    display: grid; place-items: center; width: 54px; height: 54px; padding: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .55);
    color: #fff; background: linear-gradient(145deg, #f01a3f, var(--red-700, #9c0822)); box-shadow: 0 10px 26px rgba(156, 8, 34, .45);
    cursor: pointer; transition: transform .15s ease, box-shadow .2s ease;
}
.a11y-launcher .i { width: 32px; height: 32px; }
.a11y-launcher:hover { transform: scale(1.06); box-shadow: 0 12px 30px rgba(156, 8, 34, .55); }
.a11y-launcher:focus-visible, .a11y-root button:focus-visible, .a11y-root a:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }

.a11y-panel {
    position: fixed; left: 16px; bottom: 82px; z-index: var(--a11y-z); display: flex; flex-direction: column;
    width: min(390px, calc(100vw - 32px)); max-height: min(86vh, 760px); overflow: hidden;
    border-radius: 18px; background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: 0 28px 70px rgba(10, 14, 28, .35);
}
.a11y-panel[hidden] { display: none; }
.a11y-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 20px; color: #fff; background: linear-gradient(135deg, #b50d2c, #7a0a24); }
.a11y-head h2 { display: flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 800; line-height: 1.2; color: #fff; text-align: left; letter-spacing: 0; }
.a11y-head h2 .i { width: 22px; height: 22px; }
.a11y-head p { margin-top: 3px; font-size: 12.5px; color: rgba(255, 255, 255, .86); }
.a11y-x { display: grid; place-items: center; flex: none; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 9px; background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer; }
.a11y-x:hover { background: rgba(255, 255, 255, .28); }
.a11y-x .i { width: 17px; height: 17px; }

.a11y-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 20px 18px; overscroll-behavior: contain; }
.a11y-body h3 { margin: 0 0 10px; font-size: 13.5px; font-weight: 800; color: var(--text); }
.a11y-body hr { margin: 16px 0; border: 0; border-top: 1px solid var(--line); }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.a11y-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px 8px; text-align: center;
    border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; cursor: pointer;
    transition: border-color .15s, background .15s;
}
.a11y-card.wide { grid-column: 1 / -1; }
.a11y-card:hover { border-color: rgba(227, 11, 50, .45); background: var(--pink-2); }
.a11y-card[aria-pressed="true"] { border-color: var(--red); background: var(--pink); }
.a11y-card-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--pink); color: var(--red); }
.a11y-card:not(.a11y-prof) .a11y-card-ico { background: var(--surface-2); color: var(--muted); }
.a11y-card[aria-pressed="true"] .a11y-card-ico { background: rgba(227, 11, 50, .16); color: var(--red); }
.a11y-card-ico .i { width: 19px; height: 19px; }
.a11y-card-lbl { font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.a11y-pill { padding: 1px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.a11y-card[aria-pressed="true"] .a11y-pill { background: rgba(227, 11, 50, .16); color: var(--red); }
.a11y-field { margin: 12px 0 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.a11y-seg { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 6px; }
.a11y-seg button, .a11y-btn { padding: 9px 6px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 12.5px; font-weight: 700; line-height: 1.2; cursor: pointer; }
.a11y-seg button:hover { background: var(--pink-2); }
.a11y-seg button[aria-pressed="true"] { border-color: var(--red); background: var(--pink); color: var(--red); }
.a11y-hint { margin: 0 0 12px; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.a11y-read { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 11px 14px; border: 0; border-radius: 11px; color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; background: linear-gradient(180deg, #f01a3f, #c40a2b); }
.a11y-read .i { width: 18px; height: 18px; }
.a11y-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 11px 20px; border-top: 1px solid var(--line); }
.a11y-foot a { font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.a11y-foot a:hover { color: var(--red); }
.a11y-foot > span { display: flex; gap: 8px; }
.a11y-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; font-size: 13px; font-weight: 600; }
.a11y-btn:hover { background: var(--pink-2); border-color: var(--red); }
.a11y-btn .i { width: 15px; height: 15px; }

@media (max-width: 480px) {
    .a11y-launcher { left: 12px; bottom: 12px; width: 50px; height: 50px; }
    .a11y-panel { left: 12px; bottom: 72px; width: calc(100vw - 24px); max-height: calc(100dvh - 96px); }
}

/* ----- Sayfa geneli etkiler ----- */

/* Yazı boyutu: app.css'teki tüm font-size değerleri calc(<px> * var(--ts, 1)) biçimindedir; yalnızca metin büyür, yerleşim akar.
   Üst çubuk ve menü, taşmasın diye ölçeğin yalnızca bir kısmını alır. Widget'ın kendi arayüzü sabit kalır. */
html[data-a11y-font="large"]  { --ts-full: 1.125; }
html[data-a11y-font="xlarge"] { --ts-full: 1.25; }
html[data-a11y-font="extra"]  { --ts-full: 1.4; }
html { --ts: var(--ts-full, 1); }
.topbar, .site-header { --ts: calc(1 + (var(--ts-full, 1) - 1) * .3); }

html[data-a11y-line="wide"] body :where(p, li, a, span, dd, dt, label, blockquote, figcaption, td, th, h1, h2, h3, h4, h5, h6, small, strong, summary) { line-height: 1.9 !important; }
html[data-a11y-letter="wide"] body :where(p, li, a, span, dd, dt, label, blockquote, figcaption, td, th, h1, h2, h3, h4, h5, h6, small, strong, summary) { letter-spacing: .06em !important; word-spacing: .14em !important; }

html[data-a11y-highlight] body :where(a, button, [role="button"]):not(.a11y-root *) { outline: 2px solid #1d4ed8 !important; outline-offset: 2px !important; }
html[data-a11y-highlight] body :where(a):not(.a11y-root *) { text-decoration: underline !important; text-underline-offset: 2px; }

html[data-a11y-cursor], html[data-a11y-cursor] * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M9 5 L9 33 L17 25 L22 35 L27 32 L22 23 L33 23 Z' fill='%23111' stroke='%23fff' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 7 5, auto !important;
}

html[data-a11y-focus] body :where(a, button, input, select, textarea, summary, [tabindex], [role="button"]):focus,
html[data-a11y-focus] body :where(a, button, input, select, textarea, summary, [tabindex], [role="button"]):focus-visible { outline: 3px solid #f59e0b !important; outline-offset: 2px !important; border-radius: 3px; }

html[data-a11y-motion] *, html[data-a11y-motion] *::before, html[data-a11y-motion] *::after {
    animation-duration: .001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important;
}

.a11y-reading-guide {
    position: fixed; left: 0; right: 0; top: 0; height: 2.5rem; margin-top: -1.25rem; pointer-events: none; z-index: 2147482500;
    background: rgba(227, 11, 50, .10); border-top: 2px solid rgba(227, 11, 50, .85); border-bottom: 2px solid rgba(227, 11, 50, .85);
    transform: translateY(var(--a11y-guide-y, -120px)); will-change: transform;
}
.a11y-reading-guide[hidden] { display: none; }
.a11y-read-highlight { outline: 2px dashed var(--red) !important; outline-offset: 2px !important; background: rgba(227, 11, 50, .08) !important; }

/* Masaüstü üst çubuk ve menü yazı boyutu ayarıyla büyümez (sığmaz); hamburger menüde (≤1240px) büyür */
@media (min-width: 1181px) { .topbar, .site-header { --ts: 1; } }
