/* EMO Yayın Portalı — Bento Grid tasarımı */

:root {
    --bg: #eceff3;
    --tile: #ffffff;
    --tile-2: #f6f7f9;
    --ink: #0f1b2a;
    --text: #1b2430;
    --muted: #5b6878;
    --line: #dde2e8;

    --navy: #00476f;
    --navy-deep: #062c42;
    --navy-ink: #ffffff;
    --amber: #f2b233;
    --amber-ink: #2a1d00;
    --sky: #dbeaf5;
    --sky-ink: #0b3350;
    --sand: #f4ecdd;
    --sand-ink: #3b2c12;
    --ink-tile: #111c28;

    --brand: #00476f;
    --link: #0b5f91;
    --mark: #fff1c2;
    --chart-bar: #0b78b8;

    --radius: 22px;
    --radius-sm: 14px;
    --gap: 14px;
    --shadow: 0 1px 2px rgba(15, 27, 42, .04);
    --shadow-hover: 0 10px 30px rgba(15, 27, 42, .10);

    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
    --font-num: "Space Grotesk", "Inter", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0a1017;
        --tile: #141d27;
        --tile-2: #1a2531;
        --ink: #eef2f6;
        --text: #dfe5ec;
        --muted: #97a4b3;
        --line: #26323f;

        --navy: #0c3b58;
        --navy-deep: #082a40;
        --amber: #d99a1e;
        --amber-ink: #1f1500;
        --sky: #13283a;
        --sky-ink: #cfe3f2;
        --sand: #2a2417;
        --sand-ink: #eadcc0;
        --ink-tile: #05090e;

        --brand: #6fb3dc;
        --link: #7cc0ea;
        --mark: #5a4a12;
        --chart-bar: #3a9ad6;

        --shadow: none;
        --shadow-hover: 0 10px 30px rgba(0, 0, 0, .45);
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--text); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0; color: var(--ink); }
p { margin: 0; }
mark { background: var(--mark); color: inherit; padding: 0 2px; border-radius: 3px; }
code { background: var(--tile-2); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--tile); padding: 8px 12px; z-index: 30; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.muted { color: var(--muted); }
.clamp-2, .clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-2 { -webkit-line-clamp: 2; }
.clamp-3 { -webkit-line-clamp: 3; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 720px; }

/* ================= Bento temel ================= */
.bento { display: grid; gap: var(--gap); grid-template-columns: repeat(12, minmax(0, 1fr)); }
.tile {
    position: relative; background: var(--tile); border-radius: var(--radius); padding: 22px;
    box-shadow: var(--shadow); min-width: 0; color: var(--text);
}
a.tile { display: block; transition: transform .18s ease, box-shadow .18s ease; }
a.tile:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.tile--navy { background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%); color: #e6eef5; }
.tile--navy h1, .tile--navy h2, .tile--navy strong { color: #fff; }
.tile--amber { background: var(--amber); color: var(--amber-ink); }
.tile--sky { background: var(--sky); color: var(--sky-ink); }
.tile--sand { background: var(--sand); color: var(--sand-ink); }
.tile--ink { background: var(--ink-tile); color: #e8edf2; }
.tile--sky h2, .tile--sky strong { color: var(--sky-ink); }
.tile--sand strong, .tile--sand h2 { color: var(--sand-ink); }
.tile--sky .muted, .tile--sand .muted, .tile--amber .muted { color: inherit; opacity: .75; }
.tile--sky .more, .tile--sand .more { color: inherit; }

.tile-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.tile-head h2 { font-family: var(--font-serif); font-size: 21px; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.more { font-weight: 600; font-size: 14px; white-space: nowrap; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.lead { font-size: 17px; color: var(--muted); margin-top: 6px; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--tile-2); font-size: 13px; font-weight: 600; }

/* ================= Üst menü ================= */
.site-header { position: sticky; top: 0; z-index: 20; padding: 12px 0; }
.header-bar {
    display: flex; align-items: center; gap: 16px; min-height: 60px; padding: 8px 10px 8px 14px;
    background: rgba(6, 44, 66, .92); color: #fff; border-radius: 18px;
    -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px);
    box-shadow: 0 8px 24px rgba(6, 44, 66, .18);
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand-logo { display: block; width: 40px; height: 40px; object-fit: contain; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-serif); font-size: 18px; }
.brand-text small { font-size: 11px; opacity: .75; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav > a { color: rgba(255, 255, 255, .82); padding: 8px 14px; border-radius: 12px; font-weight: 500; font-size: 15px; }
.main-nav > a:hover { color: #fff; background: rgba(255, 255, 255, .1); text-decoration: none; }
.main-nav > a.is-active { color: #1b2430; background: #fff; }
.nav-search { display: flex; margin-left: 8px; background: rgba(255, 255, 255, .12); border-radius: 12px; }
.nav-search input { background: transparent; border: 0; color: #fff; padding: 9px 12px; width: 190px; font: inherit; font-size: 14px; }
.nav-search input::placeholder { color: rgba(255, 255, 255, .6); }
.nav-search input:focus { outline: none; }
.nav-search:focus-within { outline: 2px solid var(--amber); }
.nav-search button { background: transparent; border: 0; color: #fff; padding: 0 12px; cursor: pointer; }
.nav-toggle { display: none; margin-left: auto; background: rgba(255, 255, 255, .1); border: 0; color: #fff; padding: 8px; border-radius: 10px; cursor: pointer; }

@media (max-width: 920px) {
    .nav-toggle { display: block; }
    .header-bar { flex-wrap: wrap; }
    .main-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; margin: 4px 0 6px; }
    .main-nav.is-open { display: flex; }
    .nav-search { margin: 6px 0 0; }
    .nav-search input { width: 100%; }
}

/* ================= Ana sayfa bento ================= */
.bento-home {
    padding-top: 6px;
    grid-template-areas:
        "hero hero hero hero hero hero hero feat feat feat feat feat"
        "st1  st1  st1  st2  st2  st3  st3  feat feat feat feat feat"
        "gv1  gv1  gv1  gv1  gv2  gv2  gv2  feat feat feat feat feat"
        "mag  mag  mag  mag  mag  mag  mag  mag  dek  dek  dek  dek"
        "sube sube sube sube yaz  yaz  yaz  yaz  ars  ars  ars  ars"
        "kit  kit  kit  kit  kit  kit  kit  kit  ekit ekit ekit ekit";
}
.b-hero { grid-area: hero; } .b-feat { grid-area: feat; }
.b-st1 { grid-area: st1; } .b-st2 { grid-area: st2; } .b-st3 { grid-area: st3; }
.b-gv1 { grid-area: gv1; } .b-gv2 { grid-area: gv2; }
.b-mag { grid-area: mag; } .b-dek { grid-area: dek; }
.b-sube { grid-area: sube; } .b-yaz { grid-area: yaz; } .b-arsiv { grid-area: ars; }
.b-kit { grid-area: kit; } .b-ekit { grid-area: ekit; }

@media (max-width: 1100px) {
    .bento-home {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        grid-template-areas:
            "hero hero hero hero hero hero"
            "st1  st1  st2  st2  st3  st3"
            "gv1  gv1  gv1  gv2  gv2  gv2"
            "feat feat feat mag  mag  mag"
            "feat feat feat dek  dek  dek"
            "sube sube sube yaz  yaz  yaz"
            "ars  ars  ars  ekit ekit ekit"
            "kit  kit  kit  kit  kit  kit";
    }
}
@media (max-width: 700px) {
    .bento-home {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas: "hero hero" "st1 st1" "st2 st3" "gv1 gv2" "feat feat" "mag mag" "dek dek" "sube sube" "yaz yaz" "ars ars" "kit kit" "ekit ekit";
    }
}

.b-hero { padding: 34px 32px; display: flex; flex-direction: column; justify-content: center; min-height: 290px; overflow: hidden; }
.b-hero::after {
    content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 178, 51, .35), rgba(242, 178, 51, 0) 70%); pointer-events: none;
}
.b-hero .eyebrow { color: var(--amber); }
.b-hero h1 { font-family: var(--font-serif); font-size: clamp(36px, 5vw, 60px); margin: 8px 0 10px; letter-spacing: -.01em; }
.b-hero .lead { color: rgba(255, 255, 255, .85); max-width: 520px; }
.hero-search { position: relative; z-index: 1; display: flex; gap: 8px; margin-top: 22px; max-width: 540px; }
.hero-search input { flex: 1; min-width: 0; border: 0; border-radius: 14px; padding: 14px 16px; font: inherit; color: #1b2430; background: #fff; }
@media (max-width: 700px) { .b-hero { padding: 26px 22px; min-height: 0; } }

.stat, .tile.stat { display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-height: 120px; }
.stat-num { font-family: var(--font-num); font-size: clamp(30px, 3.4vw, 44px); font-weight: 600; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 14px; font-weight: 500; opacity: .8; }

.feat { display: flex; flex-direction: column; }
.feat .kicker { color: var(--brand); }
.feat-top { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 18px; }
.feat-cover { width: 130px; flex: none; }
.feat-title { font-family: var(--font-serif); font-size: 24px; }
.feat-title a { color: inherit; }
.feat-meta { margin: 8px 0 12px; color: var(--muted); font-size: 15px; }
.feat-toc { list-style: none; margin: 0 0 14px; padding: 0; counter-reset: t; flex: 1; }
.feat-toc li { counter-increment: t; display: grid; grid-template-columns: 28px 1fr; column-gap: 6px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.feat-toc li::before { content: counter(t, decimal-leading-zero); grid-row: span 2; font-family: var(--font-num); font-weight: 600; color: var(--muted); }
.feat-toc-title { font-weight: 600; color: var(--ink); }
.feat-toc .muted { font-size: 13px; }

/* Tek satır, yatay kaydırılabilir dergi şeridi */
.mag-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(112px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.mag { scroll-snap-align: start; }
.mag { display: flex; flex-direction: column; gap: 6px; color: var(--text); font-size: 13px; }
.mag:hover { text-decoration: none; }
.mag strong { font-size: 14px; line-height: 1.3; color: var(--ink); }
.mag:hover .cover { transform: translateY(-3px) rotate(-1deg); box-shadow: var(--shadow-hover); }

.chart { position: relative; margin: 0; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart-base { stroke: var(--line); stroke-width: 1; }
.chart-mark { fill: var(--chart-bar); }
.chart-hit { fill: transparent; }
.chart-bar.is-hover .chart-mark { fill: var(--brand); }
.chart-axis { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart-value { fill: var(--ink); font-size: 12px; font-weight: 600; font-family: var(--font-num); }
.chart-tip {
    position: absolute; transform: translate(-50%, calc(-100% - 8px)); pointer-events: none; white-space: nowrap;
    background: var(--ink); color: var(--tile); font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 8px;
}
.chart-note { font-size: 12px; margin-top: 8px; }

.sube-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sube-list a { display: flex; gap: 12px; align-items: center; padding: 6px; border-radius: 12px; color: inherit; }
.sube-list a:hover { background: rgba(255, 255, 255, .45); text-decoration: none; }
.sube-list a > span:last-child { display: flex; flex-direction: column; font-size: 13px; min-width: 0; }
.sube-list strong { font-size: 14px; }
.cover.cover-xs { width: 34px; flex: none; border-radius: 4px; }

.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.rank-list li:first-child { border-top: 0; }
.rank-no { font-family: var(--font-num); font-weight: 700; width: 22px; color: var(--muted); }
.rank-list a { flex: 1; color: var(--ink); font-weight: 500; min-width: 0; }
.rank-count { font-family: var(--font-num); font-weight: 600; font-variant-numeric: tabular-nums; background: var(--tile-2); border-radius: 999px; padding: 1px 10px; font-size: 13px; }

.tile.arsiv { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.arsiv-body { display: flex; gap: 18px; align-items: flex-end; }
.arsiv-body > span:last-child { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.arsiv-cover { width: 130px; flex: none; transform: rotate(-3deg); }
.tile.arsiv:hover .arsiv-cover { transform: rotate(0); }
.arsiv-damga { position: absolute; right: 18px; top: 6px; font-family: var(--font-num); font-weight: 700; font-size: clamp(64px, 8vw, 110px); line-height: 1; letter-spacing: -.04em; color: currentColor; opacity: .09; pointer-events: none; }
.arsiv-yil { font-family: var(--font-num); font-size: 30px; font-weight: 600; line-height: 1.05; margin-bottom: 4px; }

.kit-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 700px) { .kit-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.tile.ekit { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-height: 180px; overflow: hidden; }
.ekit::before {
    content: "PDF"; position: absolute; right: 18px; top: 14px; font-family: var(--font-num); font-weight: 700; font-size: 64px;
    color: rgba(255, 255, 255, .06); letter-spacing: -.03em;
}
.ekit .stat-num { color: var(--amber); font-size: clamp(40px, 4.6vw, 60px); }
.ekit-cta { margin-top: 10px; font-weight: 600; color: #fff; }

/* ================= Sayfa başlığı (iç sayfalar) ================= */
.page-bento { display: grid; gap: var(--gap); grid-template-columns: repeat(12, minmax(0, 1fr)); margin-bottom: var(--gap); }
.page-bento > .page-title { grid-column: span 8; }
.page-bento > .page-side { grid-column: span 4; }
@media (max-width: 800px) { .page-bento > .page-title, .page-bento > .page-side { grid-column: 1 / -1; } }
.page-title { display: flex; flex-direction: column; justify-content: flex-end; min-height: 170px; }
.page-title h1 { font-family: var(--font-serif); font-size: clamp(30px, 4vw, 46px); margin-top: 6px; letter-spacing: -.01em; }
.page-title .lead { color: inherit; opacity: .85; }
.tile--navy .eyebrow { color: var(--amber); }
.page-side { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); padding: 0; background: none; box-shadow: none; }
.page-side .stat { min-height: 0; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 4px 14px; font-size: 14px; color: var(--muted); }
.breadcrumb [aria-current] { color: var(--ink); }

.page-head { padding: 0 0 18px; }
.page-head h1 { font-family: var(--font-serif); font-size: clamp(28px, 4vw, 40px); margin-top: 4px; }

.section { margin-top: var(--gap); }
.empty { padding: 32px; text-align: center; color: var(--muted); background: var(--tile); border-radius: var(--radius); }

/* ================= Butonlar / çipler ================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 14px; padding: 12px 20px; font: inherit; font-weight: 600; cursor: pointer; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--amber); color: #1b2430; }
.btn-primary:hover { filter: brightness(.95); }
.btn-ghost { background: var(--tile-2); color: var(--ink); }
.btn-ghost:hover { background: var(--line); }
.btn-block { width: 100%; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--tile); color: var(--text); font-size: 14px; font-weight: 500; border: 1px solid var(--line); }
.chip:hover { border-color: var(--brand); text-decoration: none; }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--tile); }
.chip-count { font-size: 12px; opacity: .7; font-variant-numeric: tabular-nums; }

.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #2e7d4f; color: #fff; font-size: 12px; font-weight: 600; }
.badge-on-cover { position: absolute; top: 8px; left: 8px; }

/* ================= Kapak kartları ================= */
.cover-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 24px 18px; }
@media (max-width: 520px) { .cover-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; } }
.tile .cover-grid { gap: 22px 16px; }
.cover-card { display: flex; flex-direction: column; gap: 10px; color: var(--text); }
.cover-card:hover { text-decoration: none; }
.cover { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 8px; background: var(--tile-2); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 6px 16px rgba(15, 27, 42, .10); transition: transform .2s ease, box-shadow .2s ease; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-card:hover .cover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.cover-meta { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.cover-meta strong { font-size: 15px; color: var(--ink); }
.cover-kicker { font-size: 11px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .05em; }

/* ================= Dergi / bülten bento listeleri ================= */
.series-bento { display: grid; gap: var(--gap); grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; }
.series-bento .series { grid-column: span 4; display: flex; gap: 18px; align-items: flex-end; min-height: 200px; }
.series-bento .series--lg { grid-column: span 8; grid-row: span 2; flex-direction: row; align-items: stretch; }
.series-bento .series--md { grid-column: span 6; }
@media (max-width: 1000px) {
    .series-bento .series, .series-bento .series--md { grid-column: span 6; }
    .series-bento .series--lg { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 620px) { .series-bento .series, .series-bento .series--md, .series-bento .series--lg { grid-column: 1 / -1; } }
.series .cover { width: 108px; flex: none; }
.series--lg .cover { width: 220px; align-self: center; }
@media (max-width: 620px) { .series--lg .cover { width: 130px; } }
.series-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.series-title { font-family: var(--font-serif); font-size: 22px; line-height: 1.2; color: var(--ink); }
.series--lg .series-title { font-size: clamp(28px, 3.4vw, 40px); }
.tile--navy .series-title { color: #fff; }
.series-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: auto; padding-top: 10px; }
.series-stats span { display: flex; flex-direction: column; font-size: 12px; opacity: .8; }
.series-stats b { font-family: var(--font-num); font-size: 22px; font-weight: 600; opacity: 1; line-height: 1.1; }
.series--lg .series-stats b { font-size: 30px; }
.series-latest { font-size: 14px; }

/* ================= Sayı / kitap detay bento ================= */
.detail-bento {
    display: grid; gap: var(--gap); grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-areas:
        "cover head head head head head head head head nav  nav  nav"
        "cover facts facts facts facts facts facts facts facts nav nav nav"
        "side  toc  toc  toc  toc  toc  toc  toc  toc  toc  toc  toc";
    align-items: start;
}
.d-cover { grid-area: cover; padding: 16px; }
.d-head { grid-area: head; align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; }
.d-nav { grid-area: nav; align-self: stretch; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.d-facts { grid-area: facts; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: var(--gap); padding: 0; background: none; box-shadow: none; }
.d-side { grid-area: side; }
.d-toc { grid-area: toc; }
@media (max-width: 1000px) {
    .detail-bento {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        grid-template-areas: "cover cover head head head head" "cover cover nav nav nav nav" "facts facts facts facts facts facts" "toc toc toc toc toc toc" "side side side side side side";
    }
}
@media (max-width: 620px) {
    .detail-bento { grid-template-columns: 1fr; grid-template-areas: "head" "cover" "facts" "nav" "toc" "side"; }
    .d-cover .cover { max-width: 220px; margin: 0 auto; }
}
.d-head h1 { font-family: var(--font-serif); font-size: clamp(30px, 4vw, 48px); margin-top: 6px; }
.d-head .lead { color: inherit; opacity: .85; }
.fact { background: var(--tile); border-radius: var(--radius-sm); padding: 14px 16px; box-shadow: var(--shadow); min-width: 0; }
.fact dt { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.fact dd { margin: 4px 0 0; font-family: var(--font-num); font-size: 22px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; line-height: 1.2; }
.fact dd.fact-text { font-family: var(--font); font-size: 15px; font-weight: 500; }
.nav-link { display: flex; flex-direction: column; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--tile-2); color: var(--ink); }
.nav-link:hover { text-decoration: none; background: var(--line); }
.nav-link small { color: var(--muted); font-size: 12px; }
.nav-link b { font-weight: 600; }

.kunye summary { cursor: pointer; font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: var(--ink); }
.kunye dl { margin: 10px 0 0; font-size: 14px; }
.kunye dt { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-top: 12px; }
.kunye dd { margin: 2px 0 0; }

/* ================= İçindekiler ================= */
.toc-title { font-family: var(--font-serif); font-size: 21px; margin: 0 0 12px; }
.toc { list-style: none; margin: 0; padding: 0; }
.tile > .toc { margin: 0 -8px; }
.toc-item { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; padding: 14px 8px; border-top: 1px solid var(--line); }
.toc-item:first-child { border-top: 0; }
.toc-text { min-width: 0; }
.toc-text h3 { font-size: 16px; font-weight: 600; font-family: var(--font); }
.toc-text h3 a { color: inherit; }
.toc-author { display: inline-block; font-size: 14px; color: var(--muted); margin-top: 3px; }
.toc-author a { color: inherit; }
.toc-author a:hover { color: var(--link); }
.toc-source { display: block; font-size: 13px; margin-top: 4px; }
.toc-files { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; flex: none; }
@media (max-width: 560px) { .toc-item { flex-direction: column; gap: 8px; } .toc-files { align-items: flex-start; } }
ol.toc.numarali { counter-reset: t; }
ol.toc.numarali .toc-item { counter-increment: t; }
ol.toc.numarali .toc-text::before { content: counter(t, decimal-leading-zero); display: block; font-family: var(--font-num); font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 2px; }

.file-link { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--tile-2); font-size: 13px; font-weight: 500; white-space: nowrap; color: var(--ink); }
.file-link:hover { background: var(--line); text-decoration: none; }
.file-type { background: #c0392b; color: #fff; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 999px; letter-spacing: .03em; }

.file-list { list-style: none; margin: 0; padding: 0; }
.file-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.file-list li:first-child { border-top: 0; }

.meta-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--gap); margin: 0; }
.prose p { margin: 0 0 12px; }
.prose p:last-child { margin-bottom: 0; }
.source-note { font-size: 13px; color: var(--muted); margin-top: 18px; }

/* ================= Arama / araç çubuğu ================= */
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.inline-search { display: flex; gap: 8px; flex: 1; max-width: 560px; }
.inline-search-lg { max-width: 760px; }
.inline-search input { flex: 1; min-width: 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; font: inherit; background: var(--tile); color: var(--text); }
.inline-search input:focus { outline: 2px solid var(--brand); border-color: transparent; }
.tabs { display: flex; gap: 6px; }
.tab { padding: 9px 16px; border-radius: 999px; color: var(--muted); font-weight: 600; background: var(--tile); }
.tab:hover { color: var(--ink); text-decoration: none; }
.tab.is-active { background: var(--ink); color: var(--tile); }

/* ================= Sayfalama ================= */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 28px 0 4px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: 12px; font-weight: 600; font-size: 14px; }
.pagination a { background: var(--tile); color: var(--ink); }
.pagination a:hover { background: var(--line); text-decoration: none; }
.pagination .current { background: var(--ink); color: var(--tile); }
.pagination .gap { color: var(--muted); }

.error-page { text-align: center; padding: 56px 24px; }

/* ================= Alt bilgi ================= */
.site-footer { margin-top: 48px; padding-bottom: 24px; }
.bento-footer > * { grid-column: span 6; }
@media (max-width: 800px) { .bento-footer > * { grid-column: 1 / -1; } }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; font-size: 14px; }
.footer-brand p { opacity: .8; margin-top: 4px; }
.brand-logo--footer { width: 48px; height: 48px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px; align-content: center; }
.footer-nav a { padding: 8px 14px; border-radius: 999px; background: var(--tile-2); color: var(--ink); font-weight: 500; font-size: 14px; }
.footer-nav a:hover { background: var(--line); text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}

.series-ara .series-title { color: #fff; }
.series-ara .kicker { color: var(--amber); }
.series-ara .hero-search { margin-top: auto; padding-top: 14px; }
@media (max-width: 1000px) { .series-bento .series-ara { grid-column: 1 / -1 !important; } }

/* Büyük seri kutucuğunda son sayılar şeridi */
.series-strip { display: flex; gap: 10px; margin-top: 16px; }
.series-mini { display: flex; flex-direction: column; gap: 4px; width: 70px; font-size: 11px; opacity: .85; }
.series-mini .cover { width: 70px; border-radius: 5px; }
@media (max-width: 620px) { .series-strip { display: none; } }

/* Künye yoksa içindekiler tam genişlik */
.detail-bento .d-toc--genis { grid-column: 1 / -1; }
@media (min-width: 1001px) {
    .detail-bento { grid-template-areas:
        "cover cover cover head  head  head  head  head  head  nav nav nav"
        "cover cover cover facts facts facts facts facts facts nav nav nav"
        "side  side  side  toc   toc   toc   toc   toc   toc   toc toc toc"; }
}
.d-side { position: sticky; top: 96px; }
@media (max-width: 1000px) { .d-side { position: static; } }

.stat-num--sm { font-size: clamp(20px, 2.2vw, 28px); white-space: nowrap; }
.yil-tile { display: flex; gap: 14px; align-items: center; margin-bottom: var(--gap); padding: 14px 18px; }
.yil-tile .kicker { color: var(--muted); flex: none; }
.yil-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.yil-chips .chip { flex: none; background: var(--tile-2); border-color: transparent; }
.yil-chips .chip.is-active { background: var(--ink); }

.btn-dark { background: var(--ink-tile); color: #fff; }
.btn-dark:hover { filter: brightness(1.2); }
.tile--amber .nav-link { background: rgba(255, 255, 255, .45); color: var(--amber-ink); }
.tile--amber .nav-link small { color: inherit; opacity: .75; }
.tile--amber .kicker { color: var(--amber-ink); }
.d-nav .stat-num { font-size: 34px; }
.kitap-baslik { font-size: clamp(24px, 2.8vw, 36px) !important; line-height: 1.2; }
.ek-bilgi { margin: 16px 0 0; font-size: 14px; }
.ek-bilgi dt { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; opacity: .7; margin-top: 10px; }
.ek-bilgi dd { margin: 2px 0 0; }
.tile--sand .file-list li { border-color: rgba(59, 44, 18, .12); }
.tile--sand .file-link { background: rgba(255, 255, 255, .6); }
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); column-gap: 28px; }
.file-grid li:nth-child(2) { border-top: 0; }
@media (max-width: 720px) { .file-grid li:nth-child(2) { border-top: 1px solid var(--line); } }

/* Arama: sonuç türü kutucukları sekme görevi görür */
.sekme-tile { border: 2px solid transparent; }
.sekme-tile:not(.is-active):hover { border-color: var(--line); }

/* Yazar sayfası: yayın başına kutucuk; çok yazılı yayınlar geniş */
.yazar-bento { display: grid; gap: var(--gap); grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; grid-auto-flow: dense; }
.yazar-bento .yazar-grup--genis { grid-column: 1 / -1; }
.yazar-grup--genis .toc { columns: 2; column-gap: 32px; }
.yazar-grup--genis .toc-item { break-inside: avoid; }
@media (max-width: 800px) { .yazar-bento { grid-template-columns: 1fr; } .yazar-grup--genis .toc { columns: 1; } }
.tile--sky .toc-item, .tile--sand .toc-item { border-color: rgba(0, 0, 0, .08); }
.tile--sky .toc-author, .tile--sand .toc-author { color: inherit; opacity: .75; }
.tile--sky .pill, .tile--sand .pill { background: rgba(255, 255, 255, .6); }

.hata-bento { padding-top: 12px; }
.hata-kod { grid-column: span 4; display: grid; place-items: center; min-height: 240px; }
.hata-kod .stat-num { font-size: clamp(72px, 10vw, 120px); }
.hata-metin { grid-column: span 8; display: flex; flex-direction: column; justify-content: center; }
.hata-metin h1 { font-family: var(--font-serif); font-size: clamp(28px, 4vw, 42px); }
.hata-metin .lead { color: rgba(255, 255, 255, .85); }
.hata-eylem { margin-top: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 700px) { .hata-kod, .hata-metin { grid-column: 1 / -1; } .hata-kod { min-height: 140px; } }
.yazar-grup--genis .toc-item { border-top: 0; border-bottom: 1px solid var(--line); }
.prose > br:first-child, .prose > p:empty { display: none; }

/* ================= Görüntülenme ================= */
.goz { display: inline-block; vertical-align: -2px; flex: none; }
.stat--gor .kicker { display: flex; align-items: center; gap: 6px; margin-bottom: auto; padding-bottom: 12px; opacity: .8; }
.stat-alt { font-size: 13px; opacity: .7; margin-top: 4px; font-variant-numeric: tabular-nums; }
.page-side .stat--genis { grid-column: 1 / -1; }
.stat--genis .stat-label .goz { margin-right: 2px; }
.fact--gor dt { display: flex; align-items: center; gap: 5px; }
.okunma { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 700px) { .stat--gor .stat-alt { font-size: 12px; } }

/* ================= Sosyal medya paylaşımı ================= */
.paylas { display: flex; flex-direction: column; gap: 8px; }
.d-nav .paylas { padding-top: 6px; }
.paylas-etiket { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.tile--amber .paylas-etiket { color: inherit; opacity: .75; }
.paylas-dugmeler { display: flex; flex-wrap: wrap; gap: 6px; }
.paylas-dugme { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 0; border-radius: 50%; background: var(--tile-2); color: var(--ink); cursor: pointer; padding: 0; transition: background-color .15s, color .15s; }
.paylas-dugme:hover { text-decoration: none; color: #fff; }
.tile--amber .paylas-dugme { background: rgba(255, 255, 255, .45); color: var(--amber-ink); }
.paylas-dugme--x:hover { background: #000; }
.paylas-dugme--facebook:hover { background: #1877f2; }
.paylas-dugme--linkedin:hover { background: #0a66c2; }
.paylas-dugme--whatsapp:hover { background: #25d366; }
.paylas-dugme--telegram:hover { background: #229ed9; }
.paylas-dugme--eposta:hover, .paylas-kopyala:hover { background: var(--brand); }
.paylas-kopyala.is-ok, .tile--amber .paylas-kopyala.is-ok { background: #2e8b57; color: #fff; }

/* İçindekiler satırındaki açılır paylaşım menüsü */
.paylas-menu { position: relative; }
.paylas-ac { list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--muted); cursor: pointer; user-select: none; }
.paylas-ac::-webkit-details-marker { display: none; }
.paylas-ac:hover, .paylas-menu[open] .paylas-ac { background: var(--tile-2); color: var(--ink); }
.paylas--menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; padding: 8px; background: var(--tile); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-hover); }
.paylas--menu .paylas-dugmeler { flex-wrap: nowrap; }
@media (max-width: 560px) { .paylas--menu { right: auto; left: 0; } }

/* Paylaşılan makale bağlantısıyla gelindiğinde satırı vurgula */
.toc-item { scroll-margin-top: 90px; }
.toc-item:target { background: var(--mark); border-radius: var(--radius-sm); }

/* ================= Makale detay ================= */
.makale-bento {
    display: grid; gap: var(--gap); grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto auto auto 1fr;
    grid-template-areas:
        "head  head  head  head  head  head  head  head  nav    nav    nav    nav"
        "facts facts facts facts facts facts facts facts nav    nav    nav    nav"
        "metin metin metin metin metin metin metin metin konu   konu   konu   konu"
        "metin metin metin metin metin metin metin metin ilgili ilgili ilgili ilgili";
    align-items: start;
}
.m-head { grid-area: head; align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 30px 30px 26px; }
.m-nav { grid-area: nav; align-self: stretch; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.m-facts { grid-area: facts; }
.m-konu { grid-area: konu; }
.m-metin { grid-area: metin; padding: 30px clamp(20px, 4vw, 48px) 36px; }
.m-ilgili { grid-area: ilgili; }
@media (max-width: 900px) {
    .makale-bento { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "head" "facts" "nav" "konu" "metin" "ilgili"; }
}

.m-head .eyebrow a { color: var(--amber); }
.m-head h1 { font-family: var(--font-serif); font-size: clamp(26px, 3.4vw, 42px); line-height: 1.15; letter-spacing: -.01em; overflow-wrap: anywhere; }
.m-yazarlar { font-size: 17px; color: rgba(255, 255, 255, .88); }
.m-yazarlar a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
.m-yazarlar a:hover { text-decoration-color: var(--amber); }
.m-etiketler { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.m-etiket { display: inline-block; padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 13px; font-weight: 600; }
.m-etiket--tema { background: var(--amber); color: #1b2430; }
.m-nav .paylas { padding-top: 6px; }

.m-yan-baslik { font-family: var(--font-serif); font-size: 19px; margin: 0 0 10px; }
.m-yan-baslik:not(:first-child) { margin-top: 24px; }
.m-yan-alt { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: 16px 0 8px; opacity: .75; }
.m-anatema { font-size: 17px; }
.m-yantema { font-size: 14px; margin-top: 4px; }
.m-anahtar { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.m-anahtar li { padding: 4px 10px; border-radius: 999px; background: var(--tile); font-size: 13px; }

.m-ozet { background: var(--sky); color: var(--sky-ink); border-radius: var(--radius-sm); padding: 18px 20px; margin-bottom: 28px; }
.m-ozet-baslik { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 8px; color: inherit; }
.m-ozet p { font-size: 17px; line-height: 1.6; }

.m-metin-baslik { scroll-margin-top: 90px; }
.m-metin-not { font-size: 13px; color: var(--muted); margin: -4px 0 22px; padding-left: 12px; border-left: 3px solid var(--line); }
.m-govde { max-width: 70ch; font-size: 17px; line-height: 1.75; color: var(--text); overflow-wrap: break-word; hyphens: auto; }
.m-govde p { margin: 0 0 1em; }
.m-govde h3 { font-family: var(--font-serif); font-size: 21px; margin: 1.6em 0 .5em; color: var(--ink); }
.m-govde.is-kisa { max-height: 1100px; overflow: hidden; position: relative;
    -webkit-mask-image: linear-gradient(#000 75%, transparent); mask-image: linear-gradient(#000 75%, transparent); }
.m-devam { margin-top: 8px; max-width: 70ch; }
.m-metin-yok .btn { margin-top: 14px; }

.m-liste { list-style: none; margin: 0; padding: 0; }
.m-liste li { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.m-liste li:first-child { border-top: 0; padding-top: 0; }
.m-liste a { color: var(--ink); font-weight: 600; }
.m-liste a:hover { color: var(--link); }
.m-liste .muted { font-size: 13px; }
.m-liste--sayi { max-height: 460px; overflow-y: auto; padding-right: 6px; }
.m-liste li.is-current span[aria-current] { font-weight: 700; color: var(--brand); }
.m-liste li.is-current { box-shadow: inset 3px 0 0 var(--amber); padding-left: 10px; }
.toc-text h3 a:hover { color: var(--link); }

/* ================= Aramada temalar ================= */
.tema-suzgec { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: var(--gap); }
.tema-suzgec .kicker { color: var(--muted); }
.tema-suzgec .chip { background: var(--tile-2); border-color: transparent; }
.tema-suzgec .chip.is-active { background: var(--ink); color: var(--tile); }
.chip-alan { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; opacity: .6; }
.sonuc-tema { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--sand); color: var(--sand-ink); font-size: 12px; font-weight: 600; white-space: nowrap; }
.sonuc-tema:hover { text-decoration: none; filter: brightness(.96); }
a.m-etiket--tema:hover { text-decoration: none; filter: brightness(1.06); }
.m-konu a { color: inherit; text-decoration: underline; text-decoration-color: rgba(0, 0, 0, .2); text-underline-offset: 3px; }
.m-konu a:hover { text-decoration-color: currentColor; }

/* ================= Kaynak göster penceresi ================= */
.tile--amber .kaynak-ac { background: rgba(255, 255, 255, .45); color: var(--amber-ink); }
.kaynak-pencere { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px); margin: auto; padding: 24px; border: 0; border-radius: var(--radius); background: var(--tile); color: var(--text); box-shadow: 0 24px 60px rgba(6, 20, 32, .35); overflow-y: auto; }
.kaynak-pencere::backdrop { background: rgba(6, 20, 32, .55); }
.kaynak-ust { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kaynak-ust h2 { font-family: var(--font-serif); font-size: 24px; }
.kaynak-kapat { width: 38px; height: 38px; flex: none; display: inline-grid; place-items: center; border: 0; border-radius: 50%; background: var(--tile-2); color: var(--ink); cursor: pointer; }
.kaynak-kapat:hover { background: var(--line); }
.kaynak-aciklama { margin: 6px 0 18px; font-size: 14px; color: var(--muted); }
.kaynak-bicim + .kaynak-bicim { margin-top: 16px; }
.kaynak-bicim-ust { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.kaynak-bicim h3 { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.kaynak-bicim h3 span { margin-left: 6px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }
.kaynak-kopyala { flex: none; padding: 7px 14px; border: 0; border-radius: 999px; background: var(--amber); color: #1b2430; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.kaynak-kopyala:hover { filter: brightness(.95); }
.kaynak-kopyala.is-ok { background: #2e8b57; color: #fff; }
/* APA asılı girinti ile, IEEE düz blok; uzun adresler taşmadan kırılır */
.kaynak-metin { margin: 0; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--tile-2); font-family: var(--font-serif); font-size: 16px; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; user-select: text; }
.kaynak-metin--apa { padding-left: calc(16px + 2em); text-indent: -2em; }
.kaynak-not { margin-top: 18px; font-size: 12px; color: var(--muted); }
@media (max-width: 560px) {
    .kaynak-pencere { padding: 18px 16px; }
    .kaynak-bicim h3 span { display: block; margin: 2px 0 0; }
}
.kaynak-secenek { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--text); cursor: pointer; }
.kaynak-secenek input { accent-color: var(--brand); }
.kaynak-secenek span { color: var(--muted); }
.kaynak-apa-erisim[hidden] { display: none; }

/* ================= Temalar ================= */
/* Alan renkleri: --ton (çizgi, çubuk), --ton-metin (yazı), --ton-zemin (açık zemin) */
.renk-1 { --ton: #e0a020; --ton-metin: #7a4d00; --ton-zemin: #fdf3dc; }
.renk-2 { --ton: #1f7fc4; --ton-metin: #0b4a78; --ton-zemin: #e1eef9; }
.renk-3 { --ton: #13a192; --ton-metin: #0a5e55; --ton-zemin: #dcf3f0; }
.renk-4 { --ton: #7a5fd6; --ton-metin: #4a3496; --ton-zemin: #ece8fb; }
.renk-5 { --ton: #d4557c; --ton-metin: #8d2446; --ton-zemin: #fbe6ed; }
.renk-6 { --ton: #6b7a8c; --ton-metin: #3a4756; --ton-zemin: #eceff3; }
@media (prefers-color-scheme: dark) {
    .renk-1 { --ton: #f0b43c; --ton-metin: #f6cf7e; --ton-zemin: #2b2312; }
    .renk-2 { --ton: #5aaee6; --ton-metin: #9fd0f2; --ton-zemin: #122638; }
    .renk-3 { --ton: #3cc2b3; --ton-metin: #8fe0d6; --ton-zemin: #0f2a28; }
    .renk-4 { --ton: #a48cf0; --ton-metin: #c9bbf7; --ton-zemin: #221d3a; }
    .renk-5 { --ton: #ef7fa0; --ton-metin: #f6b3c7; --ton-zemin: #33171f; }
    .renk-6 { --ton: #97a4b3; --ton-metin: #c6cfd9; --ton-zemin: #1a2531; }
}

.tema-baslik { overflow: hidden; }
.tema-baslik::after {
    content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, var(--ton, var(--amber)), transparent 70%); opacity: .45;
}
.tema-baslik .eyebrow a { color: var(--amber); }
.tema-baslik .lead { max-width: 62ch; }

/* Alan payları şeridi */
.alan-mozaik { display: flex; gap: 8px; margin-bottom: var(--gap); }
.alan-parca {
    flex: 1 1 0; min-width: 0; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2px 8px;
    padding: 14px 16px 12px; border-radius: var(--radius-sm); background: var(--ton-zemin); color: var(--ton-metin);
    box-shadow: inset 0 4px 0 var(--ton); transition: transform .18s ease, box-shadow .18s ease;
}
.alan-parca:hover { text-decoration: none; transform: translateY(-2px); box-shadow: inset 0 4px 0 var(--ton), var(--shadow-hover); }
.alan-parca-ad { grid-column: 1 / -1; font-weight: 600; font-size: 14px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alan-parca-sayi { font-family: var(--font-num); font-size: 24px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.alan-parca-oran { font-family: var(--font-num); font-size: 13px; opacity: .75; }
@media (max-width: 900px) {
    .alan-mozaik { flex-wrap: wrap; }
    .alan-parca { flex: 1 1 calc(50% - 8px) !important; }
}

/* Yapışkan, buzlu cam arama çubuğu */
.tema-arac {
    position: sticky; top: 90px; z-index: 5; display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
    padding: 10px 16px; border-radius: 16px; border: 1px solid var(--line); color: var(--muted);
    background: rgba(255, 255, 255, .8);
    -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
}
@media (prefers-color-scheme: dark) { .tema-arac { background: rgba(20, 29, 39, .8); } }
.tema-arac input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--ink); padding: 4px 0; }
.tema-arac input:focus { outline: none; }
.tema-arac:focus-within { border-color: var(--brand); }
.tema-arac-sonuc { font-size: 13px; white-space: nowrap; }


/* Alan bölümleri */
.alan-bolum { padding-top: 26px; scroll-margin-top: 150px; }
.alan-bas { display: flex; align-items: center; gap: 16px; margin: 0 4px 14px; }
.alan-no {
    flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px;
    background: var(--ton-zemin); color: var(--ton-metin); font-family: var(--font-num); font-weight: 700; font-size: 17px;
    box-shadow: inset 0 -3px 0 var(--ton);
}
.alan-bas-metin { flex: 1; min-width: 0; }
.alan-bas h2 { font-family: var(--font-serif); font-size: clamp(22px, 2.6vw, 28px); }
.alan-bas .muted { font-size: 14px; }
@media (max-width: 560px) { .alan-bas { flex-wrap: wrap; } .alan-bas .more { width: 100%; } }

/* Tema kartları */
.tema-izgara { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); grid-auto-flow: dense; }
.tile.tema-kart {
    display: flex; flex-direction: column; gap: 8px; min-height: 190px; color: var(--text);
    border: 1px solid var(--line); box-shadow: inset 0 3px 0 var(--ton), var(--shadow); overflow: hidden;
}
.tile.tema-kart:hover {
    background: linear-gradient(165deg, var(--ton-zemin) 0%, var(--tile) 70%);
    border-color: var(--ton);
    box-shadow: inset 0 3px 0 var(--ton), var(--shadow-hover);
}
.tema-kart[hidden] { display: none; }
.tema-kart--buyuk { grid-column: span 2; }
@media (max-width: 620px) { .tema-kart--buyuk { grid-column: auto; } }
.tema-kart-ust { display: flex; align-items: baseline; gap: 6px; color: var(--ton-metin); }
.tema-adet { font-family: var(--font-num); font-size: 28px; font-weight: 600; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tema-kart--buyuk .tema-adet { font-size: 40px; }
.tema-adet-etiket { font-size: 13px; font-weight: 500; opacity: .8; }
.tema-ad { font-family: var(--font-serif); font-size: 19px; line-height: 1.25; color: var(--ink); }
.tema-kart--buyuk .tema-ad { font-size: clamp(21px, 2.2vw, 26px); }
.tema-aciklama { font-size: 14px; color: var(--muted); }
.tema-kart-alt { display: flex; align-items: flex-end; gap: 12px; margin-top: auto; padding-top: 8px; }
.tema-iz { flex: 1; height: 28px; min-width: 0; }
.tema-kart--buyuk .tema-iz { height: 44px; }
.tema-iz rect { fill: var(--ton); opacity: .85; }
.tema-iz rect.bos { fill: var(--line); opacity: 1; }
.tema-kart:hover .tema-iz rect:not(.bos) { opacity: 1; }
.tema-yil { flex: none; font-family: var(--font-num); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tema-yok { margin-top: var(--gap); }
.tema-yok[hidden], .alan-bolum[hidden] { display: none; }

/* Tema sayfası */
.tema-kardes { padding: 14px 16px; margin-bottom: var(--gap); }
.tema-kardes .chip { background: var(--tile-2); border-color: transparent; }
.tema-kardes .chip:hover { border-color: var(--ton); }
.tema-kardes .chip.is-active { background: var(--ton-zemin); color: var(--ton-metin); border-color: var(--ton); font-weight: 600; }

.tema-pano { display: grid; gap: var(--gap); grid-template-columns: repeat(12, minmax(0, 1fr)); margin-bottom: var(--gap); }
.tema-grafik { grid-column: span 7; }
.tema-kelime { grid-column: span 5; }
.tema-pano > :only-child { grid-column: 1 / -1; }
@media (max-width: 900px) { .tema-grafik, .tema-kelime { grid-column: 1 / -1; } }

.onyil-grafik { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 6px; height: 190px; }
.onyil { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; align-items: end; gap: 4px; min-width: 0; height: 100%; color: var(--muted); border-radius: 10px; padding: 0 2px; }
.onyil:hover { text-decoration: none; }
a.onyil:hover { background: var(--tile-2); }
.onyil-deger { font-family: var(--font-num); font-size: 12px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; min-height: 1.2em; }
.onyil-cubuk { width: 100%; max-width: 44px; border-radius: 6px 6px 2px 2px; background: var(--ton); opacity: .8; transition: opacity .15s; }
.onyil.is-bos .onyil-cubuk { height: 3px; background: var(--line); opacity: 1; }
a.onyil:hover .onyil-cubuk { opacity: 1; }
.onyil.is-active .onyil-cubuk { opacity: 1; box-shadow: 0 0 0 3px var(--ton-zemin), 0 0 0 5px var(--ton); }
.onyil.is-soluk .onyil-cubuk { opacity: .3; }
.onyil-etiket { font-size: 11px; white-space: nowrap; }
.onyil.is-active .onyil-etiket { color: var(--ton-metin); font-weight: 700; }
@media (max-width: 560px) { .onyil-etiket { font-size: 10px; } .onyil-deger { font-size: 10px; } }

.kelime-bulut { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: baseline; }
.kelime { padding: 4px 11px; border-radius: 999px; background: var(--tile-2); color: var(--ink); line-height: 1.35; transition: background .15s, color .15s; }
.kelime:hover { text-decoration: none; background: var(--ton-zemin); color: var(--ton-metin); }
.kelime--1 { font-size: 13px; }
.kelime--2 { font-size: 15px; font-weight: 500; }
.kelime--3 { font-size: 17px; font-weight: 600; background: var(--ton-zemin); color: var(--ton-metin); }
.kelime.is-active { background: var(--ton-metin); color: var(--tile); }

.tema-liste { scroll-margin-top: 90px; }
.tema-suzgec-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tema-suzgec-form .inline-search { flex: 1 1 280px; max-width: none; }
.secim { flex: 0 1 240px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; font: inherit; font-size: 15px; background: var(--tile); color: var(--text); max-width: 100%; }
.secim:focus { outline: 2px solid var(--brand); border-color: transparent; }
.tur-chips { margin-top: 14px; }
.tur-chips .chip { background: var(--tile-2); border-color: transparent; font-size: 13px; padding: 6px 12px; }
.tur-chips .chip.is-active { background: var(--ink); color: var(--tile); }
.tema-sonuc-bas { margin: 18px 0 4px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; }
.tema-sonuc-bas p { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.etkin-suzgecler { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.etkin { padding: 3px 10px; border-radius: 999px; background: var(--ton-zemin); color: var(--ton-metin); font-size: 13px; font-weight: 600; }
.etkin:hover { text-decoration: none; filter: brightness(.96); }
.tema-sonuc-bas .more { margin-left: auto; }
.tema-ozet { font-size: 14px; color: var(--muted); margin-top: 6px; max-width: 80ch; }
.tema-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; }
.tema-meta .pill { font-size: 12px; padding: 3px 10px; }
.tema-meta .toc-source { display: inline; margin-top: 0; }
