/*
 * Yurtdışı Bileti · Temsilci Dokümantasyonu
 * Automad teması — düzen ve ölçüler VEED Help Center ile birebir,
 * renkler Yurtdışı Bileti marka paletine göre.
 */

/* ------------------------------------------------------------------ */
/* Yazı tipi (yerel barındırılır, dış istek yok)                       */
/* ------------------------------------------------------------------ */

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('../fonts/inter-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;
}

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('../fonts/inter-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;
}

/* ------------------------------------------------------------------ */
/* Tasarım belirteçleri                                                */
/* ------------------------------------------------------------------ */

:root {
	/* Marka paleti (logodan) */
	--ydb-navy: #193859;
	--ydb-navy-deep: #0f2740;
	--ydb-sky: #4daae3;
	--ydb-sky-light: #b3e6f5;
	--ydb-teal: #179091;
	--ydb-teal-deep: #116569;
	--ydb-sun: #f9e123;
	--ydb-orange: #f79035;

	/* VEED Help Center'daki tema değişkenlerinin karşılıkları */
	--body-bg-rgb: 255, 255, 255;
	--body-primary-color: #1a1a1a;
	--body-secondary-color: #595959;
	--primary-color: var(--ydb-navy);
	--text-on-primary-color: #ffffff;
	--card-bg: #ffffff;
	--card-border-color: rgba(26, 26, 26, 0.15);
	--card-border-radius: 24px;
	--card-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
	--header-bg: var(--ydb-navy);
	--header-color: #ffffff;
	--footer-bg: #ffffff;
	--footer-border: rgb(230, 230, 230);
	--footer-color: hsl(0, 0%, 7%);
	--notice-button-bg: var(--ydb-sun);
	--notice-button-color: var(--ydb-navy);
	--link-color: #1c6aa6;
	--link-color-strong: var(--ydb-navy);

	--z-header: 50;
	--z-command-palette: 100;
	--z-toast: 200;
	--paper: rgb(var(--body-bg-rgb));
	--paper-elev: var(--card-bg);
	--paper-muted: color-mix(in srgb, var(--paper) 96%, var(--ink) 4%);
	--paper-sunk: color-mix(in srgb, var(--paper) 91%, var(--ink) 9%);
	--ink: var(--body-primary-color);
	--ink-muted: var(--body-secondary-color);
	--ink-faint: color-mix(in srgb, var(--ink-muted) 68%, transparent);
	--accent: var(--primary-color);
	--accent-ink: var(--text-on-primary-color);
	--accent-soft: color-mix(in srgb, var(--accent) 6%, transparent);
	--accent-strong: var(--primary-color);
	--border: color-mix(in srgb, var(--ink) 15%, transparent);
	--border-strong: color-mix(in srgb, var(--border) 68%, var(--ink) 32%);
	--font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
	--display-tracking: 0;
	--display-line: 1.12;
	--body-line: 1.55;
	--radius-sm: 4px;
	--radius-md: 6px;
	--radius-lg: 8px;
	--radius-xl: 12px;
	--card-radius: var(--card-border-radius, var(--radius-lg));
	--nav-radius: min(var(--card-radius), var(--radius-xl));
	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;
	--space-5: 24px;
	--space-6: 32px;
	--space-8: 48px;
	--space-10: 64px;
	--focus-ring: var(--accent);
	--shadow-sm: var(--card-shadow, 0 1px 2px rgba(28, 32, 38, 0.04));
	--shadow-md: 0 2px 8px rgba(28, 32, 38, 0.06);
	--shadow-lg: 0 8px 24px rgba(28, 32, 38, 0.08);
	--topbar-h: 60px;

	/* Hareket: kritik sönümlü yay (sıçramasız), 0.35 sn tepki süresi.
	   Tarayıcı linear() desteklemezse ease'e düşer. Değerler yay denkleminden üretildi. */
	--ease-spring: linear(0.0000, 0.0403, 0.1319, 0.2442, 0.3594, 0.4677, 0.5645, 0.6482, 0.7187, 0.7771, 0.8248, 0.8633, 0.8941, 0.9186, 0.9379, 0.9530, 0.9648, 0.9740, 0.9812, 0.9867, 0.9909, 0.9941, 0.9966, 0.9985, 1.0000);
	--dur-spring: 0.42s;
}

@supports (color: oklch(from red l c h / 1)) {
	:root {
		--accent-soft: oklch(from var(--accent) min(l, 0.55) c h / calc(0.05 * (1 + 0.9 * l)));
	}
}

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

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: 80px;
}

body {
	margin: 0;
	min-height: 100vh;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	line-height: var(--body-line, 1.55);
	font-size: 15px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	display: flex;
	flex-direction: column;
}

img,
svg {
	display: block;
}

button {
	font: inherit;
}

a {
	color: inherit;
}

:where(h1, h2, h3, h4, h5, h6) {
	font-synthesis: none;
}

:focus-visible {
	outline: 2px solid var(--focus-ring);
	outline-offset: 2px;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: var(--space-4);
	top: -100px;
	z-index: calc(var(--z-header) + 10);
	padding: var(--space-2) var(--space-3);
	background: var(--paper);
	color: var(--ink);
	font-weight: 700;
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-lg);
}

.skip-link:focus {
	top: var(--space-4);
}

.docs-page {
	flex: 1 0 auto;
}

/* ------------------------------------------------------------------ */
/* Üst bar (DocsTopBar)                                                */
/* ------------------------------------------------------------------ */

.topbar {
	--ink: var(--header-color);
	--focus-ring: var(--header-color);
	--ink-muted: color-mix(in srgb, var(--header-color) 78%, transparent);
	--border: color-mix(in srgb, var(--header-color) 26%, transparent);
	--accent-soft: color-mix(in srgb, var(--header-color) 6%, transparent);
	position: fixed;
	inset-inline: 0;
	top: 0;
	z-index: var(--z-header);
	height: var(--topbar-h);
	display: flex;
	align-items: center;
	background-color: var(--header-bg);
	border-bottom: 1px solid color-mix(in srgb, var(--header-color) 12%, transparent);
	transition: box-shadow var(--dur-spring) var(--ease-spring);
	color: var(--header-color);
}

@supports (color: oklch(from red l c h / 1)) {
	.topbar {
		--accent-soft: oklch(from var(--header-color) l c h / calc(0.05 * (1 + l)));
	}
}

.topbar-spacer {
	height: var(--topbar-h);
}

.topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	min-width: 0;
	width: 100%;
	padding: 0 var(--space-4);
}

.topbar__left,
.topbar__right {
	display: flex;
	align-items: center;
	flex: 1 1 0;
	min-width: 0;
}

.topbar__right {
	justify-content: flex-end;
	gap: var(--space-5);
}

.topbar__brand {
	display: inline-flex;
	align-items: center;
	gap: var(--space-3);
	min-width: 0;
	overflow: hidden;
	text-decoration: none;
	color: var(--ink);
	padding-inline-start: var(--space-2);
}

.topbar__logo {
	display: block;
	flex-shrink: 0;
	height: 32px;
	max-width: min(40vw, 224px);
	object-fit: contain;
	width: auto;
}

.topbar__divider {
	flex-shrink: 0;
	width: 1px;
	height: 20px;
	background: color-mix(in srgb, currentColor 22%, transparent);
}

.topbar__label {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 16px;
	color: var(--ink);
}

.topbar__tabs {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	gap: var(--space-5);
}

.topbar__tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--ink-muted);
	font-family: var(--font-body);
	font-size: 14px;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
	padding: var(--space-2) var(--space-3);
	margin: calc(-1 * var(--space-2)) calc(-1 * var(--space-3));
	border-radius: var(--nav-radius);
	transition: color 0.15s ease, background-color 0.15s ease;
}

.topbar__tab svg {
	width: 12px;
	height: 12px;
}

@media (hover: hover) {
	.topbar__tab:hover {
		background: var(--accent-soft);
	}
}

.topbar__search {
	display: inline-flex;
	height: 30px;
	align-items: center;
	flex-shrink: 0;
	min-width: 140px;
	justify-content: space-between;
	gap: var(--space-3);
	padding: 0 var(--space-4);
	border: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
	border-radius: var(--nav-radius);
	background: color-mix(in srgb, var(--ink) 5%, transparent);
	color: var(--ink-muted);
	font-family: var(--font-body);
	font-size: 14px;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

@media (hover: hover) {
	.topbar__search:hover {
		background: var(--accent-soft);
		border-color: transparent;
	}
}

.kbd-hint {
	display: inline-flex;
	align-items: baseline;
	color: var(--ink-muted);
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
}

.kbd-hint__symbol {
	font-size: 15px;
	transform: translateY(1px);
}

.topbar__icon-btn {
	appearance: none;
	display: none;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 32px;
	height: 38px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
}

.topbar__icon-btn svg {
	width: 20px;
	height: 20px;
}

/* Mobil menü paneli */
.mobile-nav,
.mobile-nav-backdrop {
	display: none;
}

@media (max-width: 819px) {
	.topbar__inner {
		gap: var(--space-3);
	}

	.topbar__brand {
		padding-inline-start: 0;
	}

	.topbar__logo {
		height: 34px;
		max-width: min(100vw - 146px, 220px);
	}

	.topbar__label,
	.topbar__divider {
		display: none;
	}

	.topbar__right {
		flex: 0 1 auto;
		gap: 2px;
	}

	.topbar__tabs,
	.topbar__search {
		display: none;
	}

	.topbar__icon-btn {
		display: inline-flex;
		position: relative;
		z-index: 11;
	}

	body.is-mobile-nav-open {
		overflow: hidden;
	}

	/* Arka plan: opaklığı JS yaylı hareketle, panelin konumuna göre sürer. */
	.mobile-nav-backdrop {
		display: block;
		position: fixed;
		inset-inline: 0;
		top: var(--topbar-h);
		bottom: 0;
		z-index: calc(var(--z-header) - 2);
		background: color-mix(in srgb, var(--body-primary-color) 40%, transparent);
		opacity: 0;
		visibility: hidden;
	}

	.mobile-nav-backdrop.is-open {
		opacity: 1;
		visibility: visible;
	}

	/* Panel: kapalıyken üstte, görünmez. Açılış ve kapanış aynı yoldan (yukarıdan) olur. */
	.mobile-nav {
		display: flex;
		flex-direction: column;
		position: fixed;
		inset-inline: 0;
		top: var(--topbar-h);
		max-height: calc(100vh - var(--topbar-h));
		max-height: calc(100dvh - var(--topbar-h));
		z-index: calc(var(--z-header) - 1);
		background: var(--paper);
		border-bottom: 1px solid var(--border);
		box-shadow: var(--shadow-lg);
		transform: translate3d(0, -100%, 0);
		visibility: hidden;
		will-change: transform;
	}

	.mobile-nav.is-open {
		transform: translate3d(0, 0, 0);
		visibility: visible;
	}

	.mobile-nav.is-dragging {
		box-shadow: 0 16px 40px -12px color-mix(in srgb, var(--body-primary-color) 30%, transparent);
	}

	/* Tutamaç: sürükleyerek menüyü kapatmak için. 44 px dokunma alanı. */
	.mobile-nav__grip {
		display: flex;
		align-items: center;
		justify-content: center;
		flex-shrink: 0;
		height: 44px;
		cursor: grab;
		touch-action: none;
	}

	.mobile-nav__grip::before {
		content: '';
		width: 36px;
		height: 5px;
		border-radius: 999px;
		background: color-mix(in srgb, var(--ink) 22%, transparent);
	}

	.mobile-nav.is-dragging .mobile-nav__grip {
		cursor: grabbing;
	}
}

.mobile-nav__body {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding: var(--space-3) var(--space-4) var(--space-4);
}

.mobile-nav__links {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mobile-nav__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	padding: var(--space-3) var(--space-2);
	color: var(--ink-muted);
	font-family: var(--font-body);
	font-size: 14px;
	line-height: 1.3;
	text-decoration: none;
	border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
	transition: color 0.15s ease, background 0.12s ease;
}

.mobile-nav__link[aria-current='page'] {
	color: var(--accent);
	font-weight: 600;
}

@media (hover: hover) {
	.mobile-nav__link:hover {
		color: var(--ink);
		background: color-mix(in srgb, var(--ink) 6%, transparent);
	}
}

.mobile-nav__caret {
	display: inline-flex;
	flex-shrink: 0;
	color: var(--ink-faint);
}

.mobile-nav__caret svg {
	width: 16px;
	height: 16px;
}

.mobile-nav__heading {
	margin: 0;
	padding: var(--space-6) var(--space-2) var(--space-2);
	color: var(--ink-faint);
	font-family: var(--font-body);
	font-size: 12px;
	font-weight: 600;
}

.mobile-nav__heading:first-child {
	padding-top: var(--space-3);
}


/* ------------------------------------------------------------------ */
/* Sayfa iskeleti (DocsShell / DocsHome)                               */
/* ------------------------------------------------------------------ */

.shell {
	display: grid;
	--rail-track: 240px;
	grid-template-columns: 260px 1fr var(--rail-track);
	min-width: 0;
	width: 100%;
	padding: 0 var(--space-4);
	gap: var(--space-8);
	align-items: start;
}

.shell__sidebar {
	min-width: 0;
	align-self: stretch;
}

.shell__main {
	min-width: 0;
	width: 100%;
	padding: var(--space-6) 0 var(--space-10);
	max-width: 830px;
	margin-inline: auto;
	overflow-wrap: anywhere;
}

.shell__toc {
	position: fixed;
	top: var(--topbar-h);
	inset-inline-end: var(--space-4);
	width: var(--rail-track);
	max-height: calc(100vh - var(--topbar-h));
	overflow-y: auto;
	padding: 0 0 var(--space-6);
}

@media (min-width: 1100px) {
	.shell {
		min-height: calc(100vh - var(--topbar-h));
	}
}

@media (max-width: 1099px) {
	.shell {
		grid-template-columns: 260px 1fr;
	}

	.shell__toc {
		display: none;
	}
}

@media (max-width: 819px) {
	.shell {
		grid-template-columns: 1fr;
		padding: 0 var(--space-4);
	}

	.shell__sidebar {
		display: none;
	}
}

/* Ana sayfa ızgarası */
.home {
	position: relative;
	z-index: 0;
	display: grid;
	--home-spacer-lane: calc(100% - 260px - 830px - 2 * var(--space-8));
	grid-template-columns: 260px 1fr clamp(0px, var(--home-spacer-lane), 240px);
	min-width: 0;
	width: 100%;
	padding: 0 var(--space-4);
	gap: var(--space-8);
	align-items: start;
	min-height: calc(100vh - var(--topbar-h));
}

.home::before {
	content: '';
	position: absolute;
	pointer-events: none;
	z-index: 0;
	inset: 0;
	background-image: radial-gradient(color-mix(in srgb, color-mix(in srgb, var(--ydb-sky) 55%, var(--ink)) 20%, transparent) 1.3px, transparent 1.8px);
	background-size: 18px 18px;
	-webkit-mask-image: radial-gradient(82% 48% at 100% 0%, #000 0%, #000 10%, transparent 80%), radial-gradient(82% 48% at 0% 100%, #000 0%, #000 10%, transparent 80%);
	mask-image: radial-gradient(82% 48% at 100% 0%, #000 0%, #000 10%, transparent 80%), radial-gradient(82% 48% at 0% 100%, #000 0%, #000 10%, transparent 80%);
}

.home__rail {
	min-width: 0;
	align-self: stretch;
}

.home__content {
	grid-column: 2;
	position: relative;
	z-index: 1;
	min-width: 0;
	width: 100%;
	max-width: 830px;
	margin-inline: auto;
	padding: var(--space-6) 0 var(--space-10);
	overflow-wrap: anywhere;
}

@media (max-width: 1099px) {
	.home {
		grid-template-columns: 1fr;
	}

	.home__rail {
		display: none;
	}

	.home__content {
		grid-column: auto;
	}
}

@media (max-width: 819px) {
	.home {
		padding: 0 var(--space-4);
	}

	.home__content {
		padding: var(--space-6) 0 var(--space-8);
	}
}

/* ------------------------------------------------------------------ */
/* Kenar çubuğu (DocsSidebar)                                          */
/* ------------------------------------------------------------------ */

.sidebar {
	--nav-icon: 20px;
	position: fixed;
	top: var(--topbar-h);
	inset-inline-start: 0;
	width: calc(260px + var(--space-4));
	height: calc(100vh - var(--topbar-h));
	display: flex;
	flex-direction: column;
	background: var(--paper);
	border-inline-end: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}

.sidebar__nav {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding: calc(var(--space-6) - var(--space-2)) var(--space-4) var(--space-6) var(--space-4);
	scrollbar-width: thin;
	scrollbar-color: color-mix(in srgb, var(--ink) 22%, transparent) transparent;
}

.sidebar__nav:hover {
	scrollbar-color: color-mix(in srgb, var(--ink) 34%, transparent) transparent;
}

.sidebar__nav::-webkit-scrollbar {
	width: 10px;
}

.sidebar__nav::-webkit-scrollbar-track {
	background: transparent;
}

.sidebar__nav::-webkit-scrollbar-thumb {
	background-color: color-mix(in srgb, var(--ink) 18%, transparent);
	background-clip: padding-box;
	border: 3px solid transparent;
	border-radius: 999px;
}

.sidebar__footer {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: var(--space-2);
	padding: var(--space-4) var(--space-4) var(--space-5) calc(var(--space-4) + var(--space-2));
	border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
	color: var(--ink-muted);
	font-size: 14px;
}

.sidebar__footer a {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	color: inherit;
	text-decoration: none;
	padding: var(--space-2) var(--space-3);
	margin: calc(-1 * var(--space-2)) calc(-1 * var(--space-3));
	border-radius: var(--nav-radius);
	transition: color 0.15s ease, background-color 0.15s ease;
}

.sidebar__footer a:hover {
	color: var(--accent);
	background: var(--accent-soft);
}

.sidebar__footer svg {
	width: 16px;
	height: 16px;
}

@media (max-width: 1099px) {
	.sidebar__footer {
		display: none;
	}
}

.sidebar__collections,
.sidebar__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sidebar__section {
	margin: 0;
	position: relative;
}

.sidebar__header-row {
	display: flex;
	align-items: flex-start;
	gap: var(--space-1);
	position: relative;
	isolation: isolate;
	border-radius: var(--nav-radius);
}

.sidebar__header-row .sidebar__toggle {
	margin-block-start: var(--space-1);
}

.sidebar__header-row:hover::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--accent-soft);
	border-radius: var(--nav-radius);
}

.sidebar__header {
	display: flex;
	flex: 1;
	min-width: 0;
	align-items: flex-start;
	gap: var(--space-2);
	padding: var(--space-2);
	border-radius: var(--nav-radius);
	color: var(--ink);
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	text-align: start;
	text-decoration: none;
	transition: color 0.15s ease;
}

.sidebar__header[aria-current='page'] {
	color: var(--accent);
}

.sidebar__header-label {
	min-width: 0;
	overflow-wrap: break-word;
}

.sidebar__toggle {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	margin-inline-end: var(--space-1);
	padding: 0;
	border: none;
	border-radius: var(--nav-radius);
	background: transparent;
	color: var(--ink-faint);
	cursor: pointer;
	transition: background 0.12s ease, color 0.12s ease;
}

.sidebar__toggle:hover {
	background: var(--accent-soft);
}

.sidebar__chevron {
	display: inline-flex;
	width: 16px;
	height: 16px;
	transition: transform 0.2s ease-out;
}

.sidebar__chevron svg {
	width: 16px;
	height: 16px;
}

.sidebar__toggle[aria-expanded='true'] .sidebar__chevron {
	transform: rotate(90deg);
}

.sidebar__collapse {
	overflow: hidden;
}

.sidebar__collapse[hidden] {
	display: none;
}

.sidebar__collapse a:focus-visible {
	outline-offset: -2px;
}

.sidebar__list {
	display: flex;
	flex-direction: column;
	gap: 1px;
	position: relative;
	padding-inline-start: calc(var(--nav-icon) + var(--space-2));
}

.sidebar__list::before {
	content: '';
	position: absolute;
	inset-block: 0;
	inset-inline-start: calc(var(--space-2) + var(--nav-icon) / 2);
	width: 1px;
	background: color-mix(in srgb, var(--ink) 12%, transparent);
}

.sidebar__item {
	min-width: 0;
	position: relative;
}

.sidebar__item:has([aria-current='page'])::before {
	content: '';
	position: absolute;
	top: 50%;
	height: 16px;
	transform: translateY(-50%);
	inset-inline-start: calc(-1 * var(--nav-icon) / 2 - 0.5px);
	width: 2px;
	border-radius: 1px;
	background: var(--accent);
}

.sidebar__link {
	display: block;
	width: 100%;
	overflow-wrap: break-word;
	padding: var(--space-2);
	border-radius: var(--nav-radius);
	color: var(--ink-muted);
	font-size: 14px;
	text-align: start;
	text-decoration: none;
	transition: color 0.15s ease, background-color 0.15s ease;
}

.sidebar__link:hover {
	background: var(--accent-soft);
}

.sidebar__link[aria-current='page'] {
	color: var(--accent);
}

@media (max-width: 819px) {
	.sidebar {
		display: none;
	}
}

/* ------------------------------------------------------------------ */
/* Ana sayfa (DocsHome)                                                */
/* ------------------------------------------------------------------ */

.hero {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: clamp(120px, 16vh, 190px);
	margin-bottom: var(--space-8);
}

.hero__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
}

.hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	margin: 0 0 var(--space-4);
	padding: 4px 10px 4px 6px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--paper-elev);
	color: var(--ink-muted);
	font-size: 13px;
	line-height: 1.4;
}

.hero__eyebrow-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ydb-teal);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--ydb-teal) 20%, transparent);
}

.hero__title {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 48px;
	line-height: var(--display-line, 1.1);
	letter-spacing: var(--display-tracking, -0.015em);
	margin: 0;
	color: var(--ink);
	max-width: 20ch;
	text-wrap: balance;
}

.hero__subcopy {
	margin: var(--space-3) 0 0;
	max-width: 52ch;
	color: var(--ink-muted);
	font-size: 17px;
	line-height: 1.5;
}

.hero__search {
	width: min(420px, 100%);
	margin-top: var(--space-6);
}

@media (max-width: 819px) {
	.hero {
		min-height: clamp(140px, 26vh, 220px);
	}

	.hero__title {
		font-size: 40px;
	}
}

.search-button {
	appearance: none;
	display: flex;
	align-items: center;
	gap: var(--space-3);
	padding: var(--space-3) var(--space-4);
	border: 1px solid var(--border);
	border-radius: var(--card-radius);
	background: var(--paper-elev);
	color: var(--ink-muted);
	font-family: var(--font-body);
	font-size: 15px;
	text-align: start;
	cursor: pointer;
	box-shadow: var(--shadow-sm);
	transition: background 0.15s ease;
}

@media (hover: hover) {
	.search-button:hover {
		background: var(--accent-soft);
	}
}

.search-button__icon {
	display: inline-flex;
	flex-shrink: 0;
	color: var(--ink-muted);
}

.search-button__icon svg {
	width: 18px;
	height: 18px;
}

.search-button__text {
	flex: 1;
	min-width: 0;
}

.search-button__key {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	height: 20px;
	padding: 0 6px;
	border: 1px solid var(--border);
	border-radius: 5px;
	background: var(--paper);
	color: var(--ink-muted);
	font-family: var(--font-mono);
	font-size: 12px;
	line-height: 1;
}

.search-button__key-symbol {
	font-size: 17px;
}

@media (max-width: 819px) {
	.search-button__key {
		display: none;
	}
}

.home-blocks {
	display: flex;
	flex-direction: column;
	gap: var(--space-8);
}

.home-blocks > * {
	min-width: 0;
}

.block-title {
	margin: 0 0 var(--space-4);
	color: var(--ink);
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 600;
	letter-spacing: var(--display-tracking, -0.015em);
	line-height: 1.3;
}

/* Duyuru kutusu (content block) */
.notice {
	width: 100%;
	padding: var(--space-5);
	color: var(--ink);
	background: var(--paper-elev);
	border: 1px solid var(--border);
	border-radius: var(--card-radius);
	box-shadow: var(--shadow-sm);
	text-align: center;
}

.notice__title {
	margin: 0 0 var(--space-4);
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
}

.notice__text {
	white-space: pre-line;
}

.notice__button {
	display: inline-flex;
	max-width: 100%;
	margin-top: var(--space-5);
	padding: var(--space-2) var(--space-4);
	color: var(--notice-button-color);
	background: var(--notice-button-bg);
	border-radius: var(--radius-md);
	font-weight: 600;
	text-decoration: none;
	transition: box-shadow 0.2s ease;
}

.notice__button:hover {
	box-shadow: inset 0 0 0 200px color-mix(in srgb, var(--ydb-navy) 8%, transparent);
}

/* Koleksiyon kartları */
.collection-grid {
	display: grid;
	gap: var(--space-5);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.collection-card {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: var(--space-3);
	padding: var(--space-5);
	min-width: 0;
	background-color: var(--paper-elev);
	border: 1px solid var(--card-border-color, var(--border));
	border-radius: var(--card-radius);
	transition: background-color 0.15s ease;
}

@media (hover: hover) {
	.collection-card:hover {
		background-color: var(--accent-soft);
	}
}

.collection-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: var(--card-radius);
	color: #fff;
	background: var(--tile, linear-gradient(135deg, var(--ydb-sky), var(--ydb-teal)));
}

.collection-card__icon svg {
	width: 20px;
	height: 20px;
}

.collection-card__body {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	min-width: 0;
}

.collection-card__title {
	display: block;
	width: fit-content;
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 20px;
	line-height: 1.3;
	letter-spacing: var(--display-tracking, -0.015em);
	color: var(--ink);
	text-decoration: none;
}

.collection-card__title::after {
	content: '';
	position: absolute;
	inset: 0;
}

.collection-card__count {
	margin: 0;
	color: var(--ink-muted);
	font-size: 13px;
	line-height: 1.5;
}

/* Kart ikon arka planları */
.tile-sky {
	--tile: linear-gradient(135deg, #7cc8f0 0%, #4daae3 55%, #2f86c4 100%);
}
.tile-teal {
	--tile: linear-gradient(135deg, #2bb3a8 0%, #179091 55%, #116569 100%);
}
.tile-sun {
	--tile: linear-gradient(135deg, #f9e123 0%, #f7b733 55%, #f79035 100%);
}
.tile-navy {
	--tile: linear-gradient(135deg, #2c5c8c 0%, #193859 60%, #0f2740 100%);
}
.tile-coral {
	--tile: linear-gradient(135deg, #f8a65a 0%, #f79035 50%, #e0663a 100%);
}
.tile-mint {
	--tile: linear-gradient(135deg, #8fd9c9 0%, #3fb6a0 55%, #179091 100%);
}
.tile-ocean {
	--tile: linear-gradient(135deg, #4daae3 0%, #179091 100%);
}

.tile-sun svg,
.tile-sun {
	color: var(--ydb-navy);
}

@media (max-width: 819px) {
	.collection-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.collection-card {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: var(--space-3);
		padding: var(--space-2) 0;
		background: transparent;
		border: 0;
		border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
		border-radius: 0;
	}

	.collection-card__icon {
		grid-row: 1;
		grid-column: 2;
		width: 20px;
		height: 20px;
		background: none;
		color: var(--ink);
	}

	.collection-card__icon svg {
		width: 18px;
		height: 18px;
	}

	.collection-card__body {
		grid-row: 1;
		grid-column: 1;
		gap: 2px;
	}

	.collection-card__title {
		font-family: var(--font-body);
		font-size: 14px;
		font-weight: 600;
		letter-spacing: normal;
	}

	.collection-card__count {
		display: none;
	}
}

/* ------------------------------------------------------------------ */
/* Satır listeleri (makale listeleri)                                  */
/* ------------------------------------------------------------------ */

.rows {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rows__item {
	min-width: 0;
	display: grid;
	border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
	transition: border-color 0.15s ease;
}

.rows__link {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 20px;
	gap: var(--space-3);
	align-items: center;
	padding: var(--space-2) var(--space-3);
	margin-inline: calc(-1 * var(--space-3));
	border-radius: var(--card-radius);
	color: inherit;
	text-decoration: none;
	transition: background 0.15s ease;
}

@media (hover: hover) {
	.rows__link:hover {
		background: var(--accent-soft);
	}

	.rows__item:has(+ .rows__item .rows__link:hover),
	.rows__item:has(.rows__link:hover) {
		border-bottom-color: transparent;
	}
}

.rows__text {
	grid-column: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.rows__title {
	overflow: hidden;
	font-size: 14px;
	font-weight: 600;
	color: var(--ink);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rows__summary {
	min-width: 0;
	overflow: hidden;
	color: var(--ink-muted);
	font-size: 13px;
	line-height: 1.5;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rows__icon {
	grid-column: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	color: var(--ink);
}

.rows__icon svg {
	width: 20px;
	height: 20px;
}

/* ------------------------------------------------------------------ */
/* Breadcrumb                                                          */
/* ------------------------------------------------------------------ */

.crumbs {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--space-2);
	color: var(--ink-muted);
	font-size: 13px;
	margin-bottom: var(--space-4);
}

.crumbs__item {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	max-width: 100%;
	min-width: 0;
}

.crumbs__sep {
	display: inline-flex;
	color: var(--ink-faint);
}

.crumbs__sep svg {
	width: 12px;
	height: 12px;
}

.crumbs__link {
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	color: var(--ink-muted);
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.15s ease;
}

.crumbs__link:hover {
	color: var(--accent);
}

.crumbs__current {
	color: var(--ink);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 40ch;
}

@media (max-width: 819px) {
	.crumbs--article {
		--fade: 24px;
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		padding-inline-end: var(--fade);
		-webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--fade)), transparent);
		mask-image: linear-gradient(to right, #000 calc(100% - var(--fade)), transparent);
	}

	.crumbs--article::-webkit-scrollbar {
		display: none;
	}

	.crumbs--article > * {
		flex: 0 0 auto;
	}

	.crumbs--article [aria-current='page'] {
		display: none;
	}
}

/* ------------------------------------------------------------------ */
/* Koleksiyon sayfası (DocsCollection)                                 */
/* ------------------------------------------------------------------ */

.collection__header {
	margin-bottom: var(--space-8);
}

.collection__title {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 40px;
	line-height: var(--display-line, 1.1);
	letter-spacing: var(--display-tracking, -0.015em);
	margin: 0 0 var(--space-3);
	color: var(--ink);
	max-width: 24ch;
}

.collection__description {
	font-size: 18px;
	color: var(--ink-muted);
	margin: 0 0 var(--space-5);
	line-height: 1.55;
	max-width: 56ch;
}

.collection__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-3);
	color: var(--ink-muted);
	font-size: 13px;
}

.collection__intro {
	margin-bottom: var(--space-6);
}

.collection__section {
	margin-bottom: var(--space-8);
}

.collection__section:last-child {
	margin-bottom: 0;
}

@media (max-width: 819px) {
	.collection__title {
		font-size: 32px;
	}
}

/* ------------------------------------------------------------------ */
/* Makale (DocsArticle)                                                */
/* ------------------------------------------------------------------ */

.article {
	min-width: 0;
	color: var(--ink);
	overflow-wrap: anywhere;
}

.article__header {
	margin-bottom: var(--space-6);
	padding-bottom: var(--space-6);
	border-bottom: 1px solid var(--border);
}

.article__title {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 36px;
	line-height: var(--display-line, 1.1);
	letter-spacing: var(--display-tracking, -0.015em);
	margin: 0 0 var(--space-3);
	color: var(--ink);
	text-wrap: balance;
}

.article__subtitle {
	font-size: 18px;
	color: var(--ink-muted);
	margin: 0 0 var(--space-5);
	line-height: 1.55;
	text-wrap: pretty;
}

.article__meta-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
}

.article__meta {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	color: var(--ink-muted);
	font-size: 13px;
	line-height: 1.4;
	white-space: nowrap;
}

.article__avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--paper-elev);
	border: 1px solid var(--border);
	overflow: hidden;
}

.article__avatar img {
	width: 20px;
	height: 20px;
}

.article__meta-text {
	display: flex;
	flex-direction: column;
	white-space: nowrap;
}

.article__meta-author {
	color: var(--ink);
}

@media (max-width: 819px) {
	.article__title {
		font-size: 32px;
	}

	.article__meta-row {
		flex-wrap: wrap;
	}
}

/* Eylem çubuğu (Copy for LLM karşılığı) */
.actionbar {
	position: relative;
	display: inline-flex;
	align-items: stretch;
	max-width: 100%;
}

.actionbar__btn,
.actionbar__caret {
	display: inline-flex;
	align-items: center;
	height: 32px;
	background: var(--paper-elev);
	border: 1px solid var(--border);
	color: var(--ink);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.actionbar__btn {
	gap: var(--space-1);
	padding: 0 var(--space-3);
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	border-start-start-radius: var(--radius-lg);
	border-end-start-radius: var(--radius-lg);
}

.actionbar__caret {
	justify-content: center;
	padding: 0 var(--space-2);
	margin-inline-start: -1px;
	border-start-end-radius: var(--radius-lg);
	border-end-end-radius: var(--radius-lg);
	color: var(--ink-muted);
}

.actionbar__btn:hover,
.actionbar__caret:hover,
.actionbar__caret[aria-expanded='true'] {
	background: var(--accent-soft);
	position: relative;
	z-index: 1;
}

.actionbar__btn svg {
	width: 16px;
	height: 16px;
}

.actionbar__caret svg {
	width: 14px;
	height: 14px;
}

.actionbar__btn.is-done svg {
	color: var(--ydb-teal);
}

.actionbar__menu {
	position: absolute;
	top: calc(100% + 6px);
	inset-inline-end: 0;
	min-width: 220px;
	padding: var(--space-1);
	background: var(--paper-elev);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-lg);
	z-index: var(--z-command-palette);
	transform-origin: top right;
	opacity: 0;
	visibility: hidden;
	transform: scale(0.97) translate3d(0, -4px, 0);
	transition: transform var(--dur-spring) var(--ease-spring), opacity 0.16s ease, visibility 0s linear var(--dur-spring);
}

.actionbar__menu.is-open {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: transform var(--dur-spring) var(--ease-spring), opacity 0.16s ease, visibility 0s;
}

.actionbar__item {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	width: 100%;
	padding: 8px 10px;
	border: 0;
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--ink);
	font-size: 13px;
	line-height: 1;
	text-align: start;
	text-decoration: none;
	cursor: pointer;
}

.actionbar__item:hover,
.actionbar__item:focus-visible {
	background: var(--accent-soft);
	outline: none;
}

.actionbar__item svg {
	width: 16px;
	height: 16px;
	color: var(--ink-muted);
	flex-shrink: 0;
}

.actionbar__sep {
	height: 1px;
	margin: var(--space-1) 0;
	background: var(--border);
}

/* İlgili makaleler ve önceki/sonraki */
.related {
	margin-top: var(--space-8);
}

.related__title {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 19px;
	line-height: 1.3;
	margin: 0 0 var(--space-4);
	color: var(--ink);
}

.prevnext {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-4);
	margin-top: var(--space-8);
	padding-top: var(--space-6);
	border-top: 1px solid var(--border);
}

.prevnext__card {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	padding: var(--space-4);
	border: 1px solid var(--border);
	border-radius: var(--card-radius);
	background: var(--paper-elev);
	text-decoration: none;
	color: inherit;
	transition: background 0.15s ease;
}

@media (hover: hover) {
	.prevnext__card:hover {
		background: var(--accent-soft);
	}
}

.prevnext__card--next {
	text-align: end;
	grid-column: 2;
}

.prevnext__label {
	font-size: 12px;
	color: var(--ink-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.prevnext__title {
	font-size: 15px;
	font-weight: 600;
	color: var(--ink);
}

@media (max-width: 819px) {
	.prevnext {
		grid-template-columns: 1fr;
	}

	.prevnext__card--next {
		grid-column: 1;
		text-align: start;
	}
}

/* Bu sayfada (DocsToc) */
.toc {
	border-inline-start: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
	padding-block: var(--space-6) var(--space-4);
	padding-inline-start: var(--space-4);
}

.toc[hidden] {
	display: none;
}

.toc__label {
	font-size: 13px;
	font-weight: 600;
	color: var(--ink);
	margin-bottom: var(--space-3);
}

.toc__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.toc__item {
	position: relative;
}

.toc__item:has(a[aria-current='true'])::before {
	content: '';
	position: absolute;
	top: 50%;
	height: 16px;
	transform: translateY(-50%);
	inset-inline-start: calc(-1 * var(--space-4) - 1.5px);
	width: 2px;
	border-radius: 1px;
	background: var(--accent);
}

.toc__link {
	display: block;
	color: var(--ink-muted);
	text-decoration: none;
	font-size: 13px;
	line-height: 1.4;
	transition: color 0.15s ease;
}

.toc__link:hover,
.toc__link[aria-current='true'] {
	color: var(--accent);
}

.toc__link--h3 {
	padding-inline-start: var(--space-3);
	font-size: 12px;
}

/* ------------------------------------------------------------------ */
/* Makale gövdesi (DocsArticleBody) — Automad blok çıktısı             */
/* ------------------------------------------------------------------ */

.prose {
	min-width: 0;
	max-width: 100%;
	font-size: 15px;
	color: var(--ink);
	overflow-wrap: anywhere;
}

/* Automad blok stillerini VEED gövde stiline göre nötrle */
.prose {
	--am-block-margin-top: 0;
	--am-block-max-width: none;
	--am-callout-border: 0;
	--am-callout-padding: 0;
	--am-callout-radius: 0;
	--am-callout-background: transparent;
	--am-callout-color: inherit;
	--am-callout-gap: 4px;
	--am-callout-title-font-size: inherit;
	--am-callout-title-font-weight: 600;
	--am-callout-title-line-height: inherit;
	--am-quote-prefix: none;
	--am-quote-suffix: none;
	--am-quote-gap: 0;
	--am-quote-font-size: inherit;
	--am-quote-font-style: normal;
	--am-quote-line-height: inherit;
	--am-hr-border: 1px solid var(--border);
	--am-caption-space: 0;
}

.prose .am-block,
.prose > * {
	margin-inline: 0;
}

.prose am-list ol {
	display: block;
	list-style: decimal;
	padding: 0;
	padding-inline-start: var(--space-5);
}

.prose am-list ol li {
	display: list-item;
}

.prose am-list ol li::before {
	content: none;
}

.prose am-list ul {
	padding: 0;
	padding-inline-start: var(--space-5);
}

.prose am-quote figcaption::before {
	content: none;
}

.prose h1 {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 26px;
	line-height: 1.2;
	margin: var(--space-8) 0 var(--space-3);
	scroll-margin-top: 80px;
}

.prose h2 {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 22px;
	line-height: 1.25;
	letter-spacing: var(--display-tracking, -0.015em);
	margin: var(--space-6) 0 var(--space-3);
	color: var(--ink);
	scroll-margin-top: 80px;
}

.prose h3,
.prose h4 {
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 17px;
	line-height: 1.3;
	margin: var(--space-5) 0 var(--space-2);
	color: var(--ink);
	scroll-margin-top: 80px;
}

.prose hr + h2,
.prose hr + h3,
.prose :has(> hr) + h2,
.prose :has(> hr) + h3,
.prose > :first-child {
	margin-top: 0;
}

.prose p {
	margin: 0 0 var(--space-4);
	line-height: var(--body-line, 1.55);
}

.prose .am-paragraph-large {
	font-size: 17px;
	color: var(--ink-muted);
}

.prose ul,
.prose ol {
	margin: 0 0 var(--space-4);
	padding-inline-start: var(--space-5);
}

.prose am-list {
	display: block;
	margin: 0 0 var(--space-4);
}

.prose am-list > ul,
.prose am-list > ol {
	margin: 0;
}

.prose li {
	line-height: var(--body-line, 1.55);
	margin-bottom: var(--space-2);
	margin-inline-start: 0;
}

.prose li > ul,
.prose li > ol {
	margin: var(--space-2) 0 0;
}

.prose li::marker {
	color: var(--ink-muted);
}

.prose ol > li::marker {
	font-weight: 600;
	color: var(--accent);
}

.prose a {
	color: var(--link-color, var(--accent));
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-thickness: 1px;
	transition: color 0.15s ease;
}

.prose a:hover {
	color: var(--link-color-strong, var(--accent-strong));
}

.prose strong,
.prose b {
	font-weight: 600;
	color: var(--ink);
}

.prose code {
	font-family: var(--font-mono);
	font-size: 0.875em;
	padding: 1px 5px;
	background: var(--paper-muted);
	border-radius: var(--radius-sm);
	color: var(--ink);
	border: 1px solid var(--border);
}

.prose am-quote {
	display: block;
	margin: var(--space-5) 0;
	padding: var(--space-2) var(--space-4);
	border-inline-start: 2px solid var(--accent);
	color: var(--ink-muted);
}

.prose blockquote {
	margin: var(--space-5) 0;
	padding: var(--space-2) var(--space-4);
	border-inline-start: 2px solid var(--accent);
	color: var(--ink-muted);
}

.prose am-quote blockquote {
	padding: 0;
	border: 0;
	color: inherit;
}

.prose blockquote p:last-child {
	margin-bottom: 0;
}

.prose figcaption,
.prose cite {
	display: block;
	margin-top: var(--space-2);
	font-size: 13px;
	font-style: normal;
	color: var(--ink-faint);
}

.prose img {
	max-width: 100%;
	height: auto;
	border-radius: var(--radius-md);
}

.prose hr {
	display: block;
	height: 0;
	margin: var(--space-6) 0;
	border: 0;
	border-top: 1px solid var(--border);
	background: none;
}

.prose li > span {
	display: inline;
}

/* Bilgi kutusu (callout) */
.prose am-callout,
.prose .callout {
	display: block;
	margin: var(--space-5) 0;
	padding: var(--space-4) var(--space-5);
	background: color-mix(in srgb, var(--ydb-sky) 9%, var(--paper));
	border: 1px solid color-mix(in srgb, var(--ydb-sky) 32%, transparent);
	border-radius: var(--radius-lg);
	color: var(--ink);
}

.prose am-callout aside {
	display: block;
}

.prose am-callout header {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	margin-bottom: var(--space-1);
	color: var(--ydb-navy);
	font-weight: 600;
}

.prose am-callout header:empty {
	display: none;
}

.prose am-callout header::before {
	content: '';
	flex-shrink: 0;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ydb-sky);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--ydb-sky) 25%, transparent);
}

.prose am-callout p {
	margin: 0;
}

/* Kısa cevap tonu: tune'da className "is-short" */
.prose am-callout.is-short {
	background: color-mix(in srgb, var(--ydb-teal) 7%, var(--paper));
	border-color: color-mix(in srgb, var(--ydb-teal) 30%, transparent);
	border-inline-start: 3px solid var(--ydb-teal);
}

.prose am-callout.is-short header {
	color: var(--ydb-teal-deep);
}

.prose am-callout.is-short header::before {
	background: var(--ydb-teal);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--ydb-teal) 22%, transparent);
}

/* Uyarı tonu: tune'da className "is-warning" */
.prose am-callout.is-warning {
	background: color-mix(in srgb, var(--ydb-orange) 9%, var(--paper));
	border-color: color-mix(in srgb, var(--ydb-orange) 38%, transparent);
}

.prose am-callout.is-warning header {
	color: #8a4210;
}

.prose am-callout.is-warning header::before {
	background: var(--ydb-orange);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--ydb-orange) 25%, transparent);
}

/* İpucu tonu: tune'da className "is-tip" */
.prose am-callout.is-tip {
	background: color-mix(in srgb, var(--ydb-sun) 14%, var(--paper));
	border-color: color-mix(in srgb, #d8b800 40%, transparent);
}

.prose am-callout.is-tip header {
	color: #6b5a00;
}

.prose am-callout.is-tip header::before {
	background: #e8c600;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--ydb-sun) 35%, transparent);
}

/* Mesaj şablonu (alıntı bloğu) */
.prose am-quote figure {
	margin: 0;
}

.prose am-quote.is-template {
	padding: 0;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: color-mix(in srgb, var(--paper) 97%, var(--ink) 3%);
	color: var(--ink);
	overflow: hidden;
}

.prose am-quote.is-template figcaption {
	order: -1;
	margin: 0;
	padding: var(--space-2) var(--space-4);
	border-bottom: 1px solid var(--border);
	background: var(--paper-muted);
	color: var(--ink-muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.prose am-quote.is-template figure {
	display: flex;
	flex-direction: column;
}

.prose am-quote.is-template blockquote {
	margin: 0;
	padding: var(--space-4);
	font-size: 14px;
	line-height: 1.65;
}

.prose am-quote blockquote {
	margin: 0;
}

.prose figcaption:empty {
	display: none;
}

/* Tablolar */
.prose table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	margin: 0 0 var(--space-5);
	font-size: 14px;
	line-height: 1.5;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
}

.prose am-table {
	display: block;
	overflow-x: auto;
	margin: 0 0 var(--space-5);
}

.prose am-table table {
	margin: 0;
}

.prose td,
.prose th {
	border: 0;
	border-bottom: 1px solid var(--border);
	border-inline-end: 1px solid var(--border);
	padding: var(--space-2) var(--space-3);
	text-align: start;
	vertical-align: top;
	overflow-wrap: break-word;
}

.prose td:last-child,
.prose th:last-child {
	border-inline-end: none;
}

.prose tr:last-child td {
	border-bottom: none;
}

.prose thead th {
	background: var(--paper-muted);
	color: var(--ink);
	font-weight: 600;
	padding-block: var(--space-1);
}

/* Açılır bölüm */
.prose details {
	margin: 0 0 var(--space-3);
}

.prose summary {
	cursor: pointer;
	list-style: none;
	border-radius: var(--radius-sm);
	padding: var(--space-1) var(--space-2);
	margin-inline: calc(-1 * var(--space-2));
	font-weight: 600;
	transition: background-color 0.15s ease;
}

.prose summary::-webkit-details-marker {
	display: none;
}

.prose summary::before {
	content: '';
	display: inline-block;
	width: 0.4em;
	height: 0.4em;
	margin-inline-end: 0.5em;
	border-top: 1.5px solid var(--accent);
	border-right: 1.5px solid var(--accent);
	transform: rotate(45deg);
	transition: transform 0.2s ease-out;
	vertical-align: 0.12em;
}

.prose details[open] > summary::before {
	transform: rotate(135deg);
}

.prose summary:hover {
	background-color: var(--accent-soft);
}

/* Mesaj şablonu kutusu */
.prose .template-box,
.prose am-code,
.prose pre {
	display: block;
	position: relative;
	background: color-mix(in srgb, var(--paper) 97%, var(--ink) 3%);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	padding: var(--space-4);
	overflow: auto;
	margin: var(--space-4) 0;
	font-size: 14px;
	line-height: 1.6;
	white-space: pre-wrap;
}

/* ------------------------------------------------------------------ */
/* Arama paleti (CommandPalette)                                       */
/* ------------------------------------------------------------------ */

/* Açılış ve kapanış: aynı yol, her ikisi de yaylı. Kapanırken görünürlük animasyon bitince kalkar. */
.palette-overlay {
	position: fixed;
	inset: 0;
	z-index: var(--z-command-palette);
	background: color-mix(in srgb, var(--body-primary-color) 30%, transparent);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0s linear var(--dur-spring);
}

.palette-overlay.is-open {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.2s ease, visibility 0s;
}

.palette {
	position: fixed;
	z-index: var(--z-command-palette);
	top: 12vh;
	left: 50%;
	translate: -50% 0;
	opacity: 0;
	visibility: hidden;
	transform: translate3d(0, 8px, 0);
	transition: transform var(--dur-spring) var(--ease-spring), opacity 0.2s ease, visibility 0s linear var(--dur-spring);
	width: min(100vw - 32px, 640px);
	min-height: min(520px, 70vh);
	max-height: 70vh;
	display: flex;
	flex-direction: column;
	background: var(--paper);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
	color: var(--ink);
}

.palette.is-open {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: transform var(--dur-spring) var(--ease-spring), opacity 0.2s ease, visibility 0s;
}

.palette__input-row {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4);
	border-bottom: 1px solid var(--border);
	color: var(--ink-muted);
}

.palette__input-icon {
	display: inline-flex;
	color: var(--ink-muted);
}

.palette__input-icon svg {
	width: 16px;
	height: 16px;
}

.palette__input {
	flex: 1;
	min-width: 0;
	background: transparent;
	border: none;
	outline: none;
	font-family: inherit;
	font-size: 15px;
	color: var(--ink);
}

.palette__input::placeholder {
	color: var(--ink-faint);
}

.palette__input::-webkit-search-cancel-button {
	display: none;
}

.palette .palette__input:focus-visible {
	outline: none;
}

.palette__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	padding: 0;
	background: transparent;
	border: 0;
	color: var(--ink);
	cursor: pointer;
}

.palette__close svg {
	width: 20px;
	height: 20px;
}

.palette__filters {
	display: flex;
	flex-shrink: 0;
	flex-wrap: nowrap;
	align-items: center;
	gap: var(--space-2);
	padding: var(--space-2) var(--space-3);
	border-bottom: 1px solid var(--border);
	overflow-x: auto;
	scrollbar-width: none;
}

.palette__filters::-webkit-scrollbar {
	display: none;
}

.palette__pill {
	flex: 0 0 auto;
	white-space: nowrap;
	padding: 2px var(--space-3);
	border: 1px solid var(--border);
	border-radius: 999px;
	background: transparent;
	color: var(--ink-muted);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.5;
	cursor: pointer;
	transition: background 0.15s ease;
}

@media (hover: hover) {
	.palette__pill:hover {
		background: var(--accent-soft);
	}
}

.palette__pill[aria-pressed='true'] {
	background: var(--accent-soft);
	color: var(--ink);
	border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}

.palette__list {
	flex: 1;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: var(--space-2);
	margin: 0;
	list-style: none;
}

.palette__group {
	padding: var(--space-2) var(--space-3) var(--space-1);
	color: var(--ink-faint);
	font-size: 12px;
	font-weight: 600;
}

.palette__empty {
	padding: var(--space-5) var(--space-3);
	margin: 0;
	text-align: center;
	color: var(--ink-muted);
	font-size: 13px;
}

.palette__empty strong {
	color: var(--ink);
	font-weight: 600;
}

.palette__row {
	display: grid;
	grid-template-columns: 16px 1fr auto;
	gap: var(--space-3);
	align-items: start;
	width: 100%;
	padding: 8px var(--space-3);
	border: none;
	border-radius: var(--card-radius);
	background: transparent;
	color: var(--ink);
	cursor: pointer;
	font-size: 14px;
	text-align: start;
	text-decoration: none;
	user-select: none;
}

.palette__row[aria-selected='true'] {
	background: var(--accent-soft);
}

.palette__row-icon,
.palette__row-arrow {
	display: inline-flex;
	height: 1lh;
	align-items: center;
	color: var(--ink-muted);
}

.palette__row-icon svg {
	width: 16px;
	height: 16px;
}

.palette__row-arrow {
	color: var(--ink-faint);
}

.palette__row-arrow svg {
	width: 14px;
	height: 14px;
}

.palette__row-text {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
}

.palette__row-title {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.palette__row-crumbs,
.palette__row-summary {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 13px;
	line-height: 1.4;
	color: var(--ink-muted);
}

.palette__row mark {
	background: none;
	color: inherit;
	font-weight: 700;
}

.palette__footer {
	display: flex;
	align-items: center;
	gap: var(--space-4);
	padding: var(--space-2) var(--space-3);
	background: var(--paper-muted);
	border-top: 1px solid var(--border);
	font-size: 11px;
	color: var(--ink-muted);
}

.palette__kbd {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border: 1px solid var(--border-strong);
	border-radius: 4px;
	background: var(--paper-elev);
	color: var(--ink-muted);
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 500;
	line-height: 1;
}

.palette__kbd + .palette__kbd {
	margin-inline-start: 2px;
}

body.is-palette-open {
	overflow: hidden;
}

@media (max-width: 819px) {
	.palette {
		inset: 0;
		width: auto;
		min-height: 0;
		max-height: none;
		translate: none;
		transform: translate3d(0, 16px, 0);
		border: none;
		border-radius: 0;
	}

	.palette__input {
		font-size: 16px;
	}

	.palette__footer {
		display: none;
	}
}

/* ------------------------------------------------------------------ */
/* Bildirim (kopyalandı vb.)                                           */
/* ------------------------------------------------------------------ */

.toast {
	position: fixed;
	left: 50%;
	bottom: var(--space-6);
	z-index: var(--z-toast);
	translate: -50% 0;
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	padding: 10px 14px;
	border-radius: var(--radius-lg);
	background: var(--ydb-navy);
	color: #fff;
	font-size: 14px;
	box-shadow: var(--shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translate3d(0, 12px, 0);
	transition: transform var(--dur-spring) var(--ease-spring), opacity 0.2s ease, visibility 0s linear var(--dur-spring);
}

.toast.is-open {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: transform var(--dur-spring) var(--ease-spring), opacity 0.2s ease, visibility 0s;
}

.toast svg {
	width: 16px;
	height: 16px;
	color: var(--ydb-sun);
}

/* ------------------------------------------------------------------ */
/* Boş durum / 404                                                     */
/* ------------------------------------------------------------------ */

.empty-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: min(62vh, 520px);
	padding: var(--space-10) 0;
	text-align: center;
}

.empty-state__eyebrow {
	margin: 0 0 var(--space-4);
	color: var(--ink-faint);
	font-family: var(--font-mono);
	font-size: 13px;
	letter-spacing: 0.1em;
	line-height: 1;
}

.empty-state__heading {
	margin: 0;
	max-width: 24ch;
	color: var(--ink);
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 34px;
	line-height: var(--display-line, 1.12);
}

.empty-state__subcopy {
	margin: var(--space-4) 0 0;
	max-width: 46ch;
	color: var(--ink-muted);
	font-size: 16px;
}

.empty-state__search {
	width: min(420px, 100%);
	margin-top: var(--space-8);
}

.empty-state__actions {
	display: flex;
	align-items: center;
	gap: var(--space-4);
	margin-top: var(--space-6);
}

.empty-state__actions a {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	color: var(--ink-muted);
	font-size: 15px;
	text-decoration: none;
}

.empty-state__actions a:hover {
	color: var(--ink);
}

.empty-state__actions svg {
	width: 16px;
	height: 16px;
}

@media (max-width: 819px) {
	.empty-state {
		min-height: min(56vh, 420px);
		padding: var(--space-8) 0;
	}

	.empty-state__heading {
		font-size: 28px;
	}
}

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

.footer {
	flex-shrink: 0;
	position: relative;
	z-index: 1;
	margin-top: 0;
	padding: var(--space-8) var(--space-4);
	background: var(--footer-bg);
	color: var(--footer-color);
	border-top: 1px solid var(--footer-border);
}

.footer__content {
	width: 100%;
	max-width: 830px;
	margin-inline: auto;
}

.footer__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-5);
}

.footer__logo {
	display: block;
	height: 32px;
	width: auto;
}

.footer__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer__links a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--ink-muted);
	font-size: 14px;
	text-decoration: none;
	transition: color 0.15s ease;
}

.footer__links a:hover {
	color: var(--accent);
}

.footer__links svg {
	width: 18px;
	height: 18px;
}

.footer__rule {
	margin: var(--space-6) 0;
	border: 0;
	border-top: 1px solid var(--footer-border);
}

.footer__text {
	margin: 0;
	color: var(--ink-muted);
	font-size: 14px;
	line-height: 1.6;
	text-align: center;
}

.footer__text + .footer__text {
	margin-top: var(--space-2);
}

/* ------------------------------------------------------------------ */
/* Hareket azaltma ve yazdırma                                         */
/* ------------------------------------------------------------------ */

/* ------------------------------------------------------------------ */
/* Etkileşim katmanı                                                    */
/* Basılma anında yanıt verir (80 ms); bırakınca yaylı geri döner.     */
/* ------------------------------------------------------------------ */

.search-button,
.topbar__search,
.collection-card,
.rows__link,
.prevnext__card,
.notice__button,
.actionbar__btn,
.topbar__icon-btn,
.sidebar__toggle {
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	transition: transform var(--dur-spring) var(--ease-spring), background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.search-button:active,
.topbar__search:active,
.collection-card:active,
.rows__link:active,
.prevnext__card:active,
.notice__button:active,
.actionbar__btn:active,
.topbar__icon-btn:active {
	transform: scale(0.97);
	transition-duration: 80ms;
}

.sidebar__toggle:active {
	transform: scale(0.88);
	transition-duration: 80ms;
}

.sidebar__header:active,
.sidebar__link:active,
.mobile-nav__link:active,
.palette__pill:active,
.topbar__tab:active,
.footer__links a:active {
	background-color: var(--accent-soft);
}

/* Kaydırma kenarı: sabit üst bar, içerik altından kayınca yalnızca gölgeyle ayrılır. */
.topbar {
	transition: box-shadow var(--dur-spring) var(--ease-spring);
}

.topbar.is-scrolled {
	box-shadow: 0 6px 20px -10px color-mix(in srgb, var(--ydb-navy) 60%, transparent);
}

/* Dokunmatik ekranlarda minimum 44 px dokunma hedefi. */
@media (pointer: coarse) {
	.topbar__icon-btn,
	.actionbar__btn,
	.actionbar__caret,
	.palette__close,
	.sidebar__toggle {
		min-width: 44px;
		min-height: 44px;
	}

	.topbar__icon-btn {
		width: 44px;
		height: 44px;
	}

	.actionbar__btn,
	.actionbar__caret {
		height: 44px;
	}

	.palette__close {
		width: 44px;
		height: 44px;
	}
}

/* Kontrast isteyen kullanıcılar: kenarlıklar belirginleşir. */
@media (prefers-contrast: more) {
	:root {
		--border: color-mix(in srgb, var(--ink) 45%, transparent);
		--card-border-color: color-mix(in srgb, var(--ink) 50%, transparent);
	}
}

/* Hareket azaltma: kaydırma ve ölçek yerine kısa bir çapraz geçiş (opacity). */
@media (prefers-reduced-motion: reduce) {
	:root {
		--dur-spring: 0.15s;
		--ease-spring: ease-out;
	}

	*:active,
	.palette,
	.toast,
	.actionbar__menu,
	.mobile-nav {
		transform: none !important;
	}

	.mobile-nav {
		opacity: 0;
		transition: opacity 0.15s ease-out, visibility 0s linear 0.15s;
	}

	.mobile-nav.is-open {
		opacity: 1;
		transition: opacity 0.15s ease-out, visibility 0s;
	}
}

@media print {
	.topbar,
	.topbar-spacer,
	.sidebar,
	.shell__sidebar,
	.shell__toc,
	.actionbar,
	.prevnext,
	.related,
	.footer,
	.skip-link {
		display: none !important;
	}

	.shell {
		display: block;
		padding: 0;
	}

	.shell__main {
		max-width: none;
		padding: 0;
	}

	.prose a {
		color: inherit;
	}
}
