/**
 * Zaitoona Library Hub — Frosted Glass Vitrine Bookcase & 3D Wooden Shelves (v2.0.1)
 *
 * Palette & Materials:
 * - Deep Olive:       #2D3D1E
 * - Heritage Gold:    #c5a059
 * - Warm Walnut Wood: #6B4C35 (dark bevel #4A3322)
 * - Cream Cabinet:    #F7F5EE
 * - Frosted Glass:    rgba(255, 255, 255, 0.62) + blur(8px) + specular sheen
 *
 * @package Zaitoona_Library_Hub
 * @since   1.0.0
 */

.zlh-section {
	--zlh-olive: #2D3D1E;
	--zlh-olive-deep: #1f2b14;
	--zlh-olive-soft: #f2f6ed;
	--zlh-gold: #c5a059;
	--zlh-gold-light: #e5cb90;
	--zlh-gold-soft: #f8f3e6;
	--zlh-walnut: #6B4C35;
	--zlh-walnut-deep: #4A3322;
	--zlh-walnut-light: #866146;
	--zlh-cream: #F7F5EE;
	--zlh-glass-bg: rgba(255, 255, 255, 0.62);
	--zlh-glass-edge: rgba(255, 255, 255, 0.85);
	--zlh-glass-gold: rgba(197, 160, 89, 0.35);
	--zlh-border: #d7decb;
	--zlh-ink: #1e241b;
	--zlh-muted: #4b5745;

	width: 100%;
	padding-block: clamp(1.25rem, 3vw, 2.5rem);
	font-family: 'Cairo', 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
	color: var(--zlh-ink);
	box-sizing: border-box;
}

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

.zlh-container {
	width: 100%;
	max-width: 1360px;
	margin-inline: auto;
}

/* ==========================================================================
   Frosted Glass Top Filter Chips & Search / Control Bars
   ========================================================================== */

.zlh-chips {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding-bottom: 0.35rem;
	margin-bottom: 1.1rem;
}

.zlh-chips::-webkit-scrollbar {
	display: none;
}

.zlh-chip {
	flex: 0 0 auto;
	min-height: 38px;
	padding: 0.4rem 1.15rem;
	border-radius: 999px;
	border: 1px solid var(--zlh-glass-gold);
	background-color: rgba(255, 255, 255, 0.74);
	box-shadow: inset 0 1px 0 var(--zlh-glass-edge);
	color: var(--zlh-olive);
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.zlh-chip:hover {
	border-color: var(--zlh-gold);
	background-color: var(--zlh-gold-soft);
}

.zlh-chip.is-active {
	background-color: var(--zlh-olive);
	border-color: var(--zlh-olive);
	box-shadow: none;
	color: #ffffff;
}

.zlh-bookcase-controls,
.zlh-toolbar {
	position: relative;
	background-color: var(--zlh-glass-bg);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid var(--zlh-glass-gold);
	box-shadow:
		inset 0 0 0 1px var(--zlh-glass-edge),
		0 8px 24px rgba(31, 43, 20, 0.07);
	border-radius: 14px;
}

.zlh-bookcase-controls {
	padding: 1rem 1.15rem 0.65rem;
	margin-bottom: 1.5rem;
	border-top: 3px solid var(--zlh-gold);
}

.zlh-bookcase-top-row,
.zlh-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.85rem;
}

.zlh-bookcase-top-row {
	margin-bottom: 0.9rem;
}

.zlh-toolbar {
	padding: 0.85rem 1rem;
	margin-bottom: 1.5rem;
}

.zlh-search {
	position: relative;
	flex: 1 1 280px;
	max-width: 580px;
}

.zlh-search__icon {
	position: absolute;
	inset-block-start: 50%;
	inset-inline-start: 0.95rem;
	transform: translateY(-50%);
	color: var(--zlh-muted);
	pointer-events: none;
}

.zlh-section .zlh-search__input {
	width: 100%;
	min-height: 42px;
	padding-block: 0.5rem;
	padding-inline-start: 2.9rem;
	padding-inline-end: 1rem;
	border: 1px solid var(--zlh-glass-gold);
	border-radius: 999px;
	background-color: rgba(255, 255, 255, 0.78);
	box-shadow: inset 0 1px 0 var(--zlh-glass-edge);
	font-family: inherit;
	font-size: 0.9rem;
	color: var(--zlh-ink);
	transition: border-color 140ms ease, background-color 140ms ease;
}

.zlh-section .zlh-search__input:focus {
	outline: none;
	border-color: var(--zlh-gold);
	background-color: #ffffff;
}

.zlh-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

.zlh-count {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--zlh-olive);
	background-color: rgba(248, 243, 230, 0.85);
	border: 1px solid var(--zlh-glass-gold);
	box-shadow: inset 0 1px 0 var(--zlh-glass-edge);
	padding: 0.32rem 0.85rem;
	border-radius: 999px;
	white-space: nowrap;
}

.zlh-sort {
	min-height: 38px;
	padding: 0.35rem 0.85rem;
	border: 1px solid var(--zlh-glass-gold);
	border-radius: 0.5rem;
	background-color: rgba(255, 255, 255, 0.85);
	font-family: inherit;
	font-size: 0.86rem;
	font-weight: 700;
	color: var(--zlh-olive);
	cursor: pointer;
}

.zlh-view-toggle {
	display: inline-flex;
	align-items: center;
	padding: 3px;
	border-radius: 0.5rem;
	border: 1px solid var(--zlh-glass-gold);
	background-color: rgba(242, 246, 237, 0.8);
	gap: 3px;
}

.zlh-view-btn {
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 0.375rem;
	background: transparent;
	color: var(--zlh-olive);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.zlh-view-btn.is-active {
	background-color: var(--zlh-olive);
	color: #ffffff;
}

/* ==========================================================================
   Architectural Vitrine Bookcase Cabinet & Frosted Glass Shelves
   ========================================================================== */

.zlh-bookcase-cabinet {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	padding: clamp(1rem, 2.5vw, 1.75rem);
	border-radius: 16px;
	background:
		radial-gradient(circle at 18% 12%, rgba(197, 160, 89, 0.16) 0%, transparent 45%),
		radial-gradient(circle at 82% 85%, rgba(45, 61, 30, 0.08) 0%, transparent 50%),
		var(--zlh-cream);
	border: 3px solid var(--zlh-walnut);
	box-shadow:
		inset 0 0 0 2px rgba(197, 160, 89, 0.42),
		0 16px 40px rgba(38, 26, 16, 0.13);
}

.zlh-shelf-tier {
	position: relative;
	background-color: var(--zlh-glass-bg);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid var(--zlh-glass-gold);
	border-radius: 14px;
	overflow: hidden;
	box-shadow:
		inset 0 0 0 1px var(--zlh-glass-edge),
		0 10px 28px rgba(45, 61, 30, 0.08);
}

.zlh-shelf-tier[hidden] {
	display: none;
}

.zlh-shelf-tier--featured {
	border-color: rgba(197, 160, 89, 0.65);
	box-shadow:
		inset 0 0 0 1px var(--zlh-glass-edge),
		0 12px 32px rgba(45, 61, 30, 0.12);
}

/* Frosted Olive-Glass Shelf Top Header & Metallic Brass Nameplate */
.zlh-shelf-head {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.85rem;
	padding: 0.9rem 1.2rem;
	background: linear-gradient(135deg, rgba(45, 61, 30, 0.92) 0%, rgba(31, 43, 20, 0.88) 100%);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-bottom: 2px solid var(--zlh-gold);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.zlh-shelf-tier--featured .zlh-shelf-head {
	background: linear-gradient(135deg, rgba(37, 52, 24, 0.93) 0%, rgba(61, 42, 27, 0.9) 100%);
}

.zlh-brass-plate {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.38rem 0.95rem;
	border-radius: 8px;
	background: linear-gradient(180deg, #e5c886 0%, var(--zlh-gold) 55%, #a8823b 100%);
	border: 1px solid #f7e7c0;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.68);
	color: #1f2419;
}

.zlh-brass-plate__rivet {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: #5c4318;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.zlh-brass-plate__title {
	margin: 0;
	font-size: 1.02rem;
	font-weight: 800;
	color: #1b2214;
	line-height: 1.3;
}

.zlh-brass-plate__count {
	padding: 0.08rem 0.5rem;
	border-radius: 999px;
	background-color: var(--zlh-olive);
	color: #ffffff;
	font-size: 0.76rem;
	font-weight: 700;
}

/* Sub-Category Filter Pills on Shelf Header */
.zlh-sub-pills {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
}

.zlh-sub-pill {
	min-height: 30px;
	padding: 0.2rem 0.8rem;
	border-radius: 999px;
	border: 1px solid rgba(229, 203, 144, 0.55);
	background-color: rgba(255, 255, 255, 0.12);
	color: #f8f3e6;
	font-family: inherit;
	font-size: 0.8rem;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 140ms ease, color 140ms ease;
}

.zlh-sub-pill:hover,
.zlh-sub-pill.is-active {
	background-color: var(--zlh-gold);
	border-color: var(--zlh-gold);
	color: #1f2b14;
}

/* Bookcase Vitrine Bay with Diagonal Specular Glass Sheen (::before) */
.zlh-shelf-bay {
	position: relative;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.52) 0%, rgba(247, 245, 238, 0.68) 100%);
	padding: 0;
}

.zlh-shelf-bay::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
	background: linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.45) 0%,
		rgba(255, 255, 255, 0.06) 48%,
		rgba(197, 160, 89, 0.10) 100%
	);
	pointer-events: none;
}

.zlh-shelf-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	column-gap: 0;
	row-gap: 0;
}

@media (min-width: 560px) {
	.zlh-shelf-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 980px) {
	.zlh-shelf-grid--cols-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

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

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

/* Frosted Glass Compartment Slot */
.zlh-slot {
	position: relative;
	display: flex;
	flex-direction: column;
	background-color: var(--zlh-glass-bg);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-inline-end: 1px solid var(--zlh-glass-gold);
	border-bottom: 1px solid var(--zlh-glass-gold);
	box-shadow: inset 0 0 0 1px var(--zlh-glass-edge);
	transition: background-color 160ms ease;
}

.zlh-slot::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.45) 0%,
		rgba(255, 255, 255, 0.06) 48%,
		rgba(197, 160, 89, 0.10) 100%
	);
	pointer-events: none;
}

.zlh-slot:hover {
	background-color: rgba(255, 255, 255, 0.78);
}

.zlh-slot[hidden] {
	display: none;
}

/* Stage where the 3D Standing Book rests on the Glass-Wood Shelf Ledge */
.zlh-slot__stage {
	position: relative;
	z-index: 2;
	padding: 1.55rem 1.25rem 0;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

.zlh-book-3d {
	position: relative;
	display: block;
	width: 100%;
	max-width: 168px;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	transform-origin: bottom center;
	transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.zlh-slot:hover .zlh-book-3d,
.zlh-book-3d:focus-visible {
	transform: translateY(-6px) scale(1.025);
}

.zlh-book-3d__cover {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	border-radius: 4px 7px 7px 4px;
	overflow: hidden;
	background: linear-gradient(145deg, var(--zlh-olive) 0%, var(--zlh-olive-deep) 100%);
	border: 1px solid rgba(197, 160, 89, 0.55);
	box-shadow:
		-5px 0 0 #ebe5d5,
		-6px 0 0 rgba(107, 76, 53, 0.38),
		0 12px 20px rgba(28, 19, 11, 0.34);
}

.zlh-book-3d__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.zlh-book-3d__spine {
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	width: 12px;
	background: linear-gradient(
		to left,
		rgba(0, 0, 0, 0.28) 0%,
		rgba(255, 255, 255, 0.28) 45%,
		rgba(0, 0, 0, 0.12) 75%,
		transparent 100%
	);
	pointer-events: none;
}

.zlh-book-3d__fallback {
	width: 100%;
	height: 100%;
	padding: 0.85rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	text-align: center;
	color: var(--zlh-gold-light);
}

.zlh-book-3d__fallback small {
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.4;
	color: #ffffff;
}

/* Glass-Wood Hybrid 3D Shelf Ledge (Luminous Top Highlight + Realistic Cast Shadow) */
.zlh-slot__ledge {
	width: 100%;
	display: flex;
	flex-direction: column;
	position: relative;
	z-index: 4;
}

.zlh-slot__ledge-top {
	display: block;
	height: 9px;
	background: linear-gradient(
		180deg,
		rgba(255, 255, 255, 0.55) 0%,
		var(--zlh-walnut-light) 42%,
		var(--zlh-walnut) 100%
	);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.zlh-slot__ledge-face {
	display: block;
	height: 13px;
	background: linear-gradient(180deg, var(--zlh-walnut) 0%, var(--zlh-walnut-deep) 100%);
	border-top: 2px solid var(--zlh-gold);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.35),
		0 7px 15px rgba(38, 24, 14, 0.28);
}

/* Frosted Compartment Metadata Placard Below Shelf Ledge */
.zlh-slot__placard {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.35rem;
	padding: 1rem 0.9rem 1.15rem;
	background-color: rgba(255, 255, 255, 0.68);
	box-shadow: inset 0 1px 0 var(--zlh-glass-edge);
	flex: 1 1 auto;
}

.zlh-slot__title-btn {
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	font-family: inherit;
	font-size: 0.98rem;
	font-weight: 800;
	line-height: 1.5;
	color: var(--zlh-olive);
	cursor: pointer;
	text-align: center;
	word-break: break-word;
}

.zlh-slot__title-btn:hover {
	color: var(--zlh-walnut);
	text-decoration: underline;
}

.zlh-slot__author {
	font-size: 0.83rem;
	font-weight: 600;
	color: var(--zlh-muted);
}

.zlh-slot__year {
	font-size: 0.76rem;
	color: var(--zlh-walnut);
	font-weight: 700;
}

.zlh-slot__actions {
	margin-top: auto;
	padding-top: 0.5rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	width: 100%;
}

.zlh-mini-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 0.3rem 0.85rem;
	border-radius: 7px;
	font-family: inherit;
	font-size: 0.8rem;
	font-weight: 700;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.zlh-mini-btn--olive {
	background-color: var(--zlh-olive);
	color: #ffffff;
}

.zlh-mini-btn--olive:hover {
	background-color: var(--zlh-walnut);
	color: #ffffff;
}

.zlh-mini-btn--gold {
	background-color: rgba(248, 243, 230, 0.88);
	border-color: var(--zlh-gold);
	box-shadow: inset 0 1px 0 var(--zlh-glass-edge);
	color: var(--zlh-olive);
}

.zlh-mini-btn--gold:hover {
	background-color: var(--zlh-gold);
	color: #1f2b14;
}

/* ==========================================================================
   Single Library List Mode (`zlh-feed--list`)
   ========================================================================== */

.zlh-feed--list {
	display: flex;
	flex-direction: column;
	padding: 1rem;
	gap: 0.9rem;
}

@media (min-width: 680px) {
	.zlh-feed--list .zlh-slot {
		flex-direction: row;
		align-items: center;
		border: 1px solid var(--zlh-glass-gold);
		border-radius: 12px;
		background: rgba(255, 255, 255, 0.78);
		padding: 0.85rem 1.1rem;
		gap: 1.25rem;
	}

	.zlh-feed--list .zlh-slot__stage {
		flex: 0 0 105px;
		padding: 0;
	}

	.zlh-feed--list .zlh-slot__ledge {
		display: none;
	}

	.zlh-feed--list .zlh-slot__placard {
		align-items: flex-start;
		text-align: start;
		background: transparent;
		box-shadow: none;
		padding: 0;
	}

	.zlh-feed--list .zlh-slot__title-btn {
		text-align: start;
		font-size: 1.08rem;
	}

	.zlh-feed--list .zlh-slot__actions {
		justify-content: flex-start;
	}
}

/* ==========================================================================
   Homepage Dual Featured Shelves (`zlh/home-bookcase`)
   ========================================================================== */

.zlh-home-head {
	text-align: center;
	margin-bottom: 1.65rem;
}

.zlh-home-head__title {
	margin: 0 0 0.4rem;
	font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem);
	font-weight: 800;
	color: var(--zlh-olive);
}

.zlh-home-head__sub {
	margin: 0 auto;
	max-width: 64ch;
	font-size: 0.96rem;
	color: var(--zlh-muted);
}

.zlh-home-bays {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem;
	align-items: stretch;
}

@media (min-width: 1024px) {
	.zlh-home-bays {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.zlh-home-bay {
	padding: 0.85rem;
	border-radius: 16px;
	background-color: var(--zlh-cream);
	border: 2.5px solid var(--zlh-walnut);
	box-shadow:
		inset 0 0 0 1px rgba(197, 160, 89, 0.35),
		0 12px 30px rgba(38, 26, 16, 0.11);
}

.zlh-home-cta-wrap {
	margin-top: 1.75rem;
	text-align: center;
}

.zlh-cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.65rem 2rem;
	border-radius: 999px;
	background-color: var(--zlh-olive);
	border: 2px solid var(--zlh-gold);
	color: #ffffff;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 800;
	text-decoration: none;
	box-shadow: 0 6px 18px rgba(45, 61, 30, 0.2);
	transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.zlh-cta-btn:hover {
	background-color: var(--zlh-gold);
	color: #1f2b14;
	transform: translateY(-2px);
}

/* ==========================================================================
   Frosted Glass Quick Preview Lightbox Modal
   ========================================================================== */

.zlh-modal-backdrop {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background-color: rgba(20, 26, 14, 0.66);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	font-family: 'Cairo', 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
}

.zlh-modal-backdrop[hidden] {
	display: none;
}

.zlh-modal {
	position: relative;
	width: 100%;
	max-width: 760px;
	max-height: 92vh;
	overflow-y: auto;
	background-color: rgba(247, 245, 238, 0.84);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 2px solid rgba(197, 160, 89, 0.65);
	border-top: 5px solid #c5a059;
	border-radius: 16px;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.9),
		0 24px 60px rgba(0, 0, 0, 0.48);
	color: #1e241b;
}

.zlh-modal::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.45) 0%,
		rgba(255, 255, 255, 0.06) 48%,
		rgba(197, 160, 89, 0.10) 100%
	);
	pointer-events: none;
}

.zlh-modal__bar {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 1.25rem;
	background: linear-gradient(135deg, rgba(45, 61, 30, 0.94) 0%, rgba(31, 43, 20, 0.9) 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
	color: #ffffff;
}

.zlh-modal__badge {
	display: inline-block;
	padding: 0.2rem 0.75rem;
	border-radius: 999px;
	background-color: #c5a059;
	color: #1f2b14;
	font-size: 0.8rem;
	font-weight: 700;
}

.zlh-modal__close {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid #c5a059;
	background: transparent;
	color: #ffffff;
	font-size: 1.45rem;
	line-height: 1;
	cursor: pointer;
}

.zlh-modal__close:hover {
	background-color: #c5a059;
	color: #1f2b14;
}

.zlh-modal__body {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem;
	padding: 1.5rem;
}

@media (min-width: 640px) {
	.zlh-modal__body {
		grid-template-columns: 210px minmax(0, 1fr);
	}
}

.zlh-modal__cover {
	width: 100%;
	max-width: 210px;
	margin-inline: auto;
	aspect-ratio: 3 / 4;
	border-radius: 6px;
	overflow: hidden;
	background: linear-gradient(145deg, #2D3D1E 0%, #1f2b14 100%);
	border: 2px solid #c5a059;
	box-shadow: 0 12px 26px rgba(38, 24, 14, 0.28);
}

.zlh-modal__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.zlh-modal__info {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.zlh-modal__title {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 800;
	line-height: 1.45;
	color: #2D3D1E;
}

.zlh-modal__meta {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	padding: 0.75rem 0.95rem;
	border-radius: 8px;
	background-color: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(197, 160, 89, 0.35);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
	font-size: 0.9rem;
}

.zlh-modal__excerpt {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.8;
	color: #3f4a39;
}

.zlh-modal__actions {
	margin-top: auto;
	padding-top: 0.75rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
}

.zlh-modal__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.55rem 1.35rem;
	border-radius: 8px;
	font-family: inherit;
	font-size: 0.92rem;
	font-weight: 700;
	text-decoration: none;
	border: 1.5px solid transparent;
	transition: background-color 140ms ease, color 140ms ease;
}

.zlh-modal__btn--pdf {
	background-color: #2D3D1E;
	border-color: #2D3D1E;
	color: #ffffff;
}

.zlh-modal__btn--pdf:hover {
	background-color: #6B4C35;
	border-color: #6B4C35;
	color: #ffffff;
}

.zlh-modal__btn--ext {
	background-color: #c5a059;
	border-color: #c5a059;
	color: #1f2b14;
}

.zlh-modal__btn--ext:hover {
	background-color: #2D3D1E;
	border-color: #2D3D1E;
	color: #ffffff;
}

.zlh-empty {
	padding: 1.75rem;
	border-radius: 12px;
	background-color: rgba(255, 255, 255, 0.78);
	border: 1.5px dashed var(--zlh-gold);
	text-align: center;
	color: var(--zlh-olive);
	font-weight: 700;
}

/* ==========================================================================
   Graceful Fallback for Older Browsers without `backdrop-filter`
   ========================================================================== */

@supports not ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
	.zlh-bookcase-controls,
	.zlh-toolbar,
	.zlh-shelf-tier,
	.zlh-slot,
	.zlh-slot__placard {
		background-color: rgba(255, 255, 255, 0.96);
	}

	.zlh-shelf-head {
		background: linear-gradient(135deg, #2D3D1E 0%, #1f2b14 100%);
	}

	.zlh-modal-backdrop {
		background-color: rgba(20, 26, 14, 0.85);
	}

	.zlh-modal {
		background-color: #F7F5EE;
	}
}
