/* ==========================================================================
   İslami Davet — ortak tasarım sistemi (Kur'an ve Dualar temalarıyla aynı) + Kütüphane bileşenleri (11. bölüm)
   Mobil öncelikli · açık/karanlık · erişilebilir · animasyonsuz (yalnızca kısa geçişler)
   ========================================================================== */

/* ---------- 1. Tasarım belirteçleri ---------- */
:root {
	--bg: #fbfaf7;
	--bg-tint: #f4f1ea;
	--surface: #ffffff;
	--surface-2: #f8f6f1;
	--ink: #14201b;
	--ink-2: #36423d;
	--muted: #5f6b65;
	--line: #e6e1d6;
	--line-strong: #d3ccbd;
	--primary: #0e5a45;
	--primary-ink: #ffffff;
	--primary-soft: #e3efe9;
	--primary-strong: #0a4334;
	--accent: #a87f32;
	--accent-soft: #f5ecd9;
	--focus: #c28a1d;
	--danger: #a23b2a;
	--page-paper: #fffdf6;
	--shadow-sm: 0 1px 2px rgb(20 32 27 / 6%);
	--shadow: 0 1px 2px rgb(20 32 27 / 5%), 0 8px 24px -12px rgb(20 32 27 / 14%);
	--shadow-lg: 0 24px 60px -24px rgb(20 32 27 / 28%);

	--font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-serif: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
	--font-arabic: "Amiri Quran", "KFGQPC Uthmanic Script HAFS", "Scheherazade New", "Traditional Arabic", serif;

	--step--1: clamp(0.83rem, 0.8rem + 0.1vw, 0.88rem);
	--step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
	--step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.3rem);
	--step-2: clamp(1.35rem, 1.2rem + 0.7vw, 1.7rem);
	--step-3: clamp(1.7rem, 1.4rem + 1.4vw, 2.4rem);
	--step-4: clamp(2.1rem, 1.6rem + 2.4vw, 3.6rem);

	--radius-sm: 10px;
	--radius: 16px;
	--radius-lg: 24px;
	--gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
	--section: clamp(3rem, 2rem + 4vw, 6rem);
	--container: 1200px;
	--narrow: 760px;
	--header-h: 64px;
	--tabbar-h: 64px;
	--ease: cubic-bezier(.2, .7, .2, 1);

	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #0c1311;
		--bg-tint: #111a17;
		--surface: #131c19;
		--surface-2: #18231f;
		--ink: #e9eee9;
		--ink-2: #c8d1cb;
		--muted: #94a29b;
		--line: #24312c;
		--line-strong: #33433d;
		--primary: #5cc6a0;
		--primary-ink: #06261c;
		--primary-soft: #16302a;
		--primary-strong: #86dcbc;
		--accent: #d9b56b;
		--accent-soft: #2a2416;
		--focus: #e7c071;
		--page-paper: #f3eedf;
		--shadow-sm: none;
		--shadow: 0 1px 0 rgb(255 255 255 / 3%) inset, 0 10px 30px -18px rgb(0 0 0 / 70%);
		--shadow-lg: 0 30px 60px -20px rgb(0 0 0 / 70%);
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--bg: #0c1311;
	--bg-tint: #111a17;
	--surface: #131c19;
	--surface-2: #18231f;
	--ink: #e9eee9;
	--ink-2: #c8d1cb;
	--muted: #94a29b;
	--line: #24312c;
	--line-strong: #33433d;
	--primary: #5cc6a0;
	--primary-ink: #06261c;
	--primary-soft: #16302a;
	--primary-strong: #86dcbc;
	--accent: #d9b56b;
	--accent-soft: #2a2416;
	--focus: #e7c071;
	--page-paper: #f3eedf;
	--shadow-sm: none;
	--shadow: 0 1px 0 rgb(255 255 255 / 3%) inset, 0 10px 30px -18px rgb(0 0 0 / 70%);
	--shadow-lg: 0 30px 60px -20px rgb(0 0 0 / 70%);
	color-scheme: dark;
}

/* ---------- 2. Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: var(--step-0);
	line-height: 1.65;
	font-feature-settings: "cv11", "ss01";
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}
@media (min-width: 960px) { body { padding-bottom: 0; } }
img, video, iframe, svg { max-width: 100%; }
img, video { height: auto; display: block; }
:where(figure) { margin: 0 0 1.5em; }
.wp-video { max-width: 100%; }
.wp-video video, video.wp-video-shortcode { width: 100%; height: auto; background: #000; border-radius: var(--radius); }
audio.wp-audio-shortcode { width: 100%; }
/* Gömülü YouTube/Vimeo videoları çekirdek blok stilleri yüklenmese de 16:9 kalır. */
.prose iframe[src*="youtube"], .prose iframe[src*="vimeo"], .wp-block-embed iframe[src*="youtube"], .wp-block-embed iframe[src*="vimeo"] { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-strong); }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; color: var(--ink); margin: 0 0 .5em; font-optical-sizing: auto; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent-soft); color: var(--ink); }
[hidden] { display: none !important; }
.arabic { font-family: var(--font-arabic); font-feature-settings: normal; letter-spacing: 0; line-height: 2; }
.muted { color: var(--muted); }
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px;
	overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--ink); color: var(--bg); padding: .75rem 1rem; border-radius: var(--radius-sm); }
.skip-link:focus { top: 1rem; }
.icon { flex: none; display: inline-block; vertical-align: middle; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 0s !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- 3. Düzen ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(var(--narrow) + var(--gutter) * 2); }
.section { padding-block: var(--section); }
.section--flush { padding-block: 0 var(--section); }
.section--tint { background: var(--bg-tint); border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: clamp(1.25rem, 1rem + 1vw, 2rem); }
.section-title { font-size: var(--step-3); margin: 0; }
.subsection-title { font-size: var(--step-2); margin: 2.5rem 0 1rem; }
.eyebrow { font-family: var(--font-sans); font-size: var(--step--1); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 .5rem; }
.eyebrow a { color: inherit; text-decoration: none; }
.link-more { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: var(--step--1); text-decoration: none; white-space: nowrap; }
.lead-text { font-size: var(--step-1); color: var(--ink-2); max-width: 60ch; }

/* ---------- 4. Bileşenler: düğmeler, çipler, alanlar ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 44px; padding: .6rem 1.1rem; border-radius: 999px; border: 1px solid transparent;
	font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
	transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.btn--primary { background: var(--primary); color: var(--primary-ink); }
.btn--primary:hover { background: var(--primary-strong); color: var(--primary-ink); }
.btn--ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--sm { min-height: 38px; padding: .45rem .9rem; font-size: .875rem; }
.btn--lg { min-height: 52px; padding: .8rem 1.4rem; font-size: 1rem; }
.icon-btn {
	display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
	border: 1px solid transparent; background: transparent; color: var(--ink-2);
	transition: background-color .15s var(--ease), color .15s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn[aria-pressed="true"], .icon-btn.is-active { color: var(--primary); background: var(--primary-soft); }

.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.chip {
	display: inline-flex; align-items: center; gap: .4rem; min-height: 38px; padding: .4rem .9rem;
	border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
	font-size: .9rem; font-weight: 500; text-decoration: none; white-space: nowrap;
	transition: border-color .15s var(--ease), color .15s var(--ease), background-color .15s var(--ease);
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.is-active, .chip[aria-current] { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.chip__count { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip.is-active .chip__count { color: inherit; opacity: .8; }
.chip-scroll { margin: 0 calc(var(--gutter) * -1) 1.5rem; padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; }
.chip-scroll::-webkit-scrollbar { display: none; }
.chip-scroll .chip-row { flex-wrap: nowrap; }
@media (min-width: 960px) { .chip-scroll .chip-row { flex-wrap: wrap; } }

.segmented { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.segmented button {
	display: inline-flex; align-items: center; gap: .35rem; min-height: 36px; padding: .3rem .8rem; border: 0;
	border-radius: 999px; background: transparent; color: var(--muted); font-size: .85rem; font-weight: 600; white-space: nowrap;
}
.segmented button:hover { color: var(--ink); }
.segmented button.is-active, .segmented button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.segmented--sm button { min-height: 32px; padding: .2rem .6rem; }

.select { display: inline-flex; flex-direction: column; gap: .2rem; min-width: 0; }
.select__label { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-left: .2rem; }
.select select, .select input {
	min-height: 44px; padding: .5rem 2.2rem .5rem .85rem; border-radius: var(--radius-sm);
	border: 1px solid var(--line-strong); background-color: var(--surface); color: var(--ink); width: 100%;
	appearance: none; -webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235f6b65' stroke-width='1.8' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right .7rem center;
}
.select input { padding-right: .85rem; background-image: none; font-variant-numeric: tabular-nums; }
.select--sm select, .select--sm input { width: 5.5rem; }
.select--lg select { min-height: 54px; font-size: 1.05rem; }

.field { display: flex; align-items: center; gap: .5rem; min-height: 46px; padding: 0 .9rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); }
.field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); padding: .5rem 0; }
.field:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

.search-form { display: flex; align-items: center; gap: .5rem; padding: .35rem .35rem .35rem 1rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); max-width: 560px; color: var(--muted); }
.search-form input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); min-height: 40px; }
.search-form:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

/* ---------- 5. Üst bilgi ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent);
	backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
	border-bottom: 1px solid transparent; transition: border-color .2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.admin-bar .site-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .site-header { top: 32px; } }
.site-header__inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { flex: none; }
.brand__link { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.brand__mark { color: var(--primary); display: inline-grid; }
.brand__mark svg { width: 34px; height: 34px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-serif); font-weight: 650; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand__tag { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.custom-logo { max-height: 44px; width: auto; }

.primary-nav { display: none; margin-inline: auto; }
@media (min-width: 960px) { .primary-nav { display: block; } .menu-btn { display: none; } }
.nav-menu { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav-menu > li { position: relative; display: flex; align-items: center; }
.nav-menu > li > a { display: block; padding: .55rem .8rem; border-radius: 999px; color: var(--ink-2); font-weight: 550; font-size: .95rem; text-decoration: none; }
.nav-menu > li > a:hover, .nav-menu > .current-menu-item > a, .nav-menu > .current-menu-ancestor > a { color: var(--ink); background: var(--surface-2); }
.submenu-toggle { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: -.4rem; border: 0; background: none; color: var(--muted); border-radius: 999px; }
.submenu-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav-menu .sub-menu {
	position: absolute; top: calc(100% + 8px); left: 0; min-width: 300px; list-style: none; margin: 0; padding: .5rem;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
	display: none; z-index: 60;
}
.nav-menu li.is-open > .sub-menu { display: block; }
@media (hover: hover) and (min-width: 960px) {
	.nav-menu > li:hover > .sub-menu { display: block; }
	.nav-menu > li:hover > .sub-menu::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
}
.nav-menu .sub-menu a { display: flex; gap: .75rem; align-items: flex-start; padding: .65rem .75rem; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-size: .95rem; }
.nav-menu .sub-menu a:hover { background: var(--surface-2); }
.nav-menu .sub-menu strong { display: block; font-weight: 600; }
.nav-menu .sub-menu small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.sub-menu__icon { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
.nav-menu .sub-menu .sub-menu { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 1rem; min-width: 0; }

.header-actions { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
@media (min-width: 960px) { .header-actions { margin-left: 0; } }
.header-cta { display: none; margin-left: .35rem; }
@media (min-width: 720px) { .header-cta { display: inline-flex; } }
.theme-icon--sun { display: none; }
[data-theme-toggle][aria-pressed="true"] .theme-icon--sun { display: inline; }
[data-theme-toggle][aria-pressed="true"] .theme-icon--moon { display: none; }

/* Arama penceresi */
.search-dialog { width: min(680px, calc(100% - 2rem)); max-height: min(80vh, 640px); margin: 10vh auto auto; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
.search-dialog::backdrop { background: rgb(8 14 12 / 55%); backdrop-filter: blur(3px); }
.search-dialog__inner { padding: .75rem; }
.search-dialog__form { display: flex; align-items: center; gap: .6rem; padding: .35rem .5rem .35rem 1rem; border-bottom: 1px solid var(--line); color: var(--muted); }
.search-dialog__form input { flex: 1; min-width: 0; min-height: 52px; border: 0; outline: 0; background: transparent; font-size: 1.15rem; color: var(--ink); }
.search-dialog__suggest { padding: 1rem; }
.quick-results__list { list-style: none; margin: .5rem 0 0; padding: 0; }
.quick-results__list a { display: grid; grid-template-columns: 2.25rem 1fr auto; align-items: center; gap: .75rem; padding: .6rem .75rem; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; }
.quick-results__list a:hover, .quick-results__list a:focus-visible { background: var(--surface-2); }

/* Çekmece */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer__backdrop { position: absolute; inset: 0; background: rgb(8 14 12 / 50%); }
.drawer__panel { position: absolute; inset: 0 0 0 auto; width: min(420px, 92vw); background: var(--bg); overflow-y: auto; padding: 1rem var(--gutter) 2rem; box-shadow: var(--shadow-lg); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.drawer__nav { margin-top: 1.5rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.drawer__nav .nav-menu { flex-direction: column; align-items: stretch; }
.drawer__nav .nav-menu > li { flex-wrap: wrap; }
.drawer__nav .nav-menu > li > a { flex: 1; }
.drawer__nav .sub-menu { position: static; width: 100%; box-shadow: none; border: 0; padding: 0 0 .5rem; min-width: 0; background: transparent; }
html.has-drawer { overflow: hidden; }

/* Mobil sekme çubuğu */
.tabbar {
	position: fixed; inset: auto 0 0; z-index: 40; background: color-mix(in srgb, var(--surface) 92%, transparent);
	backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line);
	padding-bottom: env(safe-area-inset-bottom);
}
.tabbar ul { display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; margin: 0; padding: 0; }
.tabbar a, .tabbar button {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 100%;
	height: var(--tabbar-h); border: 0; background: none; color: var(--muted); font-size: .7rem; font-weight: 600; text-decoration: none;
}
.tabbar a[aria-current] { color: var(--primary); }
@media (min-width: 960px) { .tabbar { display: none; } }
.reader-focus .tabbar, .reader-focus .site-header { display: none; }

/* ---------- 6. İçerik haritası ve sayfa başlığı ---------- */
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1.25rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .separator { margin-inline: .35rem; color: var(--line-strong); }
.page-hero { padding: clamp(1.5rem, 1rem + 2vw, 3rem) 0 clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.page-hero__title { font-size: var(--step-4); margin: 0; max-width: 22ch; }
.page-hero__lead { margin-top: .9rem; font-size: var(--step-1); color: var(--ink-2); max-width: 62ch; }
.page-hero__lead p:last-child { margin-bottom: 0; }
.page-hero__meta { margin: .75rem 0 0; color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.page-hero__search { margin-top: 1.5rem; }
.page-hero--compact { padding-bottom: 1rem; }
.page-hero--compact .page-hero__title { font-size: var(--step-3); }
@media (max-width: 559px) { .page-hero--compact .page-hero__lead { display: none; } .page-hero--compact { padding-top: 1rem; } .page-hero--compact .breadcrumbs { margin-bottom: .5rem; } }

/* ---------- 7. Ana sayfa ---------- */

/* Bölüm kutucukları */
.area-grid { display: grid; gap: .75rem; list-style: none; margin: 0; padding: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.area-grid--compact { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.area-tile__link {
	position: relative; display: flex; gap: 1rem; align-items: flex-start; height: 100%; padding: 1.25rem;
	border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
	transition: border-color .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease);
}
.area-tile__link:hover { border-color: var(--primary); box-shadow: var(--shadow); color: var(--ink); }
.area-tile__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--primary-soft); color: var(--primary); }
.area-tile__text { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.area-tile__title { font-family: var(--font-serif); font-weight: 600; font-size: 1.15rem; line-height: 1.25; }
.area-tile__desc { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.area-tile__count { display: inline-block; margin-top: .45rem; padding: .1rem .55rem; border-radius: 999px; background: var(--surface-2); font-size: .72rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; align-self: flex-start; }
.area-grid--compact .area-tile__link { padding: .75rem; gap: .6rem; align-items: center; }
.area-grid--compact .area-tile__icon { width: 36px; height: 36px; border-radius: 10px; }
.area-grid--compact .area-tile__icon svg { width: 20px; height: 20px; }
.area-grid--compact .area-tile__title { font-family: var(--font-sans); font-size: .88rem; font-weight: 600; }

/* Satır listeleri */
.row-list { list-style: none; margin: 0; padding: 0; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
@media (min-width: 720px) {
	.row-list--cols { columns: 2; column-gap: 0; }
}

.empty-state { padding: clamp(2rem, 1.5rem + 3vw, 4rem) 1.5rem; margin-bottom: 2rem; text-align: center; border-radius: var(--radius-lg); border: 1px dashed var(--line-strong); background: var(--surface); }
.empty-state__mark { color: var(--accent); display: inline-grid; margin-bottom: 1rem; }
.empty-state__title { font-size: var(--step-2); }
.empty-state p { color: var(--muted); max-width: 46ch; margin-inline: auto; }
.empty-state .chip-row { justify-content: center; margin-top: 1.25rem; }

.pagination { margin-top: 2.5rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .75rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.pagination .page-numbers.current { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.pagination a.page-numbers:hover { border-color: var(--primary); color: var(--primary); }
.pagination .dots { border: 0; background: none; }

.social { display: flex; gap: .4rem; list-style: none; margin: 1rem 0 0; padding: 0; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }
.social a:hover { color: var(--primary); border-color: var(--primary); }

/* ---------- 9. Tekil içerik ---------- */
.entry-header { padding: clamp(1.25rem, 1rem + 2vw, 2.5rem) 0 1.25rem; }
.entry-title { font-size: var(--step-4); max-width: 24ch; margin-bottom: 1rem; }
.entry-header__bar { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; justify-content: space-between; padding-top: 1rem; border-top: 1px solid var(--line); }
.entry-header__tools { display: flex; gap: .5rem; align-items: center; }
.post-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: .88rem; }
.post-meta li { display: inline-flex; align-items: center; gap: .35rem; }
.entry-thumb { margin: 0 0 2rem; }
.entry-thumb img { border-radius: var(--radius-lg); width: 100%; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: .3rem 0 .3rem .9rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); font-size: .88rem; line-height: 1.4; text-decoration: none; }
.toc li a:hover { color: var(--primary); border-left-color: var(--primary); }
@media (max-width: 1099px) { .toc { padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); } }
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

.prose { --prose-scale: 1; font-size: calc(var(--step-0) * var(--prose-scale, 1)); color: var(--ink-2); overflow-wrap: anywhere; }
.prose--reading { font-family: var(--font-serif); font-size: calc(1.15rem * var(--prose-scale, 1)); line-height: 1.85; color: var(--ink); }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin-bottom: 0; }
.prose h2 { font-size: var(--step-2); margin-top: 2.2em; }
.prose h3 { font-size: var(--step-1); margin-top: 1.8em; }
.prose h4 { font-size: 1.05rem; margin-top: 1.5em; font-family: var(--font-sans); }
.prose img { border-radius: var(--radius-sm); }
.prose figure { margin-inline: 0; }
.prose blockquote { margin-inline: 0; padding: 1rem 1.25rem; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-family: var(--font-serif); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92em; display: block; overflow-x: auto; }
.prose th, .prose td { padding: .5rem .75rem; border: 1px solid var(--line); text-align: left; }
.prose [lang="ar"], .prose [dir="rtl"], .prose .arabic { font-family: var(--font-arabic); font-size: 1.45em; line-height: 2.1; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose .aligncenter { margin-inline: auto; }
.prose .alignleft { float: left; margin: .3em 1.5em 1em 0; }
.prose .alignright { float: right; margin: .3em 0 1em 1.5em; }
.prose .wp-caption-text, .prose figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: .5rem; }

.pager { display: grid; gap: .75rem; margin-top: 3rem; }
@media (min-width: 640px) { .pager { grid-template-columns: 1fr 1fr; } }
.pager__link { display: flex; flex-direction: column; gap: .25rem; padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
.pager__link:hover { border-color: var(--primary); color: var(--primary); }
.pager__link--next { text-align: right; grid-column: 2; }
@media (max-width: 639px) { .pager__link--next { grid-column: auto; } }
.pager__link .eyebrow { margin: 0; }

.tag-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 2rem; }
.tag-row a { padding: .3rem .75rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-size: .82rem; text-decoration: none; }
.tag-row a:hover { color: var(--primary); border-color: var(--primary); }

/* Yorumlar */
.comments { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.comment-form input:not([type="checkbox"]):not([type="submit"]), .comment-form textarea { width: 100%; padding: .65rem .85rem; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); }
.comment-form .submit { min-height: 44px; padding: .6rem 1.2rem; border-radius: 999px; border: 0; background: var(--primary); color: var(--primary-ink); font-weight: 600; }

/* ---------- 10. Alt bilgi ---------- */
.site-footer { margin-top: var(--section); padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0 2rem; background: var(--bg-tint); border-top: 1px solid var(--line); font-size: .95rem; }
.section--tint + .site-footer, .site-main > :last-child.section--tint { margin-top: 0; }
.site-footer__grid { display: grid; gap: 2rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.site-footer__about { grid-column: 1 / -1; }
@media (min-width: 860px) { .site-footer__about { grid-column: auto; } }
.site-footer__about p { color: var(--muted); margin-top: 1rem; max-width: 40ch; }
.site-footer__title { font-family: var(--font-sans); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer__col a { color: var(--ink-2); text-decoration: none; }
.site-footer__col a:hover { color: var(--primary); }
.site-footer__widgets { margin-top: 2rem; }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__ayah { font-size: 1.5rem; color: var(--accent); line-height: 1.6; }

/* WordPress çekirdek sınıfları */
.alignwide { max-width: 1100px; }
.alignfull { max-width: none; }
.sticky, .bypostauthor, .gallery-caption { }
.wp-block-image img { border-radius: var(--radius-sm); }
.widget { margin-bottom: 1.5rem; }
.widget-title { font-family: var(--font-sans); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* Yazdırma */
@media print {
	.site-header, .site-footer, .tabbar, .player, .reader__bar, .reader__turn, .entry-header__tools, .related, .toc, .read-progress { display: none !important; }
	body { background: #fff; color: #000; padding: 0; }
}

/* ==========================================================================
   11. Kütüphane bileşenleri
   ========================================================================== */

/* ---------- 11.1 Karşılama: mevcut banner + arama ---------- */
.lib-hero { position: relative; overflow: hidden; padding: clamp(1rem, .6rem + 1.5vw, 2rem) 0 clamp(2.5rem, 1.5rem + 3vw, 4.5rem); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-tint) 0, var(--bg) 70%); }
.lib-hero__pattern {
	position: absolute; inset: 0; pointer-events: none; opacity: .55;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cg fill='none' stroke='%23a87f32' stroke-opacity='.16' stroke-width='1'%3E%3Crect x='24' y='24' width='40' height='40'/%3E%3Crect x='24' y='24' width='40' height='40' transform='rotate(45 44 44)'/%3E%3Ccircle cx='44' cy='44' r='9'/%3E%3C/g%3E%3C/svg%3E");
	mask-image: radial-gradient(ellipse 90% 60% at 50% 100%, #000 15%, transparent 70%);
	-webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 100%, #000 15%, transparent 70%);
}
.lib-hero__stage { position: relative; }
/* Banner olduğu gibi gösterilir: kırpılmaz, esnetilmez, üzerine metin binmez. */
/* Mevcut banner saydam PNG ve koyu yazılı: karanlık modda da okunsun diye zemini her zaman açık renk.
   Kendi genişliğinden (--banner-w) büyük gösterilmez, ortalanır. */
.lib-banner { position: relative; margin: 0 auto; max-width: calc(var(--banner-w, 9999px) + 12px); padding: 6px; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); outline: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 5px; }
.lib-banner__img, .lib-banner img { display: block; border-radius: calc(var(--radius) - 6px); width: 100%; height: auto; max-width: none; object-fit: contain; }
.lib-banner__link { display: block; }
.lib-banner__link:focus-visible { outline-offset: -4px; }
@media (max-width: 599px) {
	.lib-hero__stage { padding-inline: 0; }
	.lib-banner { padding: 0; border-radius: 0; outline: 0; box-shadow: none; border-block: 1px solid var(--line); }
	.lib-banner img { border-radius: 0; }
}
.lib-banner--missing { display: grid; background: var(--surface-2); gap: .35rem; place-items: center; min-height: 160px; padding: 1.5rem; text-align: center; color: var(--muted); border: 2px dashed var(--line-strong); box-shadow: none; outline: 0; }
.lib-hero--no-banner .lib-hero__panel { margin-top: 0; }

.lib-hero__panel {
	position: relative; display: grid; gap: clamp(1.25rem, 1rem + 1vw, 2rem); margin-top: clamp(1.25rem, .5rem + 2vw, 2rem);
	padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
@media (min-width: 960px) {
	/* Panel bannerın altında durur; bannerın hiçbir kısmını örtmez. */
	.lib-hero__panel { grid-template-columns: 1.15fr 1fr; align-items: center; column-gap: 3rem; }
}
.lib-hero__title { font-size: var(--step-3); margin: 0 0 .6rem; max-width: 24ch; }
.lib-hero__lead { color: var(--ink-2); margin: 0; max-width: 56ch; }
.lib-hero__search .search-form { max-width: none; min-height: 56px; box-shadow: var(--shadow-sm); }
.lib-hero__search .search-form input { font-size: 1.05rem; }
.lib-hero__quick { margin-top: .9rem; }
@media (max-width: 599px) { .lib-hero__quick { flex-wrap: nowrap; overflow-x: auto; margin-inline: -1.25rem; padding-inline: 1.25rem; scrollbar-width: none; } .lib-hero__quick::-webkit-scrollbar { display: none; } }
.section-lead { color: var(--muted); margin: .4rem 0 0; max-width: 60ch; }
.lib-hero__search .search-form--lg { min-height: 58px; }
.lib-hero__search nav { margin-top: .9rem; }
.lib-hero__quick { margin-top: 0; }

/* Sayılar */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin: 1.25rem 0 0; }
@media (min-width: 560px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stats div { display: flex; flex-direction: column-reverse; gap: .1rem; padding: .7rem .85rem; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); }
.stats dt { font-size: .74rem; font-weight: 600; color: var(--muted); line-height: 1.3; }
.stats dd { margin: 0; font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }

/* ---------- 11.2 Ana alanlar ve "kaldığınız yer" ---------- */
.section--areas { padding-block: clamp(1.75rem, 1rem + 2.5vw, 3rem); }
.area-grid--tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.area-tile--kitap .area-tile__icon { background: var(--primary); color: var(--primary-ink); }
.area-tile--ruya .area-tile__icon { background: var(--accent-soft); color: var(--accent); }
.area-tile--odev .area-tile__icon { background: var(--primary-soft); color: var(--primary); }
@media (max-width: 599px) {
	.area-grid--tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
	.area-grid--tiles .area-tile__link { flex-direction: column; gap: .55rem; padding: .85rem .75rem; }
	.area-grid--tiles .area-tile__icon { width: 40px; height: 40px; border-radius: 12px; }
	.area-grid--tiles .area-tile__title { font-size: .95rem; }
	.area-grid--tiles .area-tile__desc { display: none; }
	.area-grid--tiles .area-tile__count { margin-top: .1rem; font-size: .68rem; }
}
.area-grid--compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.area-grid--compact .area-tile__text { min-width: 0; }
.area-grid--compact .area-tile__title { overflow-wrap: anywhere; hyphens: auto; }

.continue { margin-top: .75rem; }
.continue__link { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; border-radius: var(--radius); background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent); color: var(--ink); text-decoration: none; }
.continue__link:hover { color: var(--ink); border-color: var(--primary); }
.continue__link > .icon:last-child { margin-left: auto; color: var(--primary); }
.continue__icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--primary); color: var(--primary-ink); }
.continue__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.continue__text small { color: var(--muted); font-size: .78rem; }
.continue__text strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.continue__book { font-size: .82rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 11.3 Kitaplık: araçlar ve kitap kartları ---------- */
.shelf__tools { display: grid; gap: .75rem; margin-bottom: 1.25rem; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.shelf__search { background: var(--surface); }
.shelf__topics { grid-column: 1 / -1; margin-bottom: 0; }
.chip .icon { opacity: .75; }
.chip.is-active .icon { opacity: 1; }
.select--inline select { min-height: 46px; border-radius: 999px; padding-left: 1rem; font-size: .9rem; }
@media (max-width: 479px) { .select--inline select { width: 3rem; padding: 0; color: transparent; background-position: center; } .select--inline select option { color: var(--ink); } }
.shelf__empty { padding: 2rem 1rem; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }

.book-grid { display: grid; gap: clamp(1rem, .6rem + 1.5vw, 1.75rem) clamp(.75rem, .5rem + 1vw, 1.5rem); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .book-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .book-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.book-card { position: relative; display: flex; flex-direction: column; gap: .75rem; min-width: 0; }
.book-card__cover { display: block; border-radius: 6px 12px 12px 6px; transition: transform .15s var(--ease); }
.book-card:hover .book-card__cover { transform: translateY(-2px); }
.book-card__body { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.book-card__kicker { margin: 0; font-size: .7rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); }
.book-card__title { margin: 0; font-family: var(--font-serif); font-size: clamp(.98rem, .92rem + .25vw, 1.1rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.005em; }
.book-card__title a { color: var(--ink); text-decoration: none; }
.book-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.book-card__title a:hover { color: var(--primary); }
.book-card__title a:focus-visible { outline: 0; }
.book-card:has(.book-card__title a:focus-visible) .cover { outline: 3px solid var(--focus); outline-offset: 3px; }
.book-card__author { margin: 0; font-size: .86rem; color: var(--ink-2); line-height: 1.35; }
.book-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; margin: .15rem 0 0; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.book-card__progress { display: inline-flex; align-items: center; padding: .05rem .5rem; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 600; }

/* Kapak: gerçek görsel ya da kitap adıyla çizilen sade kapak. Hep 2:3 oranında. */
.cover { --c1: #0e5a45; --c2: #0a4334; --c3: #d9b56b; position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 4px 10px 10px 4px; background: var(--surface-2); box-shadow: 0 1px 2px rgb(20 32 27 / 10%), 0 12px 24px -14px rgb(20 32 27 / 45%); isolation: isolate; }
.cover::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 9px; z-index: 2; background: linear-gradient(90deg, rgb(0 0 0 / 22%), rgb(255 255 255 / 12%) 55%, transparent); pointer-events: none; }
.cover__img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.cover__art {
	position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6em; padding: 12% 12% 14% 15%;
	text-align: center; color: #fff; font-size: clamp(.72rem, .6rem + .5vw, .95rem);
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 88 88'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.07' stroke-width='1.5'%3E%3Crect x='24' y='24' width='40' height='40'/%3E%3Crect x='24' y='24' width='40' height='40' transform='rotate(45 44 44)'/%3E%3C/g%3E%3C/svg%3E"),
		linear-gradient(160deg, var(--c1), var(--c2));
}
.cover__art::before { content: ""; position: absolute; inset: 7% 8% 7% 11%; border: 1px solid color-mix(in srgb, var(--c3) 55%, transparent); border-radius: 3px; pointer-events: none; }
.cover__mark { color: var(--c3); line-height: 0; }
.cover__mark svg { width: 2.4em; height: 2.4em; }
.cover__title { font-family: var(--font-serif); font-weight: 600; font-size: 1.12em; line-height: 1.2; letter-spacing: -0.005em; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; text-wrap: balance; }
.cover__author { font-size: .72em; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--c3) 85%, #fff); line-height: 1.3; }
/* Konu tonları: zümrüt ailesi + çok hafif altın; hepsi aynı aileden. */
.cover--kerbela { --c1: #5b2a2a; --c2: #3a1a1c; }
.cover--hadis { --c1: #12584f; --c2: #0b3b36; }
.cover--dua { --c1: #1e4d5c; --c2: #133440; }
.cover--ehlibeyt { --c1: #0e5a45; --c2: #083829; }
.cover--ibadet { --c1: #2f5a3a; --c2: #1d3d26; }
.cover--aile { --c1: #6b5428; --c2: #4a3818; --c3: #f0d9a4; }
.cover--siyer { --c1: #3d4a2a; --c2: #283119; }
.cover--dusunce { --c1: #263c4f; --c2: #172735; }
.cover--risale { --c1: #4a3a24; --c2: #2f2414; }
.cover--hero { border-radius: 6px 14px 14px 6px; box-shadow: 0 2px 4px rgb(20 32 27 / 12%), 0 30px 50px -24px rgb(20 32 27 / 55%); }
.cover--hero .cover__art { font-size: clamp(.95rem, .8rem + .6vw, 1.25rem); }
.cover--mini { width: 52px; flex: none; border-radius: 3px 6px 6px 3px; box-shadow: var(--shadow-sm); }
.cover--mini::after { width: 4px; }
.cover--mini .cover__art { padding: 0; }
.cover--mini .cover__art::before, .cover--mini .cover__title, .cover--mini .cover__author { display: none; }
.cover--mini .cover__mark svg { width: 22px; height: 22px; }
:root[data-theme="dark"] .cover { box-shadow: 0 0 0 1px rgb(255 255 255 / 6%), 0 14px 28px -16px rgb(0 0 0 / 80%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cover { box-shadow: 0 0 0 1px rgb(255 255 255 / 6%), 0 14px 28px -16px rgb(0 0 0 / 80%); } }

/* ---------- 11.4 Kitap sayfası ---------- */
.book-hero { position: relative; overflow: hidden; padding: clamp(1rem, .6rem + 1.5vw, 2rem) 0 clamp(2rem, 1.5rem + 3vw, 4rem); background: linear-gradient(180deg, var(--bg-tint), var(--bg)); border-bottom: 1px solid var(--line); }
.book-hero__pattern { position: absolute; inset: 0; pointer-events: none; opacity: .5;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cg fill='none' stroke='%23a87f32' stroke-opacity='.16' stroke-width='1'%3E%3Crect x='24' y='24' width='40' height='40'/%3E%3Crect x='24' y='24' width='40' height='40' transform='rotate(45 44 44)'/%3E%3Ccircle cx='44' cy='44' r='9'/%3E%3C/g%3E%3C/svg%3E");
	mask-image: radial-gradient(ellipse 60% 80% at 15% 50%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 60% 80% at 15% 50%, #000 10%, transparent 70%); }
.book-hero .container { position: relative; }
.book-hero__grid { display: grid; gap: 1.5rem; align-items: center; }
.book-hero__cover { width: min(52vw, 220px); margin-inline: auto; }
@media (min-width: 720px) {
	.book-hero__grid { grid-template-columns: 240px minmax(0, 1fr); gap: clamp(2rem, 1rem + 3vw, 4rem); }
	.book-hero__cover { width: 100%; }
}
@media (min-width: 1024px) { .book-hero__grid { grid-template-columns: 280px minmax(0, 1fr); } }
.book-hero__text { min-width: 0; }
@media (max-width: 719px) { .book-hero__text { text-align: center; } .book-hero__actions, .book-facts { justify-content: center; } }
.book-hero__title { font-size: var(--step-4); margin: 0 0 .5rem; max-width: 22ch; text-wrap: balance; }
@media (max-width: 719px) { .book-hero__title { font-size: var(--step-3); margin-inline: auto; } }
.book-hero__author { margin: 0 0 1rem; font-family: var(--font-serif); font-size: var(--step-1); font-style: italic; color: var(--ink-2); }
.book-hero__author a { color: inherit; text-decoration-color: var(--line-strong); }
.book-hero__author a:hover { color: var(--primary); }
.book-hero__desc { color: var(--ink-2); max-width: 58ch; margin: 0 0 1.25rem; }
@media (max-width: 719px) { .book-hero__desc { margin-inline: auto; } }
.book-facts { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; }
.book-facts div { display: flex; flex-direction: column; padding: .5rem .85rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); min-width: 5.5rem; text-align: left; }
.book-facts dt { font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.book-facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.book-facts__wide { flex: 1 1 14rem; max-width: 30rem; }
.book-facts__wide dd { font-weight: 500; font-size: .92rem; }
.book-hero__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
@media (max-width: 479px) { .book-hero__actions .btn--lg { flex: 1 1 100%; } }
.book-hero__resume { margin: .9rem 0 0; font-size: .88rem; color: var(--muted); }
.book-hero__resume a { font-weight: 600; }

.section--compact { padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section--compact .subsection-title { margin-top: 0; }
.prose--book-intro { font-family: var(--font-serif); font-size: 1.08rem; line-height: 1.8; color: var(--ink); }
.prose--book-intro img { max-width: min(100%, 320px); border-radius: 6px; box-shadow: var(--shadow); }
/* Koleksiyon sayfası (Risale-i Nur 1958): ciltlerin kapakları ızgarada. */
.prose--gallery { font-family: var(--font-sans); }
.prose--gallery > p:has(img), .prose--gallery .gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(46%, 150px), 1fr)); }
.prose--gallery img { width: 100%; max-width: none; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px 8px 8px 4px; box-shadow: var(--shadow); }
.prose--gallery a { display: block; }
.prose--gallery br { display: none; }

/* İçindekiler */
.toc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin-bottom: 1.25rem; }
.toc-head__filter { flex: 1 1 240px; max-width: 340px; background: var(--surface); }
.book-toc { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.book-toc a { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); align-items: baseline; gap: .5rem; padding: .6rem .75rem; color: var(--ink); text-decoration: none; line-height: 1.4; border-radius: var(--radius-sm); }
.book-toc a:hover { background: var(--surface-2); color: var(--primary); }
.book-toc__n { font-size: .8rem; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; text-align: right; }
.book-toc__t { min-width: 0; overflow-wrap: anywhere; }
.book-toc a[aria-current] { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.book-toc a[aria-current] .book-toc__n { color: var(--primary); }
.book-toc li.is-read > a .book-toc__n::before { content: "✓ "; color: var(--primary); font-weight: 700; }
.book-toc li.is-read > a { color: var(--ink-2); }
.book-toc--full { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .4rem; }
.book-toc--full li + li { border-top: 1px solid var(--line); }
.book-toc--full a { padding: .8rem .75rem; min-height: 52px; align-items: center; }
.book-toc--side a { padding: .45rem .5rem; font-size: .88rem; grid-template-columns: 1.9rem minmax(0, 1fr); }
.book-toc--dialog a { min-height: 48px; align-items: center; }

/* ---------- 11.5 Bölüm okuyucu ---------- */
.reader-layout { display: grid; gap: 2rem; padding-bottom: var(--section); }
.reader-layout__main { min-width: 0; max-width: var(--narrow); }
.reader-layout__side { display: none; }
@media (min-width: 1100px) {
	.reader-layout { grid-template-columns: 290px minmax(0, 1fr); gap: clamp(2.5rem, 1rem + 3vw, 4.5rem); }
	.reader-layout__side { display: block; padding-top: 1.5rem; }
	.reader-side { position: sticky; top: calc(var(--header-h) + 1rem); max-height: calc(100vh - var(--header-h) - 2rem); display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
	.reader-side .book-toc { overflow-y: auto; padding: .4rem; overscroll-behavior: contain; scrollbar-width: thin; }
	.toc-open { display: none; }
}
.reader-side__book { display: flex; gap: .8rem; align-items: center; padding: .85rem; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; background: var(--surface-2); }
.reader-side__book:hover { color: var(--primary); }
.reader-side__book > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.reader-side__book small { font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.reader-side__book strong { font-family: var(--font-serif); font-weight: 600; font-size: .98rem; }
.reader-side__book em { font-style: normal; font-size: .8rem; color: var(--muted); }

.entry-header--chapter { padding-top: clamp(1rem, .8rem + 1.5vw, 2rem); }
.entry-header--chapter .entry-title { font-size: var(--step-3); max-width: 28ch; text-wrap: balance; }
.chapter-kicker { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; text-transform: none; letter-spacing: 0; font-size: .88rem; }
.chapter-kicker a { font-weight: 600; }
.chapter-kicker__no { padding: .05rem .55rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .75rem; font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.prose--reading p { text-align: start; hyphens: auto; }
.prose .text-ar, .prose p[dir="rtl"] { font-family: var(--font-arabic); font-size: 1.5em; line-height: 2.1; text-align: right; direction: rtl; color: var(--ink); font-feature-settings: normal; letter-spacing: 0; }
/* Eski içerikteki satır içi renkler karanlık modda okunur kalır. */
:root[data-theme="dark"] .prose [style*="color"] { color: inherit !important; }
:root[data-theme="dark"] .prose [style*="background"] { background: transparent !important; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .prose [style*="color"] { color: inherit !important; }
	:root:not([data-theme="light"]) .prose [style*="background"] { background: transparent !important; }
}
.pager__link small { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pager__link--next small { justify-content: flex-end; }
.pager__link span { font-family: var(--font-serif); font-size: 1.05rem; line-height: 1.35; }
.pager__link--done { background: var(--primary-soft); border-color: transparent; }
.pager--pages { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: 2rem; }

.toc-dialog { width: min(560px, calc(100% - 1.5rem)); max-height: min(86vh, 760px); margin: auto auto 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
.toc-dialog[open] { display: flex; flex-direction: column; }
@media (min-width: 640px) { .toc-dialog { margin: auto; border-radius: var(--radius-lg); } }
.toc-dialog::backdrop { background: rgb(8 14 12 / 55%); }
.toc-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1rem 1rem .75rem 1.25rem; border-bottom: 1px solid var(--line); }
.toc-dialog__head .eyebrow { margin-bottom: .2rem; }
.toc-dialog__title { margin: 0; font-size: 1.15rem; }
.toc-dialog .book-toc { overflow-y: auto; padding: .5rem; flex: 1; overscroll-behavior: contain; }
.toc-dialog__foot { margin: 0; padding: .75rem 1.25rem calc(.75rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }

/* ---------- 11.6 Satır listeleri, rüya sözlüğü, ödevler ---------- */
.row-list .entry-row + .entry-row { border-top: 1px solid var(--line); }
.entry-row { position: relative; display: flex; gap: .85rem; align-items: flex-start; padding: .9rem 1rem; transition: background-color .15s var(--ease); }
.entry-row:hover { background: var(--surface-2); }
.entry-row__icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
.entry-row.category-islami-ruya-tabirleri .entry-row__icon, .idl-section-ruya .entry-row__icon { background: var(--accent-soft); color: var(--accent); }
.entry-row__body { min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.entry-row__kicker { margin: 0; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry-row__title { margin: 0; font-family: var(--font-sans); font-size: 1rem; font-weight: 600; line-height: 1.4; letter-spacing: 0; }
.entry-row__title a { color: var(--ink); text-decoration: none; }
.entry-row__title a::after { content: ""; position: absolute; inset: 0; }
.entry-row__title a:hover { color: var(--primary); }
.entry-row__excerpt { margin: .15rem 0 0; color: var(--muted); font-size: .88rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 720px) {
	.row-list--cols .entry-row { break-inside: avoid; border-top: 0 !important; border-bottom: 1px solid var(--line); }
}
.row-list--dense .entry-row { padding: .6rem .9rem; align-items: center; }
.row-list--dense .entry-row__icon { width: 30px; height: 30px; border-radius: 8px; }
.row-list--dense .entry-row__icon svg { width: 16px; height: 16px; }
.row-list--dense .entry-row__excerpt { display: none; }

/* Harf ızgarası (ana sayfa) ve harf çubuğu (rüya sayfaları) */
.letter-grid { display: grid; gap: .5rem; list-style: none; margin: 0; padding: 0; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.letter-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; min-height: 84px; padding: .6rem .35rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .15s var(--ease), background-color .15s var(--ease); }
.letter-tile:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.letter-tile__l { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 600; line-height: 1.1; white-space: nowrap; }
.letter-tile__n { font-size: .7rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 479px) { .letter-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; } .letter-tile { min-height: 70px; } .letter-tile__l { font-size: 1.35rem; } }

.letter-bar { margin: 0 calc(var(--gutter) * -1) 1.75rem; padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; }
.letter-bar::-webkit-scrollbar { display: none; }
.letter-bar ul { display: flex; gap: .35rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 960px) { .letter-bar ul { flex-wrap: wrap; } }
.letter-bar a { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .55rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-family: var(--font-serif); font-weight: 600; font-size: 1.05rem; text-decoration: none; white-space: nowrap; }
.letter-bar a:hover { border-color: var(--accent); color: var(--accent); }
.letter-bar a[aria-current] { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }

/* Sözlük */
.dict { margin-bottom: 2.5rem; }
.dict__tools { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-bottom: 1rem; }
.dict__tools .subsection-title { margin: 0; }
.dict__search { flex: 1 1 280px; max-width: 520px; background: var(--surface); }
.dict__count { margin: 0; font-size: .88rem; font-variant-numeric: tabular-nums; }
.dict__list { list-style: none; margin: 0; padding: .5rem; columns: 2 10rem; column-gap: .5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
@media (min-width: 720px) { .dict__list { columns: 3 12rem; } }
@media (min-width: 1100px) { .dict__list { columns: 4 12rem; } }
.dict__list li { display: flex; align-items: center; gap: .35rem; break-inside: avoid; }
.dict__list li > a { flex: 1; min-width: 0; padding: .45rem .55rem; border-radius: 8px; color: var(--ink); text-decoration: none; line-height: 1.35; }
.dict__list li > a:hover { background: var(--accent-soft); color: var(--ink); }
.dict__more { display: inline-flex; gap: .2rem; flex: none; }
.dict__more a { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 .3rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-size: .72rem; font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.dict__more a:hover { color: var(--primary); border-color: var(--primary); }
.dict__empty { padding: 1.5rem; text-align: center; color: var(--muted); }
.archive-pages { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: 2rem; }
.archive-pages p { margin: 0; font-size: .9rem; }
.archive-pages .pagination { margin: 0; }
.archive-pages .pagination .nav-links { justify-content: flex-start; }

/* Ödev konuları */
.subject-grid { display: grid; gap: .6rem; list-style: none; margin: 0; padding: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .subject-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.subject-grid > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 720px) { .subject-grid > li:last-child:nth-child(odd) { grid-column: auto; } }
.subject-tile { display: flex; flex-direction: column; gap: .35rem; height: 100%; padding: 1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.subject-tile:hover { border-color: var(--primary); box-shadow: var(--shadow); color: var(--ink); }
.subject-tile[aria-current] { border-color: var(--primary); background: var(--primary-soft); }
.subject-tile__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); margin-bottom: .25rem; }
.subject-tile[aria-current] .subject-tile__icon { background: var(--primary); color: var(--primary-ink); }
.subject-tile__title { font-family: var(--font-serif); font-weight: 600; font-size: 1.08rem; line-height: 1.25; }
.subject-tile__count { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- 11.7 Arşiv ve arama sayfaları ---------- */
.page-hero--archive .page-hero__lead { font-size: var(--step-0); color: var(--ink-2); }
.page-hero--archive .page-hero__lead p + p { margin-top: .75em; }
.archive-layout { padding-bottom: var(--section); }
.archive-tools { display: grid; gap: 1rem; margin-bottom: 2rem; }
.archive-tools .chip-scroll { margin-bottom: 0; }
.archive-tools .search-form { max-width: 640px; }
.archive-block { margin-bottom: 2.5rem; }
.archive-block > .subsection-title:first-child { margin-top: 0; }
.archive-widgets { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.archive-widgets .widget { padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); margin: 0; }
.archive-widgets table { width: 100%; font-size: .85rem; text-align: center; }
.chip-row li { display: flex; }
.search-filter { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; margin-bottom: 1.5rem; }
.search-filter .search-form { flex: 1 1 300px; max-width: none; padding-right: 1rem; }
.search-filter .select { flex: 1 1 220px; max-width: 320px; }

/* Arama penceresi sonuçları */
.quick-results__head { margin: 1rem .75rem .25rem; }
.quick-results__list a { grid-template-columns: 2rem minmax(0, 1fr) auto; }
.quick-results__icon { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
.quick-results__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-results__name small, .quick-results small { display: block; color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; }
.quick-results__meta { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.quick-results__status { margin: .75rem; font-size: .9rem; }
.quick-results__all { display: inline-flex; margin: .5rem .75rem 0; }

/* Çekmece */
.drawer__label { margin: 1.25rem 0 .5rem; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.drawer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.drawer__list a { display: grid; grid-template-columns: auto 1fr; column-gap: .75rem; align-items: center; padding: .55rem .6rem; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; }
.drawer__list a:hover { background: var(--surface-2); color: var(--primary); }
.drawer__list .icon { grid-row: span 2; color: var(--primary); }
.drawer__list span { font-weight: 600; line-height: 1.3; }
.drawer__list small { color: var(--muted); font-size: .8rem; line-height: 1.3; }
.drawer__list small:empty { display: none; }
.drawer__more { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }

/* Tekil yazı (rüya, ödev, diğer) */
.entry-header__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.entry-footer { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: grid; gap: 1.25rem; }
.entry-footer__row .eyebrow { margin-bottom: .6rem; }
.entry-footer__row .letter-bar { margin-bottom: 0; }
.entry-footer__tags summary { cursor: pointer; color: var(--muted); font-size: .9rem; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.entry-footer__tags .tag-row { margin-top: .5rem; list-style: none; padding: 0; }
.entry--chapter .entry-footer__tags { margin-top: 2rem; }
.entry-footer .pager { margin-top: .5rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 599px) { .entry-footer .pager { grid-template-columns: 1fr; } .entry-footer .pager__link--next { grid-column: auto; } }

/* Ayet bloğu */
.section--ayah { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); background: linear-gradient(180deg, var(--bg), var(--bg-tint)); border-top: 1px solid var(--line); }
.section--ayah + .site-footer { margin-top: 0; }
.ayah-block { margin: 0 auto; text-align: center; }
.ayah-block p { margin: 0 0 .75rem; font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); color: var(--ink); line-height: 1.9; }
.ayah-block figcaption { font-family: var(--font-serif); font-style: italic; color: var(--muted); font-size: var(--step-1); }
.ayah-block::before { content: ""; display: block; width: 44px; height: 44px; margin: 0 auto 1rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23a87f32' stroke-opacity='.7' stroke-width='3'%3E%3Crect x='22' y='22' width='56' height='56' rx='3'/%3E%3Crect x='22' y='22' width='56' height='56' rx='3' transform='rotate(45 50 50)'/%3E%3Ccircle cx='50' cy='50' r='10'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat; }

/* Yazdırma: okuyucuda yalnızca metin */
@media print {
	.reader-layout__side, .toc-dialog, .pager, .entry-footer__tags, .lib-strip, .book-hero__actions { display: none !important; }
	.reader-layout { display: block; }
}

/* ---------- 11.x İç sayfalarda banner şeridi ---------- */
.lib-strip { padding: .75rem 0; background: var(--bg-tint); }
.lib-banner--strip { max-width: calc(var(--banner-w, 9999px) + 8px); padding: 4px; border-radius: 12px; box-shadow: var(--shadow-sm); outline: 0; border: 1px solid var(--line); }
@media (max-width: 599px) {
	.lib-strip { padding: 0; }
	.lib-strip .container { padding-inline: 0; }
	.lib-banner--strip { padding: 0; border-radius: 0; border-inline: 0; border-top: 0; box-shadow: none; }
}

/* Kapak görseli yüklenirken altındaki yazılı kapak görünmez; görsel kırılırsa görünür. */
.cover__img { position: relative; z-index: 1; }
.cover:has(.cover__img) .cover__art { visibility: hidden; }
.cover--fallback .cover__art { visibility: visible; }
.lib-hero__panel { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .lib-hero__panel { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.lib-hero__panel > * { min-width: 0; }

/* ---------- 11.y Temanın kendi karşılama görseli (banner yerine) ---------- */
.lib-art { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: #0a4334; box-shadow: var(--shadow-lg); outline: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 5px; aspect-ratio: 1200 / 300; min-height: 180px; }
.lib-art__svg { display: block; width: 100%; height: 100%; max-width: none; }
.lib-art__ar { font-family: var(--font-arabic); font-size: 58px; }
.lib-art__label { font-family: var(--font-sans); font-size: 11px; font-weight: 600; letter-spacing: .22em; opacity: .8; }
@media (max-width: 599px) {
	.lib-hero--art .lib-hero__stage { padding-inline: var(--gutter); }
	.lib-art { border-radius: var(--radius); outline-offset: 3px; aspect-ratio: auto; height: 190px; }
	.lib-art__shelves { display: none; }
}
:root[data-theme="dark"] .lib-art { outline-color: color-mix(in srgb, var(--accent) 25%, transparent); }

/* Sade karşılama: başlık ve açıklama yalnızca ekran okuyucular ve arama motorları için. */
.lib-hero__panel { grid-template-columns: minmax(0, 1fr); max-width: 860px; margin-inline: auto; }
.lib-hero__search { text-align: left; }
@media (min-width: 600px) { .lib-hero__search nav .chip-row { justify-content: center; } }
@media (min-width: 960px) { .lib-hero__panel { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 11.z Kütüphane rengi: maun (deri cilt) ve altın ---------- */
:root {
	--primary: #7a2e2a; --primary-ink: #ffffff; --primary-soft: #f6e8e4; --primary-strong: #5a1f1c;
	--focus: #b8862a;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) { --bg: #141010; --bg-tint: #1a1513; --surface: #1d1816; --surface-2: #241d1b; --ink: #f1ebe7; --ink-2: #d6cbc6; --muted: #a8988f; --line: #332926; --line-strong: #463834; --primary: #e8a597; --primary-ink: #2a0f0c; --primary-soft: #35211e; --primary-strong: #f3c6bb; }
}
:root[data-theme="dark"] { --bg: #141010; --bg-tint: #1a1513; --surface: #1d1816; --surface-2: #241d1b; --ink: #f1ebe7; --ink-2: #d6cbc6; --muted: #a8988f; --line: #332926; --line-strong: #463834; --primary: #e8a597; --primary-ink: #2a0f0c; --primary-soft: #35211e; --primary-strong: #f3c6bb; }
.lib-art { background: #4a1a17; }
