html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Ülke analizi ve başvurular: her satır tıklanınca açılan <details> (JavaScript yok). */
.ulke-analizi summary,
.acilir-liste summary {
  cursor: pointer;
  list-style: none;
}

.ulke-analizi summary::-webkit-details-marker,
.acilir-liste summary::-webkit-details-marker {
  display: none;
}

.ulke-analizi summary:hover,
.acilir-liste summary:hover {
  background-color: var(--bs-tertiary-bg);
}

.ulke-analizi details[open] > summary,
.acilir-liste details[open] > summary {
  background-color: var(--bs-secondary-bg);
}

/* CSP (style-src 'self') satır içi stile izin vermez; eski style="" kullanımları sınıfa taşındı. */
.genislik-8rem {
  min-width: 8rem;
}

.satir-sonlari-korunur {
  white-space: pre-line;
}

/* Süreç adımı göstergesi (G06) */
.surec-adimlari {
  gap: 0.25rem;
  overflow-x: auto;
}

.surec-adimlari li {
  flex: 1 0 1.75rem;
  text-align: center;
  border-bottom: 0.3rem solid var(--bs-secondary-bg);
  padding-bottom: 0.15rem;
  font-size: 0.8rem;
  color: var(--bs-secondary-color);
}

.surec-adimlari li.tamam {
  border-bottom-color: var(--bs-success);
}

.surec-adimlari li.simdiki {
  border-bottom-color: var(--bs-primary);
  color: var(--bs-body-color);
  font-weight: 600;
}

/* Çok satırlı serbest metin (notlar). */
.metin-satirli {
  white-space: pre-line;
}

/* G07b yönelim testi: dar okuma sütunu, EN üstte / TR altta, ölçek düğmeleri mobilde sarar. */
.yonelim {
  max-width: 52rem;
}

.yonelim .olcek-secenegi {
  min-width: 7.5rem;
  line-height: 1.2;
}

@media (max-width: 575.98px) {
  .yonelim .olcek-secenegi {
    flex: 1 1 100%;
  }
}

.yonelim-ilerleme,
.riasec-cubuk {
  height: .9rem;
  accent-color: var(--bs-primary);
}

.yonelim-lisans {
  font-size: .75rem;
}

.riasec-cubuklar {
  max-width: 32rem;
}

.riasec-satir {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .25rem;
}

.riasec-ad {
  width: 9rem;
}

.riasec-cubuk {
  flex-grow: 1;
  accent-color: var(--bs-secondary);
}

.riasec-cubuk.riasec-kod {
  accent-color: var(--bs-primary);
}

.riasec-puan {
  width: 3rem;
  text-align: right;
}

/* v2 F1 Katalog: kapsam ısı haritası ve güven kademesi rozetleri (CSP: satır içi stil yok). */
.kapsam-harita th.kapsam-baslik {
  height: 7.5rem;
  vertical-align: bottom;
  padding: 0 0 .25rem;
  white-space: nowrap;
}

.kapsam-harita th.kapsam-baslik span {
  display: inline-block;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-weight: 500;
  font-size: .8rem;
  color: var(--bs-secondary-color);
}

.kapsam-harita th.kapsam-ulke {
  white-space: nowrap;
  font-weight: 600;
  font-size: .85rem;
}

.kapsam-hucre {
  width: 2.6rem;
  min-width: 2.6rem;
  height: 2.2rem;
  text-align: center;
  border-radius: .3rem;
  font-weight: 600;
  font-size: .85rem;
  font-variant-numeric: tabular-nums;
}

.kapsam-hucre a { color: inherit; text-decoration: none; display: block; }
.kapsam-hucre a:hover { text-decoration: underline; }

/* Bootstrap ".table > :not(caption) > * > *" (0,1,1) hücre arka planını ezer; seçiciler ondan özgül tutulur. */
.kapsam-harita td.kapsam-bos, .kapsam-harita td.kapsam-yok, .kapsam-ornek.kapsam-bos { background-color: var(--bs-tertiary-bg); color: var(--bs-secondary-color); font-weight: 400; }
.kapsam-harita td.kapsam-k1, .kapsam-ornek.kapsam-k1 { background-color: #ded9cf; color: #1c1b19; }
.kapsam-harita td.kapsam-k2, .kapsam-ornek.kapsam-k2 { background-color: #a9d6b7; color: #1c1b19; }
.kapsam-harita td.kapsam-k3, .kapsam-ornek.kapsam-k3 { background-color: #2f7d4f; color: #fff; }
.kapsam-harita td.kapsam-celiski, .kapsam-ornek.kapsam-celiski { background-color: #e8948c; color: #1c1b19; }
.kapsam-harita td.kapsam-hata, .kapsam-ornek.kapsam-hata { background-color: #f3d9a8; color: #1c1b19; }
.kapsam-harita td.kapsam-hucre { box-shadow: none; }

.kapsam-ornek {
  display: inline-block;
  width: .8rem;
  height: .8rem;
  border-radius: .2rem;
  vertical-align: -.1rem;
  margin-right: .2rem;
}

.kademe {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  padding: .05rem .45rem;
  border-radius: 999px;
  white-space: nowrap;
}

.kademe-k0 { background: var(--bs-tertiary-bg); color: var(--bs-secondary-color); }
.kademe-k1 { background: #ded9cf; color: #1c1b19; }
.kademe-k2 { background: #dff1e4; color: #1f5b3a; }
.kademe-k3 { background: #2f7d4f; color: #fff; }
.kademe-celiski { background: #fbe5e3; color: #b8352d; }

/* Ön başvuru formu (/Basvur, 16 Eki 2026) */
.ob-sayfa { max-width: 760px; margin: 0 auto 3rem; }
.ob-hero { text-align: center; padding: 1.5rem 1rem 1.25rem; margin-bottom: 1.25rem; border-radius: 1rem;
  background: linear-gradient(160deg, #eef3f9 0%, #fbf7ee 100%); border: 1px solid #e3e8ef; }
.ob-logo { height: 56px; width: auto; margin-bottom: .75rem; }
.ob-hero h1 { font-size: 1.6rem; font-weight: 700; color: #1F4E79; margin-bottom: .5rem; }
.ob-giris { color: #3d4a57; max-width: 34rem; margin: 0 auto .75rem; }
.ob-maddeler { list-style: none; padding: 0; margin: 0 auto .75rem; display: inline-block; text-align: left; color: #3d4a57; }
.ob-maddeler li { padding-left: 1.4rem; position: relative; margin-bottom: .25rem; }
.ob-maddeler li::before { content: "✓"; position: absolute; left: 0; color: #2f7d4f; font-weight: 700; }
.ob-pdf { display: block; font-size: .9rem; margin-top: .25rem; }
.ob-kart { background: var(--bs-body-bg); border: 1px solid #e3e8ef; border-radius: .9rem; padding: 1.25rem; margin-bottom: 1rem;
  box-shadow: 0 1px 2px rgba(31, 78, 121, .06); }
.ob-kart h2 { font-size: 1.1rem; font-weight: 700; color: #1F4E79; display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.ob-no { display: inline-flex; align-items: center; justify-content: center; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  background: #1F4E79; color: #fff; font-size: .9rem; flex: none; }
.ob-alt { font-size: .95rem; font-weight: 600; margin: 1.1rem 0 .35rem; }
.ob-secimler { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: .25rem .75rem; }
.ob-tuzak { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ob-tesekkur { text-align: center; padding: 2rem 1.25rem; }
.ob-tik { width: 3.5rem; height: 3.5rem; border-radius: 50%; background: #2f7d4f; color: #fff; font-size: 2rem; line-height: 3.5rem; margin: 0 auto 1rem; }
.ob-tesekkur h2 { justify-content: center; }
@media (max-width: 575.98px) { .ob-hero h1 { font-size: 1.3rem; } .ob-kart { padding: 1rem; } }
.text-pre { white-space: pre-line; }
.ob-tr { display: block; font-size: .82em; font-weight: 400; color: var(--bs-secondary-color); }
.ob-hero h1 .ob-tr { font-size: .62em; margin-top: .15rem; }
.ob-maddeler .ob-tr, .ob-secimler .ob-tr { font-size: .78em; }

/* Bugün: Yapılacaklarım ve kapalı sistem durumu (16 Eki 2026) */
.kk-yapilacak .kk-row form { margin: 0; }
.kk-sistem > summary { cursor: pointer; font-weight: 600; color: var(--bs-secondary-color); padding: .5rem 0; }
.kk-sistem[open] > summary { margin-bottom: .5rem; }

/* Öğrenci: sıradaki adım (16 Eki 2026) */
.sira-adim { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; padding: .9rem 1.1rem; margin-bottom: 1rem;
  border-radius: .75rem; border: 1px solid #c9d8ea; background: #eef3f9; }
.sira-adim.bekle { background: var(--bs-tertiary-bg); border-color: var(--bs-border-color); }
.sira-adim form { margin: 0; }
.sira-etiket { font-size: .75rem; font-weight: 700; letter-spacing: .04em; color: #1F4E79; }
.sira-metin { font-weight: 600; }
.sira-test { font-size: .8rem; color: var(--bs-secondary-color); }
.side details.side-grup > summary { list-style: none; cursor: pointer; }
.side details.side-grup > summary::-webkit-details-marker { display: none; }
.side details.side-grup > summary::after { content: " ▾"; }
.side details.side-grup:not([open]) > summary::after { content: " ▸"; }

/* Pratiklik (24 Eki 2026): yapışık kaydet çubuğu, yardım metni anahtarı, hızlı not, kilometre taşları, aktarılan alanlar. */
.kaydet-cubuk { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  padding: .6rem .9rem; margin: 1rem -.25rem 0; background: rgba(255, 255, 255, .96); border-top: 1px solid var(--bs-border-color);
  border-radius: .5rem .5rem 0 0; box-shadow: 0 -4px 14px rgba(0, 0, 0, .06); }
body.kokpit .kaydet-cubuk { background: rgba(245, 243, 239, .97); }
form.yardim-gizli .form-text { display: none; }
.yardim-anahtari { color: var(--bs-secondary-color); }
.not-metni { max-height: 14rem; overflow: auto; background: var(--bs-tertiary-bg); border-radius: .4rem; padding: .5rem .7rem; }
.bolum-kapali > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.bolum-kapali > summary::before { content: "▸"; font-size: .8em; color: var(--bs-secondary-color); transition: transform .15s; }
.bolum-kapali[open] > summary::before { transform: rotate(90deg); }
.kilometre { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; }
.kilometre form { display: inline; }
.kt { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; padding: .25rem .6rem; border-radius: 999px;
  border: 1px solid var(--bs-border-color); background: var(--bs-body-bg); color: var(--bs-secondary-color); line-height: 1.2; }
button.kt { cursor: pointer; }
button.kt:hover { border-color: var(--bs-primary); color: var(--bs-body-color); }
.kt .kutu { width: 1rem; height: 1rem; border: 1px solid currentColor; border-radius: .25rem; display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; }
.kt.tamam { background: #e4f3ea; border-color: #2f7d4f; color: #2f7d4f; }
.kt.tamam .kutu { background: #2f7d4f; color: #fff; border-color: #2f7d4f; }
.kt small { color: inherit; opacity: .8; }
.ogr-meta a { color: inherit; }
.aktarildi { background-color: #fdf5dc !important; }
label.zorunlu::after { content: " *"; color: #b8352d; }
.zorunlu-not { font-size: .8rem; color: var(--bs-secondary-color); }

/* Program bul: ülke onay kutuları (27 Eki 2026) */
.bul-ulkeler { max-height: 16rem; overflow-y: auto; }

/* Giriş sayfası (28 Eki 2026): karşılama sayfasıyla aynı kimlik */
.giris-kart { background: var(--bs-body-bg); border: 1px solid #e3e8ef; border-radius: 1rem; padding: 1.5rem; margin-top: 1rem;
  box-shadow: 0 4px 18px rgba(31, 78, 121, .08); }
.giris-ust { text-align: center; margin: -1.5rem -1.5rem 1.25rem; padding: 1.25rem 1rem 1rem; border-radius: 1rem 1rem 0 0;
  background: linear-gradient(160deg, #eef3f9 0%, #fbf7ee 100%); border-bottom: 1px solid #e3e8ef; }
.giris-ust h1 { color: #1F4E79; font-weight: 700; }

/* Öğrenci / veli / girişsiz sayfalar üst çubuğu (28 Eki 2026): Schola laciverti */
.ust-cubuk { background: linear-gradient(90deg, #1f4e79, #2a6aa3); box-shadow: 0 2px 10px rgba(31, 78, 121, .25); }
.ust-cubuk .navbar-brand { color: #fff; font-weight: 600; }
.ust-cubuk .nav-link.text-dark { color: #e8f0f8 !important; }
.ust-cubuk .nav-link.text-dark:hover { color: #fff !important; }
.ust-cubuk .btn-outline-secondary { --bs-btn-color: #e8f0f8; --bs-btn-border-color: rgba(255, 255, 255, .5); --bs-btn-hover-bg: rgba(255, 255, 255, .15); --bs-btn-hover-color: #fff; }
.ust-cubuk .btn-secondary { --bs-btn-bg: #e2b24a; --bs-btn-border-color: #e2b24a; --bs-btn-color: #1c1b19; }
.ust-logo { height: 30px; width: auto; background: #fff; border-radius: 6px; padding: 2px 6px; }
body:not(.kokpit) { background: linear-gradient(180deg, #f4f7fb 0, #faf8f3 420px); }

/* Öğrenci formu: bölüme atla (11 Kas 2026) */
.bolum-atla { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.bolum-atla a { font-size: .8rem; padding: .2rem .6rem; border: 1px solid var(--bs-border-color); border-radius: 999px; text-decoration: none; background: var(--bs-body-bg); }
.ogrenci-form fieldset, .ogrenci-form details { scroll-margin-top: 1rem; }
