/* Theme Name: EETS Publications
Theme URI: https://eets.decipherable.ai
Author: Anthony W. Harris
Description: Early English Text Society List of Publications — parchment, crimson and gold with animated bookshelf. WordPress port of the static eetspubs site.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: eetspubs
*/
/* Early English Text Society — List of Publications 2026
   Redesigned stylesheet: parchment, crimson & gold, with motion. */

:root {
	--ink: #2e2a24;
	--faded: #6b6155;
	--red: #a62121;
	--red-dark: #7e1717;
	--slate: #445971;
	--gold: #b08d2f;
	--gold-bright: #d9b45c;
	--parchment: #f3ede0;
	--vellum: #fdfbf5;
	--cover: #6d4a2f;
	--cover-dark: #4e3018;
	--shadow-soft: 0 2px 6px rgba(62, 44, 24, 0.08), 0 12px 32px rgba(62, 44, 24, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	background:
		radial-gradient(ellipse at 15% -10%, rgba(176, 141, 47, 0.10), transparent 55%),
		radial-gradient(ellipse at 90% 0%, rgba(68, 89, 113, 0.08), transparent 50%),
		repeating-linear-gradient(-45deg, rgba(109, 74, 47, 0.016) 0 2px, transparent 2px 6px),
		var(--parchment);
	color: var(--ink);
	font-family: georgia, "Palatino Linotype", Palatino, serif;
	font-size: 100%;
	margin: 0;
	overflow-y: scroll;
	overflow-x: hidden;
}

::selection { background: var(--red); color: #fff; }

a:link, a:visited { color: var(--red); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--slate); }

/* body fade for page transitions (JS adds the classes) */
body.fx { opacity: 0; }
body.fx-in { opacity: 1; transition: opacity 0.45s ease; }
body.fx-out { opacity: 0; transition: opacity 0.28s ease; }

/* thin reading-progress bar */
#progressbar {
	position: fixed; top: 0; left: 0; height: 3px; width: 0;
	background: linear-gradient(90deg, var(--red-dark), var(--red) 60%, var(--gold-bright));
	z-index: 200;
	box-shadow: 0 0 8px rgba(166, 33, 33, 0.6);
}

h1, h2, h3 { font-weight: normal; margin: 1.35em 55px 0.75em 55px; color: var(--slate); }
h3 { margin: 1.5em 55px 0 55px; }

h2 {
	font-size: 175%;
	font-variant: small-caps;
	letter-spacing: 0.04em;
}
h2::after {
	content: "";
	display: block;
	width: 72px; height: 3px;
	margin-top: 0.3em;
	background: linear-gradient(90deg, var(--red), var(--gold-bright));
	border-radius: 2px;
}

p { margin: 1em 55px; line-height: 1.85em; font-size: 105%; }

#overcoat {
	width: 1020px;
	max-width: 96%;
	margin: 0 auto;
	padding: 0;
	text-align: center;
}

#banner {
	max-width: 92%;
	height: auto;
	border: 0;
	margin-top: 22px;
	padding: 16px 26px;
	background: #fff;
	border-radius: 8px 8px 0 0;
	box-shadow: var(--shadow-soft);
	transition: transform 0.4s ease;
}
a:hover > #banner { transform: translateY(-2px); }

/* ---- navigation: sticky, blurred, animated underlines ---- */

#navigation {
	position: sticky;
	top: 0;
	z-index: 100;
	width: 100%;
	background: rgba(253, 251, 245, 0.88);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	margin: 0;
	padding: 0;
	border-bottom: 2px solid var(--red);
	box-shadow: 0 6px 18px rgba(62, 44, 24, 0.08);
}

#navigation ul { margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; list-style: none; }
#navigation ul li { margin: 0; padding: 0; }

#navigation ul li a {
	display: inline-block;
	position: relative;
	text-decoration: none;
	padding: 13px 12px;
	color: var(--slate);
	letter-spacing: 0.02em;
	font-size: 100%;
	transition: color 0.25s ease;
}

#navigation ul li a::after {
	content: "";
	position: absolute;
	left: 12px; right: 12px; bottom: 7px;
	height: 2px;
	background: var(--red);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s ease;
}

#navigation ul li a:hover { color: var(--red); }
#navigation ul li a:hover::after { transform: scaleX(1); }

#navigation ul li a.current { color: var(--red); font-weight: bold; }
#navigation ul li a.current::after { transform: scaleX(1); }

/* ---- main panel ---- */

#waistcoat {
	text-align: left;
	background: var(--vellum);
	width: 100%;
	padding-bottom: 30px;
	border: 1px solid #e2d8c3;
	border-top: 0;
	border-radius: 0 0 8px 8px;
	margin-bottom: 34px;
	box-shadow: var(--shadow-soft);
	overflow: clip;
}

.clear { clear: both; }

/* ---- scroll-reveal (JS adds .rv, then .rv-on) ---- */

.rv { opacity: 0; transform: translateY(22px); }
.rv-on { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.8, 0.3, 1); }

/* ---- title page / hero ---- */

.titlepage {
	text-align: center;
	padding: 44px 20px 34px 20px;
	background:
		radial-gradient(ellipse at 50% 0%, rgba(176, 141, 47, 0.12), transparent 65%);
	border-bottom: 1px solid #eee4cf;
	position: relative;
}

.titlepage .device {
	width: 130px; height: auto;
	mix-blend-mode: multiply;
	animation: devicefloat 7s ease-in-out infinite;
	filter: drop-shadow(0 10px 14px rgba(62, 44, 24, 0.25));
}
@keyframes devicefloat {
	0%, 100% { transform: translateY(0) rotate(-1deg); }
	50% { transform: translateY(-9px) rotate(1.4deg); }
}

.doctitle {
	margin: 0.6em 20px 0 20px;
	font-size: 250%;
	letter-spacing: 0.08em;
	font-variant: small-caps;
	background: linear-gradient(100deg, var(--red-dark), var(--red) 35%, var(--gold) 60%, var(--red) 85%);
	background-size: 250% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: var(--red);
	animation: inkshimmer 9s ease-in-out infinite;
}
@keyframes inkshimmer {
	0%, 100% { background-position: 0% 0; }
	50% { background-position: 100% 0; }
}

.subtitle { margin-top: 0.5em; color: var(--faded); font-style: italic; letter-spacing: 0.15em; }
.subtitle::before { content: "❦  "; color: var(--gold); font-style: normal; }
.subtitle::after { content: "  ❦"; color: var(--gold); font-style: normal; }

/* illuminated drop capital on the first paragraph after a heading */
.dropcap::first-letter {
	font-size: 335%;
	float: left;
	line-height: 0.82;
	padding: 0.06em 0.12em 0 0;
	color: var(--red);
	font-family: "Palatino Linotype", Palatino, georgia, serif;
	text-shadow: 2px 2px 0 rgba(176, 141, 47, 0.35);
}

/* ---- homepage series cards ---- */

.seriescards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
	margin: 2em 55px 1em 55px;
}

.seriescard {
	position: relative;
	display: block;
	padding: 26px 20px 20px 20px;
	background: linear-gradient(160deg, #fffef9, #f8f2e3);
	border: 1px solid #e5dbc4;
	border-radius: 8px;
	text-align: center;
	overflow: hidden;
	transition: transform 0.35s cubic-bezier(0.22, 0.8, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.seriescard:hover {
	transform: translateY(-7px);
	box-shadow: 0 18px 40px rgba(62, 44, 24, 0.18);
	border-color: var(--gold);
}
.seriescard::before {
	content: "";
	position: absolute;
	top: 0; left: -80%;
	width: 55%; height: 100%;
	background: linear-gradient(105deg, transparent, rgba(217, 180, 92, 0.22), transparent);
	transform: skewX(-20deg);
	transition: left 0.7s ease;
}
.seriescard:hover::before { left: 130%; }

/* a tiny stack of spines drawn in CSS */
.minishelf { display: flex; justify-content: center; align-items: flex-end; gap: 3px; height: 54px; margin-bottom: 14px; }
.minishelf span {
	display: block;
	width: 11px;
	background: linear-gradient(180deg, #7c5636, var(--cover) 30%, var(--cover-dark));
	border-radius: 2px 2px 0 0;
	box-shadow: inset -2px 0 3px rgba(0, 0, 0, 0.35), inset 1px 1px 1px rgba(255, 235, 190, 0.25);
	transition: transform 0.3s ease;
}
.minishelf span::after { content: ""; }
.minishelf span:nth-child(1) { height: 44px; }
.minishelf span:nth-child(2) { height: 52px; }
.minishelf span:nth-child(3) { height: 47px; transform: rotate(6deg); transform-origin: bottom; }
.minishelf span:nth-child(4) { height: 50px; }
.minishelf span:nth-child(5) { height: 42px; }
.seriescard:hover .minishelf span { transform: translateY(-4px); }
.seriescard:hover .minishelf span:nth-child(3) { transform: rotate(0deg) translateY(-4px); }

.seriescard .sc-name {
	display: block;
	font-variant: small-caps;
	letter-spacing: 0.06em;
	font-size: 122%;
	color: var(--slate);
	margin-bottom: 4px;
}
.seriescard .sc-desc { display: block; color: var(--faded); font-size: 90%; font-style: italic; line-height: 1.5; }
.seriescard .sc-count { display: block; margin-top: 12px; color: var(--red); font-size: 96%; letter-spacing: 0.04em; }

/* ---- officers & council ---- */

p.officer { margin-bottom: 0.4em; line-height: 1.5em; }
ul.council {
	margin: 0.5em 55px 1em 55px;
	padding: 0;
	list-style: none;
	columns: 2;
	line-height: 1.85em;
	font-size: 105%;
}

/* gold initial medallion */
.roundel {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px; height: 52px;
	flex: 0 0 52px;
	border-radius: 50%;
	background:
		radial-gradient(circle at 32% 28%, #f0d9a0, var(--gold-bright) 40%, var(--gold) 75%, #8a6a1e);
	color: #5c4409;
	font-variant: small-caps;
	font-size: 120%;
	letter-spacing: 0.05em;
	text-shadow: 0 1px 0 rgba(255, 245, 215, 0.7);
	box-shadow:
		inset 0 2px 4px rgba(255, 248, 224, 0.8),
		inset 0 -3px 6px rgba(90, 62, 10, 0.45),
		0 4px 10px rgba(62, 44, 24, 0.25);
	border: 1px solid #a5822a;
}

.officercards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin: 1.6em 55px 1em 55px;
}

.officercard {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 4px;
	padding: 26px 22px 22px 22px;
	background: linear-gradient(160deg, #fffef9, #f8f2e3);
	border: 1px solid #e5dbc4;
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.35s cubic-bezier(0.22, 0.8, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.officercard:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 36px rgba(62, 44, 24, 0.16);
	border-color: var(--gold);
}
.officercard::before {
	content: "";
	position: absolute;
	top: 0; left: -80%;
	width: 55%; height: 100%;
	background: linear-gradient(105deg, transparent, rgba(217, 180, 92, 0.20), transparent);
	transform: skewX(-20deg);
	transition: left 0.7s ease;
	pointer-events: none;
}
.officercard:hover::before { left: 130%; }
.officercard:hover .roundel { transform: rotate(-6deg) scale(1.06); }
.officercard .roundel { margin-bottom: 8px; transition: transform 0.35s ease; }

.oc-role {
	font-variant: small-caps;
	letter-spacing: 0.14em;
	font-size: 84%;
	color: var(--gold);
}
.oc-role::before { content: "— "; color: #d9c896; }
.oc-role::after { content: " —"; color: #d9c896; }
.oc-name { font-size: 122%; color: var(--slate); }
.oc-addr { font-size: 88%; color: var(--faded); font-style: italic; line-height: 1.6; }

ul.councilgrid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
	gap: 12px;
	margin: 1.2em 55px 1.5em 55px;
	padding: 0;
	list-style: none;
}
ul.councilgrid li {
	display: flex;
	align-items: center;
	gap: 13px;
	padding: 9px 14px;
	background: #fffef9;
	border: 1px solid #eee4cf;
	border-radius: 40px;
	font-size: 98%;
	color: var(--ink);
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
ul.councilgrid li:hover {
	transform: translateX(5px);
	border-color: var(--gold);
	box-shadow: 0 6px 16px rgba(62, 44, 24, 0.12);
}
ul.councilgrid .roundel { width: 38px; height: 38px; flex-basis: 38px; font-size: 88%; }

p.ascrib { float: right; font-style: italic; }

/* ---- publications: shared ---- */

a.serieslink { font-size: 55%; letter-spacing: normal; font-variant: normal; }
p.seriesnote { font-size: 92%; font-style: italic; color: var(--faded); }

/* stats strip (injected by JS) */
.statstrip {
	display: flex;
	justify-content: center;
	gap: 48px;
	margin: 1.8em 55px 0 55px;
	padding: 18px 10px;
	background: linear-gradient(160deg, #fbf6ea, #f4ecd8);
	border: 1px solid #e5dbc4;
	border-radius: 8px;
	text-align: center;
	flex-wrap: wrap;
}
.statstrip .stat { min-width: 110px; }
.statstrip .stat b {
	display: block;
	font-size: 210%;
	font-weight: normal;
	color: var(--red);
	font-variant-numeric: tabular-nums;
	line-height: 1.15;
}
.statstrip .stat span {
	display: block;
	font-size: 82%;
	color: var(--faded);
	font-variant: small-caps;
	letter-spacing: 0.1em;
}

/* filter bar + view toggle */
.filterbar { margin: 1.6em 55px 0 55px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.filterbar input {
	flex: 1 1 300px;
	box-sizing: border-box;
	font-family: inherit;
	font-size: 105%;
	padding: 10px 14px;
	border: 1px solid #d8ccb2;
	border-radius: 24px;
	background: #fff;
	color: var(--ink);
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.filterbar input:focus {
	outline: none;
	border-color: var(--red);
	box-shadow: 0 0 0 4px rgba(166, 33, 33, 0.12);
}
#filtercount { flex-basis: 100%; margin-top: 0.2em; font-size: 90%; color: var(--faded); font-style: italic; min-height: 1.2em; }

.sortwrap {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}
.sortwrap > span {
	font-variant: small-caps;
	letter-spacing: 0.08em;
	font-size: 90%;
	color: var(--faded);
}
.sortsel {
	font-family: inherit;
	font-size: 92%;
	padding: 9px 14px;
	border: 1px solid #d8ccb2;
	border-radius: 24px;
	background: #fff;
	color: var(--ink);
	cursor: pointer;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.sortsel:hover { border-color: var(--red); }
.sortsel:focus {
	outline: none;
	border-color: var(--red);
	box-shadow: 0 0 0 4px rgba(166, 33, 33, 0.12);
}

.viewtoggle { display: flex; border: 1px solid #d8ccb2; border-radius: 24px; overflow: hidden; background: #fff; }
.viewtoggle button {
	font-family: inherit;
	font-size: 90%;
	font-variant: small-caps;
	letter-spacing: 0.06em;
	padding: 9px 16px;
	border: 0;
	background: transparent;
	color: var(--faded);
	cursor: pointer;
	transition: background 0.3s ease, color 0.3s ease;
}
.viewtoggle button.on { background: var(--red); color: #fff; }
.viewtoggle button:not(.on):hover { color: var(--red); }

.noresults {
	display: none;
	margin: 2.5em 55px;
	text-align: center;
	color: var(--faded);
	font-style: italic;
}
.noresults .fleuron { display: block; font-size: 200%; color: var(--gold); margin-bottom: 0.2em; font-style: normal; }

/* ---- classic list view ---- */

.pub { margin: 0 55px 0.9em 55px; }
.pub p { margin: 0; }
p.pubhead { line-height: 1.5em; }
.pubnum { color: var(--slate); font-weight: bold; }
a.pubtitle:hover { text-decoration: underline; color: var(--red); }
.star { color: var(--red); font-weight: bold; }
p.pubdetail {
	font-size: 92%;
	color: var(--faded);
	line-height: 1.5em;
	padding-left: 1.6em;
}
.isbn { font-size: 92%; letter-spacing: 0.03em; }

/* ---- THE BOOKSHELF ---- */

.bookshelf {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
	gap: 34px 26px;
	margin: 2.2em 40px 1em 40px;
	perspective: 1400px;
}

.bookcard {
	position: relative;
	border: 0;
	padding: 0;
	background: transparent;
	font-family: inherit;
	text-align: center;
	cursor: pointer;
	content-visibility: auto;
	contain-intrinsic-size: 158px 300px;
	-webkit-tap-highlight-color: transparent;
}

/* staggered entrance */
.bookshelf.dealt .bookcard { animation: bookdeal 0.55s cubic-bezier(0.22, 0.8, 0.3, 1) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes bookdeal {
	from { opacity: 0; transform: translateY(34px) rotateX(18deg); }
	to { opacity: 1; transform: none; }
}
.bookcard.filtered-out { display: none; }

.book {
	position: relative;
	width: 100%;
	aspect-ratio: 2 / 3;
	border-radius: 3px 8px 8px 3px;
	background:
		radial-gradient(ellipse at 30% 20%, rgba(255, 226, 170, 0.14), transparent 60%),
		repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.05) 0 1px, transparent 1px 3px),
		linear-gradient(155deg, #7c5636 0%, var(--cover) 45%, var(--cover-dark) 100%);
	box-shadow:
		inset 6px 0 10px -4px rgba(0, 0, 0, 0.55),   /* spine hinge */
		inset -3px 0 6px -3px rgba(255, 240, 200, 0.25),
		2px 3px 0 #e9e2cf, 4px 5px 0 #d9d0b8, 6px 7px 0 #cabfa4,  /* page block */
		10px 14px 26px rgba(62, 44, 24, 0.35);
	transform-style: preserve-3d;
	transition: transform 0.45s cubic-bezier(0.22, 0.8, 0.3, 1), box-shadow 0.45s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	padding: 11% 9%;
	overflow: hidden;
}

/* gold frame tooled into the cover */
.book::before {
	content: "";
	position: absolute;
	inset: 6%;
	border: 1px solid rgba(217, 180, 92, 0.55);
	outline: 1px solid rgba(217, 180, 92, 0.25);
	outline-offset: 3px;
	border-radius: 2px;
	pointer-events: none;
}

/* light sweep on hover */
.book::after {
	content: "";
	position: absolute;
	top: 0; left: -90%;
	width: 60%; height: 100%;
	background: linear-gradient(105deg, transparent, rgba(255, 240, 200, 0.28), transparent);
	transform: skewX(-18deg);
	transition: left 0.65s ease;
	pointer-events: none;
}

.bookcard:hover .book, .bookcard:focus-visible .book {
	transform: rotateY(-14deg) rotateX(4deg) translateY(-9px) scale(1.04);
	box-shadow:
		inset 6px 0 10px -4px rgba(0, 0, 0, 0.55),
		inset -3px 0 6px -3px rgba(255, 240, 200, 0.25),
		2px 3px 0 #e9e2cf, 4px 5px 0 #d9d0b8, 6px 7px 0 #cabfa4,
		22px 30px 44px rgba(62, 44, 24, 0.42);
}
.bookcard:hover .book::after, .bookcard:focus-visible .book::after { left: 140%; }
.bookcard:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; border-radius: 6px; }

.book-num {
	position: relative;
	color: var(--gold-bright);
	font-size: 78%;
	letter-spacing: 0.14em;
	font-variant: small-caps;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.6);
	padding-bottom: 3px;
	border-bottom: 1px solid rgba(217, 180, 92, 0.45);
	white-space: nowrap;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
}

.book-title {
	position: relative;
	color: #f3e2b8;
	font-size: 76%;
	line-height: 1.45;
	font-variant: small-caps;
	letter-spacing: 0.03em;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
	display: -webkit-box;
	-webkit-line-clamp: 5;
	-webkit-box-orient: vertical;
	overflow: hidden;
	max-height: 7.3em;
}

.book-device {
	position: relative;
	width: 34%;
	height: auto;
	mix-blend-mode: multiply;
	opacity: 0.75;
	filter: sepia(1) saturate(0.6) brightness(0.9);
	border-radius: 50% 50% 50% 50% / 42% 42% 58% 58%;
}

.book-ed {
	position: relative;
	color: rgba(243, 226, 184, 0.8);
	font-size: 66%;
	font-style: italic;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.book-year {
	display: block;
	margin-top: 12px;
	color: var(--faded);
	font-size: 84%;
	letter-spacing: 0.08em;
	font-variant-numeric: tabular-nums;
}

/* superseded / cross-reference "ghost" volumes */
.bookcard.ghost .book {
	background:
		repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.03) 0 1px, transparent 1px 3px),
		linear-gradient(155deg, #cfc4ad 0%, #bfb298 45%, #a2937a 100%);
	box-shadow:
		inset 6px 0 10px -4px rgba(0, 0, 0, 0.3),
		2px 3px 0 #e9e2cf, 4px 5px 0 #ddd4bd,
		8px 10px 18px rgba(62, 44, 24, 0.2);
}
.bookcard.ghost .book-num { color: #5d5344; border-bottom-color: rgba(93, 83, 68, 0.4); text-shadow: none; }
.bookcard.ghost .book-title { color: #4e463a; text-shadow: none; }
.bookcard.ghost .book-ed { color: rgba(78, 70, 58, 0.75); }
.bookcard.ghost .book-device { opacity: 0.4; filter: sepia(0.6) saturate(0.3); }

.book-ribbon {
	position: absolute;
	left: -6%; right: -6%;
	top: 56%;
	transform: rotate(-7deg);
	background: var(--red);
	color: #fff;
	font-size: 70%;
	font-variant: small-caps;
	letter-spacing: 0.1em;
	padding: 5px 0;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
	z-index: 2;
}

/* deep-linked volume flash */
.bookcard.lit .book, .pub.lit {
	animation: litpulse 1.6s ease 2;
	border-radius: 6px;
}
@keyframes litpulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(166, 33, 33, 0); }
	40% { box-shadow: 0 0 0 8px rgba(166, 33, 33, 0.30); }
}

/* ---- volume modal ---- */

dialog.bookmodal {
	border: 1px solid #e2d8c3;
	border-radius: 12px;
	padding: 0;
	max-width: 640px;
	width: 92%;
	background: var(--vellum);
	box-shadow: 0 30px 90px rgba(30, 20, 10, 0.45);
	overflow: visible;
}
dialog.bookmodal::backdrop {
	background: rgba(38, 27, 16, 0.55);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}
dialog.bookmodal[open] { animation: modalin 0.4s cubic-bezier(0.22, 0.8, 0.3, 1); }
@keyframes modalin {
	from { opacity: 0; transform: translateY(26px) scale(0.96); }
	to { opacity: 1; transform: none; }
}

.bm-body { display: flex; gap: 26px; padding: 30px; align-items: flex-start; }
.bm-cover { flex: 0 0 168px; }
.bm-cover .book { cursor: default; }
.bm-cover .book, .bm-cover .book:hover { transform: rotateY(-16deg) rotateX(3deg); }

.bm-info { flex: 1; min-width: 0; text-align: left; }
.bm-series { color: var(--gold); font-variant: small-caps; letter-spacing: 0.18em; font-size: 84%; margin: 0 0 2px 0; }
.bm-title { color: var(--slate); font-size: 138%; line-height: 1.35; margin: 0 0 4px 0; font-variant: small-caps; }
.bm-ed { font-style: italic; color: var(--faded); margin: 0 0 14px 0; font-size: 98%; }
.bm-facts { margin: 0 0 18px 0; padding: 0; list-style: none; font-size: 94%; line-height: 2; color: var(--ink); }
.bm-facts b { color: var(--slate); font-weight: normal; font-variant: small-caps; letter-spacing: 0.06em; margin-right: 8px; }
.bm-note { font-size: 88%; font-style: italic; color: var(--red-dark); margin: 0 0 14px 0; }

/* MLA citation block */
.bm-cite {
	position: relative;
	margin: 0 0 18px 0;
	padding: 12px 14px 12px 16px;
	background: #f8f2e3;
	border-left: 3px solid var(--gold);
	border-radius: 0 6px 6px 0;
}
.bm-cite-label {
	display: block;
	font-variant: small-caps;
	letter-spacing: 0.14em;
	font-size: 78%;
	color: var(--gold);
	margin-bottom: 4px;
}
.bm-cite-text {
	margin: 0;
	font-size: 90%;
	line-height: 1.65;
	color: var(--ink);
	padding-right: 76px;
	-webkit-user-select: all;
	user-select: all;
}
.bm-copy {
	position: absolute;
	top: 10px; right: 10px;
	font-family: inherit;
	font-size: 78%;
	font-variant: small-caps;
	letter-spacing: 0.08em;
	padding: 5px 13px;
	border-radius: 16px;
	border: 1px solid #d8ccb2;
	background: #fff;
	color: var(--faded);
	cursor: pointer;
	transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.bm-copy:hover { border-color: var(--red); color: var(--red); transform: translateY(-1px); }
.bm-copy.done { background: var(--red); border-color: var(--red); color: #fff; }

.bm-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.bm-actions a, .bm-actions button {
	display: inline-block;
	font-family: inherit;
	font-size: 92%;
	font-variant: small-caps;
	letter-spacing: 0.08em;
	padding: 9px 18px;
	border-radius: 22px;
	cursor: pointer;
	transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.bm-actions .bm-primary {
	background: linear-gradient(160deg, var(--red), var(--red-dark));
	color: #fff !important;
	border: 0;
	box-shadow: 0 4px 12px rgba(126, 23, 23, 0.35);
}
.bm-actions .bm-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(126, 23, 23, 0.45); }
.bm-actions .bm-close { background: transparent; border: 1px solid #d8ccb2; color: var(--faded); }
.bm-actions .bm-close:hover { border-color: var(--red); color: var(--red); }

.bm-x {
	position: absolute;
	top: -14px; right: -14px;
	width: 34px; height: 34px;
	border-radius: 50%;
	border: 0;
	background: var(--red);
	color: #fff;
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
	transition: transform 0.3s ease;
}
.bm-x:hover { transform: rotate(90deg) scale(1.1); }

/* ---- indexes ---- */

ul.indexlist {
	margin: 0.75em 55px 1.5em 55px;
	padding: 0;
	list-style: none;
	columns: 2;
	column-gap: 40px;
	line-height: 1.7em;
}
ul.indexlist li { break-inside: avoid; }
.fnote { font-size: 75%; font-style: italic; }

/* ---- footer ---- */

p.footer {
	margin-top: 3em;
	padding-top: 1.2em;
	border-top: 1px solid #e5dbc4;
	font-size: 92%;
	color: var(--faded);
	position: relative;
}
p.footer::before {
	content: "❦";
	position: absolute;
	top: -0.75em;
	left: 50%;
	transform: translateX(-50%);
	background: var(--vellum);
	padding: 0 14px;
	color: var(--gold);
	font-size: 120%;
}

/* ---- back to top ---- */

#totop {
	position: fixed;
	right: 26px; bottom: 26px;
	width: 46px; height: 46px;
	border-radius: 50%;
	border: 0;
	background: linear-gradient(160deg, var(--red), var(--red-dark));
	color: #fff;
	font-size: 20px;
	cursor: pointer;
	opacity: 0;
	transform: translateY(18px);
	pointer-events: none;
	transition: opacity 0.35s ease, transform 0.35s ease;
	box-shadow: 0 8px 20px rgba(126, 23, 23, 0.4);
	z-index: 150;
}
#totop.show { opacity: 1; transform: none; pointer-events: auto; }
#totop:hover { transform: translateY(-3px); }

/* ---- small screens ---- */

@media (max-width: 720px) {
	h1, h2, h3, p, .pub, ul.council, ul.indexlist, .filterbar, .statstrip, .seriescards, .officercards, ul.councilgrid { margin-left: 18px; margin-right: 18px; }
	ul.council, ul.indexlist { columns: 1; }
	.seriescards, .officercards { grid-template-columns: 1fr; }
	.bm-cite-text { padding-right: 0; }
	.bm-copy { position: static; display: inline-block; margin-top: 8px; }
	.bookshelf { margin-left: 16px; margin-right: 16px; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 26px 16px; }
	.statstrip { gap: 20px; }
	.bm-body { flex-direction: column; align-items: center; }
	.bm-info { text-align: center; }
	.bm-actions { justify-content: center; }
	.doctitle { font-size: 185%; }
}

/* ---- reduced motion: calm everything down ---- */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
	.rv { opacity: 1; transform: none; }
	body.fx { opacity: 1; }
}

/* ---- WordPress adaptations ---- */

/* wp_nav_menu current-item highlighting (mirrors a.current on the static site) */
#navigation li.current-menu-item > a,
#navigation li.current_page_item > a,
#navigation li.current-menu-ancestor > a {
	color: var(--red);
	font-weight: bold;
}
#navigation li.current-menu-item > a::after,
#navigation li.current_page_item > a::after,
#navigation li.current-menu-ancestor > a::after {
	transform: scaleX(1);
}

/* keep the sticky nav below the admin bar when logged in */
body.admin-bar #navigation { top: 32px; }
@media (max-width: 782px) {
	body.admin-bar #navigation { top: 46px; }
}

/* single publication view */
.single-pub-wrap { margin: 2em 55px; }
.single-pub-wrap .backlink { font-size: 92%; font-variant: small-caps; letter-spacing: 0.06em; }
@media (max-width: 720px) {
	.single-pub-wrap { margin-left: 18px; margin-right: 18px; }
}

/* screen reader text (WP standard) */
.screen-reader-text {
	clip-path: inset(50%);
	height: 1px; width: 1px;
	overflow: hidden;
	position: absolute !important;
}

/* ---- hub & feature cards ---- */

.seriescards.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .seriescards.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .seriescards.four { grid-template-columns: 1fr; } }

.sc-orn {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 54px;
	font-size: 42px;
	color: var(--gold);
	margin-bottom: 14px;
	transition: transform 0.35s ease;
}
.seriescard:hover .sc-orn { transform: translateY(-4px) rotate(-6deg); }

/* wide animated feature box (e.g. Interactive Guidelines) */
.hubbig {
	position: relative;
	display: block;
	margin: 2em 55px;
	padding: 30px 34px;
	background: linear-gradient(160deg, #fffef9, #f6efdd);
	border: 1px solid var(--gold);
	border-radius: 10px;
	overflow: hidden;
	text-align: center;
	transition: transform 0.35s cubic-bezier(0.22, 0.8, 0.3, 1), box-shadow 0.35s ease;
}
.hubbig:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(62, 44, 24, 0.2); }
.hubbig::before {
	content: "";
	position: absolute;
	top: 0; left: -70%;
	width: 45%; height: 100%;
	background: linear-gradient(105deg, transparent, rgba(217, 180, 92, 0.25), transparent);
	transform: skewX(-20deg);
	transition: left 0.8s ease;
}
.hubbig:hover::before { left: 140%; }
.hubbig .hb-title {
	display: block;
	font-variant: small-caps;
	letter-spacing: 0.08em;
	font-size: 145%;
	color: var(--red);
	margin-bottom: 6px;
}
.hubbig .hb-desc { display: block; color: var(--faded); font-style: italic; font-size: 95%; line-height: 1.6; }
.hubbig .hb-orn { display: block; font-size: 200%; color: var(--gold); margin-bottom: 8px; }

/* PDF / download card */
.dlcard {
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 1.6em 55px;
	padding: 18px 24px;
	background: #fffef9;
	border: 1px solid #e5dbc4;
	border-left: 4px solid var(--red);
	border-radius: 8px;
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.dlcard:hover { transform: translateX(6px); box-shadow: 0 10px 26px rgba(62, 44, 24, 0.14); }
.dlcard .dl-ico {
	flex: 0 0 46px;
	height: 56px;
	background: linear-gradient(160deg, var(--red), var(--red-dark));
	border-radius: 4px;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 76%;
	font-weight: bold;
	letter-spacing: 0.05em;
	box-shadow: 0 4px 10px rgba(126, 23, 23, 0.35);
}
.dlcard .dl-name { display: block; color: var(--slate); font-size: 112%; }
.dlcard .dl-hint { display: block; color: var(--faded); font-size: 86%; font-style: italic; margin-top: 2px; }

/* ---- events timeline ---- */

.evtimeline { position: relative; margin: 2em 55px 1em 85px; padding-left: 30px; }
.evtimeline::before {
	content: "";
	position: absolute;
	left: 0; top: 8px; bottom: 8px;
	width: 3px;
	background: linear-gradient(180deg, var(--gold-bright), var(--gold), #d9c896);
	border-radius: 2px;
}
.ev-item { position: relative; margin-bottom: 2.2em; }
.ev-item .roundel {
	position: absolute;
	left: -61px; top: 0;
	width: 58px; height: 58px;
	flex-basis: 58px;
	font-size: 88%;
}
.ev-item h3 { margin: 0 0 0.4em 0; color: var(--slate); font-size: 130%; }
.ev-item p { margin: 0.5em 0; }
.ev-item .ev-links a {
	display: inline-block;
	margin: 6px 10px 0 0;
	font-size: 88%;
	font-variant: small-caps;
	letter-spacing: 0.07em;
	padding: 6px 15px;
	border: 1px solid #d8ccb2;
	border-radius: 18px;
	transition: border-color 0.25s ease, transform 0.25s ease;
}
.ev-item .ev-links a:hover { border-color: var(--red); transform: translateY(-2px); }

/* ---- events calendar ---- */

.eetscal { margin: 1.8em 55px; }
.cal-head {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 22px;
	margin-bottom: 14px;
}
.cal-title {
	font-variant: small-caps;
	letter-spacing: 0.12em;
	font-size: 135%;
	color: var(--slate);
	min-width: 240px;
	text-align: center;
}
.cal-nav {
	width: 40px; height: 40px;
	border-radius: 50%;
	border: 1px solid #d8ccb2;
	background: #fff;
	color: var(--red);
	font-size: 20px;
	cursor: pointer;
	transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.cal-nav:hover { background: var(--red); color: #fff; transform: scale(1.08); }

.cal-gridwrap { overflow-x: auto; }
table.cal-grid {
	width: 100%;
	border-collapse: collapse;
	background: #fffdf6;
	border: 1px solid #e5dbc4;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: var(--shadow-soft);
}
.cal-grid th {
	background: linear-gradient(160deg, #f6efdd, #efe5cc);
	color: var(--gold);
	font-variant: small-caps;
	letter-spacing: 0.1em;
	font-weight: normal;
	padding: 9px 0;
	border-bottom: 2px solid var(--gold);
	font-size: 90%;
}
.cal-grid td {
	width: 14.28%;
	height: 64px;
	border: 1px solid #efe8d5;
	vertical-align: top;
	padding: 6px 8px;
	position: relative;
	font-variant-numeric: tabular-nums;
	color: var(--faded);
}
.cal-grid td.cal-empty { background: #f7f2e6; }
.cal-grid td.cal-today .cal-num {
	background: var(--slate);
	color: #fff;
	border-radius: 50%;
	display: inline-flex;
	width: 24px; height: 24px;
	align-items: center;
	justify-content: center;
}
.cal-grid td.has-event {
	background: linear-gradient(160deg, #fdf6e4, #f8ecd2);
	cursor: pointer;
	transition: background 0.25s ease, box-shadow 0.25s ease;
}
.cal-grid td.has-event:hover { box-shadow: inset 0 0 0 2px var(--red); }
.cal-seal {
	position: absolute;
	right: 7px; bottom: 4px;
	color: var(--red);
	font-size: 130%;
	animation: sealpulse 2.6s ease-in-out infinite;
}
@keyframes sealpulse {
	0%, 100% { transform: scale(1); opacity: 0.85; }
	50% { transform: scale(1.18); opacity: 1; }
}

.cal-detail { margin-top: 18px; }
.cal-card {
	background: linear-gradient(160deg, #fffef9, #f8f2e3);
	border: 1px solid var(--gold);
	border-radius: 10px;
	padding: 22px 26px;
	box-shadow: 0 14px 34px rgba(62, 44, 24, 0.14);
}
.cal-card-title { margin: 0 0 4px 0; color: var(--slate); font-size: 130%; }
.cal-card-when { margin: 0 0 10px 0; color: var(--red); font-variant: small-caps; letter-spacing: 0.05em; }
.cal-card-desc { margin: 0 0 12px 0; line-height: 1.7; font-size: 97%; }
.cal-addto { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.cal-addbtn {
	display: inline-block;
	font-size: 86%;
	font-variant: small-caps;
	letter-spacing: 0.07em;
	padding: 7px 16px;
	border: 1px solid #d8ccb2;
	border-radius: 18px;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.cal-addbtn:hover { border-color: var(--red); transform: translateY(-2px); }
.cal-poster { background: linear-gradient(160deg, var(--red), var(--red-dark)); color: #fff !important; border: 0; }

.cal-listblock { margin-top: 26px; }
.cal-subhead { margin: 0 0 10px 0; color: var(--slate); font-variant: small-caps; letter-spacing: 0.08em; }
.cal-list { display: flex; flex-direction: column; gap: 8px; }
.cal-chip {
	display: flex;
	align-items: baseline;
	gap: 16px;
	text-align: left;
	font-family: inherit;
	font-size: 100%;
	padding: 10px 16px;
	background: #fffef9;
	border: 1px solid #eee4cf;
	border-radius: 30px;
	cursor: pointer;
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.cal-chip:hover { transform: translateX(6px); border-color: var(--gold); box-shadow: 0 6px 16px rgba(62, 44, 24, 0.1); }
.cal-chip-date { flex: 0 0 110px; color: var(--red); font-variant: small-caps; letter-spacing: 0.04em; font-size: 90%; white-space: nowrap; }
.cal-chip-title { color: var(--ink); }

/* ---- bookshelf without search ---- */
.filterbar.nosearch input, .filterbar.nosearch #filtercount { display: none; }

/* ---- interactive guidelines ---- */

.gl-tools {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin: 1.5em 55px 0 55px;
}
.gl-tools button {
	font-family: inherit;
	font-size: 88%;
	font-variant: small-caps;
	letter-spacing: 0.07em;
	padding: 8px 18px;
	border: 1px solid #d8ccb2;
	border-radius: 20px;
	background: #fff;
	color: var(--faded);
	cursor: pointer;
	transition: border-color 0.25s ease, color 0.25s ease;
}
.gl-tools button:hover { border-color: var(--red); color: var(--red); }
.gl-progress {
	margin-left: auto;
	font-size: 90%;
	color: var(--faded);
	font-variant: small-caps;
	letter-spacing: 0.06em;
	padding: 8px 18px;
	border: 1px dashed var(--gold);
	border-radius: 20px;
}
.gl-progress b { color: var(--red); font-weight: normal; }
.gl-progress.done { background: linear-gradient(160deg, #f8f0da, #f2e6c8); border-style: solid; }

.gl-layout {
	display: grid;
	grid-template-columns: 215px 1fr;
	gap: 30px;
	margin: 1.5em 55px;
	align-items: start;
}
.gl-toc {
	position: sticky;
	top: 70px;
	border-right: 2px solid #eee4cf;
	padding-right: 14px;
}
.gl-toc a {
	display: block;
	padding: 7px 10px;
	font-size: 90%;
	font-variant: small-caps;
	letter-spacing: 0.05em;
	color: var(--faded);
	border-left: 3px solid transparent;
	border-radius: 0 6px 6px 0;
	transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.gl-toc a:hover { color: var(--red); }
.gl-toc a.on { color: var(--red); border-left-color: var(--red); background: #f9f2e2; }

.gl-main { min-width: 0; }
.gl-section { margin-bottom: 2.5em; }
.gl-section h2 { margin-left: 0; margin-right: 0; }
.gl-section h3 { margin-left: 0; margin-right: 0; color: var(--gold); font-variant: small-caps; letter-spacing: 0.06em; }
.gl-section p, .gl-section ul { margin-left: 0; margin-right: 0; }
.gl-section ul { line-height: 1.8; padding-left: 1.3em; }

details.gl-fold {
	margin: 0.9em 0;
	border: 1px solid #e5dbc4;
	border-radius: 8px;
	background: #fffef9;
	overflow: hidden;
	transition: box-shadow 0.3s ease;
}
details.gl-fold:hover { box-shadow: 0 8px 22px rgba(62, 44, 24, 0.1); }
details.gl-fold summary {
	cursor: pointer;
	list-style: none;
	padding: 13px 18px;
	color: var(--slate);
	font-size: 108%;
	position: relative;
	transition: background 0.25s ease;
}
details.gl-fold summary::-webkit-details-marker { display: none; }
details.gl-fold summary::before { content: "❧ "; color: var(--gold); transition: transform 0.3s ease; display: inline-block; margin-right: 6px; }
details.gl-fold[open] summary::before { transform: rotate(90deg); }
details.gl-fold summary:hover { background: #f9f2e2; }
details.gl-fold[open] summary { border-bottom: 1px solid #eee4cf; background: linear-gradient(160deg, #fbf6ea, #f6eeda); }
details.gl-fold .gl-fold-body { padding: 6px 20px 16px 20px; }

.gl-example {
	margin: 1em 0;
	padding: 14px 18px;
	background: repeating-linear-gradient(-45deg, rgba(176, 141, 47, 0.035) 0 3px, transparent 3px 9px), #faf5e8;
	border-left: 3px solid var(--gold);
	border-radius: 0 8px 8px 0;
	font-size: 94%;
	line-height: 1.8;
	overflow-x: auto;
}
.gl-example .lbl {
	display: block;
	font-variant: small-caps;
	letter-spacing: 0.1em;
	font-size: 82%;
	color: var(--gold);
	margin-bottom: 4px;
}

.gl-checklist { list-style: none; padding: 0; margin: 1em 0; }
.gl-checklist li { margin-bottom: 10px; }
.gl-checklist label {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 11px 16px;
	background: #fffef9;
	border: 1px solid #eee4cf;
	border-radius: 8px;
	cursor: pointer;
	transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
	line-height: 1.6;
}
.gl-checklist label:hover { border-color: var(--gold); transform: translateX(4px); }
.gl-checklist input.gl-check { accent-color: var(--red); width: 18px; height: 18px; margin-top: 3px; flex: 0 0 18px; }
.gl-checklist input.gl-check:checked + span { color: var(--faded); text-decoration: line-through; text-decoration-color: rgba(166, 33, 33, 0.45); }

@media (max-width: 860px) {
	.gl-layout { grid-template-columns: 1fr; margin: 1.5em 18px; }
	.gl-toc { position: static; border-right: 0; border-bottom: 2px solid #eee4cf; padding: 0 0 10px 0; display: flex; flex-wrap: wrap; gap: 4px; }
	.gl-toc a { border-left: 0; border-bottom: 3px solid transparent; border-radius: 6px 6px 0 0; }
	.gl-toc a.on { border-left: 0; border-bottom-color: var(--red); }
	.gl-tools, .eetscal, .evtimeline, .hubbig, .dlcard { margin-left: 18px; margin-right: 18px; }
	.evtimeline { margin-left: 48px; padding-left: 24px; }
	.ev-item .roundel { left: -52px; width: 44px; height: 44px; flex-basis: 44px; font-size: 74%; }
	.cal-chip-date { flex-basis: 90px; }
}

/* ---- phase 2.1 refinements ---- */

/* description paragraph in the volume dialog */
.bm-desc { font-size: 92%; line-height: 1.7; color: var(--ink); margin: 0 0 14px 0; }

/* clickable forthcoming-volume references */
a.bookpop:hover { text-decoration: underline; }

/* whole-card links (Contact page) */
.cardlink { cursor: pointer; }

/* event titles inside calendar day cells */
.cal-grid td { height: 76px; }
.cal-lab {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 66%;
	line-height: 1.35;
	color: var(--red-dark);
	margin-top: 3px;
	padding-right: 14px;
}

/* ---- membership experience ---- */

.tiercards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
	margin: 1.8em 55px;
}
.tiercard {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 28px 26px 24px 26px;
	background: linear-gradient(160deg, #fffef9, #f8f2e3);
	border: 1px solid #e5dbc4;
	border-radius: 10px;
	overflow: hidden;
	transition: transform 0.35s cubic-bezier(0.22, 0.8, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.tiercard:hover { transform: translateY(-6px); box-shadow: 0 18px 42px rgba(62, 44, 24, 0.16); border-color: var(--gold); }
.tiercard::before {
	content: "";
	position: absolute;
	top: 0; left: -80%;
	width: 55%; height: 100%;
	background: linear-gradient(105deg, transparent, rgba(217, 180, 92, 0.2), transparent);
	transform: skewX(-20deg);
	transition: left 0.7s ease;
	pointer-events: none;
}
.tiercard:hover::before { left: 130%; }
.tiercard .oc-role { text-align: center; margin-bottom: 4px; }
.tier-price {
	text-align: center;
	font-size: 210%;
	color: var(--red);
	line-height: 1.2;
	margin-bottom: 14px;
	font-variant-numeric: tabular-nums;
}
.tier-price i { display: block; font-size: 40%; color: var(--faded); letter-spacing: 0.08em; font-style: italic; }

ul.benefits { list-style: none; margin: 0 0 18px 0; padding: 0; flex: 1; }
ul.benefits li {
	position: relative;
	padding: 6px 0 6px 30px;
	line-height: 1.55;
	font-size: 96%;
	border-bottom: 1px dashed #eee4cf;
}
ul.benefits li:last-child { border-bottom: 0; }
ul.benefits li::before {
	content: "✓";
	position: absolute;
	left: 4px; top: 5px;
	color: var(--gold);
	font-weight: bold;
}

.tier-cta {
	display: block;
	text-align: center;
	font-variant: small-caps;
	letter-spacing: 0.08em;
	padding: 12px 20px;
	border-radius: 26px;
	background: linear-gradient(160deg, var(--red), var(--red-dark));
	color: #fff !important;
	box-shadow: 0 5px 14px rgba(126, 23, 23, 0.35);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tier-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(126, 23, 23, 0.45); }

.joinsteps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	margin: 1.6em 55px;
	counter-reset: step;
}
.joinsteps .step {
	text-align: center;
	padding: 22px 18px 18px 18px;
	background: #fffef9;
	border: 1px solid #eee4cf;
	border-radius: 10px;
	transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.joinsteps .step:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 10px 24px rgba(62, 44, 24, 0.1); }
.joinsteps .roundel { margin: 0 auto 10px auto; display: flex; }
.joinsteps b {
	display: block;
	font-weight: normal;
	font-variant: small-caps;
	letter-spacing: 0.08em;
	font-size: 115%;
	color: var(--slate);
	margin-bottom: 4px;
}
.joinsteps span:not(.roundel) { font-size: 90%; color: var(--faded); font-style: italic; line-height: 1.55; }

.payrow {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin: 1.1em 55px;
	padding: 16px 20px;
	background: #fffef9;
	border: 1px solid #eee4cf;
	border-radius: 10px;
}
.pay-label { flex: 1 1 260px; font-size: 95%; line-height: 1.5; }
.pay-label i { display: block; font-size: 86%; color: var(--faded); }
.paybtn {
	display: inline-block;
	font-variant: small-caps;
	letter-spacing: 0.06em;
	padding: 11px 22px;
	border-radius: 24px;
	background: linear-gradient(160deg, var(--red), var(--red-dark));
	color: #fff !important;
	box-shadow: 0 4px 12px rgba(126, 23, 23, 0.3);
	white-space: nowrap;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.paybtn:hover { transform: translateY(-2px); box-shadow: 0 9px 20px rgba(126, 23, 23, 0.45); }
.paybtn.alt {
	background: #fff;
	color: var(--red) !important;
	border: 1px solid var(--red);
	box-shadow: none;
}
.paybtn.alt:hover { background: var(--red); color: #fff !important; }

@media (max-width: 760px) {
	.tiercards, .joinsteps { grid-template-columns: 1fr; margin-left: 18px; margin-right: 18px; }
	.payrow { margin-left: 18px; margin-right: 18px; }
}

/* ---- Ninja Forms, in the Society's dress ---- */

.nf-form-cont {
	margin: 1.4em 55px;
	padding: 26px 28px;
	background: linear-gradient(160deg, #fffef9, #f8f2e3);
	border: 1px solid #e5dbc4;
	border-radius: 10px;
}
.nf-form-cont .nf-form-title h3 { display: none; }
.nf-form-cont .nf-field-label label {
	font-variant: small-caps;
	letter-spacing: 0.06em;
	color: var(--slate);
	font-weight: normal !important;
	font-size: 100%;
}
.nf-form-cont input[type="text"],
.nf-form-cont input[type="email"],
.nf-form-cont textarea,
.nf-form-cont select {
	width: 100%;
	font-family: inherit;
	font-size: 100%;
	padding: 10px 14px;
	border: 1px solid #d8ccb2 !important;
	border-radius: 8px;
	background: #fff !important;
	color: var(--ink);
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.nf-form-cont input:focus,
.nf-form-cont textarea:focus,
.nf-form-cont select:focus {
	outline: none;
	border-color: var(--red) !important;
	box-shadow: 0 0 0 4px rgba(166, 33, 33, 0.12);
}
.nf-form-cont textarea { min-height: 90px; }
.nf-form-cont .nf-field-container { margin-bottom: 18px; }
.nf-form-cont input[type="button"],
.nf-form-cont input[type="submit"] {
	font-family: inherit;
	font-variant: small-caps;
	letter-spacing: 0.08em;
	font-size: 105%;
	padding: 12px 30px;
	border: 0;
	border-radius: 26px;
	background: linear-gradient(160deg, var(--red), var(--red-dark));
	color: #fff;
	cursor: pointer;
	box-shadow: 0 5px 14px rgba(126, 23, 23, 0.35);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.nf-form-cont input[type="button"]:hover,
.nf-form-cont input[type="submit"]:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(126, 23, 23, 0.45);
}
.nf-form-cont .nf-error-msg, .nf-form-cont .ninja-forms-req-symbol { color: var(--red); }
.nf-form-cont .nf-response-msg {
	padding: 14px 18px;
	background: #f8f0da;
	border-left: 3px solid var(--gold);
	border-radius: 0 8px 8px 0;
	line-height: 1.7;
}
@media (max-width: 720px) { .nf-form-cont { margin-left: 18px; margin-right: 18px; } }

/* ---- plain text lists (downloads &c.): align with paragraph margins ---- */
#waistcoat ul.textlist, #waistcoat ul.wp-block-list {
	margin: 1em 55px;
	padding-left: 1.4em;
	line-height: 1.85;
	font-size: 105%;
}
#waistcoat ul.textlist li, #waistcoat ul.wp-block-list li { margin-bottom: 0.45em; }
#waistcoat ul.textlist li::marker, #waistcoat ul.wp-block-list li::marker { color: var(--gold); }
@media (max-width: 720px) {
	#waistcoat ul.textlist, #waistcoat ul.wp-block-list { margin-left: 18px; margin-right: 18px; }
}

/* ---- guidelines predictive search ---- */

.gl-search { position: relative; flex: 1 1 300px; min-width: 220px; }
.gl-search input {
	width: 100%;
	font-family: inherit;
	font-size: 96%;
	padding: 9px 16px;
	border: 1px solid #d8ccb2;
	border-radius: 22px;
	background: #fff;
	color: var(--ink);
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.gl-search input:focus {
	outline: none;
	border-color: var(--red);
	box-shadow: 0 0 0 4px rgba(166, 33, 33, 0.12);
}
.gl-results {
	position: absolute;
	top: calc(100% + 8px);
	left: 0; right: 0;
	background: #fffdf6;
	border: 1px solid var(--gold);
	border-radius: 10px;
	box-shadow: 0 18px 44px rgba(62, 44, 24, 0.25);
	z-index: 90;
	max-height: 350px;
	overflow-y: auto;
}
.gl-result {
	padding: 10px 16px;
	cursor: pointer;
	border-bottom: 1px dashed #eee4cf;
	transition: background 0.15s ease;
}
.gl-result:last-child { border-bottom: 0; }
.gl-result:hover, .gl-result.on { background: #f9f2e2; }
.gl-result .crumb {
	display: block;
	font-variant: small-caps;
	letter-spacing: 0.07em;
	font-size: 80%;
	color: var(--gold);
	margin-bottom: 2px;
}
.gl-result .snip { display: block; font-size: 88%; line-height: 1.55; color: var(--ink); }
.gl-result mark, .gl-noresult mark {
	background: rgba(217, 180, 92, 0.45);
	color: inherit;
	border-radius: 3px;
	padding: 0 1px;
}
.gl-noresult { padding: 12px 16px; font-style: italic; color: var(--faded); font-size: 92%; }

/* pulse on the element a search result jumps to */
.gl-target { animation: glpulse 1.5s ease 2; border-radius: 6px; }
@keyframes glpulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(166, 33, 33, 0); }
	50% { box-shadow: 0 0 0 7px rgba(166, 33, 33, 0.3); }
}
