/* ==========================================================================
   Marpany Blog — dizin + yazı sayfası
   Karanlık marka başlığı (site ile aynı) + uzun okuma için sıcak, açık "kağıt" yüzey.
   Tüm sınıflar b- önekli; içerik bileşenleri (.callout, .stat-grid, .flow, .compare,
   .checklist, .table-wrap, .bcalc) yalnızca .b-prose içinde biçimlenir.
   RTL: yalnızca mantıksal özellikler (margin-inline, inset-inline, border-inline).
   ========================================================================== */

.blog-page,
.b-kmrel {
    --b-ink: #16172b;
    --b-ink-2: #3a3c55;
    --b-ink-3: #62657e;
    --b-paper: #faf8f4;
    --b-paper-2: #f3efe7;
    --b-card: #ffffff;
    --b-line: #e6e1d6;
    --b-line-2: #d8d1c2;
    --b-accent: #ff6c1e;
    --b-accent-ink: #b8430b;
    --b-accent-soft: #fff1e8;
    --b-night: #0c0d1d;
    --b-night-2: #15162e;
    --b-tip: #0f7a55;
    --b-tip-soft: #e8f6ef;
    --b-warn: #9a5b00;
    --b-warn-soft: #fff5e0;
    --b-info: #1f5fbf;
    --b-info-soft: #eaf1fd;
    --b-radius: 16px;
    --b-radius-sm: 10px;
    --b-shadow: 0 1px 2px rgba(22, 23, 43, .05), 0 8px 24px -12px rgba(22, 23, 43, .18);
    --b-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --b-font-head: 'Sora', 'Inter', system-ui, sans-serif;
    --b-gutter: 16px;
}

/* Sora Kiril içermiyor: Rusçada başlıklar da Inter. Arapça: IBM Plex Sans Arabic. */
html[lang="ru"] .blog-page, html[lang="ru"] .b-kmrel { --b-font-head: 'Inter', system-ui, sans-serif; }
html[lang="ar"] .blog-page,
html[lang="ar"] .b-kmrel {
    --b-font-body: 'IBM Plex Sans Arabic', 'Tajawal', system-ui, sans-serif;
    --b-font-head: 'IBM Plex Sans Arabic', 'Tajawal', system-ui, sans-serif;
}

/* .page-wrapper overflow:hidden → sticky içindekiler çalışmıyordu; clip kaydırma kabı oluşturmaz. */
.blog-page .page-wrapper { overflow: clip; }

@media (min-width: 768px) { .blog-page { --b-gutter: 32px; } }

.b-wrap {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: var(--b-gutter);
}

.b-sr {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
    white-space: nowrap;
}

/* ---------- Okuma ilerleme çubuğu ---------- */
.b-progress {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    height: 3px;
    z-index: 10000;
    background: transparent;
    pointer-events: none;
}
.b-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, #ff6c1e, #ffb36b);
    transform: scaleX(0);
    transform-origin: left center;
    will-change: transform;
}
html[dir="rtl"] .b-progress__bar { transform-origin: right center; background: linear-gradient(270deg, #ff6c1e, #ffb36b); }

/* ---------- Hero (karanlık, site başlığıyla bütün) ---------- */
.b-hero {
    position: relative;
    background:
        radial-gradient(900px 420px at 12% -10%, rgba(255, 108, 30, .20), transparent 60%),
        radial-gradient(700px 380px at 95% 10%, rgba(66, 107, 255, .16), transparent 60%),
        linear-gradient(180deg, var(--b-night) 0%, var(--b-night-2) 100%);
    color: #eef0fa;
    padding-block: 128px 56px;
    overflow: hidden;
}
.b-hero::after {
    /* ince ızgara dokusu - sakin, markalı */
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 85%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 85%);
    pointer-events: none;
}
.b-hero > * { position: relative; z-index: 1; }
.b-hero--post { padding-block-end: 0; }

.b-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin: 0 0 22px;
    padding: 0;
    font-family: var(--b-font-body);
    font-size: .875rem;
    color: #a9adc8;
}
.b-crumbs li { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.b-crumbs li + li::before { content: '/'; color: #5d6183; }
.b-crumbs a { color: #cfd2ea; text-decoration: none; }
.b-crumbs a:hover { color: #fff; text-decoration: underline; }
.b-crumbs [aria-current] { color: #8f93b3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }

.b-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 12px;
    border-radius: 999px;
    font-family: var(--b-font-body);
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .02em;
    line-height: 1.2;
    text-decoration: none;
    color: #ffd9c2;
    background: rgba(255, 108, 30, .14);
    border: 1px solid rgba(255, 108, 30, .38);
}
.b-chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--b-accent); box-shadow: 0 0 0 3px rgba(255, 108, 30, .25); }
.b-chip--light { color: var(--b-accent-ink); background: var(--b-accent-soft); border-color: #ffd3b8; }
.b-chip--light::before { box-shadow: none; }

.b-hero__inner { max-width: 880px; }
.b-hero__title {
    font-family: var(--b-font-head);
    font-weight: 700;
    color: #fff;
    font-size: clamp(2rem, 1.35rem + 2.9vw, 3.35rem);
    line-height: 1.12;
    letter-spacing: -.02em;
    margin: 18px 0 18px;
    text-wrap: balance;
}
html[lang="ar"] .b-hero__title { line-height: 1.35; letter-spacing: 0; }
.b-hero__lead {
    font-family: var(--b-font-body);
    font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem);
    line-height: 1.6;
    color: #c4c8e2;
    max-width: 62ch;
    margin: 0;
}

.b-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 22px;
    margin: 26px 0 0;
    padding: 0;
    font-family: var(--b-font-body);
    font-size: .9375rem;
    color: #b7bbd6;
}
.b-meta li { display: inline-flex; align-items: center; gap: 8px; }
.b-meta svg { width: 17px; height: 17px; flex: none; color: #ff9a5c; }
.b-meta strong { color: #fff; font-weight: 600; }
.b-meta__author { gap: 10px !important; }
.b-avatar {
    width: 34px; height: 34px; flex: none;
    border-radius: 50%;
    display: grid; place-items: center;
    background: linear-gradient(145deg, #ff6c1e, #94390a);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .12);
}
.b-avatar svg { width: 20px; height: 20px; color: #fff; }

.b-cover {
    margin: 44px 0 0;
    position: relative;
}
.b-cover img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1200 / 630;
    object-fit: cover;
    border-radius: var(--b-radius) var(--b-radius) 0 0;
    box-shadow: 0 -10px 60px -20px rgba(255, 108, 30, .35);
}
@media (min-width: 992px) {
    .b-cover { max-width: 880px; }
}

/* ---------- Kağıt yüzey + yerleşim ---------- */
.b-paper {
    background: var(--b-paper);
    color: var(--b-ink);
    font-family: var(--b-font-body);
    padding-block: 48px 72px;
}
.b-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
}
@media (min-width: 1100px) {
    .b-layout {
        grid-template-columns: minmax(0, 720px) 264px;
        justify-content: space-between;
        gap: 72px;
    }
}
.b-article { min-width: 0; }

/* ---------- Kısa cevap + öne çıkanlar ---------- */
.b-answer {
    position: relative;
    margin: 0 0 28px;
    padding: 26px 28px 24px;
    background: var(--b-card);
    border: 1px solid var(--b-line);
    border-inline-start: 5px solid var(--b-accent);
    border-radius: var(--b-radius-sm);
    box-shadow: var(--b-shadow);
}
.b-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-family: var(--b-font-body);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--b-accent-ink);
}
html[lang="ar"] .b-label { letter-spacing: 0; font-size: .875rem; }
.b-label svg { width: 16px; height: 16px; }
.b-answer p {
    margin: 0;
    font-size: 1.1875rem;
    line-height: 1.7;
    color: var(--b-ink);
    font-weight: 500;
}

.b-takeaways {
    margin: 0 0 44px;
    padding: 24px 28px;
    border-radius: var(--b-radius-sm);
    background:
        radial-gradient(circle at 1px 1px, rgba(22, 23, 43, .07) 1px, transparent 0) 0 0 / 14px 14px,
        var(--b-paper-2);
    border: 1px solid var(--b-line);
}
.b-takeaways ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.b-takeaways li {
    position: relative;
    padding-inline-start: 34px;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--b-ink-2);
}
.b-takeaways li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: .2em;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--b-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* ---------- İçindekiler ---------- */
.b-toc-mobile {
    margin: 0 0 36px;
    border: 1px solid var(--b-line);
    border-radius: var(--b-radius-sm);
    background: var(--b-card);
}
.b-toc-mobile > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    font-weight: 600;
    color: var(--b-ink);
}
.b-toc-mobile > summary::-webkit-details-marker { display: none; }
.b-toc-mobile > summary::after {
    content: '';
    width: 10px; height: 10px;
    border-inline-end: 2px solid var(--b-ink-3);
    border-block-end: 2px solid var(--b-ink-3);
    transform: rotate(45deg);
    transition: transform .2s ease;
}
.b-toc-mobile[open] > summary::after { transform: rotate(-135deg); }
.b-toc-mobile .b-toc__list { padding: 0 18px 16px; }
@media (min-width: 1100px) { .b-toc-mobile { display: none; } }

.b-aside { display: none; }
@media (min-width: 1100px) {
    .b-aside { display: block; }
    .b-toc {
        position: sticky;
        top: 112px;
        max-height: calc(100vh - 140px);
        overflow-y: auto;
        padding-inline-end: 4px;
        scrollbar-width: thin;
    }
}
.b-toc__title {
    margin: 0 0 14px;
    font-family: var(--b-font-body);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--b-ink-3);
}
html[lang="ar"] .b-toc__title { letter-spacing: 0; font-size: .875rem; }
.b-toc__list, .b-toc__list ol { list-style: none; margin: 0; padding: 0; }
.b-toc__list ol { padding-inline-start: 14px; }
.b-toc__list a {
    display: block;
    padding: 7px 12px;
    border-inline-start: 2px solid var(--b-line);
    font-size: .9375rem;
    line-height: 1.45;
    color: var(--b-ink-3);
    text-decoration: none;
    transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.b-toc__list ol a { font-size: .875rem; }
.b-toc__list a:hover { color: var(--b-ink); border-color: var(--b-line-2); }
.b-toc__list a[aria-current="true"] {
    color: var(--b-ink);
    font-weight: 600;
    border-color: var(--b-accent);
    background: linear-gradient(90deg, var(--b-accent-soft), transparent);
}
html[dir="rtl"] .b-toc__list a[aria-current="true"] { background: linear-gradient(270deg, var(--b-accent-soft), transparent); }
.b-toc__cta {
    margin-top: 24px;
    padding: 18px;
    border-radius: var(--b-radius-sm);
    background: var(--b-night);
    color: #d6d9ef;
    font-size: .9rem;
    line-height: 1.5;
}
.b-toc__cta strong { display: block; color: #fff; font-family: var(--b-font-head); margin-bottom: 6px; font-size: 1rem; }
.b-toc__cta a { display: inline-block; margin-top: 12px; color: #ffb88f; font-weight: 600; text-decoration: none; }
.b-toc__cta a:hover { color: #fff; }

/* ---------- Okuma metni ---------- */
.b-prose {
    font-family: var(--b-font-body);
    font-size: 1.125rem;          /* 18px */
    line-height: 1.75;
    color: var(--b-ink-2);
    max-width: 70ch;
    overflow-wrap: break-word;
}
@media (min-width: 768px) { .b-prose { font-size: 1.1875rem; } } /* 19px */
html[lang="ar"] .b-prose { line-height: 1.9; }

.b-prose > * + * { margin-top: 1.15em; }
.b-prose p { margin: 1.15em 0 0; color: var(--b-ink-2); }
.b-prose > :first-child { margin-top: 0; }
.b-prose strong { color: var(--b-ink); font-weight: 600; }
.b-prose em { font-style: italic; }

.b-prose h2, .b-prose h3, .b-prose h4 {
    font-family: var(--b-font-head);
    color: var(--b-ink);
    letter-spacing: -.015em;
    scroll-margin-top: 110px;
    text-wrap: balance;
}
html[lang="ar"] .b-prose h2, html[lang="ar"] .b-prose h3, html[lang="ar"] .b-prose h4 { letter-spacing: 0; }
.b-prose h2 {
    font-size: clamp(1.55rem, 1.25rem + 1.1vw, 2rem);
    line-height: 1.22;
    font-weight: 700;
    margin: 2.2em 0 0;
    padding-top: .9em;
    border-top: 1px solid var(--b-line);
}
.b-prose h2::before {
    content: '';
    display: block;
    width: 36px; height: 4px;
    margin-bottom: .55em;
    border-radius: 4px;
    background: var(--b-accent);
}
.b-prose h3 {
    font-size: clamp(1.25rem, 1.15rem + .45vw, 1.45rem);
    line-height: 1.3;
    font-weight: 600;
    margin: 1.8em 0 0;
}
.b-prose h4 { font-size: 1.125rem; line-height: 1.4; font-weight: 600; margin: 1.5em 0 0; }
.b-prose h2 + *, .b-prose h3 + *, .b-prose h4 + * { margin-top: .6em; }

.b-prose a {
    color: var(--b-accent-ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: rgba(184, 67, 11, .45);
    transition: text-decoration-color .15s ease, color .15s ease;
}
.b-prose a:hover { color: #8a3108; text-decoration-color: currentColor; }
.b-prose a.is-external::after {
    content: '';
    display: inline-block;
    width: .62em; height: .62em;
    margin-inline-start: .22em;
    vertical-align: .08em;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4 1h7v7h-1.6V3.7L2.1 11 1 9.9l7.3-7.3H4z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4 1h7v7h-1.6V3.7L2.1 11 1 9.9l7.3-7.3H4z'/%3E%3C/svg%3E") center / contain no-repeat;
}
html[dir="rtl"] .b-prose a.is-external::after { transform: scaleX(-1); }

.b-prose ul, .b-prose ol { margin: 1.1em 0 0; padding-inline-start: 1.4em; }
.b-prose ul > li { list-style: disc; }
.b-prose ol > li { list-style: decimal; }
.b-prose li { margin-top: .45em; padding-inline-start: .25em; color: var(--b-ink-2); }
.b-prose li::marker { color: var(--b-accent); font-weight: 600; }
.b-prose li > ul, .b-prose li > ol { margin-top: .4em; }

.b-prose blockquote {
    margin: 1.8em 0 0;
    padding: 4px 0 4px 24px;
    padding-inline: 24px 0;
    border-inline-start: 3px solid var(--b-accent);
    font-family: var(--b-font-head);
    font-size: 1.25em;
    line-height: 1.5;
    color: var(--b-ink);
}
.b-prose blockquote p { color: inherit; }

.b-prose code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .86em;
    padding: .12em .4em;
    border-radius: 6px;
    background: #efeae0;
    color: #3b2a1f;
}

.b-prose figure { margin: 1.8em 0 0; }
.b-prose figcaption { margin-top: .6em; font-size: .875rem; color: var(--b-ink-3); }
.b-prose img { border-radius: var(--b-radius-sm); height: auto; }

.b-prose details {
    margin-top: 1.2em;
    border: 1px solid var(--b-line);
    border-radius: var(--b-radius-sm);
    background: var(--b-card);
    padding: 0 18px;
}
.b-prose details > summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--b-ink); }
.b-prose details[open] > summary { border-bottom: 1px solid var(--b-line); margin-bottom: .6em; }
.b-prose details > :last-child { margin-bottom: 16px; }

/* ---------- Bileşen: bilgi kutusu ---------- */
.b-prose .callout {
    --c: var(--b-info);
    --c-soft: var(--b-info-soft);
    position: relative;
    display: block;
    margin: 1.8em 0 0;
    padding: 20px 22px 20px 58px;
    padding-inline: 58px 22px;
    border-radius: var(--b-radius-sm);
    background: var(--c-soft);
    border: 1px solid color-mix(in srgb, var(--c) 22%, transparent);
    border-inline-start: 4px solid var(--c);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--b-ink-2);
}
.b-prose .callout::before {
    content: '';
    position: absolute;
    inset-inline-start: 18px;
    top: 21px;
    width: 24px; height: 24px;
    background: var(--c);
    -webkit-mask: var(--c-icon) center / contain no-repeat;
    mask: var(--c-icon) center / contain no-repeat;
}
.b-prose .callout--info { --c-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 110 20 10 10 0 010-20zm1 8h-2v7h2v-7zm0-4h-2v2h2V6z'/%3E%3C/svg%3E"); }
.b-prose .callout--tip {
    --c: var(--b-tip); --c-soft: var(--b-tip-soft);
    --c-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 21h6v-1.5H9V21zm3-19a7 7 0 00-4 12.74V17a1 1 0 001 1h6a1 1 0 001-1v-2.26A7 7 0 0012 2z'/%3E%3C/svg%3E");
}
.b-prose .callout--warning {
    --c: var(--b-warn); --c-soft: var(--b-warn-soft);
    --c-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2L1 21h22L12 2zm1 15h-2v2h2v-2zm0-7h-2v5h2v-5z'/%3E%3C/svg%3E");
}
.b-prose .callout:not(.callout--tip):not(.callout--warning):not(.callout--info) { --c-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 110 20 10 10 0 010-20zm1 8h-2v7h2v-7zm0-4h-2v2h2V6z'/%3E%3C/svg%3E"); }
.b-prose .callout > :first-child { margin-top: 0; }
.b-prose .callout > strong:first-child {
    display: block;
    margin-bottom: 4px;
    font-family: var(--b-font-head);
    font-size: 1.0625rem;
    color: var(--b-ink);
}
.b-prose .callout p { margin-top: .6em; }
.b-prose .callout ul, .b-prose .callout ol { margin-top: .5em; }

/* ---------- Bileşen: sayı kartları ---------- */
.b-prose .stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 1.8em 0 0;
}
.b-prose .stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 18px;
    border-radius: var(--b-radius-sm);
    background: var(--b-night);
    color: #d4d7ee;
    position: relative;
    overflow: hidden;
}
.b-prose .stat::after {
    content: '';
    position: absolute;
    inset-inline-end: -30px; top: -30px;
    width: 90px; height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 108, 30, .35), transparent 70%);
}
.b-prose .stat__value {
    font-family: var(--b-font-head);
    font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}
.b-prose .stat__label { font-size: .875rem; line-height: 1.45; color: #b9bdd9; }

/* ---------- Bileşen: akış / adımlar ---------- */
.b-prose ol.flow {
    counter-reset: flow;
    list-style: none;
    margin: 1.8em 0 0;
    padding: 0;
    position: relative;
}
.b-prose ol.flow > li {
    list-style: none;
    counter-increment: flow;
    position: relative;
    margin: 0;
    padding: 0 0 22px;
    padding-inline-start: 56px;
    color: var(--b-ink-2);
}
.b-prose ol.flow > li:last-child { padding-bottom: 0; }
.b-prose ol.flow > li::before {
    content: counter(flow);
    position: absolute;
    inset-inline-start: 0;
    top: -2px;
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: var(--b-ink);
    color: #fff;
    font-family: var(--b-font-head);
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 0 0 4px var(--b-paper);
    z-index: 1;
}
.b-prose ol.flow > li::after {
    content: '';
    position: absolute;
    inset-inline-start: 18px;
    top: 38px; bottom: 2px;
    width: 2px;
    background: repeating-linear-gradient(180deg, var(--b-line-2) 0 6px, transparent 6px 11px);
}
.b-prose ol.flow > li:last-child::after { display: none; }
.b-prose ol.flow > li:first-child::before { background: var(--b-accent); }
.b-prose ol.flow > li > strong:first-child { display: block; color: var(--b-ink); font-family: var(--b-font-head); font-size: 1.0625rem; margin-bottom: 2px; }

/* ---------- Bileşen: karşılaştırma ---------- */
.b-prose .compare {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 1.8em 0 0;
}
@media (min-width: 640px) { .b-prose .compare { grid-template-columns: 1fr 1fr; } }
.b-prose .compare__col {
    padding: 20px 22px;
    border-radius: var(--b-radius-sm);
    background: var(--b-card);
    border: 1px solid var(--b-line);
    box-shadow: var(--b-shadow);
}
.b-prose .compare__col:first-child { border-top: 4px solid var(--b-ink); }
.b-prose .compare__col:last-child { border-top: 4px solid var(--b-accent); }
.b-prose .compare__col h4 { margin: 0 0 .5em; font-size: 1.125rem; }
.b-prose .compare__col ul { margin: 0; padding-inline-start: 1.1em; font-size: 1rem; }
.b-prose .compare__col li { margin-top: .4em; }

/* ---------- Bileşen: kontrol listesi ---------- */
.b-prose ul.checklist { list-style: none; padding: 0; margin: 1.4em 0 0; display: grid; gap: 10px; }
.b-prose ul.checklist > li {
    list-style: none;
    position: relative;
    margin: 0;
    padding: 12px 16px;
    padding-inline-start: 50px;
    border-radius: var(--b-radius-sm);
    background: var(--b-card);
    border: 1px solid var(--b-line);
}
.b-prose ul.checklist > li::before {
    content: '';
    position: absolute;
    inset-inline-start: 16px;
    top: 15px;
    width: 20px; height: 20px;
    border-radius: 6px;
    background: var(--b-tip) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Tablolar ---------- */
.b-prose .table-wrap {
    margin: 1.8em 0 0;
    overflow-x: auto;
    border: 1px solid var(--b-line);
    border-radius: var(--b-radius-sm);
    background: var(--b-card);
    box-shadow: var(--b-shadow);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.b-prose .table-wrap:focus-visible { outline: 3px solid var(--b-accent); outline-offset: 2px; }
.b-prose table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: .9375rem;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
}
.b-prose thead th {
    background: var(--b-ink);
    color: #fff;
    font-weight: 600;
    text-align: start;
    white-space: nowrap;
}
.b-prose th, .b-prose td {
    padding: 12px 16px;
    text-align: start;
    vertical-align: top;
    border-bottom: 1px solid var(--b-line);
}
.b-prose tbody tr:nth-child(even) td, .b-prose tbody tr:nth-child(even) th { background: #fbf9f5; }
.b-prose tbody tr:hover td { background: var(--b-accent-soft); }
.b-prose tbody tr:last-child td, .b-prose tbody tr:last-child th { border-bottom: 0; }
.b-prose tbody th { color: var(--b-ink); font-weight: 600; }
.b-prose td:first-child { color: var(--b-ink); font-weight: 500; }

/* ---------- Hesaplayıcı ---------- */
.b-prose .bcalc {
    margin: 2em 0 0;
    border-radius: var(--b-radius);
    background: var(--b-night);
    color: #d6d9ef;
    overflow: hidden;
    box-shadow: 0 24px 48px -24px rgba(12, 13, 29, .55);
}
.b-prose .bcalc__head { padding: 24px 24px 4px; }
.b-prose .bcalc__title { margin: 0; padding: 0; border: 0; color: #fff; font-size: 1.3rem; }
.b-prose .bcalc__title::before { display: none; }
.b-prose .bcalc__intro { margin: 8px 0 0; font-size: .95rem; line-height: 1.55; color: #aeb3d2; }
.b-prose .bcalc__form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 24px 22px;
}
@media (min-width: 560px) { .b-prose .bcalc__form { grid-template-columns: 1fr 1fr; } }
.b-prose .bcalc__field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.b-prose .bcalc__field label { font-size: .85rem; line-height: 1.35; color: #c9cce6; font-weight: 500; }
.b-prose .bcalc__field input,
.b-prose .bcalc__field select {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #34375a;
    background: #1b1d3a;
    color: #fff;
    font: inherit;
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
}
.b-prose .bcalc__field input:focus,
.b-prose .bcalc__field select:focus { outline: none; border-color: var(--b-accent); box-shadow: 0 0 0 3px rgba(255, 108, 30, .3); }
.b-prose .bcalc__field[hidden] { display: none; }
.b-prose .bcalc__results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #2a2c4c;
    border-top: 1px solid #2a2c4c;
}
.b-prose .bcalc__result { display: flex; flex-direction: column; gap: 4px; padding: 16px 24px; background: #121330; margin: 0; }
.b-prose .bcalc__result--main { grid-column: 1 / -1; background: linear-gradient(120deg, #ff6c1e, #b8430b); }
.b-prose .bcalc__label { font-size: .8rem; color: #c2c5e0; line-height: 1.35; }
.b-prose .bcalc__result--main .bcalc__label { color: #ffe6d6; }
.b-prose .bcalc__value { font-family: var(--b-font-head); font-size: 1.35rem; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.b-prose .bcalc__result--main .bcalc__value { font-size: 2.2rem; line-height: 1.1; }
.b-prose .bcalc__note, .b-prose .bcalc__warn { grid-column: 1 / -1; margin: 0; padding: 14px 24px 18px; background: #121330; font-size: .875rem; line-height: 1.5; color: #aeb3d2; }
.b-prose .bcalc__warn { color: #ffd2b8; }
.b-prose .bcalc__warn[hidden], .b-prose .bcalc__note[hidden] { display: none; }

/* ---------- SSS ---------- */
.b-section { margin-top: 56px; }
.b-section__title {
    font-family: var(--b-font-head);
    font-size: clamp(1.45rem, 1.2rem + 1vw, 1.85rem);
    line-height: 1.25;
    font-weight: 700;
    color: var(--b-ink);
    margin: 0 0 18px;
    letter-spacing: -.015em;
    scroll-margin-top: 110px;
}
html[lang="ar"] .b-section__title { letter-spacing: 0; }
.b-faq { display: grid; gap: 10px; }
.b-faq details {
    border: 1px solid var(--b-line);
    border-radius: var(--b-radius-sm);
    background: var(--b-card);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.b-faq details[open] { border-color: var(--b-line-2); box-shadow: var(--b-shadow); }
.b-faq summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    font-family: var(--b-font-head);
    font-weight: 600;
    font-size: 1.0625rem;
    line-height: 1.45;
    color: var(--b-ink);
}
.b-faq summary::-webkit-details-marker { display: none; }
.b-faq summary::after {
    content: '';
    flex: none;
    width: 22px; height: 22px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--b-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8430b' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 13px no-repeat;
    transition: transform .2s ease;
}
.b-faq details[open] summary::after { transform: rotate(45deg); }
.b-faq summary:focus-visible { outline: 3px solid var(--b-accent); outline-offset: -3px; border-radius: var(--b-radius-sm); }
.b-faq__a { padding: 0 20px 20px; margin: 0; font-size: 1.0625rem; line-height: 1.7; color: var(--b-ink-2); }

/* ---------- Kaynaklar ---------- */
.b-sources { margin: 0; padding: 0; list-style: none; counter-reset: src; display: grid; gap: 8px; }
.b-sources li {
    counter-increment: src;
    position: relative;
    padding-inline-start: 36px;
    font-size: .9875rem;
    line-height: 1.55;
    color: var(--b-ink-2);
}
.b-sources li::before {
    content: counter(src);
    position: absolute;
    inset-inline-start: 0;
    top: 1px;
    width: 24px; height: 24px;
    display: grid; place-items: center;
    border-radius: 7px;
    background: var(--b-paper-2);
    border: 1px solid var(--b-line);
    font-size: .75rem;
    font-weight: 700;
    color: var(--b-ink-3);
}
.b-sources a { color: var(--b-ink); text-decoration: underline; text-decoration-color: var(--b-line-2); text-underline-offset: 3px; word-break: break-word; }
.b-sources a:hover { color: var(--b-accent-ink); text-decoration-color: currentColor; }
.b-sources small { display: block; color: var(--b-ink-3); font-size: .8125rem; }

/* ---------- Yazar kutusu ---------- */
.b-author {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-top: 56px;
    padding: 24px;
    border-radius: var(--b-radius);
    background: var(--b-card);
    border: 1px solid var(--b-line);
}
.b-author__logo {
    flex: none;
    width: 64px; height: 64px;
    display: grid; place-items: center;
    border-radius: 18px;
    background: var(--b-night);
}
.b-author__logo svg { width: 36px; height: 36px; color: var(--b-accent); }
.b-author__name { margin: 0; font-family: var(--b-font-head); font-size: 1.125rem; font-weight: 700; color: var(--b-ink); }
.b-author__role { margin: 2px 0 8px; font-size: .875rem; color: var(--b-ink-3); }
.b-author__bio { margin: 0; font-size: 1rem; line-height: 1.65; color: var(--b-ink-2); }
.b-dates { margin: 14px 0 0; font-size: .875rem; color: var(--b-ink-3); display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* ---------- Kartlar (ilgili yazılar / dizin) ---------- */
.b-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 22px;
}
.b-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: var(--b-radius);
    background: var(--b-card);
    border: 1px solid var(--b-line);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.b-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(22, 23, 43, .45); border-color: var(--b-line-2); }
.b-card__media {
    aspect-ratio: 1200 / 630;
    background: linear-gradient(135deg, #15162e, #2b1a33 60%, #4a2413);
    overflow: hidden;
}
.b-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.b-card__media--empty { display: grid; place-items: center; }
.b-card__media--empty svg { width: 54px; height: 54px; color: rgba(255, 140, 80, .6); }
.b-card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.b-card__cat { font-size: .8125rem; font-weight: 700; letter-spacing: .02em; color: var(--b-accent-ink); }
html[lang="ar"] .b-card__cat { letter-spacing: 0; font-size: .8125rem; }
.b-card__title { margin: 0; font-family: var(--b-font-head); font-size: 1.1875rem; line-height: 1.35; font-weight: 700; color: var(--b-ink); letter-spacing: -.01em; }
html[lang="ar"] .b-card__title { letter-spacing: 0; line-height: 1.55; }
.b-card__title a { color: inherit; text-decoration: none; }
.b-card__title a::after { content: ''; position: absolute; inset: 0; } /* tüm kart tıklanır */
.b-card__title a:focus-visible { outline: none; }
.b-card:focus-within { outline: 3px solid var(--b-accent); outline-offset: 2px; }
.b-card__summary {
    margin: 0;
    font-size: .975rem;
    line-height: 1.6;
    color: var(--b-ink-3);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.b-card__meta { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .8125rem; color: var(--b-ink-3); }

.b-km-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.b-km-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px;
    border-radius: var(--b-radius-sm);
    background: var(--b-card);
    border: 1px solid var(--b-line);
    text-decoration: none;
    color: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.b-km-card:hover { border-color: var(--b-accent); box-shadow: var(--b-shadow); }
.b-km-card .material-icons {
    flex: none;
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: var(--b-accent-soft);
    color: var(--b-accent-ink);
    font-size: 22px;
}
.b-km-card__tag { display: block; font-size: .75rem; font-weight: 600; color: var(--b-ink-3); margin-bottom: 2px; }
.b-km-card__title { display: block; font-weight: 600; font-size: 1rem; line-height: 1.4; color: var(--b-ink); }

.b-more { background: var(--b-paper-2); border-top: 1px solid var(--b-line); padding-block: 56px; font-family: var(--b-font-body); color: var(--b-ink); }
.b-more .b-section { margin-top: 0; }
.b-more .b-section + .b-section { margin-top: 48px; }

/* ---------- Son çağrı ---------- */
.b-cta {
    background:
        radial-gradient(600px 260px at 85% 0%, rgba(255, 108, 30, .28), transparent 70%),
        var(--b-night);
    color: #d6d9ef;
    padding-block: 56px;
    font-family: var(--b-font-body);
}
.b-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; }
.b-cta__title { margin: 0 0 6px; font-family: var(--b-font-head); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); color: #fff; font-weight: 700; letter-spacing: -.015em; }
html[lang="ar"] .b-cta__title { letter-spacing: 0; }
.b-cta__text { margin: 0; font-size: 1.0625rem; color: #b9bdd9; max-width: 52ch; }
.b-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.b-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.b-btn--primary { background: linear-gradient(211deg, #ff6c1e 13.4%, #94390a 118.74%); color: #fff; }
.b-btn--primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(255, 108, 30, .35); }
.b-btn--ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .25); }
.b-btn--ghost:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.b-btn:focus-visible { outline: 3px solid #ffb88f; outline-offset: 3px; }

/* ---------- Dizin ---------- */
.b-hero--index { padding-block-end: 64px; }
.b-hero--index .b-hero__title { font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem); max-width: 18ch; }
.b-eyebrow { font-family: var(--b-font-body); font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #ff9a5c; margin: 0; }
html[lang="ar"] .b-eyebrow { letter-spacing: 0; font-size: .9375rem; }

.b-featured {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    border-radius: 20px;
    overflow: hidden;
    background: var(--b-card);
    border: 1px solid var(--b-line);
    box-shadow: 0 30px 60px -40px rgba(22, 23, 43, .6);
    margin-bottom: 48px;
}
@media (min-width: 900px) { .b-featured { grid-template-columns: 1.15fr 1fr; } }
.b-featured .b-card__media { aspect-ratio: 1200 / 630; }
@media (min-width: 900px) { .b-featured .b-card__media { aspect-ratio: auto; height: 100%; min-height: 320px; } }
.b-featured__summary { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.b-featured__body { display: flex; flex-direction: column; gap: 14px; padding: 28px; justify-content: center; }
@media (min-width: 900px) { .b-featured__body { padding: 40px 44px; } }
.b-featured__title { margin: 0; font-family: var(--b-font-head); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.15rem); line-height: 1.2; font-weight: 700; color: var(--b-ink); letter-spacing: -.02em; }
html[lang="ar"] .b-featured__title { letter-spacing: 0; line-height: 1.45; }
.b-featured__title a { color: inherit; text-decoration: none; }
.b-featured__title a::after { content: ''; position: absolute; inset: 0; }
.b-featured:hover .b-featured__title { color: var(--b-accent-ink); }
.b-featured:focus-within { outline: 3px solid var(--b-accent); outline-offset: 3px; }
.b-featured__summary { margin: 0; font-size: 1.0625rem; line-height: 1.65; color: var(--b-ink-2); }
.b-featured__go { font-weight: 600; color: var(--b-accent-ink); }
.b-list-title { font-family: var(--b-font-head); font-size: 1.35rem; font-weight: 700; color: var(--b-ink); margin: 0 0 20px; }

.b-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 48px 0 0; padding: 0; list-style: none; }
.b-pager a, .b-pager span {
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--b-line);
    background: var(--b-card);
    color: var(--b-ink);
    font-weight: 600;
    text-decoration: none;
}
.b-pager a:hover { border-color: var(--b-accent); color: var(--b-accent-ink); }
.b-pager [aria-current="page"] { background: var(--b-ink); color: #fff; border-color: var(--b-ink); }
.b-pager .is-disabled { opacity: .45; }

.b-empty { text-align: center; padding: 64px 16px; }
.b-empty h2 { font-family: var(--b-font-head); color: var(--b-ink); font-size: 1.6rem; margin: 0 0 8px; }
.b-empty p { color: var(--b-ink-3); margin: 0; }

/* ---------- Bilgi Merkezi sayfalarındaki ilgili blog bloğu (koyu zemin) ---------- */
.b-kmrel { background: #0f172a; padding-block: 48px; font-family: var(--b-font-body); }
.b-kmrel .b-section__title { color: #f8fafc; }
.b-kmrel .b-card { background: #1e293b; border-color: rgba(255, 255, 255, .1); }
.b-kmrel .b-card__title { color: #f8fafc; }
.b-kmrel .b-card__summary, .b-kmrel .b-card__meta { color: #94a3b8; }
.b-kmrel .b-card__cat { color: #ff9a5c; }

@media (prefers-reduced-motion: reduce) {
    .blog-page *, .b-kmrel * { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
    .b-progress, .b-aside, .b-toc-mobile, .b-cta, .b-more, .b-crumbs { display: none !important; }
    .b-hero { background: none !important; color: #000; padding: 0 0 12px; }
    .b-hero__title { color: #000; }
    .b-paper { background: #fff; padding: 0; }
    .b-prose { max-width: none; font-size: 11pt; }
}
.b-hero-spacer { height: 48px; }
/* Sonuç değerleri (2,50×, 183,70) RTL'de ters dizilmesin */
.b-prose .bcalc__value { direction: ltr; unicode-bidi: isolate; }
/* Satır içi kod: yön ilk güçlü harften (Arapça formül RTL, İngilizce LTR). Arapçada eş aralıklı
   yazı tipi harfleri ayrık gösteriyordu - gövde yazı tipi kullanılır. */
.b-prose code { unicode-bidi: plaintext; }
html[lang="ar"] .b-prose code { font-family: var(--b-font-body); font-size: .92em; }
