/* ==========================================================================
   matcisafa.com — Modern Pico CSS v2 & Düz/Uyumlu KaTeX Tasarım Katmanı
   ========================================================================== */

:root {
	--pico-font-family: 'Plus Jakarta Sans', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--pico-font-size: 95%;
	/* index.html ekran görüntüsündeki kompakt ve dengeli boyut */
	--pico-line-height: 1.65;
	--pico-border-radius: 0.85rem;
	--brand-teal: #0d9488;
	--brand-teal-dark: #0f766e;
	--brand-slate: #1e293b;
}

[data-theme="light"] {
	--pico-background-color: #f8fafc;
	--pico-card-background-color: #ffffff;
	--pico-card-sectioning-background-color: #f1f5f9;
	--pico-primary: #0d9488;
	--pico-primary-hover: #0f766e;
	--pico-primary-underline: rgba(13, 148, 136, 0.3);
	--pico-primary-focus: rgba(13, 148, 136, 0.2);
	--surface-border: rgba(15, 23, 42, 0.08);
	--surface-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 4px 10px -3px rgba(15, 23, 42, 0.03);
	--surface-shadow-hover: 0 20px 30px -10px rgba(13, 148, 136, 0.14), 0 8px 16px -4px rgba(15, 23, 42, 0.06);
}

[data-theme="dark"] {
	--pico-background-color: #0f172a;
	--pico-card-background-color: #1e293b;
	--pico-card-sectioning-background-color: #162032;
	--pico-primary: #2dd4bf;
	--pico-primary-hover: #5eead4;
	--surface-border: rgba(255, 255, 255, 0.08);
	--surface-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35);
	--surface-shadow-hover: 0 20px 30px -10px rgba(45, 212, 191, 0.15);
}

/* Tüm Sayfalarda Birebir index.html Genişliği (710px dış / 678px iç) ve Yatay Taşma Engeli */
html,
body {
	overflow-x: hidden;
	width: 100%;
}

.container,
main.container,
header.site-header > nav.container,
footer.site-footer > div.container {
	max-width: 710px !important;
	width: 100% !important;
	margin-inline: auto !important;
	padding-inline: 1rem !important;
	box-sizing: border-box !important;
}

/* ==========================================================================
   1. ÜST NAVİGASYON (Cam Efektli Modern Bar)
   ========================================================================== */
header.site-header {
	border-bottom: 1px solid var(--surface-border);
	padding-block: 0.5rem !important;
	margin-bottom: 2rem;
	background: color-mix(in srgb, var(--pico-card-background-color) 88%, transparent);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	position: sticky;
	top: 0;
	z-index: 100;
	overflow: visible !important;
}

header.site-header > nav.container {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	position: relative;
	overflow: visible !important;
	min-height: 3.4rem;
	padding-block: 0 !important;
	margin-block: 0 !important;
}

header.site-header > nav.container > ul:first-child,
header.site-header > nav.container > ul:first-child > li {
	margin: 0 !important;
	padding: 0 !important;
	display: flex !important;
	align-items: center !important;
}

header.site-header nav ul.nav-links {
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

header.site-header nav ul.nav-links li {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}

header.site-header nav ul.nav-links li a {
	font-weight: 500;
	font-size: 0.92rem;
	color: var(--pico-muted-color);
	text-decoration: none;
	padding: 0.42rem 0.85rem;
	margin: 0 !important;
	border-radius: 999px;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	position: relative;
}

header.site-header nav ul.nav-links li a:hover {
	color: var(--pico-contrast);
	background: rgba(13, 148, 136, 0.08);
}

header.site-header nav ul.nav-links li a.active {
	color: var(--brand-teal) !important;
	background: rgba(13, 148, 136, 0.12) !important;
	font-weight: 600;
	text-decoration: none;
	box-shadow: none !important;
}

[data-theme="dark"] header.site-header nav ul.nav-links li a:hover {
	background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] header.site-header nav ul.nav-links li a.active {
	color: #2dd4bf !important;
	background: rgba(45, 212, 191, 0.14) !important;
}

/* Minimalist Gece/Gündüz Butonu (Masaüstü Dairesel İkon) */
.theme-toggle-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 2.15rem !important;
	height: 2.15rem !important;
	min-width: 2.15rem !important;
	padding: 0 !important;
	margin: 0 0 0 0.35rem !important;
	border-radius: 50% !important;
	border: 1px solid var(--surface-border) !important;
	background: transparent !important;
	color: var(--pico-muted-color) !important;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: none !important;
	outline: none !important;
}

.theme-toggle-btn:hover {
	color: var(--pico-contrast) !important;
	background: var(--pico-card-sectioning-background-color) !important;
	border-color: var(--brand-teal) !important;
	transform: rotate(15deg);
}

.theme-toggle-btn:active {
	transform: scale(0.92);
}

.theme-toggle-btn .theme-toggle-text {
	display: none;
}

.theme-icon-moon {
	display: block;
}
.theme-icon-sun {
	display: none;
}

[data-theme="dark"] .theme-icon-moon {
	display: none;
}
[data-theme="dark"] .theme-icon-sun {
	display: block;
	color: #fbbf24;
}

.brand-logo {
	font-weight: 800 !important;
	font-size: 1.4rem !important;
	letter-spacing: -0.03em;
	text-decoration: none !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 0.6rem;
	padding: 0 !important;
	margin: 0 !important;
	line-height: 1 !important;
}

.brand-logo:hover {
	background: transparent !important;
}

.brand-logo svg.fox-icon {
	width: 3.8rem !important;
	height: 3.8rem !important;
	flex-shrink: 0;
	color: #2dd4bf !important;
	display: block;
	transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
}

.brand-logo:hover svg.fox-icon {
	transform: scale(1.14) rotate(-4deg);
	filter: drop-shadow(0 4px 10px rgba(13, 148, 136, 0.3));
}

.brand-logo .logo-text {
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

/* Gündüz Modunda "matci" ve "safa" Renk Ayrımı */
[data-theme="light"] .brand-logo .logo-matci {
	color: #0f172a;
}

[data-theme="light"] .brand-logo .logo-safa {
	color: #0d9488;
}

/* Gece Modunda "matci" ve "safa" Renk Ayrımı */
[data-theme="dark"] .brand-logo .logo-matci {
	color: #f8fafc;
}

[data-theme="dark"] .brand-logo .logo-safa {
	color: #2dd4bf;
}

/* Mobil Sağ Eylem Butonları (Tema + Hamburger, Masaüstünde gizli) */
.mobile-actions {
	display: none;
	align-items: center;
	gap: 0.45rem;
}

.mobile-theme-btn,
.mobile-menu-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 2.35rem !important;
	height: 2.35rem !important;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 0.65rem !important;
	background: var(--pico-card-sectioning-background-color) !important;
	border: 1px solid var(--surface-border) !important;
	color: var(--pico-contrast) !important;
	box-shadow: none !important;
	outline: none !important;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.mobile-theme-btn:hover,
.mobile-menu-btn:hover,
.mobile-menu-btn[aria-expanded="true"] {
	background: color-mix(in srgb, var(--pico-primary) 14%, transparent) !important;
	border-color: color-mix(in srgb, var(--pico-primary) 35%, transparent) !important;
	color: var(--pico-primary) !important;
}

.mobile-theme-btn svg,
.mobile-menu-btn svg {
	width: 1.15rem;
	height: 1.15rem;
	display: block;
}

.mobile-theme-btn .theme-icon-sun { display: none; }
[data-theme="dark"] .mobile-theme-btn .theme-icon-moon { display: none; }
[data-theme="dark"] .mobile-theme-btn .theme-icon-sun { display: block; color: #fbbf24; }

/* Mobil Görünüm & Modern Sosyal Medya Tarzı Popover Menü (<= 680px) */
@media (max-width: 680px) {
	header.site-header {
		padding-block: 0.35rem !important;
	}

	header.site-header > nav.container {
		min-height: 3rem;
	}

	.brand-logo {
		font-size: 1.25rem !important;
		gap: 0.45rem;
	}

	.brand-logo svg.fox-icon {
		width: 2.85rem !important;
		height: 2.85rem !important;
	}

	.mobile-actions {
		display: inline-flex;
	}

	/* Sağ üstte butonun hemen altına hizalı açılan modern Popover Kart */
	header.site-header nav ul.nav-links {
		display: none !important;
		position: absolute !important;
		top: calc(100% + 0.25rem) !important;
		right: 1rem !important;
		width: 200px !important;
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 0.2rem !important;
		padding: 0.45rem !important;
		margin: 0 !important;
		background: var(--pico-card-background-color) !important;
		border: 1px solid var(--surface-border) !important;
		border-radius: 0.85rem !important;
		box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.2), 0 4px 10px -2px rgba(15, 23, 42, 0.08) !important;
		z-index: 999 !important;
		transform-origin: top right;
		animation: popoverFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
	}

	/* Popover üst küçük ok (butonun tam altına denk gelir) */
	header.site-header nav ul.nav-links::before {
		content: "";
		position: absolute;
		top: -6px;
		right: 13px;
		width: 10px;
		height: 10px;
		background: var(--pico-card-background-color);
		border-top: 1px solid var(--surface-border);
		border-left: 1px solid var(--surface-border);
		transform: rotate(45deg);
	}

	@keyframes popoverFadeIn {
		from {
			opacity: 0;
			transform: scale(0.95) translateY(-5px);
		}
		to {
			opacity: 1;
			transform: scale(1) translateY(0);
		}
	}

	header.site-header nav ul.nav-links.is-open {
		display: flex !important;
	}

	header.site-header nav ul.nav-links li {
		width: 100% !important;
		padding: 0 !important;
		margin: 0 !important;
		display: block !important;
	}

	header.site-header nav ul.nav-links li a {
		display: flex !important;
		align-items: center;
		width: 100% !important;
		padding: 0.52rem 0.75rem !important;
		border-radius: 0.55rem !important;
		text-align: left;
		font-size: 0.88rem !important;
		font-weight: 600 !important;
		color: var(--pico-contrast) !important;
	}

	header.site-header nav ul.nav-links li a:hover {
		background: var(--pico-card-sectioning-background-color) !important;
	}

	/* Aktif sayfa: kaba yeşil blok yerine zarif yumuşak vurgu */
	header.site-header nav ul.nav-links li a.active {
		background: color-mix(in srgb, var(--pico-primary) 13%, transparent) !important;
		color: var(--pico-primary) !important;
		box-shadow: none !important;
		font-weight: 700 !important;
	}

	/* Mobilde tema butonu üst çubukta olduğu için açılır menüde gizlenir */
	header.site-header nav ul.nav-links li.nav-theme-item {
		display: none !important;
	}
}

/* ==========================================================================
   2. AERIAL ESİNTİLİ KOMPAKT HERO (Üst Karşılama Kartı)
   ========================================================================== */
.aerial-hero {
	position: relative;
	border-radius: 1rem;
	overflow: hidden;
	padding: 2.6rem 2rem;
	margin-bottom: 2.75rem;
	color: #fff;
	text-align: center;
	background-color: #1b252a;
	box-shadow: 0 18px 36px -12px rgba(15, 23, 42, 0.28);
}

.aerial-hero-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: calc(100% + 1500px);
	height: 100%;
	background: #348cb2 url("../img/hero-bg.jpg") bottom left repeat-x;
	background-size: 1500px auto;
	will-change: transform;
	animation: aerialSlide 60s linear infinite;
	z-index: 1;
}

.aerial-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(15, 23, 42, 0.62), rgba(13, 148, 136, 0.52));
	z-index: 2;
}

@keyframes aerialSlide {
	0% {
		transform: translate3d(0, 0, 0);
	}

	100% {
		transform: translate3d(-1500px, 0, 0);
	}
}

.aerial-hero-content {
	position: relative;
	z-index: 3;
}

.aerial-hero-content h1 {
	color: #fff;
	font-size: clamp(1.9rem, 4.2vw, 2.6rem);
	font-weight: 800;
	margin-bottom: 0.45rem;
	letter-spacing: -0.03em;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.aerial-hero-content p {
	color: rgba(255, 255, 255, 0.92);
	font-size: 1rem;
	max-width: 560px;
	margin: 0 auto 1.35rem auto;
}

.aerial-social {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	justify-content: center;
	gap: 0.75rem;
}

.aerial-social li {
	margin: 0;
	list-style: none;
}

.aerial-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.6rem;
	height: 2.6rem;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, 0.8);
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(4px);
	color: #fff;
	text-decoration: none;
	transition: all 0.2s ease;
}

.aerial-social a:hover {
	background: #fff;
	color: #0f766e;
	transform: translateY(-3px);
}

/* ==========================================================================
   3. MODERN BÖLÜM BAŞLIKLARI & KARTLAR (Hero ile Aynı Modern Dil)
   ========================================================================== */
.section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
	padding-bottom: 0;
	border-bottom: none;
}

.section-header h2,
.section-header h3 {
	margin-bottom: 0;
	font-size: 1.3rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	display: flex;
	align-items: center;
	gap: 0.55rem;
}

.section-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.84rem;
	font-weight: 700;
	color: var(--pico-primary);
	background: color-mix(in srgb, var(--pico-primary) 10%, transparent);
	padding: 0.38rem 0.9rem;
	border-radius: 999px;
	text-decoration: none !important;
	white-space: nowrap;
	flex-shrink: 0;
	transition: all 0.2s ease;
}

.section-link:hover {
	background: var(--pico-primary);
	color: #fff !important;
	transform: translateX(2px);
}

/* Genel article kart iyileştirmesi */
article {
	border: 1px solid var(--surface-border);
	border-radius: 1rem;
	box-shadow: var(--surface-shadow);
	background: var(--pico-card-background-color);
}

/* Materyal Kartları Grid */
.materials-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr));
	gap: 1.25rem;
	margin-bottom: 2rem;
}

.material-card {
	margin-bottom: 0;
	padding: 1.4rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	border-radius: 1rem;
	border: 1px solid var(--surface-border);
	box-shadow: var(--surface-shadow);
	position: relative;
	overflow: hidden;
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

/* Kartın üstünde ince modern renk çizgisi */
.material-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #0d9488, #348cb2);
	opacity: 0.85;
}

.material-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--surface-shadow-hover);
	border-color: color-mix(in srgb, var(--pico-primary) 40%, transparent);
}

.material-card h4 {
	font-weight: 700;
	font-size: 1.12rem;
	letter-spacing: -0.015em;
	margin-bottom: 0.45rem;
}

.material-card h4 a {
	color: var(--pico-contrast);
	text-decoration: none;
	transition: color 0.15s ease;
}

.material-card:hover h4 a {
	color: var(--pico-primary);
}

/* Modern Materyal Aksiyon Butonu */
.btn-modern {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	margin-top: 0.75rem;
	padding: 0.55rem 1rem !important;
	font-size: 0.86rem !important;
	font-weight: 700 !important;
	border-radius: 0.65rem !important;
	background: color-mix(in srgb, var(--pico-primary) 10%, transparent) !important;
	color: var(--pico-primary) !important;
	border: 1px solid color-mix(in srgb, var(--pico-primary) 22%, transparent) !important;
	text-decoration: none !important;
	transition: all 0.2s ease !important;
}

.material-card:hover .btn-modern,
.btn-modern:hover {
	background: var(--brand-teal) !important;
	color: #fff !important;
	border-color: var(--brand-teal) !important;
	box-shadow: 0 6px 16px rgba(13, 148, 136, 0.25);
}

/* ==========================================================================
   4. MODERN YAZI LİSTESİ KARTLARI
   ========================================================================== */
.posts-stack {
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
}

.post-list-item {
	background: var(--pico-card-background-color);
	border: 1px solid var(--surface-border);
	border-radius: 1rem;
	padding: 1.25rem 1.4rem;
	box-shadow: var(--surface-shadow);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.post-list-item:hover {
	transform: translateY(-2px);
	box-shadow: var(--surface-shadow-hover);
	border-color: color-mix(in srgb, var(--pico-primary) 35%, transparent);
}

.post-meta {
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--pico-muted-color);
	margin-bottom: 0.4rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.post-meta-group {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	white-space: nowrap;
}

.post-list-item h3,
.post-list-item h4 {
	margin-bottom: 0.35rem;
	font-size: 1.12rem;
	font-weight: 700;
	letter-spacing: -0.015em;
}

.post-list-item h3 a,
.post-list-item h4 a {
	color: var(--pico-contrast);
	text-decoration: none;
	transition: color 0.15s ease;
}

.post-list-item:hover h3 a,
.post-list-item:hover h4 a {
	color: var(--pico-primary);
}

.post-list-item p {
	margin-bottom: 0;
	font-size: 0.93rem;
	color: var(--pico-muted-color);
	line-height: 1.6;
}

/* ==========================================================================
   5. ROZETLER (Kategori & Sınıf Seviyesi)
   ========================================================================== */
.badge {
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.65rem;
	font-size: 0.73rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	border-radius: 999px;
	background: color-mix(in srgb, var(--pico-primary) 12%, transparent);
	color: var(--pico-primary);
	text-decoration: none;
	vertical-align: middle;
}

.badge.lab {
	background: linear-gradient(135deg, #0d9488, #0284c7);
	color: #fff;
}

.badge.grade {
	background: var(--pico-card-sectioning-background-color);
	border: 1px solid var(--surface-border);
	color: var(--pico-muted-color);
	font-weight: 600;
}

/* ==========================================================================
   6. KATEX AYARLARI: HİÇBİR YAZI İTALİK OLMASIN & NORMAL YAZIYLA AYNI BOYUT/FONT
   ========================================================================== */
.katex {
	/* Normal metinle birebir aynı boyut (KaTeX varsayılanı 1.21em'dir, onu 1em'e çektik) */
	font-size: 1em !important;
	font-family: var(--pico-font-family) !important;
	font-style: normal !important;
	font-weight: inherit;
	line-height: inherit;
	/* Satır içi denklemlerin =, +, - gibi operatörlerden bölünüp alt satıra kaymasını engelle */
	white-space: nowrap !important;
}

/* KaTeX içindeki tüm harf, değişken ve fonksiyonların italik olmasını engelle */
.katex *,
.katex .mathnormal,
.katex .mathit,
.katex .textit {
	font-style: normal !important;
}

/* Harf, rakam ve metin düğümleri sayfanın modern sans-serif fontunu kullansın,
   özel matematik gliflerinde (örn. \neq içindeki kesme işareti) KaTeX_Main'e düşsün */
.katex .mathnormal,
.katex .mathit,
.katex .mord:not(.delimsizing):not(.sqrt),
.katex .mop:not(.op-symbol),
.katex .mbin,
.katex .mrel,
.katex .mopen:not(.delimsizing),
.katex .mclose:not(.delimsizing),
.katex .mpunct,
.katex .mtext {
	font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif, KaTeX_Main, KaTeX_Math !important;
	font-style: normal !important;
}

/* İntegral (∫) sembolünü boyutunu ve hizasını bozmadan dikleştir */
.katex .op-symbol[data-upright-int="true"] {
	display: inline-block;
	transform: skewX(12deg);
	margin-right: 0.12em !important;
}

/* \int\limits_{a}^{b} kullanıldığında alt ve üst sınırları dik integrale göre tam ortala */
.katex .op-limits[data-upright-limits="true"] .vlist>span {
	margin-left: 0.04em !important;
}

/* Üst sınırı dik integralin üst kıvrımıyla tam hizalamak için hafif sağa al */
.katex .op-limits[data-upright-limits="true"] .vlist>span:has(.op-symbol)~span {
	margin-left: 0.2em !important;
}

.katex-display {
	overflow-x: auto;
	overflow-y: hidden;
	padding-block: 0.5rem;
	margin-block: 1.15rem !important;
}

.katex-display>.katex {
	font-size: 1.08em !important;
}

.math-box {
	background: var(--pico-card-sectioning-background-color);
	border-left: 4px solid var(--brand-teal);
	padding: 1.1rem 1.35rem;
	border-radius: 0 0.75rem 0.75rem 0;
	margin-block: 1.25rem;
}

.math-box .callout-title {
	font-weight: 700;
	font-size: 0.95rem;
	margin-bottom: 0.5rem;
	color: var(--brand-teal);
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.math-box.callout-note {
	background: rgba(37, 99, 235, 0.06);
	border-left-color: #2563eb;
}
.math-box.callout-note .callout-title { color: #2563eb; }

.math-box.callout-tip {
	background: rgba(16, 185, 129, 0.07);
	border-left-color: #10b981;
}
.math-box.callout-tip .callout-title { color: #059669; }

.math-box.callout-warn {
	background: rgba(245, 158, 11, 0.08);
	border-left-color: #f59e0b;
}
.math-box.callout-warn .callout-title { color: #d97706; }

.math-box.callout-example {
	background: rgba(99, 102, 241, 0.07);
	border-left-color: #6366f1;
}
.math-box.callout-example .callout-title { color: #4f46e5; }

[data-theme="dark"] .math-box.callout-note { background: rgba(59, 130, 246, 0.14); }
[data-theme="dark"] .math-box.callout-note .callout-title { color: #60a5fa; }
[data-theme="dark"] .math-box.callout-tip { background: rgba(16, 185, 129, 0.14); }
[data-theme="dark"] .math-box.callout-tip .callout-title { color: #34d399; }
[data-theme="dark"] .math-box.callout-warn { background: rgba(245, 158, 11, 0.14); }
[data-theme="dark"] .math-box.callout-warn .callout-title { color: #fbbf24; }
[data-theme="dark"] .math-box.callout-example { background: rgba(99, 102, 241, 0.14); }
[data-theme="dark"] .math-box.callout-example .callout-title { color: #a5b4fc; }

mark.math-highlight {
	background: rgba(250, 204, 21, 0.35);
	color: inherit;
	padding: 0.08em 0.35em;
	border-radius: 0.3rem;
}
[data-theme="dark"] mark.math-highlight {
	background: rgba(250, 204, 21, 0.22);
}

/* ==========================================================================
   6.5 BLOG YAZISI GÖRSELLERİ, GEOMETRİ ŞEMALARI & LIGHTBOX (BÜYÜTME)
   ========================================================================== */
article img {
	border-radius: 0.75rem;
	border: 1px solid var(--surface-border);
	box-shadow: var(--surface-shadow);
	display: block;
	margin-inline: auto;
	max-width: 100%;
	height: auto;
	cursor: zoom-in;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

article img:hover {
	transform: translateY(-2px);
	box-shadow: var(--surface-shadow-hover);
}

figure.post-figure {
	margin: 1.5rem auto;
	max-width: 680px;
	text-align: center;
}

figure.post-figure img {
	max-width: 100%;
	max-height: 240px;
	width: auto !important;
	height: auto !important;
	margin-inline: auto;
	display: block;
	border-radius: 0.75rem;
	box-shadow: var(--surface-shadow);
}

figure.post-figure figcaption {
	margin-top: 0.6rem;
	font-size: 0.85rem;
	color: var(--pico-muted-color);
}

figure.post-figure.diagram figcaption {
	color: #475569;
}

/* Geometri çizimleri / GeoGebra kesitleri / Soru görselleri için özel kutu:
   Çok devasa olup bulanıklaşmaz ve Gece Modunda siyah çizgiler kaybolmaz */
figure.post-figure.diagram {
	background: #ffffff;
	color: #1e293b;
	border: 1px solid var(--surface-border);
	border-radius: 0.85rem;
	padding: 1.25rem;
	max-width: 560px;
	margin-inline: auto;
	box-shadow: var(--surface-shadow);
}

figure.post-figure.diagram img,
figure.post-figure.diagram svg {
	border: none;
	box-shadow: none;
	max-height: 300px;
	max-width: 100% !important;
	width: 100%;
	height: auto;
	margin-inline: auto;
	display: block;
	cursor: default !important;
}

figure.post-figure.diagram img:hover {
	transform: none !important;
	box-shadow: none !important;
}

/* Yan yana ikili görsel karşılaştırması (Masaüstünde kesinlikle yan yana 2 sütun) */
.figure-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.25rem;
	margin-block: 1.75rem;
	align-items: start;
}

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

.figure-grid figure.post-figure {
	margin: 0 !important;
	width: 100%;
}

.figure-grid figure.post-figure img {
	width: 100%;
	height: auto;
	max-height: 420px;
	object-fit: cover;
	display: block;
}

/* Tıklayınca Büyüyen Resim (Lightbox Modal) */
dialog.image-lightbox {
	background: rgba(15, 23, 42, 0.85);
	backdrop-filter: blur(6px);
	border: none;
	padding: 1rem;
}

dialog.image-lightbox article {
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 0;
	max-width: 92vw;
	text-align: center;
}

dialog.image-lightbox img {
	max-height: 82vh;
	max-width: 90vw;
	width: auto;
	border-radius: 0.75rem;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
	cursor: zoom-out;
}

dialog.image-lightbox p {
	color: #f8fafc;
	margin-top: 0.75rem;
	font-size: 0.92rem;
}

/* ==========================================================================
   7. İNTERAKTİF SİMÜLASYON & FİLTRE BARI (STANDART MATERYAL ARAYÜZÜ)
   ========================================================================== */
/* Materyal detay sayfasında sağ bilgi kartı ve tuvalin yan yana ferah durması için genişlik */
main.container:has(#labBox) {
	max-width: 960px !important;
}

.lab-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: nowrap;
}

.lab-card-title-group {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	min-width: 0;
}

.lab-card-title-group .badge {
	flex-shrink: 0;
	white-space: nowrap;
}

.lab-card-title {
	margin: 0;
	font-size: 1.06rem;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -0.015em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Standart Tam Ekran / Tam Ekrandan Çık Butonu */
.lab-fs-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 0.42rem !important;
	padding: 0.36rem 0.85rem !important;
	font-size: 0.81rem !important;
	font-weight: 700 !important;
	margin: 0 !important;
	width: auto !important;
	white-space: nowrap !important;
	flex-shrink: 0;
	border-radius: 0.55rem !important;
	background: var(--brand-teal) !important;
	color: #ffffff !important;
	border: 1px solid var(--brand-teal) !important;
	box-shadow: 0 2px 8px rgba(13, 148, 136, 0.22) !important;
	cursor: pointer;
	transition: all 0.18s ease;
}

.lab-fs-btn:hover {
	background: var(--brand-teal-dark) !important;
	border-color: var(--brand-teal-dark) !important;
	transform: translateY(-1px);
}

.lab-fs-btn .fs-icon-enter {
	display: inline-block;
	flex-shrink: 0;
}

.lab-fs-btn .fs-icon-exit {
	display: none;
	flex-shrink: 0;
}

/* Tam Ekran Aktifken "Tam Ekrandan Çık" Görünümü */
.lab-fs-btn.is-fullscreen,
.fullscreen-target:fullscreen .lab-fs-btn {
	background: #e11d48 !important;
	border-color: #e11d48 !important;
	color: #ffffff !important;
	box-shadow: 0 3px 10px rgba(225, 29, 72, 0.3) !important;
}

.lab-fs-btn.is-fullscreen:hover,
.fullscreen-target:fullscreen .lab-fs-btn:hover {
	background: #be123c !important;
	border-color: #be123c !important;
}

.lab-fs-btn.is-fullscreen .fs-icon-enter,
.fullscreen-target:fullscreen .lab-fs-btn .fs-icon-enter {
	display: none;
}

.lab-fs-btn.is-fullscreen .fs-icon-exit,
.fullscreen-target:fullscreen .lab-fs-btn .fs-icon-exit {
	display: inline-block;
}

@media (max-width: 560px) {
	.lab-card-header {
		flex-wrap: wrap;
	}
	.lab-card-title {
		white-space: normal;
	}
}

.lab-workspace {
	background: var(--pico-card-sectioning-background-color);
	border: 1px solid var(--surface-border);
	border-radius: 0.85rem;
	padding: 0.9rem;
}

/* Üst Araç Çubuğu: Grafik Üstündeki Butonları Yatayda Ortalar */
.lab-toolbar {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.55rem;
	flex-wrap: wrap;
	margin-bottom: 0.6rem;
	text-align: center;
}

.lab-btn-group {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.22rem;
	background: var(--pico-card-background-color);
	padding: 0.22rem;
	border-radius: 0.6rem;
	border: 1px solid var(--surface-border);
	flex-wrap: nowrap;
}

.lab-btn {
	padding: 0.28rem 0.65rem !important;
	font-size: 0.79rem !important;
	font-weight: 700 !important;
	border-radius: 0.44rem !important;
	margin: 0 !important;
	width: auto !important;
	white-space: nowrap !important;
	line-height: 1.25 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 0.28rem !important;
	cursor: pointer;
	border: 1px solid transparent !important;
	background: transparent !important;
	color: var(--pico-muted-color) !important;
	box-shadow: none !important;
	transition: all 0.15s ease;
}

.lab-btn:hover {
	color: var(--pico-contrast) !important;
	background: var(--pico-card-sectioning-background-color) !important;
}

.lab-btn.active {
	background: var(--brand-teal) !important;
	color: #fff !important;
	box-shadow: 0 2px 6px rgba(13, 148, 136, 0.25) !important;
}

.lab-btn.outline {
	background: var(--pico-card-background-color) !important;
	border: 1px solid var(--surface-border) !important;
	color: var(--pico-contrast) !important;
}

.lab-btn.outline:hover {
	border-color: var(--brand-teal) !important;
	color: var(--brand-teal) !important;
}

/* Canlı KaTeX Formül Gösterim Kutusu */
.lab-formula-bar {
	background: var(--pico-card-background-color);
	border: 1px solid var(--surface-border);
	border-radius: 0.65rem;
	padding: 0.4rem 0.85rem;
	margin-bottom: 0.65rem;
	text-align: center;
	font-size: 1.15rem;
	min-height: 2.4rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	flex-wrap: wrap;
	overflow-x: auto;
}

/* Ana 2 Sütunlu Gövde: Sol (Grafik + Kaydırıcılar) | Sağ (Bilgi & Analiz Kartı) */
.lab-body-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 265px;
	gap: 0.8rem;
	align-items: stretch;
}

.lab-main-col {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 0.65rem;
	min-width: 0;
}

/* Sağdaki Bilgi ve Analiz Kartı */
.lab-side-card {
	background: var(--pico-card-background-color);
	border: 1px solid var(--surface-border);
	border-radius: 0.7rem;
	padding: 0.75rem;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 0.55rem;
	min-width: 0;
	box-shadow: var(--surface-shadow);
}

.lab-side-title {
	font-size: 0.78rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--pico-primary);
	padding-bottom: 0.4rem;
	border-bottom: 1px solid var(--surface-border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.4rem;
	margin: 0;
}

.lab-info-list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	flex: 1;
	justify-content: space-between;
}

@media (max-width: 780px) {
	.lab-body-grid {
		grid-template-columns: 1fr;
	}
}

/* Tuval (Canvas) Kapsayıcı ve Orijin Zoom Etiketi */
.lab-canvas-wrap {
	position: relative;
	margin-bottom: 0;
}

.lab-canvas {
	width: 100%;
	max-width: 100%;
	height: 340px;
	background: var(--pico-card-background-color);
	border: 1px solid var(--surface-border);
	border-radius: 0.65rem;
	display: block;
	margin: 0 auto;
	touch-action: none;
	user-select: none;
}

.lab-canvas-badge {
	position: absolute;
	top: 0.55rem;
	right: 0.6rem;
	font-size: 0.72rem;
	font-weight: 700;
	padding: 0.18rem 0.52rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--pico-card-background-color) 88%, transparent);
	backdrop-filter: blur(6px);
	border: 1px solid var(--surface-border);
	color: var(--pico-muted-color);
	pointer-events: none;
	white-space: nowrap;
}

/* Kaydırıcılar Grid */
.sliders-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 0.55rem;
	margin-bottom: 0;
}

.sliders-grid.cols-1 {
	grid-template-columns: 1fr;
}

.sliders-grid.cols-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sliders-grid.cols-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sliders-grid.cols-4 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 560px) {
	.sliders-grid.cols-2,
	.sliders-grid.cols-3,
	.sliders-grid.cols-4 {
		grid-template-columns: 1fr;
	}
}

.sliders-grid label {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background: var(--pico-card-background-color);
	border: 1px solid var(--surface-border);
	border-radius: 0.6rem;
	padding: 0.45rem 0.65rem;
	margin-bottom: 0 !important;
	font-size: 0.8rem;
	min-width: 0;
}

.sliders-grid label .slider-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.35rem;
	margin-bottom: 0.25rem;
	white-space: nowrap;
}

.sliders-grid label .slider-title {
	font-weight: 700;
	color: var(--pico-contrast);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sliders-grid label .slider-val {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 0.75rem;
	font-weight: 700;
	padding: 0.08rem 0.4rem;
	border-radius: 0.35rem;
	background: color-mix(in srgb, var(--pico-primary) 14%, transparent);
	color: var(--pico-primary);
	flex-shrink: 0;
	white-space: nowrap;
}

.sliders-grid input[type="range"] {
	margin-bottom: 0 !important;
	height: 1.15rem;
	flex: 1;
	min-width: 0;
}

.slider-range-row {
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.slider-step-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 1.45rem !important;
	height: 1.45rem !important;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 0.38rem !important;
	border: 1px solid var(--surface-border) !important;
	background: var(--pico-card-sectioning-background-color) !important;
	color: var(--pico-contrast) !important;
	font-size: 0.85rem !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	cursor: pointer;
	flex-shrink: 0;
	transition: all 0.14s ease;
}

.slider-step-btn:hover {
	border-color: var(--brand-teal) !important;
	color: var(--brand-teal) !important;
	background: color-mix(in srgb, var(--brand-teal) 10%, transparent) !important;
}

/* Sağ Kart İçi Bilgi Kutuları (.lab-stat-card) */
.lab-stat-card {
	background: var(--pico-card-sectioning-background-color);
	border: 1px solid var(--surface-border);
	border-radius: 0.55rem;
	padding: 0.48rem 0.65rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.16rem;
	min-width: 0;
}

.lab-stat-label {
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--pico-muted-color);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.lab-stat-value {
	font-size: 0.83rem;
	font-weight: 700;
	color: var(--pico-contrast);
	white-space: nowrap;
	max-width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
}

/* Trigonometrik İşaret (+ / -) Rozetleri */
.sign-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.1rem 0.46rem;
	border-radius: 0.35rem;
	font-size: 0.74rem;
	font-weight: 800;
	white-space: nowrap;
}

.sign-badge.plus {
	background: rgba(16, 185, 129, 0.15);
	color: #059669;
	border: 1px solid rgba(16, 185, 129, 0.3);
}

[data-theme="dark"] .sign-badge.plus {
	color: #34d399;
}

.sign-badge.minus {
	background: rgba(225, 29, 72, 0.14);
	color: #e11d48;
	border: 1px solid rgba(225, 29, 72, 0.3);
}

[data-theme="dark"] .sign-badge.minus {
	color: #fb7185;
}

.sign-badge.zero {
	background: rgba(100, 116, 139, 0.15);
	color: var(--pico-muted-color);
	border: 1px solid var(--surface-border);
}

/* Tam Ekran (Akıllı Tahta) Görünümü — Ekrana cuk diye oturur, kaydırma gerektirmez */
.lab-formula-bar .katex-display {
	margin: 0 !important;
	padding: 0 !important;
}

.fullscreen-target:fullscreen {
	padding: 0.55rem 1.25rem !important;
	margin: 0 !important;
	width: 100vw;
	height: 100vh;
	max-height: 100vh;
	box-sizing: border-box;
	border: none !important;
	border-radius: 0 !important;
	background: var(--pico-background-color);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
}

.fullscreen-target:fullscreen > header.lab-card-header {
	max-width: 1400px;
	width: 100%;
	margin: 0 auto 0.45rem auto !important;
	padding: 0.4rem 0.85rem !important;
	border-radius: 0.65rem;
	border: 1px solid var(--surface-border);
	background: var(--pico-card-background-color);
	flex-shrink: 0;
	box-sizing: border-box;
}

.fullscreen-target:fullscreen .lab-workspace {
	max-width: 1400px;
	width: 100%;
	margin: 0 auto !important;
	padding: 0.65rem 0.85rem !important;
	flex: 1 1 0%;
	min-height: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	overflow: hidden;
	box-sizing: border-box;
}

.fullscreen-target:fullscreen .lab-toolbar {
	flex-shrink: 0;
	margin-bottom: 0.45rem;
}

.fullscreen-target:fullscreen .lab-formula-bar {
	flex-shrink: 0;
	margin-bottom: 0.5rem;
	padding: 0.32rem 0.75rem;
	min-height: 2.15rem;
}

.fullscreen-target:fullscreen .lab-body-grid {
	flex: 1 1 0%;
	min-height: 0;
	grid-template-columns: minmax(0, 1fr) 310px;
	grid-template-rows: minmax(0, 1fr);
	gap: 0.85rem;
	align-items: stretch;
}

.fullscreen-target:fullscreen .lab-main-col {
	min-height: 0;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 0.5rem;
}

.fullscreen-target:fullscreen .lab-canvas-wrap {
	flex: 1 1 0%;
	min-height: 0;
	width: 100%;
	position: relative;
}

.fullscreen-target:fullscreen .lab-canvas {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: 100%;
	max-height: 100%;
}

.fullscreen-target:fullscreen .sliders-grid {
	flex-shrink: 0;
}

.fullscreen-target:fullscreen .lab-side-card {
	min-height: 0;
	height: 100%;
	overflow-y: auto;
	box-sizing: border-box;
}

.fullscreen-target:fullscreen .sliders-grid.cols-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fullscreen-target:fullscreen .sliders-grid.cols-5 {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 780px) {
	.fullscreen-target:fullscreen {
		overflow-y: auto;
	}
	.fullscreen-target:fullscreen .lab-workspace {
		overflow: visible;
		flex: none;
	}
	.fullscreen-target:fullscreen .lab-body-grid {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
		flex: none;
	}
	.fullscreen-target:fullscreen .lab-canvas-wrap {
		flex: none;
		height: 300px;
	}
}

.filter-bar {
	display: flex;
	gap: 0.4rem;
	flex-wrap: wrap;
	margin-bottom: 1.5rem;
}

.filter-bar button {
	padding: 0.34rem 0.78rem;
	font-size: 0.8rem;
	font-weight: 600;
	border-radius: 999px;
	margin: 0;
	width: auto;
	white-space: nowrap;
}

footer.site-footer {
	border-top: 1px solid var(--surface-border);
	padding-block: 1.75rem;
	margin-top: 3.5rem;
	font-size: 0.85rem;
	color: var(--pico-muted-color);
}

.footer-social {
	list-style: none;
	margin: 0;
	padding: 0;
	display: inline-flex;
	gap: 0.6rem;
	align-items: center;
}

.footer-social li {
	margin: 0;
	list-style: none;
}

.footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.35rem;
	height: 2.35rem;
	border-radius: 50%;
	background: var(--pico-card-sectioning-background-color);
	border: 1px solid var(--surface-border);
	color: var(--pico-contrast);
	text-decoration: none;
	transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.footer-social a:hover {
	transform: translateY(-2px);
	color: var(--pico-primary);
	border-color: color-mix(in srgb, var(--pico-primary) 40%, transparent);
	background: color-mix(in srgb, var(--pico-primary) 10%, transparent);
}

.footer-social svg {
	width: 1.15rem;
	height: 1.15rem;
	display: block;
}

@media (max-width: 680px) {
	.footer-social {
		gap: 0.7rem;
	}
	.footer-social a {
		width: 2.65rem;
		height: 2.65rem;
	}
	.footer-social svg {
		width: 1.25rem;
		height: 1.25rem;
	}
}
/* Hero sosyal ikonları (satır içi SVG) */
.aerial-social svg {
	width: 1.2rem;
	height: 1.2rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Blog Okuma İlerleme Çubuğu, İçindekiler, Paylaşım & Önceki/Sonraki Yazı */
.reading-progress-bar {
	position: fixed;
	top: 0;
	left: 0;
	height: 3px;
	width: 0;
	background: linear-gradient(90deg, var(--brand-teal), #2dd4bf);
	z-index: 200;
	transition: width 0.08s linear;
}

.post-share-btn {
	padding: 0.24rem 0.65rem !important;
	font-size: 0.76rem !important;
	font-weight: 700 !important;
	border-radius: 999px !important;
	border: 1px solid var(--surface-border) !important;
	background: var(--pico-card-sectioning-background-color) !important;
	color: var(--pico-contrast) !important;
	margin: 0 !important;
	width: auto !important;
	cursor: pointer;
	transition: all 0.15s ease;
}

.post-share-btn:hover {
	border-color: var(--brand-teal) !important;
	color: var(--brand-teal) !important;
}

.post-toc {
	background: var(--pico-card-sectioning-background-color);
	border: 1px solid var(--surface-border);
	border-left: 3px solid var(--brand-teal);
	border-radius: 0.65rem;
	padding: 0.8rem 1rem;
	margin: 1rem 0 1.4rem 0;
	font-size: 0.88rem;
}

.post-toc-title {
	font-weight: 800;
	font-size: 0.84rem;
	margin-bottom: 0.45rem;
	color: var(--pico-contrast);
}

.post-toc ul {
	margin: 0;
	padding-left: 1.15rem;
}

.post-toc li {
	margin-bottom: 0.22rem;
}

.post-toc li.toc-sub {
	margin-left: 0.85rem;
	font-size: 0.84rem;
}

.post-toc a {
	text-decoration: none;
}

.post-toc a:hover {
	text-decoration: underline;
}

.post-neighbors {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.85rem;
	margin-top: 1.5rem;
}

@media (max-width: 600px) {
	.post-neighbors {
		grid-template-columns: 1fr;
	}
}

.post-neighbor-card {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 0.85rem 1rem;
	background: var(--pico-card-background-color);
	border: 1px solid var(--surface-border);
	border-radius: 0.75rem;
	text-decoration: none;
	box-shadow: var(--surface-shadow);
	transition: transform 0.16s ease, border-color 0.16s ease;
}

.post-neighbor-card:hover {
	transform: translateY(-2px);
	border-color: var(--brand-teal);
}

.post-neighbor-card.next {
	text-align: right;
}

.neighbor-dir {
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--pico-primary);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.neighbor-title {
	font-size: 0.92rem;
	color: var(--pico-contrast);
	line-height: 1.35;
}

.filter-empty-state {
	text-align: center;
	padding: 2rem 1rem;
	background: var(--pico-card-background-color);
	border: 1px dashed var(--surface-border);
	border-radius: 0.85rem;
	margin-top: 0.5rem;
}

.post-body {
	overflow-wrap: break-word;
}

.post-body svg,
.post-body img {
	max-width: 100%;
	height: auto;
}

.post-body table {
	width: 100%;
	border-collapse: collapse;
	margin-block: 1.25rem;
	font-size: 0.92rem;
	border: 1px solid var(--surface-border);
	border-radius: 0.5rem;
}

.post-body th,
.post-body td {
	border: 1px solid var(--surface-border);
	padding: 0.55rem 0.85rem;
}

.post-body thead th {
	background: rgba(13, 148, 136, 0.08);
	font-weight: 700;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--pico-muted-color);
}

.post-toc {
	background: var(--pico-card-sectioning-background-color);
	border: 1px solid var(--surface-border);
	border-radius: 0.75rem;
	padding: 0.85rem 1.1rem;
	margin-bottom: 1.5rem;
	font-size: 0.9rem;
}

.post-toc summary {
	font-weight: 700;
	cursor: pointer;
	color: var(--pico-contrast);
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

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

.post-toc ul {
	margin: 0.65rem 0 0;
	padding-left: 1.1rem;
}

.post-toc li {
	margin-bottom: 0.3rem;
}

.post-toc li.toc-sub {
	margin-left: 1rem;
	font-size: 0.86em;
	opacity: 0.9;
}

.post-toc a {
	text-decoration: none;
}

.post-toc a:hover {
	text-decoration: underline;
}

pre.ql-syntax {
	overflow-x: auto;
}

/* Ana sayfada mobilde aşağı doğru aşırı uzamayı önlemek için daha az kart göster */
@media (max-width: 640px) {
	.post-body .katex,
	.math-box .katex,
	.lab-formula-bar .katex {
		max-width: 100%;
		overflow-x: auto;
		overflow-y: hidden;
		display: inline-block;
		vertical-align: middle;
	}
	.home-materials-grid > *:nth-child(n+3) {
		display: none !important;
	}
	.home-posts-stack > *:nth-child(n+4) {
		display: none !important;
	}
}

.infinite-scroll-status {
	text-align: center;
	padding: 1rem 0 0.25rem;
	font-size: 0.86rem;
	color: var(--pico-muted-color);
}

.lab-mobile-hint {
	display: none;
	font-size: 0.82rem;
	padding: 0.55rem 0.85rem;
	margin-bottom: 0.85rem;
	border-radius: 0.55rem;
	background: rgba(13, 148, 136, 0.08);
	border: 1px solid rgba(13, 148, 136, 0.22);
	color: var(--pico-color);
}

@media (max-width: 768px) and (orientation: portrait) {
	.lab-mobile-hint {
		display: block;
	}
	.lab-workspace input[type="range"] {
		min-height: 36px;
		touch-action: manipulation;
	}
	.lab-workspace button,
	.lab-workspace select {
		min-height: 40px;
	}
}
