/* ============================================================
   YBS Makale Blokları — Site Geneli Yazı Detay + Narrative CSS
   Kaynak: ybshukuk.com.tr canlı sigorta sayfası (yüksek SERP performansı).
   Marka uyarlaması: lacivert #0f2a4f + altın #c9a227 + sıcak bej.
   Aktif sarmal: .lawyer-narrative, .legal-content, .prose, article
   Türkçe karakter zorunlu — yorum metinleri dahil.
   ============================================================ */

:root {
    --ybs-art-primary:   #0f2a4f;
    --ybs-art-primary-2: #1a3a6a;
    --ybs-art-gold:      #c9a227;
    --ybs-art-gold-dark: #a8881e;
    --ybs-art-ink:       #0b1626;
    --ybs-art-ink-2:     #2c3e50;
    --ybs-art-muted:     #6b7a8a;
    --ybs-art-bg-warm:   #faf7f1;
    --ybs-art-bg-soft:   #f6f3ec;
    --ybs-art-border:    #e8e4db;

    /* Anlam renkleri — site geneli tutarlı */
    --ybs-art-danger:    #b71c1c;
    --ybs-art-danger-bg: #ffebee;
    --ybs-art-warn:      #e65100;
    --ybs-art-warn-bg:   #fff3e0;
    --ybs-art-success:   #2e7d32;
    --ybs-art-success-bg:#e8f5e9;
    --ybs-art-info:      #1565c0;
    --ybs-art-info-bg:   #e3f2fd;
    --ybs-art-law:       #5e35b1;
    --ybs-art-law-bg:    #ede7f6;
}

/* ============================================================
   GENEL — narrative içeriği için reset + tipografi temeli
   ============================================================ */
.lawyer-narrative,
.legal-content,
.ybs-narrative {
    color: var(--ybs-art-ink);
    font-size: 1rem;
    line-height: 1.75;
}

.lawyer-narrative h2,
.lawyer-narrative h3,
.lawyer-narrative h4,
.legal-content h2,
.legal-content h3,
.legal-content h4 {
    color: var(--ybs-art-primary);
    font-weight: 700;
    line-height: 1.3;
    margin: 1.75rem 0 .75rem;
    scroll-margin-top: 30vh;
}
.lawyer-narrative h2 { font-size: 1.5rem; border-bottom: 2px solid var(--ybs-art-gold); padding-bottom: .375rem; }
.lawyer-narrative h3 { font-size: 1.25rem; }
.lawyer-narrative h4 { font-size: 1.0625rem; }

.lawyer-narrative p {
    margin: 0 0 1rem;
    text-align: justify;
    hyphens: auto;
}
.lawyer-narrative ul,
.lawyer-narrative ol {
    margin: 0 0 1rem 1.25rem;
    padding: 0;
}
.lawyer-narrative li { margin-bottom: .375rem; }
.lawyer-narrative a {
    color: var(--ybs-art-gold-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
}
.lawyer-narrative a:hover { color: var(--ybs-art-primary); }
.lawyer-narrative strong { color: var(--ybs-art-primary); font-weight: 700; }

/* ============================================================
   ÖNE ÇIKARILMIŞ GÖRSEL — yazı içi ana görsel
   .ybs-featured-image (PageContentTransformer üretir)
   ============================================================ */
.lawyer-narrative .ybs-featured-image,
.lawyer-narrative figure.ybs-featured-image,
.legal-content figure {
    margin: 0 0 2rem;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 28px -6px rgba(15, 42, 79, .18);
    position: relative;
    background: var(--ybs-art-bg-soft);
}
.lawyer-narrative .ybs-featured-image img,
.lawyer-narrative figure img,
.legal-content figure img {
    width: 100%;
    height: auto;
    display: block;
    border: 0;
    margin: 0;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}
.lawyer-narrative figcaption,
.legal-content figcaption {
    padding: .625rem 1rem;
    background: var(--ybs-art-bg-warm);
    border-top: 1px solid var(--ybs-art-border);
    color: var(--ybs-art-muted);
    font-size: .8125rem;
    font-style: italic;
    text-align: center;
}

/* Yazı içi standalone img'ler */
.lawyer-narrative > img,
.lawyer-narrative p > img,
.legal-content > img,
.legal-content p > img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px -4px rgba(15, 42, 79, .15);
}

/* ============================================================
   AVUKAT NOTU — .author-note
   ============================================================ */
.lawyer-narrative .author-note,
.author-note {
    background: linear-gradient(135deg, #fafaf7 0%, var(--ybs-art-bg-soft) 100%);
    border: 3px solid var(--ybs-art-primary);
    border-radius: 14px;
    margin: 2rem 0;
    overflow: hidden;
    box-shadow: 0 8px 28px -8px rgba(15, 42, 79, .18);
    position: relative;
}
.author-note::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--ybs-art-primary) 0%, var(--ybs-art-gold) 50%, var(--ybs-art-primary) 100%);
}
.author-note h3 {
    background: linear-gradient(135deg, var(--ybs-art-primary) 0%, var(--ybs-art-primary-2) 100%);
    color: #fff !important;
    padding: 1rem 1.5rem;
    margin: 0 !important;
    font-size: 1rem !important;
    font-weight: 700;
    letter-spacing: .3px;
    display: flex;
    align-items: center;
    gap: .625rem;
    border-bottom: 0 !important;
}
.author-note h3::before { content: "\2696"; font-size: 1.25rem; color: var(--ybs-art-gold); }
.author-note > div,
.author-note > p {
    padding: 1.5rem;
    margin: 0;
    color: var(--ybs-art-ink-2);
    line-height: 1.9;
    font-size: .9375rem;
    font-style: italic;
    background: linear-gradient(135deg, #fffbf0 0%, #fff8e7 100%);
    border-top: 1px solid rgba(15, 42, 79, .08);
}

/* ============================================================
   AVUKAT ANALİZİ — .analiz
   SADE TASARIM: sol üst köşede pill etiket (avatar + "Av. Y. Buğrahan SEVDİ Analizi").
   İçerik altta normal akar — pseudo şerit/gradient YOK, çakışma YOK.
   Pill etiketi JS injekte eder (.analiz > .analiz-author, prepend).
   app.bundle.css'teki eski lacivert "YBS" rozet override edilir.
   ============================================================ */

/* Eski bundle CSS'ten gelen .analiz::before YBS rozet — KAPAT */
.lawyer-narrative .analiz::before,
.lawyer-narrative .analiz::after,
.analiz::before,
.analiz::after {
    content: none !important;
    display: none !important;
    background: none !important;
}

.lawyer-narrative .analiz,
.analiz {
    position: relative !important;
    /* CANLI MARKA: altın + krem gradient + sıcak vurgu */
    background:
        radial-gradient(circle at top right, rgba(201, 162, 39, .12), transparent 60%),
        linear-gradient(135deg, #fffdf5 0%, #fff5d6 60%, #ffecb3 100%) !important;
    border: 2px solid var(--ybs-art-gold) !important;
    border-left: 6px solid var(--ybs-art-gold) !important;
    border-radius: 14px !important;
    margin: 2rem 0 !important;
    /* padding-top pill etiketin yüksekliği için yer açar */
    padding: 3.5rem 1.5rem 1.25rem 1.5rem !important;
    color: var(--ybs-art-ink-2) !important;
    line-height: 1.8 !important;
    font-size: .9375rem !important;
    box-shadow:
        0 6px 24px -6px rgba(201, 162, 39, .25),
        0 2px 6px rgba(15, 42, 79, .08) !important;
}

.lawyer-narrative .analiz > p,
.analiz > p {
    margin: 0 0 .75rem;
    padding: 0;
}
.lawyer-narrative .analiz > p:last-child,
.analiz > p:last-child {
    margin-bottom: 0;
}
/* Inline <strong> doğal akar — block-level yapılmaz */
.lawyer-narrative .analiz strong,
.analiz strong {
    color: var(--ybs-art-primary);
    font-weight: 700;
}

/* Sol üst pill etiket — JS prepend ile DOM'a eklenir */
.lawyer-narrative .analiz > .analiz-author,
.analiz > .analiz-author {
    position: absolute;
    top: .75rem;
    left: .75rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .25rem .875rem .25rem .25rem;
    background: #fff;
    border: 1.5px solid var(--ybs-art-gold);
    border-radius: 999px;
    font-size: .8125rem;
    font-weight: 700;
    color: var(--ybs-art-primary);
    box-shadow: 0 2px 6px rgba(201, 162, 39, .25);
    margin: 0;
    width: auto;
    z-index: 2;
}
.lawyer-narrative .analiz > .analiz-author img,
.analiz > .analiz-author img,
.analiz-author img {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center 18% !important;
    flex-shrink: 0;
    border: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block;
    vertical-align: middle;
}

/* Nested .analiz'lar (case-content / law-article / blockquote içinde) — pill etiket gizlenir */
.case-content .analiz,
.law-article .analiz,
blockquote .analiz {
    padding-top: 1rem;
}
.case-content .analiz > .analiz-author,
.law-article .analiz > .analiz-author,
blockquote .analiz > .analiz-author {
    display: none;
}

/* ============================================================
   YARGITAY KARARI — blockquote
   ============================================================ */
.lawyer-narrative blockquote,
.legal-content blockquote {
    background: #fff;
    border: 2px solid var(--ybs-art-primary);
    border-radius: 10px;
    padding: 0;
    margin: 2rem 0;
    overflow: hidden;
    box-shadow: 0 6px 24px -4px rgba(15, 42, 79, .15);
    font-style: normal;
    quotes: none;
}
.lawyer-narrative blockquote:not(.ybs-aphorism-quote):not(.ybs-attorney-profile__quote):not(.testimonial-quote):not(.no-decision-label)::before,
.legal-content blockquote:not(.ybs-aphorism-quote):not(.ybs-attorney-profile__quote):not(.testimonial-quote):not(.no-decision-label)::before {
    content: "YARGITAY KARARI";
    display: block;
    background: linear-gradient(135deg, var(--ybs-art-primary) 0%, var(--ybs-art-primary-2) 100%);
    color: #fff;
    padding: .75rem 1.25rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 1.2px;
}
.lawyer-narrative blockquote:not(.ybs-aphorism-quote):not(.ybs-attorney-profile__quote):not(.testimonial-quote):not(.no-decision-label) > strong:first-of-type {
    display: block;
    background: var(--ybs-art-bg-soft);
    color: var(--ybs-art-primary);
    padding: .875rem 1.25rem;
    font-size: .8125rem;
    font-weight: 700;
    border-bottom: 1px solid var(--ybs-art-border);
    margin: 0;
}
.lawyer-narrative blockquote p,
.lawyer-narrative blockquote {
    padding: 1.25rem 1.75rem;
    margin: 0;
    color: var(--ybs-art-ink-2);
    line-height: 1.85;
    font-size: .9375rem;
    text-align: justify;
    hyphens: auto;
}
/* Doğrudan text-node içeren blockquote'lar için (sigorta canlısı gibi) */
.lawyer-narrative blockquote > * {
    padding-left: 0;
    padding-right: 0;
}
.lawyer-narrative blockquote > .analiz {
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    border-top: 1px solid var(--ybs-art-border) !important;
    box-shadow: none !important;
}
.lawyer-narrative blockquote > .analiz::before { display: none !important; }

/* ============================================================
   MEVZUAT BLOCKQUOTE FIX (2026-05-25)
   .law-article içindeki blockquote'lar Yargıtay künyesi GÖSTERMEZ.
   Sebep: .lawyer-narrative blockquote::before tüm blockquote'lara
   "YARGITAY KARARI" şeridi ekliyor, mevzuat alıntıları yanlış
   görünüyor. Mevzuat şeridi .law-article > p > strong tarafından
   verilir (yukarıda law-title kart başlığı).
   ============================================================ */
.lawyer-narrative .law-article blockquote::before,
.legal-content .law-article blockquote::before {
    content: none !important;
    display: none !important;
}

/* ============================================================
   YARGITAY KARAR KÜNYESİ — .decision-text
   (Daire / Esas / Karar / Tarih bilgisi + Künyeyi Kopyala butonu)
   ============================================================ */
.decision-text {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    border: 2px solid var(--ybs-art-primary);
    border-left: 6px solid var(--ybs-art-gold);
    border-radius: 10px;
    padding: 0;
    margin: 1.75rem 0;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 42, 79, .12);
    position: relative;
}
.decision-text::before {
    content: "KARAR KÜNYESİ";
    display: block;
    background: linear-gradient(135deg, var(--ybs-art-primary) 0%, var(--ybs-art-primary-2) 100%);
    color: var(--ybs-art-gold);
    padding: .75rem 1.25rem;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: 1.4px;
}
/* D23 (2026-05-23): "strong:first-of-type" inline strong'a sızıyordu (paragraf
 * içindeki <strong>"YASAK DELİL"</strong>) — direct child'a scope edildi.
 * Yeni pattern: künye h{N} olur, eski <strong>künye</strong> hâlâ desteklenir. */
.decision-text > strong:first-child,
.decision-text > h2,
.decision-text > h3,
.decision-text > h4,
.decision-text > h5,
.decision-text > h6 {
    display: block;
    padding: 1rem 1.25rem .5rem;
    margin: 0;
    color: var(--ybs-art-primary);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    border-bottom: 0;
    background: transparent;
}
.decision-text p,
.decision-text {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    color: var(--ybs-art-ink-2);
    line-height: 1.75;
    font-size: .9375rem;
}
.decision-text > p { padding-top: 0; padding-bottom: 1rem; margin: 0; }
.decision-text:has(strong) { padding-bottom: 1rem; }

.decision-text__copy {
    position: absolute;
    top: .5rem;
    right: .75rem;
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: .375rem .75rem;
    background: var(--ybs-art-gold);
    color: var(--ybs-art-primary);
    border: 0;
    border-radius: 999px;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .5px;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
    font-family: inherit;
    z-index: 2;
}
.decision-text__copy:hover {
    background: var(--ybs-art-gold-dark);
    color: #fff;
    transform: translateY(-1px);
}
.decision-text__copy.is-copied {
    background: var(--ybs-art-success);
    color: #fff;
}
.decision-text__copy svg { width: 12px; height: 12px; }

/* ============================================================
   EMSAL KARAR İNCELEMESİ — .case-study
   ============================================================ */
.case-study {
    background: #fff;
    border: 2px solid var(--ybs-art-info);
    border-radius: 10px;
    margin: 2rem 0;
    overflow: hidden;
    box-shadow: 0 6px 24px -4px rgba(21, 101, 192, .12);
}
.case-header {
    background: linear-gradient(135deg, var(--ybs-art-info) 0%, #0d47a1 100%);
    color: #fff;
    padding: .875rem 1.25rem;
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .5px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .625rem;
}
.case-tag {
    background: rgba(255, 255, 255, .2);
    padding: .3rem .75rem;
    border-radius: 4px;
    font-size: .75rem;
    font-weight: 600;
}
.case-content { padding: 1.25rem; }
.case-content strong { color: var(--ybs-art-info); }
.case-content ul, .case-content ol { margin: .75rem 0; padding-left: 1.5rem; }
.case-content li { margin-bottom: .5rem; line-height: 1.7; }
.case-content .analiz {
    border: none !important;
    border-top: 1px solid var(--ybs-art-border) !important;
    border-radius: 0 !important;
    margin: 1rem -1.25rem -1.25rem !important;
    box-shadow: none !important;
}
.case-content .analiz::before { display: none !important; }

/* ============================================================
   KRİTİK UYARI — .warning
   ============================================================ */
.warning {
    background: linear-gradient(135deg, var(--ybs-art-danger-bg) 0%, #ffcdd2 100%);
    border: 2px solid var(--ybs-art-danger);
    border-left: 6px solid var(--ybs-art-danger);
    border-radius: 10px;
    padding: 0;
    margin: 2rem 0;
    overflow: hidden;
    box-shadow: 0 6px 24px -4px rgba(183, 28, 28, .15);
}
.warning::before {
    content: "KRİTİK UYARI";
    display: block;
    background: linear-gradient(135deg, #c62828 0%, var(--ybs-art-danger) 100%);
    color: #fff;
    padding: .75rem 1.25rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 1.2px;
}
/* > direct child: başlık vurgusu block (eski WP markup için).
   Paragraf içi inline <strong> doğal akışta kalır — satır kırılmaz.
   Fix 2026-05-23: ".warning strong" eski selector inline vurguları bozuyordu. */
.warning > strong {
    display: block;
    padding: .875rem 1.25rem 0;
    color: var(--ybs-art-danger);
    font-size: .9375rem;
    font-weight: 700;
}
.warning p strong,
.warning li strong,
.warning td strong {
    display: inline;
    padding: 0;
    color: inherit;
    font-size: inherit;
    font-weight: 700;
}
.warning > em {
    display: block;
    padding: .75rem 1.25rem;
    margin: .75rem 1.25rem;
    color: #7f1d1d;
    line-height: 1.8;
    font-size: .9375rem;
    background: rgba(255, 255, 255, .5);
    border-left: 3px solid var(--ybs-art-danger);
    border-radius: 0 4px 4px 0;
    font-style: italic;
}
.warning p {
    padding: 0 1.25rem 1rem;
    margin: 0;
    color: #7f1d1d;
    line-height: 1.8;
    font-size: .9375rem;
}

/* ============================================================
   BİLGİ KUTUSU — .info-box
   ============================================================ */
.info-box {
    background: linear-gradient(135deg, var(--ybs-art-warn-bg) 0%, #ffe0b2 100%);
    border: 2px solid var(--ybs-art-warn);
    border-left: 6px solid var(--ybs-art-warn);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 16px rgba(230, 81, 0, .12);
    position: relative;
}
.info-box::before {
    content: "i";
    position: absolute;
    top: -12px;
    left: 1.25rem;
    background: var(--ybs-art-warn);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .875rem;
    font-weight: 700;
    font-style: italic;
}
.info-box strong { color: var(--ybs-art-warn); font-size: .875rem; }

/* ============================================================
   ÖRNEK DİLEKÇE — .ybs-dilekce / .dilekce
   TEK FONT: Courier New monospace (resmi belge görünümü).
   Header (mahkeme adı) ortalı, footer (imza) sağa yaslı, kopyala butonu sağ üst.
   ============================================================ */
.dilekce { margin: 2rem 0; }

.ybs-dilekce {
    position: relative;
    background: #fff;
    border: 2px solid var(--ybs-art-success);
    border-radius: 12px;
    /* Üst: header şerit (44px). Alt boşluk YOK — disclaimer + share-bar normal flow'da. */
    padding: 44px 1.5rem 0 1.5rem;
    margin: 2rem 0;
    overflow: hidden;
    box-shadow: 0 6px 24px -4px rgba(46, 125, 50, .15);
    font-family: 'Courier New', 'Consolas', 'Liberation Mono', monospace;
    color: #1a1a1a;
}

/* Üst başlık şeridi */
.ybs-dilekce::before {
    content: "ÖRNEK DİLEKÇE";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    background: linear-gradient(135deg, var(--ybs-art-success) 0%, #1b5e20 100%);
    color: #fff;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-align: left;
    z-index: 1;
    border-bottom: 3px solid var(--ybs-art-gold); /* HEADER ALTIN ÇİZGİ */
    box-shadow: 0 2px 4px rgba(0, 0, 0, .08);
}

/* TÜM içerik (text-node, <strong>, <p>) — TEK FONT zorla */
.ybs-dilekce,
.ybs-dilekce *:not(.ybs-dilekce__copy):not(.ybs-dilekce__copy *) {
    font-family: 'Courier New', 'Consolas', 'Liberation Mono', monospace !important;
    font-size: .875rem !important;
    line-height: 1.85 !important;
    color: #1a1a1a !important;
}

/* Strong — bold kal, RENK inherit (mavi/yeşil özel renk YOK) */
/* > direct child block (başlık vurgusu); paragraf içi inline strong doğal akar. Fix 2026-05-23. */
.ybs-dilekce > strong {
    font-weight: 700;
    color: #0b1626 !important;
    display: block;
    margin: .5rem 0 .25rem;
}
.ybs-dilekce p strong,
.ybs-dilekce li strong,
.ybs-dilekce td strong {
    display: inline;
    margin: 0;
}

/* Kaynak HTML'deki çoklu newline'lar korunsun → pre-wrap (padding ana .ybs-dilekce'da) */
.ybs-dilekce { white-space: pre-wrap; }

.ybs-dilekce > p {
    margin: .5rem 0;
    padding: 0;
    text-align: left;
}
.ybs-dilekce > p:first-of-type { margin-top: 1rem; }

/* Tüm strong'larda ortalı veya sağa yaslı KARAR YOK — varsayılan sol.
   Header: ilk 3 strong (ADANA ... DAİRESİNE / Gönderilmek Üzere / AĞIR CEZA MAH.) → ortalı */
.ybs-dilekce > strong:nth-of-type(1),
.ybs-dilekce > strong:nth-of-type(2),
.ybs-dilekce > strong:nth-of-type(3) {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--ybs-art-success) !important;
}
.ybs-dilekce > strong:nth-of-type(1) {
    margin-top: 1.5rem;
    padding-bottom: .25rem;
}
.ybs-dilekce > strong:nth-of-type(3) {
    border-bottom: 1px dashed var(--ybs-art-border);
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
}
/* İlk 3 strong'tan sonraki strong'lar inline (label tipi) — block resetlenir */
.ybs-dilekce > strong:nth-of-type(n+4) {
    display: inline;
    margin: 0;
    text-align: inherit;
    text-transform: none;
    letter-spacing: 0;
}
/* Section başlıklar (İSTİNAF NEDENLERİ, SONUÇ VE İSTEM) — büyük harfli + alt çizgi */
.ybs-dilekce > strong:nth-of-type(n+4) {
    /* Default inline; section başlıkları için manuel class veya pattern kullanılabilir.
       Şimdilik tüm "label" tip strong'lar inline — bold ve koyu. */
}

/* Son strong (Sanık Müdafi / Avukat Yakup Buğrahan SEVDİ) — sağa yaslı imza */
.ybs-dilekce > strong:last-of-type {
    display: block;
    text-align: right;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--ybs-art-border);
    color: var(--ybs-art-success) !important;
}

/* Alt disclaimer şeridi — normal flow (paylaş bar ile çakışmaz) */
.ybs-dilekce::after {
    content: "Bu şablon örnek niteliğindedir. Avukata danışarak kullanın.";
    display: block;
    background: var(--ybs-art-success-bg);
    color: var(--ybs-art-success);
    padding: .625rem 1.25rem;
    margin: 0 -1.5rem;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    font-size: .75rem;
    border-top: 1px solid #c8e6c9;
    text-align: left;
    white-space: normal;
}

/* ============================================================
   PAYLAŞ + KOPYALA ÇUBUĞU — site geneli ortak (dilekçe + karar + case-study)
   İÇERİĞİN BİTİMİNDE, footer disclaimer'ın HEMEN ÜSTÜNDE yerleşir.
   Static flow — absolute YOK, üst üste binme yok.
   ============================================================ */
.ybs-share-bar {
    position: static;
    /* 2026-05-25 patron fix: parent (.ybs-dilekce / .decision-text) overflow:hidden ile birlikte
       negative margin BAR'I PARENT BORDER'IN DIŞINA TAŞIYORDU → kesiliyor, görünmüyordu.
       Çözüm: parent'ın iç content-area'sını doldur (width:100%), taşma yok, alt köşeler parent
       border-radius'a overflow:hidden ile flush. Sol/sağ kayma da elimine. */
    width: 100%;
    box-sizing: border-box;
    margin: 1.5rem 0 0;
    height: 48px;
    padding: 0 1.25rem 0 1.25rem;
    background: linear-gradient(to bottom, #fcfaf3 0%, var(--ybs-art-bg-soft) 100%);
    border-top: 2px solid var(--ybs-art-gold);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .375rem;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    /* parent .ybs-dilekce white-space:pre-wrap; injekte HTML newline'larını GÖRÜNÜR yapar — bunu kapat */
    white-space: normal;
}
.ybs-share-bar * { white-space: normal; }
/* 2026-05-25 patron fix: Default .ybs-share-bar artık width:100% + margin:1.5rem 0 0 ile
   parent border-content'i dolduruyor. Decision-text için özel override gerek yok — sadece
   alt köşelere flush oturması için border-radius:0 (parent overflow:hidden zaten radius'u keser). */
.decision-text .ybs-share-bar {
    border-radius: 0;
}
/* Karar künyesi alt paylaş şeridi için padding sıfırla (border-radius'a yapışsın) */
.decision-text {
    padding-bottom: 0 !important;
}
.ybs-share-bar::before {
    content: "PAYLAŞ";
    margin-right: auto;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    color: var(--ybs-art-muted);
}

/* Yuvarlak ikon butonları — sade beyaz, hover'da marka rengi */
.ybs-share-bar__btn,
.ybs-share-bar a {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--ybs-art-primary);
    border: 1.5px solid var(--ybs-art-border);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
    text-decoration: none;
    padding: 0;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(15, 42, 79, .06);
}
.ybs-share-bar__btn svg,
.ybs-share-bar a svg { width: 14px; height: 14px; }
.ybs-share-bar__btn span,
.ybs-share-bar a span {
    /* İkon-yalnız tasarım — yazılar erişilebilirlik için, görsel YOK */
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.ybs-share-bar__btn:hover,
.ybs-share-bar a:hover { transform: translateY(-2px); }

/* MARKA RENKLERİ — her sosyal medya için hover */
.ybs-share-bar a[data-share="whatsapp"]:hover {
    background: #25d366; color: #fff; border-color: #25d366;
}
.ybs-share-bar a[data-share="facebook"]:hover {
    background: #1877f2; color: #fff; border-color: #1877f2;
}
.ybs-share-bar a[data-share="twitter"]:hover {
    background: #0f1419; color: #fff; border-color: #0f1419;
}
.ybs-share-bar a[data-share="instagram"]:hover,
.ybs-share-bar__btn[data-share="instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff; border-color: #dc2743;
}
.ybs-share-bar a[data-share="mail"]:hover {
    background: var(--ybs-art-warn); color: #fff; border-color: var(--ybs-art-warn);
}
.ybs-share-bar__btn--copy:hover {
    background: var(--ybs-art-success); color: #fff; border-color: var(--ybs-art-success);
}
.ybs-share-bar__btn.is-copied {
    background: var(--ybs-art-success);
    color: #fff;
    border-color: var(--ybs-art-success);
}

@media (max-width: 640px) {
    .ybs-share-bar { padding: 0 .5rem; gap: .25rem; }
    .ybs-share-bar::before { font-size: .625rem; letter-spacing: 1px; }
    .ybs-share-bar__btn,
    .ybs-share-bar a { width: 30px; height: 30px; }

    /* Dilekçe header şeridi mobilde — letter-spacing taşmasını önle, padding sıkıştır */
    .ybs-dilekce { padding-left: 1rem; padding-right: 1rem; }
    .ybs-dilekce::before {
        font-size: .6875rem;
        letter-spacing: .8px;
        padding: 0 .875rem;
        height: 40px;
    }
    .ybs-dilekce { padding-top: 40px; }
    .ybs-dilekce::after {
        margin: 0 -1rem;
        font-size: .6875rem;
        padding: .5rem 1rem;
    }
    .ybs-share-bar { margin-left: -1rem; margin-right: -1rem; }
    .ybs-dilekce,
    .ybs-dilekce *:not(.ybs-dilekce__copy):not(.ybs-dilekce__copy *) {
        font-size: .8125rem !important;
        line-height: 1.7 !important;
    }
}

/* ESKİ tek-buton kopyala UI'ları — gizle (yerine .ybs-share-bar geldi) */
.ybs-dilekce__copy,
.decision-text__copy {
    display: none !important;
}

/* (deprecated) eski kopyala stilini referans olarak bırak */
.ybs-dilekce__copy--legacy {
    position: absolute;
    top: .5rem;
    right: .75rem;
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: .25rem .75rem;
    background: #fff;
    color: var(--ybs-art-success);
    border: 1.5px solid #fff;
    border-radius: 999px;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif !important;
    font-size: .6875rem !important;
    font-weight: 700;
    letter-spacing: .5px;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
    z-index: 3;
}
.ybs-dilekce__copy:hover {
    background: var(--ybs-art-success);
    color: #fff;
    transform: translateY(-1px);
}
.ybs-dilekce__copy.is-copied {
    background: var(--ybs-art-primary);
    color: #fff;
    border-color: var(--ybs-art-primary);
}
.ybs-dilekce__copy svg { width: 12px; height: 12px; }

/* ============================================================
   MEVZUAT (Kanun Maddesi) — .law-article
   İki render modu:
   - div/section/p (.law-article) → tam blok kart (MEVZUAT şeridi + law-title + em)
   - span (.law-article)          → inline chip (metin içi kısa referans)
   NOT: app.bundle.css'teki `.lawyer-narrative .law-article` (specificity 0,0,2,0)
        override için tüm rule'larda `.lawyer-narrative` prefix + !important.
   ============================================================ */
.law-article:where(div, section, p),
.lawyer-narrative .law-article:where(div, section, p) {
    background: #fff !important;
    border: 2px solid var(--ybs-art-law) !important;
    border-left: 2px solid var(--ybs-art-law) !important;
    border-radius: 10px !important;
    padding: 0 !important;
    margin: 2rem 0 !important;
    overflow: hidden !important;
    box-shadow: 0 6px 24px -4px rgba(94, 53, 177, .12) !important;
    display: block !important;
    font-style: normal !important;
    color: inherit !important;
}
.law-article:where(div, section, p)::before,
.lawyer-narrative .law-article:where(div, section, p)::before {
    content: "MEVZUAT" !important;
    display: block !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    background: linear-gradient(135deg, var(--ybs-art-law) 0%, #4527a0 100%) !important;
    color: #fff !important;
    padding: .75rem 1.25rem !important;
    font-size: .75rem !important;
    font-weight: 700 !important;
    letter-spacing: 1.2px !important;
    border-radius: 0 !important;
}
/* Eğer blok .law-article'da sadece <strong> + text varsa (law-title yok) —
   strong'a header altı padding zorla, § ::before pozisyonlama hatasını gider */
.law-article:where(div, section, p) > strong:first-child,
.lawyer-narrative .law-article:where(div, section, p) > strong:first-child {
    display: block !important;
    background: var(--ybs-art-law-bg) !important;
    color: #4527a0 !important;
    padding: .875rem 1.25rem !important;
    font-size: .9375rem !important;
    font-weight: 700 !important;
    border-bottom: 1px solid #d1c4e9 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}
/* Blok .law-article içindeki düz text/inline content — body styling */
.law-article:where(div, section, p) > *:not(.law-title):not(em):not(strong),
.lawyer-narrative .law-article:where(div, section, p) > *:not(.law-title):not(em):not(strong) {
    padding: 1rem 1.25rem !important;
    margin: 0 !important;
    color: #4a148c !important;
    line-height: 1.7 !important;
}

/* Inline chip — <span class="law-article">İİK m. 82/12</span> gibi metin içi kısa atıflar.
   app.bundle.css `.lawyer-narrative .law-article` (block, italic, §-ile) override edilir. */
.lawyer-narrative span.law-article,
.lawyer-narrative .law-article:not(div):not(section):not(p),
span.law-article {
    display: inline !important;
    position: static !important;
    background: var(--ybs-art-law-bg) !important;
    color: #4527a0 !important;
    border: 1px solid #d1c4e9 !important;
    border-radius: .35rem !important;
    padding: .1em .5em !important;
    margin: 0 !important;
    font-size: .9em !important;
    font-weight: 600 !important;
    font-style: normal !important;
    line-height: inherit !important;
    box-shadow: none !important;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    white-space: normal !important;
    overflow-wrap: anywhere;
    vertical-align: baseline !important;
    width: auto !important;
    height: auto !important;
}
.lawyer-narrative span.law-article::before,
.lawyer-narrative .law-article:not(div):not(section):not(p)::before,
span.law-article::before {
    content: none !important;
    display: none !important;
    background: none !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
}
.law-article .law-title {
    display: block;
    background: var(--ybs-art-law-bg);
    color: #4527a0;
    padding: .875rem 1.25rem;
    font-size: .875rem;
    font-weight: 700;
    border-bottom: 1px solid #d1c4e9;
}
.law-article em {
    display: block;
    padding: 1rem 1.25rem;
    margin: 0;
    color: #4a148c;
    line-height: 1.8;
    font-size: .9375rem;
    background: var(--ybs-art-bg-soft);
    border-bottom: 1px solid var(--ybs-art-border);
}
.law-article .analiz {
    background: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}
.law-article .analiz::before { display: none !important; }
.law-article .analiz strong:first-child { color: var(--ybs-art-law); padding: .875rem 1.25rem 0; }
.law-article .analiz p { color: var(--ybs-art-ink-2); }

/* ============================================================
   TABLO — sticky thead + responsive yatay scroll + net hücreler
   Site geneli en gelişmiş versiyon. Wrapper otomatik JS ile sarılır.
   ============================================================ */

/* Sarmal — sadece YATAY scroll için. max-height YOK çünkü sticky Y ekseninde
   parent overflow olduğunda kırılır. Window scroll'da thead viewport üstüne yapışır. */
.ybs-table-wrap,
.lawyer-narrative .ybs-table-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    margin: 1.75rem 0;
    border-radius: 12px;
    box-shadow: 0 6px 24px -4px rgba(15, 42, 79, .12);
    border: 1px solid var(--ybs-art-border);
    background: #fff;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--ybs-art-gold) transparent;
    position: relative;
}
.ybs-table-wrap::-webkit-scrollbar { height: 8px; width: 8px; }
.ybs-table-wrap::-webkit-scrollbar-thumb { background: var(--ybs-art-gold); border-radius: 4px; }
.ybs-table-wrap::-webkit-scrollbar-track { background: var(--ybs-art-bg-warm); }

.lawyer-narrative table,
.legal-content table {
    width: 100%;
    min-width: 480px;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    background: #fff;
    font-size: .9375rem;
    border-radius: 0;
}

/* Sticky thead — wrapper içinde scroll edince başlık üstte kalır */
.lawyer-narrative table thead th,
.legal-content table thead th,
.lawyer-narrative table th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: linear-gradient(135deg, var(--ybs-art-primary) 0%, var(--ybs-art-primary-2) 100%);
    color: #fff;
    padding: 1rem 1.125rem;
    text-align: left;
    font-weight: 700;
    font-size: .875rem;
    letter-spacing: .3px;
    border: 0;
    border-bottom: 3px solid var(--ybs-art-gold);
    white-space: nowrap;
    /* sticky shadow yapay (after pseudo) */
    box-shadow: 0 4px 6px -4px rgba(15, 42, 79, .25);
}

.lawyer-narrative table td,
.legal-content table td {
    padding: .875rem 1.125rem;
    border-bottom: 1px solid var(--ybs-art-border);
    border-right: 1px solid var(--ybs-art-border);
    line-height: 1.65;
    color: var(--ybs-art-ink-2);
    vertical-align: top;
    background: #fff;
}
.lawyer-narrative table td:last-child,
.legal-content table td:last-child { border-right: 0; }
.lawyer-narrative table tr:last-child td,
.legal-content table tr:last-child td { border-bottom: 0; }

.lawyer-narrative table tbody tr:nth-child(even) td,
.legal-content table tbody tr:nth-child(even) td { background: var(--ybs-art-bg-soft); }
.lawyer-narrative table tbody tr:hover td,
.legal-content table tbody tr:hover td { background: #fef9e6; transition: background-color .15s ease; }

.lawyer-narrative table strong,
.legal-content table strong { color: var(--ybs-art-primary); font-weight: 700; }

.lawyer-narrative table .glossary-term {
    font-weight: 700;
    color: var(--ybs-art-info);
    white-space: nowrap;
    background: var(--ybs-art-info-bg);
    padding: .125rem .5rem;
    border-radius: 4px;
}

/* Mobil: ilk sütun sabit yapma (opsiyonel — sınıf eklenince aktif) */
.ybs-table-wrap.has-pinned-first table td:first-child,
.ybs-table-wrap.has-pinned-first table th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #fff;
    border-right: 2px solid var(--ybs-art-gold);
}
.ybs-table-wrap.has-pinned-first table th:first-child { z-index: 3; }

/* Yatay scroll uyarısı (mobile only) — JS injekt eder ".ybs-table-scroll-hint" */
.ybs-table-scroll-hint {
    display: none;
    text-align: center;
    padding: .375rem;
    font-size: .6875rem;
    color: var(--ybs-art-muted);
    background: var(--ybs-art-bg-warm);
    border-bottom: 1px solid var(--ybs-art-border);
    font-weight: 600;
    letter-spacing: .3px;
}
@media (max-width: 640px) {
    .ybs-table-scroll-hint { display: block; }
    .lawyer-narrative table { font-size: .8125rem; min-width: 600px; }
    .lawyer-narrative table th,
    .lawyer-narrative table td { padding: .625rem .75rem; }
}

/* ============================================================
   CHECKLIST — ul.checklist
   ============================================================ */
.lawyer-narrative ul.checklist,
ul.checklist {
    background: linear-gradient(135deg, var(--ybs-art-info-bg) 0%, #bbdefb 100%);
    border: 2px solid #1976d2;
    border-radius: 10px;
    padding: 1.5rem 1.5rem 1.5rem 1.75rem;
    margin: 1.75rem 0;
    list-style: none;
    box-shadow: 0 4px 16px rgba(25, 118, 210, .12);
}
ul.checklist li {
    padding: .5rem 0 .5rem 2rem;
    position: relative;
    color: var(--ybs-art-ink);
    line-height: 1.7;
    border-bottom: 1px dashed rgba(25, 118, 210, .2);
}
ul.checklist li:last-child { border-bottom: 0; }
ul.checklist li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: .5rem;
    width: 1.25rem;
    height: 1.25rem;
    background: #1976d2;
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
}

/* ============================================================
   REHBER ÖZETİ — .rehber-ozet ("Yazımızda neler var?")
   ============================================================ */
.rehber-ozet {
    background: linear-gradient(135deg, var(--ybs-art-bg-warm) 0%, var(--ybs-art-bg-soft) 100%);
    border: 2px solid var(--ybs-art-gold);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0;
    box-shadow: 0 4px 16px rgba(201, 162, 39, .12);
    position: relative;
}
/* SADECE ilk direct child strong başlık vurgusu (block). İçerikteki diğer strong'lar (p ile sarılmamış, doğrudan child) inline kalır. Fix 2026-05-25 (kırılma). */
.rehber-ozet > strong:first-child {
    color: var(--ybs-art-primary);
    font-size: 1.0625rem;
    display: block;
    margin-bottom: .625rem;
    padding-bottom: .375rem;
    border-bottom: 1px dashed var(--ybs-art-gold);
}
.rehber-ozet > strong:not(:first-child) {
    display: inline;
    color: var(--ybs-art-primary);
    font-weight: 700;
}
.rehber-ozet p strong,
.rehber-ozet li strong,
.rehber-ozet td strong {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: inherit;
    color: var(--ybs-art-primary);
    font-weight: 700;
}
.rehber-ozet ul { margin: .5rem 0 0; padding-left: 1.5rem; }
.rehber-ozet li { margin-bottom: .375rem; }
.rehber-ozet a { color: var(--ybs-art-primary); font-weight: 600; }

/* ============================================================
   MOBİL UYUMLULUK
   ============================================================ */
@media (max-width: 640px) {
    .lawyer-narrative .ybs-featured-image img,
    .lawyer-narrative figure img { aspect-ratio: 4 / 3; }
    .lawyer-narrative h2 { font-size: 1.25rem; }
    .lawyer-narrative h3 { font-size: 1.125rem; }
    .lawyer-narrative p { text-align: left; }
    .case-header { font-size: .8125rem; }
    .author-note h3 { font-size: .9375rem !important; padding: .75rem 1rem; }
    .lawyer-narrative table { font-size: .8125rem; }
    .lawyer-narrative table th,
    .lawyer-narrative table td { padding: .625rem .75rem; }
}

/* ============================================================
   ERİŞİLEBİLİRLİK + YAZDIRMA
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .lawyer-narrative * { transition: none !important; animation: none !important; }
}
@media print {
    .author-note, .analiz, .case-study, .warning, .info-box,
    .ybs-dilekce, .law-article, .rehber-ozet {
        box-shadow: none !important;
        break-inside: avoid;
    }
}

/* ============================================================
   YBS TOC v3.2 - Native <details> based (2026-05-23)
   Acilis-kapanis browser native. Tum gruplar default OPEN.
   ============================================================ */

/* ---- 1) ICERIK METNI JUSTIFY (saga-sola yasli) ---- */
.ybs-blog-detail .ybs-blog-detail__content p,
.ybs-blog-detail .lawyer-narrative p,
.ybs-blog-detail .info-box p,
.ybs-blog-detail .warning p,
.ybs-blog-detail .case-study .case-content p,
.ybs-blog-detail .decision-text p,
.ybs-blog-detail .author-note p,
.ybs-blog-detail .analiz p,
.ybs-blog-detail .rehber-ozet p,
.lawyer-narrative.ybs-category-narrative p,
.ybs-blog-detail li {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
}
.ybs-blog-detail .direct-answer,
.ybs-blog-detail .direct-answer p { text-align: left; }
@media (max-width: 640px) {
    .ybs-blog-detail .ybs-blog-detail__content p,
    .ybs-blog-detail .lawyer-narrative p,
    .ybs-blog-detail .info-box p,
    .ybs-blog-detail .warning p,
    .ybs-blog-detail .case-study .case-content p,
    .ybs-blog-detail .decision-text p,
    .ybs-blog-detail .author-note p,
    .ybs-blog-detail .analiz p,
    .ybs-blog-detail .rehber-ozet p,
    .lawyer-narrative.ybs-category-narrative p,
    .ybs-blog-detail li {
        text-align: left;
        hyphens: none;
    }
}

/* ============================================================
   YBS TOC v3.2 ASIL BİLEŞEN
   ============================================================ */

.ybs-toc {
    margin: 1rem 0 1.5rem;
    position: relative;
    z-index: 30;
}

/* Shell <details> - acilis-kapanis kapsayicisi */
.ybs-toc__shell {
    background: #fff;
    border: 1px solid var(--ybs-art-border, #e5e7eb);
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 4px 12px -4px rgba(15, 42, 79, .1);
}
/* Default marker'i gizle (chevron biz veriyoruz) */
.ybs-toc__shell > summary::-webkit-details-marker { display: none; }
.ybs-toc__shell > summary { list-style: none; }
.ybs-toc__shell > summary::marker { display: none; }

/* ---- BAR (sticky her cihazda, geometry-based JS pin) ---- */
.ybs-toc__bar {
    cursor: pointer;
    background: linear-gradient(135deg, #fff 0%, #fcfaf3 100%);
    border-bottom: 1px solid var(--ybs-art-border, #e5e7eb);
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    transition: box-shadow .2s ease;
    display: block;
}
.ybs-toc__shell:not([open]) > .ybs-toc__bar {
    border-bottom: 0;
    border-radius: 12px;
}
.ybs-toc__progress {
    height: 3px;
    background: rgba(15, 42, 79, .08);
    position: relative;
    overflow: hidden;
}
.ybs-toc__progress-fill {
    display: block;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--ybs-art-gold, #d4a017) 0%, var(--ybs-art-gold-dark, #b8860b) 100%);
    transition: width .12s linear;
}
.ybs-toc__bar-inner {
    padding: .75rem 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .875rem;
    color: var(--ybs-art-ink-2, #334155);
}
.ybs-toc__bar-icon { color: var(--ybs-art-gold, #d4a017); flex-shrink: 0; display: inline-flex; }
.ybs-toc__bar-label {
    font-size: .625rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--ybs-art-gold-dark, #b8860b);
    flex-shrink: 0;
    text-transform: uppercase;
    white-space: nowrap;
}
.ybs-toc__bar-active {
    flex: 1 1 auto;
    font-weight: 600;
    color: var(--ybs-art-primary, #0f2a4f);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.ybs-toc__bar-counter {
    flex-shrink: 0;
    font-size: .75rem;
    color: var(--ybs-art-muted, #64748b);
    font-variant-numeric: tabular-nums;
}
.ybs-toc__bar-chevron {
    flex-shrink: 0;
    color: var(--ybs-art-primary, #0f2a4f);
    transition: transform .2s ease;
    display: inline-flex;
}
.ybs-toc__shell[open] > .ybs-toc__bar .ybs-toc__bar-chevron {
    transform: rotate(180deg);
}

/* ---- PANEL ---- */
.ybs-toc__panel {
    padding: .75rem 1rem 1rem;
    max-height: min(70vh, 600px);
    overflow-y: auto;
    background: #fff;
    border-radius: 0 0 12px 12px;
}
.ybs-toc__panel::-webkit-scrollbar { width: 6px; }
.ybs-toc__panel::-webkit-scrollbar-thumb { background: var(--ybs-art-gold, #d4a017); border-radius: 3px; }

/* ---- LIST + ITEM ---- */
.ybs-toc__list, .ybs-toc__sublist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .125rem;
}
.ybs-toc__sublist {
    margin-top: .25rem;
    padding-left: .5rem;
    border-left: 2px solid rgba(212, 160, 23, .15);
}
.ybs-toc__item { overflow: visible; }

/* H2 group <details> */
.ybs-toc__group { /* details */ }
.ybs-toc__group > summary::-webkit-details-marker { display: none; }
.ybs-toc__group > summary { list-style: none; cursor: pointer; }
.ybs-toc__group > summary::marker { display: none; }

.ybs-toc__row {
    display: flex;
    align-items: center;
    gap: .25rem;
    position: relative;
}
.ybs-toc__link {
    flex: 1 1 auto;
    display: flex;
    align-items: baseline;
    gap: .375rem;
    padding: .375rem .5rem .375rem .875rem;
    border-radius: 6px;
    text-decoration: none;
    color: var(--ybs-art-ink-2, #334155);
    font-size: .8125rem;
    line-height: 1.4;
    position: relative;
    transition: background-color .15s ease, color .15s ease;
    min-width: 0;
}
.ybs-toc__link:hover {
    background: rgba(255, 215, 0, .12);
    color: var(--ybs-art-primary, #0f2a4f);
}
.ybs-toc__link.is-active {
    background: linear-gradient(90deg, rgba(255, 215, 0, .25), rgba(255, 215, 0, .08));
    color: var(--ybs-art-primary, #0f2a4f);
    font-weight: 600;
    box-shadow: inset 3px 0 0 0 var(--ybs-art-gold-dark, #b8860b);
}
.ybs-toc__num {
    flex-shrink: 0;
    font-weight: 700;
    color: var(--ybs-art-gold-dark, #b8860b);
    min-width: 1.75rem;
    font-variant-numeric: tabular-nums;
    font-size: .75rem;
}
.ybs-toc__text {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

/* H2 ana satır vurgu */
.ybs-toc__item--h2 > .ybs-toc__group > summary .ybs-toc__link {
    font-weight: 600;
    font-size: .875rem;
    color: var(--ybs-art-primary, #0f2a4f);
}

/* H4 hafif daha içerleme + küçük font */
.ybs-toc__item--h4 { padding-left: 1rem; }
.ybs-toc__item--h4 .ybs-toc__link { font-size: .75rem; }

/* Group chevron */
.ybs-toc__group-chev {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ybs-art-muted, #64748b);
    transition: transform .2s ease, color .2s ease;
}
.ybs-toc__group[open] > summary .ybs-toc__group-chev {
    transform: rotate(180deg);
    color: var(--ybs-art-gold-dark, #b8860b);
}

/* ---- FAQ section ---- */
.ybs-toc__faq {
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px dashed var(--ybs-art-border, #e5e7eb);
}
.ybs-toc__faq-title {
    font-size: .75rem;
    font-weight: 700;
    color: var(--ybs-art-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin: 0 0 .375rem;
}

/* ---- PERMANENT FLASH ---- */
.ybs-toc-target-active {
    background: linear-gradient(90deg, rgba(255, 215, 0, .35), rgba(255, 215, 0, .15)) !important;
    box-shadow: 0 0 0 4px rgba(255, 215, 0, .25), inset 4px 0 0 0 #d4a017;
    border-radius: 6px;
    transition: background-color .3s ease, box-shadow .3s ease;
    scroll-margin-top: 6rem;
}

/* ---- HEADING SCROLL OFFSET (dinamik - JS navOffset ile tutarli) ---- */
.ybs-blog-detail h2[id],
.ybs-blog-detail h3[id],
.ybs-blog-detail h4[id],
.ybs-category-hub__main h2[id],
.ybs-category-hub__main h3[id],
.ybs-category-hub__main h4[id],
.lawyer-narrative h2[id],
.lawyer-narrative h3[id],
.lawyer-narrative h4[id],
.ybs-blog-detail [id^="faq-"],
.ybs-blog-faq__question[id] {
    scroll-margin-top: 140px;
}
@media (max-width: 1023px) {
    .ybs-blog-detail h2[id],
    .ybs-blog-detail h3[id],
    .ybs-blog-detail h4[id],
    .ybs-category-hub__main h2[id],
    .ybs-category-hub__main h3[id],
    .ybs-category-hub__main h4[id],
    .lawyer-narrative h2[id],
    .lawyer-narrative h3[id],
    .lawyer-narrative h4[id],
    .ybs-blog-detail [id^="faq-"],
    .ybs-blog-faq__question[id] {
        scroll-margin-top: 140px;
    }
}

/* ---- STICKY PIN (geometry-based, JS .is-pinned class) ---- */
.ybs-toc.is-pinned .ybs-toc__bar {
    position: fixed !important;
    top: 64px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100vw;
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-top: 0 !important;
    box-shadow: 0 8px 20px -6px rgba(15, 42, 79, .3) !important;
    z-index: 49 !important;
}
.ybs-toc.is-pinned::before {
    content: "";
    display: block;
    height: var(--ybs-toc-bar-height, 56px);
}
@media (max-width: 1023px) {
    .ybs-toc.is-pinned .ybs-toc__bar { top: 56px !important; }
}

/* ---- MOBİL kısaltma ---- */
@media (max-width: 640px) {
    .ybs-toc__bar-label {
        font-size: .5625rem;
        letter-spacing: .5px;
    }
    .ybs-toc__bar-inner {
        padding: .5rem .75rem;
        font-size: .75rem;
    }
}


/* === TOC v3.3 PATCH (2026-05-23) - bar = button, shell = div === */
/* Bar artık <button>, position:fixed sorunsuz */
.ybs-toc__bar {
    width: 100%;
    background: linear-gradient(135deg, #fff 0%, #fcfaf3 100%);
    border: 1px solid var(--ybs-art-border, #e5e7eb);
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    box-shadow: 0 4px 12px -4px rgba(15, 42, 79, .1);
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    display: block;
    padding: 0;
    margin: 0;
    color: inherit;
    transition: box-shadow .2s ease;
}
.ybs-toc:not(.is-shell-open) > .ybs-toc__bar {
    border-radius: 12px;
}
.ybs-toc__bar:hover { background: linear-gradient(135deg, #fff 0%, #faf2dc 100%); }
.ybs-toc__bar:focus-visible { outline: 2px solid var(--ybs-art-gold, #d4a017); outline-offset: 2px; }

/* Shell content (panel + faq) */
.ybs-toc__shell-content {
    background: #fff;
    border: 1px solid var(--ybs-art-border, #e5e7eb);
    border-top: 0;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 12px -4px rgba(15, 42, 79, .1);
}

/* Bar chevron - is-shell-open iken döner */
.ybs-toc.is-shell-open .ybs-toc__bar-chevron { transform: rotate(180deg); }

/* Pinli iken bar fixed - panel açıkken bile bar yapışsın */
.ybs-toc.is-pinned > .ybs-toc__bar {
    position: fixed !important;
    top: 64px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100vw;
    margin: 0 !important;
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-top: 0 !important;
    box-shadow: 0 8px 20px -6px rgba(15, 42, 79, .3) !important;
    z-index: 49 !important;
}
.ybs-toc.is-pinned::before {
    content: "";
    display: block;
    height: var(--ybs-toc-bar-height, 56px);
}
@media (max-width: 1023px) {
    .ybs-toc.is-pinned > .ybs-toc__bar { top: 56px !important; }
}


/* === TOC v3.4 - CSS NATIVE STICKY (geometry pin terkedildi) === */
/* Bar'a doğrudan position:sticky — JS bağımsız, garanti çalışır */
.ybs-toc__bar {
    position: sticky;
    top: 64px;
    z-index: 49;
}
@media (max-width: 1023px) {
    .ybs-toc__bar { top: 56px; }
}
/* TOC ve ancestor'larında overflow:visible ZORUNLU (sticky parent overflow ile kırılır) */
.ybs-toc,
.ybs-blog-detail,
.ybs-blog-detail .ybs-category-hub__grid,
.ybs-blog-detail .ybs-category-hub__main,
.ybs-category-hub.ybs-blog-detail,
.ybs-category-hub.ybs-blog-detail .ybs-category-hub__grid,
.ybs-category-hub.ybs-blog-detail .ybs-category-hub__main {
    overflow: visible !important;
}
/* is-pinned class'ı artık tetiklenmiyor — sticky CSS-only halleder.
   Önceki .is-pinned position:fixed kuralı override etmeyecek, hata olmaz. */

/* ============================================================
   TOC v3.5 — MARGIN/PADDING SIKIŞTIRMA (patron 2026-05-23)
   Akordiyon üst-alt fazla boşluk azaltıldı, kompakt görünüm.
   ============================================================ */
.ybs-toc {
    margin: .5rem 0 .75rem;
}
.ybs-toc__bar-inner {
    padding: .5rem .875rem;
}
.ybs-toc__panel {
    padding: .25rem .75rem .5rem;
    max-height: min(60vh, 500px);
}
.ybs-toc__list,
.ybs-toc__sublist {
    gap: 0;
}
.ybs-toc__sublist {
    margin-top: 0;
    padding-left: .375rem;
    border-left: 2px solid rgba(212, 160, 23, .12);
    margin-bottom: .125rem;
}
.ybs-toc__link {
    padding: .25rem .5rem .25rem .75rem;
    line-height: 1.35;
}
.ybs-toc__item--h2 {
    margin-top: .125rem;
}
.ybs-toc__item--h2 > .ybs-toc__group > summary .ybs-toc__link {
    padding-top: .3125rem;
    padding-bottom: .3125rem;
}
.ybs-toc__item--h3,
.ybs-toc__item--h4 {
    padding-left: .375rem;
}
.ybs-toc__item--h3 .ybs-toc__link {
    padding-top: .1875rem;
    padding-bottom: .1875rem;
}
.ybs-toc__item--h4 {
    padding-left: .75rem;
}
.ybs-toc__group {
    margin: 0;
}
.ybs-toc__group[open] > summary + ol.ybs-toc__sublist {
    margin-top: 0;
}
.ybs-toc__faq {
    margin-top: .5rem;
    padding-top: .5rem;
}
.ybs-toc__faq-title {
    margin: 0 0 .25rem;
}
.ybs-toc__faq .ybs-toc__list { gap: 0; }

/* Bar yüksekliği daha kompakt — sticky pinli iken bile bar daha az yer kaplar */
@media (max-width: 640px) {
    .ybs-toc__bar-inner { padding: .375rem .625rem; }
    .ybs-toc__panel { padding: .25rem .5rem .375rem; }
}

/* ============================================================
   ybs-aphorism-quote — Özlü söz / aforizm / felsefi alıntı
   2026-05-24: Klasik kitap quote estetiği — çift quote glyph,
   Georgia italic, altın aksanlar, minimal/zarif. Yargıtay
   kararı VEYA müvekkil tanıklığı DEĞİL.
   ============================================================ */
.lawyer-narrative blockquote.ybs-aphorism-quote,
.legal-content blockquote.ybs-aphorism-quote,
blockquote.ybs-aphorism-quote {
    position: relative !important;
    margin: 2rem auto !important;
    padding: 2rem 2.5rem !important;
    max-width: 720px !important;
    background: linear-gradient(180deg, #fdfcf8 0%, #f6f1e6 100%) !important;
    border: 1px solid rgba(201, 162, 39, 0.18) !important;
    border-left: none !important;
    border-radius: 4px !important;
    font-family: Georgia, "Times New Roman", serif !important;
    box-shadow: 0 1px 2px rgba(15, 42, 79, 0.04), 0 12px 32px -8px rgba(201, 162, 39, 0.12) !important;
    color: #1a2942 !important;
    overflow: visible !important;
    quotes: none !important;
    font-style: normal !important;
    text-align: center !important;
}
/* Üst ve alt altın çizgiler — klasik kitap quote'u */
.lawyer-narrative blockquote.ybs-aphorism-quote::before,
.legal-content blockquote.ybs-aphorism-quote::before,
blockquote.ybs-aphorism-quote::before {
    content: "" !important;
    position: absolute !important;
    top: 0.75rem !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 60px !important;
    height: 2px !important;
    background: linear-gradient(90deg, transparent 0%, #c9a227 50%, transparent 100%) !important;
    opacity: 0.7 !important;
    display: block !important;
    padding: 0 !important;
    color: transparent !important;
    font-size: 0 !important;
    letter-spacing: 0 !important;
    line-height: 0 !important;
}
.lawyer-narrative blockquote.ybs-aphorism-quote::after,
.legal-content blockquote.ybs-aphorism-quote::after,
blockquote.ybs-aphorism-quote::after {
    content: "" !important;
    position: absolute !important;
    bottom: 0.75rem !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 60px !important;
    height: 2px !important;
    background: linear-gradient(90deg, transparent 0%, #c9a227 50%, transparent 100%) !important;
    opacity: 0.7 !important;
}
/* Metin — büyük italic, ortalı, açılan-kapanan quote glyph'ler */
.lawyer-narrative blockquote.ybs-aphorism-quote .ybs-aphorism-quote__text,
.legal-content blockquote.ybs-aphorism-quote .ybs-aphorism-quote__text,
blockquote.ybs-aphorism-quote .ybs-aphorism-quote__text {
    font-size: 1.25rem !important;
    line-height: 1.7 !important;
    color: #1a2942 !important;
    font-style: italic !important;
    font-weight: 400 !important;
    margin: 0.5rem 0 1.25rem 0 !important;
    padding: 0 !important;
    letter-spacing: 0.015em !important;
    background: none !important;
    text-align: center !important;
    quotes: "\201C" "\201D" "\2018" "\2019" !important;
    position: relative !important;
}
.lawyer-narrative blockquote.ybs-aphorism-quote .ybs-aphorism-quote__text::before,
.legal-content blockquote.ybs-aphorism-quote .ybs-aphorism-quote__text::before,
blockquote.ybs-aphorism-quote .ybs-aphorism-quote__text::before {
    content: "\201C" !important;
    color: #c9a227 !important;
    font-size: 1.75rem !important;
    line-height: 0 !important;
    vertical-align: -0.35em !important;
    margin-right: 0.15em !important;
    opacity: 0.7 !important;
    font-family: Georgia, serif !important;
    font-style: normal !important;
}
.lawyer-narrative blockquote.ybs-aphorism-quote .ybs-aphorism-quote__text::after,
.legal-content blockquote.ybs-aphorism-quote .ybs-aphorism-quote__text::after,
blockquote.ybs-aphorism-quote .ybs-aphorism-quote__text::after {
    content: "\201D" !important;
    color: #c9a227 !important;
    font-size: 1.75rem !important;
    line-height: 0 !important;
    vertical-align: -0.35em !important;
    margin-left: 0.15em !important;
    opacity: 0.7 !important;
    font-family: Georgia, serif !important;
    font-style: normal !important;
}
/* Cite — küçük caps, ortalı, altın ince çizgi */
.lawyer-narrative blockquote.ybs-aphorism-quote .ybs-aphorism-quote__cite,
.legal-content blockquote.ybs-aphorism-quote .ybs-aphorism-quote__cite,
blockquote.ybs-aphorism-quote .ybs-aphorism-quote__cite {
    display: block !important;
    font-size: 0.8125rem !important;
    color: #6b7a8a !important;
    font-style: normal !important;
    font-weight: 600 !important;
    font-family: Inter, system-ui, sans-serif !important;
    text-align: center !important;
    margin: 0.75rem auto 0 auto !important;
    padding: 0 !important;
    background: none !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    border: none !important;
}
.lawyer-narrative blockquote.ybs-aphorism-quote .ybs-aphorism-quote__cite::before,
.legal-content blockquote.ybs-aphorism-quote .ybs-aphorism-quote__cite::before,
blockquote.ybs-aphorism-quote .ybs-aphorism-quote__cite::before {
    content: "" !important;
    display: inline-block !important;
    width: 20px !important;
    height: 1px !important;
    background: #c9a227 !important;
    vertical-align: middle !important;
    margin-right: 0.625rem !important;
    opacity: 0.6 !important;
}
.lawyer-narrative blockquote.ybs-aphorism-quote .ybs-aphorism-quote__cite::after,
.legal-content blockquote.ybs-aphorism-quote .ybs-aphorism-quote__cite::after,
blockquote.ybs-aphorism-quote .ybs-aphorism-quote__cite::after {
    content: "" !important;
    display: inline-block !important;
    width: 20px !important;
    height: 1px !important;
    background: #c9a227 !important;
    vertical-align: middle !important;
    margin-left: 0.625rem !important;
    opacity: 0.6 !important;
}
@media (max-width: 640px) {
    blockquote.ybs-aphorism-quote {
        padding: 1.5rem 1.25rem !important;
        margin: 1.5rem 0 !important;
    }
    blockquote.ybs-aphorism-quote .ybs-aphorism-quote__text {
        font-size: 1.0625rem !important;
    }
    blockquote.ybs-aphorism-quote .ybs-aphorism-quote__text::before,
    blockquote.ybs-aphorism-quote .ybs-aphorism-quote__text::after {
        font-size: 1.375rem !important;
    }
    blockquote.ybs-aphorism-quote .ybs-aphorism-quote__cite {
        font-size: 0.75rem !important;
    }
}
@media (prefers-reduced-motion: reduce) {
    blockquote.ybs-aphorism-quote { box-shadow: none !important; }
}
