/* =========================================================
   Mezhep.Org — tasarım sistemi
   ========================================================= */
:root {
  --bg: #f7f4ee;
  --bg-2: #efe9df;
  --surface: #ffffff;
  --surface-2: #fbf9f5;
  --ink: #14211f;
  --ink-2: #3c4a47;
  --muted: #6b7774;
  --line: #e3ddd2;
  --line-2: #d6cfc2;
  --brand: #2a4862;
  --brand-2: #355b7c;
  --brand-ink: #ffffff;
  --brand-soft: #e3eaf2;
  --gold: #b88a2e;
  --gold-soft: #f5ecd7;
  --rose: #a2463b;
  --rose-soft: #f6e4e0;
  --indigo: #1f6f6a;
  --indigo-soft: #dff0ed;
  --shadow-sm: 0 1px 2px rgba(20, 33, 31, .06), 0 1px 1px rgba(20, 33, 31, .04);
  --shadow: 0 10px 30px -12px rgba(20, 33, 31, .18), 0 2px 6px rgba(20, 33, 31, .05);
  --shadow-lg: 0 30px 60px -20px rgba(15, 50, 44, .35);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --header-h: 72px;
  --container: 1240px;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --arabic: "Amiri", "Noto Naskh Arabic", serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c121a; --bg-2: #101823; --surface: #141e2a; --surface-2: #182432;
    --ink: #eef2f6; --ink-2: #c4ced9; --muted: #8e9cad; --line: #223042; --line-2: #2d3e54;
    --brand: #8fb5df; --brand-2: #abc8ea; --brand-ink: #0b1622; --brand-soft: #1c2c40;
    --gold: #e0b75a; --gold-soft: #3a2f17; --rose: #ec8b7d; --rose-soft: #3d221e;
    --indigo: #7fd1c7; --indigo-soft: #16302e;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 12px 30px -12px rgba(0,0,0,.6);
    --shadow-lg: 0 30px 60px -20px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c121a; --bg-2: #101823; --surface: #141e2a; --surface-2: #182432;
  --ink: #eef2f6; --ink-2: #c4ced9; --muted: #8e9cad; --line: #223042; --line-2: #2d3e54;
  --brand: #8fb5df; --brand-2: #abc8ea; --brand-ink: #0b1622; --brand-soft: #1c2c40;
  --gold: #e0b75a; --gold-soft: #3a2f17; --rose: #ec8b7d; --rose-soft: #3d221e;
  --indigo: #7fd1c7; --indigo-soft: #16302e;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 12px 30px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 30px 60px -20px rgba(0,0,0,.7);
  color-scheme: dark;
}

/* ---------- temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* "hidden" özniteliği bileşenlerin display kuralına (ör. .btn) her zaman üstün gelir */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.65 var(--sans); font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p a, .prose a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .5em; font-variation-settings: "opsz" 72, "SOFT" 30; }
h1 { font-size: clamp(2.2rem, 4.6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; }
::selection { background: var(--brand); color: var(--brand-ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--brand); color: var(--brand-ink); padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header .container { display: flex; align-items: center; gap: 20px; height: 100%; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; letter-spacing: -.01em; flex-shrink: 0; }
.brand-logo { height: 40px; width: auto; border-radius: 10px; box-shadow: var(--shadow-sm); flex-shrink: 0; }
.hero-logo { display: block; width: 100px; height: 68px; margin: 0 auto 6px; border-radius: 14px; box-shadow: var(--shadow); }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.brand-mark svg { width: 24px; height: 24px; }
.brand small { display: block; font: 500 .7rem/1 var(--sans); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-top: 4px; font-size: .75rem; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 999px; font-size: .92rem; font-weight: 500; color: var(--ink-2); transition: background .2s, color .2s; white-space: nowrap; }
.nav a:hover { background: var(--bg-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
.nav a[aria-current="true"] { color: var(--brand); }
/* alt menü (panelde üst kategorisi seçilmiş kategoriler) */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a { padding-right: 4px; }
.nav-sub-btn { width: 22px; height: 30px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); border-radius: 8px; cursor: pointer; padding: 0; }
.nav-sub-btn svg { width: 14px; height: 14px; transform: rotate(90deg); transition: transform .2s; }
.nav-sub-btn:hover { color: var(--ink); background: var(--bg-2); }
.nav-sub { position: absolute; top: 100%; left: 0; z-index: 60; min-width: 230px; display: flex; flex-direction: column; gap: 2px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-sub a { border-radius: var(--radius-xs); padding: 9px 12px; white-space: normal; }
.nav-item:hover .nav-sub, .nav-item:focus-within .nav-sub, .nav-item.open .nav-sub { opacity: 1; visibility: visible; transform: none; }
.nav-item.open .nav-sub-btn svg, .nav-item:hover .nav-sub-btn svg { transform: rotate(-90deg); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: transform .2s var(--ease), border-color .2s; }
.icon-btn:hover { border-color: var(--line-2); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }
.search-trigger { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: inherit; font-size: .88rem; cursor: pointer; min-width: 200px; transition: border-color .2s; }
.search-trigger:hover { border-color: var(--line-2); }
.search-trigger svg { width: 16px; height: 16px; }
.search-trigger kbd { margin-left: auto; font: 500 .72rem var(--sans); padding: 3px 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); }
.menu-btn { display: none; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}

@media (max-width: 1360px) {
  .nav a { padding: 8px 10px; }
  .site-header .container { gap: 14px; }
}
@media (max-width: 1360px) and (min-width: 1101px) {
  body:has([data-account]) .search-trigger { min-width: 0; width: 40px; padding: 0; justify-content: center; }
  body:has([data-account]) .search-trigger span, body:has([data-account]) .search-trigger kbd { display: none; }
}
@media (max-width: 1120px) {
  .search-trigger { min-width: 0; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .search-trigger { width: 40px; padding: 0; justify-content: center; }
}
@media (max-width: 1100px) {
  .menu-btn { display: grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px 24px 28px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; pointer-events: none; visibility: hidden; transition: .25s var(--ease), visibility 0s .25s;
  }
  .nav a { padding: 12px 14px; font-size: 1rem; border-radius: 12px; }
  body.menu-open .nav { transform: none; opacity: 1; pointer-events: auto; visibility: visible; transition: .25s var(--ease), visibility 0s; z-index: 49; }
  /* menü açıkken arka plan karartılır ve kaydırılmaz (app.js) */
  body.menu-open::after { content: ""; position: fixed; inset: var(--header-h) 0 0; background: rgba(10, 18, 26, .35); z-index: 45; }
  html.menu-lock, html.menu-lock body { overflow: hidden; }
  .nav { max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; }
  /* tablet ve telefonda alt kategoriler üst öğenin altında, girintili ve her zaman açık */
  .nav-item { flex-direction: column; align-items: stretch; }
  .nav-item > a { padding-right: 14px; }
  .nav-sub-btn { display: none; }
  .nav-sub { position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; padding: 0 0 4px 14px; margin-left: 14px;
    border: 0; border-left: 2px solid var(--line); border-radius: 0; box-shadow: none; background: none; }
  .nav-sub::before { display: none; }
  .nav-sub a { font-size: .95rem; color: var(--muted); }
  .header-actions { margin-left: auto; }
}

/* ---------- butonlar, rozetler ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: .95rem; border: 1px solid transparent; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, background .2s; font-family: inherit; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 8px 20px -8px color-mix(in oklab, var(--brand) 70%, transparent); }
.btn-primary:hover { transform: translateY(-2px); background: var(--brand-2); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--line-2); transform: translateY(-2px); }
.btn-sm { height: 38px; padding: 0 16px; font-size: .88rem; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; letter-spacing: .01em; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; }
.badge.b-brand { background: var(--brand-soft); color: var(--brand); }
.badge.b-gold { background: var(--gold-soft); color: var(--gold); }
.badge.b-rose { background: var(--rose-soft); color: var(--rose); }
.badge.b-indigo { background: var(--indigo-soft); color: var(--indigo); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 110px) 0 clamp(56px, 7vw, 96px); overflow: hidden; isolation: isolate; }
.hero-pattern { position: absolute; inset: 0; z-index: -1; color: var(--brand); opacity: .07; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 80% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 80% 30%, #000 30%, transparent 75%); }
.hero-glow { position: absolute; z-index: -1; width: 620px; height: 620px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, color-mix(in oklab, var(--gold) 30%, transparent), transparent 65%); filter: blur(20px); }
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--brand); font-weight: 500; }
.hero-lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); max-width: 600px; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 30px; box-shadow: var(--shadow-lg); }
.hero-card .arabic { font-family: var(--arabic); font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.4; color: var(--brand); text-align: center; direction: rtl; margin: 4px 0 14px; }
.hero-card .quote { font-family: var(--serif); font-size: 1.05rem; color: var(--ink-2); text-align: center; font-style: italic; margin: 0 0 24px; }
.hero-card .sig { text-align: center; font-size: .85rem; color: var(--muted); }
.hero-card .sig strong { color: var(--ink); font-weight: 600; }
.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 22px; }
.stat { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.stat b { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.stat span { font-size: .8rem; color: var(--muted); font-weight: 500; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- section ---------- */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section.alt { background: var(--bg-2); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 8px 0 0; color: var(--muted); max-width: 560px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brand); font-size: .95rem; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(170px, auto); gap: 16px; }
.tile { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
a.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.tile .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: auto; }
.tile .ic svg { width: 22px; height: 22px; }
.tile h3 { margin: 18px 0 6px; }
.tile p { margin: 0; color: var(--muted); font-size: .92rem; }
.tile .num { font-family: var(--serif); font-size: 3rem; line-height: 1; font-weight: 600; letter-spacing: -.03em; margin-top: 14px; }
.tile.wide { grid-column: span 2; }
.tile.tall { grid-row: span 2; }
.tile.feature { background: var(--brand); color: var(--brand-ink); border-color: transparent; }
.tile.feature p { color: color-mix(in oklab, var(--brand-ink) 78%, transparent); }
.tile.feature .ic { background: color-mix(in oklab, var(--brand-ink) 16%, transparent); color: var(--brand-ink); }
.tile.feature .pattern { position: absolute; right: -40px; bottom: -40px; width: 260px; opacity: .14; color: var(--brand-ink); }
.tile.gold .ic { background: var(--gold-soft); color: var(--gold); }
.tile.rose .ic { background: var(--rose-soft); color: var(--rose); }
.tile.indigo .ic { background: var(--indigo-soft); color: var(--indigo); }
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .tile.wide { grid-column: auto; } .tile.tall { grid-row: auto; } }

/* ---------- kartlar ---------- */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
a.card:hover, .card.hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card h3 { font-size: 1.12rem; margin: 0; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-size: .92rem; }
.card .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); }
.card .meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
.card .foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .82rem; color: var(--muted); }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.news-card .thumb { margin: -22px -22px 6px; aspect-ratio: 16/9; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; background: var(--bg-2); display: grid; place-items: center; color: var(--brand); }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-card:hover .thumb img { transform: scale(1.04); }
.news-card .thumb svg { width: 48px; height: 48px; opacity: .35; }
.date-chip { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 58px; height: 62px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); flex-shrink: 0; }
.date-chip b { font-family: var(--serif); font-size: 1.5rem; line-height: 1; }
.date-chip span { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

.person { flex-direction: row; align-items: center; gap: 14px; }
.avatar { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 1.1rem; flex-shrink: 0; color: var(--brand); background: var(--brand-soft); }
.avatar.lg { width: 96px; height: 96px; border-radius: 28px; font-size: 2.2rem; }
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.person .info { min-width: 0; }
.person h3 { font-size: 1.02rem; }
.person .rank { font-size: .78rem; color: var(--brand); font-weight: 600; }
.person .uni { font-size: .84rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- liste / feed ---------- */
.feed { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feed-item { display: flex; gap: 18px; padding: 18px 22px; border-top: 1px solid var(--line); align-items: flex-start; transition: background .2s; }
.feed-item:first-child { border-top: 0; }
a.feed-item:hover { background: var(--surface-2); }
.feed-item .body { min-width: 0; flex: 1; }
.feed-item h3 { font-size: 1.05rem; margin: 2px 0 6px; line-height: 1.35; }
.feed-item p { margin: 0; color: var(--muted); font-size: .9rem; }
.feed-item .chev { color: var(--muted); align-self: center; flex-shrink: 0; }
.feed-item .chev svg { width: 18px; height: 18px; }

/* ---------- sayfa başlığı ---------- */
.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.page-hero .hero-pattern { opacity: .06; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 12px; }
.page-hero p { color: var(--ink-2); max-width: 720px; margin: 0; font-size: 1.05rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--brand); }
.crumbs svg { width: 14px; height: 14px; opacity: .6; }

/* ---------- filtre çubuğu ---------- */
.toolbar { position: sticky; top: var(--header-h); z-index: 20; background: color-mix(in oklab, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 14px 0; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.toolbar .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.input { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s, box-shadow .2s; }
.input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 15%, transparent); }
.input svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.input input { border: 0; outline: 0; background: none; font: inherit; color: var(--ink); width: 100%; }
.select { height: 46px; padding: 0 38px 0 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b7774' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; color: var(--ink); font: inherit; font-size: .92rem; appearance: none; cursor: pointer; max-width: 100%; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chip { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: inherit; font-size: .86rem; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: .2s; }
.chip:hover { border-color: var(--line-2); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .n { font-size: .78rem; opacity: .7; }
.result-info { font-size: .88rem; color: var(--muted); margin: 0 0 16px; }
.empty { text-align: center; padding: 64px 20px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.load-more { display: flex; justify-content: center; margin-top: 28px; }

/* ---------- detay / prose ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; padding: 40px 0 80px; align-items: start; }
.detail aside { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 980px) { .detail { grid-template-columns: minmax(0, 1fr); } .detail aside { position: static; } }
.prose, .panel, .card { overflow-wrap: anywhere; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel h2, .panel h3 { font-size: 1.15rem; }
.panel + .panel { margin-top: 18px; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; font-size: .92rem; }
.dl dt { color: var(--muted); font-weight: 500; }
.dl dd { margin: 0; color: var(--ink); font-weight: 500; word-break: break-word; }
.dl dd a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose { font-size: 1.04rem; line-height: 1.8; color: var(--ink-2); }
.prose p { margin: 0 0 1.1em; }
.prose img { border-radius: var(--radius-sm); margin: 1.2em 0; box-shadow: var(--shadow-sm); }
.prose h2, .prose h3 { color: var(--ink); margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 1em 0; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.prose blockquote { margin: 1.2em 0; padding: 4px 20px; border-left: 3px solid var(--gold); color: var(--ink); font-style: italic; }
.abstract-tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg-2); gap: 4px; margin-bottom: 18px; }
.abstract-tabs button { border: 0; background: none; font: inherit; font-weight: 600; font-size: .88rem; padding: 8px 16px; border-radius: 999px; color: var(--muted); cursor: pointer; }
.abstract-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.post { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 24px; }
.post-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: .88rem; color: var(--muted); }
.post-head .avatar { width: 36px; height: 36px; border-radius: 10px; font-size: .9rem; }
.post-head strong { color: var(--ink); font-weight: 600; }

/* ---------- zaman çizelgesi ---------- */
.timeline { position: relative; display: flex; flex-direction: column; gap: 14px; padding-left: 32px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--brand), var(--gold)); border-radius: 2px; opacity: .45; }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; left: -29px; top: 26px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand); }
.tl-item.gold::before { border-color: var(--gold); }
.year-label { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--ink); margin: 18px 0 2px; }
.coord-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(160px, 42vw), 1fr)); gap: 12px; }
.coord { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; transition: .3s var(--ease); }
.coord:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.coord .no { font-family: var(--serif); font-size: 2rem; color: var(--brand); line-height: 1; font-weight: 600; }
.coord .city { font-weight: 600; margin-top: 8px; }
.coord .yr { font-size: .82rem; color: var(--muted); }

/* ---------- galeri ---------- */
.album-card { padding: 0; overflow: hidden; }
.album-card .cover { aspect-ratio: 4/3; background: var(--bg-2); display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; }
.album-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.album-card .cover img:first-child { grid-row: span 2; }
.album-card .cover.single img { grid-column: span 2; }
.album-card .txt { padding: 16px 18px 18px; }
.album-card h3 { font-size: 1.05rem; }
.masonry { columns: 4 220px; column-gap: 12px; }
.masonry figure { margin: 0 0 12px; break-inside: avoid; border-radius: 12px; overflow: hidden; background: var(--bg-2); cursor: zoom-in; position: relative; }
.masonry img { width: 100%; transition: transform .5s var(--ease), opacity .3s; }
.masonry figure:hover img { transform: scale(1.03); }
.masonry figcaption { position: absolute; inset: auto 0 0 0; padding: 26px 12px 10px; font-size: .8rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); opacity: 0; transition: opacity .3s; }
.masonry figure:hover figcaption { opacity: 1; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(6, 12, 11, .92); display: none; align-items: center; justify-content: center; padding: 60px 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 82vh; max-width: min(1200px, 92vw); border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox .cap { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: #e8efed; font-size: .9rem; padding: 0 60px; }
.lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255,255,255,.18); }
.lightbox button svg { width: 22px; height: 22px; }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- komut paleti (arama) ---------- */
.cmdk { position: fixed; inset: 0; z-index: 80; display: none; background: rgba(10, 18, 17, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 10vh 16px 16px; }
.cmdk.open { display: block; animation: fade .2s ease; }
.cmdk-box { max-width: 680px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .25s var(--ease); }
.cmdk-input { display: flex; align-items: center; gap: 12px; padding: 0 18px; height: 62px; border-bottom: 1px solid var(--line); }
.cmdk-input svg { width: 20px; height: 20px; color: var(--muted); }
.cmdk-input input { flex: 1; border: 0; outline: 0; background: none; font: inherit; font-size: 1.05rem; color: var(--ink); }
.cmdk-input kbd { font: 500 .72rem var(--sans); padding: 4px 7px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.cmdk-list { max-height: 58vh; overflow-y: auto; padding: 8px; }
.cmdk-group { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 12px 12px 6px; }
.cmdk-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; cursor: pointer; }
.cmdk-item .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-2); color: var(--brand); flex-shrink: 0; }
.cmdk-item .ic svg { width: 16px; height: 16px; }
.cmdk-item .t { font-weight: 500; font-size: .94rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-item .s { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-item .tx { min-width: 0; }
.cmdk-item[aria-selected="true"] { background: var(--brand-soft); }
.cmdk-item mark { background: color-mix(in oklab, var(--gold) 30%, transparent); color: inherit; border-radius: 3px; }
.cmdk-empty { padding: 36px; text-align: center; color: var(--muted); }
.cmdk-foot { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: .76rem; color: var(--muted); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.98); } }

/* ---------- CTA, footer ---------- */
.cta { position: relative; overflow: hidden; border-radius: 28px; background: var(--brand); color: var(--brand-ink); padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; isolation: isolate; }
.cta h2 { color: inherit; }
.cta p { color: color-mix(in oklab, var(--brand-ink) 80%, transparent); margin: 0; }
.cta .pattern { position: absolute; right: -60px; top: -60px; width: 420px; opacity: .1; z-index: -1; }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.cta .btn-primary { background: var(--brand-ink); color: var(--brand); }
.cta .btn-ghost { background: transparent; color: var(--brand-ink); border-color: color-mix(in oklab, var(--brand-ink) 35%, transparent); }
@media (max-width: 780px) { .cta { grid-template-columns: 1fr; } .cta .actions { justify-content: flex-start; } }
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 32px; background: var(--bg-2); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-grid h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { color: var(--ink-2); }
.footer-grid a:hover { color: var(--brand); }
.footer-grid p { color: var(--muted); margin: 14px 0 0; max-width: 360px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .84rem; }
.socials { display: flex; gap: 8px; margin-top: 18px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- hesap menüsü ve yorumlar (sunucu modu) ---------- */
.account { display: flex; align-items: center; gap: 8px; }
.acc-menu { position: relative; }
.acc-btn { position: relative; border: 0; background: none; padding: 0; cursor: pointer; }
.acc-btn .avatar { width: 40px; height: 40px; border-radius: 12px; font-size: .9rem; }
.acc-dot { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--rose); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }
.acc-pop { position: absolute; right: 0; top: calc(100% + 10px); min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 8px; display: none; z-index: 60; }
.acc-pop.open { display: block; animation: pop .2s var(--ease); }
.acc-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: flex; flex-direction: column; font-size: .88rem; }
.acc-head span { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; }
.acc-pop a, .acc-pop button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 10px 12px; border-radius: 10px; font: inherit; font-size: .92rem; color: var(--ink); background: none; border: 0; cursor: pointer; text-align: left; }
.acc-pop a:hover, .acc-pop button:hover { background: var(--bg-2); }
.acc-login svg { width: 16px; height: 16px; }
@media (max-width: 1440px) and (min-width: 1101px) {
  body:has([data-account]) .site-header .brand small { display: none; }
  .acc-login { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 12px; }
  .acc-login span { display: none; }
}
@media (max-width: 560px) {
  .acc-login { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 12px; }
  .acc-login span { display: none; }
  .header-actions { gap: 6px; }
  .header-actions .icon-btn, .search-trigger, .acc-login { width: 44px; height: 44px; }
  .site-header .container { gap: 8px; }
  .site-header .brand { gap: 8px; font-size: 1.05rem; }
  .site-header .brand-logo { height: 34px; }
}
.muted { color: var(--muted); font-size: .9rem; }
.comments { margin-top: 18px; }
.comment { padding: 16px 0; border-top: 1px solid var(--line); }
.comment:first-child { border-top: 0; padding-top: 4px; }
.comment .prose { font-size: .98rem; }
.comment.is-pending { opacity: .8; }
.comment-form textarea { width: 100%; min-height: 110px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: inherit; resize: vertical; margin-top: 14px; }
.comment-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 15%, transparent); }
.comment-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.comment .post-head { flex-wrap: wrap; }
.comment .post-head .grow { flex: 1; min-width: 0; }
.comment-edited { font-size: .8rem; color: var(--muted); font-style: italic; }
.comment-tools { display: inline-flex; align-items: center; gap: 8px; }
.comment-edit, .comment-del { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: 600 .82rem var(--sans); border-radius: 999px; cursor: pointer; }
.comment-edit:hover { border-color: var(--line-2); color: var(--ink); }
.comment-del { background: var(--rose-soft); border-color: color-mix(in oklab, var(--rose) 22%, transparent); color: var(--rose); }
.comment-del svg { width: 14px; height: 14px; }
.comment-del:hover { border-color: color-mix(in oklab, var(--rose) 45%, transparent); }
.comment-del:disabled { opacity: .55; cursor: progress; }
.comment { transition: opacity .2s, transform .2s; }
.comment.is-removing { opacity: 0; transform: translateX(8px); }
.comment-notice { margin: 0 0 12px; }
.mz-confirm { border: 0; padding: 0; border-radius: 16px; background: var(--surface); color: var(--ink); width: min(420px, calc(100vw - 32px)); box-shadow: var(--shadow-lg); }
.mz-confirm::backdrop { background: rgba(10, 18, 26, .5); }
.mz-confirm-in { padding: 22px 22px 18px; }
.mz-confirm p { margin: 0 0 18px; font-size: .98rem; line-height: 1.6; }
.mz-confirm-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.mz-confirm .btn-danger { background: var(--rose); border-color: var(--rose); color: #fff; }
.mz-confirm .btn-danger svg { width: 16px; height: 16px; }
.comment-btns { display: inline-flex; gap: 8px; margin-left: auto; }
.comment-msg { margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--indigo-soft); color: var(--indigo); font-size: .9rem; }
.comment-msg.warn { background: var(--rose-soft); color: var(--rose); }
.comment-msg[hidden] { display: none; }
.comment-body img { max-width: 100%; height: auto; max-height: 560px; object-fit: contain; margin: .8em 0; }
.comment-body h2 { font-size: 1.3rem; margin-top: 1em; }
.comment-body h3 { font-size: 1.1rem; margin-top: 1em; }
.comment-body figure.media-video { max-width: 720px; }
.comment-editing { margin-top: 4px; }

/* ---------- yorum editörü (assets/js/comment-editor.js) ---------- */
.ce { margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); position: relative; }
.ce:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 15%, transparent); }
.ce-bar { display: flex; flex-wrap: wrap; gap: 2px 6px; padding: 6px; border-bottom: 1px solid var(--line); background: var(--surface); border-radius: 14px 14px 0 0; }
.ce-group { display: inline-flex; gap: 2px; }
.ce-group + .ce-group { padding-left: 6px; border-left: 1px solid var(--line); }
.ce-bar button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; min-width: 36px; padding: 0 8px; border: 0; border-radius: 8px; background: none; color: var(--ink-2); font: 600 .9rem var(--sans); cursor: pointer; }
.ce-bar button svg { width: 18px; height: 18px; flex-shrink: 0; }
.ce-bar button sub { font-size: .65em; }
.ce-bar button:hover { background: var(--bg-2); color: var(--ink); }
.ce-bar button[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand); }
.ce-bar button:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.ce-area { min-height: 140px; max-height: 60vh; overflow-y: auto; padding: 14px 16px; font-size: 1rem; line-height: 1.7; outline: none; position: relative; }
.ce-area.is-empty::before { content: attr(data-placeholder); position: absolute; left: 16px; top: 14px; color: var(--muted); pointer-events: none; }
.ce-area > :first-child { margin-top: 0; }
.ce-area p { margin: 0 0 .8em; }
.ce-area img { max-width: 100%; height: auto; max-height: 420px; border-radius: 8px; margin: .4em 0; cursor: pointer; box-shadow: none; }
.ce-area figure.media-video { margin: .8em 0; cursor: pointer; }
.ce-area figure.media-video::after { content: ""; position: absolute; inset: 0; } /* tıklama oynatıcıya değil editöre gitsin */
.ce-area .is-picked { outline: 3px solid var(--gold); outline-offset: 2px; }
.ce-up { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: 10px; background: var(--surface); font-size: .88rem; color: var(--muted); user-select: none; }
.ce-up-bar { display: block; height: 6px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.ce-up-bar span { display: block; height: 100%; width: 0; background: var(--brand); transition: width .2s; }
.ce-pop, .ce-note, .ce-media { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 44px 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface); font-size: .9rem; position: relative; }
.ce-pop { display: grid; align-items: stretch; } /* esnek sütunda video önizlemesinin yüksekliği sıfıra iniyordu */
.ce-note { background: var(--gold-soft); color: var(--ink); }
.ce-note.warn { background: var(--rose-soft); color: var(--rose); }
.ce-note > span { flex: 1 1 200px; }
.ce-pop[hidden], .ce-note[hidden], .ce-media[hidden], .ce-preview[hidden] { display: none; }
.ce-x { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.ce-x:hover { background: var(--bg-2); color: var(--ink); }
.ce-pop-title { font-weight: 600; color: var(--ink); }
.ce-help { margin: 0; color: var(--muted); font-size: .84rem; }
.ce-field { display: flex; flex-direction: column; gap: 4px; font-size: .84rem; color: var(--ink-2); }
.ce-field em { color: var(--muted); font-style: normal; }
.ce-field input { height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--ink); font: inherit; font-size: .95rem; width: 100%; }
.ce-field input:focus { outline: none; border-color: var(--brand); }
.ce-err { margin: 0; color: var(--rose); font-size: .85rem; }
.ce-err[hidden] { display: none; }
.ce-pop-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ce-vprev:empty { display: none; }
.ce-vprev figure.media-video { margin: 0; max-width: 420px; }
.ce-media .danger { color: var(--rose); }
.ce-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 8px 6px 6px; border-top: 1px solid var(--line); }
.ce-prev-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--ink-2); font: 600 .85rem var(--sans); cursor: pointer; }
.ce-prev-btn svg { width: 17px; height: 17px; }
.ce-prev-btn:hover, .ce-prev-btn.on { background: var(--bg-2); color: var(--ink); }
.ce-count { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ce-count.over { color: var(--rose); font-weight: 600; }
.ce-preview { border-top: 1px dashed var(--line-2); padding: 12px 16px 16px; background: var(--surface); border-radius: 0 0 14px 14px; }
.ce-preview-head { font-size: .78rem; font-weight: 600; letter-spacing: .02em; color: var(--gold); margin-bottom: 8px; }
.ce-preview .prose { font-size: .98rem; }
.ce-preview .prose img { max-width: 100%; height: auto; max-height: 560px; object-fit: contain; }
@media (max-width: 560px) {
  .ce-bar button.has-text span { display: none; }
  .ce-bar { gap: 2px; }
  .ce-group { display: contents; } /* dar ekranda düğmeler gruplar hâlinde değil tek tek sıralansın (daha az satır) */
  .ce-area { padding: 12px; }
  .ce-area.is-empty::before { left: 12px; top: 12px; }
  .comment-btns { width: 100%; justify-content: flex-end; }
}
@media (pointer: coarse) {
  .ce-bar button { height: 44px; min-width: 44px; }
  .ce-prev-btn { height: 44px; }
  .ce-x { width: 44px; height: 44px; top: 0; right: 0; }
  .comment-edit, .comment-del { height: 40px; }
  .mz-confirm .btn { height: 44px; }
  .ce-area, .ce-field input { font-size: 16px; } /* iOS odaklanınca sayfayı büyütmesin */
}

/* ---------- Akaid Asistanı ---------- */
.ai-fab { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px 0 16px; border-radius: 999px; border: 0; background: var(--brand); color: var(--brand-ink); font: 600 .95rem var(--sans); cursor: pointer; box-shadow: 0 14px 30px -10px color-mix(in oklab, var(--brand) 70%, transparent); transition: transform .2s var(--ease), background .2s; }
.ai-fab:hover { transform: translateY(-2px); background: var(--brand-2); }
.ai-fab svg { width: 22px; height: 22px; }
.has-assistant .to-top { bottom: 88px; }
.ai-open .ai-fab { display: none; }
.ai-box { position: fixed; right: 20px; bottom: 20px; z-index: 75; width: min(420px, calc(100vw - 32px)); height: min(640px, calc(100vh - 110px)); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .25s var(--ease); }
.ai-box[hidden] { display: none; }
.ai-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--brand); color: var(--brand-ink); }
.ai-head img { border-radius: 8px; flex-shrink: 0; }
.ai-head div { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.ai-head strong { font-family: var(--serif); font-size: 1.05rem; }
.ai-head span { font-size: .78rem; opacity: .8; }
.ai-icon { width: 34px; height: 34px; border-radius: 10px; border: 0; background: color-mix(in oklab, var(--brand-ink) 14%, transparent); color: inherit; display: grid; place-items: center; cursor: pointer; }
.ai-icon:hover { background: color-mix(in oklab, var(--brand-ink) 24%, transparent); }
.ai-icon svg { width: 18px; height: 18px; }
.ai-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--bg); }
.ai-msg { display: flex; }
.ai-msg.me { justify-content: flex-end; }
.ai-bubble { max-width: 88%; padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: var(--surface); border: 1px solid var(--line); font-size: .94rem; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; }
.ai-bubble.prose { font-size: .94rem; line-height: 1.65; }
.ai-bubble p { margin: 0 0 .6em; }
.ai-bubble p:last-child { margin-bottom: 0; }
.ai-bubble ul { margin: .2em 0 .6em; padding-left: 1.2em; }
.ai-msg.me .ai-bubble { background: var(--brand); color: var(--brand-ink); border-color: transparent; border-radius: 16px 16px 4px 16px; }
.ai-msg.err .ai-bubble { background: var(--rose-soft); border-color: transparent; color: var(--ink); }
.ai-note { font-size: .8rem; color: var(--muted); }
.cite { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; margin: 0 1px; border-radius: 6px; background: var(--gold-soft); color: var(--gold); font-size: .68rem; font-weight: 700; vertical-align: 2px; }
.ai-src { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line-2); font-size: .82rem; }
.ai-src summary { cursor: pointer; color: var(--brand); font-weight: 600; }
.ai-src ol { margin: 8px 0 0; padding-left: 1.4em; color: var(--ink-2); }
.ai-src li span { color: var(--muted); }
.ai-src li { margin-bottom: 4px; }
.ai-src .ai-h { display: block; color: var(--muted); font-family: "Amiri", "Noto Naskh Arabic", "Traditional Arabic", serif; font-size: .95rem; line-height: 1.5; }
.ai-src .ai-cite { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 6px; background: var(--surface-2, var(--bg)); color: var(--ink-2); font-size: .76rem; white-space: nowrap; }
.ai-tabs { display: flex; gap: 4px; padding: 6px; background: var(--brand); border-top: 1px solid rgba(255,255,255,.12); }
.ai-tabs button { flex: 1; padding: 7px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--brand-ink); opacity: .75; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.ai-tabs button:hover { opacity: 1; background: rgba(255,255,255,.08); }
.ai-tabs button[aria-selected="true"] { opacity: 1; background: rgba(255,255,255,.18); }
.ai-tabs button:focus-visible { outline: 2px solid var(--gold, #c9a227); outline-offset: 1px; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-chips .chip { height: auto; padding: 8px 12px; text-align: left; line-height: 1.3; }
.ai-typing { display: inline-flex; gap: 5px; align-items: center; height: 44px; }
.ai-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: ai-dot 1s infinite ease-in-out; }
.ai-typing span:nth-child(2) { animation-delay: .15s; }
.ai-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes ai-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.ai-foot { padding: 12px; border-top: 1px solid var(--line); background: var(--surface); }
.ai-form { display: flex; gap: 8px; align-items: flex-end; }
.ai-form textarea { flex: 1; resize: none; min-height: 44px; max-height: 140px; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: inherit; font-size: .94rem; line-height: 1.45; }
.ai-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 15%, transparent); }
.ai-send { width: 44px; height: 44px; border-radius: 14px; border: 0; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.ai-send svg { width: 18px; height: 18px; }
.ai-meta { font-size: .74rem; color: var(--muted); margin-top: 6px; text-align: right; min-height: 1em; }
.ai-gate { margin: 4px; font-size: .9rem; color: var(--ink-2); text-align: center; }
@media (max-width: 560px) {
  .ai-fab span { display: none; }
  .ai-fab { width: 54px; padding: 0; justify-content: center; }
  .ai-box { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
}
@media print { .ai-fab, .ai-box { display: none !important; } }

/* ---------- animasyon ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; opacity: 0; pointer-events: none; transform: translateY(10px); transition: .3s var(--ease); box-shadow: var(--shadow); }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .site-header .brand small { display: none; } /* yalnızca başlıkta yer kazanmak için; alt bilgide görünür */
  .feed-item { padding: 16px; gap: 14px; }
  .detail { padding-top: 28px; }
}
@media print {
  .site-header, .site-footer, .toolbar, .to-top, aside, .cmdk { display: none !important; }
  .detail { grid-template-columns: 1fr; }
  body { background: #fff; }
}

/* en küçük telefonlar: marka yazısı gizlenir, yalnızca logo kalır */
@media (max-width: 380px) {
  .site-header .brand > span { display: none; }
}

/* ---------- duyuru şeridi (panel → Site ayarları → Duyuru şeridi) ---------- */
.site-banner { background: var(--brand); color: var(--brand-ink); font-size: .9rem; font-weight: 500; padding: 10px 0; text-align: center; line-height: 1.5; }
.site-banner a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; }
.site-banner.sb-uyari { background: var(--gold-soft); color: var(--ink); }
.site-banner.sb-onemli { background: var(--rose); color: #fff; }

/* ---------- YouTube kanalı şeridi ---------- */
.yt-wrap { padding: 0 0 clamp(40px, 5vw, 64px); }
.yt-band { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 26px 30px; border-radius: 24px;
  background: linear-gradient(135deg, #1f1f1f 0%, #2b1414 100%); color: #fff; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.yt-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 0, 0, .35), transparent 70%); }
.yt-logo { width: 72px; height: 72px; border-radius: 20px; background: #ff0000; display: grid; place-items: center; color: #fff; box-shadow: 0 10px 24px -8px rgba(255, 0, 0, .6); }
.yt-logo svg { width: 40px; height: 40px; }
.yt-kicker { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #ff8a8a; }
.yt-text h2 { color: #fff; margin: 4px 0 6px; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.yt-text p { margin: 0; color: rgba(255, 255, 255, .78); max-width: 620px; }
.yt-actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.yt-btn { background: #ff0000; color: #fff; }
.yt-btn:hover { background: #e00000; transform: translateY(-2px); }
.yt-band .btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .25); }
@media (max-width: 760px) {
  .yt-band { grid-template-columns: auto 1fr; padding: 22px; }
  .yt-actions { grid-column: 1 / -1; }
  .yt-logo { width: 56px; height: 56px; border-radius: 16px; }
  .yt-logo svg { width: 30px; height: 30px; }
}

/* ---------- video modülü ---------- */
.vid-tabs { margin: -12px 0 20px; }
.vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.vid-card { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding-bottom: 14px; transition: transform .3s var(--ease), box-shadow .3s; }
.vid-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.vid-thumb { position: relative; aspect-ratio: 16 / 9; background: #111; overflow: hidden; }
.vid-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.vid-card:hover .vid-thumb img { transform: scale(1.04); }
.vid-play { position: absolute; inset: 0; margin: auto; width: 56px; height: 40px; border-radius: 12px; background: rgba(255, 0, 0, .92); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); transition: transform .2s; }
.vid-card:hover .vid-play { transform: scale(1.08); }
.vid-play svg { width: 22px; height: 22px; }
.vid-title { padding: 0 14px; font-weight: 600; font-size: .94rem; line-height: 1.4; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vid-date { padding: 0 14px; font-size: .8rem; color: var(--muted); margin-top: auto; }
.vid-foot { display: flex; justify-content: center; margin-top: 24px; }
.vid-modal { position: fixed; inset: 0; z-index: 95; background: rgba(6, 10, 14, .9); display: none; align-items: center; justify-content: center; padding: 56px 16px 24px; }
.vid-modal.open { display: flex; }
.vid-modal .frame { width: min(1100px, 100%); aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.vid-modal iframe { width: 100%; height: 100%; border: 0; display: block; }
.vid-modal .cap { position: absolute; top: 14px; left: 16px; right: 72px; color: #e9eef3; font-weight: 600; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vid-modal .close { position: absolute; top: 10px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; display: grid; place-items: center; }
.vid-modal .close svg { width: 22px; height: 22px; }

/* ---- metin içi videolar ve yan yana görsel/video (haber ve eser metinleri, panel editörü) ---- */
.prose figure.media-video { position: relative; margin: 1.4em 0; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: #000; box-shadow: var(--shadow-sm); }
.prose figure.media-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose figure.media-video.short { aspect-ratio: 9 / 16; max-width: 340px; margin-left: auto; margin-right: auto; }
.prose figure.media-video.half, .prose p:has(> img.half) { display: inline-block; width: calc(50% - 8px); vertical-align: top; margin: 1em 0; }
.prose p:has(> img.half) img { width: 100%; margin: 0; }
.prose :is(figure.half, p:has(> img.half)) + :is(figure.half, p:has(> img.half)) { margin-left: 12px; }
.prose figure.media-video.short.half { max-width: none; }
@media (max-width: 640px) {
  .prose figure.media-video.half, .prose p:has(> img.half) { display: block; width: auto; margin-left: 0 !important; }
}

/* ---- yetkili kullanıcıya düzenleme kısayolları ---- */
.hero-actions:not(:has(> :not([hidden]))) { display: none; }
.card-wrap { position: relative; }
.card-wrap > .card, .card-wrap > .feed-item { height: 100%; }
.card-edit { position: absolute; top: 10px; right: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px;
  background: var(--surface); color: var(--brand); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font: 600 .8rem var(--sans); text-decoration: none; }
.card-edit:hover { background: var(--brand); color: var(--brand-ink, #fff); }
.card-edit svg { width: 15px; height: 15px; }
.feed .card-wrap .card-edit, .card-wrap > .feed-item + .card-edit { top: 50%; transform: translateY(-50%); right: 52px; }

/* ---- sosyal medya: özgün logolar (alt bilgi + sol kenar şeridi) ---- */
.social-btn, .rail-btn { display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: #000; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.social-btn { width: 42px; height: 42px; border-radius: 12px; }
.social-btn svg, .rail-btn svg { width: 22px; height: 22px; }
.social-btn:hover, .rail-btn:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.social-rail { position: fixed; left: 16px; top: 50%; transform: translateY(-50%); z-index: 40; display: none; flex-direction: column; gap: 10px; }
.rail-btn { width: 44px; height: 44px; border-radius: 14px; box-shadow: var(--shadow-sm); }
.rail-btn:hover { transform: translateX(3px); }
@media (min-width: 1340px) { .social-rail { display: flex; } }
:root[data-theme="dark"] .social-btn.is-x, :root[data-theme="dark"] .rail-btn.is-x, :root[data-theme="dark"] .brand-x svg { color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.social-btn.is-x, .rail-btn.is-x, .brand-x svg) { color: #fff; } }
.brand-x svg { width: 18px; height: 18px; }
@media print { .social-rail { display: none !important; } }

/* ---- Hanefî asistanı: üslup seçimi ve üç bölümlü cevap başlıkları ---- */
.ai-styles { display: grid; gap: 8px; margin: 10px 0 4px; }
.ai-styles button { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; transition: border-color .2s, background .2s; }
.ai-styles button:hover, .ai-styles button:focus-visible { border-color: var(--brand); background: var(--surface-2); }
.ai-styles button span { font-size: .82rem; color: var(--muted); }
.ai-style { font-size: .85rem; color: var(--ink-2); }
.ai-style .linklike { border: 0; background: none; padding: 0; color: var(--brand); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ai-bubble h4 { margin: 12px 0 4px; font-size: .95rem; font-family: var(--sans); color: var(--brand); }
.ai-bubble h4:first-child { margin-top: 0; }

/* ---- paylaş alanı (haber, eser, akademisyen, galeri) ---- */
.share { margin: 18px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius, 18px); background: var(--surface);
  display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.share-head { display: flex; align-items: center; gap: 12px; }
.share-title { display: inline-flex; align-items: center; gap: 7px; font-family: var(--serif); font-size: 1rem; font-weight: 600; color: var(--ink); }
.share-title svg { width: 17px; height: 17px; color: var(--brand); }
.share-status { margin-left: auto; font-size: .82rem; font-weight: 600; color: var(--brand); }
.share-status:empty { display: none; }
/* yalnızca simgeler, tek satır; dar ekranda sayfa değil yalnızca bu şerit yatay kayar */
.share-list { display: flex; flex-wrap: nowrap; gap: 8px; min-width: 0; max-width: 100%; }
.share-btn { position: relative; display: inline-grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface-2); color: var(--ink); text-decoration: none; cursor: pointer; transition: border-color .2s, transform .2s var(--ease), background .2s, box-shadow .2s; }
.share-btn svg { width: 20px; height: 20px; }
.share-btn:hover { border-color: var(--line-2); background: var(--surface); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.share-btn:focus-visible { outline: 3px solid color-mix(in oklab, var(--brand) 45%, transparent); outline-offset: 2px; }
.share-btn.is-email svg, .share-btn.is-copy svg { color: var(--brand); }
.share-btn.is-native { background: var(--brand); border-color: var(--brand); color: var(--brand-ink, #fff); }
.share-btn.done { border-color: var(--brand); background: var(--brand-soft); }
/* bilgi balonu: yalnızca fareyle (ve klavye odağında); dokunmatikte adı aria-label taşır */
@media (hover: hover) and (pointer: fine) {
  .share-btn[data-tip]::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 9px); transform: translate(-50%, 4px); padding: 5px 10px; border-radius: 8px;
    background: var(--ink); color: var(--surface); font: 600 .75rem/1.3 var(--sans); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 5; }
  .share-btn[data-tip]::before { content: ""; position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translate(-50%, 4px); border: 5px solid transparent; border-bottom: 0; border-top-color: var(--ink);
    opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 5; }
  .share-btn:is(:hover, :focus-visible)::after, .share-btn:is(:hover, :focus-visible)::before { opacity: 1; transform: translate(-50%, 0); }
}
@media (pointer: coarse) {
  .share-btn { width: 44px; height: 44px; }
}
@media (max-width: 640px) {
  .share { padding: 12px 14px; display: block; }
  .share-head { margin-bottom: 10px; }
  .share-status { display: block; margin-top: 8px; }
  .share-list { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 4px; margin: -4px; }
  .share-list::-webkit-scrollbar { display: none; }
  /* kaydırılacak simge kaldığında kenar solar (app.js .more-l / .more-r) */
  .share-list.more-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
  .share-list.more-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px); mask-image: linear-gradient(90deg, transparent, #000 36px); }
  .share-list.more-l.more-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); }
}
@media print { .share { display: none; } }

/* ---- Etkinlikler: kategori menüsüyle süzme ---- */
[data-ev-list] [hidden], section#koordinasyon[hidden] { display: none !important; }

/* ---- Galeri: Fotoğraflar / Videolar ---- */
[data-gal-panel][hidden] { display: none !important; }
.gal-vids { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
[data-gal-tab] svg { width: 16px; height: 16px; margin-right: 2px; vertical-align: -3px; }


/* =========================================================
   Responsive katman (2026-10): telefon, tablet ve dokunmatik ekranlar
   Mobil öncelikli küçük ayarlar; kurumsal renkler, yazı tipleri ve bileşenler aynıdır.
   ========================================================= */
/* geniş ekranlarda içerik biraz genişler, satırlar yine de okunur kalır */
@media (min-width: 1680px) { :root { --container: 1360px; } }
/* uzun akademik metinlerde rahat satır uzunluğu */
.detail article .prose, .detail .panel > .prose { max-width: 74ch; }
.prose iframe, .prose video { max-width: 100%; }
.prose pre { overflow-x: auto; }
.article-cover { margin: -24px -24px 22px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; background: var(--bg-2); }
.article-cover img { width: 100%; max-height: 460px; object-fit: cover; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: -6px 0 18px; color: var(--muted); font-size: .88rem; }

/* dokunmatik ekranlar: parmakla rahat dokunulacak en az 44 px'lik hedefler */
@media (pointer: coarse), (max-width: 1023px) {
  .icon-btn { width: 44px; height: 44px; }
  .search-trigger { height: 44px; }
  .chip { height: auto; min-height: 44px; }
  .btn-sm { height: 44px; }
  .input, .select { height: 48px; }
  .input input { font-size: 16px; } /* iOS'ta alan seçilince sayfa yakınlaşmasın */
  .link-arrow { min-height: 44px; }
  .abstract-tabs button { min-height: 44px; }
  .card-edit { min-height: 40px; padding-top: 0; padding-bottom: 0; display: inline-flex; align-items: center; }
  details > summary { padding-block: 8px; }
  .footer-grid ul { gap: 2px; }
  .footer-grid ul a { display: inline-flex; align-items: center; min-height: 40px; }
  .nav a { min-height: 48px; display: flex; align-items: center; }
  .acc-btn .avatar { width: 44px; height: 44px; }
  .site-header .brand { min-height: 44px; }
  .yt-kicker { font-size: .78rem; }
}
@media (max-width: 1023px) and (min-width: 561px) {
  .detail { gap: 28px; }
}
/* telefon */
@media (max-width: 560px) {
  h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  h2 { font-size: clamp(1.45rem, 6vw, 1.8rem); }
  .page-hero { padding: 28px 0 24px; }
  .page-hero h1 { font-size: clamp(1.6rem, 7vw, 2.1rem); }
  .page-hero p { font-size: 1rem; }
  .section { padding: 44px 0; }
  .section-head { margin-bottom: 22px; gap: 12px; }
  .hero { padding: 32px 0 44px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .toolbar { position: static; padding: 12px 0; margin-bottom: 18px; }
  .toolbar .row { gap: 8px; }
  .toolbar .select { flex: 1 1 140px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }
  .panel { padding: 18px; }
  .article-cover { margin: -18px -18px 16px; }
  .prose { font-size: 1rem; line-height: 1.75; }
  .detail { gap: 20px; padding-bottom: 56px; }
  .dl { grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 8px 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .to-top { right: 14px; bottom: 14px; }
}
@media (max-width: 374px) {
  .footer-grid { grid-template-columns: 1fr; }
  .header-actions { gap: 6px; }
  .site-header .container { gap: 10px; }
}
/* yatay tutulan telefon: kısa ekranda menü kaydırılabilir, üst bölüm sıkışmaz */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { padding: 24px 0 32px; }
  .page-hero { padding: 20px 0; }
}
/* listede yönetici "Düzenle" kısayolu başlığın üstüne binmesin */
.card-wrap > .feed-item .body { padding-right: 110px; }
@media (max-width: 560px) {
  .card-wrap > .feed-item .body { padding-right: 0; padding-bottom: 46px; }
  .feed .card-wrap .card-edit, .card-wrap > .feed-item + .card-edit { top: auto; bottom: 12px; transform: none; right: 16px; }
}
/* simgeye dönen arama düğmesi diğer başlık düğmeleriyle aynı boyda */
@media (max-width: 1120px) { .search-trigger { width: 44px; height: 44px; } }

/* ---------- Bağlantılar rehberi: masaüstünde kategori paneli + liste; tablet ve telefonda kategori açılır menüsü ---------- */
.lk-toolbar .input { min-width: 0; }
.lk-toolbar .input input { align-self: stretch; } /* dokunma alanı kutunun tamamı */
.lk-clear { flex-shrink: 0; width: 34px; height: 34px; margin-right: -8px; display: grid; place-items: center; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; }
.lk-clear:hover, .lk-clear:focus-visible { background: var(--bg-2); color: var(--ink); }
.lk-clear svg { width: 16px; height: 16px; }
.lk-select { display: none; flex: 1 1 220px; }
.lk-wrap { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 36px; padding-bottom: 80px; align-items: start; }
.lk-side { position: sticky; top: calc(var(--header-h) + 100px); max-height: calc(100vh - var(--header-h) - 120px); overflow-y: auto; overscroll-behavior: contain; }
.lk-side-in { display: flex; flex-direction: column; gap: 2px; padding-bottom: 8px; }
.lk-pick { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 40px; padding: 8px 12px; border: 0; border-radius: 10px; background: none; color: var(--ink-2); font: inherit; font-size: .92rem; text-align: left; cursor: pointer; transition: background .15s, color .15s; }
.lk-pick.is-sub { padding-left: 28px; font-size: .86rem; min-height: 36px; }
.lk-pick:hover { background: var(--surface); color: var(--ink); }
.lk-pick:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.lk-pick[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.lk-pick .n { font-size: .78rem; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.lk-cat { margin-bottom: 40px; scroll-margin-top: calc(var(--header-h) + 100px); }
.lk-cat h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; font-size: 1.4rem; }
.lk-cat h2 .n, .lk-sub h3 .n { font-family: var(--sans); font-size: .8rem; font-weight: 500; color: var(--muted); letter-spacing: 0; text-transform: none; }
.lk-cat-desc { margin: -4px 0 14px; color: var(--muted); font-size: .92rem; }
.lk-sub h3 { display: flex; align-items: baseline; gap: 8px; margin: 22px 0 10px; font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.lk-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.lk-list li + li { border-top: 1px solid var(--line); }
.lk-row { display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 11px 16px; color: inherit; text-decoration: none; }
a.lk-row { transition: background .15s; }
a.lk-row:hover { background: color-mix(in oklab, var(--brand-soft) 70%, var(--surface)); }
a.lk-row:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.lk-ic { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px; overflow: hidden; background: var(--gold-soft); color: var(--gold); }
.lk-ic svg { width: 17px; height: 17px; }
.lk-ic img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.lk-txt { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.lk-name { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
a.lk-row:hover .lk-name { color: var(--brand); }
.lk-desc { font-size: .88rem; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }
.lk-row.is-off .lk-name { color: var(--ink-2); font-weight: 500; }
.lk-ext { display: grid; flex-shrink: 0; color: var(--muted); }
.lk-ext svg { width: 16px; height: 16px; }
.lk-callout { display: flex; align-items: center; gap: 18px; color: inherit; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.lk-callout:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.lk-callout-ic { display: grid; place-items: center; flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); }
.lk-callout-ic svg { width: 24px; height: 24px; }
.lk-callout-txt { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.lk-callout-txt strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.lk-callout-txt > span:last-child { color: var(--muted); font-size: .92rem; }
.lk-callout .eyebrow { margin: 0; }
@media (max-width: 900px) {
  .lk-wrap { grid-template-columns: minmax(0, 1fr); }
  .lk-side { display: none; }
  .lk-select { display: block; }
}
@media (max-width: 560px) {
  .lk-row { gap: 12px; padding: 11px 12px; }
  .lk-cat h2 { font-size: 1.22rem; }
  .lk-callout { flex-wrap: wrap; }
  .lk-select { flex-basis: 100%; }
}
@media (pointer: coarse) { .lk-clear { width: 44px; height: 44px; } }
