.opl-contents ol {
	margin: 0;
	padding-left: 1.5rem;
}

body.opl-library-page {
	margin: 0;
	background: #f7f4ed;
	color: #292721;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 18px;
	line-height: 1.75;
}

.opl-site-header {
	background: #172b35;
	color: #fff;
	border-bottom: 4px solid #b38a45;
}

.opl-header-inner,
.opl-main,
.opl-footer-inner {
	width: min(92%, 960px);
	margin: 0 auto;
}

.opl-header-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 2rem;
	padding: 1.1rem 0;
}

.opl-site-name,
.opl-site-nav a {
	color: #fff;
	text-decoration: none;
}

.opl-site-name {
	font-size: 1.3rem;
	font-weight: 700;
}

.opl-site-nav a {
	font-family: Arial, sans-serif;
	font-size: 0.9rem;
}

.opl-site-nav { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; }
.opl-site-nav .opl-nav-link { padding: .5rem .15rem; white-space: nowrap; }

.opl-main {
	padding: 3.5rem 0 5rem;
}

.opl-book-article,
.opl-chapter-article {
	background: #fff;
	box-shadow: 0 8px 30px rgba(25, 35, 38, 0.08);
	padding: clamp(1.5rem, 5vw, 4rem);
}

.opl-book-heading,
.opl-chapter-heading {
	margin-bottom: 2.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid #d9d3c7;
}

.opl-book-hero {
	display: grid;
	grid-template-columns: minmax(180px, 260px) 1fr;
	gap: clamp(1.5rem, 5vw, 3.5rem);
	align-items: start;
	margin-bottom: 2.5rem;
}

.opl-generated-cover {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 390px;
	padding: 2rem 1.5rem;
	background: var(--opl-cover-bg);
	border: 8px double var(--opl-cover-accent);
	color: #fff;
	text-align: center;
	box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.opl-cover-palette-0 { --opl-cover-bg: #172b35; --opl-cover-accent: #d8b56b; }
.opl-cover-palette-1 { --opl-cover-bg: #4b2432; --opl-cover-accent: #e8c995; }
.opl-cover-palette-2 { --opl-cover-bg: #233b2f; --opl-cover-accent: #d6c087; }
.opl-cover-palette-3 { --opl-cover-bg: #332d4f; --opl-cover-accent: #d8cbea; }
.opl-cover-palette-stoicism { --opl-cover-bg: #4b2432; --opl-cover-accent: #e8c995; }
.opl-cover-palette-ancient-greek { --opl-cover-bg: #243b53; --opl-cover-accent: #e8c995; }
.opl-cover-palette-existentialism { --opl-cover-bg: #3d3048; --opl-cover-accent: #d8cbea; }
.opl-cover-palette-utilitarianism { --opl-cover-bg: #176b68; --opl-cover-accent: #e6d49a; }
.opl-cover-palette-rationalism { --opl-cover-bg: #4b3f72; --opl-cover-accent: #d9c89e; }
.opl-cover-palette-empiricism { --opl-cover-bg: #a6532d; --opl-cover-accent: #f0d6a2; }
.opl-cover-palette-rationalism-empiricism { --opl-cover-bg: #405d72; --opl-cover-accent: #e2d2a4; }
.opl-cover-palette-ethics { --opl-cover-bg: #315c45; --opl-cover-accent: #dfcd93; }
.opl-cover-palette-ethics-justice-society { --opl-cover-bg: #1f5a5a; --opl-cover-accent: #e3c98a; }
.opl-cover-palette-political { --opl-cover-bg: #722f37; --opl-cover-accent: #e8c995; }
.opl-cover-palette-mind { --opl-cover-bg: #3f3d78; --opl-cover-accent: #d8cbea; }
.opl-cover-palette-metaphysics { --opl-cover-bg: #51355a; --opl-cover-accent: #dec9e8; }
.opl-cover-palette-epistemology { --opl-cover-bg: #3e5c76; --opl-cover-accent: #dfd19f; }
.opl-cover-palette-epicureanism { --opl-cover-bg: #66734b; --opl-cover-accent: #ead9a1; }
.opl-cover-palette-scepticism { --opl-cover-bg: #59656f; --opl-cover-accent: #ddd2ad; }
.opl-cover-palette-neoplatonism { --opl-cover-bg: #593c73; --opl-cover-accent: #dec9e8; }
.opl-cover-palette-medieval { --opl-cover-bg: #654a3c; --opl-cover-accent: #e5c98e; }
.opl-cover-palette-enlightenment { --opl-cover-bg: #9a7026; --opl-cover-accent: #f2dfaa; }
.opl-cover-palette-feminist { --opl-cover-bg: #8a3f5d; --opl-cover-accent: #f0cbd7; }
.opl-cover-palette-pragmatism { --opl-cover-bg: #9b5535; --opl-cover-accent: #edd0a2; }
.opl-cover-palette-aesthetics { --opl-cover-bg: #68415b; --opl-cover-accent: #e8cfa8; }
.opl-cover-palette-religion { --opl-cover-bg: #263859; --opl-cover-accent: #ded09d; }
.opl-cover-palette-eastern { --opl-cover-bg: #28705c; --opl-cover-accent: #e4d49e; }
.opl-cover-palette-chinese-philosophy { --opl-cover-bg: #2f5d50; --opl-cover-accent: #e4d49e; }
.opl-cover-palette-buddhist-philosophy { --opl-cover-bg: #8a5a1f; --opl-cover-accent: #f0d49a; }
.opl-cover-palette-indian-philosophy { --opl-cover-bg: #9a4f1f; --opl-cover-accent: #f1d39a; }

.opl-generated-cover strong {
	font-size: clamp(1.5rem, 3vw, 2.3rem);
	line-height: 1.15;
}

.opl-cover-library,
.opl-cover-author {
	font-family: Arial, sans-serif;
	font-size: .75rem;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.opl-cover-rule {
	display: block;
	width: 40%;
	height: 2px;
	margin: 1rem auto;
	background: var(--opl-cover-accent);
}

.opl-book-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .65rem;
}

.opl-short-description {
	color: #48443b;
	font-size: 1.05rem;
	line-height: 1.65;
}

.opl-long-description {
	margin: 2.5rem 0;
	padding: 1.5rem 0;
	border-top: 1px solid #d9d3c7;
	border-bottom: 1px solid #d9d3c7;
}

.opl-credits {
	margin-top: 3rem;
	padding: 1.25rem 1.5rem;
	background: #f3efe5;
	border-left: 4px solid #b38a45;
	font-family: Arial, sans-serif;
	font-size: .86rem;
	line-height: 1.55;
}

.opl-credits h2 { margin-top: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; }
.opl-credits dl { margin: 0; }
.opl-credits dl div { display: grid; grid-template-columns: 130px 1fr; gap: .75rem; }
.opl-credits dt { font-weight: 700; }
.opl-credits dd { margin: 0; }

.opl-button {
	display: inline-block;
	padding: .65rem 1rem;
	background: #23576c;
	color: #fff;
	font-family: Arial, sans-serif;
	font-size: .84rem;
	text-decoration: none;
}

.opl-related {
	margin-top: 4rem;
	padding-top: 2rem;
	border-top: 2px solid #b38a45;
}

.opl-related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
	gap: 1.25rem;
}

.opl-related-card a {
	color: #172b35;
	text-decoration: none;
}

.opl-cover-compact {
	min-height: 240px;
	padding: 1rem;
	border-width: 5px;
	box-shadow: 0 6px 18px rgba(0,0,0,.14);
}

.opl-cover-compact strong {
	font-size: 1rem;
}

.opl-related-title {
	display: block;
	margin-top: .7rem;
	font-weight: 700;
	line-height: 1.3;
}

.opl-book-heading h1,
.opl-chapter-heading h1 {
	margin: 0;
	color: #172b35;
	font-size: clamp(2rem, 5vw, 3.4rem);
	line-height: 1.15;
}

.opl-subtitle {
	margin: 0.7rem 0 0;
	color: #635d51;
	font-size: 1.2rem;
}

.opl-byline,
.opl-book-meta,
.opl-breadcrumb {
	font-family: Arial, sans-serif;
	font-size: 0.9rem;
}

.opl-byline {
	margin-top: 1rem;
	color: #514c42;
}

.opl-book-meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 0.75rem 1.5rem;
	margin: 0 0 2.5rem;
	padding: 1.25rem;
	background: #f2eee5;
}

.opl-book-meta dt {
	font-weight: 700;
}

.opl-book-meta dd {
	margin: 0;
}

.opl-entry-content p {
	margin: 0 0 1.25em;
}

.opl-auto-contents {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 2px solid #b38a45;
}

.opl-auto-contents h2 {
	color: #172b35;
}

.opl-breadcrumb {
	margin: 0 0 1.5rem;
}

.opl-breadcrumb a,
.opl-contents a,
.opl-chapter-navigation a {
	color: #23576c;
}

.opl-site-footer {
	background: #172b35;
	color: #fff;
}

.opl-footer-inner {
	padding: 1.5rem 0;
	font-family: Arial, sans-serif;
	font-size: 0.82rem;
}

.opl-contents li {
	margin-bottom: 0.6rem;
}

.opl-chapter-navigation {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	gap: 1rem;
	align-items: center;
	margin-top: 3rem;
	padding-top: 1.25rem;
	border-top: 1px solid currentColor;
}

.opl-nav-contents {
	text-align: center;
}

.opl-nav-next {
	text-align: right;
}

.opl-beginner-button,
.opl-site-nav .opl-beginner-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: .62rem 1rem;
	border-radius: 999px;
	background: #e8c995;
	color: #4b2432;
	font-weight: 700;
	text-decoration: none;
	max-width: 330px;
	line-height: 1.25;
	text-align: center;
}

.opl-beginner-button:hover,
.opl-beginner-button:focus {
	background: #fff0c8;
	color: #351923;
}

.opl-beginner-site-bar {
	position: relative;
	z-index: 999;
	padding: .7rem 1rem;
	background: #4b2432;
	text-align: center;
}

.opl-beginner-site-bar a {
	color: #fff;
	font-family: Arial, sans-serif;
	font-weight: 700;
	text-decoration: none;
}

.opl-beginner-main {
	width: min(1180px, calc(100% - 2rem));
	padding: 3rem 0 5rem;
}

.opl-beginner-intro {
	max-width: 820px;
	margin: 0 auto 4rem;
	text-align: center;
}

.opl-beginner-kicker,
.opl-path-stage > header > span {
	color: #9a6c26;
	font-family: Arial, sans-serif;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.opl-beginner-intro h1 {
	margin: .4rem 0 1rem;
	color: #172b35;
	font-size: clamp(2.4rem, 6vw, 4.6rem);
	line-height: 1.05;
}

.opl-beginner-intro > p:last-child {
	font-size: 1.15rem;
	line-height: 1.75;
}

.opl-path-stage {
	margin: 0 0 4.5rem;
}

.opl-path-stage > header {
	max-width: 760px;
	margin-bottom: 1.7rem;
}

.opl-path-stage h2 {
	margin: .35rem 0 .55rem;
	color: #172b35;
	font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.opl-path-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.4rem;
}

.opl-path-card {
	position: relative;
	display: grid;
	grid-template-columns: 130px minmax(0, 1fr);
	gap: 1.25rem;
	padding: 1.25rem;
	border: 1px solid #d8d1c3;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 9px 25px rgba(23, 43, 53, .08);
}

.opl-path-number {
	position: absolute;
	top: -12px;
	left: -10px;
	display: grid;
	width: 34px;
	height: 34px;
	place-items: center;
	border-radius: 50%;
	background: #4b2432;
	color: #fff;
	font-family: Arial, sans-serif;
	font-weight: 700;
}

.opl-path-cover .opl-cover-compact {
	min-height: 185px;
	padding: .75rem;
}

.opl-path-card-copy h3 {
	margin: .1rem 0 .35rem;
	color: #172b35;
	font-size: 1.3rem;
	line-height: 1.2;
}

.opl-path-card-copy > p {
	font-size: .92rem;
	line-height: 1.55;
}

.opl-path-author {
	margin: 0 0 .65rem;
	color: #6b675f;
	font-family: Arial, sans-serif;
	font-size: .82rem !important;
}

.opl-path-button {
	display: inline-block;
	margin-top: .35rem;
}

.opl-path-empty {
	padding: 3rem;
	border-radius: 14px;
	background: #f2eee5;
	text-align: center;
}

.opl-home-hero {
	display: grid;
	min-height: 620px;
	place-items: center;
	padding: 4rem 1rem;
	background: linear-gradient(135deg, #172b35 0%, #243b53 62%, #4b2432 100%);
	color: #fff;
	text-align: center;
}

.opl-home-hero > div { width: min(900px, 92%); }
.opl-home-hero .opl-beginner-kicker { color: #e8c995; }
.opl-home-hero h1 { margin: .5rem 0 1.25rem; font-size: clamp(3rem, 9vw, 6.4rem); line-height: .98; }
.opl-home-hero p:not(.opl-beginner-kicker) { max-width: 760px; margin: 0 auto; font-size: clamp(1.1rem, 2.4vw, 1.4rem); }
.opl-home-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2.2rem; }
.opl-home-primary,
.opl-home-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.25rem; border: 2px solid #e8c995; border-radius: 999px; font-family: Arial, sans-serif; font-size: .9rem; font-weight: 700; text-decoration: none; }
.opl-home-primary { background: #e8c995; color: #351923; }
.opl-home-secondary { background: transparent; color: #fff; }
.opl-home-primary:hover,
.opl-home-secondary:hover { background: #fff0c8; color: #351923; }

.opl-home-section,
.opl-home-rights > div { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.opl-home-section { padding: 5rem 0; }
.opl-home-section > header { margin-bottom: 2rem; }
.opl-home-section h2,
.opl-home-rights h2 { margin: .35rem 0; color: #172b35; font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1.1; }
.opl-home-books { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.opl-home-books article { min-width: 0; }
.opl-home-books a { color: #172b35; text-decoration: none; }
.opl-home-books h3 { margin: .8rem 0 .2rem; font-size: 1.05rem; line-height: 1.25; }
.opl-home-books p { margin: 0; color: #6b675f; font-family: Arial, sans-serif; font-size: .8rem; }
.opl-home-books .opl-cover-compact { min-height: 300px; }

.opl-home-subjects { border-top: 1px solid #d8d1c3; }
.opl-home-subjects > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.opl-home-subjects a { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; border-left: 4px solid #b38a45; background: #fff; color: #172b35; font-weight: 700; text-decoration: none; box-shadow: 0 5px 18px rgba(23,43,53,.06); }
.opl-home-subjects span { color: #6b675f; font-family: Arial, sans-serif; font-size: .75rem; font-weight: 400; white-space: nowrap; }
.opl-home-rights { padding: 5rem 1rem; background: #eae3d5; }
.opl-home-rights > div { max-width: 850px; }
.opl-home-rights a { color: #23576c; font-weight: 700; }
.opl-footer-nav { display: flex; flex-wrap: wrap; gap: .65rem 1.2rem; margin: .75rem 0; }
.opl-footer-nav a { color: #fff; }

.opl-header-inner,
.opl-footer-inner { width: min(94%, 1180px); }
.opl-site-nav { flex-wrap: wrap; }
.opl-search-form { display: flex; width: min(100%, 650px); margin-top: 1.25rem; }
.opl-search-form label { flex: 1; margin: 0; }
.opl-search-form input { width: 100%; min-height: 46px; padding: .7rem .9rem; border: 1px solid #9e978a; border-radius: 7px 0 0 7px; background: #fff; color: #172b35; font: 1rem Arial, sans-serif; }
.opl-search-form button { min-height: 46px; padding: .7rem 1.15rem; border: 0; border-radius: 0 7px 7px 0; background: #b38a45; color: #fff; font: 700 .92rem Arial, sans-serif; cursor: pointer; }
.opl-search-form button:hover,
.opl-search-form button:focus { background: #8f6b30; }
.opl-search-form-compact { width: 245px; margin: 0; }
.opl-search-form-compact input { min-height: 38px; padding: .5rem .7rem; font-size: .86rem; }
.opl-search-form-compact button { min-height: 38px; padding: .5rem .75rem; font-size: .8rem; }

.opl-search-main { width: min(940px, calc(100% - 2rem)); margin: 0 auto; padding: 4rem 0 6rem; }
.opl-search-heading { margin-bottom: 2.5rem; }
.opl-search-heading h1 { margin: .3rem 0 1rem; color: #172b35; font-size: clamp(2.35rem, 6vw, 4rem); line-height: 1.08; }
.opl-search-results { display: grid; gap: 1rem; }
.opl-search-result,
.opl-search-empty { padding: clamp(1.3rem, 4vw, 2rem); border: 1px solid #d8d1c3; border-radius: 12px; background: #fff; box-shadow: 0 8px 25px rgba(23,43,53,.07); }
.opl-search-result h2 { margin: .25rem 0 .45rem; font-size: 1.55rem; }
.opl-search-result h2 a { color: #172b35; text-decoration: none; }
.opl-search-result > p { max-width: 760px; }
.opl-search-type { display: inline-block; margin: 0; padding: .25rem .55rem; border-radius: 99px; background: #eae3d5; color: #534527; font: 700 .72rem Arial, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.opl-search-parent { margin: 0 0 .75rem; color: #6b675f; font-family: Arial, sans-serif; font-size: .88rem; }
.opl-search-parent a { color: #23576c; }

.opl-catalogue-main {
	width: min(1180px, calc(100% - 2rem));
	margin: 0 auto;
	padding: 4rem 0 5rem;
}
.opl-catalogue-heading { max-width: 760px; margin: 0 0 3rem; }
.opl-catalogue-heading h1,
.opl-information-main h1 { margin: .3rem 0 1rem; color: #172b35; font-size: clamp(2.6rem, 7vw, 4.8rem); line-height: 1.05; }
.opl-catalogue-heading > p:last-child { font-size: 1.12rem; }
.opl-catalogue-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.opl-catalogue-card { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 1.25rem; padding: 1.25rem; border: 1px solid #d8d1c3; border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgba(23,43,53,.07); }
.opl-catalogue-card .opl-cover-compact { min-height: 215px; padding: .75rem; }
.opl-catalogue-card h2 { margin: 0 0 .3rem; font-size: 1.35rem; line-height: 1.2; }
.opl-catalogue-card h2 a { color: #172b35; text-decoration: none; }
.opl-catalogue-card p { font-size: .9rem; line-height: 1.55; }
.opl-catalogue-author { margin: 0 0 .65rem; color: #6b675f; font-family: Arial, sans-serif; }
.opl-catalogue-pagination { margin-top: 3rem; }
.opl-catalogue-pagination ul { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.opl-catalogue-pagination a,
.opl-catalogue-pagination span { display: inline-flex; min-width: 42px; min-height: 42px; align-items: center; justify-content: center; padding: .25rem .75rem; border: 1px solid #b9b1a2; border-radius: 6px; background: #fff; color: #23576c; font-family: Arial, sans-serif; text-decoration: none; }
.opl-catalogue-pagination .current { background: #172b35; color: #fff; }

.opl-information-main { width: min(900px, calc(100% - 2rem)); margin: 0 auto; padding: 4rem 0 6rem; }
.opl-information-main article { padding: clamp(1.5rem, 6vw, 4.5rem); border-top: 6px solid #b38a45; border-radius: 8px; background: #fff; box-shadow: 0 10px 34px rgba(23,43,53,.09); }
.opl-information-content { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #d8d1c3; font-size: 1.08rem; }
.opl-information-content p { margin: 0 0 1.4rem; }

@media (max-width: 850px) {
	.opl-home-books { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.opl-home-subjects > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
	.opl-header-inner {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.4rem;
	}

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

	.opl-book-cover {
		width: min(76%, 280px);
		margin: 0 auto;
	}

	.opl-main {
		width: 100%;
		padding: 0;
	}

	.opl-book-article,
	.opl-chapter-article {
		box-shadow: none;
	}

	.opl-chapter-navigation {
		grid-template-columns: 1fr;
	}

	.opl-nav-previous,
	.opl-nav-contents,
	.opl-nav-next {
		text-align: left;
	}

	.opl-site-nav {
		display: flex;
		flex-wrap: wrap;
		gap: .65rem;
	}

	.opl-path-grid,
	.opl-path-card {
		grid-template-columns: 1fr;
	}

	.opl-path-cover {
		width: min(64%, 210px);
	}

	.opl-home-hero { min-height: 520px; }
	.opl-home-books,
	.opl-home-subjects > div { grid-template-columns: 1fr; }
	.opl-home-books { width: min(86%, 360px); margin: 0 auto; }
	.opl-home-actions { flex-direction: column; }
	.opl-catalogue-grid,
	.opl-catalogue-card { grid-template-columns: 1fr; }
	.opl-catalogue-cover { width: min(65%, 230px); margin: 0 auto; }
	.opl-site-nav { align-items: flex-start; }
	.opl-site-nav,
	.opl-search-form-compact { width: 100%; }
	.opl-search-form-compact input { min-width: 0; }
}
