/* ==========================================================================
   SODOO El Kitabı — okuma kabuğu
   --------------------------------------------------------------------------
   Tasarım kararı: bu bir SaaS doküman sitesi değil, bir MAKİNE KILAVUZU.
   Sol omurga bir ölçüm cetvelidir (şirketin kendi ürettiği lineer skalalar
   gibi); okuduğunuz bölüm cetvel üzerindeki turuncu setpoint işaretçisidir.
   Turuncu SADECE konum ve aktiflik anlamına gelir, süs olarak kullanılmaz.
   ========================================================================== */

:root {
    color-scheme: light;
    --ink: #14181d;
    --ink-soft: #4a545f;
    --ink-faint: #7b8794;
    --paper: #ffffff;
    --surround: #eef0f3;
    --rule: #dde1e7;
    --rule-soft: #eaedf1;
    --rail: #10151b;
    --rail-soft: #1b222b;
    --rail-ink: #aeb8c4;
    --setpoint: #dd4814;
    --setpoint-dim: #b8380f;
    --gauge: #2b7a78;

    /* Markanın bandı: petrol yeşili, üstten alta hafif koyulaşan. */
    --brand: #2f827f;
    --brand-dim: #236260;
    --brand-edge: #1a4a49;
    --gauge-dim: #1e5856;
    --caution: #b45309;
    --stop: #b91c1c;

    --measure: 68ch;
    --rail-w: 288px;
    --toc-w: 216px;
    --top-h: 56px;

    --sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
    --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
    --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* Karanlık tema KALDIRILDI (2026-09-13, kullanıcı kararı: "dark moda hiç
   gerek yok").  İki tema tutmak, her rengi iki kez doğrulamak ve her pastel
   alanı iki kez ayarlamak demekti; tek bir aydınlık palet, tasarımın
   tamamını tek bir yerde ayarlanabilir kılıyor.  `color-scheme: light`
   tarayıcıya da söylüyor, yoksa form denetimleri koyu çiziliyor. */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--top-h) + 24px);
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--surround);
    color: var(--ink);
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.72;
    font-feature-settings: "kern" 1, "liga" 1;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration-color: var(--rule);
    text-underline-offset: 3px;
}

a:hover {
    text-decoration-color: var(--setpoint);
}

:focus-visible {
    outline: 2px solid var(--setpoint);
    outline-offset: 2px;
    border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Üst şerit — makine panelinin künye çubuğu
   -------------------------------------------------------------------------- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    height: var(--top-h);
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 20px;
    /* Üst bant SODOO'nun kendi petrol yeşili (2026-09-14 kullanıcı kararı).
       Siyah bant nötrdü ama markayı hiç taşımıyordu; ürünün kendi rengi
       zaten paletin içinde duruyor (--gauge). */
    background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dim) 100%);
    color: #eef6f5;
    border-bottom: 1px solid var(--brand-edge);
}

.topbar__brand {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-family: var(--sans);
    text-decoration: none;
    white-space: nowrap;
}

.topbar__mark {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    color: #fff;
}

.topbar__mark em {
    font-style: normal;
    color: var(--setpoint);
}

.topbar__where {
    font-size: 0.8rem;
    color: rgba(238, 246, 245, 0.78);
}

.topbar__spacer {
    flex: 1 1 auto;
}

.topbar__search {
    position: relative;
    flex: 0 1 380px;
    min-width: 0;
}

/* Banttaki öğeler artık petrol yeşiline göre: beyazın saydam tonları,
   griler değil.  Gri, yeşilin üstünde soluk ve kirli okunuyordu. */
.topbar__search input {
    width: 100%;
    height: 34px;
    padding: 0 78px 0 12px;
    font-family: var(--sans);
    font-size: 0.86rem;
    color: #f2fbfa;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 3px;
}

.topbar__search input::placeholder {
    color: rgba(242, 251, 250, 0.62);
}

.topbar__search input:focus {
    border-color: var(--setpoint);
    outline: none;
}

.topbar__kbd {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--sans);
    /* 0.68rem = 10.9px, ölçülebilir biçimde okunamaz.  Bu, el kitabının da
       kusuruydu; kılavuzlar aynı kabuğu kullandığı için iki yerde birden
       düzeltilir -- ikinci bir eşik değil, aynı eşik. */
    font-size: 0.75rem;
    color: rgba(242, 251, 250, 0.7);
    pointer-events: none;
}

.topbar__links {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--sans);
    font-size: 0.82rem;
}

.topbar__links a,
.topbar__links button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    color: rgba(238, 246, 245, 0.88);
    background: none;
    border: 0;
    border-radius: 3px;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

.topbar__links a:hover,
.topbar__links button:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.topbar__burger {
    display: none;
    flex: none;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1.05rem;
    color: var(--rail-ink);
    background: none;
    border: 1px solid #2b333d;
    border-radius: 3px;
    cursor: pointer;
}

.topbar__burger:hover {
    color: #fff;
}

/* --------------------------------------------------------------------------
   Yerleşim
   -------------------------------------------------------------------------- */

.shell {
    display: grid;
    grid-template-columns: var(--rail-w) minmax(0, 1fr) var(--toc-w);
    align-items: start;
    max-width: 1560px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Sol omurga — ölçüm cetveli
   -------------------------------------------------------------------------- */

.scale {
    position: sticky;
    top: var(--top-h);
    max-height: calc(100vh - var(--top-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 28px 0 64px;
    font-family: var(--sans);
    scrollbar-width: thin;
}

.scale__part {
    margin: 26px 0 8px;
    padding: 0 20px 0 60px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--ink-faint);
}

.scale__part:first-child {
    margin-top: 0;
}

.scale__list {
    list-style: none;
    margin: 0;
    padding: 0;
    /* cetvelin gövde çizgisi */
    background-image: linear-gradient(var(--rule), var(--rule));
    background-size: 1px 100%;
    background-position: 43px 0;
    background-repeat: no-repeat;
}

.scale__item {
    position: relative;
}

.scale__link {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: baseline;
    gap: 12px;
    padding: 7px 20px 7px 0;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--ink-soft);
    text-decoration: none;
}

.scale__num {
    justify-self: end;
    padding-right: 9px;
    font-variant-numeric: tabular-nums;
    font-size: 0.76rem;
    color: var(--ink-faint);
}

/* her bölüm cetvelde bir çentik */
.scale__link::before {
    content: "";
    position: absolute;
    left: 43px;
    top: 15px;
    width: 7px;
    height: 1px;
    background: var(--rule);
}

.scale__link:hover {
    color: var(--ink);
}

.scale__link:hover .scale__num {
    color: var(--ink);
}

.scale__item--current .scale__link {
    color: var(--ink);
    font-weight: 600;
}

/* setpoint işaretçisi: cetvele kenetlenen turuncu blok */
.scale__item--current::before {
    content: "";
    position: absolute;
    left: 40px;
    top: 8px;
    bottom: 8px;
    width: 4px;
    background: var(--setpoint);
    border-radius: 1px;
}

.scale__item--current .scale__num {
    color: var(--setpoint);
    font-weight: 600;
}

.scale__foot {
    margin: 28px 20px 0 60px;
    padding-top: 16px;
    border-top: 1px solid var(--rule);
    font-size: 0.78rem;
    line-height: 1.6;
    color: var(--ink-faint);
}

.scale__foot a {
    display: block;
    padding: 3px 0;
    color: var(--ink-soft);
    text-decoration: none;
}

.scale__foot a:hover {
    color: var(--setpoint);
}

/* --------------------------------------------------------------------------
   Sayfa — beyaz tabaka
   -------------------------------------------------------------------------- */

.sheet {
    min-width: 0;
    background: var(--paper);
    border-left: 1px solid var(--rule);
    border-right: 1px solid var(--rule);
    min-height: calc(100vh - var(--top-h));
    padding: 56px 64px 96px;
}

.sheet__head {
    margin-bottom: 44px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--rule);
}

.sheet__part {
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--setpoint);
    margin: 0 0 10px;
}

.sheet__title {
    font-family: var(--sans);
    font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.12;
    margin: 0;
    text-wrap: balance;
}

.sheet__standfirst {
    max-width: var(--measure);
    margin: 16px 0 0;
    font-size: 1.16rem;
    line-height: 1.6;
    color: var(--ink-soft);
}

.sheet__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin-top: 20px;
    font-family: var(--sans);
    font-size: 0.78rem;
    color: var(--ink-faint);
}

.sheet__meta strong {
    font-weight: 600;
    color: var(--ink-soft);
}

/* Ölçü KABA değil METNE uygulanır.  Kap ölçüdeyken ekran görüntüleri de
   768 pikselde kalıyor, orta sütunun yarısı boş duruyordu (kullanıcı
   2026-09-15: "SS'ler tüm orta ekranı verimli kullanacak şekilde sığsın").
   Satır uzunluğu okunabilirlik içindir; bir ekran görüntüsü için genişlik
   okunabilirliğin kendisidir. */
.prose {
    max-width: none;
}

.prose > :where(p, ul, ol, dl, blockquote, h2, h3, h4, h5, hr, aside, .note,
                .lesson, .case, .steps) {
    max-width: var(--measure);
}

.prose figure,
.prose figure img,
.prose .shot img {
    width: 100%;
}

/* Dikey ritim tek yerden yönetilir.  Sıfırlama :where() ile yazılıyor, çünkü
   :where() özgüllük eklemez: aşağıdaki kardeş kuralı her zaman kazanır.
   (Bu iki kural ters sırada yazılınca paragraf araları sessizce kapanıyordu.) */
.prose :where(p, ul, ol, blockquote, pre, figure, table, dl, h2, h3, h4) {
    margin: 0;
}

.prose > * + * {
    margin-top: 1.15em;
}

.prose h2 {
    font-family: var(--sans);
    font-size: 1.52rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 2.6em 0 0;
    padding-top: 0.8em;
    border-top: 1px solid var(--rule-soft);
    scroll-margin-top: 90px;
}

.prose h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.prose h3 {
    font-family: var(--sans);
    font-size: 1.14rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 2em 0 0;
    scroll-margin-top: 90px;
}

.prose h4 {
    font-family: var(--sans);
    font-size: 0.96rem;
    font-weight: 600;
    margin: 1.7em 0 0;
    color: var(--ink-soft);
}

.prose ul,
.prose ol {
    padding-left: 1.35em;
}

.prose li + li {
    margin-top: 0.4em;
}

.prose li > ul,
.prose li > ol {
    margin-top: 0.4em;
}

.prose strong {
    font-weight: 600;
}

.prose code {
    font-family: var(--mono);
    font-size: max(13.5px, 0.88em);
    padding: 0.12em 0.35em;
    background: var(--surround);
    border: 1px solid var(--rule-soft);
    border-radius: 2px;
    word-break: break-word;
}

.prose pre {
    margin: 1.5em 0;
    padding: 16px 18px;
    overflow-x: auto;
    background: var(--rail);
    border-radius: 3px;
    color: #dfe6ee;
    font-family: var(--mono);
    /* Taban 13,5 px: kod bloğunun uzun satırı düzyazı sayılır ve 0,82rem
       (13,12 px) okunabilirlik eşiğinin altında kalıyordu. */
    font-size: max(13.5px, 0.82rem);
    line-height: 1.6;
}

.prose pre code {
    padding: 0;
    background: none;
    border: 0;
    color: inherit;
    font-size: inherit;
}

.prose blockquote {
    margin: 1.5em 0;
    padding-left: 20px;
    border-left: 2px solid var(--rule);
    color: var(--ink-soft);
    font-style: italic;
}

.prose hr {
    margin: 2.6em 0;
    border: 0;
    border-top: 1px solid var(--rule);
}

.prose img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--rule);
    border-radius: 2px;
}

.prose figure {
    margin: 1.8em 0;
}

.prose figcaption {
    margin-top: 8px;
    font-family: var(--sans);
    font-size: 0.86rem;
    color: var(--ink-faint);
}

/* geniş içerik kendi kutusunda kayar, sayfa yatay kaymaz */
.wide {
    max-width: min(1040px, 100%);
    overflow-x: auto;
}

.prose table,
.wide table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--sans);
    font-size: 0.86rem;
    line-height: 1.5;
}

.prose table {
    margin: 1.6em 0;
}

.prose th,
.wide th {
    text-align: left;
    font-weight: 600;
    padding: 9px 14px 9px 0;
    border-bottom: 1.5px solid var(--ink);
    white-space: nowrap;
}

.prose td,
.wide td {
    padding: 9px 14px 9px 0;
    border-bottom: 1px solid var(--rule-soft);
    vertical-align: top;
}

.prose tbody tr:last-child td {
    border-bottom: 0;
}

/* --------------------------------------------------------------------------
   Not blokları — teknik resimdeki açıklama balonları gibi
   -------------------------------------------------------------------------- */

.note {
    margin: 1.7em 0;
    padding: 14px 18px 15px;
    border-left: 3px solid var(--ink-faint);
    background: var(--surround);
    border-radius: 0 3px 3px 0;
}

.note > * + * {
    margin-top: 0.7em;
}

.note__label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--sans);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink);
}

.note__label::before {
    content: "";
    width: 8px;
    height: 8px;
    flex: none;
    background: var(--ink-faint);
}

.note p,
.note li {
    font-size: 0.95rem;
    line-height: 1.62;
}

.note--tip {
    border-left-color: var(--gauge);
}

.note--tip .note__label::before {
    background: var(--gauge);
    border-radius: 50%;
}

.note--caution {
    border-left-color: var(--caution);
}

.note--caution .note__label::before {
    background: var(--caution);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.note--stop {
    border-left-color: var(--stop);
}

.note--stop .note__label::before {
    background: var(--stop);
    clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}

.note--ai {
    border-left-color: var(--setpoint);
    background: color-mix(in srgb, var(--setpoint) 7%, var(--paper));
}

.note--ai .note__label::before {
    background: var(--setpoint);
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

/* --------------------------------------------------------------------------
   Vaka ve ders blokları — kitabın omurgası
   -------------------------------------------------------------------------- */

.case,
.lesson {
    margin: 2em 0;
    border: 1px solid var(--rule);
    border-radius: 3px;
    background: var(--paper);
}

.case__head,
.lesson__head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--rule);
    background: var(--surround);
    font-family: var(--sans);
}

.case__kind,
.lesson__kind {
    flex: none;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--paper);
    background: var(--ink);
    padding: 2px 7px;
    border-radius: 2px;
}

.lesson__kind {
    background: var(--setpoint);
}

.case__title,
.lesson__title {
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.4;
}

.case__body,
.lesson__body {
    padding: 16px 20px 18px;
}

.case__body > * + *,
.lesson__body > * + * {
    margin-top: 0.9em;
}

.case dl,
.lesson dl {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 8px 18px;
    margin: 0;
    font-size: 0.95rem;
}

.case dt,
.lesson dt {
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink-faint);
    padding-top: 2px;
}

.case dd,
.lesson dd {
    margin: 0;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Adım listesi — sıralı bir yordam, gerçekten sıra olduğu için numaralı
   -------------------------------------------------------------------------- */

.steps {
    counter-reset: step;
    list-style: none;
    margin: 1.7em 0;
    padding: 0;
}

.steps > li {
    position: relative;
    counter-increment: step;
    padding: 0 0 18px 46px;
    border-left: 1px solid var(--rule);
    margin-left: 13px;
}

.steps > li:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}

.steps > li::before {
    content: counter(step);
    position: absolute;
    left: -14px;
    top: -2px;
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    background: var(--paper);
    border: 1px solid var(--ink);
    border-radius: 50%;
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.steps > li + li {
    margin-top: 0;
}

/* --------------------------------------------------------------------------
   Künye plakası — makinelerin taşıdığı gravür plaka
   -------------------------------------------------------------------------- */

.nameplate {
    margin: 2em 0;
    padding: 4px;
    background: linear-gradient(160deg, #2b333d, #10151b 55%, #232b34);
    border-radius: 4px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.nameplate__inner {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 2px;
    padding: 20px 24px;
}

.nameplate__title {
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 600;
    color: #8b97a4;
    margin: 0 0 14px;
}

.nameplate__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: 18px 26px;
}

.nameplate__cell {
    min-width: 0;
}

.nameplate__value {
    font-family: var(--sans);
    font-size: 1.6rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1.1;
}

.nameplate__value span {
    color: var(--setpoint);
}

.nameplate__label {
    margin-top: 4px;
    font-family: var(--sans);
    font-size: 0.76rem;
    line-height: 1.4;
    color: #8b97a4;
}

/* --------------------------------------------------------------------------
   Sayfa sonu gezinme
   -------------------------------------------------------------------------- */

.pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: var(--measure);
    margin-top: 64px;
    padding-top: 26px;
    border-top: 1px solid var(--rule);
    font-family: var(--sans);
}

.pager__link {
    padding: 14px 16px;
    border: 1px solid var(--rule);
    border-radius: 3px;
    text-decoration: none;
}

.pager__link:hover {
    border-color: var(--setpoint);
}

.pager__link--next {
    grid-column: 2;
    text-align: right;
}

.pager__dir {
    display: block;
    font-size: 0.76rem;
    color: var(--ink-faint);
}

.pager__name {
    display: block;
    margin-top: 3px;
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.35;
}

/* --------------------------------------------------------------------------
   Sağ sütun — bu sayfada
   -------------------------------------------------------------------------- */

.toc {
    position: sticky;
    top: var(--top-h);
    max-height: calc(100vh - var(--top-h));
    overflow-y: auto;
    padding: 56px 20px 64px 22px;
    font-family: var(--sans);
    font-size: 0.8rem;
    line-height: 1.45;
}

.toc__label {
    font-weight: 600;
    color: var(--ink-faint);
    margin-bottom: 10px;
}

.toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 1px solid var(--rule);
}

.toc li a {
    display: block;
    padding: 5px 0 5px 14px;
    margin-left: -1px;
    border-left: 2px solid transparent;
    color: var(--ink-soft);
    text-decoration: none;
}

.toc li a:hover {
    color: var(--ink);
}

.toc li a.is-current {
    color: var(--ink);
    font-weight: 600;
    border-left-color: var(--setpoint);
}

.toc li.toc--h3 a {
    padding-left: 26px;
    font-size: 0.76rem;
}

/* --------------------------------------------------------------------------
   Arama katmanı
   -------------------------------------------------------------------------- */

.finder {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    padding: 12vh 20px 20px;
    background: rgba(10, 14, 18, 0.55);
}

.finder[data-open="1"] {
    display: block;
}

.finder__panel {
    max-width: 660px;
    margin: 0 auto;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 5px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
    overflow: hidden;
}

.finder__input {
    width: 100%;
    padding: 17px 20px;
    border: 0;
    border-bottom: 1px solid var(--rule);
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.02rem;
}

.finder__input:focus {
    outline: none;
}

.finder__results {
    max-height: 56vh;
    overflow-y: auto;
    margin: 0;
    padding: 6px;
    list-style: none;
}

.finder__results li a {
    display: block;
    padding: 9px 14px;
    border-radius: 3px;
    text-decoration: none;
    font-family: var(--sans);
}

.finder__results li a:hover,
.finder__results li[data-active="1"] a {
    background: var(--surround);
}

.finder__name {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink);
}

.finder__where {
    display: block;
    margin-top: 2px;
    font-size: 0.78rem;
    color: var(--ink-faint);
}

.finder__empty {
    padding: 22px;
    font-family: var(--sans);
    font-size: 0.9rem;
    color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   Duyarlılık
   -------------------------------------------------------------------------- */

@media (max-width: 1280px) {
    .shell {
        grid-template-columns: var(--rail-w) minmax(0, 1fr);
    }

    .toc {
        display: none;
    }
}

@media (max-width: 960px) {
    .shell {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Üst şerit dar ekranda kendi genişliğini dayatamaz.
       Daralmayan bağlantılar sayfayı viewport'tan geniş yapıp gövdeyi sağdan
       kesiyordu; kalan tek kontrol bölüm menüsü ve tema. */
    .topbar {
        gap: 10px;
        padding: 0 12px;
        overflow: hidden;
    }

    .topbar__burger {
        display: inline-flex;
    }

    .topbar__search,
    .topbar__links a {
        display: none;
    }

    .topbar__where {
        display: none;
    }

    .topbar__brand {
        min-width: 0;
        overflow: hidden;
    }

    .scale {
        position: fixed;
        top: var(--top-h);
        bottom: 0;
        left: 0;
        width: min(320px, 86vw);
        max-height: none;
        z-index: 55;
        background: var(--paper);
        border-right: 1px solid var(--rule);
        transform: translateX(-102%);
        transition: transform 0.18s ease;
    }

    .scale[data-open="1"] {
        transform: none;
        box-shadow: 0 0 0 100vmax rgba(10, 14, 18, 0.4);
    }

    .sheet {
        padding: 34px 22px 72px;
        border-left: 0;
        border-right: 0;
    }
}

@media (max-width: 560px) {
    body {
        font-size: 16px;
    }

    .case dl,
    .lesson dl {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px 0;
    }

    .case dd,
    .lesson dd {
        margin-bottom: 10px;
    }

    .pager {
        grid-template-columns: minmax(0, 1fr);
    }

    .pager__link--next {
        grid-column: 1;
    }
}

/* --------------------------------------------------------------------------
   Baskı — kitap gerçekten basılabilsin
   -------------------------------------------------------------------------- */

@media print {
    .topbar,
    .scale,
    .toc,
    .pager,
    .finder {
        display: none !important;
    }

    body {
        background: #fff;
        font-size: 11pt;
    }

    .shell {
        display: block;
    }

    .sheet {
        padding: 0;
        border: 0;
    }

    .prose {
        max-width: none;
    }

    .prose h2 {
        break-after: avoid;
    }

    .note,
    .case,
    .lesson,
    .steps > li {
        break-inside: avoid;
    }

    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #555;
    }
}


/* --------------------------------------------------------------------------
   Ekran görüntüsü büyütme
   -------------------------------------------------------------------------- */

img.zoomable {
    cursor: zoom-in;
}

img.zoomable:focus-visible {
    outline: 3px solid var(--accent, #2f827f);
    outline-offset: 3px;
}

html.zoom-open {
    overflow: hidden;
}

/* Ekran görüntülerindeki verinin hayali olduğunu söyleyen tek satır (kullanıcı
   isteği 2026-09-15). book.js sayfanın ilk karesinin üstüne koyar. */
.demo-note {
    margin: 0 0 1rem;
    padding: 0.55rem 0.85rem;
    border-left: 3px solid var(--accent, #2f827f);
    border-radius: 4px;
    background: rgba(47, 130, 127, 0.07);
    color: #4b5b5a;
    font-family: var(--sans);
    font-size: 0.86rem;
    line-height: 1.45;
}

.zoom__caption small {
    display: block;
    margin-top: 2px;
    color: #b8c6cc;
    font-size: 0.8rem;
}

.zoom {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 28px 16px 18px;
    background: rgba(12, 18, 24, 0.92);
}

/* `display: flex` above outranks the browser's own [hidden] rule, so
   layer.hidden = true changed nothing and the picture never closed
   (user report, 2026-09-15). */
.zoom[hidden] {
    display: none;
}

.zoom__frame {
    max-width: 100%;
    max-height: calc(100vh - 90px);
    overflow: auto;
}

.zoom__img {
    display: block;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 90px);
    width: auto;
    height: auto;
    border-radius: 6px;
    background: #fff;
    cursor: zoom-in;
}

.zoom--actual .zoom__frame {
    width: calc(100vw - 32px);
    height: calc(100vh - 90px);
}

.zoom--actual .zoom__img {
    max-width: none;
    max-height: none;
    width: auto;
    cursor: zoom-out;
}

.zoom__caption {
    margin: 0;
    max-width: 60rem;
    color: #e8eef2;
    font-family: var(--sans);
    font-size: 0.95rem;
    text-align: center;
}

.zoom__close {
    position: absolute;
    top: 10px;
    right: 14px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.zoom__close:focus-visible {
    outline: 3px solid #fff;
}
