/* bahadirdogru.com ailesi: ortak tema.
   shadcn/ui tasarım dili, Jekyll için düz CSS. Her site yalnızca vurgu tonunu (--h) değiştirir.
   Bu dosya tüm depolarda aynıdır; siteye özel kurallar extra_css ile ayrı dosyaya yazılır. */

@font-face { font-family: "Geist"; font-weight: 100 900; font-display: swap; src: url("../fonts/geist-latin-ext-wght-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; font-weight: 100 900; font-display: swap; src: url("../fonts/geist-latin-wght-normal.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; }
@font-face { font-family: "Geist Mono"; font-weight: 100 900; font-display: swap; src: url("../fonts/geist-mono-latin-ext-wght-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-weight: 100 900; font-display: swap; src: url("../fonts/geist-mono-latin-wght-normal.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; }

:root { --h: 242; }
.hue-242 { --h: 242; } .hue-295 { --h: 295; } .hue-55 { --h: 55; } .hue-155 { --h: 155; } .hue-350 { --h: 350; } .hue-200 { --h: 200; } .hue-90 { --h: 90; }

:root {
  --radius: 0.625rem;
  --background: oklch(0.993 0.003 var(--h));
  --foreground: oklch(0.21 0.04 var(--h));
  --card: oklch(1 0 0);
  --primary: oklch(0.52 0.13 var(--h));
  --primary-foreground: oklch(0.985 0 0);
  --secondary: oklch(0.95 0.025 var(--h));
  --secondary-foreground: oklch(0.43 0.1 var(--h));
  --muted: oklch(0.965 0.012 var(--h));
  --muted-foreground: oklch(0.5 0.035 var(--h));
  --accent: oklch(0.945 0.03 var(--h));
  --border: oklch(0.915 0.018 var(--h));
  --ring: oklch(0.68 0.12 var(--h));
  --glow-1: oklch(0.7 0.13 var(--h) / 22%);
  --glow-2: oklch(0.72 0.12 calc(var(--h) + 38) / 14%);
  --glow-3: oklch(0.82 0.12 calc(var(--h) - 42) / 22%);
  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.07);
  --header-h: 3.5rem;
  color-scheme: light;
}
:root.dark {
  --background: oklch(0.165 0.025 var(--h));
  --foreground: oklch(0.97 0.008 var(--h));
  --card: oklch(0.205 0.032 var(--h));
  --primary: oklch(0.76 0.12 var(--h));
  --primary-foreground: oklch(0.17 0.04 var(--h));
  --secondary: oklch(0.29 0.06 var(--h));
  --secondary-foreground: oklch(0.88 0.06 var(--h));
  --muted: oklch(0.235 0.035 var(--h));
  --muted-foreground: oklch(0.74 0.035 var(--h));
  --accent: oklch(0.285 0.055 var(--h));
  --border: oklch(0.8 0.08 var(--h) / 16%);
  --ring: oklch(0.62 0.12 var(--h));
  --glow-1: oklch(0.55 0.13 var(--h) / 32%);
  --glow-2: oklch(0.52 0.13 calc(var(--h) + 38) / 18%);
  --glow-3: oklch(0.62 0.11 calc(var(--h) - 42) / 18%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--background); color: var(--foreground);
  font: 400 1rem/1.7 var(--font-sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--ring); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
img, video { max-width: 100%; height: auto; }
h1, h2, h3, h4 { text-wrap: balance; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 100; background: var(--background); padding: 6px 10px; }
.container { width: 100%; max-width: 64rem; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
main { flex: 1; min-width: 0; }
.muted { color: var(--muted-foreground); }
.icon { width: 1rem; height: 1rem; flex: none; }

/* düğme */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 2.5rem; padding: 0 1.125rem; border: 1px solid transparent;
  border-radius: calc(var(--radius) - 2px); background: var(--primary); color: var(--primary-foreground); font: 500 .875rem/1 var(--font-sans);
  text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .15s, color .15s, opacity .15s; }
.btn:hover { opacity: .9; text-decoration: none; }
.btn-outline { background: var(--background); color: var(--foreground); border-color: var(--border); box-shadow: var(--shadow-xs); }
.btn-ghost { background: transparent; color: var(--foreground); }
.btn-outline:hover, .btn-ghost:hover { background: var(--accent); opacity: 1; }
.btn-sm { height: 2rem; padding: 0 .75rem; gap: .375rem; font-size: .8125rem; }
.btn-icon { width: 2.25rem; height: 2.25rem; padding: 0; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: .625rem; }
.theme-toggle .icon-moon, .dark .theme-toggle .icon-sun { display: none; }
.dark .theme-toggle .icon-moon { display: block; }

/* rozet */
.badges { display: flex; flex-wrap: wrap; gap: .375rem; margin: 0; padding: 0; list-style: none; }
.badge { display: inline-flex; align-items: center; padding: .125rem .5rem; border: 1px solid transparent; border-radius: calc(var(--radius) - 4px);
  background: var(--secondary); color: var(--secondary-foreground); font-size: .75rem; font-weight: 500; line-height: 1.25rem; white-space: nowrap; }
.badge-outline { background: var(--background); border-color: color-mix(in oklab, var(--primary) 30%, transparent); color: var(--secondary-foreground); white-space: normal; }

/* üst çubuk */
.site-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--background) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.header-in { height: var(--header-h); display: flex; align-items: center; gap: .5rem; width: 100%; max-width: 92rem; margin: 0 auto; padding: 0 1rem; }
.header-in.container { max-width: 64rem; padding: 0 1.5rem; }
.home-sig { display: flex; align-items: center; flex: none; color: var(--primary); }
.sig { display: block; aspect-ratio: 1077 / 549; background: currentColor;
  -webkit-mask: url("../images/signature.svg") center / contain no-repeat; mask: url("../images/signature.svg") center / contain no-repeat; }
.home-sig .sig { width: 2.75rem; transition: transform .2s; }
.home-sig:hover .sig { transform: rotate(-4deg); }
.slash { color: var(--muted-foreground); opacity: .5; font-size: 1.25rem; font-weight: 300; }
.brand { font-weight: 600; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.site-nav { display: flex; gap: .125rem; margin-left: .5rem; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.site-nav a { padding: .375rem .625rem; border-radius: calc(var(--radius) - 2px); color: var(--muted-foreground); font-size: .875rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.site-nav a:hover { color: var(--foreground); background: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--secondary-foreground); background: var(--secondary); }
.family-menu { position: relative; margin-left: auto; flex: none; }
.search-trigger + .family-menu { margin-left: 0; }
.family-menu summary { list-style: none; }
.family-menu summary::-webkit-details-marker { display: none; }
.family-menu ul { position: absolute; top: 2.5rem; right: 0; width: min(22rem, 90vw); max-height: 75vh; overflow: auto; margin: 0; padding: .25rem; list-style: none;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 16px 40px -12px rgb(0 0 0 / .3); }
.family-menu a { display: block; padding: .5rem .625rem; border-radius: calc(var(--radius) - 4px); text-decoration: none; line-height: 1.4; }
.family-menu a:hover, .family-menu a[aria-current] { background: var(--accent); }
.family-menu strong { display: block; font-size: .875rem; font-weight: 500; }
.family-menu a span { display: block; color: var(--muted-foreground); font-size: .75rem; }
.menu-btn { display: none; }

/* arama düğmesi */
kbd { display: inline-block; min-width: 1.375rem; padding: .0625rem .3125rem; border: 1px solid var(--border); border-radius: 5px; background: var(--muted); color: var(--muted-foreground); font: 500 .6875rem/1.35 var(--font-sans); text-align: center; }
.search-trigger { display: flex; align-items: center; gap: .5rem; flex: 0 1 16rem; min-width: 8.5rem; height: 2.25rem; margin-left: auto; padding: 0 .5rem 0 .625rem;
  border: 1px solid var(--border); border-radius: calc(var(--radius) - 2px); background: var(--card); color: var(--muted-foreground); font: 400 .875rem var(--font-sans); cursor: pointer; }
.search-trigger:hover { border-color: var(--ring); color: var(--foreground); }
.search-trigger span { flex: 1; overflow: hidden; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.search-trigger kbd { white-space: nowrap; }

/* arama penceresi (Spotlight) */
html:has(.spotlight[open]) { overflow: hidden; }
.spotlight { width: min(46rem, calc(100vw - 2rem)); max-width: none; max-height: 80vh; margin: 12vh auto auto; padding: 0; overflow: hidden; color: var(--foreground);
  border: 1px solid color-mix(in oklab, var(--primary) 22%, var(--border)); border-radius: 1rem; background: color-mix(in oklab, var(--card) 90%, transparent);
  -webkit-backdrop-filter: blur(28px) saturate(1.6); backdrop-filter: blur(28px) saturate(1.6); box-shadow: 0 32px 80px -16px rgb(0 0 0 / .45), 0 0 0 1px rgb(0 0 0 / .04); }
.spotlight[open] { display: flex; flex-direction: column; animation: sp-in .14s ease-out; }
.spotlight::backdrop { background: rgb(0 0 0 / .3); }
@keyframes sp-in { from { opacity: 0; transform: scale(.97); } }
.sp-bar { display: flex; flex: none; align-items: center; gap: .75rem; padding: 0 1rem; }
.sp-bar > .icon { width: 1.375rem; height: 1.375rem; color: var(--muted-foreground); }
.sp-bar input { flex: 1; min-width: 0; height: 3.75rem; border: 0; outline: 0; background: transparent; color: var(--foreground); font: 400 1.3125rem var(--font-sans); }
.sp-bar input::placeholder { color: var(--muted-foreground); opacity: .7; }
.sp-close { flex: none; padding: 0; border: 0; background: none; color: var(--muted-foreground); font: 500 .875rem var(--font-sans); cursor: pointer; }
.sp-close span { display: none; }
.sp-body { display: grid; flex: 0 1 auto; grid-template-columns: minmax(0, 11fr) minmax(0, 10fr); grid-template-rows: minmax(0, 1fr); height: min(27rem, 58vh); min-height: 0; border-top: 1px solid var(--border); }
.sp-body.is-empty { grid-template-columns: minmax(0, 1fr); height: auto; }
.sp-body.is-empty .sp-preview { display: none; }
.sp-list { overflow: auto; padding: 0 .375rem .375rem; overscroll-behavior: contain; }
.sp-group-title { margin: 0; padding: .625rem .625rem .25rem; color: var(--muted-foreground); font-size: .6875rem; font-weight: 600; letter-spacing: .02em; }
.sp-item { display: flex; align-items: center; gap: .625rem; padding: .375rem .625rem; border-radius: calc(var(--radius) - 3px); text-decoration: none; scroll-margin: 2rem 0 .375rem; }
.sp-item:hover { text-decoration: none; }
.sp-item[aria-selected="true"] { background: var(--primary); color: var(--primary-foreground); }
.sp-icon { display: grid; flex: none; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: .4375rem; background: var(--secondary); color: var(--secondary-foreground); }
.sp-icon svg { width: 1rem; height: 1rem; }
.sp-item[aria-selected="true"] .sp-icon { background: color-mix(in oklab, var(--primary-foreground) 18%, transparent); color: var(--primary-foreground); }
.sp-text { flex: 1; min-width: 0; }
.sp-title, .sp-sub { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-title { font-size: .875rem; font-weight: 500; line-height: 1.4; }
.sp-sub { color: var(--muted-foreground); font-size: .75rem; line-height: 1.4; }
.sp-item[aria-selected="true"] .sp-sub { color: inherit; opacity: .85; }
.sp-top .sp-item { padding: .625rem; }
.sp-top .sp-icon { width: 2.5rem; height: 2.5rem; }
.sp-top .sp-icon svg { width: 1.375rem; height: 1.375rem; }
.sp-top .sp-title { font-size: 1rem; }
.spotlight mark { border-radius: 3px; background: color-mix(in oklab, var(--primary) 22%, transparent); color: inherit; }
.spotlight [aria-selected="true"] mark { background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.sp-preview { overflow: auto; padding: 1.25rem; border-left: 1px solid var(--border); font-size: .8125rem; line-height: 1.6; overflow-wrap: anywhere; overscroll-behavior: contain; }
.sp-preview > .sp-icon { width: 3.5rem; height: 3.5rem; margin: 0 auto .75rem; border-radius: .875rem; }
.sp-preview > .sp-icon svg { width: 1.75rem; height: 1.75rem; }
.sp-preview h2 { margin: 0; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.015em; text-align: center; }
.sp-kind { margin: .125rem 0 1rem; color: var(--muted-foreground); font-size: .75rem; text-align: center; }
.sp-preview p { margin: 0 0 .75rem; }
.sp-preview h3 { margin: 1rem 0 .375rem; padding-top: .75rem; border-top: 1px solid var(--border); color: var(--muted-foreground); font-size: .6875rem; font-weight: 600; }
.sp-preview ul { margin: 0; padding: 0; list-style: none; }
.sp-preview li a { display: block; padding: .1875rem .375rem; border-radius: 5px; text-decoration: none; }
.sp-preview li > span { display: block; padding: .1875rem .375rem; }
.sp-preview li a:hover { background: var(--accent); }
.sp-chips { display: flex; flex-wrap: wrap; gap: .25rem; }
.sp-chips li { padding: .0625rem .375rem; border-radius: 5px; background: var(--muted); font: .6875rem/1.6 var(--font-mono); }
.sp-snippet { color: var(--muted-foreground); }
.sp-empty { margin: 0; padding: 1.5rem 1rem; color: var(--muted-foreground); font-size: .875rem; text-align: center; }
.sp-foot { display: flex; flex: none; flex-wrap: wrap; gap: .25rem 1rem; margin: 0; padding: .5rem 1rem; border-top: 1px solid var(--border); color: var(--muted-foreground); font-size: .6875rem; }
.sp-foot kbd { margin-right: .1875rem; }
@media (max-width: 720px) {
  .sp-body { grid-template-columns: minmax(0, 1fr); }
  .sp-preview { display: none; }
}
@media (max-width: 560px) {
  .search-trigger { flex: none; justify-content: center; width: 2.25rem; min-width: 0; padding: 0; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .spotlight { width: 100%; height: 100%; height: 100dvh; max-height: none; margin: 0; border: 0; border-radius: 0; background: var(--background); }
  .sp-bar input { font-size: 1.0625rem; }
  .sp-close kbd { display: none; }
  .sp-close span { display: inline; text-transform: capitalize; }
  .sp-body, .sp-body.is-empty { flex: 1; height: auto; }
  .sp-foot { display: none; }
}

/* giriş ve bölümler */
.hero { position: relative; isolation: isolate; padding: 4.5rem 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
  radial-gradient(closest-side at 50% 50%, var(--glow-1), transparent) 50% 20% / 70% 90% no-repeat,
  radial-gradient(closest-side, var(--glow-2), transparent) 0 40% / 55% 80% no-repeat,
  radial-gradient(closest-side, var(--glow-3), transparent) 100% 60% / 55% 80% no-repeat; }
.hero > * { max-width: 100%; }
.hero h1 { margin: 1.5rem 0 1rem; max-width: 52rem; font-size: clamp(2.25rem, 6vw, 3.5rem); font-weight: 650; line-height: 1.08; letter-spacing: -.04em; }
.hero .lede { max-width: 40rem; margin-bottom: 2rem; }
.hero .actions { justify-content: center; }
.hero pre { text-align: left; }
.grad { background: linear-gradient(100deg, oklch(0.54 0.15 var(--h)), oklch(0.62 0.12 calc(var(--h) - 35))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dark .grad { background-image: linear-gradient(100deg, oklch(0.74 0.13 var(--h)), oklch(0.84 0.11 calc(var(--h) - 35))); }
.lede, .intro { margin: 0; color: var(--muted-foreground); font-size: 1.125rem; text-wrap: pretty; }
.section { padding: 3.5rem 0; border-top: 1px solid var(--border); }
.section-head { margin-bottom: 1.75rem; }
.section-head h2 { margin: 0; font-size: 1.5rem; font-weight: 600; letter-spacing: -.025em; }
.section-head h2::before { content: ""; display: block; width: 2rem; height: .25rem; margin-bottom: .75rem; border-radius: 99px;
  background: linear-gradient(90deg, oklch(0.55 0.14 var(--h)), oklch(0.7 0.12 calc(var(--h) - 35))); }
.section-head p { margin: .25rem 0 0; color: var(--muted-foreground); }

/* kartlar */
.grid, .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 1rem; margin: 0 0 1.5rem; }
.card { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 1.25rem; border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(160deg, oklch(0.7 0.15 var(--h) / 9%), transparent 55%), var(--card); box-shadow: var(--shadow-xs); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
a.card:hover, .card:has(.card-link):hover { border-color: var(--ring); box-shadow: var(--shadow-md); }
.card h3, .card > strong { margin: 0; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.4; }
.card p, .card > span { margin: 0; color: var(--muted-foreground); font-size: .9375rem; }
.card-link { text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card > .icon { width: 1.5rem; height: 1.5rem; color: var(--primary); }
.card > .icon svg { width: 100%; height: 100%; }

/* tablo */
.table-card, .table-wrap, .table-scroll { overflow-x: auto; margin: 0 0 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-xs); }
:is(.table-card, .table-wrap, .table-scroll) table { width: 100%; border-collapse: collapse; font-size: .875rem; margin: 0; }
:is(.table-card, .table-wrap, .table-scroll) :is(th, td) { padding: .625rem .875rem; text-align: left; vertical-align: top; border: 0; border-bottom: 1px solid var(--border); }
:is(.table-card, .table-wrap, .table-scroll) thead th { background: var(--muted); color: var(--muted-foreground); font-weight: 500; font-size: .8125rem; }
:is(.table-card, .table-wrap, .table-scroll) tbody tr:last-child > * { border-bottom: 0; }

/* dokümantasyon yerleşimi */
.docs { flex: 1; display: grid; grid-template-columns: 17rem minmax(0, 1fr) 14rem; align-items: start; width: 100%; max-width: 92rem; margin: 0 auto; }
.docs.no-sidebar { grid-template-columns: minmax(0, 1fr) 14rem; max-width: 68rem; }
.sidebar { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow: auto; padding: 1.25rem .75rem 3rem; border-right: 1px solid var(--border); font-size: .875rem; }
.nav-sec summary { display: flex; align-items: center; gap: .375rem; padding: .375rem .5rem; list-style: none; cursor: pointer; font-weight: 600; }
.nav-sec summary::-webkit-details-marker { display: none; }
.nav-sec summary::after { content: ""; width: .375rem; height: .375rem; margin-left: auto; border-right: 1.5px solid var(--muted-foreground); border-bottom: 1.5px solid var(--muted-foreground); transform: rotate(-45deg); transition: transform .15s; }
.nav-sec[open] summary::after { transform: rotate(45deg); }
.nav-sec ul { list-style: none; margin: 0 0 .75rem; padding: 0; }
.nav-sec a { display: block; padding: .3125rem .5rem; border-radius: calc(var(--radius) - 3px); color: var(--muted-foreground); text-decoration: none; line-height: 1.45; overflow-wrap: anywhere; }
.nav-sec a:hover { background: var(--accent); color: var(--foreground); }
.nav-sec a[aria-current="page"] { background: var(--secondary); color: var(--secondary-foreground); font-weight: 500; }
.content { padding: 2rem 2.5rem 4rem; }
.content > * { max-width: 52rem; }
.docs.no-sidebar .content > * { margin-left: auto; margin-right: auto; }
.toc { position: sticky; top: var(--header-h); max-height: calc(100vh - var(--header-h)); overflow: auto; padding: 2rem 1rem; font-size: .8125rem; }
.toc p { margin: 0 0 .5rem; font-weight: 600; }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.toc a { display: block; margin-left: -1px; padding: .1875rem .75rem; border-left: 1px solid transparent; color: var(--muted-foreground); text-decoration: none; line-height: 1.45; overflow-wrap: anywhere; }
.toc li.l3 a { padding-left: 1.5rem; }
.toc a:hover { color: var(--foreground); }
.toc a.active { border-left-color: var(--primary); color: var(--primary); font-weight: 500; }
.crumbs { margin: 0 0 .75rem; color: var(--muted-foreground); font-size: .8125rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--primary); }
.crumbs span { margin: 0 .25rem; }
.page-foot { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--border); color: var(--muted-foreground); font-size: .8125rem; }

/* metin */
.prose { min-width: 0; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose h1 { margin: 0 0 1.25rem; font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 650; line-height: 1.2; letter-spacing: -.035em; }
.prose h2 { margin: 2.75rem 0 1rem; padding-bottom: .375rem; border-bottom: 1px solid var(--border); font-size: 1.4375rem; font-weight: 600; letter-spacing: -.025em; line-height: 1.3; }
.prose h3 { margin: 2rem 0 .75rem; font-size: 1.1875rem; font-weight: 600; letter-spacing: -.015em; }
.prose h4 { margin: 1.5rem 0 .5rem; font-size: 1rem; font-weight: 600; }
.prose .anchor { float: left; width: 1.25rem; margin-left: -1.25rem; color: var(--muted-foreground); font-weight: 400; text-decoration: none; opacity: 0; }
.prose :is(h1, h2, h3, h4):hover .anchor, .prose .anchor:focus { opacity: 1; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.125rem; }
.prose li + li { margin-top: .375rem; }
.prose li::marker { color: var(--primary); }
.prose a:not(.btn):not(.card):not(.card-link), .callout a { color: var(--primary); text-decoration-color: color-mix(in oklab, var(--primary) 35%, transparent); }
.prose a:not(.btn):not(.card):hover, .callout a:hover { text-decoration-color: currentColor; }
.prose blockquote, .callout, .note { margin: 0 0 1.25rem; padding: .875rem 1rem; border: 1px solid color-mix(in oklab, var(--primary) 28%, transparent); border-radius: var(--radius);
  background: color-mix(in oklab, var(--primary) 7%, var(--card)); font-size: .9375rem; }
.prose blockquote > :last-child, .callout > :last-child, .note > :last-child { margin-bottom: 0; }
code, kbd, pre, samp { font-family: var(--font-mono); }
.prose code, .card code, .lede code { font-size: .85em; background: var(--muted); padding: .15em .375em; border-radius: calc(var(--radius) - 5px); overflow-wrap: anywhere; }
.prose td code { overflow-wrap: normal; }
pre { position: relative; margin: 0 0 1.25rem; padding: 1rem 1.25rem; overflow: auto; background: var(--muted); border: 1px solid var(--border); border-radius: var(--radius); font-size: .8125rem; line-height: 1.65; }
.prose pre code, pre code { background: none; padding: 0; font-size: inherit; overflow-wrap: normal; }
figure { margin: 0 0 1.25rem; }
figure pre { margin-bottom: 0; }
figcaption { margin-top: .5rem; color: var(--muted-foreground); font-size: .8125rem; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
.prose img { border-radius: var(--radius); }
.prose table:not(.rouge-table) { display: block; width: max-content; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 0 0 1.25rem; font-size: .875rem; }
.prose th, .prose td { padding: .5rem .75rem; text-align: left; vertical-align: top; border: 1px solid var(--border); }
.prose th { background: var(--muted); font-weight: 600; }
.prose :is(.table-wrap, .table-scroll, .table-card) table:not(.rouge-table) { display: table; width: 100%; max-width: none; margin: 0; }
.prose :is(.table-wrap, .table-scroll, .table-card) :is(th, td) { border-width: 0 0 1px; }
.prose a.tbl code { color: var(--primary); }
.prose details { margin: 0 0 1.25rem; }
.prose details summary { cursor: pointer; color: var(--primary); }
.eyebrow, .kicker { margin: 0 0 .75rem; color: var(--primary); font-size: .8125rem; font-weight: 500; }
.copy-btn { position: absolute; top: .5rem; right: .5rem; padding: .25rem .625rem; border: 1px solid var(--border); border-radius: calc(var(--radius) - 4px);
  background: var(--background); color: var(--muted-foreground); font: 500 .75rem var(--font-sans); cursor: pointer; opacity: 0; transition: opacity .15s; }
.copy-btn:hover { color: var(--foreground); }
pre:hover .copy-btn, .copy-btn:focus { opacity: 1; }
.filter { width: 100%; max-width: 26rem; height: 2.25rem; margin: 0 0 .75rem; padding: 0 .75rem; border: 1px solid var(--border); border-radius: calc(var(--radius) - 2px);
  background: var(--card); color: var(--foreground); font: inherit; font-size: .875rem; }

/* önceki / sonraki */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.pager a { display: block; padding: .875rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: .875rem; font-weight: 500; text-decoration: none; }
.pager a:hover { background: var(--muted); border-color: var(--ring); }
.pager a span { display: block; color: var(--muted-foreground); font-size: .75rem; font-weight: 400; }
.pager .next { grid-column: 2; text-align: right; }

/* altbilgi */
.site-footer { margin-top: 3rem; padding: 2rem 0 1.5rem; border-top: 1px solid var(--border); color: var(--muted-foreground); font-size: .875rem; }
.footer-title { margin: 0 0 .75rem; color: var(--foreground); font-weight: 600; }
.family { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: .5rem; margin: 0 0 1.75rem; padding: 0; list-style: none; }
.family a { display: block; height: 100%; padding: .625rem .75rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); text-decoration: none; line-height: 1.45; }
.family a:hover { border-color: var(--ring); background: var(--muted); }
.family strong { display: block; color: var(--foreground); font-weight: 500; }
.family span { display: block; font-size: .75rem; }
.footer-in { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.footer-in p { margin: 0; }
.footer-in a { text-decoration: none; }
.footer-in a:hover { color: var(--primary); }
.footer-note { max-width: 38rem; font-size: .8125rem; }

/* kod renklendirme: rouge (.highlight) ve highlight.js (.hljs-*), iki temada da okunur */
.highlight :is(.c, .c1, .cm, .cs), .hljs-comment, .hljs-quote { color: var(--muted-foreground); font-style: italic; }
.highlight :is(.k, .kd, .kn, .kr, .kt, .kc), .hljs-keyword, .hljs-selector-tag, .hljs-literal, .hljs-type { color: #cf222e; }
.highlight :is(.s, .s1, .s2, .sb, .sd, .se, .sh), .hljs-string, .hljs-regexp { color: #0a3069; }
.highlight :is(.m, .mi, .mf, .mh), .hljs-number, .hljs-symbol { color: #0550ae; }
.highlight :is(.nf, .fm, .nc), .hljs-title { color: #8250df; }
.highlight :is(.nb, .bp, .na), .hljs-built_in, .hljs-attr, .hljs-attribute, .hljs-variable, .hljs-template-variable { color: #953800; }
.highlight .nt, .hljs-name, .hljs-tag .hljs-name, .hljs-section { color: #116329; }
.hljs-meta { color: var(--muted-foreground); }
.dark .highlight :is(.k, .kd, .kn, .kr, .kt, .kc), .dark :is(.hljs-keyword, .hljs-selector-tag, .hljs-literal, .hljs-type) { color: #ff7b72; }
.dark .highlight :is(.s, .s1, .s2, .sb, .sd, .se, .sh), .dark :is(.hljs-string, .hljs-regexp) { color: #a5d6ff; }
.dark .highlight :is(.m, .mi, .mf, .mh), .dark :is(.hljs-number, .hljs-symbol) { color: #79c0ff; }
.dark .highlight :is(.nf, .fm, .nc), .dark .hljs-title { color: #d2a8ff; }
.dark .highlight :is(.nb, .bp, .na), .dark :is(.hljs-built_in, .hljs-attr, .hljs-attribute, .hljs-variable, .hljs-template-variable) { color: #ffa657; }
.dark .highlight .nt, .dark :is(.hljs-name, .hljs-section) { color: #7ee787; }

@media (max-width: 1200px) {
  .docs { grid-template-columns: 17rem minmax(0, 1fr); }
  .docs.no-sidebar { grid-template-columns: minmax(0, 1fr); }
  .docs > .toc { display: none; }
  .header-in:not(.container) .site-nav { display: none; }
}
@media (max-width: 860px) {
  .docs { grid-template-columns: minmax(0, 1fr); }
  .menu-btn { display: inline-flex; }
  .sidebar { position: fixed; z-index: 30; top: var(--header-h); left: 0; width: min(86vw, 20rem); background: var(--background);
    transform: translateX(-101%); visibility: hidden; transition: transform .2s, visibility .2s; box-shadow: 0 0 32px rgb(0 0 0 / .25); }
  body.nav-open .sidebar { transform: none; visibility: visible; }
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--background); }
  .content { padding: 1.25rem 1rem 3rem; }
  .prose .anchor { display: none; }
  .site-nav { display: none; }
  .family-menu summary span { display: none; }
  .family-menu summary { width: 2.25rem; height: 2.25rem; padding: 0; }
  .family-menu ul { position: fixed; top: var(--header-h); right: .5rem; }
}
@media (min-width: 561px) { .brand { flex: none; } }
@media (max-width: 1180px) {
  /* tanıtım sayfalarında üst menü ikinci satıra iner, site adı kesilmez */
  .header-in.container:has(.site-nav a) { flex-wrap: wrap; height: auto; min-height: var(--header-h); padding-top: .5rem; }
  .header-in.container .site-nav:has(a) { display: flex; order: 10; flex-basis: 100%; margin: 0; padding: .25rem 0 .5rem; }
}
@media (max-width: 560px) {
  .container, .header-in.container { padding-left: 1rem; padding-right: 1rem; }
  .header-in { gap: .25rem; padding: 0 .5rem; }
  .hero { padding: 3rem 0; }
  .section { padding: 2.5rem 0; }
  .slash { display: none; }
  .home-sig .sig { width: 2.25rem; }
  .brand { font-size: .875rem; }
  .repo-link { display: none; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
