:root {
	--opdf-bg: #171a22;
	--opdf-surface: #242a36;
	--opdf-surface-raised: #2b3240;
	--opdf-text: #f4f6f8;
	--opdf-muted: #a7afbd;
	--opdf-border: #343b49;
	--opdf-teal: #13b995;
	--opdf-teal-light: #45d2b4;
	--opdf-violet: #9a73e8;
	--opdf-radius: 14px;
	color-scheme: dark;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 90px;
	background: var(--opdf-bg);
}

body {
	margin: 0;
	background: var(--opdf-bg);
	color: var(--opdf-text);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 15px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

button,
input {
	font: inherit;
}

a {
	color: var(--opdf-teal-light);
	text-decoration: none;
}

a:hover {
	color: #79e4ce;
}

button,
a,
input {
	-webkit-tap-highlight-color: transparent;
}

:focus-visible {
	outline: 3px solid #49d9bb;
	outline-offset: 3px;
}

::selection {
	background: rgba(19, 185, 149, .35);
	color: #fff;
}

.screen-reader-text,
.skip-link:not(:focus) {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	z-index: 100;
	top: 12px;
	left: 12px;
	padding: 10px 14px;
	border-radius: 8px;
	background: #fff;
	color: #111;
}

.site-header {
	position: sticky;
	z-index: 30;
	top: 0;
	border-bottom: 1px solid rgba(255, 255, 255, .075);
	background: #12151d;
	box-shadow: 0 4px 22px rgba(0, 0, 0, .15);
}

.site-header-inner,
.section-shell,
.footer-inner {
	width: min(1440px, 91%);
	margin-inline: auto;
}

.site-header-inner {
	display: flex;
	min-height: 66px;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
}

.site-brand,
.brand-link {
	display: inline-flex;
	align-items: center;
}

.brand-link {
	gap: 9px;
	color: #fff;
	font-size: 20px;
	font-weight: 750;
	letter-spacing: -.7px;
}

.brand-link:hover {
	color: #fff;
}

.brand-accent,
.brand-icon {
	color: var(--opdf-teal-light);
}

.brand-icon {
	font-size: 24px;
	line-height: 1;
}

.custom-logo-link {
	display: inline-flex;
}

.custom-logo {
	width: auto;
	max-width: 220px;
	max-height: 48px;
}

.primary-navigation {
	margin-left: auto;
}

.nav-menu {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.nav-menu a {
	display: inline-flex;
	min-height: 38px;
	align-items: center;
	padding: 7px 14px;
	border-radius: 999px;
	color: #d8dbe2;
	font-size: 12px;
	font-weight: 650;
	transition: background .18s ease, color .18s ease;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a {
	background: var(--opdf-teal);
	color: #0d1b19;
}

.menu-toggle {
	display: none;
	width: 42px;
	height: 42px;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--opdf-border);
	border-radius: 12px;
	background: var(--opdf-surface);
	color: #fff;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
	position: relative;
	display: block;
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform .2s ease, top .2s ease;
}

.menu-toggle-lines::before,
.menu-toggle-lines::after {
	position: absolute;
	left: 0;
	content: "";
}

.menu-toggle-lines::before {
	top: -6px;
}

.menu-toggle-lines::after {
	top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines {
	background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before {
	top: 0;
	transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after {
	top: 0;
	transform: rotate(-45deg);
}

.hero {
	position: relative;
	overflow: hidden;
	padding: clamp(58px, 8vw, 96px) 4.5% 64px;
	background:
		radial-gradient(ellipse at 77% 18%, rgba(19, 185, 149, .25), transparent 32%),
		radial-gradient(ellipse at 15% 10%, rgba(154, 115, 232, .29), transparent 38%),
		linear-gradient(125deg, #29263c, #24293d 54%, #1f303b);
	text-align: center;
}

.hero::before,
.hero::after {
	position: absolute;
	width: 250px;
	height: 250px;
	border: 1px solid rgba(255, 255, 255, .07);
	border-radius: 50%;
	content: "";
	pointer-events: none;
}

.hero::before {
	top: -130px;
	left: -80px;
	box-shadow: 0 0 0 24px rgba(255, 255, 255, .025), 0 0 0 52px rgba(255, 255, 255, .02);
}

.hero::after {
	right: -100px;
	bottom: -180px;
	width: 360px;
	height: 360px;
	box-shadow: 0 0 0 25px rgba(19, 185, 149, .035), 0 0 0 58px rgba(19, 185, 149, .025);
}

.hero-inner {
	position: relative;
	z-index: 1;
	width: min(820px, 100%);
	margin-inline: auto;
}

.eyebrow {
	margin: 0 0 12px;
	color: var(--opdf-teal-light);
	font-size: 10px;
	font-weight: 750;
	letter-spacing: .17em;
	line-height: 1.4;
	text-transform: uppercase;
}

.hero h1 {
	max-width: 800px;
	margin: 0 auto;
	color: #fff;
	font-size: clamp(38px, 5.5vw, 66px);
	font-weight: 760;
	letter-spacing: -.055em;
	line-height: 1.06;
}

.hero h1 span {
	color: #3bd2af;
}

.hero-copy {
	max-width: 680px;
	margin: 20px auto 27px;
	color: #d0d4de;
	font-size: 15px;
	line-height: 1.75;
}

.library-search {
	display: flex;
	width: min(620px, 100%);
	min-height: 56px;
	align-items: center;
	gap: 8px;
	padding: 5px 6px 5px 19px;
	margin: 0 auto;
	border: 0;
	border-radius: 999px;
	background: #f3f4f6;
	box-shadow: 0 12px 36px rgba(0, 0, 0, .23);
}

.library-search input[type="search"] {
	width: 100%;
	min-width: 0;
	height: 44px;
	padding: 0 8px;
	border: 0;
	outline: 0;
	background: transparent;
	color: #1a1e27;
	font-size: 14px;
}

.library-search input[type="search"]::placeholder {
	color: #858b97;
	opacity: 1;
}

.library-search input[type="search"]:focus-visible {
	outline: 0;
}

.library-search button {
	flex: 0 0 auto;
	min-height: 44px;
	padding: 0 23px;
	border: 0;
	border-radius: 999px;
	background: #13b995;
	color: #0c1a19;
	font-size: 12px;
	font-weight: 750;
	cursor: pointer;
	transition: background .18s ease, transform .18s ease;
}

.library-search button:hover {
	transform: translateY(-1px);
	background: #40d4b3;
}

.hero-note {
	margin: 13px 0 0;
	color: #c3c7d2;
	font-size: 11px;
}

.section-shell {
	scroll-margin-top: 88px;
}

.featured-section {
	padding-block: 49px 35px;
}

.section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 20px;
}

.section-heading .eyebrow {
	margin-bottom: 6px;
}

.section-heading h2,
.about-inner h2 {
	margin: 0;
	color: #f4f6f8;
	font-size: clamp(25px, 3vw, 34px);
	font-weight: 740;
	letter-spacing: -.04em;
	line-height: 1.18;
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--opdf-teal-light);
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}

.featured-row {
	display: grid;
	grid-auto-columns: minmax(230px, 1fr);
	grid-auto-flow: column;
	gap: 12px;
	overflow-x: auto;
	padding: 2px 2px 13px;
	scroll-snap-type: x mandatory;
	scrollbar-color: #3a4251 transparent;
	scrollbar-width: thin;
}

.featured-card {
	position: relative;
	display: flex;
	min-height: 192px;
	align-items: end;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: var(--opdf-radius);
	background: linear-gradient(135deg, #514a71, #246457);
	color: #fff;
	scroll-snap-align: start;
}

.featured-card:hover {
	color: #fff;
}

.featured-image,
.featured-placeholder,
.featured-shade {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.featured-image {
	object-fit: cover;
	transition: transform .35s ease;
}

.featured-card:hover .featured-image {
	transform: scale(1.04);
}

.featured-placeholder {
	display: grid;
	place-items: center;
	background:
		radial-gradient(circle at 72% 23%, rgba(255, 255, 255, .2), transparent 22%),
		linear-gradient(135deg, #514a71, #245a59 58%, #17473f);
}

.featured-placeholder span {
	color: rgba(255, 255, 255, .2);
	font-size: 94px;
	font-weight: 800;
	line-height: 1;
}

.featured-shade {
	background: linear-gradient(180deg, transparent 20%, rgba(9, 12, 20, .82) 100%);
}

.featured-text {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 3px;
	padding: 15px 16px;
}

.featured-category {
	color: #74e6cc;
	font-size: 9px;
	font-weight: 750;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.featured-text strong {
	overflow: hidden;
	font-size: 15px;
	font-weight: 750;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.featured-text > span:last-child {
	color: #d2d7df;
	font-size: 11px;
}

.genre-strip {
	border-block: 1px solid rgba(255, 255, 255, .065);
	background: #141820;
}

.genre-strip-inner {
	display: flex;
	width: min(1440px, 91%);
	gap: 9px;
	overflow-x: auto;
	padding: 15px 0;
	margin-inline: auto;
	scrollbar-width: none;
}

.genre-strip-inner::-webkit-scrollbar {
	display: none;
}

.genre-pill {
	display: inline-flex;
	flex: 0 0 auto;
	min-height: 37px;
	align-items: center;
	gap: 9px;
	padding: 8px 14px;
	border: 1px solid #303746;
	border-radius: 999px;
	background: #222733;
	color: #d7dbe3;
	font-size: 11px;
	font-weight: 650;
	transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.genre-pill span {
	color: #a1aaba;
	font-size: 9px;
}

.genre-pill:hover,
.genre-pill-all {
	border-color: var(--opdf-teal);
	background: var(--opdf-teal);
	color: #0c1a19;
}

.genre-pill-all {
	font-weight: 750;
}

.genre-pill:hover span,
.genre-pill-all span {
	color: #12302b;
}

.library-section {
	padding-block: 53px 70px;
}

.section-count {
	margin: 0 0 3px;
	color: #9da6b5;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 10px;
}

.book-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.book-card {
	display: grid;
	grid-template-columns: 82px minmax(0, 1fr);
	gap: 13px;
	min-width: 0;
	padding: 14px;
	border: 1px solid rgba(255, 255, 255, .06);
	border-radius: var(--opdf-radius);
	background: var(--opdf-surface);
	box-shadow: 0 7px 20px rgba(0, 0, 0, .14);
	transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.book-card:hover {
	transform: translateY(-2px);
	border-color: rgba(19, 185, 149, .5);
	background: var(--opdf-surface-raised);
}

.book-cover {
	position: relative;
	display: grid;
	width: 82px;
	min-height: 114px;
	place-items: center;
	overflow: hidden;
	border-radius: 9px;
	background:
		radial-gradient(circle at 76% 18%, rgba(255, 255, 255, .26), transparent 23%),
		linear-gradient(145deg, #5b5277, #267161);
	box-shadow: 0 5px 13px rgba(0, 0, 0, .25);
}

.book-cover img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cover-placeholder {
	color: rgba(255, 255, 255, .67);
	font-size: 43px;
	font-weight: 800;
}

.book-card-body {
	display: flex;
	min-width: 0;
	flex-direction: column;
	align-items: flex-start;
}

.book-card-meta {
	display: flex;
	width: 100%;
	justify-content: space-between;
	gap: 8px;
	color: #69d9bf;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 8px;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.book-card h3 {
	margin: 5px 0 2px;
	font-size: 14px;
	font-weight: 750;
	line-height: 1.3;
}

.book-card h3 a {
	color: #f2f4f8;
}

.book-card h3 a:hover {
	color: #4cddbd;
}

.book-author {
	margin: 0;
	color: #aeb6c3;
	font-size: 11px;
}

.book-excerpt {
	display: -webkit-box;
	overflow: hidden;
	margin: 5px 0 8px;
	color: #929baa;
	font-size: 10px;
	line-height: 1.45;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.card-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	color: #69d9bf;
	font-size: 10px;
	font-weight: 700;
}

.pagination {
	margin-top: 30px;
}

.pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.pagination a,
.pagination span {
	display: inline-flex;
	min-width: 38px;
	min-height: 38px;
	align-items: center;
	justify-content: center;
	padding: 0 11px;
	border: 1px solid var(--opdf-border);
	border-radius: 10px;
	background: var(--opdf-surface);
	color: var(--opdf-text);
	font-size: 12px;
}

.pagination .current {
	border-color: var(--opdf-teal);
	background: var(--opdf-teal);
	color: #0c1a19;
}

.empty-state {
	padding: 42px 26px;
	border: 1px dashed #455061;
	border-radius: var(--opdf-radius);
	background: #1d222c;
	text-align: center;
}

.empty-state h2,
.empty-state h3 {
	margin: 0 0 8px;
	font-size: 22px;
}

.empty-state p {
	max-width: 650px;
	margin: 0 auto;
	color: var(--opdf-muted);
	font-size: 13px;
}

.about-strip {
	border-top: 1px solid rgba(255, 255, 255, .065);
	background: #141820;
}

.about-inner {
	padding-block: 50px 58px;
}

.about-inner h2 {
	max-width: 650px;
}

.about-inner > p:last-child {
	max-width: 650px;
	margin: 14px 0 0;
	color: var(--opdf-muted);
	font-size: 13px;
}

.site-footer {
	background: #11141b;
}

.footer-inner {
	display: flex;
	min-height: 82px;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding-block: 18px;
}

.footer-brand {
	font-size: 16px;
}

.footer-brand .brand-icon {
	font-size: 20px;
}

.footer-inner p {
	margin: 0;
	color: #969eac;
	font-size: 10px;
}

.archive-main,
.page-main,
.single-main {
	padding-block: 52px 76px;
}

.archive-heading {
	margin-bottom: 24px;
}

.archive-heading h1,
.not-found h1,
.single-book h1,
.content-page h1 {
	margin: 0;
	color: #f6f7f9;
	font-size: clamp(32px, 5vw, 50px);
	font-weight: 750;
	letter-spacing: -.05em;
	line-height: 1.1;
}

.archive-description,
.archive-description p {
	max-width: 700px;
	color: var(--opdf-muted);
	font-size: 13px;
}

.archive-tools {
	margin-bottom: 24px;
}

.library-search-compact {
	width: min(520px, 100%);
	min-height: 48px;
}

.library-search-compact input[type="search"] {
	height: 38px;
}

.library-search-compact button {
	min-height: 38px;
}

.single-book {
	display: grid;
	grid-template-columns: minmax(190px, .42fr) minmax(0, 1fr);
	align-items: start;
	gap: clamp(28px, 6vw, 76px);
	max-width: 1020px;
	margin-inline: auto;
	padding: clamp(20px, 5vw, 54px);
	border: 1px solid var(--opdf-border);
	border-radius: 20px;
	background: #202530;
	box-shadow: 0 18px 60px rgba(0, 0, 0, .22);
}

.single-cover img,
.single-cover-placeholder {
	display: block;
	width: 100%;
	aspect-ratio: .72;
	border-radius: 12px;
	object-fit: cover;
	box-shadow: 0 12px 34px rgba(0, 0, 0, .28);
}

.single-cover-placeholder {
	display: grid;
	place-items: center;
	background: linear-gradient(145deg, #5b5277, #267161);
	color: rgba(255, 255, 255, .68);
	font-size: clamp(70px, 12vw, 130px);
	font-weight: 800;
}

.single-book-content {
	min-width: 0;
}

.single-book h1 {
	font-size: clamp(34px, 5vw, 52px);
}

.single-author {
	margin: 8px 0 17px;
	color: #b2bac7;
	font-size: 15px;
}

.book-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 22px;
}

.book-facts span {
	padding: 5px 9px;
	border: 1px solid #414a59;
	border-radius: 7px;
	color: #c3cad4;
	font-size: 10px;
}

.entry-content {
	color: #c4cad4;
	font-size: 14px;
	line-height: 1.8;
}

.entry-content a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.download-button {
	display: inline-flex;
	min-height: 46px;
	align-items: center;
	gap: 12px;
	padding: 0 21px;
	margin-top: 16px;
	border-radius: 999px;
	background: var(--opdf-teal);
	color: #0c1a19;
	font-size: 12px;
	font-weight: 750;
}

.download-button:hover {
	background: #42d6b5;
	color: #0c1a19;
}

.download-note,
.download-unavailable {
	margin: 10px 0 0;
	color: #9ca5b4;
	font-size: 10px;
}

.page-main .content-page {
	max-width: 850px;
	margin-inline: auto;
}

.page-main .entry-content {
	margin-top: 24px;
}

.not-found {
	padding-block: 90px;
	text-align: center;
}

.not-found h1 {
	margin-bottom: 10px;
}

.not-found > p:not(.eyebrow) {
	margin: 0 0 22px;
	color: var(--opdf-muted);
}

.not-found .text-link {
	display: flex;
	justify-content: center;
	margin-top: 17px;
}

@media (max-width: 980px) {
	.book-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.site-header-inner,
	.section-shell,
	.footer-inner,
	.genre-strip-inner {
		width: min(1440px, 92%);
	}
}

@media (max-width: 700px) {
	.site-header-inner {
		position: relative;
		min-height: 62px;
		flex-wrap: wrap;
		gap: 0;
		padding-block: 8px;
	}

	.brand-link {
		font-size: 18px;
	}

	.menu-toggle {
		display: inline-flex;
	}

	.primary-navigation {
		display: none;
		order: 3;
		width: 100%;
		padding: 7px 0 9px;
		margin: 0;
	}

	.primary-navigation.is-open {
		display: block;
	}

	.nav-menu {
		align-items: stretch;
		flex-direction: column;
		gap: 3px;
	}

	.nav-menu a {
		width: 100%;
		min-height: 42px;
		border-radius: 10px;
	}

	.hero {
		padding: 51px 5% 43px;
	}

	.hero h1 {
		font-size: clamp(36px, 9.5vw, 50px);
	}

	.hero-copy {
		margin-block: 16px 22px;
		font-size: 13px;
	}

	.library-search {
		min-height: 51px;
		padding-left: 13px;
	}

	.library-search input[type="search"] {
		font-size: 12px;
	}

	.library-search button {
		min-height: 41px;
		padding-inline: 16px;
		font-size: 11px;
	}

	.featured-section {
		padding-block: 39px 27px;
	}

	.featured-row {
		grid-auto-columns: minmax(245px, 78vw);
	}

	.featured-card {
		min-height: 174px;
	}

	.section-heading {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
	}

	.library-section {
		padding-block: 39px 51px;
	}

	.book-grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.book-card {
		grid-template-columns: 72px minmax(0, 1fr);
		gap: 11px;
		padding: 12px;
	}

	.book-cover {
		width: 72px;
		min-height: 101px;
	}

	.cover-placeholder {
		font-size: 37px;
	}

	.book-excerpt {
		-webkit-line-clamp: 2;
	}

	.about-inner {
		padding-block: 39px 45px;
	}

	.footer-inner {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
		padding-block: 20px;
	}

	.single-book {
		grid-template-columns: 86px minmax(0, 1fr);
		gap: 17px;
		padding: 22px 16px;
		border-radius: 15px;
	}

	.single-book h1 {
		font-size: clamp(25px, 7vw, 34px);
	}

	.single-author {
		margin: 6px 0 12px;
		font-size: 12px;
	}

	.book-facts {
		gap: 5px;
		margin-bottom: 14px;
	}

	.book-facts span {
		padding: 4px 6px;
		font-size: 9px;
	}

	.entry-content {
		font-size: 12px;
	}

	.download-button {
		min-height: 41px;
		padding-inline: 15px;
		font-size: 11px;
	}

	.archive-main,
	.page-main,
	.single-main {
		padding-block: 38px 52px;
	}
}

@media (max-width: 390px) {
	.section-shell,
	.site-header-inner,
	.footer-inner,
	.genre-strip-inner {
		width: 90%;
	}

	.single-book {
		grid-template-columns: 1fr;
	}

	.single-cover {
		width: min(130px, 46%);
	}

	.single-book h1 {
		font-size: 31px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}

.home-seo-content {
	padding-block: 48px 60px;
	border-top: 1px solid rgba(255, 255, 255, .065);
}

.home-seo-content h2 {
	max-width: 760px;
	margin: 0;
	color: #f4f6f8;
	font-size: clamp(24px, 3vw, 32px);
	font-weight: 740;
	letter-spacing: -.04em;
	line-height: 1.2;
}

.home-seo-copy {
	max-width: 780px;
	margin-top: 15px;
	color: var(--opdf-muted);
	font-size: 13px;
	line-height: 1.85;
}

.home-seo-copy p {
	margin: 0 0 12px;
}

.single-breadcrumbs {
	width: min(1040px, 100%);
	margin: 0 auto 18px;
	color: #aeb7c5;
	font-size: 11px;
}

.single-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.single-breadcrumbs li:not(:last-child)::after {
	padding-left: 7px;
	color: #758091;
	content: "/";
}

.single-breadcrumbs a {
	color: #6fddc2;
}

.single-breadcrumbs [aria-current="page"] {
	color: #d9dee6;
}

.single-book {
	display: block;
	max-width: 1040px;
	padding: clamp(22px, 5vw, 56px);
	margin-inline: auto;
}

.single-book-top {
	display: grid;
	grid-template-columns: minmax(150px, 250px) minmax(0, 1fr);
	align-items: start;
	gap: clamp(24px, 5vw, 58px);
}

.single-book .single-cover {
	width: 100%;
	max-width: 250px;
}

.single-book .single-cover img,
.single-book .single-cover-placeholder {
	display: grid;
	width: 100%;
	aspect-ratio: .72;
	place-items: center;
	border-radius: 12px;
	object-fit: cover;
	box-shadow: 0 12px 34px rgba(0, 0, 0, .28);
}

.single-book .single-cover-placeholder {
	background: linear-gradient(145deg, #5b5277, #267161);
	color: rgba(255, 255, 255, .68);
	font-size: 100px;
	font-weight: 800;
}

.single-book-summary {
	min-width: 0;
}

.single-book-summary h1 {
	margin: 0;
	color: #f6f7f9;
	font-size: clamp(32px, 5vw, 48px);
	font-weight: 750;
	letter-spacing: -.05em;
	line-height: 1.12;
}

.single-book-summary .single-author {
	margin: 10px 0 0;
	color: #c4cbd6;
	font-size: 15px;
}

.single-post-date {
	margin: 7px 0 0;
	color: #929baa;
	font-size: 11px;
}

.single-series {
	margin: 16px 0 0;
	color: #dce2e9;
	font-size: 13px;
	font-weight: 650;
}

.single-genre-list {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 17px;
}

.single-genre-list a {
	padding: 5px 10px;
	border: 1px solid #414a59;
	border-radius: 999px;
	background: #262d39;
	color: #81e0ca;
	font-size: 10px;
	font-weight: 650;
}

.single-genre-list a:hover {
	border-color: var(--opdf-teal);
	background: var(--opdf-teal);
	color: #10221e;
}

.single-book-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 9px;
	margin-top: 22px;
}

.single-book-actions .download-button {
	margin-top: 0;
}

.single-book-actions .download-button:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

.single-book-actions .download-note {
	flex-basis: 100%;
	margin: 0;
}

.download-button-secondary {
	border: 1px solid #465162;
	background: #303846;
	color: #f2f4f7;
}

.download-button-secondary:hover {
	background: #3a4454;
	color: #fff;
}

.book-description,
.book-details-panel {
	padding-top: 28px;
	margin-top: 32px;
	border-top: 1px solid var(--opdf-border);
}

.book-description h2,
.book-details-panel h2 {
	margin: 0 0 13px;
	color: #f4f6f8;
	font-size: clamp(22px, 3vw, 28px);
	font-weight: 730;
	letter-spacing: -.035em;
	line-height: 1.25;
}

.book-description .eyebrow,
.book-details-panel .eyebrow {
	margin-bottom: 7px;
}

.single-book .entry-content {
	max-width: 800px;
	margin-top: 0;
	color: #c4cad4;
	font-size: 15px;
	line-height: 1.9;
}

.single-book .entry-content p {
	margin: 0 0 1.15em;
}

.single-book .entry-content h2,
.single-book .entry-content h3,
.single-book .entry-content h4 {
	margin: 1.6em 0 .55em;
	color: #f1f4f7;
	font-weight: 700;
	line-height: 1.3;
}

.single-book .entry-content h2 {
	font-size: 22px;
}

.single-book .entry-content h3 {
	font-size: 18px;
}

.book-details-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	padding: 1px;
	margin: 0;
	overflow: hidden;
	border: 1px solid #373f4d;
	border-radius: 12px;
	background: #373f4d;
}

.book-details-grid > div {
	min-width: 0;
	padding: 12px 14px;
	background: #252b37;
}

.book-details-grid dt {
	margin-bottom: 3px;
	color: #9da7b6;
	font-size: 10px;
	font-weight: 650;
	text-transform: uppercase;
	letter-spacing: .06em;
}

.book-details-grid dd {
	margin: 0;
	color: #edf0f4;
	font-size: 13px;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.single-book > .download-unavailable {
	margin-top: 24px;
}

.related-books {
	width: min(1040px, 100%);
	padding-top: 36px;
	margin: 36px auto 0;
	border-top: 1px solid rgba(255, 255, 255, .08);
}

.related-books .section-heading {
	margin-bottom: 18px;
}

.related-book-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 980px) {
	.related-book-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	.home-seo-content {
		padding-block: 38px 46px;
	}

	.single-book-top {
		grid-template-columns: 104px minmax(0, 1fr);
		gap: 18px;
	}

	.single-book .single-cover {
		max-width: 104px;
	}

	.single-book .single-cover-placeholder {
		font-size: 52px;
	}

	.single-book-summary h1 {
		font-size: clamp(25px, 7vw, 34px);
	}

	.single-book-summary .single-author {
		font-size: 12px;
	}

	.single-series {
		margin-top: 10px;
		font-size: 11px;
	}

	.single-genre-list {
		gap: 5px;
		margin-top: 10px;
	}

	.single-genre-list a {
		padding: 4px 8px;
		font-size: 9px;
	}

	.single-book-actions {
		margin-top: 14px;
	}

	.book-description,
	.book-details-panel {
		padding-top: 22px;
		margin-top: 25px;
	}

	.single-book .entry-content {
		font-size: 13px;
	}

	.book-details-grid {
		grid-template-columns: 1fr;
	}

	.related-book-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 390px) {
	.single-book-top {
		grid-template-columns: 1fr;
	}

	.single-book .single-cover {
		max-width: 140px;
	}
}

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

@media (max-width: 980px) {
	.book-details-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	.single-book-top {
		grid-template-columns: minmax(116px, 160px) minmax(0, 1fr);
		gap: 20px;
	}

	.single-book .single-cover {
		max-width: 160px;
	}

	.single-book-summary h1 {
		overflow-wrap: anywhere;
		font-size: clamp(25px, 6.5vw, 34px);
	}

	.single-book .entry-content {
		font-size: 14px;
		line-height: 1.8;
	}

	.book-details-grid {
		grid-template-columns: 1fr;
	}

	.book-details-grid > div {
		display: grid;
		grid-template-columns: minmax(110px, .8fr) minmax(0, 1.2fr);
		align-items: center;
		gap: 12px;
	}

	.book-details-grid dt {
		margin: 0;
	}

	.book-details-grid dd {
		text-align: right;
	}
}

@media (max-width: 520px) {
	.single-book {
		padding: 22px 16px;
	}

	.single-book-top {
		grid-template-columns: minmax(0, 1fr);
		gap: 21px;
	}

	.single-book .single-cover {
		max-width: 154px;
		margin-inline: auto;
	}

	.single-book-summary {
		text-align: center;
	}

	.single-book-summary h1 {
		font-size: clamp(28px, 8vw, 36px);
	}

	.single-genre-list,
	.single-book-actions {
		justify-content: center;
	}

	.single-book-actions .download-button {
		width: min(100%, 240px);
		justify-content: center;
	}

	.single-book-actions .download-note {
		text-align: center;
	}

	.book-details-grid > div {
		grid-template-columns: minmax(98px, .8fr) minmax(0, 1.2fr);
		gap: 8px;
		padding: 12px;
	}

	.book-details-grid dd {
		font-size: 13px;
	}
}

/* Keep book sections full-width instead of inheriting the legacy article grid. */
.single-main > .single-book {
display: block;
width: 100%;
max-width: 1040px;
}

.single-main > .single-book > .single-book-top,
.single-main > .single-book > .book-description,
.single-main > .single-book > .book-details-panel {
width: 100%;
min-width: 0;
}

.single-main > .single-book > .single-book-top {
display: grid;
grid-template-columns: minmax(150px, 250px) minmax(0, 1fr);
}

.single-main > .single-book > .book-description,
.single-main > .single-book > .book-details-panel {
display: block;
}

.single-main > .single-book .book-details-grid {
width: 100%;
}

.single-main > .single-breadcrumbs > ol {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 0 7px;
padding: 0;
margin: 0;
list-style: none;
}

.single-main > .single-breadcrumbs li {
display: inline-flex;
align-items: center;
list-style: none;
}

.single-main > .single-breadcrumbs li::marker {
content: "";
}

@media (max-width: 700px) {
.single-main > .single-book > .single-book-top {
grid-template-columns: minmax(116px, 160px) minmax(0, 1fr);
gap: 18px;
}

.single-main > .single-book .single-book-summary {
text-align: left;
}

.single-main > .single-book .single-book-summary h1 {
font-size: clamp(22px, 5.2vw, 30px);
line-height: 1.12;
}

.single-main > .single-book .single-genre-list,
.single-main > .single-book .single-book-actions {
justify-content: flex-start;
}
}

@media (max-width: 520px) {
.single-main > .single-book > .single-book-top {
grid-template-columns: minmax(84px, 32%) minmax(0, 1fr);
gap: 14px;
}

.single-main > .single-book .single-cover {
width: 100%;
max-width: none;
margin: 0;
}

.single-main > .single-book .single-book-summary {
text-align: left;
}

.single-main > .single-book .single-book-summary h1 {
font-size: clamp(20px, 5.8vw, 27px);
overflow-wrap: anywhere;
}

.single-main > .single-book .single-book-summary .single-author {
font-size: 12px;
}

.single-main > .single-book .single-post-date {
font-size: 10px;
}

.single-main > .single-book .single-series {
font-size: 11px;
}

.single-main > .single-book .single-genre-list {
gap: 5px;
margin-top: 9px;
}

.single-main > .single-book .single-genre-list a {
padding: 4px 8px;
font-size: 9px;
}

.single-main > .single-book .single-book-actions {
align-items: flex-start;
flex-direction: column;
gap: 7px;
margin-top: 12px;
}

.single-main > .single-book .single-book-actions .download-button {
width: auto;
max-width: 100%;
min-height: 38px;
justify-content: center;
padding-inline: 12px;
font-size: 10px;
}

.single-main > .single-book .single-book-actions .download-note {
text-align: left;
font-size: 9px;
}
}

@media (max-width: 360px) {
.single-main > .single-book > .single-book-top {
grid-template-columns: minmax(78px, 30%) minmax(0, 1fr);
gap: 11px;
}

.single-main > .single-book .single-book-summary h1 {
font-size: 20px;
}
}