/* Osmanlı Türkçesi (osmanlica-sayfalari.ps1 yazar). Ana sitede ve /osmanlica/ sayfasında kullanılır;
   renkler sayfanın kendi değişkenlerinden (--ink, --line, --accent ...) gelir. Osmanlıca yazı Noto Naskh Arabic ile. */
.osm { font-family: "Noto Naskh Arabic", "Amiri", "Traditional Arabic", "Arial Unicode MS", serif; font-size: 1.32em; line-height: 1.6; font-weight: 400; direction: rtl; unicode-bidi: isolate; white-space: nowrap; }
.osm-metin { min-width: 0; max-width: 78ch; }
.osm-metin .osm-bolum { scroll-margin-top: 90px; margin: 0 0 34px; }
.osm-metin h2 { margin: 0 0 10px; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--font-serif); font-weight: 500; font-size: 1.55rem; line-height: 1.2; }
.osm-metin .osm-bolum:first-child h2 { border-top: 0; padding-top: 0; }
.osm-metin h3 { margin: 20px 0 8px; font-size: 1.05rem; font-weight: 600; }
.osm-metin p, .osm-metin ul { margin: 0 0 10px; }
.osm-metin ul { padding-left: 1.3em; }
.osm-metin li { margin-bottom: 4px; }
.osm-metin .kutu { margin: 12px 0; padding: 12px 16px; border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--accent-soft); }
.osm-metin .kutu p { margin: 0; }
.osm-metin .kutu .osm { white-space: normal; font-size: 1.45em; }
.osm-metin .tablo { margin: 10px 0 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.osm-metin table { width: 100%; border-collapse: collapse; font-size: 0.92rem; line-height: 1.45; }
.osm-metin th, .osm-metin td { padding: 7px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.osm-metin thead th { background: var(--accent-soft); font-weight: 600; }
.osm-metin tbody tr:last-child td { border-bottom: 0; }
.osm-metin td .osm { font-size: 1.75em; line-height: 1.5; }
.osm-metin .osym-liste { margin: 12px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.osm-metin .osym-liste summary { padding: 10px 14px; cursor: pointer; font-weight: 600; color: var(--accent); }
.osm-metin .osym-liste ul { list-style: none; columns: 2 280px; column-gap: 24px; margin: 0; padding: 4px 16px 6px; font-size: 0.9rem; }
.osm-metin .osym-liste li { break-inside: avoid; }
.osm-metin .osym-liste p { margin: 0; padding: 4px 16px 12px; font-size: 0.86rem; color: var(--ink-faint); }
.osm-metin .yn { display: inline-block; min-width: 7.4em; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.osm-metin .soru { margin: 14px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.osm-metin .soru-metin { font-weight: 500; }
.osm-metin .soru-no { color: var(--accent); font-weight: 700; }
.osm-metin .secenekler { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.osm-metin .secenekler li { margin: 0; }
.osm-metin .secenekler button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.osm-metin .secenekler button:hover { border-color: var(--accent); }
.osm-metin .secenekler button.dogru { border-color: #2e7d4f; background: color-mix(in srgb, #2e7d4f 14%, transparent); }
.osm-metin .secenekler button.yanlis { border-color: #b3261e; background: color-mix(in srgb, #b3261e 12%, transparent); }
.osm-metin .cevap summary { cursor: pointer; font-size: 0.88rem; font-weight: 600; color: var(--accent); }
.osm-metin .cevap p { margin: 8px 0 0; font-size: 0.93rem; }
/* /osmanlica/ sayfası */
.osm-sayfa .btns { display: flex; flex-wrap: wrap; gap: 8px; }
.osm-toc { padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font-size: 0.9rem; }
.osm-toc summary { cursor: pointer; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.osm-toc ol { margin: 10px 0 0; padding-left: 0; list-style: none; columns: 2 240px; column-gap: 24px; }
.osm-toc a { display: block; padding: 3px 0; text-decoration: none; }
.osm-toc a:hover { text-decoration: underline; }
@media (max-width: 520px) { .osm-metin th, .osm-metin td { padding: 6px 8px; } .osm-metin table { font-size: 0.86rem; } }
@media print { .topbar, .crumbs, .btns, .osm-toc, footer { display: none !important; } .osm-metin details { display: block; } }