/* csMenopause — main stylesheet
   Palette taken from the logo: paper cream, deep green-black ink, ochre face, leaf green, lilac "24". */

:root {
	--bg: #f9f8f6;
	--surface: #ffffff;
	--sand: #f3eee6;
	--line: #e5ded3;
	--ink: #13211b;
	--ink-2: #34433b;
	--muted: #5d6a63;
	--forest: #182c23;
	--forest-2: #22392e;
	--ochre: #c97b1a;
	--ochre-deep: #8a4f0b;
	--ochre-soft: #f8ead6;
	--leaf: #4f7d27;
	--leaf-deep: #3b5f1c;
	--leaf-soft: #e7efdb;
	--lilac: #d7b2f4;
	--lilac-deep: #6f4596;
	--lilac-soft: #f2e9fb;

	--serif: "DM Serif Display", Georgia, "Times New Roman", serif;
	--caps: "Cormorant Garamond", Georgia, serif;
	--sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--radius: 20px;
	--radius-sm: 12px;
	--shadow: 0 1px 2px rgba(19, 33, 27, .05), 0 10px 30px -12px rgba(19, 33, 27, .16);
	--shadow-lg: 0 2px 4px rgba(19, 33, 27, .05), 0 24px 50px -20px rgba(19, 33, 27, .28);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink-2);
	font-family: var(--sans);
	font-size: 1.125rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--ochre-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.45rem; line-height: 1.25; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }

.eyebrow {
	font-family: var(--sans);
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--ochre-deep);
	margin: 0 0 1rem;
	display: inline-flex;
	align-items: center;
	gap: .7em;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.center .eyebrow, .eyebrow.center { justify-content: center; }
.eyebrow-light { color: var(--lilac); }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.3rem); line-height: 1.65; color: var(--ink-2); }

.tagline {
	font-family: var(--caps);
	font-weight: 600;
	font-size: .95rem;
	letter-spacing: .42em;
	text-transform: uppercase;
	color: var(--ink);
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: .35rem;
	margin: 0;
	line-height: 1.3;
}
.tagline-rule { width: 100%; height: 1px; background: currentColor; position: relative; }
.tagline-rule::before, .tagline-rule::after { content: ""; position: absolute; top: -3px; width: 1px; height: 7px; background: currentColor; }
.tagline-rule::before { left: 0; } .tagline-rule::after { right: 0; }
.tagline-light { color: #efe8dc; }

/* ---------- Buttons ---------- */
.btn {
	--b: var(--ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55em;
	padding: .85em 1.45em;
	border-radius: 999px;
	border: 2px solid var(--b);
	background: var(--b);
	color: #fff;
	font: 700 1rem/1.2 var(--sans);
	letter-spacing: .01em;
	text-decoration: none;
	cursor: pointer;
	transition: transform .25s var(--ease), background-color .25s, color .25s, box-shadow .25s, border-color .25s;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(19, 33, 27, .5); color: #fff; }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { --b: var(--ink); }
.btn-primary:hover { --b: var(--forest-2); }
.btn-accent { --b: var(--ochre); color: #1b1307; }
.btn-accent:hover { --b: #dc8d2a; color: #1b1307; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-sm { padding: .62em 1.15em; font-size: .95rem; }
.btn-lg { padding: 1em 1.7em; font-size: 1.05rem; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--ochre); padding-bottom: 2px; }
.link-arrow:hover { color: var(--ochre-deep); }
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(249, 248, 246, .9);
	backdrop-filter: saturate(1.4) blur(14px);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color .3s, box-shadow .3s;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(19, 33, 27, .35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 86px; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 46px; height: auto; }
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-word { width: 196px; height: auto; }
.brand-sub { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; white-space: nowrap; }

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: .3rem; }
.nav-list a {
	display: block;
	padding: .5em .8em;
	border-radius: 999px;
	color: var(--ink);
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none;
	transition: background-color .2s, color .2s;
	white-space: nowrap;
}
.nav-list a:hover { background: var(--sand); }
.nav-list .current-menu-item > a, .nav-list .current_page_item > a, .nav-list .current-page-ancestor > a, .nav-list .current-menu-ancestor > a { background: var(--ink); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; border-radius: 10px; }
.nav-toggle-close { display: none; }

@media (max-width: 1240px) {
	.brand-sub { display: none; }
	.nav-list a { padding: .5em .6em; font-size: .97rem; }
	.site-nav { gap: .8rem; }
}
@media (max-width: 1100px) {
	.header-inner { min-height: 72px; }
	.brand-mark { width: 38px; }
	.brand-word { width: 168px; }
	.nav-toggle { display: inline-flex; }
	.site-nav {
		position: fixed;
		inset: 72px 0 auto 0;
		background: var(--bg);
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
		padding: 1rem var(--gutter) 1.75rem;
		border-bottom: 1px solid var(--line);
		box-shadow: 0 24px 40px -24px rgba(19, 33, 27, .35);
		transform: translateY(-8px);
		opacity: 0;
		visibility: hidden;
		transition: opacity .25s, transform .25s var(--ease), visibility .25s;
		max-height: calc(100vh - 72px);
		overflow-y: auto;
	}
	.admin-bar .site-nav { top: 118px; }
	.nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
	.nav-open .nav-toggle-open { display: none; }
	.nav-open .nav-toggle-close { display: inline; }
	.nav-list { flex-direction: column; gap: 0; }
	.nav-list a { padding: .85em .4em; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
	.nav-list .current-menu-item > a, .nav-list .current_page_item > a, .nav-list .current-page-ancestor > a { background: none; color: var(--ochre-deep); }
	.nav-cta { align-self: flex-start; }
}
@media (max-width: 600px) { .admin-bar .site-nav { top: 72px; } }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-tight { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.section-sand { background: var(--sand); }
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 760px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-bottom: .35em; }
.section-head.split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; }
.section-head.split > div { max-width: 620px; }
.section-head.split > p { max-width: 440px; margin: 0; color: var(--muted); }

/* ---------- Home hero ---------- */
.hero {
	position: relative;
	padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3.5rem, 7vw, 6rem);
	overflow: hidden;
	background:
		radial-gradient(60% 70% at 92% 20%, rgba(215, 178, 244, .38), transparent 70%),
		radial-gradient(45% 55% at 70% 95%, rgba(201, 123, 26, .14), transparent 70%),
		var(--bg);
}
.hero-inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero h1 em { font-style: italic; color: var(--ochre-deep); }
.hero .lead { max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-media { position: relative; justify-self: center; width: min(100%, 470px); }
.hero-arch {
	position: relative;
	border-radius: 999px 999px 28px 28px;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	box-shadow: var(--shadow-lg);
	background: var(--sand);
}
.hero-arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-mark { position: absolute; width: 34%; left: -16%; bottom: 8%; filter: drop-shadow(0 16px 24px rgba(19, 33, 27, .18)); animation: float 7s ease-in-out infinite; }
.hero-badge {
	position: absolute;
	right: -6%;
	top: 9%;
	background: rgba(255, 255, 255, .94);
	padding: 1rem 1.3rem;
	border-radius: 16px;
	box-shadow: var(--shadow);
}
.hero-badge .tagline { font-size: .74rem; letter-spacing: .36em; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 900px) {
	.hero-inner { grid-template-columns: 1fr; }
	.hero-media { width: min(82%, 400px); margin-top: 1rem; }
	.hero-badge { right: -8%; }
	.hero-mark { left: -14%; }
}
@media (max-width: 480px) {
	.hero-actions .btn { width: 100%; }
	.hero-badge { right: -4%; top: 5%; padding: .75rem .9rem; }
	.hero-badge .tagline { font-size: .62rem; letter-spacing: .28em; }
}

/* ---------- Pillars ---------- */
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.75rem; }
.pillar h3 { margin: 1.1rem 0 .5rem; }
.pillar p { margin: 0; color: var(--muted); }
.pillar-icon, .benefit-icon, .topic-icon { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; }
.tone-ochre .topic-icon, .pillar-icon.tone-ochre, .benefit-icon.tone-ochre { background: var(--ochre-soft); color: var(--ochre-deep); }
.tone-lilac .topic-icon, .pillar-icon.tone-lilac, .benefit-icon.tone-lilac { background: var(--lilac-soft); color: var(--lilac-deep); }
.tone-leaf .topic-icon, .pillar-icon.tone-leaf, .benefit-icon.tone-leaf { background: var(--leaf-soft); color: var(--leaf-deep); }
@media (max-width: 860px) { .pillar-grid { grid-template-columns: 1fr; } }

/* ---------- Library topic cards ---------- */
.library-section { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* 4 columns on desktop, 2 on tablet, 1 on phones. The last card widens to fill an uneven final row. */
.topic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.topic-grid > .topic-card:last-child:nth-child(4n+3) { grid-column: span 2; }
.topic-grid > .topic-card:last-child:nth-child(4n+2) { grid-column: span 3; }
.topic-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.topic-grid.compact > .topic-card:last-child { grid-column: auto; }
.topic-grid.compact > .topic-card:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
@media (max-width: 1060px) {
	.topic-grid, .topic-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.topic-grid > .topic-card:last-child:nth-child(n) { grid-column: auto; }
	.topic-grid > .topic-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	.topic-grid, .topic-grid.compact { grid-template-columns: 1fr; }
	.topic-grid > .topic-card:last-child:nth-child(odd) { grid-column: auto; }
}
.topic-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: .6rem;
	padding: 1.6rem 1.6rem 1.4rem;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--ink-2);
	text-decoration: none;
	overflow: hidden;
	transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s, background-color .3s;
}
.section-sand .topic-card, .library-intro ~ .topic-grid .topic-card { background: var(--surface); }
.topic-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--ochre); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.topic-card.tone-lilac::after { background: var(--lilac); }
.topic-card.tone-leaf::after { background: var(--leaf); }
.topic-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--ink-2); background: var(--surface); }
.topic-card:hover::after { transform: scaleX(1); }
.topic-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .4rem; }
.topic-num { font-family: var(--serif); font-size: 1.6rem; color: var(--line); line-height: 1; transition: color .3s; }
.topic-card:hover .topic-num { color: var(--ochre); }
.topic-title { font-family: var(--serif); font-size: 1.45rem; line-height: 1.2; color: var(--ink); }
.topic-desc { font-size: 1rem; color: var(--muted); line-height: 1.6; flex: 1; }
.topic-more { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; font-size: .95rem; color: var(--ink); margin-top: .3rem; }
.topic-more .icon { transition: transform .25s var(--ease); }
.topic-card:hover .topic-more .icon { transform: translateX(4px); }
.topic-grid.compact .topic-desc { display: none; }
.topic-grid.compact .topic-card { padding: 1.3rem 1.4rem; }
.topic-grid.compact .topic-title { font-size: 1.25rem; }

/* ---------- Stats ---------- */
.stats { background: var(--forest); color: #e9e2d6; padding: clamp(3.5rem, 7vw, 5.5rem) 0; position: relative; overflow: hidden; }
.stats::before { content: ""; position: absolute; inset: auto -10% -60% auto; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(215, 178, 244, .16), transparent 65%); }
.stats .eyebrow { display: flex; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 1rem; position: relative; }
.stat { border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 1.4rem; }
.stat-num { display: block; font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 3.8rem); line-height: 1; color: #fff; margin-bottom: .6rem; }
.stat-num small { font-size: .4em; margin-left: .2em; color: var(--lilac); font-family: var(--sans); font-weight: 700; letter-spacing: .05em; }
.stat-label { font-size: 1rem; line-height: 1.55; color: #cfc8bc; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stat-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---------- Community split ---------- */
.community-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.community-media { position: relative; padding: 0 12% 18% 0; }
.community-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.community-media .community-media-2 { position: absolute; width: 52%; right: 0; bottom: 0; border: 6px solid var(--bg); aspect-ratio: 1; }
.ticks { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .7rem; }
.ticks li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 600; color: var(--ink); }
.ticks .icon { flex-shrink: 0; color: var(--leaf); margin-top: 3px; }
@media (max-width: 860px) { .community-inner { grid-template-columns: 1fr; } }

/* ---------- Posts ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card-media { display: block; aspect-ratio: 3 / 2; background: var(--lilac-soft); overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-fallback { display: grid; place-items: center; height: 100%; background: linear-gradient(135deg, var(--lilac-soft), var(--ochre-soft)); }
.post-card-fallback img { width: 64px; height: auto; object-fit: contain; opacity: .9; }
.post-card-body { padding: 1.4rem 1.5rem 1.6rem; }
.post-card h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--ochre-deep); }
.post-card p { margin: 0; color: var(--muted); font-size: 1rem; }
.post-meta { font-size: .85rem !important; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ochre-deep) !important; margin-bottom: .6rem !important; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }

/* ---------- Events ---------- */
.event-list { display: grid; gap: 1rem; }
.event-card { display: flex; align-items: center; gap: 1.4rem; padding: 1.1rem 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: box-shadow .3s, transform .3s var(--ease); }
.event-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.event-date { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 16px; background: var(--lilac-soft); color: var(--lilac-deep); line-height: 1; flex-shrink: 0; text-transform: uppercase; font-size: .78rem; font-weight: 700; letter-spacing: .1em; }
.event-date strong { font-family: var(--serif); font-size: 1.7rem; font-weight: 400; letter-spacing: 0; color: var(--ink); }
.event-body { flex: 1; display: grid; gap: .2rem; }
.event-title { font-family: var(--serif); font-size: 1.3rem; }
.event-meta { display: flex; align-items: center; gap: .4em; color: var(--muted); font-size: .95rem; }
.empty-state { display: flex; align-items: center; gap: 1.5rem; padding: 1.75rem; background: var(--surface); border: 1px dashed #d4cabb; border-radius: var(--radius); flex-wrap: wrap; }
.empty-state > div { flex: 1; min-width: 220px; }
.empty-state h3 { margin-bottom: .25rem; }
.empty-state p { margin: 0; color: var(--muted); }
.empty-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ochre-soft); color: var(--ochre-deep); flex-shrink: 0; }

/* ---------- Join band ---------- */
.join-band { background: var(--forest); color: #ddd6ca; padding: clamp(3rem, 6vw, 4.5rem) 0; position: relative; overflow: hidden; }
.join-band::before { content: ""; position: absolute; left: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 123, 26, .25), transparent 65%); }
.join-band-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 2.5rem; align-items: center; position: relative; }
.join-band-mark { width: 92px; height: auto; }
.join-band h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: .4rem; }
.join-band p { margin: 0; max-width: 580px; }
.join-band-actions { display: flex; flex-direction: column; gap: .75rem; }
@media (max-width: 900px) {
	.join-band-inner { grid-template-columns: 1fr; gap: 1.5rem; }
	.join-band-mark { width: 64px; }
	.join-band-actions { flex-direction: row; flex-wrap: wrap; }
}

/* ---------- Inner page hero ---------- */
.page-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(3rem, 7vw, 5.5rem) 0;
	background:
		radial-gradient(50% 80% at 100% 0%, rgba(215, 178, 244, .35), transparent 70%),
		radial-gradient(40% 60% at 0% 100%, rgba(201, 123, 26, .12), transparent 70%),
		var(--sand);
	border-bottom: 1px solid var(--line);
}
.page-hero-inner { display: grid; grid-template-columns: 1.3fr .7fr; gap: 3rem; align-items: center; }
.page-hero h1 { margin-bottom: .3em; }
.page-hero .lead { max-width: 640px; margin: 0; }
.page-hero-mark { width: min(220px, 100%); justify-self: end; opacity: .95; filter: drop-shadow(0 18px 28px rgba(19, 33, 27, .14)); }
.page-hero-media img { border-radius: 999px 999px 24px 24px; aspect-ratio: 4 / 5; object-fit: cover; width: min(100%, 330px); margin-left: auto; box-shadow: var(--shadow-lg); }
.page-hero.has-image { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
@media (max-width: 800px) {
	.page-hero-inner { grid-template-columns: 1fr; gap: 2rem; }
	.page-hero-mark { display: none; }
	.page-hero-media img { width: 100%; max-width: 100%; aspect-ratio: 16 / 10; border-radius: var(--radius); margin: 0; }
}

/* ---------- Prose (long-form content) ---------- */
.prose-wrap { max-width: calc(820px + var(--gutter) * 2); }
.prose { color: var(--ink-2); font-size: 1.15rem; line-height: 1.78; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.75rem, 3vw, 2.2rem); margin: 2.4em 0 .6em; padding-top: 1.2em; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.prose > h2:first-child { padding-top: 0; border-top: 0; }
.prose h3 { font-family: var(--sans); font-weight: 700; font-size: 1.22rem; color: var(--ink); margin: 1.9em 0 .55em; letter-spacing: .005em; scroll-margin-top: 110px; }
.prose h3::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--ochre); margin-right: .6em; vertical-align: middle; position: relative; top: -2px; }
.prose ul, .prose ol { padding-left: 0; list-style: none; margin: 0 0 1.4em; }
.prose ul > li { position: relative; padding-left: 1.6em; margin-bottom: .55em; }
.prose ul > li::before { content: ""; position: absolute; left: .2em; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); }
.prose ol { counter-reset: n; }
.prose ol > li { counter-increment: n; position: relative; padding-left: 2.2em; margin-bottom: .6em; }
.prose ol > li::before { content: counter(n); position: absolute; left: 0; top: .1em; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--lilac-soft); color: var(--lilac-deep); font-weight: 700; font-size: .85em; display: grid; place-items: center; }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 2em 0; padding: 1.2em 1.5em; border-left: 4px solid var(--lilac); background: var(--lilac-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-family: var(--serif); font-size: 1.35rem; color: var(--ink); }
.prose blockquote p:last-child { margin: 0; }
.prose img { border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 1rem; }
.prose th, .prose td { text-align: left; padding: .7em .8em; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); background: var(--sand); }
.prose .lead-para, .prose > p.has-large-font-size { font-size: 1.3rem; color: var(--ink); }
.prose a { font-weight: 600; }

/* ---------- Library article ---------- */
.article-hero { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 6vw, 4rem); background: var(--sand); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.article-hero::after { content: ""; position: absolute; right: -140px; top: -140px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, var(--glow, rgba(201, 123, 26, .2)), transparent 65%); }
.article-hero.tone-lilac { --glow: rgba(215, 178, 244, .45); }
.article-hero.tone-leaf { --glow: rgba(79, 125, 39, .18); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5em; font-size: .92rem; color: var(--muted); margin-bottom: 2rem; position: relative; z-index: 1; }
.breadcrumb a { color: var(--muted); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.article-hero-inner { display: flex; gap: 1.75rem; align-items: flex-start; position: relative; z-index: 1; max-width: 900px; }
.article-icon { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); color: var(--ochre-deep); flex-shrink: 0; }
.tone-lilac .article-icon { color: var(--lilac-deep); }
.tone-leaf .article-icon { color: var(--leaf-deep); }
.article-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-bottom: .35em; }
.article-hero .lead { margin-bottom: 1rem; max-width: 720px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4em .8em; font-size: .95rem; font-weight: 600; color: var(--muted); margin: 0; }
.article-meta > span { display: inline-flex; align-items: center; gap: .45em; }
.article-meta strong { color: var(--ink); }
.article-meta .byline .icon { color: var(--ochre-deep); }
.author-note { display: flex; gap: 1rem; align-items: center; margin: 3rem 0 0; padding: 1.2rem 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.author-note p { margin: 0; font-size: 1.05rem; color: var(--ink-2); }
.author-note strong { color: var(--ink); }
.author-note-label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ochre-deep); margin-bottom: .1rem; }
.author-note-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ochre-soft); color: var(--ochre-deep); flex-shrink: 0; }
.author-note + .disclaimer { margin-top: 1rem; }
.library-byline { display: flex; align-items: center; gap: .5em; margin: -1rem 0 2rem; font-weight: 600; color: var(--muted); }
.library-byline strong { color: var(--ink); }
.library-byline .icon { color: var(--ochre-deep); }
@media (max-width: 640px) {
	.article-hero-inner { flex-direction: column; gap: 1.2rem; }
	.article-icon { width: 64px; height: 64px; border-radius: 18px; }
	.article-icon .icon { width: 32px; height: 32px; }
}

.article-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.article-layout.no-toc { grid-template-columns: minmax(0, 820px); justify-content: center; }
.article-body { max-width: 780px; min-width: 0; }
.toc { position: sticky; top: 110px; }
.toc-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.toc summary { font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ochre-deep); cursor: pointer; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; padding: 0; margin: .9rem 0 0; display: grid; gap: .15rem; max-height: calc(100vh - 220px); overflow-y: auto; }
.toc a { display: block; padding: .35em .6em; border-radius: 8px; font-size: .95rem; line-height: 1.35; color: var(--ink-2); text-decoration: none; border-left: 2px solid transparent; }
.toc a:hover { background: var(--sand); color: var(--ink); }
.toc a.is-active { color: var(--ink); font-weight: 700; border-left-color: var(--ochre); background: var(--ochre-soft); border-radius: 0 8px 8px 0; }
.toc .toc-l3 a { padding-left: 1.4em; font-size: .9rem; color: var(--muted); }
@media (max-width: 960px) {
	.article-layout { grid-template-columns: 1fr; }
	.toc { position: static; }
	.toc-box:not([open]) ol { display: none; }
	.toc summary::after { content: " +"; }
	.toc-box[open] summary::after { content: " –"; }
	.toc ol { max-height: none; }
}

.disclaimer { display: flex; gap: 1rem; align-items: flex-start; margin: 3rem 0 0; padding: 1.3rem 1.4rem; background: var(--lilac-soft); border: 1px solid #e4d3f3; border-radius: var(--radius-sm); font-size: 1rem; line-height: 1.6; }
.disclaimer p { margin: 0; color: var(--ink-2); }
.disclaimer strong { color: var(--ink); }
.disclaimer-icon { color: var(--lilac-deep); flex-shrink: 0; margin-top: 2px; }

.topic-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.pager-link { display: grid; gap: .3rem; padding: 1.2rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; transition: box-shadow .3s, transform .3s var(--ease); }
.pager-link:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.pager-link.next { text-align: right; justify-items: end; }
.pager-dir { display: inline-flex; align-items: center; gap: .4em; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ochre-deep); }
.pager-title { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); line-height: 1.25; }
@media (max-width: 620px) { .topic-pager { grid-template-columns: 1fr; } .pager-link.next { text-align: left; justify-items: start; } }

.single-thumb { margin: 0 0 2.5rem; }
.single-thumb img { border-radius: var(--radius); width: 100%; }
.single-hero { max-width: 820px; }

.library-intro { max-width: 760px; margin-bottom: 2.5rem; }

/* ---------- About ---------- */
.about-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about-aside { display: grid; gap: 1.5rem; position: sticky; top: 110px; }
.quote-card { background: var(--forest); color: #e8e1d5; border-radius: var(--radius); padding: 2rem; }
.quote-card img { width: 46px; margin-bottom: 1rem; }
.quote-card p { font-family: var(--serif); font-size: 1.55rem; line-height: 1.3; color: #fff; }
.quote-card .link-arrow { color: #fff; border-color: var(--lilac); }
.about-photo { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 900px) { .about-layout { grid-template-columns: 1fr; } .about-aside { position: static; } .about-photo { aspect-ratio: 16 / 10; } }

/* ---------- Forms ---------- */
.form-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.form-aside .prose { font-size: 1.1rem; margin-bottom: 1.5rem; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: clamp(1.5rem, 4vw, 2.6rem); box-shadow: var(--shadow); }
.form-card h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.contact-list, .benefit-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.contact-list li, .benefit-list li { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.contact-list strong, .benefit-list strong { display: block; color: var(--ink); font-size: 1rem; }
.contact-list a { font-weight: 600; }
.benefit-list li span:last-child { font-size: 1rem; color: var(--muted); }
.contact-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ochre-soft); color: var(--ochre-deep); flex-shrink: 0; }
.benefit-icon { width: 46px; height: 46px; flex-shrink: 0; }
@media (max-width: 900px) { .form-layout { grid-template-columns: 1fr; } .form-card { order: -1; } }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; margin-bottom: 1.6rem; }
.field { grid-column: 1 / -1; display: grid; gap: .4rem; }
.field.is-half { grid-column: span 1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .field.is-half { grid-column: 1 / -1; } }
.field label { font-weight: 700; font-size: .95rem; color: var(--ink); }
.req { color: var(--ochre-deep); }
.field input, .field select, .field textarea {
	width: 100%;
	font: inherit;
	font-size: 1.05rem;
	color: var(--ink);
	background: var(--bg);
	border: 1.5px solid #d9d0c3;
	border-radius: var(--radius-sm);
	padding: .8em .95em;
	transition: border-color .2s, box-shadow .2s, background-color .2s;
	appearance: none;
	-webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2313211b' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1em center; padding-right: 2.6em; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ochre); background: #fff; box-shadow: 0 0 0 4px rgba(201, 123, 26, .16); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b3261e; }
.check { display: flex; gap: .75rem; align-items: flex-start; font-weight: 400 !important; font-size: 1rem !important; color: var(--ink-2) !important; cursor: pointer; }
.check input { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; border: 1.5px solid #c9bfb1; border-radius: 6px; padding: 0; background: #fff; display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center no-repeat; border-color: var(--ink); }
.field-consent.has-error .check input { border-color: #b3261e; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: #fdecea; color: #7f1d1d; border: 1px solid #f5c2bd; border-radius: var(--radius-sm); padding: .9rem 1.1rem; font-size: 1rem; }
.form-done { text-align: center; padding: 2rem 1rem; }
.form-done-icon { display: inline-grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; background: var(--leaf-soft); color: var(--leaf-deep); margin-bottom: 1rem; }
.form-done p { color: var(--muted); }

/* ---------- Pagination ---------- */
.pagination ul { list-style: none; display: flex; gap: .4rem; padding: 0; margin: 2.5rem 0 0; justify-content: center; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 700; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: #101d17; color: #bdb6aa; padding-top: clamp(3.5rem, 7vw, 5rem); font-size: 1rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-logo { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.2rem; }
.footer-logo img:first-child { width: 44px; }
.footer-logo img:last-child { width: 200px; }
.footer-brand p { max-width: 330px; }
.footer-brand .tagline { font-size: .72rem; letter-spacing: .34em; margin-top: .6rem; }
.site-footer h2 { font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--lilac); margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .55rem; }
.site-footer a { color: #e9e2d6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; align-items: center; gap: .6rem; }
.footer-contact .icon { color: var(--ochre); flex-shrink: 0; }
.footer-col .btn { color: #1b1307; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding: 1.5rem var(--gutter) 2rem; font-size: .9rem; color: #8d877d; }
.footer-bottom p { margin: 0; }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Plugin content (The Events Calendar, Event Tickets) ---------- */
.tribe-events, .tribe-common { font-family: var(--sans) !important; }
.tribe-events-pg-template, .tribe-common-l-container { max-width: calc(var(--wrap) + var(--gutter) * 2) !important; padding-left: var(--gutter) !important; padding-right: var(--gutter) !important; }
#tribe-events-pg-template { padding-top: 3rem; padding-bottom: 4rem; }
.tribe-common .tribe-common-c-btn, .tribe-common a.tribe-common-c-btn { background-color: var(--ink) !important; border-radius: 999px !important; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   Library hub, collections, members, PDFs, protection
   ========================================================= */

/* Header account links */
.nav-account { display: inline-flex; align-items: center; gap: .9rem; }
.nav-signin, .nav-account-name { display: inline-flex; align-items: center; gap: .35em; font-weight: 600; font-size: .97rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav-signin:hover { color: var(--ochre-deep); }
.nav-account-name .icon, .nav-signin .icon { color: var(--ochre-deep); }
@media (max-width: 1100px) {
	.nav-account { flex-wrap: wrap; gap: .8rem 1.2rem; padding-top: .3rem; }
}

/* Library section nav */
.library-nav { position: sticky; top: 86px; z-index: 20; background: rgba(249, 248, 246, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.admin-bar .library-nav { top: 118px; }
.library-nav .wrap { display: flex; gap: .5rem; overflow-x: auto; padding-top: .8rem; padding-bottom: .8rem; scrollbar-width: none; }
.library-nav .wrap::-webkit-scrollbar { display: none; }
.library-nav a { display: inline-flex; align-items: center; gap: .45em; padding: .55em 1em; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 700; font-size: .95rem; text-decoration: none; white-space: nowrap; transition: background-color .2s, border-color .2s; }
.library-nav a:hover { border-color: var(--ink); }
.library-nav a .icon { color: var(--ochre-deep); }
.library-nav a span { font-size: .8rem; color: var(--muted); background: var(--sand); border-radius: 999px; padding: .05em .55em; }
@media (max-width: 1100px) { .library-nav { top: 72px; } .admin-bar .library-nav { top: 118px; } }
@media (max-width: 600px) { .admin-bar .library-nav { top: 72px; } }
.library-block { scroll-margin-top: 150px; }
.library-head-side { max-width: 480px; }
.library-head-side .library-intro { margin: 0 0 .8rem; color: var(--muted); font-size: 1.02rem; }
.library-head-side .library-intro p { margin: 0; }
.library-head-side .library-byline { margin: 0; }
.section-sub { color: var(--muted); margin: 0; }
.members-note, .protect-note { display: flex; align-items: center; gap: .55em; flex-wrap: wrap; margin: 1.75rem 0 0; font-size: .98rem; color: var(--muted); }
.members-note .icon, .protect-note .icon { color: var(--ochre-deep); flex-shrink: 0; }
.protect-note { margin: 2.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .92rem; }
.library-more { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: 2rem; }
.library-more > span { font-weight: 700; color: var(--muted); margin-right: .3rem; font-size: .95rem; }
.library-more a { display: inline-flex; align-items: center; gap: .45em; padding: .6em 1.1em; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; }
.library-more a:hover { border-color: var(--ink); }
.library-more a .icon { color: var(--ochre-deep); }

/* Art & photo grid */
.media-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 1060px) { .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .media-grid { grid-template-columns: 1fr; } }
/* Galleries keep each picture's own shape (landscape or portrait), laid out in columns. */
.media-grid { display: block; columns: 4 230px; column-gap: 1.25rem; }
.media-grid > * { break-inside: avoid; margin-bottom: 1.25rem; }
.media-grid .media-tile-img { aspect-ratio: auto; }
.media-grid .media-tile-img img { height: auto; }
.media-grid .media-tile-empty { aspect-ratio: 4 / 3; }
.media-tile { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.media-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }
.media-tile-img { position: relative; aspect-ratio: 4 / 5; background: var(--sand); overflow: hidden; display: block; }
.media-tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.media-tile:hover .media-tile-img img { transform: scale(1.04); }
.media-tile-empty { display: grid; place-items: center; height: 100%; color: var(--line); }
.media-tile-text { padding: 1rem 1.1rem 1.15rem; display: grid; gap: .15rem; }
.media-tile-title { font-family: var(--serif); font-size: 1.2rem; line-height: 1.25; }
.media-tile-credit { font-size: .92rem; color: var(--muted); }

/* Audio tracks */
.track-list { display: grid; gap: .8rem; }
.track { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: .9rem 1.2rem .9rem .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.track.is-active { border-color: var(--ochre); box-shadow: 0 8px 24px -16px rgba(201, 123, 26, .7); }
.track-play { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background-color .2s, transform .2s; flex-shrink: 0; }
.track-play:hover { background: var(--ochre-deep); transform: scale(1.05); }
.track-play:disabled { background: var(--line); cursor: not-allowed; transform: none; }
.track-play .icon-pause, .track.is-playing .track-play .icon-play { display: none; }
.track.is-playing .track-play .icon-pause { display: block; }
.track-play .icon-play { margin-left: 3px; }
.track-cover { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; background: var(--lilac-soft); color: var(--lilac-deep); display: grid; place-items: center; }
.track-cover img { width: 100%; height: 100%; object-fit: cover; }
.track-info { display: grid; gap: .1rem; min-width: 0; }
.track-title { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); text-decoration: none; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.track-title:hover { color: var(--ochre-deep); }
.track-credit { font-size: .92rem; color: var(--muted); }
.track-bar { position: relative; display: block; height: 6px; border-radius: 6px; background: var(--sand); margin-top: .45rem; cursor: pointer; overflow: hidden; }
.track-bar:focus-visible { outline-offset: 2px; }
.track-progress { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--ochre), var(--lilac)); border-radius: 6px; }
.track-time { font-size: .88rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.track-large { padding: 1.5rem; gap: 1.4rem; }
.track-large .track-play { width: 68px; height: 68px; }
.track-large .track-cover { width: 96px; height: 96px; border-radius: 16px; }
.track-large .track-title { font-size: 1.5rem; white-space: normal; }
@media (max-width: 560px) {
	.track { grid-template-columns: auto minmax(0, 1fr); gap: .8rem; }
	.track-cover { display: none; }
	.track-time { grid-column: 2; font-size: .82rem; margin-top: -.4rem; }
	.track-large .track-cover { display: none; }
}

/* Single art / photo / audio */
.collection-single { max-width: calc(1100px + var(--gutter) * 2); }
.artwork { position: relative; margin: 0 auto; border-radius: var(--radius); overflow: hidden; background: var(--sand); box-shadow: var(--shadow-lg); width: fit-content; max-width: 100%; }
.artwork img { max-height: 82vh; width: auto; max-width: 100%; margin: 0 auto; }
.artwork-shield { position: absolute; inset: 0; }
.collection-text { max-width: 760px; margin: 2.5rem auto 0; }

/* PDF download box on write-ups */
.pdf-box { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; margin: 3rem 0 0; padding: 1.3rem 1.4rem; background: var(--forest); color: #ddd6ca; border-radius: var(--radius); scroll-margin-top: 120px; }
.pdf-box > div { flex: 1; min-width: 220px; display: grid; gap: .15rem; }
.pdf-box strong { color: #fff; font-size: 1.08rem; }
.pdf-box span { font-size: .95rem; }
.pdf-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--lilac); flex-shrink: 0; }
.pdf-box .btn-primary { --b: var(--ochre); color: #1b1307; }
.pdf-box .btn-primary:hover { --b: #dc8d2a; color: #1b1307; }
.pdf-box .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .45); }
.pdf-box .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.pdf-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.pdf-box + .disclaimer { margin-top: 1rem; }
.author-note + .pdf-box { margin-top: 1rem; }

/* Member sign in */
.login-section { background: radial-gradient(50% 70% at 100% 0%, rgba(215, 178, 244, .3), transparent 70%), var(--bg); }
.login-layout { display: grid; grid-template-columns: 1fr minmax(0, 480px); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.login-mark { width: 80px; height: auto; margin-bottom: 1.5rem; }
.login-intro h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
@media (max-width: 860px) { .login-layout { grid-template-columns: 1fr; } .login-mark { width: 60px; } }
#csm-login p { margin: 0 0 1rem; display: grid; gap: .4rem; }
#csm-login label { font-weight: 700; font-size: .95rem; color: var(--ink); }
#csm-login input[type="text"], #csm-login input[type="password"] { width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--bg); border: 1.5px solid #d9d0c3; border-radius: var(--radius-sm); padding: .8em .95em; }
#csm-login input[type="text"]:focus, #csm-login input[type="password"]:focus { outline: none; border-color: var(--ochre); background: #fff; box-shadow: 0 0 0 4px rgba(201, 123, 26, .16); }
#csm-login .login-remember label { display: flex; align-items: center; gap: .5rem; font-weight: 400; }
#csm-login .login-remember input { width: 18px; height: 18px; accent-color: var(--ink); }
#csm-login .button-primary, #csm-login input[type="submit"] { display: inline-flex; padding: 1em 1.7em; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font: 700 1.05rem/1.2 var(--sans); cursor: pointer; }
#csm-login input[type="submit"]:hover { background: var(--forest-2); }
.login-links { margin: .5rem 0 0; font-size: .98rem; }
.form-ok { background: var(--leaf-soft); color: var(--leaf-deep); border-radius: var(--radius-sm); padding: .9rem 1.1rem; font-size: 1rem; }

/* Protection */
.is-protected .prose, .is-protected .protected-media, .is-protected .article-hero, .is-protected .collection-single, .is-protected .topic-card, .is-protected .media-tile {
	-webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.is-protected img, .protected-img { -webkit-user-drag: none; user-drag: none; }
.protected-media img { pointer-events: none; }
.protect-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: .8rem 1.2rem; border-radius: 12px; font-size: .95rem; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); z-index: 200; max-width: calc(100vw - 32px); text-align: center; }
.protect-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media print {
	.is-protected .site-main { display: none !important; }
	.is-protected .site-header, .is-protected .site-footer { display: none !important; }
	.is-protected body::before, body.is-protected::before { content: "Printing of Library content is disabled. Signed-in members can download write-ups as PDFs at csmenopause.com."; display: block; padding: 2cm; font: 14pt Georgia, serif; }
}

/* ---------- Community: forum ---------- */
.form-note { font-size: .92rem; color: var(--muted); margin: 0 0 1.2rem; }
.forum-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.forum-main { min-width: 0; }
.forum-main > .form-ok, .forum-main > .form-error, .thread > .form-ok, .thread > .form-error { margin-bottom: 1.25rem; }
.forum-toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { padding: .42em .95em; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .92rem; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.forum-search { display: flex; gap: .5rem; flex: 1 1 260px; max-width: 360px; }
.forum-search input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 999px; padding: .6em 1em; font: inherit; font-size: 1rem; background: #fff; }
.forum-search input:focus { outline: none; border-color: var(--ochre); box-shadow: 0 0 0 4px rgba(201, 123, 26, .16); }
.new-topic { margin-bottom: 1.5rem; }
.new-topic > summary { list-style: none; cursor: pointer; display: inline-flex; }
.new-topic > summary::-webkit-details-marker { display: none; }
.new-topic[open] > summary { margin-bottom: 1rem; }
.new-topic .form-grid { grid-template-columns: 1fr; }
.topic-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.topic-row { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line); }
.topic-row:last-child { border-bottom: 0; }
.topic-row.is-pinned { background: #fdf8f0; }
.topic-row-main { flex: 1; min-width: 0; display: grid; gap: .3rem; }
.topic-row-title { font-family: var(--serif); font-size: 1.3rem; line-height: 1.25; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.topic-row-title:hover { color: var(--ochre-deep); text-decoration: underline; }
.topic-row-meta { display: flex; flex-wrap: wrap; gap: .4rem .7rem; align-items: center; font-size: .9rem; color: var(--muted); }
.topic-row-stats { text-align: right; font-size: .88rem; color: var(--muted); display: grid; min-width: 96px; }
.topic-row-stats strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; color: var(--ink); line-height: 1; }
.tag { display: inline-flex; align-items: center; gap: .3em; padding: .18em .65em; border-radius: 999px; background: var(--sand); color: var(--ink-2); font-size: .8rem; font-weight: 700; text-decoration: none; }
a.tag:hover { background: var(--ochre-soft); color: var(--ochre-deep); }
.tag-pin { background: var(--ochre-soft); color: var(--ochre-deep); }
.tag-live { background: var(--leaf-soft); color: var(--leaf-deep); }
.team-badge, .op-badge { display: inline-block; margin-left: .45em; padding: .1em .55em; border-radius: 999px; background: var(--forest); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .02em; vertical-align: middle; }
.op-badge { background: var(--lilac-soft); color: var(--lilac-deep); }
.avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 1.05rem; }
.avatar.tone-ochre { background: var(--ochre-soft); color: var(--ochre-deep); }
.avatar.tone-leaf { background: var(--leaf-soft); color: var(--leaf-deep); }
.avatar.tone-lilac { background: var(--lilac-soft); color: var(--lilac-deep); }
.forum-side { display: grid; gap: 1.25rem; position: sticky; top: 110px; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.side-card-soft { background: var(--sand); border-color: transparent; }
.side-card h2 { font-family: var(--sans); font-weight: 700; font-size: 1.05rem; margin-bottom: .8rem; }
.board-links { list-style: none; margin: 0; padding: 0; }
.board-links a { display: grid; gap: .1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink-2); }
.board-links li:last-child a { border-bottom: 0; }
.board-links strong { color: var(--ink); }
.board-links a:hover strong { color: var(--ochre-deep); text-decoration: underline; }
.board-links span { font-size: .88rem; color: var(--muted); line-height: 1.45; }
.guidelines { margin: 0; padding-left: 1.1em; font-size: .95rem; line-height: 1.55; }
.guidelines li { margin-bottom: .45rem; }
.members-box { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 1.3rem 1.4rem; background: var(--forest); color: #ddd6ca; border-radius: var(--radius); }
.members-box > div { flex: 1; min-width: 200px; display: grid; gap: .2rem; }
.members-box strong { color: #fff; font-size: 1.05rem; }
.members-box span { font-size: .95rem; }
.members-box-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--lilac); flex-shrink: 0; }
.members-box .btn-primary { --b: var(--ochre); color: #1b1307; }
.members-box .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .45); }
.members-box .btn-ghost:hover { background: #fff; color: var(--ink); }
.forum-side .members-box { flex-direction: column; align-items: flex-start; }

/* Topic page */
.forum-hero { padding-bottom: clamp(2rem, 4vw, 3rem); }
.forum-hero h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); max-width: 900px; overflow-wrap: anywhere; }
.topic-meta { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; color: var(--muted); margin: 0; }
.thread { max-width: calc(860px + var(--gutter) * 2); }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; margin-bottom: 1rem; scroll-margin-top: 110px; }
.post-card.is-op { border-color: #e7d3b8; box-shadow: var(--shadow); }
.post-card.is-waiting { opacity: .75; border-style: dashed; }
.post-card:target { border-color: var(--ochre); box-shadow: 0 0 0 4px rgba(201, 123, 26, .14); }
.post-head { display: flex; align-items: center; gap: .85rem; margin-bottom: .9rem; }
.post-who { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 .2rem; }
.post-who strong { color: var(--ink); }
.post-who small { flex-basis: 100%; color: var(--muted); font-size: .86rem; }
.post-body { font-size: 1.08rem; line-height: 1.7; overflow-wrap: anywhere; }
.post-body p:last-child { margin-bottom: 0; }
.thread-label { font-family: var(--sans); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 2rem 0 1rem; }
.report-form { margin: 0; }
.link-btn { background: none; border: 0; padding: .3em .2em; color: var(--muted); font: inherit; font-size: .85rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--ochre-deep); }
.reply-area { margin-top: 2rem; }
.reply-area .field { margin-bottom: 1rem; }
.reply-foot { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.reply-foot .form-note { margin: 0; flex: 1; min-width: 220px; }
.back-link { margin-top: 2rem; }
.back-link a { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; }

/* ---------- Community: sharing with the Library ---------- */
.share-band { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; margin: 2.5rem 0 1rem; padding: 1.3rem 1.5rem; border-radius: var(--radius); background: linear-gradient(120deg, var(--lilac-soft), var(--ochre-soft)); }
.share-band.is-compact { margin-top: 2.5rem; }
.share-band > div { flex: 1; min-width: 220px; display: grid; gap: .15rem; }
.share-band strong { color: var(--ink); font-size: 1.08rem; }
.share-band span { font-size: .95rem; color: var(--ink-2); }
.share-band-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--lilac-deep); flex-shrink: 0; }
.share-steps { padding-left: 1.2em; margin: 0 0 1.5rem; }
.share-steps li { margin-bottom: .7rem; }
.mine-title { font-family: var(--sans); font-weight: 700; font-size: 1.05rem; margin-top: 2rem; }
.mine-list { list-style: none; padding: 0; margin: 0; }
.mine-list li { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.kind-pick { border: 0; padding: 0; margin: 0 0 1.4rem; display: flex; gap: .7rem; flex-wrap: wrap; }
.kind-pick legend { font-weight: 700; color: var(--ink); margin-bottom: .6rem; padding: 0; font-size: .95rem; }
.kind-pick label { position: relative; cursor: pointer; flex: 1 1 110px; }
.kind-pick input { position: absolute; opacity: 0; }
.kind-pick label > span { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: 1rem .6rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-weight: 700; color: var(--ink-2); background: #fff; }
.kind-pick input:checked + span { border-color: var(--ochre); background: var(--ochre-soft); color: var(--ochre-deep); }
.kind-pick input:focus-visible + span { outline: 3px solid var(--ochre); outline-offset: 2px; }
.share-form input[type=file] { padding: .7em; background: var(--bg); }
.opt { color: var(--muted); font-weight: 400; }
.media-tile-shared, .shared-by { font-size: .86rem; color: var(--lilac-deep); }
.track-shared { color: var(--lilac-deep); }
[hidden] { display: none !important; }

@media (max-width: 960px) {
	.forum-layout { grid-template-columns: minmax(0, 1fr); }
	.forum-side { position: static; }
}
@media (max-width: 560px) {
	.topic-row { align-items: flex-start; padding: 1rem; }
	.topic-row .avatar { width: 38px; height: 38px; }
	.topic-row-stats { display: none; }
	.forum-search { max-width: none; }
	.post-card { padding: 1.1rem; }
}

/* Membership awaiting approval */
.pending-note { display: flex; gap: .7rem; align-items: flex-start; background: var(--lilac-soft); color: var(--ink-2); border: 1px solid #e2cff5; border-radius: var(--radius-sm); padding: .9rem 1.1rem; font-size: 1rem; line-height: 1.55; margin: 0 0 1.2rem; }
.pending-note .icon { color: var(--lilac-deep); flex-shrink: 0; margin-top: .15rem; }
.pending-note strong { color: var(--ink); }
