/* ==========================================================================
   New Cumnock Community Council — Main Stylesheet

   Design system derived from the council's identity mark:
   deep heritage green, sage, and hill-mist, on warm neutral stone.
   ========================================================================== */

:root {
	/* Brand — sampled from the council logo */
	--brand-forest: #192f23;
	--brand-sage: #667f49;
	--brand-mist: #aebca1;

	/* Primary greens */
	--color-primary: #1b3a28;
	--color-primary-dark: #0e2317;
	--color-primary-light: #2f5c3e;

	/* Accent — passes WCAG AA (6.0:1) on white for body-size text */
	--color-accent: #4f6b2e;
	--color-accent-dark: #3d5323;
	--color-accent-light: #c3d3b4;

	/* Neutrals */
	--color-bg: #ffffff;
	--color-bg-alt: #f3f6f0;
	--color-bg-deep: #e9eee4;
	/* Warm cream — used for full-width bands that should feel invitational. */
	--color-bg-warm: #faf5eb;
	--color-surface: #ffffff;
	--color-text: #1b221d;
	--color-text-muted: #545f57;
	--color-border: #dde3d8;
	--color-border-strong: #c6d0bd;

	/* Type */
	--font-display: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	/* Retained for backwards compatibility with older rules */
	--font-serif: var(--font-display);

	--radius-sm: 4px;
	--radius-md: 8px;
	--radius-lg: 14px;

	--shadow-sm: 0 1px 2px rgba(14, 35, 23, 0.06), 0 1px 3px rgba(14, 35, 23, 0.04);
	--shadow-md: 0 2px 6px rgba(14, 35, 23, 0.07), 0 8px 24px rgba(14, 35, 23, 0.07);
	--shadow-lg: 0 4px 12px rgba(14, 35, 23, 0.08), 0 16px 48px rgba(14, 35, 23, 0.11);

	--header-height: 84px;
	--container-max: 1180px;
	--container-narrow: 760px;
	--section-spacing: clamp(3.5rem, 6vw, 5.5rem);
}

/* Reset & Base
   ========================================================================== */

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

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

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--color-text);
	background-color: var(--color-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

a {
	color: var(--color-primary-light);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 0.2s ease;
}

a:hover {
	color: var(--color-primary);
}

:focus-visible {
	outline: 3px solid var(--color-accent);
	outline-offset: 2px;
	border-radius: 2px;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.015em;
	color: var(--color-primary-dark);
	margin-top: 0;
	text-wrap: balance;
}

p {
	margin-top: 0;
	margin-bottom: 1rem;
}

hr {
	border: 0;
	border-top: 1px solid var(--color-border);
	margin-block: 2.5rem;
}

/* Utilities
   ========================================================================== */

.container {
	width: 100%;
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 1rem 1.5rem;
	margin: 0;
	overflow: visible;
	clip: auto;
	background: var(--color-primary-dark);
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
}

.section {
	padding-block: var(--section-spacing);
}

.section--alt {
	background-color: var(--color-bg-alt);
}

.section-title {
	font-size: clamp(1.75rem, 3.4vw, 2.375rem);
	margin-bottom: 1rem;
}

.section-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
	margin-bottom: 2.5rem;
}

.section-header .section-title {
	margin-bottom: 0;
}

/* A single action centred under a section's listing, at every width. */
.section-footer {
	display: flex;
	justify-content: center;
	margin-top: clamp(2rem, 4vw, 2.75rem);
}

/* Buttons
   ========================================================================== */

.btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.8125rem 1.625rem;
	font-family: var(--font-sans);
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0.005em;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	border-radius: var(--radius-md);
	border: 1px solid transparent;
	cursor: pointer;
	/* Keeps a button and a link-styled button the same height. */
	min-height: 46px;
	transition:
		background-color 0.18s ease,
		border-color 0.18s ease,
		color 0.18s ease,
		box-shadow 0.18s ease,
		transform 0.12s ease;
}

.btn:focus-visible {
	outline: 3px solid var(--color-accent);
	outline-offset: 3px;
}

/* A small, consistent press. */
.btn:active {
	transform: translateY(1px);
}

.btn--primary {
	background-color: var(--color-primary);
	color: #fff;
	border-color: var(--color-primary);
	box-shadow: 0 1px 2px rgba(14, 35, 23, 0.16), 0 2px 8px rgba(14, 35, 23, 0.12);
}

.btn--primary:hover {
	background-color: var(--color-primary-dark);
	border-color: var(--color-primary-dark);
	color: #fff;
	box-shadow: 0 2px 4px rgba(14, 35, 23, 0.2), 0 6px 16px rgba(14, 35, 23, 0.18);
}

.btn--primary:active {
	box-shadow: 0 1px 2px rgba(14, 35, 23, 0.2);
}

.btn--secondary {
	background-color: var(--color-surface);
	color: var(--color-primary);
	border-color: var(--color-border-strong);
	box-shadow: 0 1px 2px rgba(14, 35, 23, 0.06);
}

.btn--secondary:hover {
	background-color: var(--color-bg-alt);
	border-color: var(--color-primary);
	color: var(--color-primary-dark);
	box-shadow: 0 2px 6px rgba(14, 35, 23, 0.1);
}

.btn--outline {
	background-color: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.65);
	border-width: 2px;
}

.btn--outline:hover {
	background-color: rgba(255, 255, 255, 0.16);
	color: #fff;
	border-color: #fff;
}

.btn--outline:focus-visible {
	outline-color: #fff;
}

.btn--ghost {
	background-color: rgba(255, 255, 255, 0.12);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.35);
}

.btn--ghost:hover {
	background-color: rgba(255, 255, 255, 0.22);
	color: #fff;
}

.btn--light {
	background-color: #fff;
	color: var(--color-primary-dark);
	border-color: #fff;
	box-shadow: 0 1px 2px rgba(14, 35, 23, 0.14), 0 2px 8px rgba(14, 35, 23, 0.12);
}

.btn--light:hover {
	background-color: var(--color-accent-light);
	border-color: var(--color-accent-light);
	color: var(--color-primary-dark);
	box-shadow: 0 2px 4px rgba(14, 35, 23, 0.18), 0 6px 16px rgba(14, 35, 23, 0.16);
}

.btn--small {
	min-height: 38px;
	padding: 0.4375rem 1rem;
	font-size: 0.875rem;
	border-radius: var(--radius-sm);
}

.btn--block {
	width: 100%;
}

@media (prefers-reduced-motion: reduce) {
	.btn:active {
		transform: none;
	}
}

/* Notice banner
   ========================================================================== */

.notice-banner {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-block: 0.625rem;
	background-color: var(--color-primary-dark);
	color: #fff;
}

/* Uses .container so the message lines up with the logo and nav above. */
.notice-banner__bar {
	position: relative;
	display: flex;
	align-items: center;
	gap: 1rem;
}

.notice-banner[hidden] {
	display: none;
}

/* Soft blurred colour behind the bar, in the brand greens. */
.notice-banner__glow {
	position: absolute;
	top: 50%;
	z-index: -10;
	transform: translateY(-50%);
	filter: blur(40px);
	pointer-events: none;
}

.notice-banner__glow span {
	display: block;
	width: 36rem;
	aspect-ratio: 577 / 310;
	opacity: 0.4;
	background-image: linear-gradient(to right, var(--brand-sage), var(--brand-mist));
	clip-path: polygon(74.8% 41.9%, 97.2% 73.2%, 100% 34.9%, 92.5% 0.4%, 87.5% 0%, 75% 28.6%, 58.5% 54.6%, 50.1% 56.8%, 46.9% 44%, 48.3% 17.4%, 24.7% 53.9%, 0% 27.9%, 11.9% 74.2%, 24.9% 54.1%, 68.6% 100%, 74.8% 41.9%);
}

.notice-banner__glow--start {
	left: max(-7rem, calc(50% - 52rem));
}

.notice-banner__glow--end {
	left: max(45rem, calc(50% + 8rem));
}

/* Message sits left; the dismiss button stays hard right. */
.notice-banner__inner {
	display: flex;
	flex: 1;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 0.5rem 1rem;
	min-width: 0;
}

.notice-banner__text {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.92);
}

.notice-banner__lead {
	font-weight: 600;
	color: #fff;
}

.notice-banner__dot {
	display: inline;
	width: 3px;
	height: 3px;
	margin-inline: 0.5rem;
	fill: currentColor;
	vertical-align: middle;
	opacity: 0.6;
}

.notice-banner__cta {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.25rem 0.875rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: #fff;
	text-decoration: none;
	background-color: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	transition: background-color 0.18s ease, border-color 0.18s ease;
}

.notice-banner__cta:hover {
	background-color: rgba(255, 255, 255, 0.2);
	border-color: rgba(255, 255, 255, 0.35);
	color: #fff;
}

.notice-banner__cta:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.notice-banner__dismiss {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: -0.25rem -0.5rem -0.25rem 0;
	padding: 0;
	color: rgba(255, 255, 255, 0.8);
	background: none;
	border: 0;
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: color 0.18s ease, background-color 0.18s ease;
}

.notice-banner__dismiss:hover {
	color: #fff;
	background-color: rgba(255, 255, 255, 0.12);
}

.notice-banner__dismiss:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -2px;
}

@media (max-width: 640px) {
	.notice-banner__text {
		font-size: 0.875rem;
	}
}

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

.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background-color: var(--color-surface);
	border-bottom: 1px solid var(--color-border);
	box-shadow: 0 1px 2px rgba(14, 35, 23, 0.05);
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* On scroll the bar sits over page content, so it lifts very slightly.
   The background stays fully opaque throughout. */
.site-header.is-solid {
	box-shadow: 0 1px 3px rgba(14, 35, 23, 0.08);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: var(--header-height);
	gap: 1.5rem;
	padding-block: 0.625rem;
}

.site-branding {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	min-width: 0;
}

/* Search form — used by the search results template.
   ========================================================================== */

.search-form {
	position: relative;
	display: flex;
	align-items: center;
}

.search-form__field {
	width: 100%;
	padding: 0.5rem 2.5rem 0.5rem 0.875rem;
	font-family: inherit;
	font-size: 0.9375rem;
	line-height: 1.4;
	color: var(--color-text);
	background-color: var(--color-bg-alt);
	border: 1px solid var(--color-border-strong);
	border-radius: var(--radius-sm);
	transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.search-form__field::placeholder {
	color: var(--color-text-muted);
	opacity: 1;
}

.search-form__field:focus {
	outline: none;
	background-color: var(--color-surface);
	border-color: var(--color-accent);
	box-shadow: 0 0 0 3px rgba(79, 107, 46, 0.18);
}

.search-form__submit {
	position: absolute;
	right: 1px;
	top: 1px;
	bottom: 1px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	color: var(--color-text-muted);
	cursor: pointer;
	transition: color 0.2s ease;
}

.search-form__submit:hover {
	color: var(--color-primary);
}

.site-title {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	line-height: 1.2;
}

.site-title__main {
	font-family: var(--font-display);
	font-size: clamp(1.0625rem, 2.5vw, 1.3125rem);
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--color-primary-dark);
}

.site-title__tagline {
	font-family: var(--font-sans);
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--color-text-muted);
	margin-top: 0.15rem;
}

.custom-logo-link,
.site-logo-link {
	display: block;
	line-height: 0;
}

.custom-logo,
.site-logo {
	height: clamp(54px, 8vw, 76px);
	width: auto;
	max-width: 100%;
	display: block;
}

.site-logo-link:focus-visible,
.custom-logo-link:focus-visible {
	outline: 3px solid var(--color-accent);
	outline-offset: 4px;
	border-radius: var(--radius-sm);
}

/* Navigation
   ========================================================================== */

.nav-toggle {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0;
	background: none;
	border: 1px solid var(--color-border);
	cursor: pointer;
	border-radius: var(--radius-sm);
}

.nav-toggle__bar {
	display: block;
	width: 20px;
	height: 2px;
	background-color: var(--color-primary-dark);
	border-radius: 2px;
	transition: transform 0.25s ease, opacity 0.25s ease;
	margin-inline: auto;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
	opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.primary-nav {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background-color: var(--color-surface);
	border-bottom: 1px solid var(--color-border);
	box-shadow: var(--shadow-md);
	padding: 0.5rem 0 1rem;
}

.primary-nav.is-open {
	display: block;
}

.primary-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-nav__list li {
	margin: 0;
}

.primary-nav__list a {
	display: block;
	padding: 0.8125rem clamp(1.25rem, 4vw, 2rem);
	font-weight: 500;
	font-size: 1rem;
	text-decoration: none;
	color: var(--color-text);
	border-left: 3px solid transparent;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.primary-nav__list a:hover,
.primary-nav__list .current-menu-item > a,
.primary-nav__list .current_page_item > a,
.primary-nav__list .current-menu-ancestor > a {
	color: var(--color-primary-dark);
	background-color: var(--color-bg-alt);
	border-left-color: var(--color-accent);
}

/* Weight marks the current page only. Changing it on hover re-flows the row,
   so the links shift sideways under the cursor. */
.primary-nav__list .current-menu-item > a,
.primary-nav__list .current_page_item > a,
.primary-nav__list .current-menu-ancestor > a {
	font-weight: 600;
}

/* Submenus — mobile: an accordion inside the dropdown panel
   ========================================================================== */

.primary-nav__list .menu-item-has-children {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.primary-nav__list .menu-item-has-children > a {
	flex: 1 1 auto;
	min-width: 0;
}

.submenu-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 48px;
	align-self: stretch;
	padding: 0;
	background: none;
	border: 0;
	color: var(--color-text-muted);
	cursor: pointer;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.submenu-toggle:hover {
	color: var(--color-primary);
	background-color: var(--color-bg-alt);
}

.submenu-toggle__icon {
	transition: transform 0.25s ease;
}

.menu-item-has-children.is-open > .submenu-toggle .submenu-toggle__icon {
	transform: rotate(180deg);
}

.primary-nav__list .sub-menu {
	flex: 0 0 100%;
	width: 100%;
	display: none;
	list-style: none;
	margin: 0;
	padding: 0;
	background-color: var(--color-bg-alt);
}

.menu-item-has-children.is-open > .sub-menu {
	display: block;
}

.primary-nav__list .sub-menu a {
	padding-left: calc(clamp(1.25rem, 4vw, 2rem) + 1rem);
	font-size: 0.9375rem;
	border-left-width: 3px;
}

/* The underline indicator belongs to top-level items only. */
.primary-nav__list .sub-menu a::after {
	display: none;
}

@media (min-width: 900px) {
	.nav-toggle {
		display: none;
	}

	.primary-nav {
		display: block;
		position: static;
		background: none;
		border: none;
		box-shadow: none;
		padding: 0;
	}

	.primary-nav__list {
		display: flex;
		align-items: stretch;
		gap: 0.125rem;
	}

	.primary-nav__list a {
		position: relative;
		display: flex;
		align-items: center;
		padding: 0.5rem 0.9375rem;
		font-size: 0.9375rem;
		border-left: none;
		border-radius: var(--radius-sm);
		background: none;
	}

	/* Underline indicator instead of a filled pill */
	.primary-nav__list a::after {
		content: '';
		position: absolute;
		left: 0.9375rem;
		right: 0.9375rem;
		bottom: -0.25rem;
		height: 3px;
		border-radius: 2px;
		background-color: transparent;
		transition: background-color 0.2s ease;
	}

	.primary-nav__list a:hover,
	.primary-nav__list .current-menu-item > a,
	.primary-nav__list .current_page_item > a,
	.primary-nav__list .current-menu-ancestor > a {
		background: none;
		color: var(--color-primary-dark);
	}

	.primary-nav__list a:hover::after,
	.primary-nav__list .current-menu-item > a::after,
	.primary-nav__list .current_page_item > a::after,
	.primary-nav__list .current-menu-ancestor > a::after {
		background-color: var(--color-accent);
	}

	/* Submenus — desktop: a panel below the parent item. */
	.primary-nav__list > li {
		position: relative;
	}

	.primary-nav__list .menu-item-has-children {
		flex-wrap: nowrap;
	}

	.primary-nav__list .menu-item-has-children > a {
		padding-right: 0.375rem;
	}

	.submenu-toggle {
		width: auto;
		padding: 0 0.625rem 0 0.125rem;
		align-self: center;
		background: none;
	}

	.submenu-toggle:hover {
		background: none;
		color: var(--color-primary);
	}

	.primary-nav__list .menu-item-has-children:hover > .submenu-toggle .submenu-toggle__icon,
	.primary-nav__list .menu-item-has-children:focus-within > .submenu-toggle .submenu-toggle__icon {
		transform: rotate(180deg);
	}

	.primary-nav__list .sub-menu {
		position: absolute;
		top: calc(100% + 0.5rem);
		left: 0;
		z-index: 20;
		flex: none;
		width: auto;
		min-width: 230px;
		display: block;
		padding: 0.375rem;
		background-color: var(--color-surface);
		border: 1px solid var(--color-border);
		border-radius: var(--radius-md);
		box-shadow: var(--shadow-md);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-6px);
		transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
	}

	/* Bridges the gap between item and panel so the pointer can travel down. */
	.primary-nav__list .sub-menu::before {
		content: '';
		position: absolute;
		bottom: 100%;
		left: 0;
		right: 0;
		height: 0.5rem;
	}

	.primary-nav__list > li:hover > .sub-menu,
	.primary-nav__list > li:focus-within > .sub-menu,
	.primary-nav__list > li.is-open > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	.primary-nav__list .sub-menu a {
		display: block;
		padding: 0.5rem 0.75rem;
		font-size: 0.9375rem;
		border-radius: var(--radius-sm);
		white-space: nowrap;
	}

	.primary-nav__list .sub-menu a:hover,
	.primary-nav__list .sub-menu .current-menu-item > a,
	.primary-nav__list .sub-menu .current_page_item > a {
		background-color: var(--color-bg-alt);
		color: var(--color-primary-dark);
	}
}

/* Hero
   ========================================================================== */

.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(440px, 66vh, 600px);
	background-color: var(--color-primary-dark);
	background-image: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 55%, var(--color-primary-light) 100%);
	background-size: cover;
	background-position: center;
	color: #fff;
	overflow: hidden;
}

/* Scrim: keeps the headline legible over any photograph. Kept as light as the
   contrast allows so the photograph still reads — white on the centre of the
   wash lands around 4:1 over even a blown-out image, clear of the 3:1 the
   headline needs at its size. */
.hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 78% 68% at 50% 50%, rgba(14, 35, 23, 0.58) 0%, rgba(14, 35, 23, 0.48) 42%, rgba(14, 35, 23, 0.24) 72%, rgba(14, 35, 23, 0.1) 100%),
		linear-gradient(180deg, rgba(14, 35, 23, 0.16) 0%, rgba(14, 35, 23, 0) 40%, rgba(14, 35, 23, 0.16) 100%);
	pointer-events: none;
}

.hero > .container {
	position: relative;
	z-index: 2;
	width: 100%;
	padding-block: clamp(3rem, 8vw, 5rem);
}

.hero__content {
	position: relative;
	z-index: 2;
	display: block;
	max-width: 880px;
	margin-inline: auto;
	padding: 0;
	text-align: center;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.hero__title {
	font-size: clamp(2.25rem, 5.4vw, 3.875rem);
	color: #fff;
	margin-bottom: 0;
	line-height: 1.05;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

/* Front page: full-height hero with the header floating over it
   ========================================================================== */

.is-front-page .hero {
	/* Fill the screen below any notice banner. The header's own height is
	   cancelled by the negative margin below, so the total lands on one screen.
	   Both heights are published by main.js; the fallbacks match the defaults. */
	min-height: calc(100vh - var(--above-hero, 0px));
	min-height: calc(100svh - var(--above-hero, 0px));
	margin-top: calc(-1 * var(--header-height-actual, 89px));
}

/* Intro blurb — text left, image right
   ========================================================================== */

.intro-blurb {
	display: grid;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}

@media (min-width: 768px) {
	.intro-blurb {
		grid-template-columns: 1fr 1fr;
	}
}

/* Text column reads first; the media column sits to its right. */
.intro-blurb__content {
	order: 1;
}

.intro-blurb__media {
	order: 2;
}

.intro-blurb__title {
	font-size: clamp(1.875rem, 4vw, 2.75rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.03em;
	margin-bottom: 1.25rem;
}

.intro-blurb__text {
	font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
	font-weight: 400;
	color: var(--color-primary-dark);
	line-height: 1.7;
	margin-bottom: 1.75rem;
	max-width: 54ch;
}

.intro-blurb__cta {
	padding: 0.75rem 1.375rem;
	font-size: 0.9375rem;
	border-radius: var(--radius-md);
}


.intro-blurb__image {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-md);
}

.intro-blurb__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	border-radius: var(--radius-md);
	background: var(--color-bg-alt);
	border: 1px dashed var(--color-border-strong);
	color: var(--color-text-muted);
	font-size: 0.9375rem;
	text-align: center;
	padding: 2rem;
}

/* Intro highlights (legacy grid) */

.intro__grid {
	display: grid;
	gap: 3rem;
	align-items: start;
}

@media (min-width: 900px) {
	.intro__grid {
		grid-template-columns: 1fr 1fr;
		gap: 4rem;
	}
}

.intro__text {
	font-size: 1.125rem;
	color: var(--color-text-muted);
	line-height: 1.75;
	margin-bottom: 1.5rem;
}

.intro__highlights {
	display: grid;
	gap: 1.25rem;
}

/* Highlight cards (legacy) */

.highlight-card {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: 1.5rem;
	box-shadow: var(--shadow-sm);
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.highlight-card:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}

.highlight-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background-color: var(--color-bg-alt);
	border-radius: var(--radius-sm);
	color: var(--color-primary);
	margin-bottom: 1rem;
}

.highlight-card h3 {
	font-family: var(--font-display);
	font-size: 1.0625rem;
	font-weight: 700;
	margin-bottom: 0.4rem;
	color: var(--color-primary-dark);
}

.highlight-card p {
	font-size: 0.9375rem;
	color: var(--color-text-muted);
	margin-bottom: 0;
	line-height: 1.55;
}

/* News Grid
   ========================================================================== */

.news-grid {
	display: grid;
	gap: 1.75rem;
	align-items: stretch;
}

@media (min-width: 640px) {
	.news-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 960px) {
	.news-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.news-grid--archive {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1100px) {
	.news-grid--archive {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Single article: content plus a sidebar
   ========================================================================== */


/* Image and text meet as one continuous block — no border or shadow around
   it, so only the outer corners are rounded. */
.news-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: none;
	border: 0;
	box-shadow: none;
}

/* Anchors the date over the bottom-left corner of the picture. */
.news-card__media {
	position: relative;
}

.news-card__image-link {
	display: block;
	aspect-ratio: 5 / 3;
	overflow: hidden;
	border-radius: var(--radius-md) var(--radius-md) 0 0;
	background-color: var(--color-bg-alt);
}

/* Posts with no featured image fall back to the village illustration. It is
   square and sits on white, so it is fitted rather than cropped to the card's
   landscape slot, on a matching white ground. */
.news-card__image-link--placeholder {
	background-color: var(--color-surface);
}

.news-card__image--placeholder {
	object-fit: contain;
}

.news-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.news-card:hover .news-card__image {
	transform: scale(1.04);
}

.news-card__body {
	display: flex;
	flex-direction: column;
	/* Fills whatever height the row gives the card, so the link below can be
	   pushed to the bottom edge rather than sitting under the title. */
	flex: 1;
	justify-content: space-between;
	padding: clamp(1.25rem, 2.5vw, 1.75rem);
	background-color: var(--color-bg-warm);
	border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.news-card__body .news-card__title {
	margin-top: 0;
}

/* The date fills the bottom-left corner of the picture, flush to both edges,
   on the same warm panel colour as the text block below it. Only the corner
   that cuts into the photograph is rounded. */
.news-card__meta {
	position: absolute;
	left: 0;
	bottom: 0;
	padding: 0.5rem 0.875rem;
	background-color: var(--color-bg-warm);
	border-radius: 0 var(--radius-md) 0 0;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--color-text-muted);
}

.news-card__date {
	letter-spacing: 0.02em;
}

.news-card__title {
	font-family: var(--font-display);
	font-size: 1.375rem;
	margin-bottom: 0.625rem;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.news-card__title a {
	text-decoration: none;
	color: var(--color-primary-dark);
}

.news-card__title a:hover {
	color: var(--color-accent);
	text-decoration: underline;
}

/* Carries the `margin-top: auto` now the excerpt is gone, so the link drops to
   the foot of the panel and a row of cards lines up. */
.news-card__more {
	margin-top: auto;
	padding-top: 1rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--color-accent-dark);
	text-decoration: none;
	text-underline-offset: 3px;
}

.news-card__more:hover,
.news-card:hover .news-card__more {
	color: var(--color-primary-dark);
	text-decoration: underline;
}

/* News listing rows — archive
   ========================================================================== */

.news-list {
	display: flex;
	flex-direction: column;
}

.news-row {
	display: grid;
	gap: 1.25rem;
	padding-block: 2rem;
	border-top: 1px solid var(--color-border);
}

.news-row:first-child {
	border-top: none;
	padding-top: 0;
}

@media (min-width: 640px) {
	.news-row {
		grid-template-columns: 276px minmax(0, 1fr);
		gap: 2rem;
		align-items: start;
	}
}

.news-row__media {
	display: block;
	overflow: hidden;
	border-radius: var(--radius-sm);
	background-color: var(--color-bg-alt);
	aspect-ratio: 3 / 2;
}

.news-row__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.news-row:hover .news-row__image {
	transform: scale(1.03);
}

.news-row__title {
	font-size: clamp(1.25rem, 2.2vw, 1.625rem);
	line-height: 1.25;
	margin-bottom: 0.375rem;
}

.news-row__title a {
	color: var(--color-primary-dark);
	text-decoration: none;
}

.news-row__title a:hover {
	color: var(--color-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.news-row__date {
	display: block;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--color-text-muted);
	margin-bottom: 0.75rem;
}

.news-row__excerpt {
	color: var(--color-text);
	line-height: 1.65;
	margin-bottom: 1.125rem;
	max-width: 68ch;
}

.news-row__more {
	gap: 0.375rem;
}

/* CTA section — a full-width warm band: heading on the left, supporting text
   and the button on the right.
   Deliberately generic so it can front other calls to action.
   ========================================================================== */

.cta-banner {
	background-color: var(--color-bg-warm);
	background-image: url('../background.png');
	background-size: cover;
	background-position: center bottom;
	background-repeat: no-repeat;
	padding-block: var(--section-spacing);
}

.cta-banner__panel {
	display: grid;
	gap: clamp(1.25rem, 3vw, 2rem);
	align-items: start;
}

/* Only split into two columns once each has a usable measure. */
@media (min-width: 768px) {
	.cta-banner__panel {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: clamp(2rem, 5vw, 4.5rem);
	}
}

.cta-banner__title {
	color: var(--color-primary-dark);
	font-size: clamp(1.75rem, 3.6vw, 2.375rem);
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.15;
	margin-bottom: 1rem;
}

.cta-banner__text {
	color: var(--color-primary-dark);
	font-size: clamp(1rem, 1.4vw, 1.125rem);
	font-weight: 500;
	line-height: 1.65;
	margin-bottom: 0;
}

.cta-banner__meta {
	list-style: none;
	margin: 1.5rem 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem 1.75rem;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--color-text);
}

.cta-banner__meta li {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.cta-banner__meta svg {
	flex-shrink: 0;
	color: var(--color-accent);
}

.cta-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: clamp(1.5rem, 2.5vw, 2rem);
}

/* Page Header — the landscape artwork by default, or a flat brand scrim over
   the page's own featured image when one is set.
   ========================================================================== */

.page-header {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	min-height: clamp(220px, 34vh, 340px);
	/* Detail runs along the artwork's lower edge, so it is anchored to the
	   bottom and the heading sits over the sky. */
	background-color: var(--color-bg-warm);
	background-image: url('../background.png');
	background-size: cover;
	background-position: center bottom;
	background-repeat: no-repeat;
	color: var(--color-primary-dark);
	overflow: hidden;
}

/* A featured image is set inline on the element, which overrides the artwork
   above. The plate behind the heading is unchanged, so the type stays dark. */
.page-header--has-image {
	background-color: var(--color-primary-dark);
	background-position: center;
	min-height: clamp(240px, 38vh, 380px);
}

/* The photograph is the point, so the wash over it is light — just enough to
   seat the image and the credit line. Legibility is carried by the panel
   behind the title instead, not by darkening the whole picture. */
.page-header__scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background-color: rgba(14, 35, 23, 0.2);
}

.page-header:not(.page-header--has-image) .page-header__scrim {
	display: none;
}

.page-header__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding-block: clamp(2rem, 4vw, 3rem);
}

/* The heading always sits on its own plate, so it holds against whatever is
   behind it — the landscape artwork by default, a photograph when one is set.
   Only the plate's colour changes between the two. */
.page-header__text {
	max-width: min(28rem, 100%);
	text-align: left;
	padding: clamp(0.5rem, 1vw, 0.75rem) clamp(0.625rem, 1.3vw, 0.875rem);
	background-color: rgba(250, 245, 235, 0.82);
	border-radius: var(--radius-md);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}

.page-header__eyebrow {
	display: block;
	font-family: var(--font-sans);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-accent-dark);
	margin-bottom: 0.4rem;
}

.page-header__title {
	color: inherit;
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	margin-bottom: 0;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

.page-header__subtitle {
	font-size: clamp(0.9375rem, 1.4vw, 1.0625rem);
	font-weight: 400;
	color: var(--color-text-muted);
	margin: 0.5rem 0 0;
	max-width: 36ch;
	line-height: 1.5;
}

.page-header__credit,
.hero__credit {
	position: absolute;
	right: clamp(0.75rem, 2.5vw, 1.5rem);
	bottom: clamp(0.5rem, 1.5vw, 0.875rem);
	z-index: 2;
	margin: 0;
	max-width: min(22rem, calc(100% - 2rem));
	font-family: var(--font-sans);
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.9);
	text-align: right;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

/* Single posts keep a solid brand banner. */
/* Single post header — a warm band, matching the meetings and homepage
   sections rather than the photographic page headers.
   ========================================================================== */

.post-header {
	/* The colour stays as the ground under the artwork, and as the fallback if
	   the image does not load. The landscape's detail sits along its lower
	   edge, so it is anchored to the bottom and the title sits over the sky. */
	background-color: var(--color-bg-warm);
	background-image: url('../background.png');
	background-size: cover;
	background-position: center bottom;
	background-repeat: no-repeat;
	padding-block: clamp(2rem, 4.5vw, 3.25rem);
}

/* Extra depth below the title, so the featured image has band to sit against
   when it is pulled up over the join. */
.post-header--overlap {
	padding-bottom: clamp(4.5rem, 10vw, 7.5rem);
}

.post-header__date {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--color-accent-dark);
	margin-bottom: 0.625rem;
}

.post-header__title {
	max-width: 24ch;
	font-size: clamp(1.875rem, 4.5vw, 3rem);
	line-height: 1.1;
	letter-spacing: -0.025em;
	color: var(--color-primary-dark);
	margin-bottom: 0;
}

.back-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--color-accent-dark);
	text-decoration: none;
	margin-bottom: 1.25rem;
}

.back-link:hover {
	color: var(--color-primary-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.page-content {
	padding-block: var(--section-spacing);
}

/* Entry Content
   ========================================================================== */

.entry-content {
	max-width: var(--container-narrow);
	font-size: 1.0625rem;
	line-height: 1.75;
	color: var(--color-text);
}

.entry-content > * + * {
	margin-top: 1.25rem;
}

.entry-content h2 {
	font-size: clamp(1.5rem, 2.4vw, 1.75rem);
	margin-top: 2.5rem;
}

.entry-content h3 {
	font-size: 1.25rem;
	margin-top: 1.75rem;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.5rem;
}

.entry-content li + li {
	margin-top: 0.35rem;
}

/* Tables
   ========================================================================== */

.entry-content table,
.entry-content .wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

/* Headers read as labels for the column beneath, so they align with the data. */
.entry-content th,
.entry-content .wp-block-table th {
	text-align: left;
	font-family: var(--font-sans);
	font-size: 0.9375rem;
	font-weight: 700;
	/* Headers read as written — no forced capitalisation. */
	text-transform: none;
	letter-spacing: normal;
	color: var(--color-text);
	padding: 0.75rem 1rem;
	border-bottom: 2px solid var(--color-accent);
}

.entry-content td,
.entry-content .wp-block-table td {
	text-align: left;
	padding: 0.8125rem 1rem;
	border-bottom: 1px solid var(--color-border);
	vertical-align: top;
}

.entry-content tbody tr:last-child td {
	border-bottom: none;
}

/* Respect an alignment chosen per-cell in the editor. */
.entry-content th[style*="text-align"],
.entry-content td[style*="text-align"],
.entry-content .has-text-align-center,
.entry-content .has-text-align-right {
	text-align: revert;
}

.entry-content .wp-block-table.is-style-stripes table {
	border-collapse: collapse;
}

.entry-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
	background-color: var(--color-bg-alt);
}

.entry-content .wp-block-table.is-style-stripes td {
	border-bottom: none;
}

/* Wide tables scroll rather than forcing the page sideways. */
.entry-content .wp-block-table,
.entry-content .wp-block-table.is-style-stripes {
	overflow-x: auto;
	margin-inline: 0;
}

.entry-content .wp-block-table figcaption {
	font-size: 0.875rem;
	color: var(--color-text-muted);
	margin-top: 0.75rem;
}

.entry-content blockquote {
	margin: 1.75rem 0;
	padding: 1.25rem 1.5rem;
	border-left: 4px solid var(--color-accent);
	background-color: var(--color-bg-alt);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	font-size: 1.125rem;
	color: var(--color-text);
}

.entry-content blockquote p:last-child {
	margin-bottom: 0;
}

/* Meetings Page
   ========================================================================== */

.meetings-intro {
	max-width: 68ch;
	margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.meetings-intro p:last-child {
	margin-bottom: 0;
}

/* Section intro — eyebrow, heading, and an optional note or badge opposite.
   ========================================================================== */

.section-intro {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	margin-bottom: 1.25rem;
}

.section-intro__title {
	font-size: clamp(1.5rem, 3vw, 1.875rem);
	letter-spacing: -0.02em;
	margin-bottom: 0;
}

/* Icon-led time and location lines, shared by the card and the lists. */
.detail-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--color-text);
}

.detail-list li {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.detail-list svg {
	flex-shrink: 0;
	color: var(--color-accent);
}

/* Date tile — month over day, used on the card and every upcoming row.
   ========================================================================== */

.date-block {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 5rem;
	padding: 0.625rem 0.5rem 0.75rem;
	border: 1px solid var(--color-border-strong);
	border-radius: var(--radius-md);
	background-color: var(--color-bg-warm);
	line-height: 1;
}

.date-block__month {
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--color-accent-dark);
	margin-bottom: 0.375rem;
}

.date-block__day {
	font-family: var(--font-display);
	font-size: 1.875rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--color-primary-dark);
}

/* Next meeting — the one meeting given weight above the tabbed list.
   ========================================================================== */

.next-meeting {
	margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.next-meeting__card {
	overflow: hidden;
	border: 1px solid var(--color-border-strong);
	border-radius: var(--radius-lg);
	background-color: var(--color-surface);
	box-shadow: var(--shadow-sm);
}

.next-meeting__primary {
	padding: clamp(1.5rem, 3.5vw, 2.75rem);
}

.next-meeting__lead {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

@media (min-width: 540px) {
	.next-meeting__lead {
		flex-direction: row;
		align-items: flex-start;
		gap: 1.5rem;
	}
}

.next-meeting__weekday {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--color-text-muted);
	margin-bottom: 0.375rem;
}

.next-meeting__title {
	font-size: clamp(1.5rem, 3vw, 2rem);
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--color-primary-dark);
	margin-bottom: 1.25rem;
}

/* Only rendered when an agenda has actually been attached. Sits in the text
   column, so it lines up with the title and the detail lines above it. */
.next-meeting__actions {
	margin-top: 1.5rem;
}

.next-meeting__card--empty {
	padding: clamp(1.5rem, 3.5vw, 2.75rem);
	color: var(--color-text-muted);
}

.next-meeting__card--empty p {
	margin-bottom: 0;
}

/* Meetings tabs
   ========================================================================== */

.meetings-tabs__list {
	display: flex;
	gap: 0.25rem;
	margin-bottom: 2rem;
	border-bottom: 2px solid var(--color-border);
}

.meetings-tab {
	position: relative;
	padding: 0.75rem 1.125rem;
	margin-bottom: -2px;
	font-family: var(--font-sans);
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--color-text-muted);
	background: none;
	border: 0;
	border-bottom: 2px solid transparent;
	cursor: pointer;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.meetings-tab:hover {
	color: var(--color-primary-dark);
}

.meetings-tab.is-active {
	color: var(--color-primary-dark);
	border-bottom-color: var(--color-accent);
}

.meetings-tab:focus-visible {
	outline: 3px solid var(--color-accent);
	outline-offset: -3px;
	border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.meetings-tabpanel:focus-visible {
	outline: 3px solid var(--color-accent);
	outline-offset: 4px;
	border-radius: var(--radius-sm);
}

/* Year headings
   ========================================================================== */

.meetings-year {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	font-size: 1.0625rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--color-primary-dark);
	margin-bottom: 1rem;
}

.meetings-year::after {
	content: '';
	flex: 1;
	height: 1px;
	background-color: var(--color-border);
}

.meetings-year + .meeting-list {
	margin-bottom: 2.25rem;
}

.meeting-list + .meetings-year {
	margin-top: 0.5rem;
}

.meetings-section {
	margin-top: 3rem;
	padding-top: 2.25rem;
	border-top: 1px solid var(--color-border);
}

.meetings-section--minutes {
	margin-top: 2.5rem;
}

.meetings-section h2 {
	font-size: clamp(1.25rem, 2.2vw, 1.5rem);
	margin-bottom: 0.75rem;
}

.meetings-section__intro {
	color: var(--color-text-muted);
	font-size: 0.9375rem;
	margin-bottom: 1.25rem;
}

.meetings-empty {
	color: var(--color-text-muted);
	font-size: 0.9375rem;
	padding: 1.25rem 1.5rem;
	background: var(--color-bg-alt);
	border-radius: var(--radius-md);
	border: 1px dashed var(--color-border-strong);
}

.meeting-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.meeting-item {
	padding-block: 1.75rem;
	border-top: 1px solid var(--color-border);
}

.meeting-item:first-child {
	border-top: 0;
	padding-top: 0.75rem;
}

.meeting-item--upcoming {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

@media (min-width: 540px) {
	.meeting-item--upcoming {
		flex-direction: row;
		align-items: flex-start;
		gap: 1.5rem;
	}
}

.meeting-item__body {
	min-width: 0;
	flex: 1;
}

/* Holds its width against the body column, and stacks under it on narrow
   screens where the row itself is a column. */
.meeting-item--upcoming .meeting-item__action {
	flex-shrink: 0;
}

.meeting-item__title {
	font-size: 1.25rem;
	letter-spacing: -0.01em;
	margin-bottom: 0.75rem;
}

.meeting-item--minutes {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.meeting-item__date-label {
	display: block;
	font-size: 0.875rem;
	color: var(--color-text-muted);
	margin-bottom: 0.25rem;
}

.meeting-item__pending {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--color-text-muted);
	font-style: italic;
}

/* Contact Page
   ========================================================================== */

.contact-layout {
	display: grid;
	gap: 2.5rem;
}

@media (min-width: 900px) {
	.contact-layout {
		grid-template-columns: 340px 1fr;
		gap: 3rem;
		align-items: start;
	}
}

.contact-info {
	display: grid;
	gap: 1rem;
}

.contact-card {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: 1.375rem 1.5rem;
	box-shadow: var(--shadow-sm);
}

.contact-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	background-color: var(--color-bg-alt);
	border-radius: var(--radius-sm);
	color: var(--color-primary);
	margin-bottom: 0.875rem;
}

.contact-card h3 {
	font-family: var(--font-sans);
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--color-text-muted);
	margin-bottom: 0.4rem;
}

.contact-card p {
	margin-bottom: 0;
	font-weight: 600;
	color: var(--color-text);
}

.contact-card--highlight {
	background: var(--color-bg-alt);
	border-color: var(--color-border-strong);
	border-left: 3px solid var(--color-accent);
}

.contact-card--highlight h3 {
	font-family: var(--font-display);
	color: var(--color-primary-dark);
	text-transform: none;
	letter-spacing: -0.01em;
	font-size: 1.125rem;
	margin-bottom: 0.5rem;
}

.contact-card--highlight p {
	font-weight: 400;
	color: var(--color-text-muted);
	font-size: 0.9375rem;
	line-height: 1.6;
	margin-bottom: 0.875rem;
}

.contact-form-placeholder {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-top: 3px solid var(--color-accent);
	border-radius: var(--radius-md);
	padding: clamp(1.75rem, 4vw, 2.5rem);
	box-shadow: var(--shadow-sm);
}

.contact-form-placeholder h2 {
	font-size: clamp(1.25rem, 2.4vw, 1.625rem);
	margin-bottom: 0.75rem;
}

.contact-form-placeholder p {
	color: var(--color-text-muted);
	max-width: 52ch;
	margin-bottom: 1.5rem;
}

/* Ninja Forms
   Ninja Forms ships structural CSS only and leaves appearance to the theme,
   so these rules give its fields the same treatment as the rest of the site.
   Everything is scoped to .nf-form-cont so other forms are untouched.
   ========================================================================== */

.nf-form-cont {
	max-width: 640px;
}

.nf-form-cont .nf-form-title h3 {
	font-size: clamp(1.25rem, 2.4vw, 1.625rem);
	margin-bottom: 1.25rem;
}

/* Field spacing */
.nf-form-cont .nf-field-container {
	margin-bottom: 1.375rem;
}

.nf-form-cont .field-wrap {
	position: relative;
}

/* Labels */
.nf-form-cont .nf-field-label {
	margin-bottom: 0.4375rem;
}

.nf-form-cont .nf-field-label label,
.nf-form-cont .nf-field-label .nf-label-span {
	display: block;
	font-family: var(--font-sans);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--color-text);
	margin: 0;
}

.nf-form-cont .ninja-forms-req-symbol {
	color: var(--color-accent);
	font-weight: 700;
}

/* Inputs, textareas and selects */
.nf-form-cont input[type="text"].nf-element,
.nf-form-cont input[type="email"].nf-element,
.nf-form-cont input[type="tel"].nf-element,
.nf-form-cont input[type="url"].nf-element,
.nf-form-cont input[type="number"].nf-element,
.nf-form-cont input[type="password"].nf-element,
.nf-form-cont input[type="date"].nf-element,
.nf-form-cont textarea.nf-element,
.nf-form-cont select.nf-element {
	width: 100%;
	padding: 0.6875rem 0.875rem;
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.5;
	color: var(--color-text);
	background-color: var(--color-surface);
	border: 1px solid var(--color-border-strong);
	border-radius: var(--radius-sm);
	box-shadow: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.nf-form-cont select.nf-element {
	/* Room for the native chevron once appearance is reset. */
	padding-right: 2.25rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23545f57' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
}

.nf-form-cont textarea.nf-element {
	min-height: 150px;
	resize: vertical;
}

.nf-form-cont .nf-element::placeholder {
	color: var(--color-text-muted);
	opacity: 1;
}

.nf-form-cont .nf-element:hover {
	border-color: var(--color-text-muted);
}

.nf-form-cont .nf-element:focus {
	outline: none;
	border-color: var(--color-accent);
	box-shadow: 0 0 0 3px rgba(79, 107, 46, 0.18);
}

.nf-form-cont .nf-element:disabled {
	background-color: var(--color-bg-alt);
	color: var(--color-text-muted);
	cursor: not-allowed;
}

/* Checkboxes and radios keep their native control. */
.nf-form-cont input[type="checkbox"].nf-element,
.nf-form-cont input[type="radio"].nf-element {
	width: auto;
	appearance: auto;
	-webkit-appearance: auto;
	accent-color: var(--color-accent);
}

/* Submit button — same treatment as the site's primary button.
   Ninja Forms renders the submit field as <input type="submit"> inside
   .submit-container (older versions used type="button", and the "save
   progress" field still does), so all three are covered. The extra
   .nf-form-content keeps these ahead of the plugin's own opinionated
   stylesheet if it is ever switched on in the Ninja Forms settings. */
.nf-form-cont .nf-form-content .submit-container input,
.nf-form-cont .nf-form-content .submit-container button,
.nf-form-cont .nf-form-content input[type="submit"],
.nf-form-cont .nf-form-content input[type="button"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-height: 46px;
	height: auto;
	padding: 0.8125rem 1.75rem;
	font-family: var(--font-sans);
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0.005em;
	line-height: 1.4;
	color: #fff;
	background-color: var(--color-primary);
	border: 1px solid var(--color-primary);
	border-radius: var(--radius-md);
	box-shadow: 0 1px 2px rgba(14, 35, 23, 0.16), 0 2px 8px rgba(14, 35, 23, 0.12);
	cursor: pointer;
	transition:
		background-color 0.18s ease,
		border-color 0.18s ease,
		box-shadow 0.18s ease,
		transform 0.12s ease;
	-webkit-appearance: none;
	appearance: none;
}

.nf-form-cont .nf-form-content .submit-container input:hover,
.nf-form-cont .nf-form-content .submit-container button:hover,
.nf-form-cont .nf-form-content input[type="submit"]:hover,
.nf-form-cont .nf-form-content input[type="button"]:hover {
	background-color: var(--color-primary-dark);
	border-color: var(--color-primary-dark);
	color: #fff;
	box-shadow: 0 2px 4px rgba(14, 35, 23, 0.2), 0 6px 16px rgba(14, 35, 23, 0.18);
}

.nf-form-cont .nf-form-content .submit-container input:active,
.nf-form-cont .nf-form-content .submit-container button:active,
.nf-form-cont .nf-form-content input[type="submit"]:active,
.nf-form-cont .nf-form-content input[type="button"]:active {
	transform: translateY(1px);
	box-shadow: 0 1px 2px rgba(14, 35, 23, 0.2);
}

.nf-form-cont .nf-form-content .submit-container input:focus-visible,
.nf-form-cont .nf-form-content .submit-container button:focus-visible,
.nf-form-cont .nf-form-content input[type="submit"]:focus-visible,
.nf-form-cont .nf-form-content input[type="button"]:focus-visible {
	outline: 3px solid var(--color-accent);
	outline-offset: 3px;
}

/* While Ninja Forms is submitting it disables the button. */
.nf-form-cont .nf-form-content .submit-container input:disabled,
.nf-form-cont .nf-form-content .submit-container button:disabled,
.nf-form-cont .nf-form-content input[type="submit"]:disabled,
.nf-form-cont .nf-form-content input[type="button"]:disabled {
	opacity: 0.65;
	cursor: wait;
	transform: none;
	box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
	.nf-form-cont .nf-form-content .submit-container input:active,
	.nf-form-cont .nf-form-content .submit-container button:active,
	.nf-form-cont .nf-form-content input[type="submit"]:active,
	.nf-form-cont .nf-form-content input[type="button"]:active {
		transform: none;
	}
}

.nf-form-cont .submit-container {
	margin-top: 1.75rem;
	margin-bottom: 0;
}

/* On narrow screens the button spans the field width, like the inputs above it. */
@media (max-width: 480px) {
	.nf-form-cont .nf-form-content .submit-container input,
	.nf-form-cont .nf-form-content .submit-container button {
		width: 100%;
	}
}

/* Validation */
.nf-form-cont .nf-error .nf-element,
.nf-form-cont .nf-element.nf-error {
	border-color: #a4231f;
	background-color: #fdf6f6;
}

.nf-form-cont .nf-error .nf-element:focus {
	box-shadow: 0 0 0 3px rgba(164, 35, 31, 0.18);
}

.nf-form-cont .nf-error-msg,
.nf-form-cont .ninja-forms-error-msg {
	display: block;
	font-size: 0.875rem;
	font-weight: 500;
	color: #a4231f;
	margin-top: 0.375rem;
}

/* Success / response messages */
.nf-form-cont .nf-response-msg,
.nf-form-cont .nf-form-fields-required {
	font-size: 0.9375rem;
	color: var(--color-text-muted);
}

.nf-form-cont .nf-response-msg p {
	padding: 1rem 1.25rem;
	background-color: var(--color-bg-alt);
	border-left: 3px solid var(--color-accent);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	color: var(--color-text);
}

/* Field description text */
.nf-form-cont .nf-field-description {
	font-size: 0.875rem;
	color: var(--color-text-muted);
	margin-top: 0.375rem;
}

.nf-form-cont .nf-field-description p:last-child {
	margin-bottom: 0;
}

/* Single Post
   ========================================================================== */

/* The article sits alone in the container, so it is centred and held to a
   readable measure rather than filling the full width. Scoped to the element:
   WordPress also puts `single-post` on <body> for single post views, and an
   unscoped rule would constrain the whole page, header and footer included. */
/* Held to a readable measure, but flush left so the copy and the featured
   image line up with the title in the band above. */
article.single-post {
	max-width: var(--container-narrow);
	margin-inline: 0;
}

/* Sits under the title band, ahead of the copy. No fixed ratio — portrait and
   landscape photographs both keep their own shape rather than being cropped. */
/* Cancels the padding at the top of the content area, then lifts the image
   far enough to overlap the band above it. */
.single-post__featured {
	position: relative;
	margin: calc(-1 * (var(--section-spacing) + clamp(2.5rem, 6vw, 4.5rem))) 0 clamp(1.75rem, 4vw, 2.5rem);
}

.single-post__image {
	width: 100%;
	height: auto;
	border-radius: var(--radius-lg);
}

.news-archive__intro,
.child-pages__intro {
	margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* Pagination
   ========================================================================== */

.pagination {
	margin-top: 3rem;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
}

.pagination a,
.pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 1rem;
	font-weight: 600;
	font-size: 0.9375rem;
	text-decoration: none;
	border-radius: var(--radius-sm);
	border: 1px solid var(--color-border-strong);
	background: var(--color-surface);
	color: var(--color-text);
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pagination a:hover {
	background: var(--color-bg-alt);
	border-color: var(--color-primary);
	color: var(--color-primary);
}

.pagination .current {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: #fff;
}

/* Empty State
   ========================================================================== */

/* 404 — one centred block, the code itself carrying the weight.
   ========================================================================== */

.error-404 {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding-block: clamp(2rem, 6vw, 4rem);
}

.error-404__code {
	font-family: var(--font-display);
	font-size: clamp(5rem, 16vw, 9rem);
	/* 700 is the heaviest Archivo weight the theme loads — 800 would be
	   synthesised by the browser and stop looking like the site's type. */
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 1;
	color: var(--color-primary-dark);
	margin: 0;
}

.error-404__rule {
	display: block;
	width: 4rem;
	height: 4px;
	border-radius: 999px;
	background-color: var(--color-accent);
	margin-block: clamp(1.25rem, 3vw, 1.75rem);
}

.error-404__title {
	font-size: clamp(1.5rem, 4vw, 1.875rem);
	color: var(--color-primary-dark);
	margin-bottom: 1rem;
}

.error-404__text {
	max-width: 34rem;
	color: var(--color-text-muted);
	margin-bottom: 0;
}

.error-404__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
	margin-top: clamp(1.5rem, 3vw, 2rem);
}

.empty-state {
	text-align: center;
	padding: 3.5rem 2rem;
	background: var(--color-bg-alt);
	border: 1px dashed var(--color-border-strong);
	border-radius: var(--radius-md);
	color: var(--color-text-muted);
}

.empty-state h2 {
	font-size: clamp(1.25rem, 2.4vw, 1.5rem);
	margin-bottom: 0.5rem;
}

.empty-state .btn {
	margin-top: 1.25rem;
}

.empty-state__search {
	max-width: 420px;
	margin: 1.5rem auto 0;
	text-align: left;
}

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

.site-footer {
	background-color: var(--color-bg-alt);
	color: var(--color-text-muted);
	font-size: 0.9375rem;
}

.site-footer a {
	color: var(--color-primary);
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--color-primary-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.site-footer__bar {
	display: grid;
	grid-template-columns: 1fr;
	align-items: center;
	justify-items: center;
	gap: 1.5rem;
	padding-block: clamp(1.75rem, 4vw, 2.5rem);
	text-align: center;
}

@media (min-width: 760px) {
	.site-footer__bar {
		grid-template-columns: 1fr auto 1fr;
		justify-items: stretch;
		text-align: left;
		gap: 1.25rem;
	}

	.site-footer__brand {
		justify-self: start;
	}

	.site-footer__nav-main {
		justify-self: center;
	}

	.site-footer__social {
		justify-self: end;
	}
}

.site-footer__logo {
	height: 52px;
	width: auto;
	max-width: 100%;
	display: block;
}

.site-footer__brand-name {
	font-family: var(--font-sans);
	font-size: 1rem;
	font-weight: 700;
	color: var(--color-primary-dark);
}

.site-footer a.site-footer__brand-name:hover {
	text-decoration: none;
	color: var(--color-primary);
}

.site-footer__menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.75rem 1.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.9375rem;
	font-weight: 500;
}

.site-footer__social {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 1.5rem;
}

.site-footer__facebook {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--color-primary);
	line-height: 0;
	transition: color 0.2s ease;
}

.site-footer a.site-footer__facebook:hover {
	color: var(--color-primary-dark);
	text-decoration: none;
}

.site-footer__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	padding-block: 1.25rem;
	border-top: 1px solid rgba(14, 35, 23, 0.18);
	text-align: center;
}

@media (min-width: 760px) {
	.site-footer__inner {
		flex-direction: row;
		justify-content: space-between;
		text-align: left;
	}
}

.site-footer__copy {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--color-text-muted);
}

.site-footer__credit {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--color-text-muted);
}

/* Only the studio name is the link, carrying a little more weight than the
   words introducing it. */
.site-footer__credit-link {
	font-weight: 600;
}

.footer-widget__title {
	font-family: var(--font-sans);
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--color-primary);
	margin-bottom: 1rem;
}

/* WordPress Core
   ========================================================================== */

.alignwide {
	max-width: 100%;
}

.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.wp-block-image img {
	border-radius: var(--radius-sm);
}

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

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
