/* Rawdah Portal tanıtım ve giriş sayfası (3 Ekim 2026, yön A "Giriş önde, okul günü").
   rawdah.css belirteçlerini kullanır. Sitenin düzeniyle aynı dil: beyaz zemin, açık gri bant, tek vurgu kırmızı,
   koyu mürekkep bölüm; kemer, pastel, büyük harfli üst başlık yok. Sınıflar tn- (sayfa) ve gc- (giriş kutusu). */

.tn { --tn-yan: clamp(18px, 4vw, 48px); background: var(--rw-kagit); font-size: 16px; }
.tn-kap { max-width: 1240px; margin: 0 auto; padding-inline: var(--tn-yan); }
.tn-atla { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--rw-murekkep); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.tn-atla:focus { top: 12px; }
html { scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---- üst çubuk ---- */
.tn-ust { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--rw-cizgi); -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px); }
.tn-ust-ic { max-width: 1240px; margin: 0 auto; padding: 12px var(--tn-yan, 20px); display: flex; align-items: center; gap: 24px; }
.tn-marka { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; color: var(--rw-murekkep); }
.tn-marka img { width: 44px; height: auto; }
.tn-marka b { display: block; font-size: 16.5px; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
.tn-marka small { display: block; font-size: 12.5px; color: var(--rw-gri); }
.tn-menu { display: flex; gap: 24px; font-size: 14.5px; font-weight: 500; }
.tn-menu a, .tn-site { color: var(--rw-murekkep); text-decoration: none; }
.tn-menu a:hover, .tn-site:hover { color: var(--rw-kirmizi); }
.tn-site { font-size: 14px; color: var(--rw-gri); white-space: nowrap; }
.tn-gir { min-height: 46px; padding: 0 22px; }
@media (max-width: 900px) { .tn-menu { display: none; } }
@media (max-width: 480px) { .tn-site { display: none; } .tn-ust-ic { gap: 12px; } .tn-gir { min-height: 42px; padding: 0 16px; font-size: 14px; } }

/* ---- açılış ---- */
.tn-kahraman { background: linear-gradient(90deg, var(--rw-kagit) 0 58%, var(--rw-bant) 58% 100%); }
.tn-kahraman-ic { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding-block: clamp(40px, 6vw, 88px); }
.tn-kahraman h1 { font-size: clamp(44px, 6.6vw, 92px); line-height: .98; letter-spacing: -.038em; font-weight: 700; }
.tn-kahraman h1 em { font-style: normal; color: var(--rw-kirmizi); }
.rw .tn-alt-baslik { margin-top: 24px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; color: var(--rw-gri); max-width: 46ch; }
.tn-roller { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14.5px; color: var(--rw-murekkep); }
.tn-roller li { display: flex; align-items: center; gap: 9px; }
.tn-roller li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--rw-kirmizi); }
.tn-giris { justify-self: end; width: 100%; max-width: 440px; }
@media (max-width: 900px) {
  .tn-kahraman { background: var(--rw-kagit); }
  .tn-kahraman-ic { grid-template-columns: 1fr; padding-block: 28px 40px; }
  .tn-giris { justify-self: stretch; max-width: none; }
  .tn-roller { display: none; }
}

/* ---- giriş kutusu ---- */
.gc { background: var(--rw-kagit); border-radius: var(--rw-r); padding: 24px; box-shadow: 0 0 0 1px var(--rw-cizgi), 0 28px 56px -36px rgba(29,23,24,.42); }
.tn .gc-bas, .gc-bas { font-size: 19px; margin-bottom: 16px; }
.gc-rol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 5px; margin: 0 0 18px; border: 0; background: var(--rw-bant); border-radius: 10px; }
.gc-rol label { position: relative; }
.gc-rol input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.gc-rol span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 46px; padding: 4px; border-radius: 7px; font-size: 14.5px; font-weight: 500; color: var(--rw-gri); line-height: 1.2; }
.gc-rol input:checked + span { background: var(--rw-kagit); color: var(--rw-murekkep); font-weight: 600; box-shadow: 0 1px 2px rgba(29,23,24,.14); }
.gc-rol input:focus-visible + span { outline: 3px solid var(--rw-kirmizi); outline-offset: 1px; }
.rw .gc-kart { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--rw-r); background: var(--rw-murekkep); color: #fff; text-decoration: none; transition: background .2s; }
.rw .gc-kart:hover { background: #000; color: #fff; }
.gc-kart[hidden], .gc-ya[hidden] { display: none; }
.gc-kart svg { width: 42px; height: 42px; flex: none; }
.gc-kart b { display: block; font-size: 17px; font-weight: 600; }
.gc-kart small { display: block; font-size: 13px; color: #cfc9ca; }
.rw .gc-ya { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; color: var(--rw-gri-acik); font-size: 13px; }
.gc-ya::before, .gc-ya::after { content: ""; flex: 1; height: 1px; background: var(--rw-cizgi); }
.gc-alan { margin-bottom: 14px; }
.gc-alan label { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 600; color: var(--rw-murekkep); }
.gc-alan input { width: 100%; min-height: 50px; padding: 0 14px; border: 1.5px solid var(--rw-cizgi); border-radius: 10px; font: inherit; font-size: 16px; background: var(--rw-kagit); color: var(--rw-metin); }
.gc-alan input:focus { outline: none; border-color: var(--rw-murekkep); box-shadow: 0 0 0 3px rgba(29,23,24,.08); }
.gc-parola { position: relative; }
.gc-parola input { padding-right: 54px; }
.gc-goz { position: absolute; right: 4px; top: 5px; width: 44px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--rw-gri); cursor: pointer; }
.gc-goz:hover { background: var(--rw-bant); }
.gc-gir { width: 100%; min-height: 52px; font-size: 16px; margin-top: 4px; }
.rw .gc-not { margin-top: 14px; font-size: 13.5px; color: var(--rw-gri); line-height: 1.5; }
.gc-not b { color: var(--rw-murekkep); font-weight: 500; white-space: nowrap; }
@media (max-width: 480px) { .gc { padding: 18px; } .gc-rol span { font-size: 13.5px; } }

/* ---- fotoğraf bandı ---- */
.tn-foto { position: relative; margin: 0; height: clamp(240px, 32vw, 460px); overflow: hidden; background: var(--rw-murekkep); }
.tn-foto img { width: 100%; height: 100%; object-fit: cover; }
.rw .tn-foto figcaption { position: absolute; left: var(--tn-yan); bottom: 24px; max-width: 46ch; margin-right: var(--tn-yan); padding: 11px 15px; border-radius: var(--rw-r-k); background: var(--rw-kagit); font-size: 14px; color: var(--rw-murekkep); }
.tn-foto figcaption b { font-weight: 600; }

/* ---- bölüm başı ---- */
.tn-gun, .tn-ilk { padding-block: clamp(56px, 8vw, 112px); }
.tn-bolum-bas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: end; margin-bottom: clamp(28px, 4vw, 56px); }
.tn h2 { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.02; letter-spacing: -.032em; font-weight: 700; }
.tn-bolum-bas p { color: var(--rw-gri); max-width: 48ch; }
@media (max-width: 900px) { .tn-bolum-bas { grid-template-columns: 1fr; } }

/* ---- okul günü akışı ---- */
.tn-akis { list-style: none; margin: 0; padding: 0; position: relative; }
.tn-akis::before { content: ""; position: absolute; left: 122px; top: 10px; bottom: 10px; width: 2px; background: #e4e2e2; }
.tn-adim { display: grid; grid-template-columns: 100px minmax(0, .8fr) minmax(0, 1.2fr); gap: 0 clamp(28px, 4vw, 60px); align-items: start; padding-block: 28px; }
.tn-saat { position: relative; font-size: clamp(26px, 2.4vw, 34px); font-weight: 700; letter-spacing: -.02em; line-height: 1; color: var(--rw-kirmizi); }
.tn-saat::after { content: ""; position: absolute; right: -29px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--rw-kagit); box-shadow: 0 0 0 3px var(--rw-kirmizi); }
.tn-metin h3 { font-size: 21px; margin-bottom: 6px; }
.tn-metin p { color: var(--rw-gri); max-width: 42ch; }
.tn-kim { margin-top: 10px !important; display: flex; flex-wrap: wrap; gap: 6px; }
.tn-kim span { padding: 2px 10px; border-radius: 999px; background: var(--rw-bant); color: var(--rw-murekkep); font-size: 12.5px; font-weight: 600; }
.tn-ekr { min-width: 0; }
@media (max-width: 900px) {
  .tn-adim { grid-template-columns: 74px minmax(0, 1fr); gap: 14px 26px; }
  .tn-akis::before { left: 94px; }
  .tn-ekr { grid-column: 2; }
}
@media (max-width: 560px) {
  .tn-adim { grid-template-columns: 1fr; padding-block: 22px; gap: 10px; }
  .tn-akis::before, .tn-saat::after { display: none; }
  .tn-ekr { grid-column: 1; }
}

/* ---- kesitler (örnek ekranlar) ---- */
.tn-kes { background: var(--rw-kagit); border-radius: var(--rw-r); box-shadow: 0 0 0 1px var(--rw-cizgi), 0 18px 40px -30px rgba(29,23,24,.35); overflow: hidden; max-width: 460px; }
.tn-yigin { display: grid; gap: 10px; max-width: 430px; }
.tn-bil { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 11px; padding: 12px 14px; border-radius: 14px; background: var(--rw-kagit); box-shadow: 0 0 0 1px var(--rw-cizgi), 0 14px 30px -18px rgba(29,23,24,.4); font-size: 14px; }
.tn-bil img { width: 38px; height: 38px; padding: 4px; border-radius: 9px; box-shadow: 0 0 0 1px var(--rw-cizgi); object-fit: contain; }
.tn-bil b { font-weight: 600; color: var(--rw-murekkep); }
.tn-bil small { float: right; color: var(--rw-gri-acik); font-size: 12px; }
.tn-bil p { line-height: 1.45; }
.tn-sahne { max-width: 460px; padding: 18px; border-radius: var(--rw-r); background: #141011; color: #fff; }
.tn-sahne-ust { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tn-sahne-ust b { font-weight: 600; }
.tn-canli { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--rw-kirmizi); font-size: 12.5px; font-weight: 600; }
.tn-canli::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: tn-nabiz 1.6s infinite; }
@keyframes tn-nabiz { 50% { opacity: .35; } }
.tn-izgara { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 14px; }
.tn-kare { position: relative; aspect-ratio: 4 / 3; max-width: 100%; display: grid; place-items: center; border-radius: 8px; background: #2a2324; color: #e7e3e3; font-weight: 600; }
.tn-kare.hoca { grid-column: span 2; grid-row: span 2; background: #3a3334; font-size: 22px; box-shadow: inset 0 0 0 2px #fff; }
.tn-kare small { position: absolute; left: 7px; bottom: 4px; font-size: 11px; font-weight: 500; color: #cfc9ca; }
.tn-kare i { position: absolute; right: 6px; top: 6px; width: 8px; height: 8px; border-radius: 2px; background: var(--rw-ok); }
.rw .tn-sahne-alt { margin-top: 12px; font-size: 13px; color: #cfc9ca; }
.tn-sahne-alt span { display: inline-block; margin-right: 8px; padding: 2px 10px; border-radius: 999px; background: #2a2324; color: #fff; font-weight: 600; }
.tn-ykl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tn-ykl th { padding: 11px 14px 6px; text-align: left; font-size: 12.5px; font-weight: 600; color: var(--rw-gri); }
.tn-ykl td { padding: 9px 14px; border-top: 1px solid var(--rw-cizgi); }
.tn-ykl td:last-child, .tn-ykl th:last-child { text-align: right; }
.tn-cub { display: inline-block; width: 60px; height: 6px; margin-right: 7px; border-radius: 999px; background: var(--rw-bant); vertical-align: middle; overflow: hidden; }
.tn-cub i { display: block; height: 100%; background: var(--rw-ok); }
.tn-dil-kap { display: grid; gap: 14px; max-width: 460px; }
.tn-dil { display: flex; flex-wrap: wrap; gap: 6px; }
.tn-dil span { padding: 6px 13px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rw-cizgi); font-size: 14px; font-weight: 500; }
.tn-dil span[lang] { font-family: "Segoe UI", "Noto Sans", "Apple SD Gothic Neo", "Malgun Gothic", "PingFang SC", "Microsoft YaHei", "Noto Naskh Arabic", system-ui, sans-serif; }
.tn-dil span.s { background: var(--rw-murekkep); color: #fff; box-shadow: none; }
.tn-kitap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tn-kitap div { aspect-ratio: 3 / 4; max-width: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 10px 9px; border-radius: 6px; color: #fff; font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.tn-kitap .k1 { background: #1d1718; } .tn-kitap .k2 { background: #c8102e; } .tn-kitap .k3 { background: #5c5657; } .tn-kitap .k4 { background: #9c0c24; }
.tn-kitap small { font-size: 11px; font-weight: 400; opacity: .82; }
.tn-kitap .ses { align-self: flex-start; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.2); font-size: 11px; }
.tn-odev, .tn-veli { padding: 16px 18px; }
.tn-veli { display: grid; gap: 12px; }
.tn-satir { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tn-satir b { font-weight: 600; color: var(--rw-murekkep); }
.tn-cizgili { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rw-cizgi); }
.tn-veli .tn-cizgili { margin-top: 0; }
.tn-silik { color: var(--rw-gri); font-size: 13.5px; }
.tn-hafta { display: grid; grid-template-columns: 38px repeat(5, 1fr); gap: 4px; align-items: center; font-size: 12px; color: var(--rw-gri); }
.tn-hafta i { display: block; height: 18px; border-radius: 4px; background: var(--rw-ok); }
.tn-hafta i.s { background: var(--rw-sari); } .tn-hafta i.y { background: var(--rw-kirmizi); } .tn-hafta i.b { background: #e4e2e2; }
.rw .tn-mesaj { max-width: 36ch; padding: 10px 12px; border-radius: 12px 12px 12px 4px; background: var(--rw-bant); font-size: 14px; }
.tn-mesaj small { display: block; margin-bottom: 2px; font-size: 12px; color: var(--rw-gri); }
.rw .tn-mesaj.ben { margin-left: auto; border-radius: 12px 12px 4px 12px; background: var(--rw-murekkep); color: #fff; }
.tn-mesaj.ben small { color: #cfc9ca; }

/* ---- güven ---- */
.tn-guven { padding-block: clamp(56px, 8vw, 112px); background: #141011; color: #fff; }
.tn-guven h2 { color: #fff; max-width: 18ch; }
.rw .tn-guven-alt { margin-top: 14px; max-width: 62ch; color: #cfc9ca; }
.tn-tablo-kap { margin-top: 32px; overflow-x: auto; }
.tn-tablo { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.tn-tablo thead th { padding: 0 12px 12px; text-align: left; font-size: 13px; font-weight: 600; color: #b9b3b4; }
.tn-tablo td, .tn-tablo tbody th { padding: 15px 12px; border-top: 1px solid #332b2c; text-align: left; vertical-align: top; }
.tn-tablo tbody th { width: 30%; font-weight: 500; color: #fff; }
.tn-tablo small { display: block; font-size: 12.5px; font-weight: 400; color: #b9b3b4; }
.tn-tablo .yok { color: #7d7677; }
/* Telefonda tablo yana kaymaz: her satır bir kart, dört rol 2x2 ızgarada (rol adı data-l'den) */
@media (max-width: 640px) {
  .tn-tablo-kap { overflow: visible; }
  .tn-tablo { min-width: 0; }
  .tn-tablo thead { display: none; }
  .tn-tablo, .tn-tablo tbody { display: block; }
  .tn-tablo tr { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; padding: 18px 0; border-top: 1px solid #332b2c; }
  .tn-tablo tbody th, .tn-tablo td { padding: 0; border-top: 0; width: auto; }
  .tn-tablo tbody th { grid-column: 1 / -1; }
  .tn-tablo td::before { content: attr(data-l); display: block; margin-bottom: 2px; font-size: 12.5px; font-weight: 600; color: #b9b3b4; }
}

/* ---- ilk giriş ve sorular ---- */
.tn-ilk-ic { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); }
.tn-ilk h2 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 22px; }
.tn-adimlar { list-style: none; margin: 0; padding: 0; counter-reset: tn; display: grid; gap: 18px; }
.tn-adimlar li { counter-increment: tn; position: relative; padding-left: 60px; min-height: 44px; }
.tn-adimlar li::before { content: counter(tn); position: absolute; left: 0; top: 0; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--rw-murekkep); color: #fff; font-weight: 700; }
.tn-adimlar b { display: block; font-weight: 600; color: var(--rw-murekkep); }
.tn-adimlar span { color: var(--rw-gri); font-size: 15px; }
.tn-sss details { padding-block: 15px; border-top: 1px solid var(--rw-cizgi); }
.tn-sss details:last-child { border-bottom: 1px solid var(--rw-cizgi); }
.tn-sss summary { display: flex; justify-content: space-between; gap: 12px; list-style: none; cursor: pointer; font-weight: 600; color: var(--rw-murekkep); }
.tn-sss summary::-webkit-details-marker { display: none; }
.tn-sss summary::after { content: "+"; font-size: 22px; font-weight: 400; line-height: 1; color: var(--rw-kirmizi); }
.tn-sss details[open] summary::after { content: "\2212"; }
.rw .tn-sss details p { margin-top: 8px; color: var(--rw-gri); max-width: 60ch; }
@media (max-width: 900px) { .tn-ilk-ic { grid-template-columns: 1fr; } }

/* ---- alt bilgi ---- */
.tn-alt { background: var(--rw-bant); font-size: 14px; color: var(--rw-gri); }
.tn-alt-ic { max-width: 1240px; margin: 0 auto; padding: 28px var(--tn-yan, 20px) calc(28px + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; gap: 10px 32px; align-items: center; }
.tn-alt b { font-weight: 600; color: var(--rw-murekkep); }

/* ---- yalnız giriş sayfası (giris.php) ---- */
.tn-yalniz { min-height: calc(100vh - 69px); min-height: calc(100dvh - 69px); }
.tn-yalniz .tn-kahraman-ic { min-height: inherit; }

@media (prefers-reduced-motion: reduce) { .tn *, .tn *::before { animation: none !important; transition: none !important; } }
