/* ==========================================================================
   VAKANÜVİS — LOUVRE CHIAROSCURO, LITERATA READER & CURATORIAL STUDIO v9.0
   ========================================================================== */

:root {
    --bg-canvas: #f3efe6;
    --bg-surface: #fbf9f5;
    --bg-subtle: #ebe5d8;
    --bg-mat: #e2dacb;
    --bg-masthead: rgba(243, 239, 230, 0.92);
    --ink-primary: #171512;
    --ink-secondary: #4a453d;
    --ink-muted: #7a7265;
    --line-subtle: rgba(23, 21, 18, 0.12);
    --line-strong: rgba(166, 124, 56, 0.48);
    --accent-brass: #9a7029;
    --accent-gold-bright: #b8860b;
    --accent-crimson: #8f1d24;
    --accent-sage: #245c46;
    --btn-bg: #171512;
    --btn-fg: #fbf9f5;
    --card-shadow: 0 14px 34px -12px rgba(28, 22, 12, 0.14);
    --card-shadow-hover: 0 24px 48px -12px rgba(28, 22, 12, 0.24);

    --reading-font: 'Literata', Georgia, serif;
    --reading-size: 1.08rem;
    --reading-lh: 1.9;
}

html.dark {
    --bg-canvas: #090807;
    --bg-surface: #12100e;
    --bg-subtle: #1b1815;
    --bg-mat: #171411;
    --bg-masthead: rgba(9, 8, 7, 0.9);
    --ink-primary: #f5f1e8;
    --ink-secondary: #c8c0b0;
    --ink-muted: #847c6e;
    --line-subtle: rgba(245, 241, 232, 0.1);
    --line-strong: rgba(212, 175, 55, 0.52);
    --accent-brass: #d4af37;
    --accent-gold-bright: #f2d57e;
    --accent-crimson: #c93b3b;
    --accent-sage: #4ea885;
    --btn-bg: #d4af37;
    --btn-fg: #090807;
    --card-shadow: 0 18px 40px -15px rgba(0, 0, 0, 0.85);
    --card-shadow-hover: 0 28px 60px -12px rgba(0, 0, 0, 0.96), 0 0 28px -6px rgba(212, 175, 55, 0.18);
}

body[data-rfont="sans"] {
    --reading-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --reading-lh: 1.82;
}
body[data-rsize="sm"] { --reading-size: 0.98rem; }
body[data-rsize="md"] { --reading-size: 1.08rem; }
body[data-rsize="lg"] { --reading-size: 1.22rem; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-canvas); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-canvas);
    color: var(--ink-primary);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
}

html.dark body {
    background-image:
        radial-gradient(ellipse 75% 42% at 50% -5%, rgba(212, 175, 55, 0.11), transparent 70%),
        radial-gradient(ellipse 50% 35% at 92% 22%, rgba(158, 42, 43, 0.07), transparent 65%),
        radial-gradient(ellipse 45% 40% at 8% 65%, rgba(212, 175, 55, 0.05), transparent 70%);
    background-attachment: fixed;
}

/* Üst Müze Masthead */
.museum-header {
    background: var(--bg-masthead);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line-subtle);
}

.museum-subnav {
    border-bottom: 1px solid var(--line-subtle);
    background: rgba(18, 16, 14, 0.45);
}
html:not(.dark) .museum-subnav {
    background: rgba(235, 229, 216, 0.55);
}

.curatorial-nav-link {
    position: relative;
    padding: 0.72rem 0;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    color: var(--ink-secondary);
    transition: color 0.2s ease;
    white-space: nowrap;
}
.curatorial-nav-link:hover,
.curatorial-nav-link.active { color: var(--accent-brass); }
.curatorial-nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-brass), transparent);
    transform: scaleX(0);
    transition: transform 0.28s ease;
}
.curatorial-nav-link:hover::after,
.curatorial-nav-link.active::after { transform: scaleX(1); }

/* Okumaya Devam Et Hafıza Şeridi */
.continue-reading-strip {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.13) 0%, rgba(212, 175, 55, 0.04) 100%);
    border: 1px solid var(--line-strong);
    box-shadow: var(--card-shadow);
}

/* "O Sırada Dünyada" Senkron Çağdaşlar Şeridi */
.contemporary-world-band {
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-subtle) 100%);
    border: 1px solid var(--line-subtle);
    border-left: 3px solid var(--accent-brass);
    border-radius: 6px;
    box-shadow: var(--card-shadow);
}
.contemporary-pill-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.9rem;
    border-radius: 6px;
    background: var(--bg-surface);
    border: 1px solid var(--line-subtle);
    min-width: 235px;
    max-width: 270px;
    transition: all 0.24s ease;
    cursor: pointer;
}
.contemporary-pill-card:hover {
    border-color: var(--accent-brass);
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

/* İmparatorluk Karşılaştırma Çubukları */
.compare-metric-track {
    height: 7px;
    border-radius: 999px;
    background: var(--bg-subtle);
    overflow: hidden;
    display: flex;
}
.compare-bar-a {
    background: linear-gradient(90deg, #9a7029, #f2d57e);
    transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.compare-bar-b {
    background: linear-gradient(90deg, #4ea885, #245c46);
    transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Aa Görünüm Açılır Paneli */
.reader-appearance-popover {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 248px;
    padding: 0.9rem;
    border-radius: 8px;
    background: #181512;
    color: #f5f1e8;
    border: 1px solid rgba(212, 175, 55, 0.48);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.75);
    z-index: 120;
    font-family: 'JetBrains Mono', monospace;
}

/* Sinematik Manşet Sahnesi & Akıcı Alt-Piksel Süre Çubuğu */
@keyframes kenBurnsPan {
    0% { transform: scale(1.02) translate(0, 0); }
    50% { transform: scale(1.09) translate(-1%, -1%); }
    100% { transform: scale(1.02) translate(0, 0); }
}

.hero-cinema-stage {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #070605;
    border: 1px solid var(--line-strong);
    box-shadow: var(--card-shadow-hover);
}

.hero-cinema-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    opacity: 0.52;
    filter: contrast(1.08) saturate(1.12);
    animation: kenBurnsPan 28s ease-in-out infinite;
    transition: opacity 0.5s ease;
}

.hero-cinema-vignette {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 7, 6, 0.95) 0%, rgba(8, 7, 6, 0.78) 48%, rgba(8, 7, 6, 0.28) 100%),
        linear-gradient(0deg, rgba(8, 7, 6, 0.96) 0%, rgba(8, 7, 6, 0.25) 55%, rgba(8, 7, 6, 0.55) 100%);
}

@keyframes heroLiquidFlow {
    0% { transform: translate3d(-100%, 0, 0); }
    100% { transform: translate3d(0%, 0, 0); }
}

.hero-progress-track {
    position: relative;
    display: block;
    width: 2rem;
    height: 0.375rem;
    padding: 0;
    border: none;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.28);
    overflow: hidden;
    clip-path: inset(0 round 9999px);
    transform: translateZ(0);
    cursor: pointer;
}

.hero-progress-fill {
    display: block;
    width: calc(100% + 6px);
    height: 100%;
    background-image: linear-gradient(
        90deg,
        #d4af37 0%,
        #d4af37 calc(100% - 5px),
        rgba(212, 175, 55, 0) 100%
    );
    will-change: transform;
    backface-visibility: hidden;
    animation: heroLiquidFlow 8s linear forwards;
}

/* Yüzeyler, Kartlar ve Devlet Sanat Vitrini */
.royal-surface,
.museum-panel {
    background-color: var(--bg-surface);
    border: 1px solid var(--line-subtle);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
}

.elevated-card,
.museum-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--line-subtle);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.elevated-card:hover,
.museum-card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-3px);
}

.museum-hairline-matrix { display: grid; gap: 1.15rem; }
.museum-hairline-cell {
    background-color: var(--bg-surface);
    border: 1px solid var(--line-subtle);
    border-radius: 8px;
    padding: 1.35rem;
    box-shadow: var(--card-shadow);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.museum-hairline-cell:hover {
    border-color: var(--line-strong);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-3px);
}

.state-artwork-frame {
    position: relative;
    min-height: 280px;
    background: #0d0b09;
    overflow: hidden;
}
.state-artwork-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.94;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.state-artwork-frame:hover img { transform: scale(1.04); opacity: 1; }

.state-emblem-medallion {
    width: 3.25rem;
    height: 3.25rem;
    padding: 0.35rem;
    border-radius: 6px;
    background: rgba(245, 241, 232, 0.92);
    border: 1px solid var(--line-strong);
    object-fit: contain;
    flex-shrink: 0;
}

/* 6 Görsel Medeniyet Kanadı Kartı */
.basin-visual-card {
    position: relative;
    height: 9.75rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--line-subtle);
    background: #0d0b09;
    cursor: pointer;
    box-shadow: var(--card-shadow);
    transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.basin-visual-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.44;
    filter: sepia(0.18) contrast(1.1);
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}
.basin-visual-card:hover img,
.basin-visual-card.active img { transform: scale(1.08); opacity: 0.68; }
.basin-visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 8, 7, 0.35) 0%, rgba(9, 8, 7, 0.62) 45%, rgba(9, 8, 7, 0.95) 100%);
}
.basin-visual-card:hover,
.basin-visual-card.active {
    border-color: var(--accent-brass);
    box-shadow: 0 20px 42px -12px rgba(0, 0, 0, 0.9), 0 0 22px -4px rgba(212, 175, 55, 0.32);
    transform: translateY(-3px);
}
.basin-visual-card.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, #f2d57e, #d4af37, #9a7029);
}

/* Devlet Vitrin Kartı */
.state-showcase-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--bg-surface);
    border: 1px solid var(--line-subtle);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.state-showcase-card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-4px);
}
.state-card-banner {
    position: relative;
    height: 7.5rem;
    background: #12100d;
    overflow: hidden;
    border-bottom: 1px solid var(--line-subtle);
}
.state-card-banner img.banner-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}
.state-showcase-card:hover .state-card-banner img.banner-bg { transform: scale(1.07); opacity: 0.75; }
.state-card-banner-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9,8,7,0.2) 0%, rgba(9,8,7,0.88) 100%);
}

/* Tipografi & Altın Vurgu */
.royal-gold-text {
    background: linear-gradient(135deg, #fff8dc 0%, #f2d57e 45%, #c59b27 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
html:not(.dark) .royal-gold-text {
    background: linear-gradient(135deg, #171512 0%, #6e4f1a 65%, #9a7029 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.museum-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.19em;
    text-transform: uppercase;
    color: var(--accent-brass);
}

.museum-muted { color: var(--ink-muted); }
.museum-secondary { color: var(--ink-secondary); }

/* Butonlar */
.museum-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.68rem 1.3rem;
    border-radius: 5px;
    background-color: var(--btn-bg);
    color: var(--btn-fg);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: 1px solid var(--btn-bg);
    transition: all 0.22s ease;
}
.museum-btn-primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.35);
}

.museum-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.1rem;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--ink-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    border: 1px solid var(--line-subtle);
    transition: all 0.22s ease;
}
.museum-btn-ghost:hover,
.museum-btn-ghost.active {
    border-color: var(--accent-brass);
    color: var(--accent-brass);
    background-color: rgba(212, 175, 55, 0.08);
}

/* Paspartu Portre ve Eser Kartı */
.museum-object-card {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-surface);
    border: 1px solid var(--line-subtle);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.museum-object-card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-5px);
}
.museum-passepartout {
    position: relative;
    aspect-ratio: 3 / 4;
    background: radial-gradient(circle at 50% 35%, var(--bg-subtle), var(--bg-mat));
    padding: 10px;
    overflow: hidden;
    border-bottom: 1px solid var(--line-subtle);
}
.museum-passepartout img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 14%;
    border-radius: 4px;
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.museum-object-card:hover .museum-passepartout img { transform: scale(1.05); }
.museum-placard { padding: 0.95rem 1.05rem 1.1rem; display: flex; flex-direction: column; gap: 0.25rem; }

/* Kademeli Metin Açılımı */
.teaser-container { position: relative; }
.teaser-collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.teaser-expanded { display: block; overflow: visible; }
.expand-teaser-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 0.55rem;
    padding: 3px 10px;
    border-radius: 4px;
    background: rgba(212, 175, 55, 0.09);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--accent-brass);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}
.expand-teaser-btn:hover { background: var(--accent-brass); color: #090807; }

/* Yapışkan Sergi Sekme Barı */
.workspace-tab-rail {
    position: sticky;
    top: 4.25rem;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    padding: 0 1.35rem;
    border-radius: 8px;
    background: var(--bg-masthead);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--line-subtle);
    box-shadow: var(--card-shadow);
}
.workspace-tab-rail::-webkit-scrollbar { display: none; width: 0; height: 0; }

.workspace-tab-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.95rem 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--ink-muted);
    white-space: nowrap;
    transition: color 0.2s ease;
}
.workspace-tab-btn:hover { color: var(--ink-primary); }
.workspace-tab-btn.active { color: var(--accent-brass); }
.workspace-tab-btn.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background-color: var(--accent-brass);
}
.workspace-tab-btn .tab-count { font-size: 10px; opacity: 0.8; }

/* ==========================================================================
   ORTALANMIŞ EDİTORYAL MİZANPAJ & ODAKLI OKUMA MODU
   ========================================================================== */

.editorial-article-shell {
    max-width: 80ch;
    margin-inline: auto;
    width: 100%;
}

.editorial-prose {
    font-family: var(--reading-font);
    font-size: var(--reading-size);
    line-height: var(--reading-lh);
    letter-spacing: 0.005em;
    color: var(--ink-secondary);
    max-width: 74ch;
    width: 100%;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.editorial-article-shell .editorial-prose { margin-inline: auto; }

@media (max-width: 640px) {
    .editorial-prose { text-align: left; }
}

.editorial-prose p { margin-bottom: 1.35rem; }

.editorial-prose h2,
.editorial-prose h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.65rem;
    font-weight: 600;
    color: var(--ink-primary);
    margin: 1.85rem 0 0.7rem;
    text-align: left;
}

.teaser-expanded.editorial-prose > p:first-of-type::first-letter,
.reader-book-body > p:first-of-type::first-letter {
    float: left;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 3.35rem;
    line-height: 0.84;
    padding: 4px 12px 0 0;
    color: var(--accent-brass);
    font-weight: 600;
}

.chapter-accordion-item { border-top: 1px solid var(--line-subtle); }
.chapter-accordion-item:last-child { border-bottom: 1px solid var(--line-subtle); }
.chapter-accordion-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.05rem 0.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    user-select: none;
}
.chapter-accordion-item summary::-webkit-details-marker { display: none; }

/* Odaklı Okuma Modu Kâğıt Temaları */
.reader-modal-panel.theme-dark { background-color: #100f0d; color: #ede8df; }
.reader-modal-panel.theme-dark .editorial-prose { color: #d8d1c5; }
.reader-modal-panel.theme-dark .editorial-prose h2,
.reader-modal-panel.theme-dark .editorial-prose h3 { color: #f5f1e8; }
.reader-modal-panel.theme-dark .reader-toolbar { background: #161412; border-color: rgba(255,255,255,0.09); }

.reader-modal-panel.theme-sepia { background-color: #f4ecd8; color: #2b2218; }
.reader-modal-panel.theme-sepia .editorial-prose { color: #382d20; }
.reader-modal-panel.theme-sepia .editorial-prose h2,
.reader-modal-panel.theme-sepia .editorial-prose h3 { color: #1f170e; }
.reader-modal-panel.theme-sepia .museum-eyebrow { color: #8c5818; }
.reader-modal-panel.theme-sepia .figure-inline-link { color: #1f170e; border-bottom-color: #8c5818; }
.reader-modal-panel.theme-sepia .reader-toolbar { background: #ebe0c5; border-color: rgba(43,34,24,0.14); }
.reader-modal-panel.theme-sepia .museum-btn-ghost { color: #2b2218; border-color: rgba(43,34,24,0.25); }

.reader-modal-panel.theme-ivory { background-color: #faf9f5; color: #181816; }
.reader-modal-panel.theme-ivory .editorial-prose { color: #2e2d2a; }
.reader-modal-panel.theme-ivory .editorial-prose h2,
.reader-modal-panel.theme-ivory .editorial-prose h3 { color: #111110; }
.reader-modal-panel.theme-ivory .museum-eyebrow { color: #8a6421; }
.reader-modal-panel.theme-ivory .figure-inline-link { color: #111110; border-bottom-color: #8a6421; }
.reader-modal-panel.theme-ivory .reader-toolbar { background: #f0ede6; border-color: rgba(24,24,22,0.12); }
.reader-modal-panel.theme-ivory .museum-btn-ghost { color: #181816; border-color: rgba(24,24,22,0.22); }

.reader-pref-btn.active {
    background-color: #d4af37;
    color: #090807;
    font-weight: 700;
}

.reader-modal-panel.zen-fullscreen {
    max-width: 100vw !important;
    border-left: none !important;
}

/* ==========================================================================
   60/120 FPS SUB-PIXEL AKICI SARI FİLTRE OKUMA REHBERİ (READING PACER)
   ========================================================================== */

.pacer-host { position: relative; cursor: text; }

.pacer-line-track,
.pacer-prev-fade {
    position: absolute;
    pointer-events: none;
    border-radius: 4px;
    overflow: hidden;
    z-index: 4;
    transform: translateZ(0);
}

.pacer-line-track { background-color: rgba(226, 186, 68, 0.045); }

.pacer-line-fill {
    width: calc(100% + 22px);
    height: 100%;
    will-change: transform;
    backface-visibility: hidden;
    transform: translate3d(-100%, 0, 0);
    background-image: linear-gradient(
        90deg,
        rgba(232, 192, 72, 0.13) 0%,
        rgba(232, 192, 72, 0.25) calc(100% - 22px),
        rgba(232, 192, 72, 0) 100%
    );
    border-bottom: 1.5px solid rgba(232, 192, 72, 0.38);
}

html:not(.dark) .pacer-line-track,
.reader-modal-panel.theme-sepia .pacer-line-track,
.reader-modal-panel.theme-ivory .pacer-line-track {
    mix-blend-mode: multiply;
    background-color: rgba(238, 194, 56, 0.08);
}

html:not(.dark) .pacer-line-fill,
.reader-modal-panel.theme-sepia .pacer-line-fill,
.reader-modal-panel.theme-ivory .pacer-line-fill {
    background-image: linear-gradient(
        90deg,
        rgba(245, 206, 74, 0.24) 0%,
        rgba(245, 206, 74, 0.44) calc(100% - 22px),
        rgba(245, 206, 74, 0) 100%
    );
    border-bottom: 1.5px solid rgba(180, 128, 18, 0.35);
}

.pacer-prev-fade {
    opacity: 0;
    background-color: rgba(232, 192, 72, 0.16);
    transition: opacity 0.22s ease-out;
}

.floating-pacer-bar {
    position: fixed;
    bottom: 1.4rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 45;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.65rem;
    border-radius: 999px;
    background: rgba(14, 12, 10, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: #f5f1e8;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.75);
}

/* Muharebe Karşılaştırma Izgarası */
.battle-vs-grid {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 2rem;
    align-items: stretch;
}
@media (max-width: 768px) {
    .battle-vs-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}
.battle-divider-line { background-color: var(--line-subtle); }

/* Parşömen Modu */
.parchment-scroll {
    background-color: #f4efe4;
    color: #1c1915;
    border: 1px solid #c8bda8;
    border-radius: 6px;
}
.parchment-inner-border { border: 1px solid rgba(28, 25, 21, 0.18); }
.parchment-body p {
    font-family: var(--reading-font);
    font-size: var(--reading-size);
    line-height: 1.88;
    color: #24201a;
    margin-bottom: 1.25rem;
    text-align: justify;
}
.parchment-body p:first-of-type::first-letter {
    float: left;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 3.4rem;
    line-height: 0.82;
    padding: 4px 10px 0 0;
    color: #8c2323;
}

.tugra-gold-filter { filter: invert(1) sepia(0.6) saturate(2.2) hue-rotate(8deg) brightness(1.02); }
html:not(.dark) .tugra-gold-filter { filter: contrast(1.2) brightness(0.2); }

/* Atıf & X-Ray Lügat */
.citation-ref {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    color: var(--accent-brass);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72em;
    padding: 0 4px;
    margin: 0 1px;
    border-bottom: 1px solid var(--accent-brass);
}
.citation-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 135%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    z-index: 95;
    background: var(--bg-surface);
    color: var(--ink-primary);
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    padding: 1rem;
    transition: opacity 0.18s ease;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.65);
}
.citation-ref:hover .citation-tooltip { visibility: visible; opacity: 1; }

.lexicon-inline-term {
    border-bottom: 1px dashed var(--accent-brass);
    color: inherit;
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.lexicon-inline-term:hover { background-color: rgba(212, 175, 55, 0.16); }
.lexicon-inline-q, .lexicon-help-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 13px;
    height: 13px;
    margin-left: 2px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    color: var(--accent-brass);
    font-family: 'JetBrains Mono', monospace;
    font-size: 8.5px;
    vertical-align: super;
    cursor: pointer;
}
.figure-inline-link {
    border-bottom: 1px solid var(--line-strong);
    color: var(--ink-primary);
    font-weight: 500;
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease;
}
.figure-inline-link:hover { color: var(--accent-brass); border-bottom-color: var(--accent-brass); background-color: rgba(212, 175, 55, 0.12); }
.figure-inline-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 13px;
    height: 13px;
    margin-left: 2px;
    border-radius: 3px;
    border: 1px solid var(--line-strong);
    background-color: rgba(212, 175, 55, 0.12);
    color: var(--accent-brass);
    font-family: 'JetBrains Mono', monospace;
    font-size: 8.5px;
    line-height: 1;
    vertical-align: super;
    cursor: pointer;
}

.horizontal-carousel { scroll-behavior: smooth; scroll-snap-type: x mandatory; }
.carousel-item { scroll-snap-align: start; }

input[type=range].royal-slider {
    -webkit-appearance: none;
    appearance: none;
    background: var(--line-subtle);
    height: 3px;
    border-radius: 99px;
}
input[type=range].royal-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-brass);
    border: 2px solid var(--bg-canvas);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
    cursor: pointer;
}

/* Harita Görünümü */
.leaflet-container { background: #0c0b09 !important; font-family: 'Plus Jakarta Sans', sans-serif; }
.leaflet-tile-pane { filter: sepia(0.18) contrast(1.12) brightness(0.74); }
.map-province-label { background: transparent !important; border: none !important; box-shadow: none !important; pointer-events: none; }
.map-province-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    transform: translate(-50%, -50%);
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(12, 11, 9, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.45);
    white-space: nowrap;
}
.map-province-badge .prov-title { font-family: 'Cormorant Garamond', serif; font-size: 11px; font-weight: 600; color: #f5f1e8; }
.map-province-badge .prov-year { font-family: 'JetBrains Mono', monospace; font-size: 8px; color: #d4af37; }
.leaflet-popup-content-wrapper, .territory-tooltip {
    background: #12100e !important;
    color: #f5f1e8 !important;
    border: 1px solid rgba(212, 175, 55, 0.45) !important;
    border-radius: 6px !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75) !important;
}
.leaflet-popup-tip { background: #12100e !important; }

/* ==========================================================================
   VAKANÜVİS FİZİKSEL CİLT, SABİT SAYFA KASASI & SIFIR KAYMALI KIVIRMA
   ========================================================================== */

#drawerScrollArea.book-mode-locked {
    overflow-y: hidden !important;
    padding-top: 0.9rem !important;
    padding-bottom: 0.9rem !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.book-stage-wrapper {
    width: 100%;
    max-width: 1220px;
    margin-inline: auto;
    --book-leaf-h: clamp(460px, calc(100vh - 258px), 680px);
}

.reader-modal-panel.zen-fullscreen .book-stage-wrapper {
    --book-leaf-h: clamp(470px, calc(100vh - 248px), 705px);
}

@media (max-width: 1023px) {
    .book-stage-wrapper,
    .reader-modal-panel.zen-fullscreen .book-stage-wrapper {
        --book-leaf-h: clamp(430px, calc(100vh - 242px), 620px);
    }
}

.book-hardcover-case {
    position: relative;
    padding: 9px 18px 12px;
    border-radius: 12px;
    background: linear-gradient(145deg, #382516 0%, #24160c 52%, #311f12 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 235, 190, 0.16),
        inset 0 0 0 2px rgba(212, 175, 55, 0.24),
        0 26px 56px -14px rgba(18, 11, 5, 0.62),
        0 8px 20px -6px rgba(0, 0, 0, 0.42);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.book-hardcover-case.is-spread { padding: 9px 24px 12px; }

.book-hardcover-case.is-spread::before,
.book-hardcover-case.is-spread::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 34px;
    height: 6px;
    transform: translateX(-50%);
    border-radius: 3px;
    background: repeating-linear-gradient(
        90deg,
        #9a7029 0px,
        #9a7029 3px,
        #6b1d1d 3px,
        #6b1d1d 6px
    );
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    z-index: 4;
}
.book-hardcover-case.is-spread::before { top: 4px; }
.book-hardcover-case.is-spread::after  { bottom: 5px; }

.reader-modal-panel.theme-dark .book-hardcover-case {
    background: linear-gradient(145deg, #1b1713 0%, #0d0b09 52%, #17130f 100%);
    box-shadow:
        inset 0 1px 0 rgba(242, 213, 126, 0.14),
        inset 0 0 0 1.5px rgba(212, 175, 55, 0.32),
        0 32px 68px -12px rgba(0, 0, 0, 0.95);
}

.reader-modal-panel.theme-ivory .book-hardcover-case {
    background: linear-gradient(145deg, #3c3a35 0%, #272521 52%, #34322d 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 0 0 1.5px rgba(212, 175, 55, 0.28),
        0 26px 52px -14px rgba(18, 18, 16, 0.45);
}

.book-open-shell {
    position: relative;
    --left-stack: 2px;
    --right-stack: 10px;
    margin: 0 !important;
    border-radius: 5px;
    border: 1px solid rgba(145, 112, 52, 0.34);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.32);
}

.book-open-shell.is-dragging,
.book-open-shell.is-dragging * {
    user-select: none !important;
    -webkit-user-select: none !important;
    cursor: grabbing !important;
}

.book-stack-edge {
    position: absolute;
    top: 2px;
    bottom: 2px;
    pointer-events: none;
    z-index: 3;
    transition: width 0.2s ease-out;
}

.book-stack-edge-left {
    right: 100%;
    width: var(--left-stack);
    border-radius: 3px 0 0 3px;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.18) 0%, transparent 6%, transparent 94%, rgba(0,0,0,0.22) 100%),
        repeating-linear-gradient(90deg, #efe5ce 0px, #efe5ce 1.5px, #cbbba0 1.5px, #cbbba0 2.5px);
    box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.35);
}

.book-stack-edge-right {
    left: 100%;
    width: var(--right-stack);
    border-radius: 0 3px 3px 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.18) 0%, transparent 6%, transparent 94%, rgba(0,0,0,0.22) 100%),
        repeating-linear-gradient(90deg, #cbbba0 0px, #cbbba0 1px, #efe5ce 1px, #efe5ce 2.5px);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.35);
}

.reader-modal-panel.theme-sepia .book-open-shell,
.reader-modal-panel.theme-sepia .book-paper-surface {
    background-color: #f6efdc;
    color: #2b2218;
}

.reader-modal-panel.theme-ivory .book-open-shell,
.reader-modal-panel.theme-ivory .book-paper-surface {
    background-color: #fcfbf7;
    color: #181816;
}
.reader-modal-panel.theme-ivory .book-stack-edge-left,
.reader-modal-panel.theme-ivory .book-stack-edge-right {
    background:
        linear-gradient(180deg, rgba(0,0,0,0.14) 0%, transparent 6%, transparent 94%, rgba(0,0,0,0.18) 100%),
        repeating-linear-gradient(90deg, #f4f2ec 0px, #f4f2ec 1.5px, #d2cec3 1.5px, #d2cec3 2.5px);
}

.reader-modal-panel.theme-dark .book-open-shell,
.reader-modal-panel.theme-dark .book-paper-surface {
    background-color: #171411;
    color: #ede8df;
    border-color: rgba(212, 175, 55, 0.26);
}
.reader-modal-panel.theme-dark .book-stack-edge-left,
.reader-modal-panel.theme-dark .book-stack-edge-right {
    background:
        linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 8%, transparent 92%, rgba(0,0,0,0.55) 100%),
        repeating-linear-gradient(90deg, #2b251e 0px, #2b251e 1.5px, #14110e 1.5px, #14110e 2.5px);
}

.book-spread-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    height: var(--book-leaf-h);
    min-height: var(--book-leaf-h);
    max-height: var(--book-leaf-h);
    border-radius: 5px;
    overflow: hidden;
}

.book-spread-grid.is-two-page {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.book-spread-grid.is-two-page::before,
.book-peel-spine-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 76px;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 7;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(32, 22, 10, 0.035) 22%,
        rgba(32, 22, 10, 0.13) 43%,
        rgba(20, 12, 4, 0.28) 50%,
        rgba(32, 22, 10, 0.13) 57%,
        rgba(32, 22, 10, 0.035) 78%,
        rgba(0, 0, 0, 0) 100%
    );
}

.book-spread-grid.is-two-page::after,
.book-peel-spine-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 8;
    background: rgba(45, 30, 12, 0.26);
}

.reader-modal-panel.theme-dark .book-spread-grid.is-two-page::before,
.reader-modal-panel.theme-dark .book-peel-spine-overlay::before {
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.26) 24%,
        rgba(0, 0, 0, 0.58) 44%,
        rgba(0, 0, 0, 0.88) 50%,
        rgba(0, 0, 0, 0.58) 56%,
        rgba(0, 0, 0, 0.26) 76%,
        rgba(0, 0, 0, 0) 100%
    );
}
.reader-modal-panel.theme-dark .book-spread-grid.is-two-page::after,
.reader-modal-panel.theme-dark .book-peel-spine-overlay::after {
    background: rgba(212, 175, 55, 0.18);
}

.book-peel-spine-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 8;
}

.book-leaf {
    position: relative;
    width: 100%;
    height: var(--book-leaf-h);
    min-height: var(--book-leaf-h);
    max-height: var(--book-leaf-h);
    padding: 1.5rem 2rem 1.3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    overflow: hidden;
}

.book-leaf-main {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .book-open-shell.is-two-page-shell .book-leaf-left {
        padding: 1.75rem 2.75rem 1.45rem 2.35rem;
        border-radius: 5px 0 0 5px;
        background-image:
            radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.12), transparent 70%),
            linear-gradient(90deg, rgba(0, 0, 0, 0.04) 0%, rgba(255, 255, 255, 0.11) 14%, rgba(255, 255, 255, 0) 74%, rgba(0, 0, 0, 0.075) 100%);
    }
    .book-open-shell.is-two-page-shell .book-leaf-right {
        padding: 1.75rem 2.35rem 1.45rem 2.75rem;
        border-radius: 0 5px 5px 0;
        background-image:
            radial-gradient(ellipse at 70% 50%, rgba(255,255,255,0.12), transparent 70%),
            linear-gradient(270deg, rgba(0, 0, 0, 0.04) 0%, rgba(255, 255, 255, 0.11) 14%, rgba(255, 255, 255, 0) 74%, rgba(0, 0, 0, 0.075) 100%);
    }
    .reader-modal-panel.theme-dark .book-open-shell.is-two-page-shell .book-leaf-left {
        background-image: linear-gradient(90deg, rgba(0,0,0,0.28) 0%, rgba(255,255,255,0.02) 18%, transparent 76%, rgba(0,0,0,0.38) 100%);
    }
    .reader-modal-panel.theme-dark .book-open-shell.is-two-page-shell .book-leaf-right {
        background-image: linear-gradient(270deg, rgba(0,0,0,0.28) 0%, rgba(255,255,255,0.02) 18%, transparent 76%, rgba(0,0,0,0.38) 100%);
    }
}

.book-running-head {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.58;
    padding-bottom: 0.55rem;
    margin-bottom: 0.85rem;
    border-bottom: 1px solid rgba(150, 130, 95, 0.22);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-shrink: 0;
}

.book-leaf-body.editorial-prose {
    max-width: none;
    margin: 0;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.book-leaf-body.editorial-prose::after {
    content: '';
    display: table;
    clear: both;
}

.book-leaf-body.editorial-prose p { margin-bottom: 0.95rem; }

.book-leaf-body.editorial-prose h2,
.book-leaf-body.editorial-prose h3 {
    font-size: 1.38rem;
    margin: 1rem 0 0.5rem;
}

.book-leaf-footer {
    padding-top: 0.65rem;
    margin-top: 0.7rem;
    border-top: 1px solid rgba(150, 130, 95, 0.18);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.98rem;
    font-weight: 600;
    opacity: 0.84;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    position: relative;
    z-index: 11;
    user-select: none;
    -webkit-user-select: none;
}

.book-grab-zone-left,
.book-grab-zone-right {
    position: absolute;
    top: 0;
    bottom: 44px;
    width: 28%;
    z-index: 10;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}
.book-grab-zone-left:active,
.book-grab-zone-right:active { cursor: grabbing; }
.book-grab-zone-left  { left: 0; }
.book-grab-zone-right { right: 0; }

.book-corner-curl-right,
.book-corner-curl-left,
.book-corner-top-right,
.book-corner-top-left {
    position: absolute;
    width: 54px;
    height: 54px;
    pointer-events: auto;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    z-index: 16;
}

.book-corner-top-right { top: 0; right: 0; }
.book-corner-top-left  { top: 0; left: 0; }

.book-corner-curl-right,
.book-corner-curl-left {
    bottom: 0;
    width: 46px;
    height: 46px;
    opacity: 0.76;
    transition: width 0.2s cubic-bezier(0.22, 1, 0.36, 1), height 0.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.18s ease;
}
.book-corner-curl-right:active,
.book-corner-curl-left:active,
.book-corner-top-right:active,
.book-corner-top-left:active { cursor: grabbing; }

.book-corner-curl-right {
    right: 0;
    border-radius: 10px 0 5px 0;
    background: linear-gradient(315deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.06) 44%, rgba(255, 255, 255, 0.62) 50%, rgba(180, 145, 75, 0.20) 54%, transparent 58%);
}

.book-corner-curl-left {
    left: 0;
    border-radius: 0 10px 0 5px;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.06) 44%, rgba(255, 255, 255, 0.62) 50%, rgba(180, 145, 75, 0.20) 54%, transparent 58%);
}

.book-corner-curl-right:hover,
.book-corner-curl-left:hover {
    width: 60px;
    height: 60px;
    opacity: 1;
}

.book-peel-viewport {
    position: absolute;
    top: -90px;
    bottom: -90px;
    left: -56px;
    right: -56px;
    pointer-events: none;
    overflow: hidden;
    z-index: 30;
}

.book-peel-coord {
    position: absolute;
    top: 90px;
    left: 56px;
}

.book-peel-under-page {
    position: absolute;
    top: 0;
    z-index: 2;
    overflow: hidden;
}

.book-peel-top-masked {
    position: absolute;
    top: 0;
    z-index: 4;
    overflow: hidden;
    will-change: clip-path;
}

.book-peel-drop-shadow {
    position: absolute;
    top: 0;
    left: 0;
    width: 96px;
    height: 2200px;
    margin-top: -1100px;
    transform-origin: 0 50%;
    pointer-events: none;
    z-index: 6;
    opacity: 0;
    will-change: transform, opacity;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.44) 0%, rgba(0, 0, 0, 0.20) 36%, rgba(0, 0, 0, 0.05) 72%, rgba(0, 0, 0, 0) 100%);
}

.book-peel-flap-clip {
    position: absolute;
    inset: -90px -56px;
    z-index: 12;
    pointer-events: none;
    will-change: clip-path;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.32));
}

.book-peel-flap-inner-origin {
    position: absolute;
    top: 90px;
    left: 56px;
}

.book-peel-back-sheet {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-sizing: border-box;
    transform-origin: 0 0;
    will-change: transform;
    overflow: hidden;
}

.book-peel-curl-cylinder {
    position: absolute;
    top: 0;
    left: 0;
    width: 112px;
    height: 2200px;
    margin-top: -1100px;
    transform-origin: 0 50%;
    pointer-events: none;
    z-index: 15;
    opacity: 0;
    will-change: transform, opacity;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.28) 0%, rgba(255, 255, 255, 0.48) 15%, rgba(255, 255, 255, 0.15) 38%, rgba(0, 0, 0, 0.08) 76%, rgba(0, 0, 0, 0) 100%);
}

.reader-modal-panel.theme-dark .book-peel-curl-cylinder {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.68) 0%, rgba(242, 213, 126, 0.15) 17%, rgba(255, 255, 255, 0.05) 38%, rgba(0, 0, 0, 0.35) 78%, rgba(0, 0, 0, 0) 100%);
}

.book-multipage-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    padding-top: 0.85rem;
}

.book-page-pill {
    min-width: 2.15rem;
    height: 1.9rem;
    padding: 0 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(150, 130, 95, 0.28);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
    cursor: pointer;
}
.book-page-pill:hover:not(:disabled) {
    border-color: #d4af37;
    color: #d4af37;
}
.book-page-pill.active {
    background-color: #d4af37;
    border-color: #d4af37;
    color: #090807;
    font-weight: 700;
}
.book-page-pill:disabled {
    opacity: 0.32;
    cursor: not-allowed;
}

#homeStatesMatrixGrid,
#articlesGrid,
#notablesGridContainer,
.museum-hairline-matrix {
    align-items: start;
}

.state-showcase-card .p-5 { min-height: 7.75rem; }

.state-showcase-card .teaser-expanded,
.museum-hairline-cell .teaser-expanded,
.museum-object-card .teaser-expanded {
    max-height: 12.5rem;
    overflow-y: auto;
    padding-right: 0.35rem;
}
/* ==========================================================================
   YENİLENMİŞ OKUMA ÇUBUĞU VE YÜKSEK KONTRASTLI AYAR MENÜLERİ
   ========================================================================== */

.reader-segmented-group {
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    border: 1px solid rgba(138, 108, 45, 0.42);
    background: rgba(0, 0, 0, 0.06);
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
}

.reader-modal-panel.theme-dark .reader-segmented-group {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(212, 175, 55, 0.38);
}

.reader-seg-btn {
    padding: 0.42rem 0.68rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.16s ease;
    opacity: 0.82;
}

.reader-seg-btn:hover {
    opacity: 1;
    background: rgba(212, 175, 55, 0.16);
}

.reader-seg-btn.active {
    opacity: 1;
    background: #d4af37 !important;
    color: #090807 !important;
    font-weight: 700;
}

.reader-ctrl-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 0.72rem;
    border-radius: 6px;
    border: 1px solid rgba(138, 108, 45, 0.42);
    background: rgba(0, 0, 0, 0.05);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.16s ease;
}

.reader-modal-panel.theme-dark .reader-ctrl-pill {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(212, 175, 55, 0.45);
    color: #f5f1e8;
}

.reader-modal-panel.theme-dark .reader-seg-btn:not(.active),
.reader-modal-panel.theme-dark #readerDrawerTopTitle,
.reader-modal-panel.theme-dark #bookModeStatusText {
    color: #f5f1e8 !important;
}

.reader-modal-panel .reader-ctrl-pill:hover,
.reader-modal-panel .reader-ctrl-pill.active,
.reader-modal-panel.theme-dark .reader-ctrl-pill:hover,
.reader-modal-panel.theme-dark .reader-ctrl-pill.active {
    border-color: #f2d57e !important;
    background: #d4af37 !important;
    color: #090807 !important;
    font-weight: 700;
}

.reader-modal-panel .reader-close-pill:hover,
.reader-modal-panel.theme-dark .reader-close-pill:hover {
    border-color: #b83232 !important;
    background: #b83232 !important;
    color: #ffffff !important;
}

/* Lightbox ve Eser Detay Galerisi Geçiş Kontrolleri */
.lightbox-nav-btn,
.work-hero-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    background: rgba(12, 10, 8, 0.78);
    color: #f5f1e8;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.16s ease;
    user-select: none;
}

.lightbox-nav-btn:hover,
.work-hero-nav-btn:hover {
    background: #d4af37;
    border-color: #f2d57e;
    color: #090807;
    transform: scale(1.06);
}

.lightbox-thumb {
    width: 3.75rem;
    height: 2.75rem;
    border-radius: 0.25rem;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.16);
    opacity: 0.58;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.lightbox-thumb:hover {
    opacity: 0.9;
    border-color: rgba(212, 175, 55, 0.65);
}

.lightbox-thumb.active {
    opacity: 1;
    border-color: #d4af37;
    box-shadow: 0 0 0 1px rgba(242, 213, 126, 0.6);
}

.reader-appearance-popover {
    width: 296px !important;
    padding: 1rem !important;
}

.reader-choice-btn {
    border: 1px solid rgba(245, 241, 232, 0.2);
    background: #24201b;
    color: #e6dfd3;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.reader-choice-btn:hover {
    border-color: #d4af37;
    color: #ffffff;
}

.reader-choice-btn.active {
    background: #d4af37 !important;
    border-color: #f2d57e !important;
    color: #090807 !important;
    font-weight: 700;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.28);
}
/* ==========================================================================
   SEPYA VE FİLDİŞİ KÂĞIT TEMALARI İÇİN YÜKSEK KONTRASTLI MÜREKKEP DÜZELTMESİ
   ========================================================================== */

/* 1. Sepya Kâğıt: Koyu Kahve-Siyah Matbaa Mürekkebi */
.reader-modal-panel.theme-sepia {
    --bg-canvas: #ede1c7;
    --bg-surface: #f6efdc;
    --bg-subtle: #e6d8bc;
    --ink-primary: #18120b;
    --ink-secondary: #241b11;
    --ink-muted: #574632;
    --line-subtle: rgba(40, 28, 12, 0.18);
    --line-strong: rgba(122, 82, 17, 0.55);
    --accent-brass: #7a5010;
    background-color: #efe4cd !important;
    color: #18120b !important;
}

/* 2. Fildişi Kâğıt: Keskin Kömür Siyahı Kitap Mürekkebi */
.reader-modal-panel.theme-ivory {
    --bg-canvas: #f2f0e8;
    --bg-surface: #fcfbf7;
    --bg-subtle: #eae7de;
    --ink-primary: #111110;
    --ink-secondary: #1d1c19;
    --ink-muted: #525048;
    --line-subtle: rgba(20, 20, 18, 0.16);
    --line-strong: rgba(118, 82, 18, 0.5);
    --accent-brass: #734d10;
    background-color: #f5f3ec !important;
    color: #111110 !important;
}

/* 3. Gece Kâğıdı: Ana site aydınlık modda olsa bile kendi açık mürekkebini korur */
.reader-modal-panel.theme-dark {
    --bg-canvas: #0d0c0a;
    --bg-surface: #171411;
    --bg-subtle: #221e19;
    --ink-primary: #f5f1e8;
    --ink-secondary: #dcd5c7;
    --ink-muted: #9a9080;
    --line-subtle: rgba(245, 241, 232, 0.14);
    --line-strong: rgba(212, 175, 55, 0.52);
    --accent-brass: #d4af37;
    background-color: #100f0d !important;
    color: #ede8df !important;
}

/* 4. Veritabanı HTML'inden gelebilecek açık renk (text-gray-300 / text-white vb.) sınıfları ez */
.reader-modal-panel.theme-sepia #drawerContent .editorial-prose,
.reader-modal-panel.theme-sepia #drawerContent .editorial-prose :is(p, li, ul, ol, blockquote, span, div, em, i, td, th):not(.citation-ref):not(.citation-tooltip):not(.citation-tooltip *):not(.lexicon-inline-q) {
    color: #241b11 !important;
}

.reader-modal-panel.theme-ivory #drawerContent .editorial-prose,
.reader-modal-panel.theme-ivory #drawerContent .editorial-prose :is(p, li, ul, ol, blockquote, span, div, em, i, td, th):not(.citation-ref):not(.citation-tooltip):not(.citation-tooltip *):not(.lexicon-inline-q) {
    color: #1a1917 !important;
}

.reader-modal-panel.theme-sepia #drawerContent :is(h1, h2, h3, h4, strong, b) {
    color: #110c06 !important;
}

.reader-modal-panel.theme-ivory #drawerContent :is(h1, h2, h3, h4, strong, b) {
    color: #0a0a09 !important;
}

/* İlk harf (Drop-cap), satır içi şahsiyet ve lügat bağlantıları */
.reader-modal-panel.theme-sepia .reader-book-body > p:first-of-type::first-letter,
.reader-modal-panel.theme-ivory .reader-book-body > p:first-of-type::first-letter {
    color: #7a5010 !important;
}

.reader-modal-panel.theme-sepia .figure-inline-link,
.reader-modal-panel.theme-ivory .figure-inline-link {
    color: #120e09 !important;
    border-bottom-color: #7a5010 !important;
    font-weight: 600;
}
.reader-modal-panel.theme-sepia .figure-inline-badge,
.reader-modal-panel.theme-ivory .figure-inline-badge {
    color: #7a5010 !important;
    border-color: rgba(122, 80, 16, 0.45) !important;
    background-color: rgba(180, 130, 30, 0.15) !important;
}

.reader-modal-panel.theme-sepia .figure-inline-link:hover,
.reader-modal-panel.theme-ivory .figure-inline-link:hover {
    color: #7a5010 !important;
    background-color: rgba(180, 130, 30, 0.14);
}

/* 5. Kitap üst/alt bilgileri, sayfa numaraları ve üst kontrol çubuğu kontrastı */
.reader-modal-panel.theme-sepia .book-running-head,
.reader-modal-panel.theme-sepia .book-leaf-footer,
.reader-modal-panel.theme-ivory .book-running-head,
.reader-modal-panel.theme-ivory .book-leaf-footer {
    color: #3b2f20 !important;
    opacity: 0.9 !important;
    border-color: rgba(90, 68, 36, 0.25) !important;
}

.reader-modal-panel.theme-sepia #bookModeStatusText,
.reader-modal-panel.theme-ivory #bookModeStatusText,
.reader-modal-panel.theme-sepia .reader-toolbar #readerDrawerTopTitle,
.reader-modal-panel.theme-ivory .reader-toolbar #readerDrawerTopTitle {
    color: #1d160e !important;
    opacity: 0.95;
}

.reader-modal-panel.theme-sepia .reader-seg-btn:not(.active),
.reader-modal-panel.theme-ivory .reader-seg-btn:not(.active),
.reader-modal-panel.theme-sepia .reader-ctrl-pill:not(.active):not(:hover),
.reader-modal-panel.theme-ivory .reader-ctrl-pill:not(.active):not(:hover),
.reader-modal-panel.theme-sepia .book-page-pill:not(.active),
.reader-modal-panel.theme-ivory .book-page-pill:not(.active) {
    color: #1d160e !important;
    border-color: rgba(95, 72, 34, 0.38) !important;
}

/* Açılır koyu ayar menüsü kendi beyaz metnini korusun */
.reader-modal-panel .reader-appearance-popover {
    color: #f5f1e8 !important;
}

/* ==========================================================================
   V2 KÜRATÖRYEL PREMİUM DOKUNUŞLAR & ANİMASYONLAR
   ========================================================================== */
.museum-header {
    backdrop-filter: blur(16px) saturate(145%);
    -webkit-backdrop-filter: blur(16px) saturate(145%);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
}

.museum-object-card,
.museum-hairline-cell {
    transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.26s ease, box-shadow 0.26s ease, background-color 0.26s ease;
}

.museum-object-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(212, 175, 55, 0.28);
}

#statePageContainer:not(.hidden),
#figureDossierContainer:not(.hidden),
#battlePageContainer:not(.hidden),
#workPageContainer:not(.hidden),
#globalWorksViewContainer:not(.hidden) {
    animation: vkFadeSlideIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes vkFadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.editorial-prose h2,
.editorial-prose h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    color: var(--ink-primary);
    margin-top: 1.45em;
    margin-bottom: 0.55em;
    line-height: 1.25;
}

.editorial-prose h2 {
    font-size: 1.65rem;
    border-bottom: 1px solid var(--line-subtle);
    padding-bottom: 0.35rem;
}

.editorial-prose h3 {
    font-size: 1.35rem;
    color: var(--accent-brass);
}

/* ==========================================================================
   V10 ANA SAYFA & ARAYÜZ TASARIM YÜKSELTMESİ (PAKET A + PAKET B)
   ========================================================================== */

/* Inline Vektör İkonlar */
.vk-ico {
    display: inline-block;
    width: 0.96em;
    height: 0.96em;
    vertical-align: -0.15em;
    flex-shrink: 0;
}

/* Özel Tasarım Select Kutuları */
select.vk-select,
.vk-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    padding-right: 2.15rem !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 13px 13px;
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
}
html:not(.dark) .vk-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239a7029' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
select.vk-select:hover,
.vk-select:hover,
.vk-select:focus {
    border-color: var(--accent-brass);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.14);
}
select.vk-select::picker-icon {
    display: none !important;
}
.vk-select option,
.vk-select optgroup {
    background-color: var(--bg-surface);
    color: var(--ink-primary);
}

/* Hero Altı 4'lü Mimari Metrik Şeridi */
.hero-metrics-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1.25rem;
}
@media (min-width: 768px) {
    .hero-metrics-bar {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0;
    }
}
.hero-metric-cell {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.2rem 0;
    min-width: 0;
}
@media (min-width: 768px) {
    .hero-metric-cell {
        padding: 0.1rem 1rem;
        border-right: 1px solid var(--line-subtle);
    }
    .hero-metric-cell:first-child { padding-left: 0.15rem; }
    .hero-metric-cell:last-child { border-right: none; }
}
.hero-metric-num {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    line-height: 1.05;
    font-weight: 700;
    color: var(--accent-brass);
    white-space: nowrap;
}
.hero-metric-lbl {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-top: 0.22rem;
    white-space: nowrap;
}

/* Müze Bölüm Ayırıcılar */
.museum-salon-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.25rem 0;
    opacity: 0.9;
}
.museum-salon-divider::before,
.museum-salon-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.museum-salon-seal {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.24rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--line-subtle);
    background: var(--bg-surface);
    font-family: 'JetBrains Mono', monospace;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-brass);
    white-space: nowrap;
}

/* Etkileşimli 6.500 Yıllık Zaman Şeridi */
.timeline-ribbon-panel {
    position: relative;
    background:
        radial-gradient(ellipse 65% 85% at 50% 0%, rgba(212, 175, 55, 0.08), transparent 72%),
        var(--bg-surface);
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}
.timeline-ribbon-panel::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 5%, var(--accent-brass) 50%, transparent 95%);
    opacity: 0.65;
}
.timeline-stop-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.72rem;
    border-radius: 5px;
    border: 1px solid var(--line-subtle);
    background: var(--bg-subtle);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--ink-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.timeline-stop-chip:hover {
    border-color: var(--accent-brass);
    color: var(--accent-brass);
}
.timeline-stop-chip.active {
    background: var(--btn-bg);
    color: var(--btn-fg);
    border-color: var(--btn-bg);
    font-weight: 700;
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.28);
}

.timeline-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--line-subtle), var(--line-strong), var(--line-subtle));
    outline: none;
    cursor: pointer;
}
.timeline-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff5cc, #d4af37 65%, #9a7029);
    border: 2px solid var(--bg-surface);
    box-shadow: 0 0 0 1px var(--accent-brass), 0 4px 12px rgba(0, 0, 0, 0.45);
    cursor: grab;
    transition: transform 0.16s ease;
}
.timeline-range::-webkit-slider-thumb:hover {
    transform: scale(1.16);
}
.timeline-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #d4af37;
    border: 2px solid var(--bg-surface);
    box-shadow: 0 0 0 1px var(--accent-brass);
    cursor: grab;
}

.timeline-state-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.48rem 0.8rem;
    border-radius: 7px;
    background: var(--bg-subtle);
    border: 1px solid var(--line-subtle);
    text-align: left;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.timeline-state-pill:hover {
    border-color: var(--accent-brass);
    background: var(--bg-surface);
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}
.timeline-state-emblem {
    width: 1.9rem;
    height: 1.9rem;
    padding: 0.2rem;
    border-radius: 5px;
    background: rgba(251, 249, 245, 0.94);
    border: 1px solid var(--line-strong);
    object-fit: contain;
    flex-shrink: 0;
}

/* Salon I Hızlı Devlet Çipleri */
.spotlight-quick-chip {
    padding: 0.32rem 0.72rem;
    border-radius: 999px;
    border: 1px solid var(--line-subtle);
    background: var(--bg-surface);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--ink-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.spotlight-quick-chip:hover {
    border-color: var(--accent-brass);
    color: var(--accent-brass);
}
.spotlight-quick-chip.active {
    background: var(--btn-bg);
    color: var(--btn-fg);
    border-color: var(--btn-bg);
    font-weight: 700;
}

/* Salon III: Editöryel Dergi & Numaralı Kronik Dizini */
.chronicle-lead-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--bg-surface);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.chronicle-lead-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-3px);
}
.chronicle-lead-quote {
    border-left: 2px solid var(--accent-brass);
    padding-left: 0.9rem;
}
.chronicle-index-list {
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
    border: 1px solid var(--line-subtle);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}
.chronicle-index-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.05rem 1.25rem;
    border-bottom: 1px solid var(--line-subtle);
    cursor: pointer;
    transition: background-color 0.22s ease, transform 0.22s ease;
}
.chronicle-index-row:last-child { border-bottom: none; }
.chronicle-index-row:hover {
    background: rgba(212, 175, 55, 0.06);
}
.chronicle-index-row:hover .chronicle-index-title {
    color: var(--accent-brass);
}
.chronicle-index-num {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2rem;
    line-height: 0.92;
    font-weight: 600;
    color: var(--accent-brass);
    opacity: 0.55;
    min-width: 2.2rem;
    user-select: none;
    transition: opacity 0.22s ease;
}
.chronicle-index-row:hover .chronicle-index-num { opacity: 1; }

/* Bölüm 5: El Yazması Alıntı Kartı & Müze Bilgi Kartı */
.archival-quote-card {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 14%, rgba(212, 175, 55, 0.08), transparent 55%),
        var(--bg-surface);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}
.archival-quote-card::before {
    content: '';
    position: absolute;
    inset: 9px;
    border: 1px solid var(--line-subtle);
    border-radius: 4px;
    pointer-events: none;
}
.archival-quote-mark {
    position: absolute;
    top: -0.35rem;
    right: 1.15rem;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 7.5rem;
    line-height: 1;
    color: var(--accent-brass);
    opacity: 0.1;
    pointer-events: none;
    user-select: none;
}
.archival-quote-body {
    border-left: 2px solid var(--accent-brass);
    padding-left: 1rem;
}

.museum-quiz-card {
    background: var(--bg-surface);
    border: 1px solid var(--line-subtle);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}
.quiz-opt-btn {
    width: 100%;
    text-align: left;
    padding: 0.52rem 0.72rem;
    border-radius: 6px;
    border: 1px solid var(--line-subtle);
    background: var(--bg-subtle);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--ink-primary);
    transition: all 0.2s ease;
}
.quiz-opt-btn:hover:not(.cursor-default) {
    border-color: var(--accent-brass);
    background: rgba(212, 175, 55, 0.09);
}
.quiz-opt-key {
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 4px;
    border: 1px solid var(--line-strong);
    background: var(--bg-surface);
    color: var(--accent-brass);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.quiz-opt-btn:hover:not(.cursor-default) .quiz-opt-key {
    background: var(--accent-brass);
    color: #090807;
}

/* Salon IV: Kategorize Makale Kartları & Birleşik Filtre Çubuğu */
.archive-toolbar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
@media (min-width: 1024px) {
    .archive-toolbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
.archive-cat-rail {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.3rem;
    border-radius: 7px;
    background: var(--bg-subtle);
    border: 1px solid var(--line-subtle);
}
.archive-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.9rem;
    border-radius: 5px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-secondary);
    transition: all 0.2s ease;
    cursor: pointer;
}
.archive-cat-pill:hover {
    color: var(--accent-brass);
}
.archive-cat-pill.active {
    background: var(--btn-bg);
    color: var(--btn-fg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.article-cat-card {
    position: relative;
    overflow: hidden;
    border-top: 2px solid var(--line-subtle);
}
.article-cat-biyografi { border-top-color: var(--accent-brass); }
.article-cat-hikaye { border-top-color: var(--accent-sage); }
.article-cat-savas { border-top-color: var(--accent-crimson); }

.article-mini-thumb {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 6px;
    border: 1px solid var(--line-subtle);
    background: var(--bg-subtle);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--accent-brass);
}
.article-mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

/* Zenginleştirilmiş Müze Kolofonu Footer */
.museum-colophon {
    background: linear-gradient(180deg, transparent 0%, rgba(212, 175, 55, 0.03) 100%);
    border-top: 1px solid var(--line-strong);
}
.footer-wing-chip {
    padding: 0.28rem 0.65rem;
    border-radius: 4px;
    border: 1px solid var(--line-subtle);
    background: var(--bg-surface);
    font-family: 'JetBrains Mono', monospace;
    font-size: 9.5px;
    letter-spacing: 0.08em;
    color: var(--ink-secondary);
    transition: all 0.2s ease;
}
.footer-wing-chip:hover {
    border-color: var(--accent-brass);
    color: var(--accent-brass);
}

/* Hafif Scroll-Reveal */
@media (prefers-reduced-motion: no-preference) {
    .vk-reveal {
        opacity: 0;
        transform: translateY(14px);
        transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .vk-reveal.vk-in {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobil Yatay Kaydırma Şeritleri & Uyum İyileştirmeleri */
.vk-mobile-scroll-strip {
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}
.vk-mobile-scroll-strip::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

@media (max-width: 767px) {
    html, body {
        overflow-x: clip;
    }
    .workspace-tab-rail {
        padding: 0 0.85rem;
        gap: 1.15rem;
    }
    .floating-pacer-bar {
        max-width: calc(100vw - 16px);
        padding: 0.45rem 0.6rem;
        gap: 0.35rem;
        bottom: max(0.75rem, env(safe-area-inset-bottom));
    }
    .reader-appearance-popover {
        max-width: calc(100vw - 24px);
        right: 0;
    }
    .map-province-badge {
        font-size: 9px;
        padding: 2px 5px;
    }
}
