/* ==========================================================================
   Etiket İçin Ne Derler — haber teması
   Bağımsız tema: Bootstrap/jQuery kullanmaz, açık ve koyu modu destekler.
   ========================================================================== */

/* --------------------------------------------------------------- Tokenlar */

:root {
    color-scheme: light;

    --paper: #faf8f5;
    --surface: #ffffff;
    --surface-2: #f3efe9;
    --ink: #15171c;
    --ink-soft: #3b414d;
    --muted: #6a7180;
    --line: #e5ded4;
    --line-soft: #efe9e1;

    --brand: #cf3826;
    --brand-ink: #a92a1b;
    --brand-wash: #fdeeeb;
    --accent: #146b66;

    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;

    --shadow-sm: 0 1px 2px rgba(20, 22, 26, .05), 0 1px 3px rgba(20, 22, 26, .04);
    --shadow: 0 4px 14px rgba(20, 22, 26, .07), 0 1px 3px rgba(20, 22, 26, .05);
    --shadow-lg: 0 18px 48px rgba(20, 22, 26, .14);

    --wrap: 1200px;
    --gap: clamp(1rem, 2.4vw, 1.75rem);
    --section-gap: clamp(2.5rem, 6vw, 4.5rem);

    --header-h: 68px;
}

:root[data-theme='dark'] {
    color-scheme: dark;

    --paper: #0d0e11;
    --surface: #15171d;
    --surface-2: #1c1f27;
    --ink: #edeff3;
    --ink-soft: #c6cad3;
    --muted: #939aa7;
    --line: #262a33;
    --line-soft: #1f232b;

    --brand: #ff6d55;
    --brand-ink: #ff8b77;
    --brand-wash: #2a1713;
    --accent: #3fb5ac;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow: 0 6px 18px rgba(0, 0, 0, .45);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .6);
}

/* ------------------------------------------------------------------ Temel */

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

* { margin: 0; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    /* Kısa sayfalarda da alt bilgi ekranın dibine otursun. */
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

main { flex: 1 0 auto; }

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

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

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -.015em;
    text-wrap: balance;
}

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection { background: var(--brand); color: #fff; }

.wrap {
    width: min(100% - 2.5rem, var(--wrap));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: .5rem;
    left: .5rem;
    z-index: 200;
    padding: .6rem 1rem;
    background: var(--brand);
    color: #fff;
    border-radius: var(--radius-sm);
    transform: translateY(-160%);
    transition: transform .2s;
}
.skip-link:focus { transform: translateY(0); }

.kicker {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--brand);
}

.dot {
    display: inline-block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    opacity: .45;
    vertical-align: middle;
}

/* ----------------------------------------------------------------- Başlık */

.masthead {
    position: sticky;
    top: 0;
    z-index: 90;
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: saturate(1.6) blur(14px);
    border-bottom: 1px solid var(--line);
}

/* Başlık çubuğu, açılır menü panelinin her zaman üstünde kalır. */
.masthead__bar { position: relative; z-index: 2; }

.masthead__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: var(--header-h);
}

.brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-right: auto;
    flex-shrink: 0;
}

.brand__mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--brand);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.brand__text { display: flex; flex-direction: column; line-height: 1.15; }

.brand__name {
    font-family: var(--font-serif);
    font-size: 1.16rem;
    font-weight: 700;
    letter-spacing: -.02em;
}

.brand__tag {
    font-size: .68rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

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

.icon-btn {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    color: var(--ink-soft);
    transition: background .18s, color .18s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }

.theme-toggle__moon { display: none; }
:root[data-theme='dark'] .theme-toggle__sun { display: none; }
:root[data-theme='dark'] .theme-toggle__moon { display: block; }

.lang { display: flex; gap: .15rem; margin-right: .3rem; }

.lang__item {
    padding: .3rem .5rem;
    font-size: .78rem;
    font-weight: 600;
    border-radius: 7px;
    color: var(--muted);
}
.lang__item.is-active { background: var(--brand-wash); color: var(--brand); }

/* Menü */

.nav__list {
    display: flex;
    align-items: center;
    gap: .2rem;
    list-style: none;
    padding: 0;
}

.nav__item { position: relative; }

.nav__link {
    display: flex;
    align-items: center;
    gap: .3rem;
    padding: .5rem .8rem;
    font-size: .93rem;
    font-weight: 500;
    color: var(--ink-soft);
    border-radius: 9px;
    white-space: nowrap;
    transition: background .18s, color .18s;
}
.nav__link:hover { background: var(--surface-2); color: var(--ink); }
.nav__link.is-active { color: var(--brand); font-weight: 600; }

.nav__drop {
    position: absolute;
    top: calc(100% + .4rem);
    left: 0;
    z-index: 20;
    min-width: 220px;
    padding: .4rem;
    list-style: none;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s, transform .18s, visibility .18s;
}
.nav__item--menu:hover .nav__drop,
.nav__item--menu:focus-within .nav__drop,
.nav__drop.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav__drop a {
    display: block;
    padding: .5rem .7rem;
    font-size: .9rem;
    border-radius: 8px;
    color: var(--ink-soft);
}
.nav__drop a:hover { background: var(--surface-2); color: var(--ink); }

.menu-toggle { display: none; order: 3; }

.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .22s, opacity .22s;
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before,
.menu-toggle__bars::after { content: ''; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }

.menu-toggle[aria-expanded='true'] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded='true'] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Okuma ilerlemesi */

.progress {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 120;
    height: 3px;
    background: transparent;
    pointer-events: none;
}

.progress__bar {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    transition: width .1s linear;
}

/* ---------------------------------------------------------------- Duyuru */

.promo {
    background: var(--brand);
    color: #fff;
    font-size: .88rem;
}

.promo__inner {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .55rem 0;
}

.promo__tag {
    flex-shrink: 0;
    padding: .12rem .5rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .2);
    border-radius: 999px;
}

.promo__list {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.promo__list::-webkit-scrollbar { display: none; }
.promo__list a { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* ---------------------------------------------------------------- Manşet */

.hero { padding: clamp(1.75rem, 4vw, 3rem) 0 0; }

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    gap: var(--gap) clamp(1.5rem, 4vw, 3rem);
    align-items: start;
    /* Sütunlar farklı boyda bitiyor; ayırıcı çizgi tek ve ortak olsun. */
    padding-bottom: var(--section-gap);
    border-bottom: 1px solid var(--line);
}

.hero__lead {
    display: grid;
    gap: 1.25rem;
}

.hero__media {
    display: block;
    /* Görsel yoksa içindeki mutlak konumlu desenin çıpası burasıdır. */
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--surface-2);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* Kapak görseli olmayan manşet: tipografik düzen */
.hero__lead--text {
    padding-top: .75rem;
    border-top: 4px solid var(--ink);
}
.hero__lead--text .hero__title { font-size: clamp(2.2rem, 5.4vw, 3.9rem); }
.hero__lead--text .hero__excerpt { font-size: 1.2rem; }

.hero__body { display: grid; gap: .75rem; }

.hero__title {
    font-size: clamp(1.9rem, 4.2vw, 3.1rem);
    letter-spacing: -.03em;
}
.hero__title a { background-image: linear-gradient(var(--brand), var(--brand)); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .3s; }
.hero__title a:hover { background-size: 100% 2px; }

.hero__excerpt {
    font-family: var(--font-serif);
    font-size: 1.13rem;
    color: var(--ink-soft);
    max-width: 62ch;
}

.hero__side {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.stack { display: grid; gap: .25rem; }

/* ---------------------------------------------------------------- Bölümler */

.section { padding-block: var(--section-gap); }
.section--flush { padding-top: clamp(1rem, 2vw, 1.5rem); }

.section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.6rem;
    padding-bottom: .8rem;
    border-bottom: 2px solid var(--ink);
}

.section__title {
    font-size: clamp(1.25rem, 2.4vw, 1.65rem);
    letter-spacing: -.02em;
}
.section__title--tight {
    padding-bottom: .6rem;
    border-bottom: 2px solid var(--ink);
    font-size: 1.05rem;
}

.section__more {
    font-size: .88rem;
    font-weight: 600;
    color: var(--brand);
    white-space: nowrap;
}
.section__more:hover { text-decoration: underline; text-underline-offset: 3px; }

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

/* ------------------------------------------------------------------ Kart */

.card { display: grid; gap: .85rem; }

.card__media {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface-2);
}
.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}
.card:hover .card__media img { transform: scale(1.045); }

/* Görsel yoksa marka paletinden sabit desen (matbaa tram çizgisi motifi) */
.card__pattern {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background:
        radial-gradient(130% 130% at 20% 8%, hsl(var(--hue, 20) 34% 34%), transparent 68%),
        linear-gradient(150deg, hsl(var(--hue, 20) 30% 26%), hsl(var(--hue, 20) 24% 17%));
}
.card__pattern::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 10px);
}

.card__monogram {
    position: relative;
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 700;
    color: rgba(255, 255, 255, .88);
}

/* Görselsiz büyük kart: üstte ince renk şeridi, gerisi tipografi. */
.card--plain {
    padding-top: .95rem;
    border-top: 3px solid hsl(var(--hue, 20) 42% 42%);
}
.card--plain .card__title { font-size: 1.28rem; }

.card__body { display: grid; gap: .45rem; }

.card__title {
    font-size: 1.16rem;
    line-height: 1.3;
}
.card__title a:hover { color: var(--brand); }

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

.card__meta,
.article__meta {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    color: var(--muted);
    flex-wrap: wrap;
}

/* Yan sütun satır kartı */
.card--row {
    grid-template-columns: 86px minmax(0, 1fr);
    align-items: start;
    gap: .9rem;
    padding: .9rem 0;
    border-bottom: 1px solid var(--line-soft);
}
.card--row:last-child { border-bottom: 0; }
.card--row .card__media { aspect-ratio: 1; border-radius: 10px; }
.card--row .card__title { font-size: .99rem; }

.card--sm .card__title { font-size: 1rem; }

/* ------------------------------------------------------------- Sayfa başı */

.page-head {
    padding: clamp(1.5rem, 4vw, 2.75rem) 0 clamp(1rem, 2vw, 1.5rem);
    display: grid;
    gap: .5rem;
}

.page-head__title { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.page-head__meta { font-size: .88rem; color: var(--muted); }

.crumbs { padding-top: 1.2rem; }

.crumbs__list {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    list-style: none;
    padding: 0;
    font-size: .8rem;
    color: var(--muted);
}
.crumbs__item + .crumbs__item::before { content: '/'; margin-right: .4rem; opacity: .5; }
.crumbs__item a:hover { color: var(--brand); }

/* ----------------------------------------------------------------- Makale */

.article__head {
    padding-block: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 1.75rem);
}

/* Başlık bloğu, aşağıdaki gövde sütunuyla aynı hizada başlar. */
.article__head-inner {
    display: grid;
    gap: .9rem;
    max-width: 820px;
}

.article__title { font-size: clamp(2rem, 4.6vw, 3.15rem); letter-spacing: -.03em; }

.article__lede {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    line-height: 1.55;
    color: var(--ink-soft);
}

.article__cover {
    margin-block: 1rem 2.5rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface-2);
}
.article__cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.article__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 3.5rem);
    padding-bottom: var(--section-gap);
}
/* İçindekiler sağ sütunda: gövde, üstteki başlıkla aynı hizada kalır. */
.article__layout:has(.toc) { grid-template-columns: minmax(0, 1fr) 250px; }
.article__layout:has(.toc) .article__main { grid-column: 1; grid-row: 1; }
.article__layout:has(.toc) .toc { grid-column: 2; grid-row: 1; }

.article__main { max-width: 760px; min-width: 0; }

.article__foot {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

/* İçindekiler */

.toc { grid-row: span 2; }

.toc__inner {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
    padding: 1.1rem 1.2rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.toc__title {
    font-family: var(--font-sans);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .7rem;
}

.toc__list { list-style: none; padding: 0; display: grid; gap: .1rem; counter-reset: toc; }

.toc__item a {
    display: block;
    padding: .3rem 0;
    font-size: .86rem;
    line-height: 1.35;
    color: var(--muted);
    border-left: 2px solid transparent;
    padding-left: .7rem;
    transition: color .18s, border-color .18s;
}
.toc__item--3 a { padding-left: 1.4rem; font-size: .82rem; }
.toc__item a:hover { color: var(--ink); }
.toc__item a.is-active { color: var(--brand); border-left-color: var(--brand); font-weight: 500; }

/* Makale gövdesi (md_to_html çıktısı) */

.prose {
    font-family: var(--font-serif);
    font-size: 1.13rem;
    line-height: 1.75;
    color: var(--ink);
}

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

.prose p { max-width: 68ch; }

.prose h2 {
    margin-top: 2.2em;
    font-size: 1.6em;
    letter-spacing: -.02em;
    scroll-margin-top: calc(var(--header-h) + 1.5rem);
}
.prose h3 {
    margin-top: 1.9em;
    font-size: 1.28em;
    scroll-margin-top: calc(var(--header-h) + 1.5rem);
}
.prose h4 { margin-top: 1.6em; font-size: 1.1em; }

.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .7em; }

.prose a {
    color: var(--brand);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.prose a:hover { color: var(--brand-ink); }

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

.prose ul, .prose ol { padding-left: 1.4em; max-width: 68ch; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--brand); }

.prose blockquote {
    margin-left: 0;
    padding: .3em 0 .3em 1.3em;
    border-left: 3px solid var(--brand);
    font-style: italic;
    color: var(--ink-soft);
}

.prose img { border-radius: var(--radius); margin-inline: auto; }

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

.prose code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .86em;
    padding: .15em .4em;
    background: var(--surface-2);
    border-radius: 5px;
}

.prose pre {
    padding: 1.1rem 1.25rem;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow-x: auto;
}
.prose pre code { padding: 0; background: none; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.prose table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-sans);
    font-size: .93rem;
}
.prose th, .prose td {
    padding: .7rem .85rem;
    text-align: left;
    border-bottom: 1px solid var(--line);
}
.prose th { font-weight: 600; background: var(--surface-2); }

/* Ek alanlar */

.facts {
    margin-top: 2.5rem;
    border-top: 1px solid var(--line);
}
.facts__row {
    display: grid;
    grid-template-columns: minmax(120px, 200px) minmax(0, 1fr);
    gap: 1rem;
    padding: .8rem 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: .95rem;
}
.facts dt { font-weight: 600; color: var(--muted); }

/* Sekmeler */

.tabs { margin-top: 2.5rem; }

.tabs__nav {
    display: flex;
    gap: .3rem;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
}
.tabs__nav::-webkit-scrollbar { display: none; }

.tabs__btn {
    padding: .65rem 1rem;
    font-size: .92rem;
    font-weight: 500;
    color: var(--muted);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.tabs__btn.is-active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }

.tabs__panel { padding-top: 1.4rem; }
.tabs__panel.is-hidden { display: none; }

/* SSS */

.faq { margin-top: 2.5rem; }

.faq__item {
    border-bottom: 1px solid var(--line);
}
.faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    font-family: var(--font-serif);
    font-size: 1.08rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
    content: '+';
    font-family: var(--font-sans);
    font-size: 1.4rem;
    color: var(--brand);
    transition: transform .2s;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item .prose { padding-bottom: 1.2rem; font-size: 1rem; }

/* Galeri ve medya */

.gallery { margin-top: 2.5rem; }

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: .7rem;
    margin-top: 1rem;
}

.gallery__item {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery__item:hover img { transform: scale(1.06); }

.media-list { list-style: none; padding: 0; margin-top: 1rem; display: grid; gap: .5rem; }

.media-list__item {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .8rem 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: .95rem;
    transition: border-color .18s, transform .18s;
}
.media-list__item:hover { border-color: var(--brand); transform: translateX(3px); }
.media-list__icon { color: var(--brand); }

/* Lightbox */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 2rem;
    background: rgba(8, 9, 11, .92);
    backdrop-filter: blur(4px);
}
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: var(--radius); }
.lightbox__close {
    position: absolute;
    top: 1.2rem;
    right: 1.4rem;
    width: 42px;
    height: 42px;
    font-size: 1.6rem;
    color: #fff;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
}

/* --------------------------------------------------------------- Paylaşım */

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

.share__label {
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-right: .3rem;
}

.share__btn {
    position: relative;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    color: var(--ink-soft);
    border: 1px solid var(--line);
    background: var(--surface);
    transition: color .18s, border-color .18s, transform .18s;
}
.share__btn:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-2px); }

.share__copied {
    position: absolute;
    bottom: calc(100% + .45rem);
    left: 50%;
    transform: translateX(-50%);
    padding: .25rem .55rem;
    font-size: .72rem;
    white-space: nowrap;
    background: var(--ink);
    color: var(--paper);
    border-radius: 6px;
}

/* --------------------------------------------------------------- Sayfalama */

.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    flex-wrap: wrap;
    margin-top: var(--section-gap);
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.pager__list { display: flex; gap: .25rem; list-style: none; padding: 0; }

.pager__num,
.pager__step {
    display: grid;
    place-items: center;
    min-width: 40px;
    height: 40px;
    padding-inline: .75rem;
    font-size: .9rem;
    font-weight: 500;
    border-radius: 10px;
    border: 1px solid var(--line);
    color: var(--ink-soft);
    transition: border-color .18s, background .18s, color .18s;
}
a.pager__num:hover,
a.pager__step:hover { border-color: var(--brand); color: var(--brand); }

.pager__num.is-current {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.pager__step.is-disabled { opacity: .35; }
.pager__gap { display: grid; place-items: center; min-width: 26px; height: 40px; color: var(--muted); }

/* ----------------------------------------------------------- Butonlar/CTA */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .7rem 1.35rem;
    font-size: .93rem;
    font-weight: 600;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--brand); }

.btn--primary {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.btn--primary:hover { background: var(--brand-ink); border-color: var(--brand-ink); }

.cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.cta__title { font-size: clamp(1.2rem, 2.6vw, 1.6rem); }
.cta__text { font-size: .95rem; color: var(--muted); margin-top: .35rem; max-width: 52ch; }
.cta__actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* Boş / hata durumu */

.empty {
    display: grid;
    justify-items: center;
    gap: .8rem;
    text-align: center;
    padding-block: clamp(3rem, 9vw, 6rem);
}
.empty--tall { padding-block: clamp(4rem, 12vw, 8rem); }

.empty__code {
    font-family: var(--font-serif);
    font-size: clamp(4rem, 14vw, 8rem);
    font-weight: 700;
    line-height: 1;
    color: var(--brand);
    opacity: .18;
}
.empty__title { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
.empty__text { color: var(--muted); max-width: 46ch; }

/* ------------------------------------------------------------------- Alt */

.footer {
    margin-top: auto;
    padding-block: var(--section-gap) 2rem;
    background: var(--surface);
    border-top: 1px solid var(--line);
}

.footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
    gap: var(--gap);
    padding-bottom: 2.5rem;
}

.footer__logo {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
}

.footer__text { margin-top: .6rem; font-size: .92rem; color: var(--muted); max-width: 42ch; }

.footer__feed {
    display: inline-block;
    margin-top: 1rem;
    font-size: .88rem;
    font-weight: 600;
    color: var(--brand);
}
.footer__feed:hover { text-decoration: underline; text-underline-offset: 3px; }

.footer__title {
    font-family: var(--font-sans);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .8rem;
}

.footer__list { list-style: none; padding: 0; display: grid; gap: .45rem; font-size: .92rem; }
.footer__list a { color: var(--ink-soft); }
.footer__list a:hover { color: var(--brand); }

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    font-size: .84rem;
    color: var(--muted);
}
.footer__bottom a { color: var(--ink-soft); }
.footer__bottom a:hover { color: var(--brand); }

.footer__credit { display: flex; align-items: center; gap: .5rem; }
.footer__credit img { opacity: .75; }

/* Başa dön */

.to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 80;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .22s, transform .22s;
}
.to-top.is-visible { opacity: 1; transform: translateY(0); }
.to-top:hover { color: var(--brand); border-color: var(--brand); }

/* ------------------------------------------------------------ Uyarlanabilir */

@media (max-width: 1024px) {
    .hero__grid { grid-template-columns: minmax(0, 1fr); }
    .hero__lead { padding-bottom: 1.5rem; }
    .article__layout:has(.toc) { grid-template-columns: minmax(0, 1fr); }
    /* Tek sütuna inince içindekiler gövdenin üstüne alınır. */
    .article__layout:has(.toc) .toc { grid-column: 1; grid-row: 1; }
    .article__layout:has(.toc) .article__main { grid-column: 1; grid-row: 2; }
    .toc__inner { position: static; }
    .toc__list { columns: 2; column-gap: 1.5rem; }
}

@media (max-width: 860px) {
    body { font-size: 16px; }

    .menu-toggle { display: grid; }

    .masthead__nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        z-index: 1;
        max-height: calc(100dvh - var(--header-h));
        overflow-y: auto;
        padding: 1rem 1.25rem 1.75rem;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
        transform: translateY(-110%);
        /* Kapalıyken tamamen gizlenmeli; yoksa yukarı kayan panel
           başlık çubuğunun üzerini örtüyor. */
        visibility: hidden;
        pointer-events: none;
        transition: transform .28s cubic-bezier(.3, .8, .3, 1), visibility .28s;
    }
    .masthead__nav.is-open {
        transform: translateY(0);
        visibility: visible;
        pointer-events: auto;
    }

    .nav__list { flex-direction: column; align-items: stretch; gap: .1rem; }
    .nav__link { padding: .75rem .5rem; font-size: 1rem; }
    .nav__trigger { width: 100%; justify-content: space-between; }

    .nav__drop {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 0;
        border-left: 2px solid var(--line);
        border-radius: 0;
        margin-left: .5rem;
        padding: 0 0 .4rem .5rem;
        display: none;
    }
    .nav__drop.is-open { display: block; }

    .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .facts__row { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
    .toc__list { columns: 1; }
}

@media (max-width: 560px) {
    .wrap { width: min(100% - 1.75rem, var(--wrap)); }
    .brand__tag { display: none; }
    .card--row { grid-template-columns: 70px minmax(0, 1fr); }
    .pager__list { order: -1; width: 100%; justify-content: center; }
    .cta { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* ------------------------------------------------------------------ Baskı */

@media print {
    .masthead, .footer, .share, .toc, .to-top, .promo, .pager, .progress { display: none !important; }
    body { background: #fff; color: #000; font-size: 12pt; }
    .article__layout { display: block; }
    .prose a::after { content: ' (' attr(href) ')'; font-size: .85em; word-break: break-all; }
}
