/* Dreamweave Library */

.dwl,
.dwl-related {
	/* Colours and fonts follow the Dreamweave theme where it defines them. */
	--dwl-room: var(--dw-deep, #0a1a3a);
	--dwl-room-2: #14264d;
	--dwl-heading: var(--dw-cream, #f0e0c8);
	--dwl-text: var(--dw-text, #cec7bc);
	--dwl-muted: var(--dw-muted, #a6a0a4);
	--dwl-gold: var(--dw-gold, #d9b98a);
	--dwl-moon: #a9c3e6;
	--dwl-paper: #f6eedf;
	--dwl-ink: #2a2233;
	--dwl-ink-muted: #584f63;
	--dwl-serif: var(--dw-serif, 'Cormorant', 'Cormorant Garamond', Georgia, serif);
	--dwl-sans: var(--dw-sans, 'Karla', system-ui, -apple-system, 'Segoe UI', sans-serif);
}

.dwl {
	--dwl-line: 236px;

	position: relative;
	color: var(--dwl-text);
	background:
		radial-gradient(60rem 30rem at 12% -8%, rgba(169, 195, 230, .14), transparent 60%),
		linear-gradient(180deg, var(--dwl-room-2), var(--dwl-room) 18rem);
	border: 1px solid var(--dw-line, #24345c);
	border-radius: 16px;
	padding: clamp(1.25rem, 3vw, 2.5rem);
	font-family: var(--dwl-sans);
	line-height: 1.6;
}

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

/* ---------- Guard against theme list and paragraph styles ---------- */

.dwl ul.dwl-row,
.dwl .dwl-nav ul {
	margin: 0 !important;
	list-style: none !important;
}

.dwl ul.dwl-row {
	padding: 0 .75rem !important;
}

.dwl .dwl-nav ul {
	padding: 0 !important;
}

.dwl ul.dwl-row > li,
.dwl .dwl-nav li {
	margin: 0 !important;
	list-style: none !important;
	background: none;
}

.dwl ul.dwl-row > li::before,
.dwl .dwl-nav li::before {
	content: none !important;
}

.dwl p {
	padding-bottom: 0;
}

/* Lists inside books and the shelf list keep their own spacing, whatever the theme says. */
.dwl .dwl-reader-body ul,
.dwl .dwl-reader-body ol,
.dwl-single ul.dwl-glance {
	padding: 0 0 0 1.25rem !important;
	margin: 0 0 .9rem !important;
	line-height: inherit !important;
}

.dwl .dwl-reader-body ul.dwl-glance,
.dwl-single ul.dwl-glance {
	padding: .8rem 1rem !important;
	margin: 0 0 1.25rem !important;
	list-style: none !important;
}

.dwl .dwl-contents ul {
	padding: 0 0 0 1.1rem !important;
	margin: 0 !important;
	line-height: inherit !important;
}

/* ---------- Tools: intro, search, shelf links ---------- */

.dwl-tools {
	display: grid;
	gap: 1rem;
	margin-bottom: 2.5rem;
	max-width: 46rem;
}

.dwl-intro {
	margin: 0;
	font-size: 1.05rem;
	color: var(--dwl-text);
}

.dwl-key {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .35rem 1rem;
	margin: 0;
	font-size: .85rem;
	color: var(--dwl-muted);
}

.dwl-key-mark {
	display: inline-block;
	width: 9px;
	height: 14px;
	margin-right: .35rem;
	vertical-align: -2px;
	clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 74%, 0 100%);
}

.dwl-key-lock {
	margin-right: .35rem;
	color: var(--dwl-muted);
	vertical-align: -1px;
}

.dwl-search label {
	display: block;
	font-size: .9rem;
	color: var(--dwl-muted);
	margin-bottom: .3rem;
}

.dwl-search input {
	width: 100%;
	max-width: 26rem;
	font: inherit;
	color: var(--dwl-text);
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(236, 233, 243, .22);
	border-radius: 6px;
	padding: .6rem .8rem;
}

.dwl-search input::placeholder {
	color: rgba(236, 233, 243, .5);
}

.dwl-search input:focus-visible {
	outline: 2px solid var(--dwl-gold);
	outline-offset: 2px;
	border-color: transparent;
}

.dwl-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dwl-nav a {
	display: inline-block;
	padding: .3rem .7rem .3rem .6rem;
	font-size: .9rem;
	color: var(--dwl-text);
	text-decoration: none;
	border-left: 3px solid var(--shelf);
	background: rgba(255, 255, 255, .05);
	border-radius: 0 4px 4px 0;
}

.dwl-nav a:hover {
	background: rgba(255, 255, 255, .1);
}

.dwl-nav a:focus-visible {
	outline: 2px solid var(--dwl-gold);
	outline-offset: 2px;
}

.dwl-empty {
	margin: 0 0 2rem;
	color: var(--dwl-muted);
}

/* ---------- Shelves ---------- */

.dwl-shelf {
	margin: 0 0 3rem;
	scroll-margin-top: 6rem;
}

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

.dwl-shelf-label {
	margin-bottom: .75rem;
	max-width: 40rem;
}

.dwl .dwl-shelf-label h2 {
	margin: 0 0 .15rem;
	padding: 0;
	font-size: clamp(1.25rem, 2.2vw, 1.55rem);
	line-height: 1.25;
	color: var(--dwl-text);
}

.dwl-shelf-label p {
	margin: 0;
	padding: 0;
	color: var(--dwl-muted);
	font-size: .95rem;
}

/*
 * Each wrapped line of books gets its own plank: the row's background repeats
 * one plank per line height, and every book sits in a box exactly that tall.
 */
.dwl-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	margin: 0;
	padding: 0 .75rem;
	list-style: none;
	background-image:
		repeating-linear-gradient(
			to bottom,
			transparent 0,
			transparent calc(var(--dwl-line) - 16px),
			#86707a calc(var(--dwl-line) - 16px),
			#86707a calc(var(--dwl-line) - 15px),
			#54424b calc(var(--dwl-line) - 15px),
			#423540 calc(var(--dwl-line) - 6px),
			#2a2027 calc(var(--dwl-line) - 6px),
			#2a2027 var(--dwl-line)
		),
		repeating-linear-gradient(
			to bottom,
			rgba(8, 9, 22, .55) 0,
			rgba(8, 9, 22, .22) 22px,
			rgba(8, 9, 22, .18) calc(var(--dwl-line) - 30px),
			rgba(8, 9, 22, .38) calc(var(--dwl-line) - 16px),
			transparent calc(var(--dwl-line) - 16px),
			transparent var(--dwl-line)
		);
	border-left: 6px solid #3a2e37;
	border-right: 6px solid #3a2e37;
	border-radius: 2px;
}

.dwl-row > li {
	display: flex;
	align-items: flex-end;
	height: var(--dwl-line);
	margin: 0;
	padding: 0 3px 16px;
	list-style: none;
}

/* ---------- Book spines ---------- */

.dwl-book {
	position: relative;
	display: flex;
	justify-content: center;
	width: var(--w, 44px);
	height: var(--h, 170px);
	padding: 1.1rem 0 .9rem;
	color: #fbf8f2;
	text-decoration: none;
	background-color: var(--shelf);
	background-image:
		linear-gradient(90deg, rgba(0, 0, 0, .28), rgba(255, 255, 255, .08) 22%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .22)),
		linear-gradient(to bottom, transparent 10px, rgba(217, 180, 90, .55) 10px, rgba(217, 180, 90, .55) 11px, transparent 11px, transparent calc(100% - 12px), rgba(217, 180, 90, .55) calc(100% - 12px), rgba(217, 180, 90, .55) calc(100% - 11px), transparent calc(100% - 11px));
	background-color: color-mix(in oklab, var(--shelf), #0e1020 calc(var(--tone, 0) * 11%));
	border-radius: 3px 3px 2px 2px;
	box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25), inset 0 2px 0 rgba(255, 255, 255, .12), 2px 0 0 rgba(0, 0, 0, .2), 0 3px 3px rgba(0, 0, 0, .35);
	transform-origin: 50% 100%;
	transition: transform .18s ease-out, box-shadow .18s ease-out;
}

/* Paper label behind the title */
.dwl-style-1 .dwl-spine-title {
	max-height: 72%;
	align-self: center;
	padding: .45rem .15rem;
	color: #2a2530;
	background: rgba(250, 246, 236, .92);
	border-radius: 2px;
	text-shadow: none;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
}

/* Moon emblem at the foot, title from the top */
.dwl-style-2 {
	padding-bottom: 2rem;
}

.dwl-emblem {
	position: absolute;
	bottom: .8rem;
	left: 50%;
	transform: translateX(-50%);
	color: var(--dwl-gold);
	opacity: .9;
}

.dwl-book:hover {
	transform: translateY(-6px);
	color: #fff;
}

.dwl-book:focus-visible {
	outline: 2px solid var(--dwl-gold);
	outline-offset: 3px;
	transform: translateY(-6px);
}

.dwl-book.is-pulled {
	transform: translateY(-30px) rotate(-3deg);
	box-shadow: 0 14px 22px rgba(0, 0, 0, .35);
	z-index: 2;
}

.dwl-spine-title {
	writing-mode: vertical-rl;
	text-orientation: sideways;
	max-height: 100%;
	overflow: hidden;
	font-size: .8rem;
	line-height: 1.15;
	letter-spacing: .02em;
	text-shadow: 0 1px 1px rgba(0, 0, 0, .3);
	text-overflow: ellipsis;
}

.dwl-lock {
	position: absolute;
	bottom: 1.15rem;
	left: 50%;
	transform: translateX(-50%);
	color: #fbf8f2;
}

.dwl-book.is-locked .dwl-spine-title {
	padding-bottom: 1.25rem;
}

/* Ribbon bookmarks: new, limited time, coming soon */

.dwl-mark {
	position: absolute;
	top: -16px;
	right: 7px;
	width: 9px;
	height: 26px;
	clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
}

.dwl-mark-new {
	background: var(--dwl-gold);
}

.dwl-mark-limited-time {
	background: var(--dwl-moon);
}

.dwl-mark-soon {
	background: #c9c4d6;
}

/* Brass crescent bookend at the end of each shelf */
.dwl ul.dwl-row > li.dwl-bookend {
	padding: 0 0 16px 6px !important;
	color: #b89552;
	filter: drop-shadow(1px 2px 1px rgba(0, 0, 0, .4));
}

.dwl-bookend svg {
	display: block;
}

/* ---------- Out of season ---------- */

.dwl-archive {
	margin-top: 1rem;
	border-top: 1px solid rgba(236, 233, 243, .15);
	padding-top: 1rem;
}

.dwl-archive summary {
	cursor: pointer;
	color: var(--dwl-muted);
	font-size: 1rem;
}

.dwl-archive summary:focus-visible {
	outline: 2px solid var(--dwl-gold);
	outline-offset: 3px;
}

.dwl-archive > p {
	color: var(--dwl-muted);
	font-size: .9rem;
}

.dwl-archive .dwl-book {
	filter: grayscale(.6) brightness(.8);
}

/* ---------- Reading page ---------- */

.dwl-reader {
	width: min(44rem, calc(100vw - 1.5rem));
	max-height: calc(100vh - 2rem);
	margin: auto;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--dwl-ink);
	overflow: visible;
}

.dwl-reader::backdrop {
	background: rgba(14, 16, 32, .74);
}

.dwl-page {
	position: relative;
	max-height: calc(100vh - 2rem);
	overflow-y: auto;
	padding: 2.5rem clamp(1.25rem, 5vw, 3rem) 2rem;
	background:
		linear-gradient(90deg, rgba(0, 0, 0, .07), rgba(0, 0, 0, 0) 2.2rem),
		var(--dwl-paper);
	border-top: 6px solid var(--shelf, var(--dwl-gold));
	border-radius: 4px 4px 8px 8px;
	box-shadow: 0 30px 60px rgba(0, 0, 0, .4);
	line-height: 1.65;
}

.dwl-reader[open] .dwl-page {
	animation: dwl-open .32s cubic-bezier(.2, .8, .2, 1);
}

@keyframes dwl-open {
	from {
		opacity: 0;
		transform: translateY(22px) scale(.985);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.dwl-close {
	position: absolute;
	top: .6rem;
	right: .6rem;
	width: 2.5rem;
	height: 2.5rem;
	font-size: 1.6rem;
	line-height: 1;
	color: var(--dwl-ink-muted);
	background: transparent;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}

.dwl-close:hover {
	background: rgba(0, 0, 0, .06);
	color: var(--dwl-ink);
}

.dwl-close:focus-visible {
	outline: 2px solid var(--shelf, var(--dwl-gold));
	outline-offset: 2px;
}

.dwl-reader-shelf {
	margin: 0 0 .25rem;
	font-size: .9rem;
	color: var(--dwl-ink-muted);
}

.dwl .dwl-reader-title {
	margin: 0 2.5rem .5rem 0;
	padding: 0;
	font-size: clamp(1.5rem, 3.5vw, 2rem);
	line-height: 1.2;
	color: var(--dwl-ink);
}

.dwl-reader-tags {
	margin: 0 0 1.25rem;
	font-size: .9rem;
	color: var(--dwl-ink-muted);
}

.dwl-reader-tags:empty {
	display: none;
}

.dwl-reader-body {
	max-width: 38rem;
	color: var(--dwl-ink);
}

.dwl .dwl-reader-body h3 {
	margin: 1.6rem 0 .4rem;
	padding: 0;
	font-size: 1.15rem;
	line-height: 1.3;
	color: var(--dwl-ink);
}

.dwl .dwl-reader-body p,
.dwl .dwl-reader-body ul {
	margin: 0 0 .9rem;
	padding-bottom: 0;
}

.dwl .dwl-reader-body ul {
	padding-left: 1.25rem;
}

.dwl .dwl-reader-body li {
	margin-bottom: .3rem;
}

.dwl-reader-body a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

.dwl .dwl-reader-body ul.dwl-glance {
	list-style: none;
	padding: .8rem 1rem;
	margin: 0 0 1.25rem;
	background: rgba(44, 47, 87, .06);
	border-left: 3px solid var(--shelf, var(--dwl-gold));
	border-radius: 0 6px 6px 0;
}

.dwl .dwl-reader-body ul.dwl-glance li {
	margin: 0 0 .15rem;
}

.dwl-contents {
	margin: 0 0 1.5rem;
	padding: .8rem 1rem;
	border: 1px solid rgba(37, 34, 45, .12);
	border-radius: 6px;
	font-size: .95rem;
}

.dwl .dwl-contents p {
	margin: 0 0 .35rem;
	color: var(--dwl-ink-muted);
}

.dwl .dwl-contents ul {
	margin: 0;
	padding-left: 1.1rem;
}

.dwl-contents a {
	color: var(--dwl-ink);
}

.dwl-reader-nav {
	display: flex;
	justify-content: space-between;
	gap: .75rem;
	margin-top: 1.25rem;
}

.dwl-reader-nav:empty {
	display: none;
}

.dwl-reader-nav button {
	max-width: 48%;
	padding: .5rem 0;
	font: inherit;
	font-size: .9rem;
	text-align: left;
	color: var(--dwl-ink-muted);
	background: none;
	border: 0;
	cursor: pointer;
}

.dwl-reader-nav button:last-child {
	margin-left: auto;
	text-align: right;
}

.dwl-reader-nav button span {
	display: block;
	color: var(--dwl-ink);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.dwl-reader-nav button:focus-visible {
	outline: 2px solid var(--shelf, var(--dwl-gold));
	outline-offset: 2px;
}

.dwl-ornament {
	display: flex;
	align-items: center;
	gap: .5rem;
	margin: 0 0 1.25rem;
	color: var(--dwl-gold);
}

.dwl-ornament::before,
.dwl-ornament::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(185, 150, 80, .6), transparent);
}

.dwl-reader-body.is-loading {
	min-height: 8rem;
	color: var(--dwl-ink-muted);
}

.dwl-locked-note {
	padding: .9rem 1rem;
	background: rgba(0, 0, 0, .05);
	border-radius: 6px;
}

.dwl-reader-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
	margin-top: 1.75rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(0, 0, 0, .1);
}

.dwl-reader-actions:empty {
	display: none;
}

.dwl-btn {
	display: inline-flex;
	align-items: center;
	padding: .55rem 1rem;
	font: inherit;
	font-size: .95rem;
	color: var(--dwl-ink);
	text-decoration: none;
	background: transparent;
	border: 1px solid rgba(37, 34, 45, .3);
	border-radius: 6px;
	cursor: pointer;
}

.dwl-btn:hover {
	background: rgba(0, 0, 0, .05);
}

.dwl-btn:focus-visible {
	outline: 2px solid var(--shelf, var(--dwl-gold));
	outline-offset: 2px;
}

.dwl-btn-primary {
	color: #fff;
	background: #2c2f57;
	border-color: #2c2f57;
}

.dwl-btn-primary:hover {
	background: #1e2147;
}

/* ---------- Single book page (direct links) ---------- */

.dwl-single ul.dwl-glance {
	background: rgba(127, 127, 127, .08);
	border-left: 3px solid #7d6aa8;
	border-radius: 0 6px 6px 0;
}

.dwl-single .dwl-back {
	font-size: .95rem;
}

.dwl-single .dwl-reader-actions {
	border-top-color: rgba(127, 127, 127, .25);
}

.dwl-single .dwl-btn {
	color: inherit;
	border-color: currentColor;
}

.dwl-single .dwl-btn-primary {
	color: #fff;
	border-color: #2c2f57;
}

/* ---------- Small screens ---------- */

@media (max-width: 600px) {
	.dwl {
		border-radius: 0;
		padding-left: .75rem;
		padding-right: .75rem;
	}

	.dwl ul.dwl-row {
		padding: 0 .25rem !important;
	}

	.dwl-bookend svg {
		width: 30px;
		height: 64px;
	}
}

/* ---------- Calmer motion ---------- */

@media (prefers-reduced-motion: reduce) {
	.dwl-book,
	.dwl-book:hover,
	.dwl-book:focus-visible,
	.dwl-book.is-pulled {
		transition: none;
		transform: none;
	}

	.dwl-reader[open] .dwl-page {
		animation: none;
	}
}

.dwl.is-calm .dwl-book,
.dwl.is-calm .dwl-book:hover,
.dwl.is-calm .dwl-book:focus-visible,
.dwl.is-calm .dwl-book.is-pulled {
	transition: none;
	transform: none;
}

.dwl.is-calm .dwl-reader[open] .dwl-page {
	animation: none;
}

/* ---------- “From the library” panel on other pages ---------- */

.dwl-related {
	--dwl-gold: #d9b45a;
	width: 80%;
	max-width: 1080px;
	margin: 3rem auto;
	box-sizing: border-box;
}

.dwl-related *,
.dwl-related *::before,
.dwl-related *::after {
	box-sizing: border-box;
}

.et_pb_text .dwl-related,
.entry-content .et_pb_section .dwl-related {
	width: 100%;
}

.dwl-related-inner {
	padding: clamp(1.25rem, 3vw, 2rem);
	color: #ece9f3;
	background:
		radial-gradient(40rem 18rem at 10% -20%, rgba(169, 195, 230, .14), transparent 60%),
		#1f2445;
	border-radius: 10px;
	line-height: 1.55;
}

.dwl-related .dwl-related-heading {
	margin: 0 0 .4rem;
	padding: 0;
	font-size: clamp(1.2rem, 2vw, 1.45rem);
	line-height: 1.25;
	color: #ece9f3;
}

.dwl-related .dwl-related-intro {
	max-width: 40rem;
	margin: 0 0 1rem;
	padding: 0;
	color: #c3bfd4;
}

.dwl-related ul.dwl-related-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: .75rem;
	margin: 1rem 0 0 !important;
	padding: 0 !important;
	list-style: none !important;
	line-height: inherit !important;
}

.dwl-related ul.dwl-related-list > li {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.dwl-related ul.dwl-related-list > li::before {
	content: none !important;
}

.dwl-related-list a {
	display: flex;
	gap: .85rem;
	height: 100%;
	padding: .8rem .9rem .8rem .8rem;
	color: #ece9f3;
	text-decoration: none;
	background: rgba(255, 255, 255, .05);
	border-radius: 6px;
	transition: background-color .15s ease-out;
}

.dwl-related-list a:hover {
	background: rgba(255, 255, 255, .1);
}

.dwl-related-list a:focus-visible,
.dwl-related-button:focus-visible {
	outline: 2px solid var(--dwl-gold);
	outline-offset: 2px;
}

/* A slim book spine beside each title, in its shelf’s colour. */
.dwl-related-spine {
	flex: 0 0 14px;
	min-height: 3.2rem;
	background-color: var(--shelf);
	background-image:
		linear-gradient(90deg, rgba(0, 0, 0, .25), rgba(255, 255, 255, .1) 40%, rgba(0, 0, 0, .2)),
		linear-gradient(to bottom, transparent 6px, rgba(217, 180, 90, .7) 6px, rgba(217, 180, 90, .7) 7px, transparent 7px, transparent calc(100% - 8px), rgba(217, 180, 90, .7) calc(100% - 8px), rgba(217, 180, 90, .7) calc(100% - 7px), transparent calc(100% - 7px));
	border-radius: 2px;
}

.dwl-related-text {
	display: flex;
	flex-direction: column;
	gap: .2rem;
}

.dwl-related-title {
	font-weight: 600;
	color: #ece9f3;
}

.dwl-related-excerpt {
	font-size: .9rem;
	color: #b6b2c9;
}

.dwl-related .dwl-related-more {
	margin: 1.25rem 0 0;
	padding: 0;
}

.dwl-related-button {
	display: inline-block;
	padding: .55rem 1.1rem;
	color: #1f2445;
	font-weight: 600;
	text-decoration: none;
	background: var(--dwl-gold);
	border-radius: 6px;
}

.dwl-related-button:hover {
	color: #1f2445;
	background: #e6c574;
}

@media (max-width: 600px) {
	.dwl-related {
		width: auto;
		margin-left: 1rem;
		margin-right: 1rem;
	}
}


/* ==========================================================================
   Type and colour (v1.3)
   The theme colours every paragraph and list item in page content with its
   pale body colour, which is right on the dark site but unreadable on the
   paper reading page. These rules are specific enough to win in both places.
   Cormorant is used only for headings, at sizes and weights where its fine
   strokes read well; Karla carries everything else. Weights match the ones
   the theme loads: Cormorant 500/600, Karla 400/500/700.
   ========================================================================== */

/* ---- In the library room (dark) ---- */
.dwl .dwl-intro,
.dwl .dwl-shelf-label p,
.dwl .dwl-archive > p,
.dwl .dwl-empty {
	color: var(--dwl-text);
	font-family: var(--dwl-sans);
	font-size: 1.05rem;
	line-height: 1.6;
}

.dwl .dwl-key,
.dwl .dwl-search label {
	color: var(--dwl-text);
	font-family: var(--dwl-sans);
	font-size: .95rem;
}

.dwl .dwl-shelf-label h2 {
	font-family: var(--dwl-serif);
	font-weight: 600;
	font-size: clamp(1.65rem, 2.6vw, 2.1rem);
	line-height: 1.15;
	letter-spacing: .005em;
	color: var(--dwl-heading);
}

.dwl .dwl-nav a {
	font-family: var(--dwl-sans);
	font-weight: 500;
	font-size: .95rem;
	color: var(--dwl-heading);
}

.dwl .dwl-search input {
	font-family: var(--dwl-sans);
	font-size: 1rem;
	color: var(--dwl-heading);
}

.dwl .dwl-archive summary {
	font-family: var(--dwl-sans);
	font-weight: 500;
	color: var(--dwl-text);
}

/* Spine titles: Karla 500, on spine colours dark enough for at least 5:1 contrast. */
.dwl .dwl-spine-title {
	font-family: var(--dwl-sans);
	font-weight: 500;
	font-size: .82rem;
	letter-spacing: .015em;
	color: #fff8ec;
}

.dwl .dwl-style-1 .dwl-spine-title {
	color: var(--dwl-ink);
	background: #faf3e3;
}

/* ---- On the paper reading page (light) ---- */
.dwl .dwl-reader,
.dwl .dwl-reader p,
.dwl .dwl-reader li,
.dwl .dwl-reader td,
.dwl .dwl-reader span,
.dwl .dwl-reader strong,
.dwl .dwl-reader em {
	color: var(--dwl-ink);
}

.dwl .dwl-reader-body,
.dwl .dwl-reader-body p,
.dwl .dwl-reader-body li {
	font-family: var(--dwl-sans);
	font-size: 1.0625rem;
	line-height: 1.7;
}

.dwl .dwl-reader-body strong {
	font-weight: 700;
}

.dwl .dwl-reader .dwl-reader-title {
	font-family: var(--dwl-serif);
	font-weight: 600;
	font-size: clamp(2rem, 4.2vw, 2.6rem);
	line-height: 1.1;
	letter-spacing: .003em;
	color: var(--dwl-ink);
}

.dwl .dwl-reader .dwl-reader-body h3 {
	margin: 1.9rem 0 .5rem;
	font-family: var(--dwl-serif);
	font-weight: 600;
	font-size: 1.6rem;
	line-height: 1.2;
	color: var(--dwl-ink);
}

.dwl .dwl-reader p.dwl-reader-shelf,
.dwl .dwl-reader p.dwl-reader-tags {
	font-family: var(--dwl-sans);
	font-size: .95rem;
	line-height: 1.45;
	color: var(--dwl-ink-muted);
}

.dwl .dwl-reader p.dwl-reader-shelf {
	font-weight: 500;
}

.dwl .dwl-reader .dwl-contents p {
	font-family: var(--dwl-sans);
	font-weight: 500;
	font-size: .95rem;
	color: var(--dwl-ink-muted);
}

.dwl .dwl-reader .dwl-contents li,
.dwl .dwl-reader .dwl-contents a {
	font-size: 1rem;
	color: var(--dwl-ink);
}

.dwl .dwl-reader-body a,
.dwl .dwl-reader-body a:hover {
	color: #5a3f8a;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.dwl .dwl-reader .dwl-locked-note {
	background: rgba(42, 34, 51, .07);
}

.dwl .dwl-reader .dwl-btn {
	font-family: var(--dwl-sans);
	font-weight: 500;
	font-size: .95rem;
	color: var(--dwl-ink);
	border-color: rgba(42, 34, 51, .35);
}

.dwl .dwl-reader a.dwl-btn-primary,
.dwl .dwl-reader a.dwl-btn-primary:hover {
	color: #fff8ec;
	background: #1d2a52;
	border-color: #1d2a52;
}

.dwl .dwl-reader a.dwl-btn-primary:hover {
	background: #13203f;
}

.dwl .dwl-reader-nav button {
	font-family: var(--dwl-sans);
	font-size: .9rem;
	color: var(--dwl-ink-muted);
}

.dwl .dwl-reader-nav button span {
	font-weight: 500;
	font-size: 1rem;
	color: var(--dwl-ink);
}

.dwl .dwl-close,
.dwl .dwl-close span {
	font-family: var(--dwl-sans);
	font-weight: 400;
	color: var(--dwl-ink-muted);
}

/* ---- "From the library" panel on other pages (dark) ---- */
.dwl-related .dwl-related-inner {
	font-family: var(--dwl-sans);
	background:
		radial-gradient(40rem 18rem at 10% -20%, rgba(169, 195, 230, .12), transparent 60%),
		var(--dwl-room);
	border: 1px solid var(--dw-line, #24345c);
	border-radius: 16px;
}

.dwl-related .dwl-related-heading {
	font-family: var(--dwl-serif);
	font-weight: 600;
	font-size: clamp(1.65rem, 2.6vw, 2.1rem);
	line-height: 1.15;
	color: var(--dwl-heading);
}

.dwl-related p.dwl-related-intro {
	font-size: 1.05rem;
	line-height: 1.6;
	color: var(--dwl-text);
}

.dwl-related .dwl-related-title {
	font-family: var(--dwl-sans);
	font-weight: 700;
	font-size: 1rem;
	color: var(--dwl-heading);
}

.dwl-related .dwl-related-excerpt {
	font-size: .92rem;
	line-height: 1.5;
	color: var(--dwl-text);
}

.dwl-related a.dwl-related-button,
.dwl-related a.dwl-related-button:hover {
	font-family: var(--dwl-sans);
	font-weight: 700;
	color: var(--dw-night, #010f2a);
	background: var(--dwl-gold);
}

.dwl-related a.dwl-related-button:hover {
	background: var(--dw-gold-light, #ebd3a8);
}

/* ---- Single book page, inside the theme's dark layout ---- */
.dwl-single .dwl-btn {
	font-family: var(--dwl-sans, 'Karla', system-ui, sans-serif);
	font-weight: 500;
}

.dwl-single .dwl-btn-primary {
	color: var(--dw-night, #010f2a);
	background: var(--dw-gold, #d9b98a);
	border-color: var(--dw-gold, #d9b98a);
}


/* ==========================================================================
   Dreamweave Circle books (v1.4)
   A gold frame and a gold seal at the foot of the spine; a padlock above the
   seal for visitors who aren't members. Explained in the library introduction.
   ========================================================================== */

.dwl .dwl-book.is-circle {
	padding-bottom: 2.2rem;
	box-shadow:
		inset 0 0 0 2px var(--dwl-gold),
		inset 0 0 0 4px rgba(10, 26, 58, .45),
		2px 0 0 rgba(0, 0, 0, .2),
		0 3px 3px rgba(0, 0, 0, .35);
}

.dwl .dwl-book.is-circle.is-locked {
	padding-bottom: 3.45rem;
}

.dwl .dwl-book.is-circle .dwl-spine-title {
	padding-bottom: 0;
}

.dwl-book .dwl-seal {
	position: absolute;
	bottom: .7rem;
	left: 50%;
	transform: translateX(-50%);
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .45));
}

.dwl-book.is-circle .dwl-lock {
	bottom: 2.15rem;
	color: var(--dw-gold-light, #ebd3a8);
}

/* The note in the library introduction */
.dwl .dwl-circle-note {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	max-width: 46rem;
	padding: 1rem 1.15rem;
	background: rgba(217, 185, 138, .08);
	border: 1px solid rgba(217, 185, 138, .45);
	border-radius: 12px;
}

.dwl .dwl-circle-note .dwl-seal-note {
	flex: 0 0 auto;
	margin-top: .15rem;
}

.dwl .dwl-circle-note p {
	margin: 0 0 .45rem;
	font-family: var(--dwl-sans);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--dwl-text);
}

.dwl .dwl-circle-note p:last-child {
	margin-bottom: 0;
}

.dwl .dwl-circle-note p.dwl-circle-note-heading {
	margin-bottom: .25rem;
	font-family: var(--dwl-serif);
	font-weight: 600;
	font-size: 1.45rem;
	line-height: 1.2;
	color: var(--dwl-heading);
}

.dwl .dwl-circle-note a {
	color: var(--dwl-gold);
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.dwl .dwl-key-seal {
	margin-right: .35rem;
	vertical-align: -3px;
}

/* The banner at the top of a Circle book */
.dwl-reader-circle[hidden] {
	display: none;
}

.dwl-circle-banner {
	display: flex;
	align-items: flex-start;
	gap: .9rem;
	margin: 0 0 1.25rem;
	padding: .95rem 1.1rem;
	background: #13234a;
	border: 1px solid var(--dwl-gold, #d9b98a);
	border-radius: 10px;
}

.dwl-circle-banner .dwl-seal-banner {
	flex: 0 0 auto;
}

.dwl .dwl-reader .dwl-circle-banner p,
.dwl-single .dwl-circle-banner p {
	margin: 0;
	font-family: var(--dwl-sans, 'Karla', system-ui, sans-serif);
	font-size: 1rem;
	line-height: 1.55;
	color: #f0e0c8;
}

.dwl .dwl-reader .dwl-circle-banner p.dwl-circle-banner-heading,
.dwl-single .dwl-circle-banner p.dwl-circle-banner-heading {
	margin-bottom: .15rem;
	font-family: var(--dwl-serif, 'Cormorant', 'Cormorant Garamond', Georgia, serif);
	font-weight: 600;
	font-size: 1.35rem;
	line-height: 1.2;
	color: #f0e0c8;
}

.dwl .dwl-reader .dwl-circle-banner p.dwl-circle-banner-link,
.dwl-single .dwl-circle-banner p.dwl-circle-banner-link {
	margin-top: .5rem;
}

.dwl .dwl-reader .dwl-circle-banner a,
.dwl-single .dwl-circle-banner a {
	display: inline-block;
	padding: .4rem .9rem;
	font-weight: 700;
	font-size: .95rem;
	color: #0a1a3a;
	text-decoration: none;
	background: var(--dwl-gold, #d9b98a);
	border-radius: 6px;
}

.dwl .dwl-reader .dwl-circle-banner a:hover,
.dwl-single .dwl-circle-banner a:hover {
	background: #ebd3a8;
	color: #0a1a3a;
}

/* "Circle members" beside titles in lists and panels */
.dwl-circle-tag {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	font-family: var(--dwl-sans, 'Karla', system-ui, sans-serif);
	font-weight: 500;
	font-size: .85rem;
	color: #9a7b45;
	white-space: nowrap;
}

.dwl-related .dwl-circle-tag {
	color: var(--dwl-gold, #d9b98a);
}

.dwl .dwl-reader .dwl-circle-tag {
	color: #6e5428;
}

.dwl .dwl-reader p.dwl-locked-note,
.dwl-single p.dwl-locked-note {
	margin: 0 0 .9rem;
	padding: .8rem 1rem;
	border-radius: 6px;
}
