/*
Theme Name: The Golf Club Secretary
Description: A heritage × modern editorial theme for The Golf Club Secretary private community — GCS purple, warm cream, fine gold rules, Fraunces display serif.
Version: 2.1.0
Author: The Golf Club Secretary
Text Domain: gcs
*/

/* =========================================================================
   Fonts
   ====================================================================== */

@font-face {
	font-family: 'Fraunces';
	src: url('fonts/fraunces-var.woff2') format('woff2');
	font-weight: 300 700;
	font-stretch: 75% 125%;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Fraunces';
	src: url('fonts/fraunces-italic-var.woff2') format('woff2');
	font-weight: 300 700;
	font-style: italic;
	font-display: swap;
}
/* =========================================================================
   Tokens
   ====================================================================== */

:root {
	--plum-950: #230b27;
	--plum-900: #2e0f33;
	--plum-800: #3b1442;
	--plum-700: #521c5b;
	--orchid: #6f2476;
	--lilac: #b3a0b6;

	--gcs-green: #218649;
	--gcs-mint: #cce0e4;
	--gcs-grey: #8a8a8d;

	--cream: #f5f0e4;
	--parchment: #fbf8f0;
	--ink: #1d241f;
	--ink-soft: #47524a;

	--gold: #a8821f;
	--gold-bright: #c9a227;
	--gold-soft: #d9b65a;

	--line: rgba(59, 20, 66, 0.16);
	--line-strong: rgba(59, 20, 66, 0.32);
	--line-gold: rgba(168, 130, 31, 0.45);

	--serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
	--body: Georgia, 'Iowan Old Style', 'Times New Roman', serif;

	--text-xs: 0.75rem;
	--text-sm: 0.875rem;
	--text-md: 1rem;
	--text-lg: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
	--text-xl: clamp(1.35rem, 1.15rem + 1vw, 1.9rem);
	--text-2xl: clamp(1.8rem, 1.4rem + 2vw, 2.9rem);
	--text-3xl: clamp(2.3rem, 1.6rem + 3.4vw, 4.2rem);

	--space: clamp(1rem, 0.8rem + 1vw, 1.75rem);
	--gutter: clamp(1.25rem, 4vw, 3rem);
	--radius: 4px;
	--wrap: 1240px;
	--measure: 68ch;

	--shadow-soft: 0 1px 2px rgba(46, 15, 51, 0.06), 0 8px 28px -12px rgba(46, 15, 51, 0.18);
	--shadow-lift: 0 2px 4px rgba(46, 15, 51, 0.08), 0 18px 44px -16px rgba(46, 15, 51, 0.32);

	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================================
   Base
   ====================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	/* Sticky footer: short pages (e.g. podcast coming-soon) keep the
	   footer pinned to the bottom of the viewport. */
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	font-family: var(--body);
	font-size: var(--text-md);
	line-height: 1.65;
	color: var(--ink);
	background-color: var(--cream);
	/* faint paper grain */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.028'/%3E%3C/svg%3E");
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
	font-family: var(--serif);
	font-variation-settings: 'opsz' 72;
	font-weight: 560;
	line-height: 1.12;
	letter-spacing: -0.01em;
	color: var(--plum-900);
	margin: 0 0 0.5em;
	text-wrap: balance;
}

p { margin: 0 0 1.2em; }

a {
	color: var(--plum-800);
	text-decoration-color: var(--line-gold);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition: color 0.2s var(--ease-out), text-decoration-color 0.2s var(--ease-out);
}
/* The content column grows so .site-footer sits at the viewport bottom */
main#content { flex: 1 0 auto; width: 100%; }
.landing-page main { flex: 1 0 auto; width: 100%; }

a:hover { color: var(--gold); text-decoration-color: var(--gold); }

::selection { background: var(--gold-soft); color: var(--plum-950); }

.wrap {
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	clip-path: inset(50%);
	overflow: hidden;
	white-space: nowrap;
}

/* Small-caps eyebrow label — the signature heritage detail */
.eyebrow {
	font-family: var(--body);
	font-size: var(--text-xs);
	font-weight: 640;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--gold);
}

/* Section heading with a fine double rule */
.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: calc(var(--space) * 1.2);
	padding-bottom: 0.9rem;
	border-bottom: 1px solid var(--line-strong);
	position: relative;
}
.section-head::after {
	content: '';
	position: absolute;
	left: 0; bottom: -4px;
	width: 100%;
	border-bottom: 1px solid var(--line);
}
.section-head h2 {
	margin: 0;
	font-size: var(--text-xl);
}
.section-head .more {
	font-size: var(--text-sm);
	font-weight: 560;
	white-space: nowrap;
	text-decoration: none;
}
.section-head .more::after {
	content: ' \2192';
	display: inline-block;
	transition: translate 0.25s var(--ease-out);
}
.section-head .more:hover::after { translate: 4px 0; }

/* =========================================================================
   Header
   ====================================================================== */

.site-header {
	background: var(--plum-900);
	color: var(--cream);
	border-bottom: 1px solid rgba(217, 182, 90, 0.35);
	position: sticky;
	top: 0;
	z-index: 50;
}

.masthead {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	padding-block: 0.85rem;
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	color: var(--cream);
	text-decoration: none;
	margin-right: auto;
}
.brand:hover { color: var(--gold-soft); }
.brand .gcs-crest { color: var(--gold-soft); flex-shrink: 0; }
.brand-name {
	font-family: var(--serif);
	font-size: 1.15rem;
	font-weight: 540;
	letter-spacing: 0.01em;
	line-height: 1.1;
}
.brand-tag {
	display: block;
	font-family: var(--body);
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: var(--gold-soft);
	margin-top: 0.28em;
}

.site-nav ul {
	display: flex;
	align-items: center;
	gap: clamp(0.9rem, 2.5vw, 1.9rem);
	list-style: none;
	margin: 0;
	padding: 0;
}
.site-nav a {
	color: var(--cream);
	font-size: var(--text-sm);
	font-weight: 560;
	text-decoration: none;
	padding-block: 0.4rem;
	position: relative;
}
.site-nav a::after {
	content: '';
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 1px;
	background: var(--gold-soft);
	scale: 0 1;
	transform-origin: left;
	transition: scale 0.3s var(--ease-out);
}
.site-nav a:hover::after,
.site-nav a[aria-current='page']::after { scale: 1 1; }
.site-nav a:hover { color: var(--gold-soft); }

.member-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	color: var(--cream);
	font-size: var(--text-xs);
	font-weight: 560;
	text-decoration: none;
	border: 1px solid rgba(245, 240, 228, 0.3);
	border-radius: 99px;
	padding: 0.3rem 0.85rem 0.3rem 0.35rem;
	transition: border-color 0.2s, background 0.2s;
}
.member-chip:hover { border-color: var(--gold-soft); color: var(--cream); background: rgba(217, 182, 90, 0.12); }
.member-chip img { border-radius: 50%; width: 26px; height: 26px; }

/* Hamburger — three bars folding into a cross when open. */
.nav-toggle {
	display: none;
	position: relative;
	width: 44px;
	height: 44px;
	background: none;
	border: 0;
	color: var(--cream);
	cursor: pointer;
}
.nav-toggle:hover { color: var(--gold-soft); }
.nav-toggle .bar {
	position: absolute;
	left: 11px;
	width: 22px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: translate 0.25s var(--ease-out), rotate 0.25s var(--ease-out), opacity 0.18s;
}
.nav-toggle .bar:nth-child(1) { top: 15px; }
.nav-toggle .bar:nth-child(2) { top: 21px; }
.nav-toggle .bar:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded='true'] .bar:nth-child(1) { translate: 0 6px; rotate: 45deg; }
.nav-toggle[aria-expanded='true'] .bar:nth-child(2) { opacity: 0; scale: 0.4 1; }
.nav-toggle[aria-expanded='true'] .bar:nth-child(3) { translate: 0 -6px; rotate: -45deg; }

/* Mobile-drawer-only pieces: member card, personal links, search.
   Desktop keeps the chip + dropdown instead. */
.nav-search, .nav-member, .nav-personal { display: none; }

@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.site-nav {
		display: none;
		position: absolute;
		inset-inline: 0;
		top: 100%;
		background: var(--plum-950);
		border-bottom: 1px solid rgba(217, 182, 90, 0.35);
		padding: 0.6rem var(--gutter) 1rem;
		max-height: calc(100vh - 80px);
		max-height: calc(100dvh - 80px);
		overflow: auto;
	}
	.site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; align-items: stretch; gap: 0.15rem; }
	.site-nav a { font-size: 1rem; display: block; padding: 0.7rem 0.4rem; }
	.member-menu { display: none; }
	.search-trigger { display: none; }
	.nav-member {
		display: flex;
		align-items: center;
		gap: 0.8rem;
		padding: 0.55rem 0.4rem 0.9rem;
		border-bottom: 1px solid rgba(217, 182, 90, 0.3);
		margin-bottom: 0.5rem;
		color: var(--cream);
	}
	.nav-member img { border-radius: 50%; width: 40px; height: 40px; }
	.nav-member-who { display: grid; gap: 0.1rem; min-width: 0; }
	.nav-member-who strong { font-family: var(--serif); font-size: 1.05rem; font-weight: 540; }
	.nav-member-who span { font-size: var(--text-xs); color: var(--lilac); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.nav-personal {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0 0.8rem;
		margin-top: 0.5rem;
		padding-top: 0.35rem;
		border-top: 1px solid rgba(217, 182, 90, 0.3);
	}
	.nav-personal a {
		color: var(--cream);
		font-size: 0.95rem;
		font-weight: 560;
		text-decoration: none;
		padding: 0.6rem 0.4rem;
	}
	.nav-personal a:hover { color: var(--gold-soft); }
	.nav-personal .nav-search { grid-column: 1 / -1; }
	.nav-signout { grid-column: 1 / -1; border-top: 1px solid rgba(217, 182, 90, 0.3); color: var(--lilac) !important; }
	.nav-signout:hover { color: #d99f8d !important; }
	.nav-search {
		display: flex;
		align-items: center;
		gap: 0.6rem;
		width: 100%;
		margin-top: 0.5rem;
		padding: 0.85rem 0.4rem 0.5rem;
		background: none;
		border: 0;
		border-top: 1px solid rgba(217, 182, 90, 0.3);
		font: inherit;
		font-size: 1rem;
		font-weight: 560;
		color: var(--cream);
		cursor: pointer;
	}
	.nav-search:hover { color: var(--gold-soft); }
	.nav-search svg { color: var(--gold-soft); }
	@media (prefers-reduced-motion: no-preference) {
		.site-nav.is-open { animation: nav-drop 0.26s var(--ease-out); }
		.site-nav.is-open li, .site-nav.is-open .nav-search { animation: nav-item-in 0.32s var(--ease-out) backwards; }
		.site-nav.is-open li:nth-child(2) { animation-delay: 0.04s; }
		.site-nav.is-open li:nth-child(3) { animation-delay: 0.08s; }
		.site-nav.is-open li:nth-child(4) { animation-delay: 0.12s; }
		.site-nav.is-open li:nth-child(5) { animation-delay: 0.16s; }
		.site-nav.is-open li:nth-child(6) { animation-delay: 0.2s; }
		.site-nav.is-open li:nth-child(7) { animation-delay: 0.24s; }
		.site-nav.is-open .nav-search { animation-delay: 0.28s; }
	}
}
@keyframes nav-drop {
	from { opacity: 0; translate: 0 -10px; }
	to { opacity: 1; translate: 0 0; }
}
@keyframes nav-item-in {
	from { opacity: 0; translate: -8px 0; }
	to { opacity: 1; translate: 0 0; }
}

/* Category strip under the header */
.cat-strip {
	background: var(--parchment);
	border-bottom: 1px solid var(--line);
}
.cat-strip ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.6rem;
	list-style: none;
	margin: 0;
	padding: 0.75rem 0;
}
.cat-strip a {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink-soft);
	background: rgba(255, 255, 255, 0.55);
	border: 1px solid var(--line);
	border-radius: 99px;
	padding: 0.32rem 0.85rem;
	transition: border-color 0.18s, color 0.18s, background 0.18s;
}
.cat-strip a:hover { border-color: var(--gold); color: var(--plum-900); }
.cat-strip .current a {
	background: var(--plum-900);
	border-color: var(--plum-900);
	color: var(--cream);
}
.cat-strip .cat-count {
	font-size: 0.85em;
	font-weight: 700;
	color: var(--gold);
}
.cat-strip .current .cat-count { color: var(--gold-soft); }

/* =========================================================================
   Dashboard
   ====================================================================== */

.dash-welcome {
	padding-block: calc(var(--space) * 1.6) 0;
}
.dash-welcome .eyebrow { display: block; margin-bottom: 0.4rem; }
.dash-welcome h1 {
	font-size: var(--text-3xl);
	font-weight: 480;
	margin-bottom: 0.2em;
}
.dash-welcome h1 em {
	font-style: italic;
	font-weight: 440;
	color: var(--gold);
}
.dash-welcome p { color: var(--ink-soft); max-width: 52ch; }

.dash-section { padding-block: calc(var(--space) * 1.8); }
.dash-section + .dash-section { padding-top: 0; }

/* Feature grid: one hero post + stacked secondary posts */
.feature-grid {
	display: grid;
	gap: var(--space);
	grid-template-columns: 1fr;
}
@media (min-width: 900px) {
	.feature-grid { grid-template-columns: 1.6fr 1fr; align-items: stretch; }
}

/* =========================================================================
   Cards
   ====================================================================== */

.card {
	background: var(--parchment);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-soft);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.35s var(--ease-out), translate 0.35s var(--ease-out), border-color 0.35s;
	position: relative;
}
.card:hover {
	box-shadow: var(--shadow-lift);
	translate: 0 -3px;
	border-color: var(--line-gold);
}

.card-media {
	aspect-ratio: 3 / 2;
	background: linear-gradient(135deg, var(--plum-800), var(--plum-950));
	position: relative;
	overflow: hidden;
}
.card-media img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: scale 0.6s var(--ease-out);
}
.card:hover .card-media img { scale: 1.04; }

/* Placeholder crest when a post has no image */
.card-media .gcs-crest {
	position: absolute;
	inset: 0;
	margin: auto;
	color: rgba(217, 182, 90, 0.5);
	width: 72px; height: 72px;
}

.card-body {
	padding: clamp(1rem, 2.5vw, 1.5rem);
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	flex-grow: 1;
}

.chip {
	align-self: flex-start;
	font-size: 0.68rem;
	font-weight: 640;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gold);
	text-decoration: none;
	position: relative;
	z-index: 2;
}
.chip:hover { color: var(--plum-800); }

.card h3 {
	font-size: var(--text-lg);
	margin: 0;
}
.card h3 a {
	color: inherit;
	text-decoration: none;
}
/* Stretch the title link over the whole card */
.card h3 a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card:hover h3 { color: var(--plum-700); }

.card .excerpt {
	font-size: var(--text-sm);
	color: var(--ink-soft);
	margin: 0;
}

.card-meta {
	margin-top: auto;
	padding-top: 0.6rem;
	font-size: var(--text-xs);
	color: var(--ink-soft);
	display: flex;
	gap: 0.5rem;
	align-items: center;
}
.card-meta .dot { color: var(--gold); }

/* Hero variant */
.card--hero .card-media { aspect-ratio: 16 / 10; }
.card--hero h3 { font-size: var(--text-2xl); font-weight: 500; }
.card--hero .excerpt { font-size: var(--text-md); }

/* Compact list variant (no image) */
.stack { display: flex; flex-direction: column; gap: var(--space); }
.card--row { flex-direction: row; align-items: stretch; }
.card--row .card-media { width: 130px; aspect-ratio: auto; flex-shrink: 0; }
.card--row .card-media .gcs-crest { width: 40px; height: 40px; }
.card--row .card-body { padding: 0.9rem 1.1rem; gap: 0.35rem; }
.card--row h3 { font-size: var(--text-md); }
@media (max-width: 520px) {
	.card--row .card-media { display: none; }
}

/* Standard responsive card grid */
.card-grid {
	display: grid;
	gap: var(--space);
	grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
}

/* =========================================================================
   Forum digest & podcast feature
   ====================================================================== */

.dash-columns {
	display: grid;
	gap: calc(var(--space) * 1.5);
	grid-template-columns: 1fr;
}
@media (min-width: 900px) {
	.dash-columns { grid-template-columns: 1.15fr 1fr; }
}

.topic-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--line);
}
.topic-list li {
	border-bottom: 1px solid var(--line);
}
.topic-list a {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 0.25rem;
	text-decoration: none;
	transition: background 0.2s, padding-left 0.25s var(--ease-out);
}
.topic-list a:hover {
	background: rgba(217, 182, 90, 0.08);
	padding-left: 0.6rem;
}
.topic-list .t-title {
	font-family: var(--serif);
	font-size: var(--text-md);
	font-weight: 540;
	color: var(--plum-900);
}
.topic-list .t-meta {
	font-size: var(--text-xs);
	color: var(--ink-soft);
	white-space: nowrap;
}
.topic-empty {
	border: 1px dashed var(--line-strong);
	border-radius: var(--radius);
	padding: 1.6rem;
	text-align: center;
	color: var(--ink-soft);
	font-size: var(--text-sm);
}

/* Podcast feature panel — dark plum with gold trim */
.pod-panel {
	background: var(--plum-900);
	color: var(--cream);
	border-radius: var(--radius);
	padding: clamp(1.4rem, 3vw, 2.2rem);
	position: relative;
	overflow: hidden;
	box-shadow: var(--shadow-soft);
}
.pod-panel::before {
	content: '';
	position: absolute;
	inset: 8px;
	border: 1px solid rgba(217, 182, 90, 0.35);
	border-radius: 2px;
	pointer-events: none;
}
.pod-panel .eyebrow { color: var(--gold-soft); }
.pod-panel h3 {
	color: var(--cream);
	font-size: var(--text-xl);
	margin: 0.35em 0 0.4em;
}
.pod-panel h3 a { color: inherit; text-decoration: none; }
.pod-panel h3 a:hover { color: var(--gold-soft); }
.pod-panel p { color: var(--lilac); font-size: var(--text-sm); }
.pod-panel .pod-embed { margin-top: 1rem; position: relative; z-index: 1; }
.pod-panel .pod-embed iframe { width: 100%; border: 0; border-radius: 8px; display: block; }
.pod-meta {
	font-size: var(--text-xs);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--gold-soft);
	display: flex;
	gap: 0.6rem;
}

/* =========================================================================
   Archive / Journal pages
   ====================================================================== */

.page-hero {
	padding-block: calc(var(--space) * 1.8) calc(var(--space) * 1.4);
	border-bottom: 1px solid var(--line);
	margin-bottom: calc(var(--space) * 1.6);
	background:
		radial-gradient(1200px 300px at 50% -160px, rgba(217, 182, 90, 0.13), transparent 70%);
}
.page-hero .eyebrow { display: block; margin-bottom: 0.5rem; }
.page-hero h1 {
	font-size: var(--text-2xl);
	font-weight: 500;
	margin-bottom: 0.25em;
}
.page-hero .lede { color: var(--ink-soft); max-width: 62ch; margin: 0; }

.archive-list { padding-bottom: calc(var(--space) * 2); }

.pagination {
	display: flex;
	gap: 0.4rem;
	justify-content: center;
	padding: calc(var(--space) * 1.5) 0;
	font-size: var(--text-sm);
}
.pagination .page-numbers {
	padding: 0.45rem 0.9rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	text-decoration: none;
	background: var(--parchment);
}
.pagination .current {
	background: var(--plum-800);
	color: var(--cream);
	border-color: var(--plum-800);
}
.pagination a:hover { border-color: var(--gold); }

/* =========================================================================
   Single article
   ====================================================================== */

.article-header {
	text-align: center;
	max-width: 54rem;
	margin-inline: auto;
	padding-block: calc(var(--space) * 2) var(--space);
}
.article-header .chip { align-self: center; }
.article-header h1 {
	font-size: var(--text-3xl);
	font-weight: 500;
	margin: 0.4em 0 0.45em;
}
/* Two-tier byline: the person on one line, the facts of record beneath.
   Both tiers wrap gracefully instead of cramming a phone-width line. */
.article-header .art-meta {
	font-size: var(--text-sm);
	color: var(--ink-soft);
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	align-items: center;
}
.am-author {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	flex-wrap: wrap;
}
.am-series { font-style: italic; }
.am-series::before { content: '\B7'; color: var(--gold); margin-right: 0.55rem; font-style: normal; }
.am-facts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
}
@media (max-width: 640px) {
	.am-facts { font-size: var(--text-xs); gap: 0.45rem; }
}
.article-header .art-meta .dot { color: var(--gold); }

.article-hero {
	max-width: 62rem;
	margin: var(--space) auto;
}
.article-hero img {
	width: 100%;
	border-radius: var(--radius);
	box-shadow: var(--shadow-lift);
}

.article-body {
	max-width: var(--measure);
	margin-inline: auto;
	font-size: var(--text-lg);
	line-height: 1.75;
	padding-bottom: calc(var(--space) * 2);
}
.article-body > p:first-of-type::first-letter {
	font-family: var(--serif);
	font-size: 3.4em;
	font-weight: 540;
	float: left;
	line-height: 0.82;
	padding: 0.06em 0.12em 0 0;
	color: var(--plum-800);
}
.article-body h2, .article-body h3 { margin-top: 1.6em; }
.article-body h2 { font-size: var(--text-xl); }
.article-body blockquote {
	margin: 2em 0;
	padding: 0.2em 0 0.2em 1.4em;
	border-left: 2px solid var(--gold);
	font-family: var(--serif);
	font-style: italic;
	font-size: 1.15em;
	color: var(--plum-800);
}
.article-body img { border-radius: var(--radius); }
.article-body hr {
	border: 0;
	border-top: 1px solid var(--line-strong);
	margin: 2.5em auto;
	width: 120px;
}

.article-footer {
	max-width: var(--measure);
	margin-inline: auto;
	padding-bottom: calc(var(--space) * 2.5);
}
.article-footer .rule {
	border-top: 1px solid var(--line-strong);
	padding-top: 1.2rem;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	font-size: var(--text-sm);
}
.article-footer .rule a { font-weight: 560; }

/* Banner shown to guests reading via a secret link */
.share-banner {
	background: var(--plum-900);
	color: var(--cream);
	text-align: center;
	font-size: var(--text-sm);
	padding: 0.7rem var(--gutter);
}
.share-banner a { color: var(--gold-soft); }

/* =========================================================================
   Podcast pages
   ====================================================================== */

.episode-list { display: flex; flex-direction: column; gap: var(--space); padding-bottom: calc(var(--space) * 2); }
.episode-card {
	background: var(--parchment);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-soft);
	padding: clamp(1.2rem, 3vw, 1.9rem);
	display: grid;
	gap: 1rem;
	transition: border-color 0.3s, box-shadow 0.3s;
}
.episode-card:hover { border-color: var(--line-gold); box-shadow: var(--shadow-lift); }
.episode-card .pod-meta { color: var(--gold); }
.episode-card h2 { font-size: var(--text-xl); margin: 0; }
.episode-card h2 a { text-decoration: none; color: inherit; }
.episode-card h2 a:hover { color: var(--gold); }
.episode-card .excerpt { color: var(--ink-soft); font-size: var(--text-sm); margin: 0; }
.episode-card iframe { width: 100%; border: 0; border-radius: 8px; }

/* =========================================================================
   Footer
   ====================================================================== */

.site-footer {
	background: var(--plum-950);
	color: var(--lilac);
	margin-top: calc(var(--space) * 2);
	border-top: 1px solid rgba(217, 182, 90, 0.35);
}
.footer-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	justify-content: space-between;
	align-items: flex-start;
	padding-block: calc(var(--space) * 2);
}
.footer-brand { display: flex; align-items: center; gap: 0.8rem; color: var(--cream); }
.footer-brand .gcs-crest { color: var(--gold-soft); }
.footer-brand .brand-name { font-family: var(--serif); font-size: 1.05rem; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-nav a { color: var(--lilac); font-size: var(--text-sm); text-decoration: none; }
.footer-nav a:hover { color: var(--gold-soft); }
.footer-legal {
	border-top: 1px solid rgba(179, 160, 182, 0.18);
	padding-block: 1rem;
	font-size: var(--text-xs);
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

/* =========================================================================
   Content pages, search, 404
   ====================================================================== */

.prose {
	max-width: var(--measure);
	margin-inline: auto;
	padding-block: var(--space) calc(var(--space) * 2);
	font-size: var(--text-lg);
	line-height: 1.75;
}

.center-note {
	text-align: center;
	padding: calc(var(--space) * 3) var(--gutter);
	max-width: 40rem;
	margin-inline: auto;
}
.center-note .gcs-crest { color: var(--gold); margin-inline: auto; margin-bottom: 1rem; width: 64px; height: 64px; }

.search-form { display: flex; gap: 0.5rem; max-width: 30rem; margin: 1rem auto 0; }
.search-form input[type='search'] {
	flex: 1;
	font: inherit;
	padding: 0.6rem 0.9rem;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	background: var(--parchment);
}
.search-form input[type='search']:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

.button, .search-form input[type='submit'] {
	font: inherit;
	font-size: var(--text-sm);
	font-weight: 600;
	color: var(--cream);
	background: var(--plum-800);
	border: 1px solid var(--plum-800);
	border-radius: var(--radius);
	padding: 0.6rem 1.3rem;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
	transition: background 0.2s, border-color 0.2s;
}
.button:hover, .search-form input[type='submit']:hover { background: var(--plum-700); color: var(--cream); }
.button--gold { background: var(--gold); border-color: var(--gold); color: var(--plum-950); }
.button--gold:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--plum-950); }

/* =========================================================================
   The Clubhouse — bespoke forum
   ====================================================================== */

.forum-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
}
.forum-hero .crumb {
	color: var(--gold);
	text-decoration: none;
	letter-spacing: inherit;
}
.forum-hero .crumb:hover { color: var(--plum-800); }

/* Board rail */
.board-rail {
	display: grid;
	gap: var(--space);
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	padding-block: calc(var(--space) * 1.2) 0;
}
.board-card {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	background: var(--parchment);
	border: 1px solid var(--line);
	border-top: 3px solid var(--plum-800);
	border-radius: var(--radius);
	box-shadow: var(--shadow-soft);
	padding: 1.1rem 1.2rem;
	text-decoration: none;
	transition: border-color 0.25s, box-shadow 0.3s, translate 0.3s var(--ease-out);
}
.board-card:hover {
	border-top-color: var(--gold);
	box-shadow: var(--shadow-lift);
	translate: 0 -3px;
}
.board-name {
	font-family: var(--serif);
	font-size: var(--text-lg);
	font-weight: 560;
	color: var(--plum-900);
}
.board-desc { font-size: var(--text-sm); color: var(--ink-soft); }
.board-count {
	margin-top: auto;
	padding-top: 0.5rem;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gold);
}

/* Thread list */
.thread-list {
	list-style: none;
	margin: 0;
	padding: 0;
	background: var(--parchment);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-soft);
	overflow: hidden;
}
.thread-row + .thread-row { border-top: 1px solid var(--line); }
.thread-row > a {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.2rem;
	text-decoration: none;
	transition: background 0.2s;
}
.thread-row > a:hover { background: rgba(217, 182, 90, 0.08); }

.thread-avatar {
	flex-shrink: 0;
	display: inline-grid;
	place-items: center;
}
.thread-avatar img { border-radius: 50%; display: block; }
.thread-avatar.is-anon {
	width: 40px; height: 40px;
	border-radius: 50%;
	background: var(--plum-900);
	color: var(--gold-soft);
}
.art-meta .thread-avatar.is-anon, .reply-head .thread-avatar.is-anon { width: 28px; height: 28px; }

.thread-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.thread-title {
	font-family: var(--serif);
	font-size: var(--text-md);
	font-weight: 560;
	color: var(--plum-900);
	display: flex;
	align-items: center;
	gap: 0.55rem;
	flex-wrap: wrap;
}
.thread-row > a:hover .thread-title { color: var(--plum-700); }
.thread-meta { font-size: var(--text-xs); color: var(--ink-soft); }

.thread-count {
	flex-shrink: 0;
	text-align: center;
	min-width: 3.4rem;
	border-left: 1px solid var(--line);
	padding-left: 1rem;
}
.thread-count strong {
	display: block;
	font-family: var(--serif);
	font-size: 1.3rem;
	color: var(--plum-800);
	line-height: 1.1;
}
.thread-count.is-zero strong { color: var(--lilac); }
.thread-count small { font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }

.answered-badge {
	display: inline-block;
	font-family: var(--body);
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #1a6b3a;
	background: rgba(33, 134, 73, 0.14);
	border: 1px solid rgba(33, 134, 73, 0.35);
	border-radius: 99px;
	padding: 0.12rem 0.6rem;
}
.answered-tick { color: var(--gcs-green); font-weight: 700; }

/* Single thread */
.thread-author { display: inline-flex; align-items: center; gap: 0.5rem; }
.thread-body {
	max-width: var(--measure);
	margin-inline: auto;
	font-size: var(--text-lg);
	line-height: 1.7;
	background: var(--parchment);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-soft);
	padding: clamp(1.2rem, 3vw, 2rem);
	margin-block: var(--space);
}
.thread-replies { max-width: calc(var(--measure) + 4rem); margin-inline: auto; padding-bottom: calc(var(--space) * 2); }

.reply-card {
	background: var(--parchment);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.1rem 1.3rem;
	margin-bottom: var(--space);
	box-shadow: var(--shadow-soft);
}
.reply-card.is-accepted {
	border: 1px solid rgba(33, 134, 73, 0.5);
	border-left: 3px solid var(--gcs-green);
	background: linear-gradient(180deg, rgba(33, 134, 73, 0.06), transparent 60%), var(--parchment);
}
.reply-head {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 0.6rem;
	flex-wrap: wrap;
}
.reply-head strong { font-family: var(--serif); color: var(--plum-900); }
.reply-when { font-size: var(--text-xs); color: var(--ink-soft); }
.accepted-flag {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--gcs-green);
	margin-left: auto;
}
.mark-answer {
	margin-left: auto;
	font-size: var(--text-xs);
	text-decoration: none;
	color: var(--ink-soft);
	border: 1px solid var(--line-strong);
	border-radius: 99px;
	padding: 0.15rem 0.7rem;
	transition: color 0.2s, border-color 0.2s;
}
.mark-answer:hover { color: var(--orchid); border-color: var(--orchid); }
.reply-body { font-size: var(--text-md); }
.reply-body p:last-child { margin-bottom: 0; }
.no-replies { color: var(--ink-soft); font-style: italic; }

/* Reply form */
.reply-form {
	background: var(--parchment);
	border: 1px solid var(--line-gold);
	border-radius: var(--radius);
	box-shadow: var(--shadow-soft);
	padding: clamp(1.1rem, 3vw, 1.6rem);
	margin-top: calc(var(--space) * 1.4);
}
.reply-form h3 { margin-bottom: 0.7rem; font-size: var(--text-lg); }
.reply-form textarea {
	width: 100%;
	font: inherit;
	padding: 0.7rem 0.9rem;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	background: #fff;
	resize: vertical;
}
.reply-form textarea:focus { outline: 2px solid var(--gold); }
.reply-form .button { margin-top: 0.4rem; }

/* New discussion dialog */
.topic-dialog {
	border: 0;
	padding: 0;
	background: transparent;
	width: min(620px, 92vw);
	margin: 8vh auto auto;
}
.topic-dialog::backdrop {
	background: rgba(35, 11, 39, 0.72);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}
.topic-form {
	background: var(--parchment);
	border: 1px solid var(--line-gold);
	border-radius: 8px;
	box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7);
	padding: clamp(1.2rem, 3vw, 1.8rem);
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
}
.topic-form-head { display: flex; align-items: center; justify-content: space-between; }
.topic-form-head h3 { margin: 0; font-size: var(--text-xl); }
.dialog-close {
	background: none;
	border: 0;
	font-size: 1.6rem;
	line-height: 1;
	color: var(--ink-soft);
	cursor: pointer;
	padding: 0.2rem 0.5rem;
}
.dialog-close:hover { color: var(--plum-900); }
.topic-form label > span {
	display: block;
	font-weight: 700;
	font-size: var(--text-sm);
	color: var(--plum-900);
	margin-bottom: 0.3rem;
}
.topic-form input[type='text'],
.topic-form select,
.topic-form textarea {
	width: 100%;
	font: inherit;
	padding: 0.6rem 0.8rem;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	background: #fff;
}
.topic-form input:focus, .topic-form select:focus, .topic-form textarea:focus { outline: 2px solid var(--gold); }
.topic-form-foot { display: flex; justify-content: flex-end; }

/* =========================================================================
   Motion
   ====================================================================== */

/* --- Cross-page view transitions: the whole site glides, app-like ------- */
@view-transition { navigation: auto; }

@media (prefers-reduced-motion: reduce) {
	@view-transition { navigation: none; }
}

/* Header and footer persist across transitions; only content moves */
.site-header { view-transition-name: gcs-header; }
.site-footer { view-transition-name: gcs-footer; }

@media (prefers-reduced-motion: no-preference) {
	::view-transition-old(root) { animation: vt-leave 0.22s var(--ease-out) both; }
	::view-transition-new(root) { animation: vt-enter 0.34s var(--ease-out) both; }
}
@keyframes vt-leave {
	to { opacity: 0; translate: 0 -10px; }
}
@keyframes vt-enter {
	from { opacity: 0; translate: 0 14px; }
}

@media (prefers-reduced-motion: no-preference) {

	/* --- Scroll reveals (JS adds .is-visible) --------------------------- */
	.reveal {
		opacity: 0;
		translate: 0 18px;
		transition: opacity 0.7s var(--ease-out), translate 0.7s var(--ease-out);
	}
	.reveal.is-visible { opacity: 1; translate: 0 0; }
	.reveal:nth-child(2) { transition-delay: 0.07s; }
	.reveal:nth-child(3) { transition-delay: 0.14s; }
	.reveal:nth-child(4) { transition-delay: 0.21s; }

	/* --- The crest draws itself on arrival (triggered by JS only when
	       the page is actually visible — prerendering had been letting the
	       animation finish before anyone saw it) ------------------------- */
	.site-header.crest-go .gcs-crest circle:first-of-type {
		stroke-dasharray: 132;
		stroke-dashoffset: 132;
		animation: crest-draw 1s var(--ease-out) 0.1s forwards;
	}
	.site-header.crest-go .gcs-crest circle:nth-of-type(2) {
		stroke-dasharray: 110;
		stroke-dashoffset: 110;
		animation: crest-draw 1s var(--ease-out) 0.3s forwards;
	}
	.site-header.crest-go .gcs-crest path {
		opacity: 0;
		animation: crest-fade 0.5s ease 0.7s forwards;
	}

	/* --- Welcome + page heroes blur-up in sequence ---------------------- */
	.dash-welcome .eyebrow,
	.dash-welcome h1,
	.dash-welcome p,
	.page-hero .eyebrow,
	.page-hero h1,
	.page-hero .lede,
	.article-header > * {
		animation: rise-in 0.75s var(--ease-out) both;
	}
	.dash-welcome h1, .page-hero h1, .article-header h1 { animation-delay: 0.1s; }
	.dash-welcome p, .page-hero .lede, .article-header .art-meta { animation-delay: 0.22s; }

	/* --- Live pulse on the podcast panel -------------------------------- */
	.pod-panel .eyebrow::before {
		content: '';
		display: inline-block;
		width: 7px; height: 7px;
		border-radius: 50%;
		background: var(--gold-soft);
		margin-right: 0.55em;
		animation: pulse 2.6s ease-in-out infinite;
	}

	/* --- Gloss sweep on buttons ----------------------------------------- */
	.button { position: relative; overflow: hidden; }
	.button::after {
		content: '';
		position: absolute;
		inset: 0;
		background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.25) 50%, transparent 65%);
		translate: -130% 0;
		pointer-events: none;
	}
	.button:hover::after {
		transition: translate 0.7s var(--ease-out);
		translate: 130% 0;
	}
}

@keyframes crest-draw {
	to { stroke-dashoffset: 0; }
}
@keyframes crest-fade {
	to { opacity: 1; }
}
@keyframes rise-in {
	from { opacity: 0; translate: 0 22px; filter: blur(7px); }
	to { opacity: 1; translate: 0 0; filter: blur(0); }
}
@keyframes pulse {
	50% { opacity: 0.35; scale: 0.75; }
}

/* --- Scroll-driven animations (no JS, compositor-smooth) ---------------- */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {

		/* Header condenses into dark glass as you scroll */
		.site-header {
			animation: header-glass linear both;
			animation-timeline: scroll();
			animation-range: 0 140px;
		}
		.masthead {
			animation: masthead-condense linear both;
			animation-timeline: scroll();
			animation-range: 0 140px;
		}

		/* Gold rule draws across each section as it enters the viewport */
		.section-head::before {
			content: '';
			position: absolute;
			left: 0; bottom: -1px;
			height: 1px;
			width: 100%;
			background: linear-gradient(90deg, var(--gold), var(--gold-soft) 70%, transparent);
			transform-origin: left;
			scale: 0 1;
			animation: rule-draw linear both;
			animation-timeline: view();
			animation-range: entry 10% entry 90%;
		}

		/* Parallax drift on hero imagery */
		.article-hero { overflow: hidden; border-radius: var(--radius); }
		.article-hero img,
		.card--hero .card-media img {
			scale: 1.12;
			animation: parallax linear both;
			animation-timeline: view();
		}
		.card--hero:hover .card-media img { scale: 1.17; }
	}
}
@keyframes header-glass {
	to {
		background: rgba(35, 11, 39, 0.88);
		backdrop-filter: blur(14px);
		-webkit-backdrop-filter: blur(14px);
		box-shadow: 0 14px 40px -20px rgba(0, 0, 0, 0.6);
	}
}
@keyframes masthead-condense {
	to { padding-block: 0.45rem; }
}
@keyframes rule-draw {
	to { scale: 1 1; }
}
@keyframes parallax {
	from { translate: 0 -3.5%; }
	to { translate: 0 3.5%; }
}

/* Accessibility: skip link + visible keyboard focus */
.skip-link {
	position: absolute;
	top: -100px;
	left: 50%;
	translate: -50% 0;
	z-index: 100;
	background: var(--gold-bright);
	color: var(--plum-950);
	font-weight: 700;
	padding: 0.6rem 1.4rem;
	border-radius: 0 0 6px 6px;
	text-decoration: none;
	transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 0; }
:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 2px;
	border-radius: 2px;
}

/* Print: a clean club reprint for the committee table */
@media print {
	@page { margin: 1.8cm; }
	.site-header, .site-footer, .cat-strip, .share-banner, .share-row,
	.mod-bar, .pod-dock, .search-palette, .nav-toggle, .edit-pill,
	.shelf-button, .pagination, .skip-link, .article-footer,
	.single .dash-section, .single .center-note { display: none !important; }
	body {
		background: #fff !important;
		color: #000;
		font-size: 11pt;
	}
	.reveal { opacity: 1 !important; translate: none !important; }
	.article-header {
		text-align: left;
		padding-top: 0;
		border-bottom: 2px solid #2e0f33;
		padding-bottom: 12pt;
		margin-bottom: 14pt;
	}
	.article-header::before {
		content: 'The Golf Club Secretary — The Members\2019 Room';
		display: block;
		font-size: 8pt;
		font-weight: 700;
		letter-spacing: 0.25em;
		text-transform: uppercase;
		color: #a8821f;
		margin-bottom: 10pt;
	}
	.article-header h1 { font-size: 22pt; color: #000; }
	.art-meta { justify-content: flex-start; }
	.article-body {
		max-width: none;
		font-size: 11pt;
		line-height: 1.6;
	}
	.article-body a { color: #000; text-decoration: none; }
	.article-body a[href^='http']::after {
		content: ' (' attr(href) ')';
		font-size: 8pt;
		color: #47524a;
	}
	.article-hero img, .article-body img { max-height: 9cm; width: auto; box-shadow: none; }
}

/* =========================================================================
   Search — trigger + Cmd+K palette
   ====================================================================== */

.search-trigger {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: rgba(245, 240, 228, 0.06);
	border: 1px solid rgba(245, 240, 228, 0.3);
	border-radius: 99px;
	color: var(--cream);
	font: inherit;
	font-size: var(--text-xs);
	padding: 0.42rem 0.8rem;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s;
}
.search-trigger:hover { border-color: var(--gold-soft); background: rgba(217, 182, 90, 0.12); }
.search-trigger .kbd {
	font-size: 0.62rem;
	letter-spacing: 0.05em;
	border: 1px solid rgba(245, 240, 228, 0.35);
	border-radius: 4px;
	padding: 0.1rem 0.35rem;
	opacity: 0.85;
}
@media (max-width: 860px) { .search-trigger .kbd { display: none; } }

.search-palette {
	border: 0;
	padding: 0;
	background: transparent;
	width: min(640px, 92vw);
	margin: 12vh auto auto;
}
.search-palette::backdrop {
	background: rgba(35, 11, 39, 0.72);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}
.palette-box {
	background: var(--parchment);
	border: 1px solid var(--line-gold);
	border-radius: 8px;
	box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7);
	overflow: hidden;
}
#gcs-search-input {
	width: 100%;
	font: inherit;
	font-size: 1.05rem;
	padding: 1rem 1.2rem;
	border: 0;
	border-bottom: 1px solid var(--line);
	background: transparent;
	outline: none;
}
.palette-results {
	max-height: 55vh;
	overflow-y: auto;
	padding: 0.5rem;
}
.palette-results.is-loading { opacity: 0.5; }
.palette-hint {
	color: var(--ink-soft);
	font-size: var(--text-sm);
	text-align: center;
	padding: 1.2rem;
	margin: 0;
}
.palette-group h4 {
	font-family: var(--body);
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--gold);
	margin: 0.7rem 0.7rem 0.25rem;
}
.palette-item {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.55rem 0.7rem;
	border-radius: 5px;
	text-decoration: none;
}
.palette-item:hover, .palette-item.is-active { background: rgba(217, 182, 90, 0.15); }
.palette-item .p-title { font-family: var(--serif); font-weight: 540; color: var(--plum-900); }
.palette-item .p-meta { font-size: var(--text-xs); color: var(--ink-soft); white-space: nowrap; }

/* =========================================================================
   The Library
   ====================================================================== */

.lib-filters {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	padding: 1.1rem 0 1.6rem;
}
.lib-filter-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.45rem;
}
.lib-filter-label {
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ink-soft);
	margin-right: 0.4rem;
	min-width: 3.2rem;
}
.pill {
	font-size: var(--text-xs);
	text-decoration: none;
	color: var(--ink);
	border: 1px solid var(--line-strong);
	border-radius: 99px;
	padding: 0.28rem 0.85rem;
	background: var(--parchment);
	transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.pill:hover { border-color: var(--gold); color: var(--plum-900); }
.pill.is-active {
	background: var(--plum-800);
	border-color: var(--plum-800);
	color: var(--cream);
}

.resource-card .resource-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.doc-badge {
	display: inline-grid;
	place-items: center;
	width: 26px; height: 26px;
	border-radius: 50%;
	border: 1px solid var(--line-gold);
	color: var(--gold);
	font-size: 0.9rem;
}

.download-panel-wrap { max-width: var(--measure); margin-inline: auto; }
.download-panel {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	background: var(--parchment);
	border: 1px solid var(--line-gold);
	border-left: 3px solid var(--gold);
	border-radius: var(--radius);
	box-shadow: var(--shadow-soft);
	padding: 1.1rem 1.4rem;
	margin-block: var(--space);
}
.download-panel strong { display: block; color: var(--plum-900); }
.download-panel span { font-size: var(--text-xs); color: var(--ink-soft); }
.reviewed-badge { color: var(--orchid); }

/* =========================================================================
   Newsletter issues
   ====================================================================== */

.issue-list { display: flex; flex-direction: column; gap: var(--space); }
.issue-card {
	background: var(--parchment);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-soft);
	transition: border-color 0.3s, box-shadow 0.3s, translate 0.3s var(--ease-out);
}
.issue-card:hover { border-color: var(--line-gold); box-shadow: var(--shadow-lift); translate: 0 -2px; }
.issue-link {
	display: flex;
	gap: clamp(1rem, 3vw, 2rem);
	align-items: center;
	padding: clamp(1.2rem, 3vw, 1.8rem);
	text-decoration: none;
}
.issue-no {
	text-align: center;
	border-right: 1px solid var(--line);
	padding-right: clamp(1rem, 3vw, 2rem);
}
.issue-no strong {
	font-family: var(--serif);
	font-size: var(--text-2xl);
	color: var(--plum-800);
	line-height: 1;
}
.issue-body h2 { font-size: var(--text-xl); margin-bottom: 0.3em; }
.issue-body .excerpt { color: var(--ink-soft); font-size: var(--text-sm); margin-bottom: 0.5em; }

.issue-letter { font-style: italic; }

.toc-list {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: toc;
}
.toc-list li { border-bottom: 1px solid var(--line); }
.toc-list a {
	display: flex;
	align-items: center;
	gap: 1.2rem;
	padding: 1.1rem 0.4rem;
	text-decoration: none;
	transition: background 0.2s, padding-left 0.25s var(--ease-out);
}
.toc-list a:hover { background: rgba(217, 182, 90, 0.08); padding-left: 0.9rem; }
.toc-no {
	font-family: var(--serif);
	font-size: var(--text-xl);
	color: var(--line-gold);
	font-style: italic;
}
.toc-list a:hover .toc-no { color: var(--gold); }
.toc-text { flex: 1; display: flex; flex-direction: column; gap: 0.15rem; }
.toc-text strong { font-family: var(--serif); font-size: var(--text-lg); font-weight: 540; color: var(--plum-900); }
.toc-text em { font-style: normal; font-size: var(--text-sm); color: var(--ink-soft); }
.toc-arrow { color: var(--gold); opacity: 0; translate: -6px 0; transition: opacity 0.25s, translate 0.25s var(--ease-out); }
.toc-list a:hover .toc-arrow { opacity: 1; translate: 0 0; }

/* =========================================================================
   Circles
   ====================================================================== */

.circle-members {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
	padding-block: 0.5rem var(--space);
}
.member-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: var(--text-sm);
	background: var(--parchment);
	border: 1px solid var(--line);
	border-radius: 99px;
	padding: 0.25rem 0.9rem 0.25rem 0.3rem;
}
.member-badge img { border-radius: 50%; }

.circle-discussion { max-width: 46rem; padding-bottom: calc(var(--space) * 2); }
.circle-discussion .comment-list { list-style: none; margin: 0; padding: 0; }
.circle-discussion .comment {
	background: var(--parchment);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1rem 1.2rem;
	margin-bottom: 0.9rem;
}
.circle-discussion .comment-meta { font-size: var(--text-xs); color: var(--ink-soft); }
.circle-discussion textarea {
	width: 100%;
	font: inherit;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	padding: 0.7rem;
	background: var(--parchment);
}
.circle-discussion textarea:focus { outline: 2px solid var(--gold); }
.circle-discussion input[type='submit'] {
	font: inherit; font-weight: 600;
	color: var(--cream);
	background: var(--plum-800);
	border: 1px solid var(--plum-800);
	border-radius: var(--radius);
	padding: 0.55rem 1.2rem;
	cursor: pointer;
}

/* =========================================================================
   Share button on articles
   ====================================================================== */

.share-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.8rem;
	flex-wrap: wrap;
	margin-top: 1.1rem;
}
.share-note { font-size: var(--text-xs); color: var(--ink-soft); max-width: 26rem; text-align: left; }

/* =========================================================================
   Subscription Modeller
   ====================================================================== */

.modeller { padding-bottom: var(--space); }
.modeller-grid {
	display: grid;
	gap: var(--space);
	grid-template-columns: 1fr;
	align-items: start;
}
@media (min-width: 900px) { .modeller-grid { grid-template-columns: 1.1fr 1fr; } }

.modeller-form { padding: clamp(1.2rem, 3vw, 1.8rem); display: flex; flex-direction: column; gap: 1rem; }
.modeller-form h3 { margin: 0; }
.modeller-form label { font-weight: 700; font-size: var(--text-sm); color: var(--plum-900); display: block; }
.modeller-form input {
	display: block;
	width: 100%;
	font: inherit;
	font-size: 1.05rem;
	margin-top: 0.3rem;
	padding: 0.55rem 0.8rem;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	background: #fff;
}
.modeller-form input:focus { outline: 2px solid var(--gold); }
.modeller-form em { display: block; font-style: normal; font-weight: 400; font-size: var(--text-xs); color: var(--ink-soft); margin-top: 0.25rem; }

.modeller-results { display: flex; flex-direction: column; gap: var(--space); position: sticky; top: 90px; }
.modeller-big {
	font-family: var(--serif);
	font-size: var(--text-3xl);
	color: var(--gold-soft) !important;
	line-height: 1;
	margin: 0.1em 0 0.2em;
}
.modeller-delta { min-height: 1.4em; }
.modeller-breakdown { padding: clamp(1.2rem, 3vw, 1.6rem); }
.modeller-breakdown dl { margin: 0; }
.modeller-breakdown dl div {
	display: flex;
	justify-content: space-between;
	border-bottom: 1px solid var(--line);
	padding-block: 0.55rem;
}
.modeller-breakdown dt { color: var(--ink-soft); }
.modeller-breakdown dd { margin: 0; font-weight: 700; color: var(--plum-900); }
.modeller-breakdown .description { font-size: var(--text-xs); color: var(--ink-soft); margin: 0.8rem 0 0; }

/* =========================================================================
   My Year
   ====================================================================== */

.year-grid {
	display: grid;
	gap: var(--space);
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	padding-block: var(--space);
}
.year-stat {
	background: var(--parchment);
	border: 1px solid var(--line);
	border-top: 3px solid var(--gold);
	border-radius: var(--radius);
	box-shadow: var(--shadow-soft);
	padding: 1.6rem 1.4rem;
	text-align: center;
}
.year-stat strong {
	display: block;
	font-family: var(--serif);
	font-size: var(--text-3xl);
	color: var(--plum-800);
	line-height: 1;
	margin-bottom: 0.3rem;
}
.year-stat span { font-size: var(--text-sm); color: var(--ink-soft); }
.year-value { margin-block: var(--space); }

/* =========================================================================
   Anonymous posting toggle (wpForo editors)
   ====================================================================== */

.gcs-anon-toggle {
	display: block;
	background: rgba(217, 182, 90, 0.1);
	border: 1px dashed var(--line-gold);
	border-radius: var(--radius);
	padding: 0.7rem 0.9rem;
	margin: 0.8rem 0;
	font-size: var(--text-sm);
	cursor: pointer;
}
.gcs-anon-toggle input { margin-right: 0.4rem; accent-color: var(--gold); }
.gcs-anon-toggle span { font-weight: 700; color: var(--plum-900); }
.gcs-anon-toggle em {
	display: block;
	font-style: normal;
	font-size: var(--text-xs);
	color: var(--ink-soft);
	margin-top: 0.2rem;
}

/* =========================================================================
   Member menu dropdown
   ====================================================================== */

.member-menu { position: relative; }
.member-menu > summary { list-style: none; cursor: pointer; }
.member-menu > summary::-webkit-details-marker { display: none; }
.member-menu .chevron { transition: rotate 0.25s var(--ease-out); }
.member-menu[open] .chevron { rotate: 180deg; }

.member-dropdown {
	position: absolute;
	right: 0;
	top: calc(100% + 10px);
	min-width: 240px;
	background: var(--parchment);
	border: 1px solid var(--line-gold);
	border-radius: 6px;
	box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.55);
	padding: 0.4rem;
	z-index: 60;
}
@media (prefers-reduced-motion: no-preference) {
	.member-menu[open] .member-dropdown { animation: dropdown-in 0.22s var(--ease-out); }
}
@keyframes dropdown-in {
	from { opacity: 0; translate: 0 -6px; }
}
.member-dropdown .md-who {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	padding: 0.6rem 0.8rem 0.7rem;
	border-bottom: 1px solid var(--line);
	margin-bottom: 0.3rem;
}
.member-dropdown .md-who strong { font-family: var(--serif); color: var(--plum-900); }
.member-dropdown .md-who span { font-size: var(--text-xs); color: var(--ink-soft); }
.member-dropdown a {
	display: block;
	padding: 0.5rem 0.8rem;
	border-radius: 4px;
	font-size: var(--text-sm);
	text-decoration: none;
	color: var(--ink);
}
.member-dropdown a:hover { background: rgba(217, 182, 90, 0.14); color: var(--plum-900); }
.member-dropdown .md-signout {
	border-top: 1px solid var(--line);
	margin-top: 0.3rem;
	color: #8a3b2e;
}
.member-dropdown .md-signout:hover { background: rgba(138, 59, 46, 0.08); color: #8a3b2e; }

/* =========================================================================
   Profile page
   ====================================================================== */

.profile-wrap { max-width: 46rem; margin-inline: auto; padding-block: var(--space) calc(var(--space) * 2); }

.notice-banner {
	border-radius: var(--radius);
	padding: 0.8rem 1.1rem;
	font-size: var(--text-sm);
	margin-bottom: var(--space);
	border: 1px solid;
}
.notice-banner.is-good { background: rgba(33, 134, 73, 0.1); border-color: rgba(33, 134, 73, 0.4); color: #1a6b3a; }
.notice-banner.is-bad { background: rgba(138, 59, 46, 0.08); border-color: rgba(138, 59, 46, 0.35); color: #8a3b2e; }

.profile-form { padding: clamp(1.3rem, 3vw, 2rem); display: flex; flex-direction: column; gap: 1.3rem; }

.profile-avatar-row {
	display: flex;
	align-items: center;
	gap: 1.1rem;
	padding-bottom: 1.1rem;
	border-bottom: 1px solid var(--line);
}
.profile-avatar-row img { border-radius: 50%; border: 2px solid var(--line-gold); }
.profile-avatar-row div { display: flex; flex-direction: column; gap: 0.1rem; }
.profile-avatar-row strong { font-family: var(--serif); font-size: var(--text-lg); color: var(--plum-900); }
.profile-avatar-row span { font-size: var(--text-sm); color: var(--ink-soft); }
.profile-avatar-row em { font-style: normal; font-size: var(--text-xs); color: var(--ink-soft); }

.field-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: 1fr 1fr;
}
@media (max-width: 560px) { .field-grid { grid-template-columns: 1fr; } }
.field-grid .field-wide { grid-column: 1 / -1; }
.field-grid label > span {
	display: block;
	font-weight: 700;
	font-size: var(--text-sm);
	color: var(--plum-900);
	margin-bottom: 0.3rem;
}
.field-grid input {
	width: 100%;
	font: inherit;
	padding: 0.6rem 0.8rem;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	background: #fff;
}
.field-grid input:focus { outline: 2px solid var(--gold); }

.profile-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}
.profile-hint { font-size: var(--text-xs); color: var(--ink-soft); }

/* =========================================================================
   Events
   ====================================================================== */

.event-list { display: flex; flex-direction: column; gap: var(--space); }
.event-list--duo {
	display: grid;
	gap: var(--space);
	grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
}

.event-card {
	background: var(--parchment);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-soft);
	transition: border-color 0.3s, box-shadow 0.3s, translate 0.3s var(--ease-out);
}
.event-card:hover { border-color: var(--line-gold); box-shadow: var(--shadow-lift); translate: 0 -2px; }
.event-card.is-past { opacity: 0.7; }

.event-link {
	display: flex;
	gap: clamp(1rem, 3vw, 1.6rem);
	align-items: center;
	padding: clamp(1.1rem, 3vw, 1.5rem);
	text-decoration: none;
}

.event-date {
	flex-shrink: 0;
	width: 64px;
	text-align: center;
	background: var(--plum-900);
	border-radius: var(--radius);
	padding: 0.55rem 0.3rem 0.6rem;
	box-shadow: inset 0 0 0 1px rgba(217, 182, 90, 0.4);
}
.event-date .ed-month {
	display: block;
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--gold-soft);
}
.event-date .ed-day {
	display: block;
	font-family: var(--serif);
	font-size: 1.7rem;
	font-weight: 540;
	color: var(--cream);
	line-height: 1.1;
}

.event-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.event-tags { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.event-body h3 { margin: 0; font-size: var(--text-lg); }
.event-card:hover h3 { color: var(--plum-700); }
.event-meta { font-size: var(--text-sm); color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 0.45rem; }
.event-meta .dot { color: var(--gold); }

.event-places {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	font-size: var(--text-xs);
	color: var(--ink-soft);
	margin-top: 0.25rem;
}
.places-bar {
	flex: 1;
	max-width: 180px;
	height: 4px;
	border-radius: 99px;
	background: var(--line);
	overflow: hidden;
}
.places-bar span {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--gold), var(--gold-soft));
	border-radius: 99px;
}

.full-badge {
	display: inline-block;
	font-family: var(--body);
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #8a3b2e;
	background: rgba(138, 59, 46, 0.08);
	border: 1px solid rgba(138, 59, 46, 0.35);
	border-radius: 99px;
	padding: 0.12rem 0.6rem;
}

.event-panel .event-actions { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.badge-club { font-style: normal; font-size: 0.68rem; color: var(--ink-soft); }

/* Profile photo upload */
.avatar-upload { margin-top: 0.45rem; display: block; }
.avatar-upload input[type='file'] {
	display: block;
	font-size: var(--text-xs);
	color: var(--ink-soft);
	margin-bottom: 0.2rem;
}
.avatar-upload input[type='file']::file-selector-button {
	font: inherit;
	font-size: var(--text-xs);
	font-weight: 600;
	color: var(--plum-800);
	background: transparent;
	border: 1px solid var(--line-strong);
	border-radius: 99px;
	padding: 0.3rem 0.9rem;
	margin-right: 0.7rem;
	cursor: pointer;
	transition: border-color 0.2s, color 0.2s;
}
.avatar-upload input[type='file']::file-selector-button:hover { border-color: var(--gold); color: var(--gold); }
.avatar-upload em, .avatar-remove em { font-style: normal; font-size: var(--text-xs); color: var(--ink-soft); }
.avatar-remove { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.3rem; }
.avatar-remove input { accent-color: var(--gold); }

/* =========================================================================
   The Office — admin console
   ====================================================================== */

.office-wrap { padding-bottom: calc(var(--space) * 2); }
.office-stats { padding-top: 0; }
.office-stats .year-stat { text-decoration: none; display: block; }
.office-stats .year-stat:hover { border-top-color: var(--gold-bright); }

.o-actions {
	display: grid;
	gap: 0.8rem;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	margin-bottom: calc(var(--space) * 1.5);
}
.o-actions .board-card { border-top-width: 2px; padding: 0.85rem 1rem; }
.o-actions .board-name { font-size: var(--text-md); }

.o-recent { margin-bottom: calc(var(--space) * 1.4); }
.o-recent li { border-bottom: 1px solid var(--line); }
.o-recent .o-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.7rem 0.25rem;
}
.o-recent .t-title { text-decoration: none; }
.o-recent .t-title:hover { color: var(--gold); }
.o-row-actions { display: flex; gap: 0.9rem; align-items: baseline; font-size: var(--text-xs); white-space: nowrap; }
.o-row-actions a { text-decoration: none; }
.o-trash { color: #8a3b2e !important; }
.o-trash:hover { text-decoration: underline; }

.o-footnote { font-size: var(--text-xs); color: var(--ink-soft); }
.o-password { font-family: var(--sans, monospace); user-select: all; }

/* Forms */
.o-form { padding: clamp(1.3rem, 3vw, 2rem); display: flex; flex-direction: column; gap: 1.2rem; }
.o-grid { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .o-grid { grid-template-columns: 1fr; } }
.o-field { display: block; }
.o-field-wide, .o-grid .o-field-wide { grid-column: 1 / -1; }
.o-field > span, .o-label {
	display: block;
	font-weight: 700;
	font-size: var(--text-sm);
	color: var(--plum-900);
	margin-bottom: 0.3rem;
}
.o-field input:not([type='checkbox']):not([type='file']),
.o-field select,
.o-field textarea {
	width: 100%;
	font: inherit;
	padding: 0.55rem 0.8rem;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	background: #fff;
}
.o-field input:focus, .o-field select:focus, .o-field textarea:focus { outline: 2px solid var(--gold); }
.o-field em { display: block; font-style: normal; font-size: var(--text-xs); color: var(--ink-soft); margin-top: 0.25rem; }
.o-check { display: flex; align-items: center; gap: 0.5rem; align-self: end; }
.o-check input { accent-color: var(--gold); }
.o-check span { margin: 0; font-weight: 600; }

.o-member-picker {
	max-height: 220px;
	overflow: auto;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	background: #fff;
	padding: 0.6rem 0.8rem;
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}
.o-member-picker label { font-size: var(--text-sm); }
.o-member-picker input { accent-color: var(--gold); margin-right: 0.4rem; }
.o-member-picker em { font-style: normal; color: var(--ink-soft); font-size: var(--text-xs); }

.o-form .wp-editor-wrap { border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.o-form-foot {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 1.4rem;
	border-top: 1px solid var(--line);
	padding-top: 1.1rem;
}

/* Profile password + Office members list */
.password-section {
	border-top: 1px solid var(--line);
	padding-top: 1.1rem;
}
.password-section h3 { font-size: var(--text-lg); margin-bottom: 0.8rem; }
.o-member { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.o-member img { border-radius: 50%; flex-shrink: 0; }
.o-member > span { display: flex; flex-direction: column; min-width: 0; }
.o-member .t-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Edit pill for editors on single pages + Office rows */
.edit-pill, .o-edit {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--gold);
	border: 1px solid var(--line-gold);
	border-radius: 99px;
	padding: 0.14rem 0.65rem;
	transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.edit-pill:hover, .o-edit:hover { color: var(--plum-950); background: var(--gold-soft); border-color: var(--gold-soft); }

/* Draft badge in the Office */
.draft-badge {
	display: inline-block;
	font-family: var(--body);
	font-size: 0.6rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ink-soft);
	background: rgba(71, 82, 74, 0.1);
	border: 1px dashed var(--line-strong);
	border-radius: 99px;
	padding: 0.08rem 0.5rem;
	vertical-align: middle;
}

/* Contributor byline link */
.byline { font-weight: 700; text-decoration: none; }

/* Contributor photos */
.byline { display: inline-flex; align-items: center; gap: 0.45rem; }
.byline-avatar {
	width: 26px; height: 26px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid var(--line-gold);
}
.contributor-hero { display: flex; align-items: center; gap: clamp(1rem, 3vw, 1.8rem); }
.contributor-photo {
	width: 120px; height: 120px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--line-gold);
	box-shadow: var(--shadow-soft);
	flex-shrink: 0;
}
@media (max-width: 560px) { .contributor-photo { width: 84px; height: 84px; } }

/* The Contributors index */
.contributor-index {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.9rem;
	grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
}
.contributor-index a {
	display: flex;
	align-items: center;
	gap: 0.95rem;
	height: 100%;
	padding: 0.9rem 1.05rem;
	background: var(--parchment);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	text-decoration: none;
	color: inherit;
	transition: border-color 0.18s, box-shadow 0.18s, translate 0.18s;
}
.contributor-index a:hover {
	border-color: var(--line-gold);
	box-shadow: var(--shadow-soft);
	translate: 0 -2px;
}
.contributor-index img,
.contributor-index .ci-fallback {
	width: 72px; height: 72px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--line-gold);
	flex-shrink: 0;
	display: grid;
	place-items: center;
	background: var(--plum-800);
	color: var(--gold-soft);
	font-family: var(--serif);
	font-size: 1.6rem;
}
.ci-who { display: grid; gap: 0.15rem; min-width: 0; }
.ci-who strong {
	font-family: var(--serif);
	font-weight: 540;
	font-size: var(--text-md);
	line-height: 1.2;
	color: var(--plum-900);
}
.ci-role {
	font-size: var(--text-xs);
	color: var(--ink-soft);
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ci-count {
	font-size: var(--text-xs);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--gold);
}

/* Minted share link field */
.share-url {
	flex-basis: 100%;
	max-width: 34rem;
	margin-inline: auto;
	font: inherit;
	font-size: 1rem;
	color: var(--plum-800);
	text-align: center;
	padding: 0.5rem 0.8rem;
	border: 1px solid var(--line-gold);
	border-radius: var(--radius);
	background: var(--parchment);
}
.share-url:focus { outline: 2px solid var(--gold); }

/* Minimal header for share-link guests: just the brand */
.masthead.is-guest { justify-content: center; }
.masthead.is-guest .brand { margin-right: 0; }

/* =========================================================================
   Newsletter issue — the magazine treatment
   ====================================================================== */

.issue-cover {
	background:
		radial-gradient(900px 420px at 20% -10%, rgba(201, 162, 39, 0.16), transparent 65%),
		var(--plum-950);
	color: var(--cream);
	border-bottom: 1px solid rgba(217, 182, 90, 0.4);
	position: relative;
}
.issue-cover::after {
	content: '';
	position: absolute;
	inset: 10px;
	border: 1px solid rgba(217, 182, 90, 0.28);
	border-radius: 3px;
	pointer-events: none;
}
.issue-cover-grid {
	display: grid;
	gap: clamp(1.5rem, 4vw, 3.5rem);
	grid-template-columns: 1fr;
	align-items: center;
	padding-block: clamp(2rem, 6vw, 4.5rem);
	position: relative;
	z-index: 1;
}
@media (min-width: 860px) { .issue-cover-grid { grid-template-columns: 1.1fr 1fr; } }

.ic-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: var(--gold-soft);
}
.ic-brand .gcs-crest { color: var(--gold-soft); }
.ic-date {
	font-size: clamp(2.6rem, 6vw, 4.6rem);
	font-weight: 480;
	color: var(--cream);
	line-height: 1.02;
	margin: 0.25em 0 0.1em;
}
.ic-vol {
	display: block;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--gold-soft);
	margin-bottom: 0.9rem;
}
.ic-strap {
	font-family: var(--serif);
	font-style: italic;
	color: var(--lilac);
	max-width: 34ch;
	margin-bottom: 1rem;
}
.ic-stats { font-size: var(--text-sm); color: var(--cream); display: flex; gap: 0.6rem; margin-bottom: 1rem; }
.ic-stats .dot { color: var(--gold-soft); }

.ic-faces { display: flex; align-items: center; margin-bottom: 1rem; }
.ic-faces a { display: inline-block; margin-right: -9px; transition: translate 0.25s var(--ease-out); }
.ic-faces a:hover { translate: 0 -3px; }
.ic-faces img, .ic-face-fallback {
	width: 34px; height: 34px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--plum-950);
	box-shadow: 0 0 0 1px rgba(217, 182, 90, 0.5);
	display: inline-grid;
	place-items: center;
	background: var(--plum-800);
	color: var(--gold-soft);
	font-family: var(--serif);
	font-size: 0.85rem;
}
.ic-faces em {
	font-style: normal;
	font-size: var(--text-xs);
	color: var(--lilac);
	margin-left: 1.1rem;
}

.ic-cover {
	margin: 0;
	justify-self: center;
	max-width: 460px;
	width: 100%;
	rotate: 1.2deg;
	transition: rotate 0.4s var(--ease-out);
}
.ic-cover:hover { rotate: 0deg; }
.ic-cover img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border: 1px solid rgba(217, 182, 90, 0.6);
	border-radius: 4px;
	box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.8);
	padding: 8px;
	background: var(--plum-900);
}

/* Editor's letter */
.editors-letter {
	max-width: 46rem;
	margin: calc(var(--space) * 1.6) auto 0;
	background: var(--parchment);
	border: 1px solid var(--line-gold);
	border-radius: var(--radius);
	box-shadow: var(--shadow-soft);
	padding: clamp(1.4rem, 4vw, 2.4rem);
	position: relative;
}
.editors-letter .letter-body {
	font-size: var(--text-lg);
	line-height: 1.75;
	margin-top: 0.8rem;
}
.editors-letter .letter-body > p:first-of-type::first-letter {
	font-family: var(--serif);
	font-size: 3em;
	font-weight: 540;
	float: left;
	line-height: 0.85;
	padding: 0.05em 0.12em 0 0;
	color: var(--plum-800);
}
.letter-signoff {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	border-top: 1px solid var(--line);
	padding-top: 1rem;
	margin-top: 0.6rem;
	font-family: var(--serif);
	font-style: italic;
	color: var(--plum-800);
}
.letter-signoff .gcs-crest { color: var(--gold); }

/* Cover story */
.cover-story {
	display: grid;
	grid-template-columns: 1fr;
	background: var(--parchment);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-soft);
	overflow: hidden;
	text-decoration: none;
	transition: border-color 0.3s, box-shadow 0.35s var(--ease-out), translate 0.35s var(--ease-out);
}
@media (min-width: 800px) { .cover-story { grid-template-columns: 1.3fr 1fr; } }
.cover-story:hover { border-color: var(--line-gold); box-shadow: var(--shadow-lift); translate: 0 -3px; }
.cs-media {
	min-height: 260px;
	background: linear-gradient(135deg, var(--plum-800), var(--plum-950));
	display: grid;
	place-items: center;
	overflow: hidden;
}
.cs-media img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.6s var(--ease-out); }
.cover-story:hover .cs-media img { scale: 1.04; }
.cs-media .gcs-crest { color: rgba(217, 182, 90, 0.5); }
.cs-body {
	padding: clamp(1.3rem, 3.5vw, 2.2rem);
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	justify-content: center;
}
.cs-body h3 { font-size: var(--text-2xl); font-weight: 500; margin: 0; }
.cover-story:hover .cs-body h3 { color: var(--plum-700); }
.cs-body p { color: var(--ink-soft); margin: 0; }
.cs-meta { font-size: var(--text-xs); color: var(--ink-soft); letter-spacing: 0.06em; text-transform: uppercase; }

/* Contents list */
.contents-list { list-style: none; margin: 0; padding: 0; counter-reset: contents; }
.contents-list li { border-bottom: 1px solid var(--line); }
.contents-list a {
	display: flex;
	align-items: center;
	gap: clamp(0.8rem, 2.5vw, 1.4rem);
	padding: 1rem 0.4rem;
	text-decoration: none;
	transition: background 0.2s, padding-left 0.25s var(--ease-out);
}
.contents-list a:hover { background: rgba(217, 182, 90, 0.08); padding-left: 0.9rem; }
.cl-no {
	font-family: var(--serif);
	font-size: var(--text-xl);
	font-style: italic;
	color: var(--line-gold);
	min-width: 2ch;
}
.contents-list a:hover .cl-no { color: var(--gold); }
.cl-thumb {
	flex-shrink: 0;
	width: 64px; height: 64px;
	border-radius: 6px;
	overflow: hidden;
	background: var(--plum-900);
	display: grid;
	place-items: center;
	color: rgba(217, 182, 90, 0.5);
}
.cl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cl-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.cl-text strong { font-family: var(--serif); font-size: var(--text-lg); font-weight: 540; color: var(--plum-900); }
.cl-text em { font-style: normal; font-size: var(--text-xs); color: var(--ink-soft); }
@media (max-width: 520px) { .cl-thumb { display: none; } }

/* Issue-to-issue navigation */
.issue-flip {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	border-top: 1px solid var(--line-strong);
	padding-block: 1.2rem calc(var(--space) * 2);
	font-size: var(--text-sm);
}
.issue-flip a { font-weight: 560; text-decoration: none; }
.issue-flip a:hover { color: var(--gold); }
.issue-flip-all {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--gold) !important;
}

/* Issue cover thumb on archive cards */
.issue-cover-thumb {
	flex-shrink: 0;
	width: 108px;
	align-self: stretch;
	min-height: 88px;
	border-radius: 4px;
	overflow: hidden;
	background: var(--plum-900);
	display: grid;
	place-items: center;
	color: rgba(217, 182, 90, 0.5);
}
.issue-cover-thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 560px) { .issue-cover-thumb { display: none; } }

/* Forum moderation bar */
.mod-bar {
	display: inline-flex;
	align-items: center;
	gap: 1rem;
	margin-top: 0.9rem;
	padding: 0.35rem 0.9rem;
	border: 1px dashed var(--line-gold);
	border-radius: 99px;
	font-size: var(--text-xs);
}
.mod-bar .mod-label {
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gold);
	font-size: 0.62rem;
}
.mod-bar a { text-decoration: none; color: var(--ink-soft); }
.mod-bar a:hover { color: var(--plum-900); text-decoration: underline; }
.mod-bar a.o-trash:hover { color: #8a3b2e; }

/* Native audio player */
.gcs-audio { width: 100%; display: block; border-radius: 99px; }

/* =========================================================================
   The Dock — persistent podcast player
   ====================================================================== */

.pod-dock {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 80;
	display: flex;
	align-items: center;
	gap: clamp(0.6rem, 2vw, 1.1rem);
	padding: 0.6rem clamp(0.9rem, 3vw, 1.6rem);
	background: rgba(35, 11, 39, 0.92);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-top: 1px solid rgba(217, 182, 90, 0.45);
	color: var(--cream);
	translate: 0 105%;
	transition: translate 0.35s var(--ease-out);
	box-shadow: 0 -14px 40px -20px rgba(0, 0, 0, 0.6);
}
.pod-dock.is-up { translate: 0 0; }
/* Reserve room for the fixed dock inside the footer itself, so the dark
   plum runs all the way down behind the player — no pale gap, whatever
   the dock's exact height. */
body.has-dock .site-footer { padding-bottom: 84px; }

.dock-art {
	flex-shrink: 0;
	width: 42px; height: 42px;
	border-radius: 8px;
	background: var(--plum-800);
	display: grid;
	place-items: center;
	color: var(--gold-soft);
	box-shadow: inset 0 0 0 1px rgba(217, 182, 90, 0.4);
}

.dock-toggle {
	flex-shrink: 0;
	width: 42px; height: 42px;
	border-radius: 50%;
	border: 0;
	background: var(--gold-bright);
	color: var(--plum-950);
	display: grid;
	place-items: center;
	cursor: pointer;
	transition: scale 0.2s var(--ease-out), background 0.2s;
}
.dock-toggle:hover { background: var(--gold-soft); scale: 1.06; }
.pod-dock .i-pause { display: none; }
.pod-dock.is-playing .i-pause { display: block; }
.pod-dock.is-playing .i-play { display: none; }

.dock-info { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.dock-info em {
	font-style: normal;
	font-size: 0.6rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--gold-soft);
}
.dock-title {
	font-family: var(--serif);
	font-size: var(--text-sm);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 34vw;
}

/* Tall input for a fat touch target; the visible track stays a slim 4px
   line drawn as a centred gradient. touch-action keeps a horizontal
   scrub from being stolen by the page scroll gesture. */
.dock-seek {
	flex: 1;
	appearance: none;
	height: 28px;
	border-radius: 99px;
	background: linear-gradient(rgba(245, 240, 228, 0.25), rgba(245, 240, 228, 0.25)) center / 100% 4px no-repeat;
	cursor: pointer;
	accent-color: var(--gold-bright);
	touch-action: none;
}
.dock-seek::-webkit-slider-thumb {
	appearance: none;
	width: 18px; height: 18px;
	border-radius: 50%;
	background: var(--gold-soft);
	border: 0;
	box-shadow: 0 0 0 3px rgba(35, 11, 39, 0.8);
}
.dock-seek::-moz-range-thumb {
	width: 18px; height: 18px;
	border-radius: 50%;
	background: var(--gold-soft);
	border: 0;
}

.dock-time {
	flex-shrink: 0;
	font-size: var(--text-xs);
	font-variant-numeric: tabular-nums;
	color: var(--lilac);
	white-space: nowrap;
}

.dock-close {
	flex-shrink: 0;
	background: none;
	border: 0;
	color: var(--lilac);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	padding: 0.2rem 0.4rem;
}
.dock-close:hover { color: var(--cream); }

@media (max-width: 640px) {
	.dock-time, .dock-art { display: none; }
	.dock-title { max-width: 40vw; }
}

/* =========================================================================
   Bespoke episode play button
   ====================================================================== */

.play-episode {
	display: inline-flex;
	align-items: center;
	gap: 0.9rem;
	background: none;
	border: 0;
	padding: 0.35rem 0.5rem 0.35rem 0.35rem;
	cursor: pointer;
	font: inherit;
	text-align: left;
	border-radius: 99px;
	transition: background 0.25s;
}
.play-episode:hover { background: rgba(217, 182, 90, 0.1); }

.pe-disc {
	position: relative;
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--gold-bright);
	color: var(--plum-950);
	display: grid;
	place-items: center;
	transition: scale 0.25s var(--ease-out), background 0.25s;
}
.pe-disc .pe-play { margin-left: 3px; }
.play-episode:hover .pe-disc { scale: 1.08; background: var(--gold-soft); }

/* Pulsing ring invitation */
@media (prefers-reduced-motion: no-preference) {
	.pe-disc::after {
		content: '';
		position: absolute;
		inset: -3px;
		border-radius: 50%;
		border: 1px solid var(--gold-bright);
		opacity: 0;
	}
	.play-episode:hover .pe-disc::after,
	.play-episode.is-playing .pe-disc::after {
		animation: pe-ring 1.6s var(--ease-out) infinite;
	}
}
@keyframes pe-ring {
	0% { opacity: 0.8; scale: 1; }
	100% { opacity: 0; scale: 1.45; }
}

/* Equaliser bars while playing */
.pe-eq {
	display: none;
	align-items: flex-end;
	gap: 3px;
	height: 18px;
}
.pe-eq i {
	width: 3.5px;
	border-radius: 2px;
	background: var(--plum-950);
	height: 30%;
}
.play-episode.is-playing .pe-eq { display: flex; }
.play-episode.is-playing .pe-play { display: none; }
@media (prefers-reduced-motion: no-preference) {
	.play-episode.is-playing .pe-eq i { animation: pe-eq 0.9s ease-in-out infinite; }
	.play-episode.is-playing .pe-eq i:nth-child(1) { animation-delay: -0.5s; }
	.play-episode.is-playing .pe-eq i:nth-child(2) { animation-delay: -0.2s; }
	.play-episode.is-playing .pe-eq i:nth-child(3) { animation-delay: -0.7s; }
	.play-episode.is-playing .pe-eq i:nth-child(4) { animation-delay: -0.35s; }
}
@keyframes pe-eq {
	0%, 100% { height: 30%; }
	50% { height: 100%; }
}

.pe-text { display: flex; flex-direction: column; line-height: 1.3; }
.pe-text strong {
	font-family: var(--serif);
	font-size: var(--text-md);
	font-weight: 560;
	color: var(--plum-900);
}
.play-episode.is-playing .pe-text strong { color: var(--gold); }
.pe-text em {
	font-style: normal;
	font-size: var(--text-xs);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

/* In the dark podcast panel on the dashboard */
.pod-panel .pe-text strong { color: var(--cream); }
.pod-panel .play-episode:hover { background: rgba(217, 182, 90, 0.14); }
.pod-panel .pe-text em { color: var(--lilac); }

/* =========================================================================
   Member directory + My Shelf + email prefs
   ====================================================================== */

.member-filter {
	display: block;
	width: min(28rem, 100%);
	margin: 0 auto var(--space);
	font: inherit;
	padding: 0.65rem 1rem;
	border: 1px solid var(--line-strong);
	border-radius: 99px;
	background: var(--parchment);
	text-align: center;
}
.member-filter:focus { outline: 2px solid var(--gold); }

.member-card { text-decoration: none; }
.member-card-body { flex-direction: row; align-items: center; gap: 1rem; }
.member-card-body img { border-radius: 50%; flex-shrink: 0; border: 2px solid var(--line-gold); }
.member-card-body h3 { font-size: var(--text-lg); margin: 0 0 0.15rem; }
.member-card-body .excerpt { margin: 0; }
.member-card.is-hidden { display: none; }

.thread-author { text-decoration: none; color: inherit; }
a.thread-author:hover { color: var(--gold); }
a.member-badge { text-decoration: none; transition: border-color 0.2s; }
a.member-badge:hover { border-color: var(--gold); }
.reply-head strong a { text-decoration: none; color: inherit; }
.reply-head strong a:hover { color: var(--gold); }

.shelf-button {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	background: none;
	border: 1px solid var(--line-strong);
	border-radius: 99px;
	padding: 0.35rem 0.9rem;
	font: inherit;
	font-size: var(--text-xs);
	font-weight: 700;
	color: var(--ink-soft);
	cursor: pointer;
	transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.shelf-button:hover { color: var(--gold); border-color: var(--gold); }
.shelf-button.is-saved {
	color: var(--gold);
	border-color: var(--line-gold);
	background: rgba(217, 182, 90, 0.12);
}
.shelf-button.is-saved svg path { fill: currentColor; }

.notify-grid { display: flex; flex-direction: column; gap: 0.45rem; }

/* =========================================================================
   The bespoke sign-in page
   ====================================================================== */

.signin-page { margin: 0; }
.signin-shell {
	display: grid;
	grid-template-columns: 1fr;
	min-height: 100vh;
	min-height: 100dvh;
}
@media (min-width: 880px) { .signin-shell { grid-template-columns: 1.15fr 1fr; } }

.signin-brand {
	background:
		radial-gradient(900px 500px at 30% 20%, rgba(201, 162, 39, 0.16), transparent 65%),
		var(--plum-950);
	color: var(--cream);
	display: grid;
	place-items: center;
	padding: clamp(2rem, 6vw, 4rem);
	position: relative;
}
.signin-brand::after {
	content: '';
	position: absolute;
	inset: 14px;
	border: 1px solid rgba(217, 182, 90, 0.3);
	border-radius: 4px;
	pointer-events: none;
}
.signin-brand-inner { max-width: 30rem; position: relative; z-index: 1; }
.signin-crest { color: var(--gold-soft); margin-bottom: 1.4rem; }
@media (prefers-reduced-motion: no-preference) {
	.signin-crest circle:first-of-type { stroke-dasharray: 132; stroke-dashoffset: 132; animation: crest-draw 1.2s var(--ease-out) 0.2s forwards; }
	.signin-crest circle:nth-of-type(2) { stroke-dasharray: 110; stroke-dashoffset: 110; animation: crest-draw 1.2s var(--ease-out) 0.45s forwards; }
	.signin-crest path { opacity: 0; animation: crest-fade 0.6s ease 0.9s forwards; }
	.signin-brand-inner > * { animation: rise-in 0.8s var(--ease-out) both; }
	.signin-brand-inner > :nth-child(2) { animation-delay: 0.1s; }
	.signin-brand-inner > :nth-child(3) { animation-delay: 0.18s; }
	.signin-brand-inner > :nth-child(4) { animation-delay: 0.26s; }
	.signin-brand-inner > :nth-child(5) { animation-delay: 0.36s; }
	.signin-form > * { animation: rise-in 0.7s var(--ease-out) both; }
	.signin-form > :nth-child(2) { animation-delay: 0.08s; }
	.signin-form > :nth-child(3) { animation-delay: 0.14s; }
	.signin-form > :nth-child(4) { animation-delay: 0.2s; }
	.signin-form > :nth-child(5) { animation-delay: 0.26s; }
	.signin-form > :nth-child(6) { animation-delay: 0.32s; }
	.signin-form > :nth-child(8) { animation-delay: 0.4s; }
}
.signin-wordmark {
	font-size: clamp(2rem, 4.5vw, 3.2rem);
	font-weight: 500;
	color: var(--cream);
	margin: 0 0 0.3rem;
	line-height: 1.05;
}
.signin-tag {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--gold-soft);
	margin: 0 0 1.2rem;
}
.signin-strap {
	font-family: var(--serif);
	font-style: italic;
	color: var(--lilac);
	font-size: var(--text-lg);
	margin-bottom: 2rem;
}
.signin-quote {
	margin: 0;
	border-left: 2px solid var(--gold);
	padding-left: 1.1rem;
}
.signin-quote p {
	font-family: var(--serif);
	font-size: var(--text-md);
	color: var(--cream);
	margin-bottom: 0.4rem;
}
.signin-quote cite {
	font-style: normal;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--gold-soft);
}

.signin-form-panel {
	background: var(--cream);
	display: grid;
	place-items: center;
	padding: clamp(2rem, 5vw, 4rem);
}
.signin-form {
	width: min(24rem, 100%);
	background: var(--parchment);
	border: 1px solid var(--line-gold);
	border-radius: 8px;
	box-shadow: var(--shadow-lift);
	padding: clamp(1.6rem, 4vw, 2.4rem);
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.signin-form h2 { font-size: var(--text-2xl); font-weight: 500; margin: 0; }
.signin-form label > span {
	display: block;
	font-weight: 700;
	font-size: var(--text-sm);
	color: var(--plum-900);
	margin-bottom: 0.3rem;
}
.signin-form input[type='text'],
.signin-form input[type='password'] {
	width: 100%;
	font: inherit;
	font-size: 1.05rem;
	padding: 0.7rem 0.9rem;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	background: #fff;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.signin-form input[type='text']:focus,
.signin-form input[type='password']:focus {
	outline: none;
	border-color: var(--gold);
	box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.25);
}
.signin-remember { display: flex; align-items: center; gap: 0.5rem; }
.signin-remember input { accent-color: var(--gold); }
.signin-remember em { font-style: normal; font-size: var(--text-sm); color: var(--ink-soft); }
.signin-submit { padding: 0.85rem 1.4rem; font-size: var(--text-md); }
.signin-help {
	font-size: var(--text-xs);
	color: var(--ink-soft);
	margin: 0;
	border-top: 1px solid var(--line);
	padding-top: 0.9rem;
}
.signin-wordmark a { display: inline-block; line-height: 0; }
.signin-back { font-size: var(--text-xs); margin: 0; }
.signin-back a { color: var(--ink-soft); text-decoration: none; }
.signin-back a:hover { color: var(--gold); }
.signin-form > .signin-back { animation-delay: 0.45s; }

/* Article action row: shelf + share as matching quiet pills */
.share-row { gap: 0.6rem; }
.share-row .share-button {
	background: none;
	border: 1px solid var(--line-strong);
	border-radius: 99px;
	color: var(--ink-soft);
	font-size: var(--text-xs);
	font-weight: 700;
	padding: 0.35rem 0.9rem;
	transition: color 0.2s, border-color 0.2s;
}
.share-row .share-button:hover {
	background: none;
	color: var(--gold);
	border-color: var(--gold);
}
.share-row .share-button::after { display: none; }
.share-row .discuss-button {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	background: none;
	border: 1px solid var(--line-strong);
	border-radius: 99px;
	padding: 0.35rem 0.9rem;
	font-size: var(--text-xs);
	font-weight: 700;
	color: var(--ink-soft);
	text-decoration: none;
	transition: color 0.2s, border-color 0.2s;
}
.share-row .discuss-button:hover { color: var(--gold); border-color: var(--gold); }
.share-row .discuss-button svg path { fill: currentColor; }

/* "Discussing: <article>" backlink on companion forum topics */
.discussing-of { font-size: var(--text-sm); color: var(--ink-soft); margin: 0.5rem 0 0; }
.discussing-of a { color: var(--gold); }
.share-row .share-note {
	flex-basis: 100%;
	text-align: center;
	max-width: none;
}

/* =========================================================================
   Brand logo lockups (assets/brand/) — master logo per the brand
   guidelines: never below 100px wide on screen, clear exclusion zone.
   ====================================================================== */
.brand-logo { display: block; width: 150px; height: auto; }
.footer-brand .brand-logo { width: 170px; opacity: 0.96; }
.signin-wordmark { margin: 0 0 0.5rem; }
.signin-wordmark img { display: block; width: min(320px, 72vw); height: auto; }

/* =========================================================================
   Mobile refinements — from the 2026-07 mobile audit.
   ====================================================================== */

/* Anchors land clear of the sticky header. */
html { scroll-padding-top: 90px; }

/* Long URLs and unbroken strings must never widen the page. */
.article-body, .prose, .reply-body, .thread-body, .palette-results { overflow-wrap: anywhere; }

/* Safety nets for editor-pasted content and raw embeds. */
iframe { max-width: 100%; }
.article-body table, .prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; }
.article-body td, .article-body th, .prose td, .prose th { padding: 0.4rem 0.7rem; border: 1px solid var(--line); }

/* Small phones: the masthead row must fit 320px. Logo stays above the
   brand guidelines' 100px minimum. */
@media (max-width: 480px) {
	.masthead { gap: 0.6rem; }
	.brand-logo { width: 118px; }
	.search-trigger { padding: 0.5rem 0.55rem; }
	.member-chip { padding: 0.25rem 0.6rem 0.25rem 0.3rem; }
}

/* Sign-in on one phone screen: compact brand banner, form in first view. */
@media (max-width: 879px) {
	.signin-shell { min-height: auto; }
	.signin-brand { padding: 1.75rem 1.25rem 1.5rem; }
	.signin-quote { display: none; }
	.signin-wordmark img { width: min(250px, 64vw); }
}

/* The collapsed single-column modeller/VAT layout must not pin results
   over the form. */
@media (max-width: 899px) {
	.modeller-results { position: static; }
}

/* The Office console on phones: let rows and the form footer wrap. */
@media (max-width: 640px) {
	.o-recent .o-row { flex-wrap: wrap; }
	.o-form-foot { flex-wrap: wrap; justify-content: flex-start; }
}

/* Pagination wraps rather than overflowing. */
.pagination { flex-wrap: wrap; }

/* Dialogs sized against the *visual* viewport where dvh is supported,
   so the phone keyboard doesn't swallow them. */
.search-palette { margin: 10dvh auto auto; }
.palette-results { max-height: 55dvh; }
.topic-dialog { margin: 8dvh auto auto; }

/* The fixed dock respects the iPhone home-indicator area. */
.pod-dock { padding-bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px)); }
body.has-dock .site-footer { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }

/* Search palette close button (touch users have no Escape key). */
.palette-box { position: relative; }
.palette-close {
	position: absolute;
	top: 0.45rem;
	right: 0.45rem;
	background: none;
	border: 0;
	font-size: 1.5rem;
	line-height: 1;
	padding: 0.45rem 0.65rem;
	color: var(--ink-soft);
	cursor: pointer;
	border-radius: var(--radius);
}
.palette-close:hover { color: var(--plum-900); }
#gcs-search-input { padding-right: 3rem; }

/* Fatter touch targets on coarse pointers; desktop stays trim. */
@media (pointer: coarse) {
	.cat-strip a { padding: 0.5rem 0.95rem; }
	.pill { padding: 0.45rem 0.95rem; }
	.shelf-button, .share-row .share-button, .share-row .discuss-button { padding: 0.5rem 1rem; }
	.pagination .page-numbers { padding: 0.55rem 1rem; }
	.search-trigger { padding: 0.55rem 0.8rem; }
	.search-trigger .kbd { display: none; }
	.dock-close, .dialog-close { padding: 0.5rem 0.75rem; }
	.mark-answer { padding: 0.4rem 0.9rem; }
	.edit-pill, .o-edit { padding: 0.35rem 0.8rem; }
	.footer-nav a, .o-row-actions a, .mod-bar a, .issue-flip a { display: inline-block; padding-block: 0.55rem; }
}

/* The Dashboard renders no category strip at all (see header.php) — it
   belongs to the Articles and category pages, where it's the navigation. */

/* Collapsible topics bar on phones: a one-line "Topics · <current>" button
   folds the pill cloud out with an animated grid-rows reveal. Desktop
   never sees the button. */
.cat-toggle { display: none; }
@media (max-width: 640px) {
	.cat-toggle {
		display: flex;
		width: 100%;
		align-items: center;
		justify-content: space-between;
		gap: 0.8rem;
		background: none;
		border: 0;
		padding: 0.8rem 0;
		font: inherit;
		font-size: var(--text-xs);
		font-weight: 700;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		color: var(--plum-900);
		cursor: pointer;
	}
	.cat-toggle em { font-style: normal; font-weight: 600; color: var(--gold); }
	.cat-toggle .chev { flex-shrink: 0; color: var(--gold); transition: rotate 0.28s var(--ease-out); }
	.cat-strip.is-open .cat-toggle .chev { rotate: 180deg; }
	.cat-strip .cat-fold {
		display: grid;
		grid-template-rows: 0fr;
		transition: grid-template-rows 0.32s var(--ease-out);
	}
	.cat-strip.is-open .cat-fold { grid-template-rows: 1fr; }
	.cat-strip .cat-fold > ul {
		overflow: hidden;
		min-height: 0;
		padding: 0;
		transition: padding 0.32s var(--ease-out);
	}
	.cat-strip.is-open .cat-fold > ul { padding: 0.1rem 0 1rem; }
}

/* =========================================================================
   "Hear, hear" appreciation + the Dashboard popularity leaderboard.
   ====================================================================== */
.cheer-button {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font: inherit;
	font-size: var(--text-xs);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--plum-800);
	background: none;
	border: 1px solid var(--line-gold);
	border-radius: 99px;
	padding: 0.35rem 0.9rem;
	cursor: pointer;
	transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.cheer-button:hover { border-color: var(--gold); }
.cheer-button svg path { fill: none; stroke: var(--gold); stroke-width: 1.3; stroke-linejoin: round; transition: fill 0.18s; }
.cheer-button.is-on { background: rgba(217, 182, 90, 0.16); border-color: var(--gold); color: var(--plum-950); }
.cheer-button.is-on svg path { fill: var(--gold-bright); stroke: var(--gold-bright); }
.cheer-count { font-weight: 700; color: var(--gold); }
@media (pointer: coarse) { .cheer-button { padding: 0.5rem 1rem; } }

.pop-hero { position: relative; }
.pop-hero::after {
	content: '\2116 1';
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	background: var(--gold-bright);
	color: var(--plum-950);
	font-family: var(--serif);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	padding: 0.28rem 0.65rem;
	border-radius: 3px;
	box-shadow: var(--shadow-soft);
	pointer-events: none;
}
.pop-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.6rem;
	align-content: start;
}
.pop-list a {
	display: flex;
	gap: 1rem;
	align-items: baseline;
	text-decoration: none;
	background: var(--parchment);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 0.85rem 1rem;
	color: var(--ink);
	transition: border-color 0.18s, translate 0.18s;
}
.pop-list a:hover { border-color: var(--gold); translate: 0 -2px; }
.pop-rank {
	font-family: var(--serif);
	font-size: 1.5rem;
	font-weight: 500;
	line-height: 1;
	color: var(--gold);
	min-width: 1.4ch;
	text-align: center;
	flex-shrink: 0;
}
.pop-body { display: grid; gap: 0.25rem; min-width: 0; }
.pop-body strong { font-family: var(--serif); font-weight: 540; font-size: 1.02rem; line-height: 1.3; color: var(--plum-900); }
.pop-meta { font-size: var(--text-xs); color: var(--ink-soft); display: flex; gap: 0.7rem; align-items: center; flex-wrap: wrap; }
.pop-cheers { color: var(--gold); font-weight: 700; display: inline-flex; gap: 0.3rem; align-items: center; }

/* =========================================================================
   Member-shared documents: the Honours Board + share dialog.
   ====================================================================== */
.hero-actions { margin-top: 1.1rem; }

.honours-board {
	background:
		radial-gradient(600px 300px at 18% 0%, rgba(201, 162, 39, 0.14), transparent 60%),
		var(--plum-950);
	color: var(--cream);
	border: 1px solid rgba(217, 182, 90, 0.4);
	border-radius: var(--radius);
	padding: clamp(1.2rem, 3vw, 2rem);
	margin-top: var(--space);
}
.hb-head h2 {
	font-family: var(--serif);
	font-weight: 520;
	font-size: var(--text-xl);
	color: var(--gold-soft);
	margin: 0 0 0.15rem;
}
.hb-head p { color: var(--lilac); font-size: var(--text-sm); margin: 0 0 1.1rem; }
.hb-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.55rem;
	grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
}
.hb-list li {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	background: rgba(245, 240, 228, 0.05);
	border: 1px solid rgba(217, 182, 90, 0.25);
	border-radius: var(--radius);
	padding: 0.6rem 0.8rem;
	min-width: 0;
}
.hb-rank {
	font-family: var(--serif);
	font-size: 1.25rem;
	color: var(--gold);
	min-width: 1.2ch;
	text-align: center;
	flex-shrink: 0;
}
.hb-list img { border-radius: 50%; flex-shrink: 0; }
.hb-who { display: grid; gap: 0.05rem; min-width: 0; }
.hb-who strong { font-family: var(--serif); font-weight: 540; line-height: 1.2; }
.hb-who strong a { color: var(--cream); text-decoration: none; }
.hb-who strong a:hover { color: var(--gold-soft); }
.hb-who > span {
	font-size: var(--text-xs);
	color: var(--lilac);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.hb-count {
	margin-left: auto;
	color: var(--gold-soft);
	font-size: var(--text-xs);
	font-weight: 700;
	white-space: nowrap;
	flex-shrink: 0;
}
.hb-cta {
	margin-top: 1.1rem;
	background: none;
	border: 1px solid rgba(217, 182, 90, 0.5);
	color: var(--gold-soft);
	font: inherit;
	font-size: var(--text-sm);
	font-weight: 600;
	border-radius: 99px;
	padding: 0.5rem 1.2rem;
	cursor: pointer;
	transition: background 0.2s;
}
.hb-cta:hover { background: rgba(217, 182, 90, 0.12); }

.dialog-note { color: var(--ink-soft); font-size: var(--text-sm); margin: -0.2rem 0 0.4rem; }
.field-hint { display: block; font-style: normal; font-size: var(--text-xs); color: var(--ink-soft); margin-top: 0.35rem; }
.shared-by a { color: inherit; font-weight: 700; text-decoration: none; }
.shared-by a:hover { color: var(--orchid); }
.pending-badge { background: rgba(217, 182, 90, 0.2); }

/* "On this device" panel (profile): install + notifications */
.device-rows { display: grid; gap: 0.9rem; }
.device-row {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
	background: var(--parchment);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 0.9rem 1.1rem;
}
.device-row > div { display: grid; gap: 0.15rem; flex: 1; min-width: 200px; }
.device-row strong { font-family: var(--serif); font-weight: 540; }
.device-row > div > span { font-size: var(--text-sm); color: var(--ink-soft); }
.device-hint { font-size: var(--text-sm); color: var(--ink-soft); font-style: italic; }
.push-status:not([hidden]) { font-style: normal; font-weight: 600; color: #1a6b3a; }

/* Installed-app mode: the page runs full-bleed under the iOS status bar,
   so the header (and the sign-in brand panel) reserve the top safe area —
   the plum background fills behind the clock, controls sit below it. */
.site-header { padding-top: max(0px, calc(env(safe-area-inset-top, 0px) - 20px)); }
.signin-brand { padding-top: max(clamp(2rem, 6vw, 4rem), calc(clamp(2rem, 6vw, 4rem) + env(safe-area-inset-top, 0px) - 20px)); }
@media (max-width: 879px) {
	.signin-brand { padding-top: max(1.75rem, calc(1.75rem + env(safe-area-inset-top, 0px) - 20px)); }
}

/* =========================================================================
   Public landing page — the shop window for logged-out visitors
   ====================================================================== */

/* "soon" badge on podcast nav/footer links while no episode is published */
.nav-soon {
	font-size: 0.58rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gold-soft);
	vertical-align: super;
	margin-left: 0.15rem;
}
.footer-nav .nav-soon { color: var(--gold); }

.landing-page { margin: 0; background: var(--parchment); color: var(--ink); font-family: var(--body); scroll-behavior: smooth; }
.landing-wrap { max-width: 72rem; margin-inline: auto; padding-inline: clamp(1.2rem, 4vw, 2.5rem); }
.landing-page section[id] { scroll-margin-top: 5.5rem; }

/* --- Header: sits transparent over the hero, condenses to dark glass --- */
.landing-header {
	position: fixed;
	inset-inline: 0;
	top: 0;
	z-index: 30;
	background: rgba(35, 11, 39, 0.92);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	box-shadow: 0 14px 40px -20px rgba(0, 0, 0, 0.6);
}
.landing-header-row {
	display: flex;
	align-items: center;
	gap: 1.8rem;
	padding-block: 0.85rem;
}
.landing-logo { line-height: 0; margin-right: auto; }
.landing-logo img { width: clamp(140px, 20vw, 190px); height: auto; }
.landing-nav { display: flex; gap: 1.6rem; }
.landing-nav a {
	position: relative;
	color: var(--cream);
	text-decoration: none;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	padding-block: 0.3rem;
}
.landing-nav a::after {
	content: '';
	position: absolute;
	left: 0; bottom: 0;
	width: 100%;
	height: 1px;
	background: var(--gold-soft);
	transform-origin: left;
	scale: 0 1;
	transition: scale 0.3s var(--ease-out);
}
.landing-nav a:hover { color: var(--gold-soft); }
.landing-nav a:hover::after { scale: 1 1; }
@media (max-width: 820px) { .landing-nav { display: none; } }
.landing-signin { white-space: nowrap; }

/* --- Hero: full-height plum with gold glow and hairline frame --- */
.landing-hero {
	position: relative;
	min-height: 100svh;
	display: grid;
	grid-template-rows: 1fr auto;
	align-items: center;
	padding-block: 7rem 2.4rem;
	background:
		radial-gradient(1000px 560px at 28% 12%, rgba(201, 162, 39, 0.16), transparent 65%),
		radial-gradient(800px 500px at 85% 90%, rgba(82, 28, 91, 0.55), transparent 70%),
		var(--plum-950);
	color: var(--cream);
	overflow: hidden;
}
.landing-hero::after {
	content: '';
	position: absolute;
	inset: 16px;
	border: 1px solid rgba(217, 182, 90, 0.3);
	border-radius: 4px;
	pointer-events: none;
}
.landing-hero-inner {
	position: relative;
	z-index: 1;
	text-align: center;
	max-width: 52rem;
	margin-inline: auto;
}
.landing-hero .gcs-crest { color: var(--gold-soft); margin-bottom: 1.5rem; }
.landing-tag {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--gold-soft);
	margin: 0 0 1.4rem;
}
.landing-hero h1 {
	font-family: var(--serif);
	font-weight: 470;
	font-size: clamp(2.4rem, 6vw, 4.3rem);
	line-height: 1.06;
	letter-spacing: -0.01em;
	color: var(--cream);
	margin: 0 0 1.3rem;
	text-wrap: balance;
}
.landing-hero h1 em { font-style: italic; font-weight: 420; color: var(--gold-soft); }
.landing-strap {
	font-family: var(--serif);
	font-style: italic;
	font-size: var(--text-lg);
	line-height: 1.6;
	color: var(--lilac);
	max-width: 40rem;
	margin: 0 auto 2.2rem;
}
.landing-cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }
.landing-cta-row .button { padding: 0.85rem 1.7rem; font-size: var(--text-md); }
.landing-ghost { background: transparent; border-color: rgba(245, 240, 228, 0.4); color: var(--cream); }
.landing-ghost:hover { background: rgba(245, 240, 228, 0.1); border-color: var(--cream); color: var(--cream); }

.landing-stats {
	margin-top: 3.5rem;
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	border-top: 1px solid rgba(217, 182, 90, 0.3);
	padding-top: 1.6rem;
	text-align: center;
}
.landing-stats > div + div { border-left: 1px solid rgba(217, 182, 90, 0.18); }
.landing-stats strong {
	display: block;
	font-family: var(--serif);
	font-style: italic;
	font-weight: 480;
	font-size: clamp(1.7rem, 3.4vw, 2.5rem);
	line-height: 1.1;
	color: var(--gold-soft);
	margin-bottom: 0.25rem;
}
.landing-stats span {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--lilac);
}
@media (max-width: 640px) {
	.landing-stats { grid-template-columns: 1fr; gap: 1rem; }
	.landing-stats > div + div { border-left: 0; border-top: 1px solid rgba(217, 182, 90, 0.18); padding-top: 1rem; }
}

/* --- Sections: numbered heads with the double fine rule --- */
.landing-section { padding-block: clamp(3.6rem, 8vw, 6.5rem); }
.landing-section--alt { background: var(--cream); border-block: 1px solid var(--line); }
.landing-sechead {
	display: flex;
	align-items: baseline;
	gap: 1rem;
	padding-bottom: 0.9rem;
	margin-bottom: clamp(1.8rem, 4vw, 3rem);
	border-bottom: 1px solid var(--line-strong);
	position: relative;
}
.landing-sechead::after {
	content: '';
	position: absolute;
	left: 0; bottom: -4px;
	width: 100%;
	border-bottom: 1px solid var(--line);
}
.landing-no {
	font-family: var(--serif);
	font-style: italic;
	font-weight: 450;
	font-size: var(--text-xl);
	color: var(--gold);
	line-height: 1;
}
.landing-sec-label {
	font-family: var(--body);
	font-size: var(--text-xs);
	font-weight: 640;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--plum-800);
}
.landing-cols { display: grid; gap: 2.4rem; align-items: start; }
@media (min-width: 880px) { .landing-cols { grid-template-columns: 1.35fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); } }
.landing-section h2 {
	font-family: var(--serif);
	font-weight: 500;
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	line-height: 1.15;
	margin: 0 0 1.1rem;
	text-wrap: balance;
}
.landing-section h2 em { font-style: italic; font-weight: 440; color: var(--orchid); }
.landing-col-text p { line-height: 1.75; color: var(--ink-soft); max-width: 58ch; margin: 0 0 1rem; }

.landing-quote { border-left: 2px solid var(--gold); padding-left: 1.1rem; margin: 1.6rem 0 0; }
.landing-quote p { font-family: var(--serif); font-style: italic; font-size: var(--text-md); color: var(--ink); margin-bottom: 0.4rem; }
.landing-quote cite {
	font-style: normal;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--gold);
}

/* --- Panels: dark plum with the inset gold trim, like the pod panel --- */
.landing-panel {
	background:
		radial-gradient(420px 280px at 85% -10%, rgba(201, 162, 39, 0.15), transparent 70%),
		var(--plum-900);
	color: var(--cream);
	border-radius: var(--radius);
	padding: clamp(1.5rem, 3vw, 2.2rem);
	position: relative;
	overflow: hidden;
	box-shadow: var(--shadow-lift);
}
.landing-panel::before {
	content: '';
	position: absolute;
	inset: 8px;
	border: 1px solid rgba(217, 182, 90, 0.35);
	border-radius: 2px;
	pointer-events: none;
}
.landing-panel > * { position: relative; z-index: 1; }
.landing-panel .eyebrow { display: block; color: var(--gold-soft); margin-bottom: 0.8rem; }
.landing-price { display: flex; align-items: baseline; gap: 0.6rem; margin: 0 0 0.6rem; }
.landing-price strong {
	font-family: var(--serif);
	font-style: italic;
	font-weight: 480;
	font-size: 2.7rem;
	line-height: 1;
	color: var(--gold-soft);
}
.landing-price span {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--lilac);
}
.landing-panel ul { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.landing-panel li {
	padding: 0.6rem 0 0.6rem 1.2rem;
	position: relative;
	border-bottom: 1px solid rgba(245, 240, 228, 0.12);
	font-size: var(--text-sm);
	line-height: 1.5;
	color: var(--cream);
}
.landing-panel li:last-child { border-bottom: 0; }
.landing-panel li::before { content: '\2013'; position: absolute; left: 0; color: var(--gold-soft); }
.landing-panel .button { width: 100%; text-align: center; }

/* --- Contact: the dark closing room --- */
.landing-section--dark {
	position: relative;
	background:
		radial-gradient(900px 500px at 50% 0%, rgba(201, 162, 39, 0.13), transparent 65%),
		var(--plum-950);
	color: var(--cream);
	overflow: hidden;
}
.landing-section--dark::after {
	content: '';
	position: absolute;
	inset: 14px;
	border: 1px solid rgba(217, 182, 90, 0.28);
	border-radius: 4px;
	pointer-events: none;
}
.landing-contact { position: relative; z-index: 1; text-align: center; max-width: 40rem; }
.landing-contact .gcs-crest { color: var(--gold-soft); margin-bottom: 1.2rem; }
.landing-contact .landing-tag { margin-bottom: 1rem; }
.landing-section--dark h2 { color: var(--cream); }
.landing-section--dark h2 em { color: var(--gold-soft); }
.landing-contact p { color: var(--lilac); line-height: 1.7; margin: 0 auto 1rem; max-width: 34rem; }
.landing-address { font-family: var(--serif); font-style: italic; color: var(--lilac); line-height: 1.7; margin: 0 auto 0.4rem; }
.landing-address a { color: var(--cream); text-decoration: none; }
.landing-address a:hover { color: var(--gold-soft); }
.landing-contact-lines { font-family: var(--serif); font-size: var(--text-lg); margin: 0.8rem 0 1.8rem; }
.landing-contact-sep { color: var(--gold-soft); margin-inline: 0.6rem; }
.landing-contact-lines a { color: var(--cream); text-decoration-color: var(--gold-soft); text-underline-offset: 5px; }
.landing-contact-lines a:hover { color: var(--gold-soft); }

/* --- Footer --- */
.landing-footer { background: var(--plum-950); border-top: 1px solid rgba(217, 182, 90, 0.25); color: var(--lilac); }
.landing-footer-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.8rem 2rem;
	padding-block: 1.3rem 1.5rem;
	font-size: var(--text-xs);
}
.landing-footer p { margin: 0; }
.landing-footer nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.landing-footer a {
	color: var(--lilac);
	text-decoration: none;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-size: 0.66rem;
}
.landing-footer a:hover { color: var(--gold-soft); }
.landing-footer p a {
	text-transform: none;
	letter-spacing: normal;
	font-weight: inherit;
	font-size: inherit;
	text-decoration: none;
}

/* --- Motion: crest draws, hero rises on load, sections rise on scroll --- */
@media (prefers-reduced-motion: no-preference) {
	.landing-hero .gcs-crest circle:first-of-type { stroke-dasharray: 132; stroke-dashoffset: 132; animation: crest-draw 1.2s var(--ease-out) 0.2s forwards; }
	.landing-hero .gcs-crest circle:nth-of-type(2) { stroke-dasharray: 110; stroke-dashoffset: 110; animation: crest-draw 1.2s var(--ease-out) 0.45s forwards; }
	.landing-hero .gcs-crest path { opacity: 0; animation: crest-fade 0.6s ease 0.9s forwards; }
	.landing-hero-inner > * { animation: rise-in 0.8s var(--ease-out) both; }
	.landing-hero-inner > :nth-child(2) { animation-delay: 0.1s; }
	.landing-hero-inner > :nth-child(3) { animation-delay: 0.18s; }
	.landing-hero-inner > :nth-child(4) { animation-delay: 0.26s; }
	.landing-hero-inner > :nth-child(5) { animation-delay: 0.36s; }
	.landing-stats { animation: rise-in 0.8s var(--ease-out) 0.5s both; }
}
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {

		/* Header starts transparent over the hero, glasses over on scroll */
		.landing-header {
			animation: landing-glass linear both;
			animation-timeline: scroll();
			animation-range: 0 180px;
		}

		/* Gold rule draws across each section head as it enters */
		.landing-sechead::before {
			content: '';
			position: absolute;
			left: 0; bottom: -1px;
			height: 1px;
			width: 100%;
			background: linear-gradient(90deg, var(--gold), var(--gold-soft) 70%, transparent);
			transform-origin: left;
			scale: 0 1;
			animation: rule-draw linear both;
			animation-timeline: view();
			animation-range: entry 10% entry 90%;
		}

		/* Content rises gently as it scrolls into view */
		.landing-cols > *,
		.landing-contact > * {
			animation: rise-in linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 35%;
		}
	}
}
@keyframes landing-glass {
	from {
		background: transparent;
		-webkit-backdrop-filter: blur(0);
		backdrop-filter: blur(0);
		box-shadow: none;
	}
}

/* =========================================================================
   Subscriber Survey (/survey/) — public step-by-step wizard
   ====================================================================== */

.survey-page {
	margin: 0;
	font-family: var(--body);
	color: var(--ink);
	background:
		radial-gradient(1100px 520px at 50% -120px, rgba(201, 162, 39, 0.14), transparent 65%),
		var(--plum-950);
}
.survey-header-tag {
	margin-left: auto;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--gold-soft);
	white-space: nowrap;
}
.survey-main { flex: 1 0 auto; width: 100%; padding-top: clamp(5.5rem, 11vw, 7rem); }
.survey-wrap { max-width: 50rem; margin-inline: auto; padding: 1.2rem 1.2rem 4rem; }

.survey-progress { display: flex; align-items: center; gap: 1rem; margin: 0 0 1rem; }
.sp-track { flex: 1; height: 3px; border-radius: 99px; background: rgba(245, 240, 228, 0.18); }
.sp-bar { height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); transition: width 0.45s var(--ease-out); }
.sp-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lilac); }

.survey-card {
	background: var(--parchment);
	border: 1px solid var(--line-gold);
	border-radius: 8px;
	box-shadow: var(--shadow-lift);
	padding: clamp(1.6rem, 4vw, 3rem);
}
.survey-step[hidden] { display: none !important; }
.survey-step h1 { font-family: var(--serif); font-weight: 500; font-size: var(--text-2xl); margin: 0 0 0.8rem; }

/* Intro + thanks: centred rooms */
.survey-step[data-step='0'], .survey-thanks { text-align: center; }
.survey-step[data-step='0'] .gcs-crest, .survey-thanks .gcs-crest { color: var(--gold); margin-bottom: 1rem; }
.survey-step[data-step='0'] .landing-tag, .survey-thanks .landing-tag { display: block; color: var(--gold); margin-bottom: 1rem; }
.survey-step[data-step='0'] p, .survey-thanks p { max-width: 36rem; margin: 0 auto 1rem; line-height: 1.7; color: var(--ink-soft); }
.survey-step[data-step='0'] .survey-nav { justify-content: center; border-top: 0; }

/* Section head: the double fine rule with an italic gold number */
.step-head {
	display: flex;
	align-items: baseline;
	gap: 1rem;
	padding-bottom: 0.8rem;
	margin-bottom: 1.8rem;
	border-bottom: 1px solid var(--line-strong);
	position: relative;
}
.step-head::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 100%; border-bottom: 1px solid var(--line); }
.step-head h2 { font-family: var(--serif); font-weight: 500; font-size: var(--text-xl); margin: 0; }
.step-intro { color: var(--ink-soft); line-height: 1.7; margin: 0 0 1.8rem; }

/* Questions */
.q { margin: 0 0 2.1rem; }
.q-head { display: flex; align-items: baseline; gap: 0.8rem; margin-bottom: 0.8rem; }
.q-no { font-family: var(--serif); font-style: italic; font-weight: 460; color: var(--gold); min-width: 1.7rem; text-align: right; flex-shrink: 0; }
.q-label { font-weight: 700; color: var(--plum-900); }
.q-hint { display: block; font-size: var(--text-sm); color: var(--ink-soft); margin-top: 0.2rem; }
.q-missing { display: none; font-size: var(--text-sm); color: #a13327; margin: 0.5rem 0 0; }
.q.is-missing { background: rgba(161, 51, 39, 0.05); border-radius: var(--radius); padding: 0.8rem; margin-inline: -0.8rem; }
.q.is-missing .q-missing { display: block; }

/* Identity fields */
.q-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1.1rem; }
@media (max-width: 620px) { .q-fields { grid-template-columns: 1fr; } }
.q-fields .field span { display: block; font-size: var(--text-sm); font-weight: 700; color: var(--plum-900); margin-bottom: 0.3rem; }
.q-fields .field em { color: var(--gold); font-style: normal; }
.q-fields input, .q--textarea textarea, .survey-form textarea {
	width: 100%;
	font: inherit;
	font-size: 1rem;
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	background: #fff;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.q-fields input:focus, .survey-form textarea:focus {
	outline: none;
	border-color: var(--gold);
	box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.25);
}
.field.is-missing input { border-color: #a13327; }

/* Option pills (radio + checkbox) */
.q-opts { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span {
	display: inline-block;
	border: 1px solid var(--line-strong);
	border-radius: 99px;
	padding: 0.45rem 1rem;
	font-size: var(--text-sm);
	background: #fff;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.opt span:hover { border-color: var(--gold); }
.opt input:checked + span { background: var(--plum-800); border-color: var(--plum-800); color: var(--cream); }
.opt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.opt input:disabled + span { opacity: 0.4; cursor: default; }
.opt input:disabled + span:hover { border-color: var(--line-strong); }
.q-counter { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin: 0.5rem 0 0; }

/* Rating matrices */
.matrix { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.m-head, .m-row { display: grid; grid-template-columns: minmax(9rem, 1.6fr) repeat(var(--mcols), 1fr); align-items: center; }
.m-head {
	background: var(--cream);
	border-bottom: 1px solid var(--line);
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-soft);
}
.m-head span { padding: 0.6rem 0.3rem; text-align: center; }
.m-head span:first-child { text-align: left; padding-left: 0.9rem; }
.m-row { border-bottom: 1px solid var(--line); }
.m-row:last-child { border-bottom: 0; }
.m-row:nth-child(odd) { background: var(--parchment); }
.m-label { padding: 0.55rem 0.9rem; font-size: var(--text-sm); }
.m-cell { display: flex; justify-content: center; padding: 0.45rem 0; cursor: pointer; }
.m-cell input {
	appearance: none;
	-webkit-appearance: none;
	width: 17px;
	height: 17px;
	margin: 0;
	border: 1.5px solid var(--line-strong);
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
}
.m-cell input:hover { border-color: var(--gold); }
.m-cell input:checked { border-color: var(--orchid); background: radial-gradient(circle, var(--orchid) 0 44%, transparent 52%); }
.m-cell input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.m-cell i { display: none; }
@media (max-width: 700px) {
	.m-head { display: none; }
	.m-row { display: block; padding: 0.75rem 0.9rem; }
	.m-row:nth-child(odd) { background: var(--parchment); }
	.m-label { display: block; padding: 0 0 0.55rem; font-weight: 600; }
	.m-cell { display: inline-flex; padding: 0; margin: 0 0.45rem 0.45rem 0; }
	.m-cell input { position: absolute; opacity: 0; pointer-events: none; }
	.m-cell i {
		display: inline-block;
		font-style: normal;
		font-size: var(--text-xs);
		border: 1px solid var(--line-strong);
		border-radius: 99px;
		padding: 0.3rem 0.7rem;
		background: #fff;
		cursor: pointer;
		transition: border-color 0.2s, background 0.2s, color 0.2s;
	}
	.m-cell input:checked + i { background: var(--plum-800); border-color: var(--plum-800); color: var(--cream); }
}

/* 0–10 recommendation scale */
.q-nps { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.nps input { position: absolute; opacity: 0; pointer-events: none; }
.nps span {
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	background: #fff;
	font-weight: 700;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.nps span:hover { border-color: var(--gold); }
.nps input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--plum-950); }
.nps input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.nps-ends { display: flex; justify-content: space-between; max-width: 31rem; font-size: var(--text-xs); color: var(--ink-soft); margin-top: 0.35rem; }

/* Wizard navigation */
.survey-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.survey-back { background: transparent; border-color: var(--line-strong); color: var(--ink-soft); }
.survey-back:hover { background: transparent; border-color: var(--gold); color: var(--gold); }
.step-error { color: #a13327; font-size: var(--text-sm); margin: 1rem 0 0; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

.survey-thanks h1 { margin-bottom: 1rem; }
