/* Plus Jakarta Sans (SIL Open Font License 1.1) — yerel kopya, admin paneli yazı tipi (admin/views/layout/head.html).
   Kaynak: Google Fonts v12, değişken ağırlık 400–800; latin + latin-ext (Türkçe harfler ve ₺ latin-ext'te). */
/* latin-ext */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/pjs-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/pjs-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* WapFlow Blog · "B · Koyu Ürün" */
:root {
  --pri: #25D366;
  --teal: #0B7285;
  --on-pri: #06281A;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  --r-s: 10px; --r-m: 14px; --r-l: 20px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --top-h: 68px;
}
html[data-theme=dark] {
  --surface-solid: #141B38;
  --bg-image: radial-gradient(1100px 560px at 88% -12%, #123B3A 0%, rgba(18, 59, 58, 0) 60%), radial-gradient(900px 500px at -5% 112%, #1B1F4D 0%, rgba(27, 31, 77, 0) 60%), #0A1028;
  color-scheme: dark;
  --bg: #0A1028;
  --glow-a: rgba(37, 211, 102, .13);
  --glow-b: rgba(18, 90, 110, .42);
  --surface: rgba(255, 255, 255, .05);
  --surface-2: rgba(255, 255, 255, .08);
  --header: rgba(10, 16, 40, .78);
  --line: rgba(255, 255, 255, .10);
  --line-2: rgba(255, 255, 255, .18);
  --text: #F1F5FD;
  --body: #D5DDEE;
  --mut: #B8C2DC;
  --faint: #A9B5D0;
  --link: #63E6BE;
  --grad: linear-gradient(90deg, #25D366, #3BC9DB);
  --cta: linear-gradient(120deg, #123B3A, #0F2F47);
  --shadow: 0 18px 48px rgba(0, 0, 0, .3);
  --shadow-s: none;
  --code: rgba(255, 255, 255, .08);
}
html[data-theme=light] {
  --surface-solid: #FFFFFF;
  --bg-image: radial-gradient(1100px 560px at 88% -12%, #D3F9E8 0%, rgba(211, 249, 232, 0) 60%), radial-gradient(900px 500px at -5% 112%, #E3E8FF 0%, rgba(227, 232, 255, 0) 60%), #F4F7FB;
  color-scheme: light;
  --bg: #F4F7FB;
  --glow-a: rgba(37, 211, 102, .16);
  --glow-b: rgba(59, 201, 219, .17);
  --surface: #FFFFFF;
  --surface-2: #F6F8FB;
  --header: rgba(244, 247, 251, .82);
  --line: #E3E8F0;
  --line-2: #CDD5E1;
  --text: #0B1530;
  --body: #26324E;
  --mut: #5B6785;
  --faint: #5F6C8A;
  --link: #0B7285;
  --grad: linear-gradient(90deg, #0E9F56, #0B7285);
  --cta: linear-gradient(120deg, #DFF8EA, #DCF1F6);
  --shadow: 0 12px 40px rgba(11, 21, 48, .10);
  --shadow-s: 0 1px 2px rgba(11, 21, 48, .05), 0 10px 28px rgba(11, 21, 48, .05);
  --code: #E9EEF5;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 16px); background: var(--bg); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  color: var(--text); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  background: var(--bg-image) fixed no-repeat;
}
main { flex: 1 0 auto; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { color: var(--text); text-wrap: balance; }
:focus-visible { outline: 2px solid var(--pri); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 24px; }
.wrap.narrow { max-width: 780px; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.skip { position: fixed; inset-inline-start: 12px; top: -60px; z-index: 300; padding: 10px 14px; border-radius: var(--r-s); background: var(--pri); color: var(--on-pri); font-weight: 700; }
.skip:focus { top: 12px; }

/* Üst çubuk */
.top {
  position: sticky; top: 0; z-index: 60;
  border-bottom: 1px solid var(--line);
  background: var(--header);
  -webkit-backdrop-filter: saturate(170%) blur(16px); backdrop-filter: saturate(170%) blur(16px);
}
.top-in { display: flex; align-items: center; gap: 12px; height: var(--top-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; color: var(--text); white-space: nowrap; }
.logo img { width: 30px; height: 30px; border-radius: 8px; }
.logo b { font-weight: 800; color: var(--link); }
.top-nav { display: flex; gap: 4px; margin-inline: 18px auto; font-size: 14.5px; font-weight: 550; color: var(--mut); }
.top-nav a { padding: 7px 12px; border-radius: 9px; transition: color .18s, background .18s; }
.top-nav a:hover { color: var(--text); background: var(--surface-2); }

.top-search, .hero-s, .sheet-search { position: relative; display: block; }
.top-search .ic, .hero-s .ic, .sheet-search .ic { position: absolute; top: 50%; inset-inline-start: 13px; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
input[type=search] {
  width: 100%; border: 1px solid var(--line-2); border-radius: 12px;
  background: var(--surface); color: var(--text); outline: 0;
  -webkit-appearance: none; appearance: none;
  transition: border-color .18s, box-shadow .18s;
}
input[type=search]::placeholder { color: var(--faint); opacity: 1; }
input[type=search]:focus { border-color: var(--pri); box-shadow: 0 0 0 3px rgba(37, 211, 102, .2); }
.top-search { width: 232px; }
.top-search input { height: 40px; padding-inline: 40px 12px; font-size: 14.5px; }

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: 12px; background: transparent; color: var(--text);
  font-size: 13.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .02em;
  transition: background .18s, border-color .18s, transform .18s;
}
.pill:hover { background: var(--surface-2); }
.pill:active { transform: scale(.96); }
.theme-btn { width: 40px; padding: 0; }
html[data-theme=dark] .theme-btn .ic:last-child, html[data-theme=light] .theme-btn .ic:first-child { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 17px;
  border: 0; border-radius: 12px; background: var(--pri); color: var(--on-pri);
  font-size: 14.5px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 8px 22px rgba(37, 211, 102, .25);
  transition: transform .18s var(--ease), box-shadow .18s, background .18s;
}
.btn:hover { background: #3DE08A; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(37, 211, 102, .32); }

/* Üst alan */
.hero { padding: 64px 0 40px; text-align: center; }
.hero h1 { max-width: 820px; margin: 0 auto 14px; font-size: clamp(32px, 5.2vw, 54px); line-height: 1.1; font-weight: 800; letter-spacing: -.026em; }
.hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { max-width: 580px; margin: 0 auto 26px; color: var(--mut); font-size: 18px; }
.hero-s { max-width: 480px; margin: 0 auto; }
.hero-s .ic { inset-inline-start: 17px; }
.hero-s input { height: 54px; padding-inline: 48px 18px; font-size: 16px; border-radius: 15px; box-shadow: var(--shadow-s); }
.hero.small { padding: 44px 0 28px; }
.hero.small h1 { font-size: clamp(27px, 3.8vw, 38px); }
.hero.small p { margin-bottom: 0; }
.hero.nf { padding: 96px 0; }
.hero.nf p { margin-bottom: 24px; }
.hero.nf .btn { height: 46px; padding: 0 22px; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.chip {
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface);
  color: var(--mut); font-size: 14px; font-weight: 550; transition: color .18s, border-color .18s, background .18s;
}
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip.on { border-color: transparent; background: var(--pri); color: var(--on-pri); font-weight: 700; }

/* Yazı kartları: 3 sütun; öne çıkan kart tam satır, görseli kırpılmaz */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-bottom: 44px; }
.card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden; padding: 10px;
  border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface);
  box-shadow: var(--shadow-s);
  transition: transform .24s var(--ease), border-color .24s, box-shadow .24s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(37, 211, 102, .42); box-shadow: var(--shadow); }
.card-img { display: block; overflow: hidden; border-radius: 13px; background: var(--surface-2); aspect-ratio: 16 / 9; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-img img { transform: scale(1.035); }
.noimg { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--pri), var(--teal)); }
.card-b { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 15px 9px 9px; }
.kat { font-size: 12px; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; color: var(--link); }
html:is([lang=tr], [lang=ru], [lang=ar], [lang=fa], [lang=zh]) .kat { text-transform: none; letter-spacing: .01em; font-size: 13px; }
.kat:hover { text-decoration: underline; text-underline-offset: 3px; }
.card h2 { margin: 7px 0 7px; font-size: 18px; line-height: 1.32; font-weight: 700; letter-spacing: -.015em; }
.card h2 a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .28s var(--ease); }
.card h2 a:hover { background-size: 100% 1px; }
.card p { margin: 0 0 14px; color: var(--mut); font-size: 14.5px; line-height: 1.55; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.meta { color: var(--faint); font-size: 13.5px; }
.card .meta { margin-top: auto; }
.card.big { grid-column: 1 / -1; flex-direction: row; }
.card.big .card-img { flex: 0 0 60%; }
.card.big .card-b { flex: 1; min-width: 0; justify-content: center; padding: 18px 28px; }
.card.big h2 { margin: 10px 0; font-size: clamp(23px, 2.5vw, 31px); line-height: 1.2; letter-spacing: -.024em; }
.card.big p { font-size: 16px; -webkit-line-clamp: 4; line-clamp: 4; }
.card.big .meta { margin-top: 0; }

/* Sayfalama: önceki/sonraki + kısaltılmış numaralar (1 … 4 5 [6] 7 8 … 20) + "Sayfa 6 / 20"; mobilde yalnız önceki/sonraki + bilgi */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 8px; padding: 6px 0 52px; color: var(--mut); font-size: 14.5px; }
.pg-list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pg {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-s);
  color: var(--mut); font-size: 14.5px; font-weight: 650; font-variant-numeric: tabular-nums;
  transition: color .18s, border-color .18s, background .18s, transform .18s;
}
a.pg:hover { color: var(--text); border-color: var(--line-2); background: var(--surface-2); }
a.pg:active, a.pg-nav:active { transform: scale(.96); }
.pg.on { border-color: transparent; background: var(--pri); color: var(--on-pri); font-weight: 800; box-shadow: 0 8px 20px rgba(37, 211, 102, .28); }
.pg-gap { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 40px; color: var(--faint); font-weight: 700; user-select: none; }
.pg-nav {
  display: inline-flex; align-items: center; gap: 4px; height: 40px;
  border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-s);
  color: var(--text); font-size: 14.5px; font-weight: 650; white-space: nowrap;
  transition: background .18s, border-color .18s, transform .18s;
}
.pg-prev { padding-inline: 10px 16px; }
.pg-next { padding-inline: 16px 10px; }
a.pg-nav:hover { background: var(--surface-2); border-color: var(--pri); }
.pg-nav.is-off { opacity: .42; cursor: not-allowed; box-shadow: none; }
.pg-next .ic { transform: scaleX(-1); }
html[dir=rtl] .pg-prev .ic { transform: scaleX(-1); }
html[dir=rtl] .pg-next .ic { transform: none; }
.pg-info { flex: 0 0 100%; order: 5; margin: 4px 0 0; text-align: center; color: var(--faint); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.empty { padding: 34px 0 72px; text-align: center; color: var(--mut); font-size: 17px; }

/* Yazı */
.post { padding-top: 32px; }
.crumb { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; color: var(--faint); font-size: 14px; }
.crumb a { color: var(--mut); }
.crumb a:hover { color: var(--link); }
.post h1 { margin: 0 0 12px; font-size: clamp(29px, 4.2vw, 44px); line-height: 1.16; font-weight: 800; letter-spacing: -.024em; }
.post-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-top: 26px; border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow); background: var(--surface-2); }

.toc { margin-top: 28px; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.toc b { display: block; margin-bottom: 7px; color: var(--text); font-size: 14.5px; }
.toc ol { margin: 0; padding-inline-start: 20px; color: var(--faint); font-size: 15px; }
.toc li { padding: 3px 0; }
.toc a { color: var(--mut); }
.toc a:hover { color: var(--link); }

.prose { margin-top: 32px; color: var(--body); font-size: 18px; line-height: 1.8; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.25em; }
.prose h2 { margin: 1.9em 0 .6em; font-size: 1.55em; line-height: 1.24; font-weight: 750; letter-spacing: -.022em; }
.prose h3 { margin: 1.7em 0 .5em; font-size: 1.2em; line-height: 1.32; font-weight: 700; letter-spacing: -.012em; }
.prose h4 { margin: 1.5em 0 .4em; color: var(--text); font-size: 1.05em; }
.prose strong { color: var(--text); font-weight: 650; }
.prose a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose ul, .prose ol { margin: 0 0 1.35em; padding-inline-start: 1.4em; }
.prose li { margin: .42em 0; padding-inline-start: .25em; }
.prose li::marker { color: var(--link); font-weight: 650; }
.prose blockquote { margin: 1.5em 0; padding-block: .2em; padding-inline: 1.1em 0; border-inline-start: 3px solid var(--pri); color: var(--mut); }
.prose img { margin: 1.5em 0; border-radius: var(--r-m); }
.prose hr { margin: 2.2em 0; border: 0; border-top: 1px solid var(--line); }
.prose code { padding: .13em .36em; border-radius: 6px; background: var(--code); font: .88em var(--mono); }
.prose pre { overflow-x: auto; padding: 16px; border-radius: var(--r-m); background: var(--code); font-size: .85em; }
.prose pre code { padding: 0; background: none; }
.prose table { display: block; overflow-x: auto; width: 100%; margin: 1.5em 0; border-collapse: collapse; font-size: .92em; }
.prose th, .prose td { padding: 9px 12px; border: 1px solid var(--line); text-align: start; }

.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 40px 0 8px; padding: 22px 24px;
  border: 1px solid var(--line); border-radius: var(--r-l); background: var(--cta);
}
.cta b { display: block; color: var(--text); font-size: 19px; font-weight: 750; letter-spacing: -.012em; }
.cta span { color: var(--mut); font-size: 15px; }
.cta .btn { flex: none; height: 44px; }

.rel { margin-top: 44px; }
.rel > h2 { margin: 0 0 18px; font-size: 23px; font-weight: 750; letter-spacing: -.02em; }

/* Alt bilgi */
.foot { flex: none; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a:hover { color: var(--link); }

/* Alt çubuk ve paneller yalnız mobil/tablette */
.tabbar, .sheet, .sheet-bg { display: none; }

@media (max-width: 1100px) {
  .top-search { width: 190px; }
}

@media (max-width: 1023px) {
  :root { --top-h: 60px; --tab-h: 64px; --tab-gap: 10px; --tab-space: calc(var(--tab-h) + var(--tab-gap) * 2 + env(safe-area-inset-bottom)); }
  body { padding-bottom: var(--tab-space); }
  .top { padding-top: env(safe-area-inset-top); }
  .top-nav, .top-search, .top .btn { display: none; }
  .top-in { gap: 8px; }
  .logo { margin-inline-end: auto; }

  .hero { padding: 42px 0 30px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .card.big { flex-direction: column; }
  .card.big .card-img { flex: none; }
  .card.big .card-b { padding: 16px 10px 10px; }

  .tabbar {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    position: fixed; left: var(--tab-gap); right: var(--tab-gap); bottom: calc(var(--tab-gap) + env(safe-area-inset-bottom));
    z-index: 110; max-width: 560px; height: var(--tab-h); margin: 0 auto; padding: 0 4px 8px;
    border: 1px solid var(--line-2); border-radius: 24px;
    background: var(--surface-solid);
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
    box-shadow: 0 14px 36px rgba(8, 10, 20, .3), 0 2px 8px rgba(8, 10, 20, .12);
  }
  .tabbar > a, .tabbar > button {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px;
    min-width: 0; height: 100%; padding: 0; border: 0; background: none;
    color: var(--mut); -webkit-tap-highlight-color: transparent; transition: color .18s;
  }
  .tabbar > a:hover, .tabbar > button:hover, .tabbar [aria-expanded=true] { color: var(--link); }
  .tabbar .ic { width: 22px; height: 22px; transition: transform .16s var(--ease); }
  .tabbar > :active .ic { transform: scale(.88); }
  .tabbar span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10.5px; font-weight: 650; line-height: 1.15; }
  .tabbar > a.tab-main {
    justify-self: center; justify-content: center; align-self: start;
    width: 56px; height: 56px; margin-top: -22px; border-radius: 50%;
    background: linear-gradient(140deg, #4CE58B, var(--pri) 48%, #14A44D); color: var(--on-pri);
    box-shadow: 0 0 0 5px var(--bg), 0 10px 24px rgba(37, 211, 102, .45);
    transition: transform .18s var(--ease);
  }
  .tabbar > a.tab-main:hover { color: var(--on-pri); }
  .tabbar > a.tab-main:active { transform: scale(.93); }
  .tabbar > a.tab-main .ic { width: 25px; height: 25px; }

  .sheet-bg {
    display: block; position: fixed; inset: 0; z-index: 200;
    background: rgba(5, 8, 20, .58); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    opacity: 0; transition: opacity .28s ease;
  }
  .sheet-bg.open { opacity: 1; }
  .sheet-bg[hidden], .sheet[hidden] { display: none; }
  .sheet {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 210;
    max-width: 640px; max-height: 86vh; max-height: 86dvh; margin: 0 auto; overflow-y: auto; overscroll-behavior: contain;
    padding: 0 16px calc(20px + env(safe-area-inset-bottom));
    border: 1px solid var(--line-2); border-bottom: 0; border-radius: 26px 26px 0 0;
    background: var(--surface-solid); box-shadow: 0 -18px 50px rgba(0, 0, 0, .34);
    transform: translateY(100%); transition: transform .34s var(--ease);
  }
  .sheet::before { content: ""; display: block; width: 42px; height: 5px; margin: 10px auto 4px; border-radius: 3px; background: var(--line-2); }
  .sheet.open { transform: none; }
  .sheet:focus { outline: 0; }
  .sheet > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 4px 12px; }
  .sheet > header b { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
  .sheet > header button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--mut); }
  .sheet-row {
    display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 12px; margin-bottom: 8px;
    border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2);
    color: var(--text); font-size: 15.5px; font-weight: 600;
  }
  .sheet-row:active { transform: scale(.985); }
  .sheet-row .ic { color: var(--link); }
  .sheet-search { margin-bottom: 10px; }
  .sheet-search .ic { top: 26px; inset-inline-start: 15px; }
  .sheet-search input { height: 52px; padding-inline: 44px 16px; font-size: 16px; border-radius: 14px; background: var(--surface-2); }
  .set { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 4px 12px; color: var(--mut); font-size: 15px; font-weight: 600; }
  .seg { display: inline-flex; gap: 3px; padding: 3px; border-radius: 13px; background: var(--surface-2); }
  .seg a, .seg button {
    display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 13px; border: 0; border-radius: 10px;
    background: none; color: var(--mut); font-size: 14px; font-weight: 650; white-space: nowrap;
  }
  .seg .ic { width: 17px; height: 17px; }
  .seg a.on, html[data-theme=dark] .seg [data-theme-set=dark], html[data-theme=light] .seg [data-theme-set=light] { background: var(--pri); color: var(--on-pri); }
  html.has-sheet, html.has-sheet body { overflow: hidden; }
}

@media (max-width: 680px) {
  .wrap { padding-inline: 16px; }
  .pager { flex-wrap: nowrap; justify-content: space-between; gap: 8px; }
  .pg-list { display: none; }
  .pg-prev { order: 1; }
  .pg-info { flex: 1 1 auto; order: 2; min-width: 0; margin: 0; font-size: 14px; }
  .pg-next { order: 3; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .hero p { font-size: 16.5px; }
  .chip { font-size: 13.5px; padding: 6px 12px; }
  .prose { font-size: 17px; line-height: 1.75; }
  .toc { padding: 15px 17px; }
  .cta { flex-direction: column; align-items: stretch; text-align: center; padding: 20px; }
  .foot-in { flex-direction: column; align-items: flex-start; }
}

@media (min-width: 1024px) {
  .tabbar, .sheet, .sheet-bg { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .card:hover, .btn:hover { transform: none; }
  .card:hover .card-img img { transform: none; }
}

/* Yazar */
.author-box { display: flex; gap: 14px; align-items: flex-start; margin-top: 28px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.author-av { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: var(--on-pri); font-weight: 800; }
.author-box b a { color: var(--text); }
.author-box p { margin: 3px 0 0; color: var(--mut); font-size: 14.5px; }
.meta a { color: var(--link); }
.sec-t { margin: 8px 0 14px; font-size: 20px; }

/* Dil seçici: masaüstünde açılır menü, mobilde ayarlar panelinde ızgara */
.langmenu { position: relative; }
.langmenu > summary { list-style: none; cursor: pointer; }
.langmenu > summary::-webkit-details-marker { display: none; }
.langmenu[open] > summary { background: var(--surface-2); }
.langmenu-list {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 80; display: grid; gap: 2px; min-width: 190px; max-height: 70vh; overflow-y: auto; padding: 6px;
  border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface-solid); box-shadow: var(--shadow);
}
.langmenu-list a { padding: 9px 12px; border-radius: 9px; color: var(--mut); font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.langmenu-list a:hover { background: var(--surface-2); color: var(--text); }
.langmenu-list a.on { background: var(--pri); color: var(--on-pri); font-weight: 700; }
.langs { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 6px; flex: 1; }
.langs a { display: block; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--text); font-size: 14px; font-weight: 600; text-align: center; }
.langs a.on { border-color: transparent; background: var(--pri); color: var(--on-pri); }
.set-lang { align-items: flex-start; flex-direction: column; }
.set-lang .langs { width: 100%; }

/* Sağdan sola diller (ar, fa): Arapça harfler eksi harf aralığıyla kopar, bu yüzden sıfırlanır; kod blokları soldan sağa kalır */
html[dir=rtl] *, html[dir=rtl] *::before, html[dir=rtl] *::after { letter-spacing: 0 !important; }
html[dir=rtl] .card h2 a { background-position: 100% 100%; }
html[dir=rtl] .tabbar span, html[dir=rtl] .pill { text-transform: none; }
.prose pre, .prose code, .prose pre code { direction: ltr; unicode-bidi: isolate; text-align: left; }
.prose pre { text-align: left; }

/* Açılır arama: aria combobox + listbox (blog.js). Yazdıkça sonuçlar açılır panelde gelir; JS yoksa form ?s= sayfasına gider */
.sr-panel {
  position: absolute; top: calc(100% + 8px); inset-inline-start: 0; z-index: 50; width: 100%;
  max-height: min(72vh, 560px); overflow-y: auto; overscroll-behavior: contain;
  border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface-solid); box-shadow: var(--shadow);
  text-align: start; text-transform: none; letter-spacing: 0;
}
.top-search .sr-panel { inset-inline: auto 0; width: min(440px, 92vw); }
.sheet-search .sr-panel { position: static; width: auto; max-height: none; margin-top: 10px; box-shadow: none; }
.sr-panel[hidden], .sr-list[hidden] { display: none; }
.sr-list { margin: 0; padding: 6px; list-style: none; }
.sr-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 11px; color: var(--text); }
.sr-item:hover, .sr-opt.on > a { background: var(--surface-2); }
.sr-opt.on > a { outline: 2px solid var(--pri); outline-offset: -2px; }
.sr-thumb { flex: none; display: block; width: 64px; height: 36px; border-radius: 8px; object-fit: cover; background: var(--surface-2); }
.sr-thumb.noimg { width: 64px; height: 36px; }
.sr-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.sr-kat { color: var(--link); font-size: 11.5px; font-weight: 700; line-height: 1.3; }
.sr-title, .sr-desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.sr-title { color: var(--text); font-size: 14.5px; font-weight: 700; line-height: 1.35; }
.sr-desc { color: var(--mut); font-size: 13px; line-height: 1.45; }
.sr-panel mark { padding: 0 1px; border-radius: 3px; background: rgba(37, 211, 102, .3); color: inherit; }
.sr-more { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.sr-all { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 8px 12px; border-radius: 11px; color: var(--link); font-size: 14.5px; font-weight: 700; }
.sr-all::after { content: "→"; }
html[dir=rtl] .sr-all::after { content: "←"; }
.sr-more:hover > .sr-all, .sr-more.on > .sr-all { background: var(--surface-2); }
.sr-note { margin: 0; padding: 18px 16px; text-align: center; color: var(--mut); font-size: 14.5px; }
.sr-note:empty { display: none; }
.sr-live { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.is-busy > .ic { animation: sr-pulse 1s ease-in-out infinite; }
@keyframes sr-pulse { 50% { opacity: .35; } }
