/* =========================================================================
   Dorse İçin Ne Derler — tasarım sistemi
   Bağımsız stil dosyası: Bootstrap/jQuery yok, sadece modern CSS.
   Yazıların görseli olmadığı için tipografi ve üretilen kapak grafiği
   tasarımın omurgasını taşıyor.
   ========================================================================= */

/* --- 1. Değişkenler ---------------------------------------------------- */

:root {
    color-scheme: light dark;

    /* Marka */
    --amber: #ffb020;
    --amber-strong: #f59300;
    --amber-soft: #fff4dd;
    --on-amber: #1b1301;

    /* Işık teması */
    --bg: #ffffff;
    --bg-2: #f4f6f8;
    --bg-3: #eaeef2;
    --card: #ffffff;
    --ink: #0c1116;
    --ink-2: #3d4a57;
    --ink-3: #6d7c8a;
    --line: #e2e8ee;
    --line-strong: #cbd5df;
    --shadow-sm: 0 1px 2px rgba(12, 17, 22, .06), 0 1px 3px rgba(12, 17, 22, .04);
    --shadow-md: 0 4px 12px rgba(12, 17, 22, .07), 0 12px 28px rgba(12, 17, 22, .06);
    --shadow-lg: 0 12px 24px rgba(12, 17, 22, .08), 0 32px 64px rgba(12, 17, 22, .10);

    /* Ölçü */
    --gutter: clamp(1rem, 3vw, 2.5rem);
    --container: 1260px;
    --measure: 68ch;
    --radius: 14px;
    --radius-lg: 22px;
    --radius-pill: 999px;

    /* Tipografi */
    --font-display: "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

    --step--1: clamp(.8125rem, .78rem + .17vw, .875rem);
    --step-0: clamp(1rem, .96rem + .2vw, 1.0625rem);
    --step-1: clamp(1.15rem, 1.08rem + .35vw, 1.35rem);
    --step-2: clamp(1.35rem, 1.2rem + .7vw, 1.75rem);
    --step-3: clamp(1.6rem, 1.35rem + 1.2vw, 2.25rem);
    --step-4: clamp(1.95rem, 1.5rem + 2vw, 3rem);
    --step-5: clamp(2.3rem, 1.6rem + 3.2vw, 4rem);

    --ease: cubic-bezier(.22, .61, .36, 1);
}

:root[data-theme="dark"] {
    --bg: #0b1014;
    --bg-2: #10171d;
    --bg-3: #18222a;
    --card: #121a21;
    --ink: #eef3f7;
    --ink-2: #b3c1cd;
    --ink-3: #8496a5;
    --line: #1f2c36;
    --line-strong: #2c3d4a;
    --amber-soft: #2a2008;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, .45);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0b1014;
        --bg-2: #10171d;
        --bg-3: #18222a;
        --card: #121a21;
        --ink: #eef3f7;
        --ink-2: #b3c1cd;
        --ink-3: #8496a5;
        --line: #1f2c36;
        --line-strong: #2c3d4a;
        --amber-soft: #2a2008;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
        --shadow-md: 0 8px 24px rgba(0, 0, 0, .45);
        --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
    }
}

/* --- 2. Temel ---------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: 1.65;
    font-synthesis-weight: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.022em;
    color: var(--ink);
    text-wrap: balance;
}

p, li {
    text-wrap: pretty;
}

a {
    color: inherit;
    text-decoration: none;
}

img, svg, video {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

ul, ol {
    padding: 0;
    list-style: none;
}

:where(a, button, input, summary):focus-visible {
    outline: 3px solid var(--amber);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection {
    background: var(--amber);
    color: var(--on-amber);
}

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

    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* --- 3. Yerleşim yardımcıları ------------------------------------------ */

.container {
    width: min(var(--container), 100% - var(--gutter) * 2);
    margin-inline: auto;
}

.container--narrow {
    width: min(920px, 100% - var(--gutter) * 2);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    background: var(--amber);
    color: var(--on-amber);
    padding: .75rem 1.25rem;
    font-weight: 700;
    border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
    left: 0;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.section {
    padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.section--tight {
    padding-block: clamp(1.75rem, 3vw, 2.75rem);
}

.section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
    padding-bottom: .9rem;
    border-bottom: 2px solid var(--ink);
}

.section__title {
    font-size: var(--step-2);
    display: flex;
    align-items: center;
    gap: .6rem;
}

.section__title::before {
    content: "";
    width: 12px;
    height: 26px;
    background: var(--amber);
    transform: skewX(-12deg);
    flex: none;
}

.section__meta {
    color: var(--ink-3);
    font-size: var(--step--1);
    font-weight: 500;
}

/* --- 4. Üst şerit ------------------------------------------------------ */

.topbar {
    background: var(--ink);
    color: #e9eef3;
    font-size: .78rem;
    letter-spacing: .02em;
}

:root[data-theme="dark"] .topbar,
.topbar {
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 38px;
    padding-block: .35rem;
}

.topbar__date {
    display: flex;
    align-items: center;
    gap: .5rem;
    text-transform: capitalize;
    color: #c3ced8;
}

.topbar__actions {
    display: flex;
    align-items: center;
    gap: .35rem;
}

.topbar__link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .6rem;
    background: none;
    border: 0;
    cursor: pointer;
    border-radius: var(--radius-pill);
    color: #c3ced8;
    font-weight: 600;
    transition: background .2s var(--ease), color .2s var(--ease);
}

.topbar__link:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 0 0 rgba(255, 176, 32, .7);
    animation: pulse 2.4s infinite;
    flex: none;
}

@keyframes pulse {
    70% { box-shadow: 0 0 0 8px rgba(255, 176, 32, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 176, 32, 0); }
}

/* --- 5. Başlık / gezinme ----------------------------------------------- */

.masthead {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg); /* color-mix desteklenmeyen tarayıcılar için yedek */
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .25s var(--ease);
}

.masthead.is-stuck {
    box-shadow: var(--shadow-md);
}

.masthead__inner {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 2.5rem);
    min-height: 68px;
    padding-block: .6rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    flex: none;
    max-width: 62vw;
}

.brand__mark {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--amber);
    color: var(--on-amber);
    display: grid;
    place-items: center;
    flex: none;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .18);
}

.brand__mark svg {
    width: 24px;
    height: 24px;
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    min-width: 0;
}

.brand__name {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.06rem;
    letter-spacing: -.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand__tagline {
    font-size: .68rem;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--ink-3);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav {
    display: flex;
    align-items: center;
    gap: .15rem;
    margin-inline-start: auto;
    flex-wrap: wrap;
}

.nav__link {
    position: relative;
    padding: .55rem .85rem;
    border-radius: var(--radius-pill);
    font-weight: 650;
    font-size: .95rem;
    color: var(--ink-2);
    transition: color .2s var(--ease), background .2s var(--ease);
    white-space: nowrap;
}

.nav__link:hover {
    color: var(--ink);
    background: var(--bg-2);
}

.nav__link[aria-current="page"] {
    color: var(--ink);
}

.nav__link[aria-current="page"]::after {
    content: "";
    position: absolute;
    inset-inline: .85rem;
    bottom: .2rem;
    height: 3px;
    border-radius: 3px;
    background: var(--amber);
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--ink-2);
    cursor: pointer;
    flex: none;
    transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}

.icon-btn:hover {
    border-color: var(--line-strong);
    color: var(--ink);
    background: var(--bg-2);
}

.icon-btn svg {
    width: 19px;
    height: 19px;
}

.nav-toggle {
    display: none;
}

[data-theme="dark"] .theme-toggle__sun,
.theme-toggle__moon {
    display: none;
}

[data-theme="dark"] .theme-toggle__moon {
    display: block;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle__sun { display: none; }
    :root:not([data-theme="light"]) .theme-toggle__moon { display: block; }
    :root[data-theme="light"] .theme-toggle__sun { display: block; }
}

@media (max-width: 860px) {
    .nav-toggle {
        display: grid;
        margin-inline-start: auto;
    }

    .nav {
        position: fixed;
        inset: auto 0 0 0;
        top: 0;
        margin: 0;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: .25rem;
        padding: 5.5rem var(--gutter) 2rem;
        background: var(--bg);
        transform: translateY(-100%);
        /* Kapalıyken görünmez VE odaklanılamaz olmalı; sadece transform
           yeterli değil (bağlantılar hâlâ sekme sırasında kalıyor). */
        visibility: hidden;
        opacity: 0;
        transition: transform .35s var(--ease), opacity .25s var(--ease), visibility .35s;
        overflow-y: auto;
        z-index: 40;
    }

    .nav.is-open {
        transform: translateY(0);
        visibility: visible;
        opacity: 1;
    }

    .nav__link {
        font-size: 1.3rem;
        padding: .9rem .5rem;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
    }

    .nav__link[aria-current="page"]::after {
        inset-inline: .5rem auto;
        width: 28px;
        bottom: .45rem;
    }
}

@media (max-width: 420px) {
    /* Dar ekranda marka adı kırpılmasın diye alt başlığı gizliyoruz. */
    .brand__tagline {
        display: none;
    }
}

/* --- 6. Kapak grafiği (görselsiz yazılar için) ------------------------- */

.art {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius);
    overflow: hidden;
    background:
        linear-gradient(135deg,
            hsl(var(--h, 32) 62% 42%) 0%,
            hsl(var(--h2, 48) 70% 30%) 100%);
    isolation: isolate;
    display: grid;
    place-items: center;
}

.art::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .28;
    mix-blend-mode: overlay;
}

.art[data-pattern="0"]::after {
    background: repeating-linear-gradient(-45deg, #fff 0 14px, transparent 14px 34px);
}

.art[data-pattern="1"]::after {
    background: radial-gradient(circle at 1px 1px, #fff 1.5px, transparent 1.6px) 0 0 / 18px 18px;
}

.art[data-pattern="2"]::after {
    background:
        linear-gradient(#fff 1px, transparent 1px) 0 0 / 100% 26px,
        linear-gradient(90deg, #fff 1px, transparent 1px) 0 0 / 26px 100%;
}

.art[data-pattern="3"]::after {
    background: repeating-linear-gradient(90deg, #fff 0 3px, transparent 3px 22px);
}

.art__glyph {
    position: absolute;
    right: -6%;
    bottom: -12%;
    width: 62%;
    height: auto;
    color: #fff;
    opacity: .17;
    z-index: 1;
    transform: rotate(-4deg);
}

.art__mark {
    position: relative;
    z-index: 2;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2.2rem, 7vw, 4.5rem);
    letter-spacing: -.05em;
    color: #fff;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .3);
    opacity: .95;
}

.art__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 3;
}

.art--wide {
    aspect-ratio: 21 / 9;
}

.art--tall {
    aspect-ratio: 4 / 3;
}

/* --- 7. Rozetler / etiketler ------------------------------------------- */

.chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .32rem .7rem;
    border-radius: var(--radius-pill);
    background: var(--bg-2);
    border: 1px solid var(--line);
    color: var(--ink-2);
    font-size: .78rem;
    font-weight: 650;
    letter-spacing: .01em;
    transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
    white-space: nowrap;
}

a.chip:hover {
    border-color: var(--amber);
    color: var(--ink);
    background: var(--amber-soft);
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-family: var(--font-display);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--amber-strong);
}

.kicker::before {
    content: "";
    width: 18px;
    height: 3px;
    background: var(--amber);
    flex: none;
}

.badge-new {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .2rem .55rem;
    border-radius: var(--radius-pill);
    background: var(--amber);
    color: var(--on-amber);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .45rem .7rem;
    color: var(--ink-3);
    font-size: var(--step--1);
    font-weight: 500;
}

.meta__item {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.meta__item svg {
    width: 14px;
    height: 14px;
    opacity: .8;
}

.meta__sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    opacity: .5;
}

/* --- 8. Kartlar -------------------------------------------------------- */

.card {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: .75rem .75rem 1.25rem;
    height: 100%;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--line-strong);
}

.card__media {
    position: relative;
    display: block; /* <a> ile sarıldığı için genişlik/oran uygulanabilsin */
}

.card__body {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    padding-inline: .5rem;
    flex: 1;
}

.card__title {
    font-size: var(--step-1);
    line-height: 1.22;
}

.card__title a {
    background-image: linear-gradient(var(--amber), var(--amber));
    background-repeat: no-repeat;
    background-position: 0 88%;
    background-size: 0 .18em;
    transition: background-size .35s var(--ease);
}

.card:hover .card__title a,
.card__title a:hover {
    background-size: 100% .18em;
}

.card__excerpt {
    color: var(--ink-2);
    font-size: .93rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card__foot {
    margin-top: auto;
    padding-top: .35rem;
}

/* Yatay (liste) kart */
.card--row {
    flex-direction: row;
    align-items: center;
    gap: 1.1rem;
    padding: .7rem;
}

.card--row .card__media {
    width: clamp(96px, 26%, 190px);
    flex: none;
}

.card--row .art {
    aspect-ratio: 1;
}

.card--row .card__title {
    font-size: var(--step-0);
}

/* Numaralı öne çıkanlar */
.rank {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
}

.rank:last-child {
    border-bottom: 0;
}

.rank__no {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
    color: var(--line-strong);
    letter-spacing: -.05em;
    flex: none;
    width: 2.1rem;
    transition: color .25s var(--ease);
}

.rank:hover .rank__no {
    color: var(--amber);
}

.rank__title {
    font-size: 1.02rem;
    line-height: 1.3;
    margin-bottom: .3rem;
}

/* --- 9. Manşet --------------------------------------------------------- */

.hero {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    align-items: start;
    padding-block: clamp(1.75rem, 4vw, 3rem);
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
    }
}

.hero__lead {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.hero__media {
    display: block;
}

.hero__media .art {
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.hero__title {
    font-size: var(--step-5);
    font-weight: 900;
    letter-spacing: -.035em;
}

.hero__title a {
    background-image: linear-gradient(var(--amber), var(--amber));
    background-repeat: no-repeat;
    background-position: 0 92%;
    background-size: 0 .14em;
    transition: background-size .4s var(--ease);
}

.hero__title a:hover {
    background-size: 100% .14em;
}

.hero__excerpt {
    font-size: var(--step-1);
    color: var(--ink-2);
    line-height: 1.55;
    max-width: 58ch;
}

.hero__aside {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.35rem;
}

.hero__aside-title {
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-3);
    padding-bottom: .85rem;
    margin-bottom: .25rem;
    border-bottom: 2px solid var(--ink);
    display: flex;
    align-items: center;
    gap: .5rem;
}

/* --- 10. Izgaralar ----------------------------------------------------- */

.grid {
    display: grid;
    gap: clamp(1.1rem, 2.2vw, 1.85rem);
}

.grid--3 {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}

.grid--2 {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
}

.topics {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

/* --- 11. Şerit / çağrı ------------------------------------------------- */

.strip {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--ink);
    color: #f2f6f9;
    padding: clamp(1.6rem, 4vw, 2.75rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.strip::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(-45deg, var(--amber) 0 18px, transparent 18px 44px);
    opacity: .12;
}

.strip > * {
    position: relative;
}

.strip__title {
    color: #fff;
    font-size: var(--step-2);
    margin-bottom: .4rem;
}

.strip__text {
    color: #b9c6d1;
    max-width: 52ch;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .85rem 1.4rem;
    border-radius: var(--radius-pill);
    background: var(--amber);
    color: var(--on-amber);
    font-weight: 750;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 176, 32, .35);
}

.btn svg {
    width: 17px;
    height: 17px;
}

.btn--ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line-strong);
}

.btn--ghost:hover {
    border-color: var(--amber);
    box-shadow: none;
    background: var(--amber-soft);
}

.btn--light {
    background: #fff;
    color: var(--ink);
}

/* --- 12. Sayfa başlığı ------------------------------------------------- */

.page-head {
    padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 3vw, 2rem);
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(70ch 30ch at 12% -10%, var(--amber-soft), transparent 70%);
}

.page-head__title {
    font-size: var(--step-4);
    margin-block: .55rem;
}

.page-head__desc {
    color: var(--ink-2);
    max-width: 70ch;
    font-size: var(--step-1);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    font-size: .82rem;
    color: var(--ink-3);
}

.breadcrumb a:hover {
    color: var(--amber-strong);
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.breadcrumb li:not(:last-child)::after {
    content: "/";
    opacity: .5;
}

.breadcrumb [aria-current] {
    color: var(--ink-2);
    font-weight: 600;
    max-width: 42ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --- 13. Makale -------------------------------------------------------- */

.progress {
    position: fixed;
    inset: 0 auto auto 0;
    height: 3px;
    width: 100%;
    transform-origin: 0 50%;
    transform: scaleX(0);
    background: linear-gradient(90deg, var(--amber), var(--amber-strong));
    z-index: 60;
    pointer-events: none;
}

.article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 260px);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: start;
    padding-block: clamp(1.75rem, 4vw, 3rem);
}

@media (max-width: 1080px) {
    .article {
        grid-template-columns: 1fr;
    }
}

.article__header {
    margin-bottom: 1.75rem;
}

.article__title {
    font-size: var(--step-4);
    margin-block: .75rem 1rem;
}

.article__lead {
    font-size: var(--step-1);
    color: var(--ink-2);
    line-height: 1.6;
    max-width: var(--measure);
    padding-left: 1rem;
    border-left: 4px solid var(--amber);
}

.article__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-block: .9rem;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.article__media {
    margin-bottom: 1.75rem;
}

.article__media .art {
    border-radius: var(--radius-lg);
}

.share {
    display: flex;
    align-items: center;
    gap: .4rem;
}

.share__label {
    font-size: .78rem;
    color: var(--ink-3);
    font-weight: 600;
    margin-right: .15rem;
}

.toc {
    position: sticky;
    top: 92px;
    border-inline-start: 2px solid var(--line);
    padding-inline-start: 1rem;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

@media (max-width: 1080px) {
    .toc {
        position: static;
        max-height: none;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: 1rem 1.1rem;
        background: var(--bg-2);
    }
}

.toc__title {
    font-size: .74rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-3);
    font-weight: 800;
    margin-bottom: .75rem;
}

.toc__link {
    display: block;
    padding: .3rem 0;
    font-size: .875rem;
    line-height: 1.35;
    color: var(--ink-3);
    transition: color .2s var(--ease);
}

.toc__link--3 {
    padding-inline-start: .85rem;
    font-size: .82rem;
}

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

.toc__link.is-active {
    color: var(--amber-strong);
    font-weight: 650;
}

/* --- 14. Metin gövdesi (markdown çıktısı) ------------------------------ */

.prose {
    max-width: var(--measure);
    font-size: 1.075rem;
    line-height: 1.78;
    color: var(--ink-2);
}

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

.prose p {
    color: var(--ink-2);
}

.prose strong {
    color: var(--ink);
    font-weight: 700;
}

.prose h2 {
    font-size: var(--step-3);
    margin-top: 2.2em;
    margin-bottom: .6em;
    color: var(--ink);
    scroll-margin-top: 6rem;
}

.prose h3 {
    font-size: var(--step-2);
    margin-top: 1.8em;
    margin-bottom: .5em;
    color: var(--ink);
    scroll-margin-top: 6rem;
}

.prose h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    background: var(--amber);
    margin-top: .5rem;
}

.prose__anchor {
    opacity: 0;
    margin-left: .4rem;
    color: var(--amber-strong);
    font-weight: 400;
    transition: opacity .2s var(--ease);
}

.prose__heading:hover .prose__anchor {
    opacity: 1;
}

.prose a:not(.prose__anchor) {
    color: var(--ink);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--amber);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.prose a:not(.prose__anchor):hover {
    color: var(--amber-strong);
}

.prose ul, .prose ol {
    padding-inline-start: 1.35rem;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.prose ul {
    list-style: none;
    padding-inline-start: 0;
}

.prose ul > li {
    position: relative;
    padding-inline-start: 1.5rem;
}

.prose ul > li::before {
    content: "";
    position: absolute;
    left: .35rem;
    top: .72em;
    width: 7px;
    height: 7px;
    background: var(--amber);
    transform: skewX(-12deg);
}

.prose ol {
    list-style: decimal;
}

.prose ol > li::marker {
    color: var(--amber-strong);
    font-weight: 700;
}

.prose blockquote {
    margin-inline: 0;
    padding: 1.1rem 1.35rem;
    background: var(--bg-2);
    border-left: 4px solid var(--amber);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--ink);
    font-size: 1.1rem;
    font-style: italic;
}

.prose blockquote p + p {
    margin-top: .7em;
}

.prose code {
    font-family: var(--font-mono);
    font-size: .88em;
    background: var(--bg-3);
    padding: .15em .4em;
    border-radius: 5px;
}

.prose pre {
    background: var(--ink);
    color: #e6edf3;
    padding: 1.1rem 1.25rem;
    border-radius: var(--radius);
    overflow-x: auto;
}

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

.prose img {
    border-radius: var(--radius);
    width: 100%;
}

.prose hr {
    border: 0;
    height: 1px;
    background: var(--line);
    margin-block: 2.5em;
}

.prose__table-scroll {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    /* Tablolar metin sütununu aşabilsin */
    max-width: min(100%, 92vw);
    -webkit-overflow-scrolling: touch;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
    min-width: 34rem;
}

.prose thead {
    background: var(--bg-2);
}

.prose th {
    text-align: start;
    font-family: var(--font-display);
    font-weight: 750;
    color: var(--ink);
    padding: .85rem 1rem;
    border-bottom: 2px solid var(--line-strong);
    white-space: nowrap;
}

.prose td {
    padding: .8rem 1rem;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

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

.prose tbody tr:hover {
    background: var(--bg-2);
}

/* --- 15. Galeri / ekler ------------------------------------------------ */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: .85rem;
    margin-top: 2rem;
}

.gallery img {
    border-radius: var(--radius);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
    transition: transform .35s var(--ease);
}

.gallery a:hover img {
    transform: scale(1.03);
}

.attachments {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-top: 1.5rem;
}

.attachment {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    font-weight: 600;
    transition: border-color .2s var(--ease);
}

.attachment:hover {
    border-color: var(--amber);
}

.accordion {
    margin-top: 2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.accordion details {
    border-bottom: 1px solid var(--line);
}

.accordion details:last-child {
    border-bottom: 0;
}

.accordion summary {
    cursor: pointer;
    padding: 1rem 1.15rem;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--ink);
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.accordion summary::-webkit-details-marker {
    display: none;
}

.accordion summary::after {
    content: "+";
    color: var(--amber-strong);
    font-size: 1.3rem;
    line-height: 1;
}

.accordion details[open] summary::after {
    content: "−";
}

.accordion__body {
    padding: 0 1.15rem 1.15rem;
    color: var(--ink-2);
}

/* --- 16. Sayfalama ----------------------------------------------------- */

.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    flex-wrap: wrap;
    margin-top: clamp(2rem, 4vw, 3rem);
}

.pager__item {
    min-width: 42px;
    height: 42px;
    padding-inline: .75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink-2);
    font-weight: 650;
    font-size: .92rem;
    transition: all .2s var(--ease);
}

.pager__item:hover {
    border-color: var(--amber);
    color: var(--ink);
}

.pager__item[aria-current="page"] {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--bg);
}

.pager__item.is-disabled {
    opacity: .4;
    pointer-events: none;
}

.pager__gap {
    color: var(--ink-3);
    padding-inline: .35rem;
}

.pager__item svg {
    width: 15px;
    height: 15px;
}

/* --- 17. Altbilgi ------------------------------------------------------ */

.footer {
    margin-top: clamp(3rem, 6vw, 5rem);
    background: var(--ink);
    color: #c3ced8;
    padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem;
}

.footer a {
    color: #c3ced8;
    transition: color .2s var(--ease);
}

.footer a:hover {
    color: var(--amber);
}

.footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(auto-fit, minmax(160px, 1fr));
    gap: clamp(1.5rem, 4vw, 3rem);
    padding-bottom: 2.5rem;
}

.footer__brand .brand__name {
    color: #fff;
}

.footer__about {
    margin-top: 1rem;
    max-width: 46ch;
    font-size: .93rem;
    line-height: 1.7;
}

.footer__title {
    color: #fff;
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 800;
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    font-size: .93rem;
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .85rem;
}

.footer__powered {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    opacity: .8;
}

/* --- 18. Boş durum / 404 ----------------------------------------------- */

.empty {
    text-align: center;
    padding-block: clamp(3rem, 10vw, 7rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.empty__code {
    font-family: var(--font-display);
    font-size: clamp(4rem, 18vw, 9rem);
    font-weight: 900;
    line-height: .9;
    letter-spacing: -.06em;
    background: repeating-linear-gradient(-45deg, var(--amber) 0 12px, var(--ink) 12px 24px);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.empty__actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: .75rem;
}

/* --- 19. Yukarı çık ---------------------------------------------------- */

.to-top {
    position: fixed;
    right: clamp(1rem, 3vw, 2rem);
    bottom: clamp(1rem, 3vw, 2rem);
    z-index: 45;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .3s var(--ease);
    box-shadow: var(--shadow-md);
    background: var(--card);
}

.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- 20. Yazdırma ------------------------------------------------------ */

@media print {
    .topbar, .masthead, .footer, .toc, .share, .to-top, .progress, .strip, .related {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .article {
        grid-template-columns: 1fr;
    }

    .prose {
        max-width: none;
        font-size: 11pt;
    }

    .prose a::after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        color: #555;
    }
}
