/* ==========================================================================
   AESIS — main stylesheet
   Mobile first. Breakpoints: 40em (640px), 56em (896px), 72em (1152px).
   ========================================================================== */

/* Fonts (self-hosted, variable) ------------------------------------------- */
@font-face {
	font-family: "Instrument Sans";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url(../fonts/instrument-sans-latin-wght-normal.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Instrument Sans";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url(../fonts/instrument-sans-latin-ext-wght-normal.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Newsreader";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url(../fonts/newsreader-latin-wght-normal.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Newsreader";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url(../fonts/newsreader-latin-ext-wght-normal.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Newsreader";
	font-style: italic;
	font-weight: 200 800;
	font-display: swap;
	src: url(../fonts/newsreader-latin-wght-italic.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Tokens ------------------------------------------------------------------ */
:root {
	--brand: #801a16;
	--brand-deep: #5f120f;
	--brand-soft: #f6eae8;
	--ink: #1f1a17;
	--ink-2: #4a423c;
	--stone: #6b625b;
	--line: #e6dfd6;
	--line-strong: #cfc5b9;
	--paper: #fcfbf9;
	--sand: #f2ede6;
	--white: #fff;
	--night: #201715;
	--ok: #24613f;
	--ok-soft: #e7f2ea;

	--f-sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--f-serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;

	--step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
	--step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
	--step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
	--step-2: clamp(1.45rem, 1.3rem + 0.75vw, 1.85rem);
	--step-3: clamp(1.8rem, 1.5rem + 1.4vw, 2.6rem);
	--step-4: clamp(2.2rem, 1.7rem + 2.6vw, 3.7rem);

	--gutter: clamp(1.1rem, 0.7rem + 2vw, 2.25rem);
	--wrap: 76rem;
	--measure: 42rem;
	--space-section: clamp(3rem, 2rem + 5vw, 6rem);
	--radius: 6px;
	--radius-sm: 4px;
	--header-h: 4rem;
	--shadow: 0 1px 2px rgb(31 26 23 / 0.06), 0 8px 24px -12px rgb(31 26 23 / 0.18);
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (min-width: 56em) {
	:root { --header-h: 5rem; }
}

/* Reset ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
	margin: 0;
	font-family: var(--f-sans);
	font-size: var(--step-0);
	line-height: 1.6;
	color: var(--ink);
	background: var(--paper);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
img { border-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; }
:where(ul, ol)[class] { list-style: none; margin: 0; padding: 0; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Typography --------------------------------------------------------------- */
h1, h2, h3, h4 {
	font-family: var(--f-serif);
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -0.012em;
	margin: 0 0 0.6em;
	text-wrap: balance;
	color: var(--ink);
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
h5, h6 { font-size: var(--step-0); margin: 0 0 0.5em; font-weight: 650; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--brand-deep); text-decoration-thickness: 2px; }
strong, b { font-weight: 650; }
small { font-size: var(--step--1); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
::selection { background: var(--brand); color: var(--white); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }

.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: -0.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: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--white); padding: 0.6rem 1rem; border-radius: var(--radius-sm); }
.skip-link:focus { top: 1rem; color: var(--white); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Layout ------------------------------------------------------------------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(var(--measure) + 8rem + 2 * var(--gutter)); }
.section { padding-block: var(--space-section); }
.section:not(.section--sand) + .section:not(.section--sand) { padding-top: 0; }
.split > *, .grid > *, .scroller > * { min-width: 0; }
.section--sand { background: var(--sand); }
.section--tight { padding-block: clamp(2rem, 1.5rem + 3vw, 3.5rem); }
.stack > * + * { margin-top: var(--stack, 1.25rem); }
.grid { display: grid; gap: var(--gap, clamp(1.25rem, 1rem + 1.5vw, 2rem)); }
@media (min-width: 40em) {
	.grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 56em) {
	.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.split { display: grid; gap: clamp(2rem, 1rem + 4vw, 4.5rem); }
@media (min-width: 56em) {
	.split { grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem); align-items: start; }
	.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
	.split__aside--sticky { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; margin-bottom: clamp(1.25rem, 1rem + 1vw, 2rem); }
.section-head h2 { margin: 0; }
.section-head p { margin: 0.4rem 0 0; color: var(--stone); flex-basis: 100%; max-width: var(--measure); }
.more-link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.more-link .icon { transition: transform 0.2s var(--ease); }
.more-link:hover .icon { transform: translateX(3px); }

/* Buttons ------------------------------------------------------------------ */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	min-height: 2.875rem; padding: 0.65rem 1.25rem;
	background: var(--brand); color: var(--white);
	border: 1px solid var(--brand); border-radius: var(--radius-sm);
	font-weight: 600; font-size: 0.975rem; line-height: 1.2; text-decoration: none; text-align: center;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: var(--white); text-decoration: none; }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--outline:hover { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn--light { background: var(--white); color: var(--brand); border-color: var(--white); }
.btn--light:hover { background: var(--sand); border-color: var(--sand); color: var(--brand-deep); }
.btn--on-dark { background: transparent; color: var(--white); border-color: rgb(255 255 255 / 0.5); }
.btn--on-dark:hover { background: rgb(255 255 255 / 0.1); border-color: var(--white); color: var(--white); }
.btn--small { min-height: 2.25rem; padding: 0.4rem 0.85rem; font-size: 0.9rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.link-button { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 0.18em; }

/* Header ------------------------------------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	border-bottom: 1px solid var(--line);
	isolation: isolate;
}
/* Frosted background lives on a pseudo-element: backdrop-filter on the header
   itself would become the containing block for the fixed mobile menu panel. */
.site-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: rgb(252 251 249 / 0.94);
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.nav-open .site-header::before { background: var(--paper); }
.admin-bar .site-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .site-header { top: 32px; } }
.site-header__inner { display: flex; align-items: center; gap: 1rem; height: var(--header-h); }
.brand { display: block; flex: none; margin-right: auto; }
.brand img { width: auto; height: 1.85rem; }
@media (min-width: 56em) { .brand img { height: 2.3rem; } }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.header-actions .btn { min-height: 2.5rem; padding-inline: 1rem; }
.header-login { display: none; align-items: center; gap: 0.4rem; color: var(--ink); font-weight: 600; text-decoration: none; padding: 0.5rem 0.25rem; }
.header-login:hover { color: var(--brand); }
.header-account { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink); font-weight: 600; text-decoration: none; }
.header-account .avatar { width: 2.1rem; height: 2.1rem; }
.header-account span.label { display: none; }
@media (min-width: 40em) {
	.header-login { display: inline-flex; }
	.header-account span.label { display: inline; }
}

.nav-toggle {
	display: inline-grid; place-items: center;
	width: 2.75rem; height: 2.75rem; padding: 0;
	background: none; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
	color: var(--ink);
}
.nav-toggle .icon { width: 1.4rem; height: 1.4rem; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }
.nav-open .nav-toggle .icon-open { display: none; }

/* Primary navigation: mobile panel */
.primary-nav {
	position: fixed; inset: var(--header-h) 0 0 0; z-index: 40;
	height: calc(100dvh - var(--header-h));
	background: var(--paper);
	overflow-y: auto; overscroll-behavior: contain;
	padding: 1rem var(--gutter) 3rem;
	visibility: hidden; opacity: 0; transform: translateY(-0.5rem);
	transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s 0.2s;
}
@media (max-width: 63.99em) {
	.admin-bar .primary-nav { top: calc(var(--header-h) + 46px); height: calc(100dvh - var(--header-h) - 46px); }
}
.nav-open .primary-nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.nav-open { overflow: hidden; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav > ul > li { border-bottom: 1px solid var(--line); position: relative; }
.primary-nav a { display: block; padding: 0.95rem 3rem 0.95rem 0; color: var(--ink); text-decoration: none; font-family: var(--f-serif); font-size: 1.45rem; line-height: 1.2; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a, .primary-nav .current_page_parent > a { color: var(--brand); }
.primary-nav .sub-menu { display: none; padding: 0 0 0.75rem 1rem; }
.primary-nav .sub-menu a { font-family: var(--f-sans); font-size: 1.05rem; padding: 0.55rem 0; }
.primary-nav .is-open > .sub-menu { display: block; }
.subnav-toggle { position: absolute; right: 0; top: 0.55rem; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; background: none; border: 0; color: var(--ink); }
.subnav-toggle .icon { transition: transform 0.2s; }
.is-open > .subnav-toggle .icon { transform: rotate(180deg); }
.primary-nav__extra { margin-top: 1.5rem; display: grid; gap: 0.75rem; }

@media (min-width: 64em) {
	.nav-toggle, .primary-nav__extra { display: none; }
	.primary-nav { position: static; height: auto; visibility: visible; opacity: 1; transform: none; padding: 0; background: none; overflow: visible; margin-right: 0.75rem; }
	.primary-nav > ul { display: flex; align-items: center; gap: 0.25rem; }
	.primary-nav > ul > li { border: 0; display: flex; align-items: center; }
	.primary-nav a { font-family: var(--f-sans); font-size: 0.975rem; font-weight: 550; padding: 0.55rem 0.7rem; }
	.primary-nav > ul > li > a { position: relative; }
	.primary-nav > ul > li.current-menu-item > a::after,
	.primary-nav > ul > li.current-menu-ancestor > a::after,
	.primary-nav > ul > li.current_page_parent > a::after { content: ""; position: absolute; left: 0.7rem; right: 0.7rem; bottom: 0.15rem; height: 2px; background: var(--brand); }
	.subnav-toggle { position: static; width: 1.5rem; height: 1.5rem; margin-left: -0.45rem; }
	.subnav-toggle .icon { width: 0.95rem; height: 0.95rem; }
	.primary-nav .sub-menu {
		position: absolute; top: 100%; left: 0; min-width: 15rem;
		padding: 0.5rem; background: var(--white);
		border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
	}
	.primary-nav .sub-menu a { padding: 0.55rem 0.75rem; border-radius: var(--radius-sm); font-size: 0.95rem; }
	.primary-nav .sub-menu a:hover { background: var(--sand); }
	.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu, .primary-nav .is-open > .sub-menu { display: block; }
}

/* Page heads --------------------------------------------------------------- */
.page-head { padding-block: clamp(2.25rem, 1.5rem + 4vw, 4.5rem) clamp(1.75rem, 1.25rem + 2.5vw, 3rem); }
.page-head h1 { margin-bottom: 0.3em; max-width: 22ch; }
.page-head__intro { font-size: var(--step-1); color: var(--ink-2); max-width: 40rem; margin: 0; line-height: 1.5; }
.page-head__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 1rem 0 0; color: var(--ink-2); font-weight: 500; }
.page-head__meta span { display: inline-flex; align-items: center; gap: 0.45rem; }
.page-head__meta .icon { color: var(--brand); }
.page-head .btn-row { margin-top: 1.5rem; }
.page-head--sand { background: var(--sand); }
.breadcrumbs { font-size: var(--step--1); color: var(--stone); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--stone); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); text-decoration: underline; }
.breadcrumbs span[aria-hidden] { margin-inline: 0.4rem; }
.page-banner { margin: 0; }
.page-banner img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 40em) { .page-banner img { aspect-ratio: 5 / 2; max-height: 34rem; } }
.page-banner--contained { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.page-banner--contained img { border-radius: var(--radius); }

/* Prose (editor content) -------------------------------------------------- */
.prose { max-width: var(--measure); }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: var(--step-2); margin-top: 2em; }
.prose h3 { font-size: var(--step-1); margin-top: 1.75em; }
.prose h4 { font-size: var(--step-0); font-family: var(--f-sans); font-weight: 650; letter-spacing: 0; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.35em; }
.prose li::marker { color: var(--brand); }
.prose img { border-radius: var(--radius-sm); height: auto; }
.prose img.alignright { float: right; margin: 0.25rem 0 1rem 1.5rem; max-width: 45%; }
.prose img.alignleft { float: left; margin: 0.25rem 1.5rem 1rem 0; max-width: 45%; }
.prose .aligncenter { margin-inline: auto; }
.prose blockquote { margin: 1.75rem 0; padding: 0; font-family: var(--f-serif); font-size: var(--step-1); font-style: italic; line-height: 1.45; color: var(--ink-2); }
.prose blockquote p:last-child { margin: 0; }
.prose table { width: 100%; font-size: 0.95rem; margin: 1.5rem 0; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 650; background: var(--sand); }
.prose iframe { max-width: 100%; }
.prose figure { margin: 1.75rem 0; }
.prose figcaption { font-size: var(--step--1); color: var(--stone); margin-top: 0.5rem; }
.prose--wide { max-width: none; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); }

/* Clamp long content with "Read more" (JS adds .is-clamped when needed) */
.clamp { position: relative; }
.clamp.is-clamped { max-height: 26rem; overflow: hidden; }
.clamp.is-clamped::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6rem; background: linear-gradient(rgb(252 251 249 / 0), var(--paper)); pointer-events: none; }
.section--sand .clamp.is-clamped::after { background: linear-gradient(rgb(242 237 230 / 0), var(--sand)); }
.clamp-toggle { margin-top: 0.75rem; display: inline-flex; align-items: center; gap: 0.35rem; }
.clamp-toggle[hidden] { display: none; }

/* Meta rows ---------------------------------------------------------------- */
.meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; color: var(--stone); font-size: var(--step--1); margin: 0; }
.meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.meta .icon { width: 1em; height: 1em; }

/* Event cards ------------------------------------------------------------- */
.event-card { position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: border-color 0.2s, box-shadow 0.2s; height: 100%; }
.event-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.event-card__media { aspect-ratio: 16 / 10; background: var(--sand); overflow: hidden; }
.event-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.event-card:hover .event-card__media img { transform: scale(1.03); }
.event-card__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.event-card__title { font-size: var(--step-1); margin: 0; line-height: 1.2; }
.event-card__title a { color: var(--ink); text-decoration: none; }
.event-card__title a::after { content: ""; position: absolute; inset: 0; }
.event-card__title a:hover { color: var(--brand); }
.event-card .meta { margin-top: auto; }
.event-card__flag { position: absolute; top: 0.75rem; left: 0.75rem; background: var(--white); color: var(--ink); font-size: 0.8rem; font-weight: 650; padding: 0.3rem 0.55rem; border-radius: var(--radius-sm); }

/* Horizontal scroller (events on home, mobile) */
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 22rem); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.75rem; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: thin; }
.scroller > * { scroll-snap-align: start; }
@media (min-width: 56em) {
	.scroller { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; }
}

/* Event listing (archive) */
.filter-tabs { display: flex; gap: 0.25rem 1.5rem; border-bottom: 1px solid var(--line); margin-bottom: 2rem; overflow-x: auto; }
.filter-tabs a { padding: 0.75rem 0; color: var(--stone); font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.filter-tabs a:hover { color: var(--ink); }
.filter-tabs a[aria-current="page"] { color: var(--ink); border-color: var(--brand); }
.year-heading { font-size: var(--step-2); margin: 2.5rem 0 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.year-heading:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* Highlights (home) ------------------------------------------------------- */
.tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; color: var(--white); text-decoration: none; aspect-ratio: 4 / 3; background: var(--night); isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.5s var(--ease); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(32 23 21 / 0) 35%, rgb(32 23 21 / 0.82)); }
.tile:hover img { transform: scale(1.04); }
.tile__title { position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1rem; margin: 0; font-family: var(--f-serif); font-size: var(--step-1); line-height: 1.2; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; color: var(--white); }
.tile:hover { color: var(--white); }

.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
@media (min-width: 56em) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; } }
@media (max-width: 39.99em) { .tile__title { left: 0.75rem; right: 0.75rem; bottom: 0.7rem; font-size: 1.05rem; } .tile__title .icon { display: none; } }

/* Home intro --------------------------------------------------------------- */
.home-intro { padding-block: clamp(2.25rem, 1.5rem + 4vw, 5rem); }
.home-intro h1 { font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.4rem); line-height: 1.04; max-width: 15ch; margin-bottom: 0.4em; }
.home-intro .lede { max-width: 34rem; }
.home-intro__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
@media (min-width: 56em) {
	.home-intro .split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; }
	.home-intro__media img { aspect-ratio: 5 / 4; }
}

/* Figures ------------------------------------------------------------------ */
.figures { display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); padding-block: 2rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.figure__value { display: block; font-family: var(--f-serif); font-size: clamp(2.3rem, 1.8rem + 1.6vw, 3.25rem); line-height: 1; color: var(--brand); white-space: nowrap; font-variant-numeric: lining-nums; }
.figure__label { display: block; margin-top: 0.4rem; color: var(--ink-2); font-weight: 500; }

/* Brand band --------------------------------------------------------------- */
.band { background: var(--brand); color: var(--white); padding-block: clamp(2.75rem, 2rem + 4vw, 5rem); }
.band h2 { color: var(--white); margin-bottom: 0.3em; }
.band p { color: rgb(255 255 255 / 0.85); max-width: 38rem; font-size: var(--step-1); line-height: 1.5; }
.band .btn-row { margin-top: 1.5rem; }
@media (min-width: 56em) {
	.band__inner { display: flex; align-items: center; justify-content: space-between; gap: 3rem; }
	.band .btn-row { margin-top: 0; flex: none; }
}

/* News list ---------------------------------------------------------------- */
.news-card { display: flex; flex-direction: column; gap: 0.6rem; position: relative; }
.news-card__media { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; }
.news-card h3 { font-size: var(--step-1); margin: 0; }
.news-card h3 a { color: var(--ink); text-decoration: none; }
.news-card h3 a::after { content: ""; position: absolute; inset: 0; }
.news-card h3 a:hover { color: var(--brand); }
.news-card p { margin: 0; color: var(--ink-2); font-size: 0.975rem; }

/* Row lists (publications, documents, newsletters) ------------------------ */
.rows { border-top: 1px solid var(--line); }
.row-item { display: grid; gap: 0.35rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); position: relative; }
.row-item__title { font-family: var(--f-serif); font-size: var(--step-1); font-weight: 500; line-height: 1.25; margin: 0; }
.row-item__title a { color: var(--ink); text-decoration: none; }
.row-item__title a:hover { color: var(--brand); text-decoration: underline; }
.row-item p { margin: 0; color: var(--ink-2); font-size: 0.975rem; }
.row-item__topics { color: var(--stone); font-size: var(--step--1); }
@media (min-width: 40em) {
	.row-item--doc { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 1.5rem; }
	.row-item--doc .btn { grid-row: 1 / span 2; grid-column: 2; }
}

/* Filters ------------------------------------------------------------------ */
.filters { margin-bottom: 2rem; }
.filters summary { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; cursor: pointer; padding: 0.6rem 0.9rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); list-style: none; background: var(--white); }
.filters summary::-webkit-details-marker { display: none; }
.filters[open] summary { margin-bottom: 1rem; }
.filters__form { display: grid; gap: 0.85rem; padding: 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.filters__form .field { margin: 0; }
.filters__form .btn-row { align-self: end; }
@media (min-width: 56em) {
	.filters summary { display: none; }
	.filters__form { grid-template-columns: 2fr repeat(3, minmax(0, 1fr)) auto; align-items: end; }
	.filters__form--3 { grid-template-columns: 2fr repeat(2, minmax(0, 1fr)) auto; }
}
.result-count { color: var(--stone); margin: 0 0 1rem; font-size: var(--step--1); }

/* Forms -------------------------------------------------------------------- */
.form { display: grid; gap: 1.1rem; }
.form-grid { display: grid; gap: 1rem 1.25rem; }
@media (min-width: 40em) {
	.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.form-grid .field--wide, .form-grid fieldset { grid-column: 1 / -1; }
}
.field { display: grid; gap: 0.35rem; margin: 0; }
.field label, .field legend, .label { font-weight: 600; font-size: 0.95rem; }
.field .req { color: var(--brand); }
.field .hint, .hint { font-size: var(--step--1); color: var(--stone); margin: 0; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="url"], input[type="search"], input[type="date"], input[type="number"], select, textarea {
	width: 100%; min-height: 2.875rem; padding: 0.6rem 0.8rem;
	background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
	font-size: 1rem; line-height: 1.4; transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { min-height: 7rem; resize: vertical; }
select { appearance: none; padding-right: 2.25rem; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a423c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.7rem center / 1rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgb(128 26 22 / 0.15); }
input[type="checkbox"], input[type="radio"] { width: 1.1rem; height: 1.1rem; accent-color: var(--brand); margin: 0.2rem 0 0; flex: none; }
input[type="file"] { font-size: 0.95rem; max-width: 100%; }
.field--check label, .choices label { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.choices { display: grid; gap: 0.55rem 1.25rem; margin-top: 0.5rem; }
@media (min-width: 40em) { .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form-section { padding-top: 1.5rem; border-top: 1px solid var(--line); }
.form-section > h2, .form-section > h3 { font-size: var(--step-1); margin-bottom: 1rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; padding-top: 0.5rem; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); }
.panel--auth { max-width: 28rem; margin-inline: auto; }
.panel h2 { font-size: var(--step-2); }

/* Notices — tinted backgrounds, no side stripes */
.notice { display: block; padding: 0.9rem 1.1rem; border-radius: var(--radius-sm); background: var(--sand); margin-bottom: 1.5rem; }
.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }
.notice ul { padding-left: 1.2rem; margin: 0.25rem 0 0; }
.notice--error { background: var(--brand-soft); color: var(--brand-deep); }
.notice--success { background: var(--ok-soft); color: var(--ok); }

/* Members gate ------------------------------------------------------------ */
.gate { text-align: center; max-width: 36rem; margin-inline: auto; padding: clamp(2rem, 1.5rem + 3vw, 3.5rem) clamp(1.25rem, 1rem + 2vw, 2.5rem); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.gate__icon { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--brand-soft); color: var(--brand); margin-bottom: 1rem; }
.gate h2 { font-size: var(--step-2); }
.gate p { color: var(--ink-2); }
.gate .btn-row { justify-content: center; margin-top: 1.5rem; }

/* Avatars ------------------------------------------------------------------ */
.avatar { border-radius: 50%; object-fit: cover; flex: none; }
.avatar--initials { --size: 48px; display: inline-grid; place-items: center; width: var(--size); height: var(--size); background: var(--brand-soft); color: var(--brand); font-weight: 650; font-size: calc(var(--size) * 0.38); letter-spacing: 0.02em; }

/* Member cards ------------------------------------------------------------ */
.member-card { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: center; padding: 1.1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.2s; }
.member-card:hover { border-color: var(--line-strong); }
.member-card .avatar { width: 3.5rem; height: 3.5rem; --size: 3.5rem; }
.member-card h3 { font-family: var(--f-sans); font-size: 1rem; font-weight: 650; margin: 0 0 0.15rem; letter-spacing: 0; }
.member-card h3 a { color: var(--ink); text-decoration: none; }
.member-card h3 a::after { content: ""; position: absolute; inset: 0; }
.member-card h3 a:hover { color: var(--brand); }
.member-card p { margin: 0; font-size: 0.9rem; color: var(--ink-2); line-height: 1.4; }
.member-card .member-type { color: var(--brand); font-weight: 600; font-size: 0.8rem; margin-top: 0.3rem; }

/* Profile ------------------------------------------------------------------ */
.profile-head { display: grid; gap: 1.5rem; align-items: center; }
.profile-head .avatar { width: 7.5rem; height: 7.5rem; --size: 7.5rem; }
@media (min-width: 40em) { .profile-head { grid-template-columns: auto minmax(0, 1fr); } }
.profile-head h1 { font-size: var(--step-3); margin-bottom: 0.25rem; }
.profile-head p { margin: 0; color: var(--ink-2); }
.facts { display: grid; gap: 0.9rem; margin: 0; }
.facts div { display: grid; gap: 0.1rem; }
.facts dt { font-size: var(--step--1); color: var(--stone); font-weight: 500; }
.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

/* People (team / advisory board) ------------------------------------------ */
.person { display: grid; gap: 0.8rem; align-content: start; text-align: left; background: none; border: 0; padding: 0; color: inherit; }
.person__photo { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
button.person:hover .person__photo img { transform: scale(1.03); }
.person__name { font-family: var(--f-serif); font-size: var(--step-1); font-weight: 500; line-height: 1.2; margin: 0; }
.person__role { color: var(--stone); font-size: 0.925rem; margin: 0; line-height: 1.4; }
button.person:hover .person__name { color: var(--brand); }
.people { display: grid; gap: 2rem 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 40em) { .people { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 64em) { .people { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.people[data-limit] > .is-extra { display: none; }
.people.is-expanded > .is-extra { display: grid; }

/* Logos -------------------------------------------------------------------- */
.logos { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 40em) { .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 64em) { .logos--wide { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.logo-tile { display: grid; place-items: center; aspect-ratio: 3 / 2; padding: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink-2); text-align: center; font-size: 0.9rem; font-weight: 600; transition: border-color 0.2s; }
a.logo-tile:hover { border-color: var(--line-strong); }
.logo-tile img { max-height: 4.5rem; width: auto; object-fit: contain; }
.aside-block + .aside-block { margin-top: 2.5rem; }
.aside-block h2 { font-size: var(--step-1); margin-bottom: 1rem; }
.aside-block .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Quotes ------------------------------------------------------------------- */
.quotes { display: grid; gap: 1.5rem; }
@media (min-width: 56em) { .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.quote { margin: 0; font-family: var(--f-serif); font-size: var(--step-1); font-style: italic; line-height: 1.4; color: var(--ink); }
.quote .icon { color: var(--brand); width: 1.75rem; height: 1.75rem; margin-bottom: 0.5rem; }

/* Disclosure (accordion) --------------------------------------------------- */
.disclosure { border-top: 1px solid var(--line); }
.disclosure:last-of-type { border-bottom: 1px solid var(--line); }
.disclosure summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; cursor: pointer; list-style: none; font-family: var(--f-serif); font-size: var(--step-1); }
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary .icon { transition: transform 0.2s; color: var(--brand); }
.disclosure[open] summary .icon { transform: rotate(180deg); }
.disclosure__body { padding-bottom: 1.5rem; }

/* Event page --------------------------------------------------------------- */
.event-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.fees { width: 100%; font-size: 0.975rem; margin: 1rem 0 1.5rem; }
.fees td { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.fees td:last-child { text-align: right; white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; padding-left: 1rem; }
.event-facts { display: grid; gap: 1rem; padding: 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 2rem; }
.event-facts .facts { gap: 0.75rem; }
.event-facts .btn { width: 100%; }

/* Video facade */
.video-facade { position: relative; aspect-ratio: 16 / 9; background: var(--night); border-radius: var(--radius); overflow: hidden; margin: 1.5rem 0; display: grid; place-items: center; color: var(--white); }
.video-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-facade__play { display: inline-flex; align-items: center; gap: 0.6rem; background: var(--brand); color: var(--white); border: 0; border-radius: var(--radius-sm); padding: 0.8rem 1.2rem; font-weight: 600; }
.video-facade__play:hover { background: var(--brand-deep); }
.video-facade__note { position: absolute; bottom: 0.75rem; left: 1rem; right: 1rem; margin: 0; font-size: 0.8rem; color: rgb(255 255 255 / 0.7); text-align: center; }

/* Dialog ------------------------------------------------------------------- */
dialog.modal { width: min(42rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; border: 0; border-radius: var(--radius); box-shadow: 0 30px 80px -20px rgb(0 0 0 / 0.45); background: var(--paper); color: var(--ink); }
dialog.modal::backdrop { background: rgb(32 23 21 / 0.6); }
.modal__head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.25rem 1.5rem 1rem; background: var(--paper); border-bottom: 1px solid var(--line); }
.modal__head h2 { font-size: var(--step-2); margin: 0; }
.modal__head p { margin: 0.2rem 0 0; color: var(--stone); }
.modal__close { flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--white); }
.modal__body { padding: 1.25rem 1.5rem 1.75rem; }
.modal__person { display: grid; gap: 1.25rem; }
.modal__person img { width: 8rem; height: 8rem; border-radius: var(--radius); object-fit: cover; }
@media (min-width: 40em) { .modal__person { grid-template-columns: 8rem minmax(0, 1fr); } }

/* Membership plans -------------------------------------------------------- */
.plans { display: grid; gap: 1.25rem; }
@media (min-width: 56em) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; } }
.plan { display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.5rem, 1.25rem + 1vw, 2rem); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.plan--featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.plan h2 { font-size: var(--step-2); margin: 0; }
.plan__price { font-family: var(--f-serif); font-size: var(--step-3); line-height: 1; color: var(--brand); margin: 0; }
.plan__note { font-size: var(--step--1); color: var(--stone); margin: -0.5rem 0 0; }
.plan__summary { margin: 0; color: var(--ink-2); }
.plan ul, .checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; font-size: 0.95rem; }
.plan li, .checklist li { display: grid; grid-template-columns: 1.1rem minmax(0, 1fr); gap: 0.6rem; }
.plan li .icon, .checklist li .icon { color: var(--brand); margin-top: 0.2rem; }
.plan .btn { margin-top: auto; }

/* Account ------------------------------------------------------------------ */
.account-nav { display: flex; gap: 0.25rem 1.5rem; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 2rem; scrollbar-width: none; }
.account-nav a { padding: 0.8rem 0; white-space: nowrap; color: var(--stone); font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.account-nav a:hover { color: var(--ink); }
.account-nav a[aria-current="page"] { color: var(--ink); border-color: var(--brand); }
.account-hello { display: flex; align-items: center; gap: 1rem; }
.account-hello .avatar { width: 3.5rem; height: 3.5rem; --size: 3.5rem; }
.account-hello h1 { font-size: var(--step-3); margin: 0; }
.account-hello p { margin: 0.2rem 0 0; color: var(--stone); }
.cards-2 { display: grid; gap: 1.25rem; }
@media (min-width: 56em) { .cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.panel h2 + .rows { margin-top: 0.5rem; }
.panel .row-item:last-child { border-bottom: 0; padding-bottom: 0; }
.photo-field { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.photo-field .avatar { width: 5rem; height: 5rem; --size: 5rem; }

/* Pagination --------------------------------------------------------------- */
.pagination { margin-top: 2.5rem; }
.pagination ul { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; padding: 0; margin: 0; justify-content: center; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 2.6rem; height: 2.6rem; padding: 0 0.6rem; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); background: var(--white); font-weight: 600; font-variant-numeric: tabular-nums; }
.pagination a:hover { border-color: var(--ink); }
.pagination .current { background: var(--ink); border-color: var(--ink); color: var(--white); }
.pagination .dots { border: 0; background: none; }

/* Comments ----------------------------------------------------------------- */
.comments { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.comment-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.comment-list .comment { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.comment-meta { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; color: var(--stone); }
.comment-meta .avatar { width: 2.25rem; height: 2.25rem; }
.comment-author .fn { color: var(--ink); font-weight: 650; font-style: normal; }
.comment-content { margin-top: 0.5rem; }
.comment-respond textarea { min-height: 6rem; }
.comment-form { display: grid; gap: 1rem; }
.comment-form p { margin: 0; }
.comment-form .submit { background: var(--brand); color: var(--white); border: 0; border-radius: var(--radius-sm); padding: 0.75rem 1.25rem; font-weight: 600; }

/* Footer ------------------------------------------------------------------- */
.site-footer { background: var(--night); color: rgb(255 255 255 / 0.78); padding-block: clamp(3rem, 2rem + 4vw, 4.5rem) 2rem; font-size: 0.95rem; }
.site-footer a { color: rgb(255 255 255 / 0.9); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; gap: 2.25rem; }
@media (min-width: 40em) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand img { height: 2.2rem; width: auto; margin-bottom: 1rem; }
.footer-brand p { max-width: 22rem; }
.site-footer h2 { font-family: var(--f-sans); font-size: 0.85rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: rgb(255 255 255 / 0.55); margin-bottom: 1rem; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.footer-list a, .footer-list span { display: inline-flex; align-items: center; gap: 0.55rem; }
.footer-address { font-style: normal; white-space: pre-line; margin-bottom: 1rem; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / 0.14); font-size: 0.85rem; color: rgb(255 255 255 / 0.55); }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; list-style: none; margin: 0; padding: 0; }

/* Gravity Forms (minimal, matches theme forms) ---------------------------- */
.gform_wrapper .gform_fields { display: grid; gap: 1.1rem 1.25rem; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.gform_wrapper .gfield { grid-column: 1 / -1; margin: 0; min-width: 0; }
@media (min-width: 40em) { .gform_wrapper .gfield--width-half { grid-column: span 6; } }
.gform_wrapper .gfield_label, .gform_wrapper legend.gfield_label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.35rem; }
.gform_wrapper .gfield_required { color: var(--brand); margin-left: 0.2rem; }
.gform_wrapper .gfield_required .gfield_required_text { font-size: 0.8rem; font-weight: 500; }
.gform_wrapper .gfield_description { font-size: var(--step--1); color: var(--stone); margin-top: 0.3rem; }
.gform_wrapper .gsection { padding-top: 1.5rem; margin-top: 0.5rem; border-top: 1px solid var(--line); }
.gform_wrapper .gsection_title { font-size: var(--step-1); margin: 0; }
.gform_wrapper .gfield_checkbox, .gform_wrapper .gfield_radio { display: grid; gap: 0.55rem; }
.gform_wrapper .gchoice { display: flex; align-items: flex-start; gap: 0.6rem; }
.gform_wrapper .gchoice label { font-weight: 400; }
.gform_wrapper .ginput_container_product_price, .gform_wrapper .ginput_total { font-weight: 650; color: var(--brand); font-size: var(--step-1); }
.gform_wrapper .gform_footer { margin-top: 1.5rem; }
.gform_wrapper .gform_button { background: var(--brand); color: var(--white); border: 0; border-radius: var(--radius-sm); padding: 0.8rem 1.5rem; font-weight: 600; min-height: 2.875rem; }
.gform_wrapper .gform_button:hover { background: var(--brand-deep); }
.gform_wrapper .validation_message, .gform_wrapper .gform_validation_errors { color: var(--brand-deep); background: var(--brand-soft); padding: 0.5rem 0.75rem; border-radius: var(--radius-sm); margin-top: 0.4rem; font-size: 0.9rem; }
.gform_wrapper .gfield_error input, .gform_wrapper .gfield_error select, .gform_wrapper .gfield_error textarea { border-color: var(--brand); }
.gform_confirmation_message { padding: 1.25rem; background: var(--ok-soft); color: var(--ok); border-radius: var(--radius-sm); }
.reg-summary { padding: 1rem 1.25rem; background: var(--sand); border-radius: var(--radius-sm); }
.reg-summary__title { font-family: var(--f-serif); font-size: var(--step-1); margin: 0 0 0.2rem; }
.reg-summary p:last-child { margin: 0; }
.gform_wrapper .gform_hidden, .gform_wrapper .gfield--type-hidden { display: none; }

/* Utilities ---------------------------------------------------------------- */
.muted { color: var(--stone); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.empty { padding: 2rem; text-align: center; color: var(--stone); background: var(--white); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.alignwide { max-width: none; }
.page-head + .section--tight, .page-head + .wrap.section--tight { padding-top: clamp(0.5rem, 0.25rem + 1vw, 1.25rem); }

/* ==========================================================================
   Home page
   ========================================================================== */

/* Announcement bar */
.announce { background: var(--ink); color: rgb(255 255 255 / 0.86); font-size: 0.925rem; }
.announce__inner { display: flex; gap: 0.75rem; align-items: flex-start; padding-block: 0.8rem; }
.announce .icon { color: #e9b4ae; margin-top: 0.2rem; }
.announce p { margin: 0; max-width: 62rem; }
.announce a { color: var(--white); font-weight: 600; margin-left: 0.25rem; white-space: nowrap; }

/* Hero */
.hero { padding-block: clamp(2.5rem, 1.5rem + 5vw, 6rem) clamp(3rem, 2rem + 5vw, 6.5rem); overflow: hidden; }
.hero__grid { display: grid; gap: clamp(2.5rem, 1.5rem + 4vw, 5rem); align-items: center; }
@media (min-width: 56em) { .hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); } }
.hero h1 { font-size: clamp(2.4rem, 1.4rem + 3.8vw, 4.3rem); line-height: 1.02; letter-spacing: -0.022em; max-width: 13ch; margin-bottom: 0.45em; }
.hero .lede { max-width: 33rem; margin-bottom: 2rem; }
.hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; gap: 1rem clamp(1.5rem, 1rem + 2.5vw, 3.5rem); margin: clamp(2.25rem, 1.5rem + 2vw, 3.25rem) 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.hero__stats div { display: flex; flex-direction: column-reverse; gap: 0.2rem; }
.hero__stats dd { margin: 0; font-family: var(--f-serif); font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.6rem); line-height: 1; color: var(--brand); font-variant-numeric: lining-nums; white-space: nowrap; }
.hero__stats dt { font-size: var(--step--1); color: var(--stone); font-weight: 500; }
.hero__media { position: relative; margin: 0 1.25rem 1.25rem 0; isolation: isolate; }
.hero__media::before { content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem; background: var(--brand); border-radius: var(--radius); z-index: -1; }
.hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
@media (min-width: 56em) { .hero__media img { aspect-ratio: 4 / 3; } }

/* About + what we do */
.about__grid { display: grid; gap: 2.5rem; }
@media (min-width: 56em) {
	.about__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(3rem, 2rem + 4vw, 6rem); align-items: start; }
	.about__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.about__intro h2 { max-width: 16ch; }
.about__intro .lede { margin-bottom: 1.5rem; }
.pillars { list-style: none; margin: 0; padding: 0; }
.pillar { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.25rem; align-items: start; padding: 1.6rem 0; border-top: 1px solid var(--line-strong); }
.pillar:last-child { border-bottom: 1px solid var(--line-strong); }
.pillar__icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: var(--radius); background: var(--white); color: var(--brand); box-shadow: 0 1px 2px rgb(31 26 23 / 0.06); }
.pillar__icon .icon { width: 1.35rem; height: 1.35rem; }
.pillar__title { font-size: var(--step-1); margin: 0.2rem 0 0.35rem; }
.pillar__title a { color: var(--ink); text-decoration: none; }
.pillar__title a::after { content: ""; position: absolute; inset: 0; }
.pillar p { margin: 0; color: var(--ink-2); }
.pillar__arrow { color: var(--stone); margin-top: 0.35rem; transition: transform 0.2s var(--ease), color 0.2s; }
.pillar:hover .pillar__title a { color: var(--brand); }
.pillar:hover .pillar__arrow { color: var(--brand); transform: translate(2px, -2px); }

/* Explore (asymmetric tile grid) */
.bento { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bento .tile { aspect-ratio: 1; }
.bento .tile--feature { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
@media (min-width: 56em) {
	.bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 15rem; gap: 1rem; }
	.bento .tile, .bento .tile--feature { aspect-ratio: auto; height: 100%; }
	.bento .tile--feature { grid-column: span 2; grid-row: span 2; }
	.bento--4 .tile:last-child { grid-column: span 2; }
	.bento .tile--feature .tile__title { font-size: var(--step-2); left: 1.5rem; bottom: 1.4rem; right: 1.5rem; }
}
@media (max-width: 55.99em) { .bento--4 .tile:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; } }

/* News: lead story + list */
.news-layout { display: grid; gap: 2rem; }
@media (min-width: 56em) { .news-layout { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 3vw, 4rem); } }
.news-lead { position: relative; }
.news-lead__media { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--sand); margin-bottom: 1.25rem; }
.news-lead__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.news-lead:hover .news-lead__media img { transform: scale(1.03); }
.news-lead h3 { font-size: var(--step-2); margin-bottom: 0.4rem; }
.news-lead h3 a, .news-item h3 a { color: var(--ink); text-decoration: none; }
.news-lead h3 a::after, .news-item h3 a::after { content: ""; position: absolute; inset: 0; }
.news-lead:hover h3 a, .news-item:hover h3 a { color: var(--brand); }
.news-lead > p:last-child { color: var(--ink-2); margin: 0.75rem 0 0; max-width: 38rem; }
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-item { position: relative; display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1.1rem; align-items: center; padding: 1.15rem 0; }
.news-item:not(:has(.news-item__media)) { grid-template-columns: minmax(0, 1fr); }
.news-item__media { aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--sand); }
.news-item__media img { width: 100%; height: 100%; object-fit: cover; }
.news-item h3 { font-size: 1.15rem; line-height: 1.25; margin: 0 0 0.3rem; }
.news-item .meta { margin: 0; }

/* Membership band with tiers */
.band__grid { display: grid; gap: 2.5rem; }
@media (min-width: 56em) { .band__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(3rem, 2rem + 4vw, 6rem); align-items: center; } }
.band__plans { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.band__plans a { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.15rem 1rem; padding: 1.1rem 3rem 1.1rem 1.25rem; border: 1px solid rgb(255 255 255 / 0.28); border-radius: var(--radius); color: var(--white); text-decoration: none; transition: background-color 0.2s, border-color 0.2s; }
.band__plans a:hover { background: rgb(255 255 255 / 0.08); border-color: rgb(255 255 255 / 0.6); color: var(--white); }
.band__plan-name { font-family: var(--f-serif); font-size: var(--step-1); line-height: 1.2; }
.band__plan-price { font-weight: 650; white-space: nowrap; align-self: center; }
.band__plan-text { grid-column: 1 / -1; font-size: 0.9rem; color: rgb(255 255 255 / 0.75); }
.band__plans .icon { position: absolute; right: 1.1rem; top: 50%; translate: 0 -50%; transition: transform 0.2s var(--ease); }
.band__plans a:hover .icon { transform: translateX(3px); }
.band .btn-row { margin-top: 1.75rem; }

/* Buttons inside the mobile menu keep button styling (not menu-link styling). */
.primary-nav .primary-nav__extra .btn { display: flex; padding: 0.75rem 1.25rem; font-family: var(--f-sans); font-size: 1rem; font-weight: 600; line-height: 1.2; color: var(--white); }
.primary-nav .primary-nav__extra .btn--outline { color: var(--ink); background: var(--white); }
.primary-nav .primary-nav__extra .btn:hover { color: var(--white); }
.primary-nav .primary-nav__extra .btn--outline:hover { color: var(--ink); }
