/* Sınav kâğıdı: ekranda önizleme ve PDF (Chrome) için ortak. Ölçüler em ile; --o ölçeği sayfaya sığdırmada küçültür. */
@page { size: A4; margin: 0; }
.kagit-kok { --o: 1; --y: 0px; --kenar: 12mm; }
.sayfa {
  width: 210mm; height: 297mm; background: #fff; color: #111; position: relative; overflow: hidden;
  padding: var(--kenar) var(--kenar) calc(var(--kenar) + 5mm); display: flex; flex-direction: column;
  font-family: 'Segoe UI', Arial, sans-serif; font-size: calc(11pt * var(--o)); line-height: 1.35; font-weight: 400;
}
.sayfa.yay { justify-content: space-between; }
.sayfa .alt-bilgi { position: absolute; left: var(--kenar); right: var(--kenar); bottom: 6mm; display: flex;
  justify-content: space-between; font-size: 8pt; color: #666; }
.sayfa * { box-sizing: border-box; }
.sayfa img { max-width: 100%; }

/* başlık */
.kb-ust { display: flex; align-items: center; gap: .8em; border: 1.5px solid #222; border-radius: .6em; padding: .45em .8em; }
.kb-ust .meb { height: 3.2em; flex: none; }
.kb-ust .kb-yazi { flex: 1; text-align: center; line-height: 1.3; }
.kb-ust .kb-yil { font-size: .92em; font-weight: 600; letter-spacing: .02em; }
.kb-ust .kb-okul { font-size: 1.12em; font-weight: 800; letter-spacing: .02em; }
.kb-ust .kb-sinav { font-size: .98em; font-weight: 700; }
.kb-ust .kb-puan { flex: none; width: 5.2em; height: 3.6em; border: 1.5px solid #222; border-radius: .5em; text-align: center;
  font-size: .85em; font-weight: 700; padding-top: .25em; }
.kb-ogrenci { display: grid; grid-template-columns: 2.6fr 1fr 1fr; gap: .5em; margin: .5em 0 .9em; }
.kb-ogrenci > div { border: 1.2px solid #444; border-radius: .45em; padding: .35em .6em; min-height: 2.2em; display: flex; align-items: center; gap: .4em; }
.kb-ogrenci b { white-space: nowrap; }
.kb-ogrenci .dolu { font-weight: 700; font-size: 1.05em; }

/* soru bloğu */
.soru { border: 1.4px solid #222; border-radius: .6em; padding: .55em .7em .45em; margin-bottom: .75em; break-inside: avoid; position: relative; }
.sayfa.yay .soru { margin-bottom: 0; }
.soru .ust { display: flex; align-items: flex-start; gap: .6em; margin-bottom: .45em; }
.soru .no { flex: none; width: 1.75em; height: 1.75em; border-radius: 50%; background: #222; color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: 1.05em; }
.soru .yonerge { font-weight: 700; font-size: 1.04em; flex: 1; padding-top: .12em; }
.soru .sag { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: .15em; }
.soru .kazanim { font-size: .7em; color: #444; border: 1px solid #888; border-radius: .35em; padding: 0 .45em; white-space: nowrap; }
.soru .puan { font-size: .82em; font-weight: 800; border: 1.3px solid #222; border-radius: 999px; padding: 0 .6em; white-space: nowrap; }
.govde { display: flex; gap: .7em; align-items: flex-start; margin-bottom: .4em; }
.govde:empty { display: none; }
.ub { flex: 1; display: flex; flex-direction: column; gap: .45em; min-width: 0; }
.ub:empty { display: none; }
.uyaran { border: 1px solid #888; border-radius: .45em; padding: .45em .65em; line-height: 1.45; }
.mb { font-weight: 700; margin-bottom: .1em; }
.soru { --gs: 1; }   /* görsel ölçeği: Sınav Merkezi'nde soru başına elle küçültülür */
/* resim: küçük, metnin/tablonun hemen yanında (sağ üst köşe). Metin ya da tablo yoksa sağa yaslı yüzer (cevap satırları solda kalır). */
.soru { display: flow-root; }
.gorsel { flex: none; width: calc(26% * var(--o) * var(--gs)); }
.govde.ust-resim { flex-direction: row; }
.govde.ust-resim .gorsel { width: calc(26% * var(--o) * var(--gs)); align-self: flex-start; }
.govde:has(> .gorsel:only-child) { float: right; width: calc(38% * var(--o) * var(--gs)); margin: 0 0 .4em .7em; }
.govde:has(> .gorsel:only-child) .gorsel { width: 100%; }
.govde:has(> .gorsel:only-child) ~ .alt { margin-right: calc(38% * var(--o) * var(--gs) + .9em); }   /* cevap satırları resmin altına taşmasın */
.gorsel img { width: 100%; border-radius: .4em; display: block; }
.govde .gorsel img { max-height: calc(13em * var(--o) * var(--gs)); object-fit: cover; }   /* dikey (portre) resim kareye yakın kırpılır; yatay resim bozulmaz */
.govde:has(> .gorsel:only-child) .gorsel img { max-height: none; }
.diyalog { border-collapse: collapse; } .diyalog td { vertical-align: top; padding: .05em .4em .05em 0; }
.diyalog td.kisi { font-weight: 700; white-space: nowrap; }
.diyalog .dsat { display: inline-block; width: 26em; max-width: 100%; min-height: 2em; border-bottom: 1.2px dotted #444; vertical-align: bottom; }
.diyalog .ib { display: inline-block; min-width: 6.5em; border-bottom: 1.2px dotted #222; text-align: center; margin: 0 .15em; line-height: 1.25; }
.diyalog .ib .bn { float: left; font-size: .75em; color: #555; }
.diyalog .dip { color: #333; }
.diyalog .dsat:has(.cvp) { display: inline; width: auto; min-height: 0; border: 0; } /* cevaplı kâğıtta cevap satıra akar */
.kartlar { display: grid; grid-template-columns: repeat(4, 1fr); gap: .45em; width: 100%; }
.kart { border: 1.3px solid #333; border-radius: .4em; overflow: hidden; font-size: .9em; }
.kart .kb { background: #222; color: #fff; text-align: center; font-weight: 700; font-size: .9em; padding: .1em; }
.kart .foto { aspect-ratio: 1 / 1; border-bottom: 1px solid #999; overflow: hidden; width: calc(100% * var(--gs)); margin: 0 auto; }
.kart .foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kart .alan { padding: .1em .4em; } .kart .alan b { display: inline-block; min-width: 3.6em; }
.metinler { display: grid; gap: .45em; }
.kisa { border: 1px solid #888; border-radius: .4em; overflow: hidden; font-size: .94em; }
.kf { aspect-ratio: 4 / 3; border-bottom: 1px solid #aaa; overflow: hidden; width: calc(100% * var(--gs)); margin: 0 auto; }
.kf img { width: 100%; height: 100%; object-fit: cover; display: block; }
.km { padding: .3em .45em; line-height: 1.38; }
.tablo { border-collapse: collapse; width: 100%; font-size: .95em; }
.tablo th, .tablo td { border: 1.1px solid #333; padding: .3em .45em; text-align: left; }
.tablo th { background: #e9e9e9; }
.tablo td.ornek { font-style: italic; color: #333; }
.tablo td.bos { height: calc(1.9em + var(--y)); min-width: 7em; } .tablo .bn { font-size: .78em; color: #555; }
.tablo td.isaret { text-align: center; font-weight: 700; }
.sira { display: flex; gap: .5em; margin: .1em auto .45em; width: calc(100% * var(--o) * var(--gs)); }
.so { flex: 1; text-align: center; font-size: .92em; min-width: 0; }
.sf { aspect-ratio: 1 / 1; border: 1.1px solid #333; border-radius: .4em; overflow: hidden; margin-bottom: .1em; }
.sf img { width: 100%; height: 100%; object-fit: cover; display: block; }
.alt { margin: .3em 0 0; padding: 0; list-style: none; }
.alt li { margin-bottom: .2em; }
.alt .s { font-weight: 700; }
.cizgi { border-bottom: 1px dotted #333; height: calc(1.65em + var(--y)); margin: 0 0 .1em 1.5em; position: relative; }
.alt-cizgi { margin: .9em .2em .2em; }
.ornek-satir { margin: .1em 0 .35em; padding: .25em .5em; background: #f0f0f0; border-radius: .3em; }
li.bl { margin-bottom: calc(.55em + var(--y)); line-height: 1.75; }
.ipucu { font-weight: 700; letter-spacing: .06em; font-size: 1.06em; }

/* özel tipler: kelime kutusu, D/Y, eşleştirme */
.kkutu, .kkutu *, .kutu, .ec, .alt.dy li, .en, .eh { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
/* kelime kutusu: köşede etiketli, sert gölgeli "kart"; kelimeler basılabilir düğme gibi */
.kkutu { position: relative; margin: .55em .25em .3em; border: 1.6px solid #222; border-radius: .6em; padding: .8em .7em .55em;
  background: repeating-linear-gradient(135deg, #f3f3f3 0 .45em, #fafafa .45em .9em); box-shadow: .22em .22em 0 #222; }
.kkutu .kk-etiket { position: absolute; top: -.75em; left: 1em; background: #222; color: #fff; font-size: .72em; font-weight: 800;
  letter-spacing: .14em; padding: .2em .9em; border-radius: 999px; }
.kkutu .kk-kel { display: flex; flex-wrap: wrap; justify-content: center; gap: .5em .65em; }
.kkutu .kk-kel span { font-weight: 700; padding: .12em .85em .1em; border: 1.4px solid #222; border-radius: .4em; background: #fff;
  box-shadow: 0 .14em 0 #222; }
/* cevap kutusu (D/Y ve eşleştirme): hafif içe gömülü görünüm */
.kutu { display: inline-block; vertical-align: middle; width: 2.4em; height: 1.8em; border: 1.6px solid #222; border-radius: .35em;
  text-align: center; line-height: 1.6em; background: #fff; box-shadow: inset .1em .1em 0 #cfcfcf, .12em .12em 0 #222; }
.kutu .cvp { font-size: .95em; line-height: 1; }
/* sayı / harf rozetleri */
.en, .eh { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 1.65em; height: 1.65em; font-size: .92em;
  font-weight: 800; line-height: 1; }
.en { border-radius: 50%; background: #222; color: #fff; }
.eh { border-radius: .35em; background: #fff; color: #222; border: 1.6px solid #222; }
/* doğru / yanlış: her cümle bir kart, sağda T / F kutusu */
.alt.dy { margin-top: .5em; }
.alt.dy li { display: flex; align-items: center; gap: .6em; margin: 0 .2em calc(.5em + var(--y)) 0; padding: .28em .45em;
  border: 1.3px solid #222; border-radius: .5em; background: #f7f7f7; box-shadow: .16em .16em 0 #222; }
.alt.dy li:nth-child(even) { background: #fff; }
.alt.dy .dyt { flex: 1; }
.alt.dy .kutu { flex: none; }
.alt.dy li::after { content: 'T / F'; order: 3; flex: none; font-size: .62em; font-weight: 800; letter-spacing: .08em; color: #777; margin-left: -.3em; }
.alt.dy li .kutu { order: 2; }
/* eşleştirme: sol sütun (sayılı kartlar) — harf kutusu — sağ sütun (harfli kartlar) */
.esl { border-collapse: separate; border-spacing: 0 calc(.42em + var(--y) / 2); width: 100%; margin: -.2em 0; }
.esl td { vertical-align: middle; padding: 0; }
.esl td.eq { width: 47%; }
.esl td.ek { width: 7em; text-align: center; position: relative; }
.esl td.ek::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dotted #888; z-index: 0; }
.esl td.ek .kutu { position: relative; z-index: 1; }
.esl td.ea { width: 47%; }
.ec { display: flex; align-items: center; gap: .55em; padding: .3em .55em; border: 1.3px solid #222; border-radius: .5em;
  background: #f7f7f7; box-shadow: .16em .16em 0 #222; line-height: 1.3; min-height: 2.3em; }
.ec.er { background: #fff; }
.ec span:not(.kutu) { flex: 1; }

/* cevaplı kâğıt */
.cvp { color: #c4161c; font-weight: 700; font-family: 'Segoe UI', Arial, sans-serif; }
/* cevap uzunsa satır aşağı doğru uzar; soru yazısının üstüne binmez */
.cizgi:has(.cvp) { height: auto; min-height: calc(1.65em + var(--y)); display: flex; align-items: flex-end; padding: .15em 0 .1em .2em; }
.cizgi .cvp { font-size: .92em; line-height: 1.25; }
.cizgi:has(.bas) { display: flex; align-items: flex-end; }
.cizgi .bas { margin-left: .2em; line-height: 1.2; padding-bottom: .05em; }
.cvp .kbl { font-weight: 600; opacity: .85; }
li.bl .cvp { margin-left: .5em; }
.so .cvp { display: block; font-size: .9em; }

/* cevap anahtarı */
.ak-baslik { text-align: center; font-weight: 800; font-size: 1.15em; border-bottom: 2px solid #222; padding-bottom: .3em; margin-bottom: .6em; }
.ak-blok { border: 1.2px solid #444; border-radius: .5em; padding: .4em .6em; margin-bottom: .55em; break-inside: avoid; }
.ak-blok .ak-ust { display: flex; gap: .6em; align-items: baseline; margin-bottom: .2em; }
.ak-blok .ak-ust b { font-size: 1.02em; }
.ak-blok .ak-ust .kazanim { margin-left: auto; font-size: .75em; color: #444; }
.ak-satir { margin: .08em 0 .08em .4em; }
.ak-satir .kbl { color: #444; }
.ak-not { margin-top: .2em; color: #444; font-style: italic; font-size: .88em; }

/* ekran önizlemesi */
.onizleme .sayfa { box-shadow: 0 18px 50px rgba(0,0,0,.28); border-radius: 4px; margin: 0 auto 28px; }
.onizleme .soru { cursor: default; }
.onizleme .soru:hover { outline: 3px solid rgba(80,120,255,.55); outline-offset: 3px; }
.soru-arac { position: absolute; top: -1.15em; right: .6em; display: none; gap: .3em; z-index: 5; font-family: 'Nunito', sans-serif; }
.onizleme .soru:hover .soru-arac { display: flex; }
.soru-arac button { border: none; border-radius: 999px; padding: .2em .8em; font-weight: 800; font-size: .85em; cursor: pointer;
  background: #2f54eb; color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.soru-arac button.ikincil { background: #fff; color: #222; }
.soru-arac button:disabled { opacity: .45; cursor: default; }
.soru-arac .gs { align-self: center; background: #fff; color: #222; border-radius: 999px; padding: .2em .6em; font-weight: 800; font-size: .8em;
  box-shadow: 0 4px 12px rgba(0,0,0,.25); }
/* özel tiple değiştir: üzerine gelince açılan liste */
.oz-menu { position: relative; display: inline-flex; }
.oz-liste { display: none; position: absolute; top: 100%; right: 0; padding-top: .3em; flex-direction: column; gap: .25em; z-index: 6; min-width: 13em; }
.oz-menu:hover .oz-liste, .oz-menu:focus-within .oz-liste { display: flex; }
.oz-liste button { text-align: left; background: #fff; color: #222; }
.oz-liste button:hover:not(:disabled) { background: #ffd54a; }

@media print {
  body { margin: 0; background: #fff !important; }
  .sayfa { break-after: page; box-shadow: none !important; margin: 0 !important; border-radius: 0 !important; }
  .soru-arac { display: none !important; }
}
