/* Brand Türkiye Project — Editoryal tema */
:root {
  --red: #b52329;
  --red-dark: #8f171c;
  --logo-red: #cd1417; /* logodaki kırmızı */
  --ink: #222423;
  --paper: #f8f7f3;
  --paper-2: #efeee8;
  --line: #dcdcd5;
  --muted: #61645f;
  --navy: #0e1726;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --wrap: 1280px;
  --gutter: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.7 var(--sans); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 3px solid #cba751; outline-offset: 4px; }

.wrap { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; color: #fff; }

.eyebrow { display: block; font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; line-height: 1.6; color: var(--ink); }
.eyebrow i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-right: 10px; vertical-align: 1px; }

.btn-primary { display: inline-flex; align-items: center; gap: 28px; background: var(--red); color: #fff; padding: 17px 22px; font-size: 14px; font-weight: 500; line-height: 1.3; transition: background .2s; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(248, 247, 243, .97); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(20, 24, 22, .18); }
.nav-head, .nav-backdrop { display: none; }
html.no-scroll, html.no-scroll body { overflow: hidden; }
.header-inner { display: flex; align-items: center; gap: 32px; min-height: 92px; }
.brand img { width: 280px; }
.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav li { position: relative; }
.main-nav > ul > li > a { display: block; padding: 10px 14px; font-size: 14px; font-weight: 600; letter-spacing: .1px; position: relative; }
.main-nav > ul > li.is-active > a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--red); }
.has-sub { display: flex; align-items: center; }
.has-sub > a { padding-right: 4px !important; }
.sub-toggle { width: 26px; height: 36px; display: grid; place-items: center; }
.sub-toggle span { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.sub-menu { list-style: none; margin: 0; padding: 10px 0; position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(20, 24, 22, .08); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.sub-menu a { display: block; padding: 9px 20px; font-size: 14px; }
.sub-menu a:hover { background: var(--paper); }
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu, .has-sub.is-open .sub-menu { opacity: 1; visibility: visible; transform: none; }
.menu-toggle { display: none; }
.search-link { order: 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); margin-left: 4px; transition: background .2s, color .2s; }
.search-link:hover, .search-link.is-active { background: var(--paper-2); color: var(--red); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Arama ---------- */
.search-form { display: flex; gap: 0; max-width: 760px; margin-bottom: 28px; }
.search-form input { flex: 1; min-width: 0; font: 18px var(--sans); padding: 16px 18px; border: 1px solid #c9c9c1; border-right: 0; background: #fff; color: var(--ink); border-radius: 0; }
.search-form input:focus { outline: none; border-color: var(--red); }
.search-form .btn-primary { gap: 18px; }
.search-count { color: var(--muted); margin-bottom: 20px; }
.search-results { list-style: none; margin: 0; padding: 0; max-width: 900px; }
.search-results li { border-top: 1px solid var(--line); }
.search-results li:last-child { border-bottom: 1px solid var(--line); }
.search-results a { display: block; padding: 22px 0; }
.search-results h2 { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.3; margin: 6px 0 6px; }
.search-results a:hover h2 { color: var(--red); }
.search-type { font-size: 11px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--red); }
.search-snippet { color: var(--muted); font-size: 15.5px; line-height: 1.7; margin-top: 8px; }
.search-snippet mark { background: #f6e3c4; color: var(--ink); padding: 0 2px; }

/* ---------- Açılır arama penceresi ---------- */
.search-dialog { width: min(720px, calc(100vw - 32px)); max-height: min(640px, calc(100vh - 80px)); margin: 10vh auto auto; padding: 0; border: 0; border-radius: 6px;
  background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(10, 14, 12, .45); overflow: hidden; flex-direction: column; }
.search-dialog[open] { display: flex; animation: sd-in .18s ease-out; }
.search-dialog::backdrop { background: rgba(16, 20, 18, .5); backdrop-filter: blur(3px); }
@keyframes sd-in { from { opacity: 0; transform: translateY(-8px) scale(.99); } to { opacity: 1; transform: none; } }
.sd-form { display: flex; align-items: center; gap: 12px; padding: 0 14px 0 20px; border-bottom: 1px solid var(--line); background: #fff; flex: none; }
.sd-form svg { color: var(--muted); flex: none; }
.sd-input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: 19px var(--sans); color: var(--ink); padding: 20px 0; }
.sd-input::-webkit-search-cancel-button { display: none; }
.sd-close { flex: none; font-size: 12px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 4px 8px; }
.sd-close:hover { color: var(--ink); border-color: var(--muted); }
.sd-body { overflow-y: auto; overscroll-behavior: contain; padding: 8px 0; flex: 1; }
.sd-status { padding: 14px 20px; font-size: 14.5px; color: var(--muted); }
.sd-status:empty { display: none; }
.sd-results { list-style: none; margin: 0; padding: 0; }
.sd-results a { display: block; padding: 13px 20px; border-left: 3px solid transparent; }
.sd-results a:hover, .sd-results [aria-selected="true"] a { background: #fff; border-left-color: var(--red); color: inherit; }
.sd-type { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--red); }
.sd-title { display: block; font-family: var(--serif); font-size: 19px; line-height: 1.35; margin-top: 3px; }
.sd-authors { display: block; font-size: 13px; font-weight: 600; margin-top: 3px; }
.sd-snippet { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.6; color: var(--muted); margin-top: 4px; }
.sd-snippet mark { background: #f6e3c4; color: var(--ink); padding: 0 1px; }
.sd-all { display: block; margin: 6px 20px 8px; padding: 12px 0 4px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--red); }
.sd-all[hidden] { display: none; }
.sd-foot { display: flex; gap: 18px; padding: 10px 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); flex: none; background: var(--paper-2); }
.sd-foot kbd { font: 600 11px var(--sans); border: 1px solid #cfcfc7; border-bottom-width: 2px; border-radius: 3px; padding: 1px 5px; margin-right: 3px; background: #fff; }
.sd-loading .sd-form svg { animation: sd-pulse .9s ease-in-out infinite; }
@keyframes sd-pulse { 50% { opacity: .35; } }
@media (max-width: 640px) {
  .search-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .sd-foot { display: none; }
  .sd-input { font-size: 17px; }
}

/* ---------- İletişim ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 72px; align-items: start; }
.contact-form { max-width: 720px; }
.contact-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form .f { margin-bottom: 20px; }
.contact-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.contact-form label small { font-weight: 400; color: var(--muted); }
.contact-form input, .contact-form textarea { width: 100%; font: 16px/1.6 var(--sans); padding: 13px 14px; border: 1px solid #c9c9c1; background: #fff; color: var(--ink); border-radius: 0; }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(181, 35, 41, .12); }
.consent { display: flex !important; gap: 12px; align-items: flex-start; font-weight: 400 !important; font-size: 14.5px !important; line-height: 1.6; color: var(--muted); margin: 4px 0 26px !important; }
.consent input { width: 18px !important; height: 18px; margin-top: 3px; accent-color: var(--red); flex: none; }
.consent a { color: var(--red); text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 16px 20px; margin-bottom: 24px; border-left: 3px solid; font-size: 15.5px; }
.notice-ok { background: #eaf4ec; border-color: #2f7a45; }
.notice-error { background: #fbeaea; border-color: var(--red); color: #6f161a; }
.contact-aside { border-top: 2px solid var(--red); padding-top: 22px; }
.contact-aside p { margin-top: 10px; font-size: 14.5px; line-height: 1.7; color: var(--muted); }
.text-link { color: var(--red); font-weight: 600; }

/* ---------- Hero / manşet ---------- */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; padding-top: 48px; padding-bottom: 88px; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
.hero-quote { margin: 30px 0 30px; padding: 0; }
.hero-quote h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(42px, 5vw, 72px); line-height: 1.1; letter-spacing: -1.8px; }
.hero-quote cite { display: block; margin-top: 18px; font-style: normal; font-size: 14px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.hero-quote cite::before { content: ''; display: inline-block; width: 36px; height: 1px; background: var(--red); vertical-align: middle; margin-right: 14px; }
.hero-text { max-width: 540px; border-top: 1px solid var(--line); padding-top: 26px; }
.hero-text p { font-size: 17px; line-height: 1.8; color: var(--muted); }
.hero-text p + p { margin-top: 14px; }
.hero-text p:first-child { font-family: var(--serif); font-size: 22px; line-height: 1.45; color: var(--ink); }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn-outline { display: inline-flex; align-items: center; gap: 28px; padding: 16px 22px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; line-height: 1.3; transition: background .2s, border-color .2s; }
.btn-outline:hover { background: #000; border-color: #000; color: #fff; }
/* Yalnızca telefondaki ana sayfa parçaları (Öneri B) */
.m-book, .m-areas, .m-progress, .m-view, .label-short, .article-pos, .article-tag { display: none; }
/* Kapak şeffaf PNG olabilir: gölge kutuya değil görselin kendi şekline uygulanır */
.hero-book { margin: 0; justify-self: center; width: 100%; max-width: 430px; position: relative; }
.hero-book img { width: 100%; filter: drop-shadow(0 24px 28px rgba(14, 23, 38, .28)); }
.hero-book::after { content: ''; position: absolute; left: -18px; top: 28px; bottom: 28px; width: 3px; background: var(--red); }

/* ---------- Makale listesi ---------- */
.articles { padding-top: 56px; padding-bottom: 96px; border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.section-head h2 { font-family: var(--serif); font-weight: 500; font-size: 42px; letter-spacing: -1px; line-height: 1.2; margin-top: 12px; }
.section-count { font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.article-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 40px; }
.article-item { border-top: 1px solid var(--line); }
.article-item > a { display: flex; flex-direction: column; height: 100%; padding: 26px 0 34px; }
.article-no { font-size: 12px; font-weight: 600; color: var(--red); letter-spacing: 1px; }
.article-item h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.32; letter-spacing: -.3px; margin: 14px 0 12px; transition: color .2s; }
.article-authors { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.5; }
.article-excerpt { font-size: 15px; line-height: 1.7; color: var(--muted); margin-top: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-more { margin-top: auto; padding-top: 20px; font-size: 13px; font-weight: 600; display: inline-flex; gap: 12px; color: var(--ink); }
.article-item > a:hover h3, .article-item > a:hover .article-more { color: var(--red); }

/* ---------- İç sayfalar ---------- */
.text-page { padding-top: 56px; padding-bottom: 110px; min-height: 52vh; }
.page-head { max-width: 900px; padding-bottom: 36px; margin-bottom: 44px; border-bottom: 1px solid var(--line); }
.page-head h1, .article-head h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(31px, calc(4.4vw - 5px), 55px); line-height: 1.12; letter-spacing: -1.2px; margin-top: 18px; }
.page-head-empty { border-bottom: 0; }
.page-head-empty::after { content: ''; display: block; width: 64px; height: 2px; background: var(--red); margin-top: 32px; }
.lead { font-size: 18px; color: var(--muted); margin-bottom: 30px; }
.breadcrumb { font-size: 13px; color: var(--muted); display: flex; gap: 10px; margin-bottom: 26px; }
.breadcrumb a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }

.prose { font-size: 18px; line-height: 1.85; color: #33352f; }
.prose-narrow { max-width: 760px; }
.prose p { margin: 0 0 1.15em; }
.prose h2, .prose h3 { font-family: var(--serif); font-weight: 500; line-height: 1.3; margin: 1.6em 0 .6em; color: var(--ink); }
.prose strong { color: var(--ink); }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.15em; }
.prose img { margin: 1.6em 0; border-radius: 2px; }
.prose blockquote { margin: 0 0 1.15em; padding-left: 20px; border-left: 3px solid var(--red); color: var(--muted); }
.prose li { margin-bottom: .35em; }
.profile-body img { width: 160px; height: 160px; object-fit: cover; border-radius: 50%; margin: 0 0 1.4em; }
.article-date { margin-top: 8px; font-size: 14px; color: var(--muted); }
.article-layout.no-aside { grid-template-columns: minmax(0, 1fr); }
.team-list a { display: flex; align-items: baseline; gap: 6px; }
.team-list a em { font-style: normal; font-family: var(--sans); font-size: 14px; color: var(--red); margin-left: auto; }
.text-page .article-list { margin-top: 8px; }
.prose .sep { text-align: center; letter-spacing: 10px; color: var(--red); margin: 1.6em 0; }

.team-list { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.team-list li { padding: 16px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 22px; line-height: 1.4; }
.team-list li:first-child { padding-top: 0; }
.team-list span { font-family: var(--sans); font-size: 14px; color: var(--muted); margin-left: 6px; }

.area-list { list-style: none; margin: 0; padding: 0; max-width: 900px; counter-reset: a; }
.area-list a { display: flex; align-items: baseline; gap: 28px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.area-list li:first-child a { border-top: 1px solid var(--line); }
.area-no { font-size: 12px; font-weight: 600; color: var(--red); letter-spacing: 1px; min-width: 22px; }
.area-name { font-family: var(--serif); font-size: 30px; line-height: 1.25; flex: 1; }
.area-arrow { font-size: 20px; transition: transform .2s; }
.area-list a:hover .area-arrow { transform: translate(3px, -3px); }

/* ---------- Makale detay ---------- */
.article-page { padding-top: 48px; padding-bottom: 96px; }
.article-head { max-width: 980px; padding-bottom: 34px; border-bottom: 1px solid var(--line); margin-bottom: 48px; }
.article-byline { margin-top: 22px; font-size: 16px; font-weight: 600; }
.article-main { min-width: 0; }
/* Görsel metin sütunu (760 px) genişliğinde bir alanda ortalanır */
.article-figure { margin: 0 0 40px; max-width: 760px; }
.article-figure img { width: auto; max-width: min(100%, 680px); max-height: 56vh; margin: 0 auto; border-radius: 8px; box-shadow: 0 20px 40px -28px rgba(14, 23, 38, .45); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 72px; align-items: start; }
.article-layout .prose { max-width: 760px; }
.article-aside { position: sticky; top: 120px; border-top: 2px solid var(--red); padding-top: 22px; }
.full-title { font-family: var(--serif); font-size: 20px; line-height: 1.45; margin: 10px 0 24px; }
.article-aside .btn-primary { width: 100%; justify-content: space-between; }
.aside-note { margin-top: 22px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.article-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 72px; border-top: 1px solid var(--line); padding-top: 28px; }
.article-pager a { display: flex; flex-direction: column; gap: 8px; }
.article-pager .next { text-align: right; grid-column: 2; }
.article-pager span { font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--red); }
.article-pager strong { font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.35; }

/* ---------- Kütüphane ---------- */
.library-head { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr); }
.library-intro { max-width: 720px; margin-top: 22px; font-size: 17.5px; line-height: 1.8; color: var(--muted); }
.library-intro p + p { margin-top: 10px; }
.library-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin-bottom: 18px; }
.library-search { display: flex; align-items: center; flex: 1 1 420px; max-width: 560px; background: #fff; border: 1px solid #c9c9c1; padding-left: 16px; transition: border-color .2s, box-shadow .2s; }
.library-search:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(181, 35, 41, .12); }
.library-search svg { color: var(--muted); flex: none; }
.library-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: 16.5px var(--sans); color: var(--ink); padding: 15px 14px; }
.library-submit { align-self: stretch; padding: 0 22px; background: var(--red); color: #fff; font-size: 14px; font-weight: 500; }
.library-submit:hover { background: var(--red-dark); }
.library-tools.is-live .library-submit { display: none; }
.library-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-size: 14px; font-weight: 500; transition: background .2s, border-color .2s, color .2s; }
.chip span { font-size: 12px; font-weight: 600; color: var(--muted); }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-active span { color: #c9cac4; }
.library-count { font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); padding-bottom: 18px; border-bottom: 1px solid var(--line); }

.doc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.doc { border-bottom: 1px solid var(--line); }
.doc[hidden] { display: none; }
.doc > a { display: flex; flex-direction: column; height: 100%; padding: 30px 0 30px; position: relative; }
.doc > a::before { content: ''; position: absolute; left: 0; top: -1px; width: 0; height: 2px; background: var(--red); transition: width .3s ease; }
.doc > a:hover::before, .doc > a:focus-visible::before { width: 64px; }
.doc-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; }
.doc-file { position: relative; width: 40px; height: 50px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 7px; background: #fff; border: 1px solid #cfcfc7; font-size: 9.5px; font-weight: 700; letter-spacing: .6px; color: var(--red);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); transition: border-color .2s; }
.doc-file::after { content: ''; position: absolute; top: -1px; right: -1px; width: 12px; height: 12px; background: linear-gradient(225deg, var(--paper) 50%, #cfcfc7 50%, #e7e6e0 calc(50% + 1px)); }
.doc-no { font-size: 12px; font-weight: 600; letter-spacing: 1px; color: var(--muted); }
.doc-cat { font-size: 11px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--red); }
.doc-title { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.34; letter-spacing: -.2px; margin: 10px 0 0; transition: color .2s; }
.doc-source { margin-top: 12px; font-size: 13.5px; font-weight: 600; line-height: 1.5; }
.doc-desc { margin-top: 10px; font-size: 15px; line-height: 1.7; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.doc-foot { margin-top: auto; padding-top: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.doc-meta { font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.doc-host { color: #8a8d86; }
.doc-open { flex: none; display: inline-flex; gap: 10px; font-size: 13px; font-weight: 600; }
.doc > a:hover .doc-title, .doc > a:hover .doc-open { color: var(--red); }
.doc > a:hover .doc-file { border-color: var(--red); }
.library-empty { padding: 48px 0; border-bottom: 1px solid var(--line); }
.library-empty[hidden] { display: none; }
.library-empty p { font-family: var(--serif); font-size: 24px; margin-bottom: 10px; }
.library-note { margin-top: 28px; max-width: 720px; font-size: 13.5px; line-height: 1.7; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: #1b1d1c; color: #d9d9d3; padding: 64px 0 30px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid #3a3d3b; }
.footer-brand img { width: 230px; }
.footer-about { max-width: 480px; }
.footer-text { margin-top: 20px; font-size: 15px; line-height: 1.75; color: #fff; }
.footer-text + .footer-text { margin-top: 10px; }
.social { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.social a, .social span { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #3a3d3b; border-radius: 50%; color: #d9d9d3; transition: color .2s, border-color .2s, background .2s; }
.social a:hover { color: #fff; border-color: var(--logo-red); background: var(--logo-red); }
.social .is-empty { opacity: .4; }
.footer-nav { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(180px, auto)); gap: 32px 72px; }
.footer-group h2 { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; color: #8d908a; margin: 0 0 16px; }
.footer-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-nav a { font-size: 15px; font-weight: 500; color: #fff; display: inline-flex; gap: 10px; }
.footer-nav a span { color: #ff8a8e; font-size: 12px; }
.footer-nav a:hover { color: #ff8a8e; }
.footer-bottom { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 30px; font-size: 13px; text-align: center; }
.footer-bottom .social { margin-bottom: 6px; }
.footer-bottom p { color: #a4a7a1; }
.legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.legal a:hover { color: #fff; }

/* ---------- Duyarlı ---------- */
@media (max-width: 1180px) {
  :root { --gutter: 36px; }
  .brand img { width: 240px; }
  .main-nav > ul > li > a { padding: 10px 10px; font-size: 13.5px; }
  .hero { gap: 40px; }
  .article-list { grid-template-columns: repeat(2, 1fr); }
  .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; }
}

@media (max-width: 900px) {
  /* backdrop-filter sabit konumlu paneli başlığa hapseder; mobilde kapalı */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  /* Hamburger düğmesi */
  .menu-toggle { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; border-radius: 50%; }
  .menu-toggle:hover { background: var(--paper-2); }
  .menu-toggle-icon, .menu-toggle-icon::before, .menu-toggle-icon::after { display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; position: relative; }
  .menu-toggle-icon::before, .menu-toggle-icon::after { content: ''; position: absolute; left: 0; }
  .menu-toggle-icon::before { top: -7px; }
  .menu-toggle-icon::after { top: 7px; }
  .header-inner { min-height: 72px; gap: 0; }

  /* Sağdan kayan menü paneli: sayfa içeriğini itmez, üstüne açılır */
  .main-nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(88vw, 380px); height: 100vh; height: 100dvh; margin: 0; padding: 0 24px 32px;
    background: var(--paper); z-index: 70; overflow-y: auto; overscroll-behavior: contain; transform: translateX(100%); visibility: hidden;
    transition: transform .28s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .28s; box-shadow: -20px 0 50px rgba(14, 18, 16, .18); }
  .site-header.menu-open .main-nav { transform: none; visibility: visible; transition: transform .28s cubic-bezier(.2, .7, .2, 1), visibility 0s; }
  .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 60; background: rgba(16, 20, 18, .45); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s linear .25s; }
  .nav-backdrop.is-visible { opacity: 1; visibility: visible; transition: opacity .25s, visibility 0s; }
  .nav-head { display: flex; align-items: center; justify-content: space-between; min-height: 72px; border-bottom: 1px solid var(--line); margin-bottom: 8px; position: sticky; top: 0; background: var(--paper); z-index: 1; }
  .nav-head img { width: 170px; }
  .nav-close { width: 44px; height: 44px; margin-right: -10px; border-radius: 50%; display: grid; place-items: center; }
  .nav-close:hover { background: var(--paper-2); }
  .nav-close span, .nav-close span::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
  .nav-close span::after { content: ''; transform: rotate(90deg); }

  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--line); }
  .main-nav > ul > li > a { padding: 16px 0; font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: 0; }
  .main-nav > ul > li.is-active > a::after { display: none; }
  .main-nav > ul > li.is-active > a { color: var(--red); }
  .has-sub { flex-wrap: wrap; }
  .has-sub > a { flex: 1; }
  .sub-toggle { width: 44px; height: 44px; margin-right: -10px; }
  .sub-menu { position: static; width: 100%; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 12px; }
  .has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { display: none; }
  .has-sub.is-open .sub-menu { display: block; }
  .has-sub.is-open .sub-toggle span { transform: rotate(-135deg) translateY(-2px); }
  .sub-menu a { padding: 9px 0 9px 14px; font-size: 15.5px; border-left: 2px solid var(--line); }
  .sub-menu a:hover { background: transparent; border-left-color: var(--red); }

  .hero { grid-template-columns: 1fr; padding-top: 24px; padding-bottom: 64px; }
  .hero-book { max-width: 300px; }
  .hero-book::after { display: none; }
  .article-layout { grid-template-columns: 1fr; gap: 40px; }
  .article-aside { position: static; }
  .contact-layout { grid-template-columns: 1fr; gap: 36px; }
  .search-link { order: 0; margin-left: auto; margin-right: 2px; width: 44px; height: 44px; }
  .footer-top { flex-direction: column; }
  .footer-nav { grid-template-columns: repeat(min(var(--cols, 2), 2), auto); gap: 32px 48px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 15px; }
  .brand img { width: 215px; }
  .hero-quote { margin: 22px 0; }
  .hero-quote h1 { font-size: 40px; letter-spacing: -1px; }
  .hero-text p { font-size: 16px; }
  .hero-text p:first-child { font-size: 20px; }
  .articles { padding-top: 40px; padding-bottom: 64px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 20px; }
  .section-head h2 { font-size: 32px; }
  .article-list { grid-template-columns: 1fr; }
  .article-item h3 { font-size: 22px; }
  .text-page, .article-page { padding-top: 32px; padding-bottom: 72px; }
  .page-head { padding-bottom: 24px; margin-bottom: 28px; }
  .prose { font-size: 16.5px; line-height: 1.8; }
  .team-list li { font-size: 19px; padding: 13px 0; }
  .area-list a { gap: 16px; padding: 20px 0; }
  .area-name { font-size: 24px; }
  .article-pager { grid-template-columns: 1fr; gap: 24px; }
  .article-figure { margin: -8px 0 28px; }
  .article-figure img { width: 100%; max-height: none; border-radius: 6px; }
  .article-pager .next { grid-column: 1; text-align: left; }
  .footer-nav { grid-template-columns: 1fr; gap: 28px; }
  .contact-form .row-2 { grid-template-columns: 1fr; gap: 0; }
  .search-form input { font-size: 16px; padding: 14px; }
  .search-form .btn-primary { padding: 14px 16px; gap: 10px; }
  .search-results h2 { font-size: 21px; }
  .library-intro { font-size: 16px; }
  .library-search { flex-basis: 100%; }
  .library-filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .library-filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .doc-grid { grid-template-columns: 1fr; }
  .doc > a { padding: 24px 0; }
  .doc-top { margin-bottom: 16px; }
  .doc-title { font-size: 20px; }
}


/* ---------- Telefon ana sayfası (Öneri B) ---------- */
@media (max-width: 640px) {
  .m-link { color: var(--logo-red); font-size: 13px; font-weight: 600; }
  .hero { padding-top: 24px; padding-bottom: 26px; gap: 0; background: linear-gradient(180deg, var(--paper) 0, var(--paper-2) 100%); }
  .hero-book { display: none; }
  .hero-quote { margin: 16px 0 0; }
  .hero-quote h1 { font-size: clamp(32px, 9.6vw, 42px); letter-spacing: -.9px; }
  .hero-quote cite { margin-top: 10px; font-size: 12.5px; color: var(--logo-red); }
  .hero-quote cite::before { content: '—\00a0'; width: auto; height: auto; background: none; margin: 0; vertical-align: baseline; }
  .hero-text { border-top: 0; padding-top: 0; margin-top: 18px; max-width: none; }
  .hero-text p:first-child { font-size: 19px; }
  .hero-text p { font-size: 15px; line-height: 1.7; }
  .hero-text p + p { margin-top: 8px; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
  .hero-actions .btn-primary { gap: 8px; padding: 11px 16px; border-radius: 999px; background: var(--logo-red); font-weight: 600; }
  .hero-actions .btn-primary:hover { background: var(--red-dark); }
  .hero-actions .btn-outline { gap: 8px; padding: 10px 16px; border-radius: 999px; font-weight: 600; }
  .label-long { display: none; }
  .label-short { display: inline; }

  .m-book { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: center; margin: 22px var(--gutter) 0; padding: 16px;
    background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--logo-red); }
  .m-book img { filter: drop-shadow(0 10px 12px rgba(14, 23, 38, .3)); }
  .m-book-title { display: block; font-family: var(--serif); font-size: 17px; line-height: 1.35; color: var(--ink); }
  .m-book .m-link { display: inline-block; margin-top: 8px; }
  .m-book:hover .m-book-title { color: var(--logo-red); }

  .m-areas { display: block; padding: 26px 0 6px; }
  .m-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
  .m-head h2, .articles .section-head h2 { font-family: var(--serif); font-weight: 500; font-size: 25px; letter-spacing: -.4px; line-height: 1.2; margin: 0; }
  .m-chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 var(--gutter) 4px; scroll-snap-type: x proximity; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
  .m-chips::-webkit-scrollbar { display: none; }
  .m-chips a { flex: none; scroll-snap-align: start; display: inline-flex; gap: 8px; align-items: center; padding: 9px 15px; border: 1px solid var(--line);
    border-radius: 999px; background: #fff; font-size: 14px; font-weight: 500; }
  .m-chips a span { font-size: 12px; font-weight: 600; color: var(--muted); }
  .m-chips a:hover { border-color: var(--logo-red); color: var(--logo-red); }

  .articles { padding-top: 26px; padding-bottom: 40px; border-top: 0; }
  .articles .section-head { flex-direction: row; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
  .articles .section-head .eyebrow, .articles .section-count { display: none; }
  .m-view { display: inline; }
  .article-list { display: flex; gap: 12px; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 18px;
    scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; }
  .article-list::-webkit-scrollbar { display: none; }
  .article-item { flex: 0 0 84%; scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--logo-red); }
  .article-item > a { min-height: 300px; padding: 20px 20px 18px; }
  .article-top { display: flex; justify-content: space-between; align-items: flex-start; }
  .article-no { font-family: var(--serif); font-size: 30px; font-weight: 500; line-height: 1; letter-spacing: 0; color: var(--logo-red); }
  .article-pos { display: inline; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .6px; }
  .article-tag { display: block; margin-top: 14px; font-size: 10.5px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--logo-red); }
  .article-item h3 { font-size: 21px; line-height: 1.3; margin: 6px 0 0; }
  .article-authors { margin-top: 8px; font-size: 13px; }
  .article-excerpt { font-size: 14px; line-height: 1.65; margin-top: 10px; -webkit-line-clamp: 4; }
  .article-more { padding-top: 14px; font-size: 13.5px; }
  .article-item > a:hover h3, .article-item > a:hover .article-more { color: var(--logo-red); }
  .m-progress { display: block; height: 2px; background: var(--line); position: relative; }
  .m-progress i { position: absolute; left: 0; top: 0; bottom: 0; width: 6%; background: var(--logo-red); transition: width .15s; }

  /* Liste görünümü */
  .articles.is-list .article-list { display: block; overflow: visible; margin: 0; padding: 0; }
  .articles.is-list .article-item { background: none; border: 0; border-bottom: 1px solid var(--line); }
  .articles.is-list .article-item > a { display: grid; grid-template-columns: 30px 1fr; gap: 4px 10px; min-height: 0; padding: 14px 0; }
  .articles.is-list .article-top { grid-row: 1 / span 2; }
  .articles.is-list .article-no { font-family: var(--sans); font-size: 12px; font-weight: 600; padding-top: 4px; }
  .articles.is-list .article-pos, .articles.is-list .article-tag, .articles.is-list .article-excerpt, .articles.is-list .article-more, .articles.is-list .m-progress { display: none; }
  .articles.is-list .article-item h3 { font-size: 17.5px; line-height: 1.32; margin: 0; }
  .articles.is-list .article-authors { grid-column: 2; margin-top: 0; font-size: 12.5px; color: var(--muted); }
}

/* Çok dar telefonlar (≤ 360 px): logo arama düğmesine değmesin */
@media (max-width: 360px) {
  .brand img { width: 190px; }
}

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