/* =========================================================
   BAİBÜ Engelsiz Form – Erişilebilir tasarım sistemi
   Zemin: #f5f5f5 · Tüm renkler WCAG 2.2 AA (çoğu AAA) kontrastlı
   ========================================================= */
:root {
  --bg: #f5f5f5;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --ink: #16191d;
  --muted: #4a515b;
  --border: #d6dae0;
  --brand: #003135;
  --brand-2: #024950;
  --primary: #0b5563;
  --primary-hover: #083f4a;
  --primary-soft: #e3f1f3;
  --on-primary: #ffffff;
  --accent: #b45309;
  --success: #166534;
  --success-soft: #e8f5ec;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --focus: #ffbf47;
  --focus-ink: #0b0c0c;
  --link: #0a5566;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 16px rgba(16, 24, 40, .06);
  --shadow-lg: 0 10px 30px rgba(16, 24, 40, .12);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --line: 1.6;
  --letter: normal;
  --word: normal;
  color-scheme: light;
}

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 106.25%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  line-height: var(--line); letter-spacing: var(--letter); word-spacing: var(--word);
  min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
}
.site { flex: 1; display: flex; flex-direction: column; }
main { flex: 1; outline: none; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .16em; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.3rem, 1.1rem + .9vw, 1.75rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.small { font-size: .9rem; }
.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.container.narrow { width: min(820px, 100% - 2rem); padding-block: 1.5rem 3rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Güçlü, her zeminde görünür odak göstergesi */
:focus-visible { outline: 3px solid var(--focus-ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--focus); border-radius: 4px; }
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--focus); color: var(--focus-ink);
  padding: .75rem 1.25rem; font-weight: 700; border-radius: 0 0 var(--radius-sm) var(--radius-sm); text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ---------- Üst bant ---------- */
.topbar { background: var(--brand); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .75rem; color: #fff; text-decoration: none; min-width: 0; }
.brand img { width: 48px; height: 48px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-uni { font-size: .78rem; opacity: .9; }
.brand-unit { font-weight: 700; font-size: 1.05rem; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; align-items: center; }
.main-nav a {
  display: block; color: #fff; text-decoration: none; padding: .6rem .85rem; border-radius: 8px; font-weight: 600; font-size: .95rem;
}
.main-nav a:hover { background: rgba(255, 255, 255, .12); }
.main-nav .nav-admin { border: 1.5px solid rgba(255, 255, 255, .5); margin-left: .5rem; }
.topbar :focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px var(--focus-ink); }
.nav-toggle {
  display: none; align-items: center; gap: .5rem; background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .55);
  border-radius: 10px; padding: .55rem .8rem; font: inherit; font-weight: 600; cursor: pointer; min-height: 44px;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; border-radius: 2px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -6px; } .nav-toggle-bar::after { top: 6px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--brand); border-top: 1px solid rgba(255, 255, 255, .15); display: none; box-shadow: var(--shadow-lg); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: .5rem 1rem 1rem; }
  .main-nav a { padding: .9rem 1rem; font-size: 1.05rem; }
  .main-nav .nav-admin { margin: .5rem 0 0; text-align: center; }
}
@media (max-width: 420px) {
  .brand-uni { display: none; }
  .brand img { width: 40px; height: 40px; }
  .brand-unit { font-size: .98rem; }
  .nav-toggle-label { display: none; }
}

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.4rem;
  border-radius: 12px; border: 2px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s; line-height: 1.2;
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: transparent; color: var(--primary); border-color: currentColor; }
.btn-ghost:hover { background: var(--primary-soft); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: #e9f3f4; }
.btn-lg { min-height: 56px; padding: .9rem 2rem; font-size: 1.1rem; width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }

/* ---------- Kahraman alanı ---------- */
.hero { background: linear-gradient(160deg, var(--brand) 0%, var(--brand-2) 60%, #0b6a74 100%); color: #fff; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .10), transparent 70%); pointer-events: none; }
.hero h1 { color: #fff; max-width: 20ch; }
.hero .lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); max-width: 56ch; opacity: .95; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero .btn-ghost { color: #fff; }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.hero :focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px var(--focus-ink); }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: rgba(255, 255, 255, .14); padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; padding: 0; margin: 1.75rem 0 0; font-size: .95rem; }
.hero-points li::before { content: "✓"; font-weight: 700; margin-right: .4rem; color: #9be7dd; }

/* ---------- Bölümler ---------- */
.section { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.section-head { max-width: 62ch; margin-bottom: 1.75rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.25rem, 3vw, 2rem); }

/* Form kartları */
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.form-tile {
  position: relative; display: flex; flex-direction: column; gap: .5rem; height: 100%; padding: 1.4rem; background: var(--surface);
  border: 1.5px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); transition: border-color .15s, transform .15s, box-shadow .15s;
}
.form-tile:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.form-tile:focus-within { border-color: var(--primary); }
.form-tile .tile-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--primary-soft); color: var(--primary); }
.form-tile h3 { margin: .35rem 0 0; font-size: 1.12rem; }
.form-tile h3 a { color: var(--ink); text-decoration: none; }
.form-tile h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.form-tile h3 a:focus-visible { box-shadow: none; outline: none; }
.form-tile h3 a:focus-visible::after { outline: 3px solid var(--focus-ink); box-shadow: 0 0 0 6px var(--focus); }
.form-tile p { color: var(--muted); margin: 0; font-size: .97rem; flex: 1; }
.tile-cta { font-weight: 700; color: var(--primary); display: inline-flex; align-items: center; gap: .35rem; margin-top: .5rem; }

/* Uygulama tanıtımı */
.app-promo { display: grid; grid-template-columns: auto 1fr auto; gap: 1.25rem 1.75rem; align-items: center; }
.app-icon { width: 76px; height: 76px; border-radius: 20px; background: linear-gradient(140deg, var(--primary), #138a8f); display: grid; place-items: center; color: #fff; box-shadow: var(--shadow); }
.app-promo h2 { margin-bottom: .25rem; font-size: 1.35rem; }
.app-promo p { margin: 0; color: var(--muted); }
.play-badge { display: inline-flex; align-items: center; gap: .65rem; background: #111; color: #fff; padding: .6rem 1.15rem; border-radius: 12px; text-decoration: none; min-height: 56px; border: 2px solid #111; }
.play-badge:hover { background: #2a2a2a; }
.play-badge span { display: flex; flex-direction: column; line-height: 1.15; }
.play-badge small { font-size: .72rem; opacity: .85; }
.play-badge strong { font-size: 1.1rem; }
@media (max-width: 700px) { .app-promo { grid-template-columns: auto 1fr; } .app-promo .play-badge { grid-column: 1 / -1; justify-content: center; } }

/* Uygulama – sayfanın en üstündeki tanıtım */
.app-hero { background: var(--surface); border-bottom: 1px solid var(--border); padding: clamp(2rem, 5vw, 3.5rem) 0; position: relative; overflow: hidden; }
.app-hero::before { content: ""; position: absolute; left: -160px; bottom: -200px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(234, 108, 20, .10), transparent 70%); pointer-events: none; }
.app-hero-inner { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; position: relative; }
.app-hero-media img { display: block; width: clamp(150px, 22vw, 240px); height: auto; border-radius: 28%; background: #fff; box-shadow: 0 18px 45px rgba(16, 24, 40, .16), 0 0 0 1px var(--border); }
.app-tag { display: inline-block; background: #fff1e6; color: #9a3d06; border: 1px solid #f6c39d; font-weight: 700; font-size: .85rem; padding: .35rem .85rem; border-radius: 999px; margin-bottom: .9rem; }
.app-hero .app-title { margin-bottom: .5rem; font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); }
.app-lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.app-points { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .45rem; }
.app-points li { display: flex; gap: .55rem; align-items: flex-start; }
.app-points li::before { content: "✓"; flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #fff1e6; color: #9a3d06; display: grid; place-items: center; font-weight: 700; font-size: .85rem; margin-top: .1rem; }
.play-badge-lg { min-height: 64px; padding: .7rem 1.5rem; }
.play-badge-lg strong { font-size: 1.25rem; }
.hero-title { color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); max-width: 22ch; }
@media (max-width: 640px) {
  .app-hero-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .app-points { text-align: left; }
  .play-badge-lg { width: 100%; justify-content: center; }
}
html[data-a11y-contrast="high"] .app-tag, html[data-a11y-contrast="high"] .app-points li::before { background: #000; color: #ffeb3b; border-color: #ffeb3b; }
html[data-a11y-contrast="dark"] .app-tag, html[data-a11y-contrast="dark"] .app-points li::before { background: #3a2410; color: #ffd1ad; border-color: #6b3e18; }

/* Bilgi kutuları */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.info-card { display: flex; gap: 1rem; align-items: flex-start; }
.info-card .ic { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.info-card h3 { margin-bottom: .2rem; font-size: 1.05rem; }
.info-card p { margin: 0; color: var(--muted); }
.info-card a { font-weight: 600; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; margin-bottom: .6rem; }
.steps strong { display: block; margin-bottom: .2rem; }
.steps p { margin: 0; color: var(--muted); font-size: .97rem; }

/* ---------- Formlar ---------- */
.breadcrumb { font-size: .95rem; color: var(--muted); margin: 0 0 1rem; }
.breadcrumb a { color: var(--link); }
.form-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.form-head h1 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); margin-bottom: .25rem; }
.form-head p { margin: 0; color: var(--muted); }
.form-icon { flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.form-note { background: var(--surface-2); border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: .8rem 1rem; color: var(--muted); font-size: .95rem; }
.form-section-title { font-size: 1.1rem; margin: 2rem 0 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--primary-soft); color: var(--primary); }
.field { margin-bottom: 1.35rem; }
.field > label, .choice-group > legend { display: block; font-weight: 700; margin-bottom: .35rem; font-size: 1rem; padding: 0; }
.req { color: var(--danger); font-weight: 700; }
.opt { color: var(--muted); font-weight: 400; font-size: .9rem; }
.help { color: var(--muted); font-size: .9rem; margin: 0 0 .45rem; }
input[type=text], input[type=email], input[type=tel], input[type=search], input[type=password], input[type=number], input[type=file], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 2px solid #8a929c; border-radius: var(--radius-sm);
  padding: .75rem .9rem; min-height: 50px; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 90px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2316191d' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.5rem; }
input[type=file] { padding: .55rem; }
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--primary); }
::placeholder { color: #6b7280; opacity: 1; }
.field-sm input { max-width: 9rem; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); background: #fffafa; }
.field-error { color: var(--danger); font-weight: 600; font-size: .95rem; margin: .4rem 0 0; }
.choice-group { border: 0; padding: 0; margin: 0 0 1.35rem; min-width: 0; }
.choices { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.inline .choices { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.choice { display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; border: 2px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; min-height: 50px; line-height: 1.35; }
.choice:hover { border-color: #8a929c; }
.choice:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.choice input, .likert-option input { width: 22px; height: 22px; accent-color: var(--primary); flex: none; margin: 0; }
.likert-scale { display: grid; grid-template-columns: auto minmax(0, 360px) auto; align-items: center; gap: .75rem; }
.likert-end { font-size: .85rem; color: var(--muted); }
.likert-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .4rem; }
.likert-option { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .55rem .2rem; border: 2px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; min-width: 0; background: var(--surface); }
@media (max-width: 560px) {
  .likert-scale { grid-template-columns: 1fr 1fr; }
  .likert-options { grid-column: 1 / -1; grid-row: 1; }
  .likert-end:last-child { text-align: right; }
}
.likert-option:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.likert-num { font-weight: 700; }
.teacher-search { margin-bottom: .5rem; }
.teacher-count { margin: .35rem 0 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.captcha { overflow: hidden; }
@media (max-width: 380px) { .g-recaptcha { transform: scale(.86); transform-origin: 0 0; height: 68px; } }
.kvkk { font-size: .88rem; color: var(--muted); }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; }

.alert { border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin: 1rem 0 1.5rem; border: 2px solid; outline: none; }
.alert ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.alert a { color: inherit; font-weight: 600; }
.alert-error { background: var(--danger-soft); border-color: var(--danger); color: #7a1610; }
.alert-success { background: var(--success-soft); border-color: var(--success); color: #0f4b25; }
.alert-info { background: var(--primary-soft); border-color: var(--primary); color: #063a44; }

.success-card, .message-card { text-align: center; outline: none; }
.success-icon { width: 84px; height: 84px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; background: var(--success-soft); color: var(--success); font-size: 2.6rem; font-weight: 700; border: 3px solid var(--success); }
.success-card .actions, .message-card .actions { justify-content: center; }
.tone-error .success-icon { background: var(--danger-soft); color: var(--danger); border-color: var(--danger); }
.lead { font-size: 1.15rem; }
.decision-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1.5rem; }
.btn-approve { background: var(--success); color: #fff; }
.btn-approve:hover { background: #0f4b25; }
.btn-reject { background: var(--danger); color: #fff; }
.btn-reject:hover { background: #8a1a12; }
.summary-table { width: 100%; border-collapse: collapse; text-align: left; margin-top: 1rem; font-size: .97rem; }
.summary-table th, .summary-table td { padding: .6rem .7rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.summary-table th { width: 40%; color: var(--muted); font-weight: 600; }
@media (max-width: 520px) { .decision-actions { grid-template-columns: 1fr; } .summary-table th { width: 45%; } }

/* ---------- Alt bilgi ---------- */
.site-footer { background: var(--brand); color: #e7f0f1; margin-top: 3rem; padding: 2.5rem 0 1.25rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer :focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px var(--focus-ink); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.footer-title { font-weight: 700; color: #fff; margin-bottom: .35rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; border-top: 1px solid rgba(255, 255, 255, .18); margin-top: 1.75rem; padding-top: 1rem; font-size: .85rem; color: #cfe0e2; }

/* =========================================================
   ERİŞİLEBİLİRLİK MENÜSÜ
   ========================================================= */
.a11y-fab {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 9998; width: 60px; height: 60px; border-radius: 50%;
  background: #1747a6; color: #fff; border: 3px solid #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); cursor: pointer; display: grid; place-items: center;
}
.a11y-fab:hover { background: #0f3480; transform: scale(1.05); }
.a11y-fab svg { width: 34px; height: 34px; }
.a11y-panel {
  position: fixed; right: 1rem; bottom: 5.5rem; z-index: 9999; width: min(400px, calc(100vw - 2rem)); max-height: calc(100vh - 7rem); overflow: auto;
  background: #fff; color: #16191d; border-radius: 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); border: 1px solid #d6dae0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important; font-size: 16px; line-height: 1.4; letter-spacing: normal !important; word-spacing: normal !important;
}
.a11y-panel[hidden] { display: none; }
.a11y-panel-head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: 1rem 1.1rem; background: #1747a6; color: #fff; border-radius: 18px 18px 0 0; }
.a11y-panel-head h2 { margin: 0; font-size: 1.1rem; color: #fff; }
.a11y-close { background: rgba(255, 255, 255, .15); color: #fff; border: 0; width: 40px; height: 40px; border-radius: 10px; font-size: 1.5rem; cursor: pointer; line-height: 1; }
.a11y-close:hover { background: rgba(255, 255, 255, .28); }
.a11y-body { padding: 1rem; }
.a11y-row { margin-bottom: 1rem; }
.a11y-row-title { font-weight: 700; font-size: .9rem; margin: 0 0 .5rem; color: #4a515b; text-transform: uppercase; letter-spacing: .04em !important; }
.a11y-size { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: .5rem; align-items: center; }
.a11y-size output { text-align: center; font-weight: 700; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.a11y-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; min-height: 88px; padding: .6rem .4rem;
  background: #f5f6f8; color: #16191d; border: 2px solid #e1e4e8; border-radius: 14px; cursor: pointer; font: inherit; font-size: .9rem !important; font-weight: 600; text-align: center;
}
.a11y-btn:hover { border-color: #1747a6; }
.a11y-btn svg { width: 28px; height: 28px; }
.a11y-btn[aria-pressed="true"] { background: #1747a6; color: #fff; border-color: #1747a6; }
.a11y-btn.small-btn { min-height: 48px; flex-direction: row; font-size: 1.05rem !important; }
.a11y-panel :focus-visible { outline: 3px solid #0b0c0c; box-shadow: 0 0 0 6px #ffbf47; }
.a11y-reset { width: 100%; margin-top: .25rem; min-height: 48px; border-radius: 12px; border: 2px solid #b42318; color: #b42318; background: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.a11y-reset:hover { background: #fdecea; }
.a11y-foot { font-size: .8rem; color: #4a515b; padding: 0 1rem 1rem; margin: 0; }
.a11y-reading-guide { position: fixed; left: 0; right: 0; height: 14px; pointer-events: none; z-index: 9997; background: rgba(255, 191, 71, .35); border-block: 3px solid #0b0c0c; display: none; transform: translateY(-50%); }
html[data-a11y-guide="on"] .a11y-reading-guide { display: block; }
.a11y-tts-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 1rem; z-index: 9998; background: #16191d; color: #fff; border-radius: 999px; padding: .5rem .5rem .5rem 1.1rem; display: flex; gap: .75rem; align-items: center; box-shadow: var(--shadow-lg); font-size: .95rem; max-width: calc(100vw - 6rem); }
.a11y-tts-bar button { background: #fff; color: #16191d; border: 0; border-radius: 999px; padding: .45rem .9rem; font: inherit; font-weight: 700; cursor: pointer; }
@media (max-width: 480px) { .a11y-fab { width: 54px; height: 54px; right: .75rem; bottom: .75rem; } .a11y-panel { right: .5rem; left: .5rem; width: auto; bottom: 4.75rem; } }

/* ---------- Erişilebilirlik modları ---------- */
html[data-a11y-text="1"] { font-size: 118%; }
html[data-a11y-text="2"] { font-size: 131%; }
html[data-a11y-text="3"] { font-size: 150%; }
html[data-a11y-text="4"] { font-size: 175%; }

html[data-a11y-spacing="on"] { --line: 2; --letter: .08em; --word: .18em; }
html[data-a11y-spacing="on"] p, html[data-a11y-spacing="on"] li { margin-bottom: 1.4em; }

html[data-a11y-font="on"] { --font: "Atkinson Hyperlegible", Verdana, Tahoma, "Trebuchet MS", sans-serif; }
html[data-a11y-font="on"] body { font-family: var(--font) !important; }

html[data-a11y-links="on"] main a, html[data-a11y-links="on"] footer a { background: #ffef5c !important; color: #000 !important; text-decoration: underline !important; text-decoration-thickness: 3px !important; outline: 2px solid #000; }

html[data-a11y-gray="on"] body > *:not(.a11y-root) { filter: grayscale(1); }

html[data-a11y-cursor="on"], html[data-a11y-cursor="on"] * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l16 9-7 2-3 7z' fill='%23000' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") 4 2, auto !important; }

html[data-a11y-motion="on"] *, html[data-a11y-motion="on"] *::before, html[data-a11y-motion="on"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

html[data-a11y-images="on"] main img { visibility: hidden; }

/* Yüksek kontrast: siyah zemin, sarı/beyaz yazı */
html[data-a11y-contrast="high"] {
  --bg: #000; --surface: #000; --surface-2: #000; --ink: #fff; --muted: #fff; --border: #fff; --brand: #000; --brand-2: #000;
  --primary: #ffeb3b; --primary-hover: #fff59d; --primary-soft: #000; --on-primary: #000; --link: #ffeb3b; --danger: #ff8a80; --danger-soft: #000; --success: #69f0ae; --success-soft: #000; --focus: #00e5ff; --focus-ink: #fff;
  color-scheme: dark;
}
html[data-a11y-contrast="high"] .hero { background: #000; border-bottom: 2px solid #fff; }
html[data-a11y-contrast="high"] .topbar, html[data-a11y-contrast="high"] .site-footer { border-color: #fff; border-style: solid; border-width: 0 0 2px; }
html[data-a11y-contrast="high"] .site-footer { border-width: 2px 0 0; }
html[data-a11y-contrast="high"] .card, html[data-a11y-contrast="high"] .form-tile, html[data-a11y-contrast="high"] .steps li { box-shadow: none; border: 2px solid #fff; }
html[data-a11y-contrast="high"] .btn-ghost, html[data-a11y-contrast="high"] .hero .btn-ghost { color: #ffeb3b; }
html[data-a11y-contrast="high"] .btn-light { background: #ffeb3b; color: #000; }
html[data-a11y-contrast="high"] input, html[data-a11y-contrast="high"] select, html[data-a11y-contrast="high"] textarea { border-color: #fff; }
html[data-a11y-contrast="high"] .alert { color: #fff; }
html[data-a11y-contrast="high"] .app-icon, html[data-a11y-contrast="high"] .steps li::before { background: #ffeb3b; color: #000; }
html[data-a11y-contrast="high"] .main-nav { background: #000; }

/* Koyu tema */
html[data-a11y-contrast="dark"] {
  --bg: #121417; --surface: #1c1f24; --surface-2: #22262c; --ink: #f1f3f5; --muted: #c3c9d1; --border: #3a4049; --brand: #0b1f22; --brand-2: #0f2d31;
  --primary: #5ec4cf; --primary-hover: #8bd8e0; --primary-soft: #18363a; --on-primary: #06262a; --link: #8bd8e0; --danger: #ff8f84; --danger-soft: #3a1714; --success: #6fd394; --success-soft: #12301d;
  color-scheme: dark;
}
html[data-a11y-contrast="dark"] .has-error input { background: #2a1513; }
html[data-a11y-contrast="dark"] .alert-error { color: #ffd7d2; }
html[data-a11y-contrast="dark"] .alert-success { color: #d3f5df; }
html[data-a11y-contrast="dark"] .alert-info { color: #d4f1f4; }
html[data-a11y-contrast="dark"] select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23f1f3f5' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
html[data-a11y-contrast="high"] select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }

/* Ters renk */
html[data-a11y-contrast="invert"] body > *:not(.a11y-root) { filter: invert(1) hue-rotate(180deg); }
html[data-a11y-contrast="invert"] body { background: #0a0a0a; }

@media print {
  .topbar, .site-footer, .a11y-root, .skip-link, .actions { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border: 0; }
}
