/* ==========================================================================
   Gatehouse — main stylesheet
   Structure:
     1. Design tokens
     2. Base / reset
     3. Accessibility helpers
     4. Layout
     5. Buttons
     5b. Section helpers
     6. Header & branding
     7. Primary navigation
     8. Page banner (internal pages)
     9. Homepage: hero
     9b. Homepage: logo ticker
     9c. Homepage: intro (two columns + feature list)
    10. Content & blocks
    11. Lists, pagination, forms
    12. Footer
    13. Reduced motion
   ========================================================================== */

/* 1. Design tokens
   ========================================================================== */
:root {
	/* Colors come from theme.json so the editor and front end always match. */
	--color-green:      var(--wp--preset--color--green, #38d688);
	--color-dark:       var(--wp--preset--color--dark-gray, #2e2e2e);
	--color-light-gray: var(--wp--preset--color--light-gray, #f5f5f5);
	--color-white:      var(--wp--preset--color--white, #ffffff);

	/* #38d688 is too light for text on white (1.9:1). This darker green
	   passes WCAG AA (4.8:1) for green text/links on light backgrounds. */
	--color-green-text: #1b8250;
	--color-border:     #e2e5e8;

	/* Focus ring color — switched to white inside dark areas. */
	--focus-color: var(--color-dark);

	--font-body:    var(--wp--preset--font-family--body, montserrat, sans-serif);
	--font-heading: var(--wp--preset--font-family--heading, arboria, sans-serif);

	--content-width: 760px;
	--wide-width:    1200px;
	--gutter:        clamp(1rem, 4vw, 2rem);
	--space-s:       0.75rem;
	--space-m:       1.5rem;
	--space-l:       clamp(2rem, 6vw, 4rem);

	--header-height: 4.75rem;
	--admin-bar:     0px;
}

/* WordPress admin bar (logged-in users) pushes the header down. */
.admin-bar {
	--admin-bar: 32px;
}

@media (max-width: 782px) {
	.admin-bar {
		--admin-bar: 46px;
	}
}

/* 2. Base / reset
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--color-dark);
	background: var(--color-white);
}

strong,
b {
	font-weight: 700;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	font-weight: 500;
	line-height: 1.2;
	margin: 0 0 var(--space-s);
}

h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: 1.375rem; }

p, ul, ol, figure, blockquote {
	margin: 0 0 var(--space-m);
}

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

a {
	color: var(--color-green-text);
	text-underline-offset: 0.15em;
}

a:hover {
	text-decoration-thickness: 2px;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

/* 3. Accessibility helpers
   ========================================================================== */

/* WordPress-standard visually hidden text (still read by screen readers). */
.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* Skip link appears when focused with the keyboard. */
.skip-link:focus {
	clip-path: none;
	height: auto;
	width: auto;
	margin: 0;
	position: fixed;
	top: calc(0.5rem + var(--admin-bar));
	left: 0.5rem;
	z-index: 1000;
	padding: 0.75rem 1rem;
	background: var(--color-white);
	color: var(--color-dark);
	font-weight: 700;
	text-decoration: none;
	outline: 3px solid var(--color-dark);
}

/* Clear, consistent keyboard focus (mouse clicks don't show it). */
:focus-visible {
	outline: 3px solid var(--focus-color);
	outline-offset: 2px;
}

/* Main receives focus from the skip link; no visible outline needed there. */
.site-main:focus {
	outline: none;
}

/* 4. Layout
   ========================================================================== */
.container {
	width: 100%;
	max-width: calc(var(--wide-width) + (var(--gutter) * 2));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.site-main {
	display: block;
	padding-bottom: var(--space-l);
	min-height: 60vh;
}

/* 5. Buttons
   ========================================================================== */
/* Dark text on green: 7.2:1 contrast (white on this green is only 1.9:1). */
.button,
.wp-element-button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.75rem 1.5rem;
	font-family: var(--font-heading);
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	color: var(--color-dark);
	background: var(--color-green);
	border: 2px solid var(--color-green);
	border-radius: 999px;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.wp-element-button:hover,
.wp-block-button__link:hover {
	color: var(--color-dark);
	background: var(--color-white);
	border-color: var(--color-green);
}

/* 5b. Section helpers (reused across homepage sections)
   ========================================================================== */
.section {
	padding-block: clamp(3rem, 7vw, 5.5rem);
}

/* Small green line above or below a section heading.
   Uses the darker, text-safe green on light backgrounds (4.8:1). */
.eyebrow {
	margin: 0 0 0.5rem;
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: 1rem;
	line-height: 1.3;
	color: var(--color-green-text);
}

.section-title {
	margin: 0;
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	line-height: 1.25;
	color: var(--color-dark);
}

.section-heading {
	margin: 0 0 var(--space-m);
}

/* 6. Header & branding
   Sits on top of the hero / page banner.
   ========================================================================== */
.site-header {
	--focus-color: var(--color-white);
	position: absolute;
	top: var(--admin-bar);
	left: 0;
	right: 0;
	z-index: 50;
	color: var(--color-white);
	border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-s);
	min-height: var(--header-height);
	padding-inline: var(--gutter);
}

.site-branding {
	flex-shrink: 0;
}

.site-title {
	font-family: var(--font-heading);
	font-size: 1.375rem;
	font-weight: 700;
	color: var(--color-white);
	text-decoration: none;
}

.custom-logo-link {
	display: block;
}

.custom-logo {
	width: clamp(150px, 12vw, 214px);
	height: auto;
}

/* 7. Primary navigation
   Mobile-first. Without JavaScript (.no-js) the menu is simply shown,
   so navigation always works.
   ========================================================================== */
.primary-nav .menu,
.primary-nav .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-nav .menu-item {
	position: relative;
}

.primary-nav a {
	display: block;
	color: var(--color-white);
	text-decoration: none;
}

/* Top-level links */
.primary-nav .menu > .menu-item > a {
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: 0.9375rem;
	letter-spacing: 0.08em;
}

.primary-nav .menu > .menu-item > a:hover,
.primary-nav .menu > .current-menu-item > a,
.primary-nav .menu > .current-menu-ancestor > a {
	color: var(--color-green);
}

/* "Request a Demo" style button.
   Add the class "menu-button" in Appearance → Menus → (menu item) → CSS Classes. */
.primary-nav .menu > .menu-button > a,
.primary-nav .menu > .menu-button.current-menu-item > a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.95rem 1.5rem;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 0.875rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-dark);
	background: var(--color-green);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.primary-nav .menu > .menu-button > a:hover {
	color: var(--color-dark);
	background: var(--color-white);
}

/* Mobile menu toggle button */
.menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 44px; /* WCAG target size */
	padding: 0.5rem 0.875rem;
	font-family: var(--font-heading);
	font-weight: 500;
	letter-spacing: 0.08em;
	color: var(--color-white);
	background: rgba(0, 0, 0, 0.25);
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: 4px;
	cursor: pointer;
}

.menu-toggle__icon,
.menu-toggle__icon::before,
.menu-toggle__icon::after {
	display: block;
	width: 1.25rem;
	height: 2px;
	background: currentColor;
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.menu-toggle__icon {
	position: relative;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
	content: "";
	position: absolute;
	left: 0;
}

.menu-toggle__icon::before { top: -6px; }
.menu-toggle__icon::after  { top: 6px; }

/* Icon becomes an "X" when the menu is open */
.menu-toggle[aria-expanded="true"] .menu-toggle__icon {
	background: transparent;
}
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before {
	transform: translateY(6px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after {
	transform: translateY(-6px) rotate(-45deg);
}

/* Submenu toggle buttons (added by navigation.js) */
.submenu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0;
	color: var(--color-white);
	background: transparent;
	border: 0;
	cursor: pointer;
}

.submenu-toggle__icon {
	width: 0.5rem;
	height: 0.5rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	transition: transform 0.2s ease;
}

.submenu-toggle[aria-expanded="true"] .submenu-toggle__icon {
	transform: rotate(-135deg) translateY(-2px);
}

/* ---- Mobile / tablet (under 1024px) ---------------------------------- */
@media (max-width: 63.99em) {
	/* No JS: menu shown as a full-width list under the logo. */
	.no-js .site-header__inner {
		flex-wrap: wrap;
	}

	.no-js .primary-nav {
		width: 100%;
		padding-bottom: var(--space-s);
	}

	/* JS: hidden until the Menu button opens it as a panel under the header. */
	.js .primary-nav .menu {
		display: none;
	}

	.js .primary-nav.is-open .menu {
		display: block;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		max-height: calc(100vh - var(--header-height) - var(--admin-bar));
		overflow-y: auto;
		padding: var(--space-s) var(--gutter) var(--space-m);
		background: var(--color-dark);
		box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
	}

	.primary-nav .menu > .menu-item > a {
		padding: 0.875rem 0;
	}

	.primary-nav .menu > .menu-item:not(.menu-button) {
		border-bottom: 1px solid rgba(255, 255, 255, 0.15);
	}

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

	.primary-nav .menu-item-has-children > a {
		flex: 1;
	}

	.primary-nav .sub-menu {
		width: 100%;
		padding: 0 0 0.5rem 1rem;
	}

	.primary-nav .sub-menu a {
		padding: 0.6rem 0;
		font-size: 0.9375rem;
	}

	.primary-nav .sub-menu a:hover,
	.primary-nav .sub-menu .current-menu-item > a {
		color: var(--color-green);
	}

	.js .primary-nav .sub-menu {
		display: none;
	}

	.js .primary-nav .is-open > .sub-menu {
		display: block;
	}

	.primary-nav .menu > .menu-button {
		margin-top: var(--space-m);
	}

	.primary-nav .menu > .menu-button > a {
		width: 100%;
	}
}

/* ---- Desktop (1024px and up) ------------------------------------------ */
@media (min-width: 64em) {
	/* Button sits flush with the right edge, as in the design. */
	.site-header__inner {
		padding-right: 0;
	}

	.menu-toggle {
		display: none;
	}

	.primary-nav .menu {
		display: flex;
		align-items: center;
	}

	.primary-nav .menu > .menu-item > a {
		padding: 1.75rem clamp(0.75rem, 1.6vw, 1.6rem);
	}

	.primary-nav .menu > .menu-button {
		margin-left: clamp(0.25rem, 1vw, 1rem);
	}

	.primary-nav .menu > .menu-button > a {
		padding: 0.95rem 1.5rem;
	}

	/* Dropdown panel: white box with a pointer, items with green rules. */
	.primary-nav .sub-menu {
		display: none;
		position: absolute;
		top: calc(100% - 0.75rem);
		left: clamp(0.25rem, 1vw, 1rem);
		z-index: 100;
		min-width: 12.5rem;
		padding: 0.75rem 1.25rem;
		background: var(--color-white);
		border-radius: 4px;
		box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
	}

	.primary-nav .sub-menu::before {
		content: "";
		position: absolute;
		top: -8px;
		left: 1.75rem;
		border: 8px solid transparent;
		border-top: 0;
		border-bottom-color: var(--color-white);
	}

	.primary-nav .sub-menu .menu-item {
		border-bottom: 1px solid var(--color-green);
	}

	.primary-nav .sub-menu a {
		padding: 0.7rem 0;
		font-size: 0.8125rem;
		color: var(--color-dark);
	}

	.primary-nav .sub-menu a:hover,
	.primary-nav .sub-menu .current-menu-item > a {
		color: var(--color-green-text);
	}

	/* Focus ring inside the white dropdown must be dark. */
	.primary-nav .sub-menu {
		--focus-color: var(--color-dark);
	}

	/* Open by keyboard / button click... */
	.primary-nav .is-open > .sub-menu {
		display: block;
	}

	/* ...or by mouse hover. Escape dismisses it (WCAG 1.4.13). */
	@media (hover: hover) {
		.primary-nav .menu-item-has-children:hover:not(.is-dismissed) > .sub-menu {
			display: block;
		}

		/* Mouse users get hover, so the submenu button stays out of sight
		   (matching the design) until a keyboard user tabs to it. */
		.primary-nav .menu > .menu-item-has-children > .submenu-toggle {
			position: absolute;
			top: 50%;
			right: -0.75rem;
			min-width: 24px;
			min-height: 24px;
			transform: translateY(-50%);
			opacity: 0;
		}

		.primary-nav .menu > .menu-item-has-children > .submenu-toggle:focus-visible,
		.primary-nav .menu > .menu-item-has-children > .submenu-toggle[aria-expanded="true"] {
			opacity: 1;
		}
	}

	/* Touch screens at desktop width (e.g. iPad landscape): show the arrow. */
	@media (hover: none) {
		.primary-nav .menu-item-has-children {
			display: flex;
			align-items: center;
		}

		.primary-nav .menu > .menu-item-has-children > a {
			padding-right: 0;
		}
	}

	/* Without JS, keyboard users can still reach submenus. */
	.no-js .primary-nav .menu-item-has-children:focus-within > .sub-menu {
		display: block;
	}
}

/* 8. Page banner (internal pages)
   Featured image, full width, 500px tall. Dark placeholder if none is set.
   ========================================================================== */
.page-banner {
	position: relative;
	height: 500px;
	margin-bottom: var(--space-l);
	overflow: hidden;
	background: var(--color-dark);
}

.page-banner__image {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

/* Darkens the top so the white header reads clearly on bright photos. */
.page-banner::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0, rgba(0, 0, 0, 0) 40%);
	pointer-events: none;
}

.page-banner--placeholder::after {
	display: none;
}

/* Shorter on phones so content isn't pushed far down the screen. */
@media (max-width: 37.5em) {
	.page-banner {
		height: 320px;
	}
}

/* 9. Homepage: hero
   ========================================================================== */
.home-hero {
	--focus-color: var(--color-white);
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: flex-end;
	min-height: clamp(600px, 54vw, 100svh);
	padding-top: calc(var(--header-height) + var(--admin-bar) + var(--space-l));
	padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
	overflow: hidden;
	color: var(--color-white);
	background: var(--color-dark);
}

.home-hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.home-hero__image,
.home-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

/* Video fades in only once it's playing — the image shows until then. */
.home-hero__video {
	opacity: 0;
	transition: opacity 0.6s ease;
}

.is-video-playing .home-hero__video {
	opacity: 1;
}

/* Shading for text and header legibility, whatever the image or video. */
.home-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0, rgba(0, 0, 0, 0) 25%),
		linear-gradient(to top right, rgba(0, 0, 0, 0.6) 0, rgba(0, 0, 0, 0) 60%);
	pointer-events: none;
}

.home-hero__title {
	margin: 0 0 1.25rem;
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: clamp(2.5rem, 5.4vw, 5rem);
	line-height: 1.08;
	color: var(--color-white);
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.home-hero__line,
.home-hero__highlight {
	display: block;
}

.home-hero__highlight {
	color: var(--color-green);
}

.home-hero__subtitle {
	margin: 0;
	font-family: var(--font-body);
	font-weight: 700;
	font-size: clamp(1rem, 1.3vw, 1.25rem);
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

/* Pause / play button */
.home-hero__toggle {
	position: absolute;
	right: var(--gutter);
	bottom: var(--gutter);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	color: var(--color-white);
	background: rgba(0, 0, 0, 0.45);
	border: 2px solid rgba(255, 255, 255, 0.85);
	border-radius: 50%;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.home-hero__toggle:hover {
	background: rgba(0, 0, 0, 0.7);
}

.home-hero__toggle[hidden] {
	display: none;
}

.home-hero__icon--play,
.home-hero__toggle.is-paused .home-hero__icon--pause {
	display: none;
}

.home-hero__toggle.is-paused .home-hero__icon--play {
	display: block;
}

/* 9b. Homepage: logo ticker
   Green strip of logos scrolling continuously. Logos are 150 × 80 slots,
   each logo centered in its slot. The pointer triangle sits on the hero.
   ========================================================================== */
.logo-ticker {
	--ticker-gap: clamp(2.5rem, 5vw, 5rem);
	position: relative;
	z-index: 1; /* keeps the triangle above the hero */
	padding-block: clamp(1.25rem, 2.5vw, 1.75rem);
	background: var(--color-green);
}

/* Small green triangle at the bottom center of the hero */
.logo-ticker::before {
	content: "";
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	border-style: solid;
	border-color: transparent;
	border-width: 0 50px 44px; /* 100px wide × 44px tall, per the design */
	border-bottom-color: var(--color-green);
}

.logo-ticker__viewport {
	overflow: hidden;
}

.logo-ticker__track {
	display: flex;
	width: max-content;
	animation: gatehouse-ticker var(--ticker-duration, 36s) linear infinite;
}

/* Pause on hover, or with the pause button */
.logo-ticker__viewport:hover .logo-ticker__track,
.logo-ticker.is-paused .logo-ticker__track {
	animation-play-state: paused;
}

.logo-ticker__list {
	display: flex;
	align-items: center;
	gap: var(--ticker-gap);
	margin: 0;
	padding: 0 var(--ticker-gap) 0 0; /* trailing gap keeps both copies identical in width */
	list-style: none;
}

.logo-ticker__item {
	display: flex;
	flex: 0 0 150px;
	align-items: center;
	justify-content: center;
	height: 80px;
}

.logo-ticker__logo {
	width: auto;
	height: auto;
	max-width: 150px;
	max-height: 80px;
	object-fit: contain;
}

@keyframes gatehouse-ticker {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

/* Pause / play button */
.logo-ticker__toggle {
	position: absolute;
	top: 50%;
	right: 0.75rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	color: var(--color-white);
	background: var(--color-dark);
	border: 0;
	border-radius: 50%;
	transform: translateY(-50%);
	opacity: 0.75;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.logo-ticker__toggle:hover,
.logo-ticker__toggle:focus-visible {
	opacity: 1;
}

.logo-ticker__toggle[hidden] {
	display: none;
}

.logo-ticker__icon--play,
.logo-ticker.is-paused .logo-ticker__icon--pause {
	display: none;
}

.logo-ticker.is-paused .logo-ticker__icon--play {
	display: block;
}

/* Smaller logos and gaps on phones */
@media (max-width: 37.5em) {
	.logo-ticker__item {
		flex-basis: 120px;
		height: 64px;
	}

	.logo-ticker__logo {
		max-width: 120px;
		max-height: 64px;
	}
}

/* Reduce motion: no scrolling. Show each logo once, in a centered row. */
@media (prefers-reduced-motion: reduce) {
	.logo-ticker__track {
		width: auto;
		justify-content: center;
		animation: none;
	}

	.logo-ticker__list {
		flex-wrap: wrap;
		justify-content: center;
		row-gap: var(--space-m);
		padding: 0 var(--gutter);
	}

	.logo-ticker__list--clone,
	.logo-ticker__item[aria-hidden="true"],
	.logo-ticker__toggle {
		display: none !important;
	}
}

/* 9c. Homepage: intro (two columns + feature list)
   Side by side on larger screens, stacked on tablets and phones.
   ========================================================================== */
.home-intro__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-l);
}

@media (min-width: 56em) {
	.home-intro__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: clamp(3rem, 8vw, 8rem);
		align-items: start;
	}
}

.home-intro__content {
	font-size: 0.9375rem;
	line-height: 1.75;
}

.home-intro__content > :last-child {
	margin-bottom: 0;
}

.home-intro__heading .section-title {
	margin-bottom: clamp(1.25rem, 3vw, 2.25rem);
}

/* Feature list with check icons */
.feature-list {
	display: grid;
	gap: clamp(1.5rem, 3vw, 2rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Lines the list up with the heading beside it on desktop */
@media (min-width: 56em) {
	.home-intro .feature-list {
		padding-top: 1.75rem;
	}
}

.feature-list__item {
	display: grid;
	grid-template-columns: 1.5rem minmax(0, 1fr);
	column-gap: 1.25rem;
}

/* Decorative icon (the text carries the meaning), so it matches the
   design's bright green. */
.feature-list__icon {
	grid-row: span 2;
	font-size: 1.5rem;
	line-height: 1;
	color: var(--color-green);
}

.feature-list__title {
	margin: 0 0 0.25rem;
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: 1.0625rem;
	line-height: 1.35;
	color: var(--color-dark);
}

.feature-list__text {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.65;
}

/* 10. Content & blocks
   ========================================================================== */
.entry-header,
.page-header {
	max-width: var(--content-width);
	margin: 0 auto var(--space-m);
}

.entry-meta {
	color: #5f6670;
	font-size: 0.875rem;
}

.entry-thumbnail {
	max-width: var(--wide-width);
	margin: 0 auto var(--space-l);
}

/* Block editor content: normal width, with wide and full-width options. */
.entry-content > * {
	max-width: var(--content-width);
	margin-inline: auto;
}

.entry-content > .alignwide {
	max-width: var(--wide-width);
}

.entry-content > .alignfull {
	max-width: none;
	width: calc(100% + (var(--gutter) * 2));
	margin-inline: calc(var(--gutter) * -1);
}

.alignleft {
	float: left;
	margin: 0 var(--space-m) var(--space-s) 0;
}

.alignright {
	float: right;
	margin: 0 0 var(--space-s) var(--space-m);
}

.aligncenter {
	margin-inline: auto;
}

.wp-caption-text,
figcaption {
	font-size: 0.875rem;
	color: #5f6670;
	margin-top: 0.5rem;
}

/* 11. Lists, pagination, forms
   ========================================================================== */
.post-list {
	max-width: var(--content-width);
	margin: 0 auto;
}

.post-summary {
	padding-block: var(--space-m);
	border-bottom: 1px solid var(--color-border);
}

.post-summary__title a {
	color: var(--color-dark);
	text-decoration: none;
}

.post-summary__title a:hover {
	color: var(--color-green-text);
	text-decoration: underline;
}

.pagination,
.post-navigation {
	max-width: var(--content-width);
	margin: var(--space-l) auto 0;
}

.pagination .nav-links,
.post-navigation .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: space-between;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 0.75rem;
	border: 1px solid var(--color-border);
	text-decoration: none;
}

.page-numbers.current {
	background: var(--color-green);
	border-color: var(--color-green);
	color: var(--color-dark);
	font-weight: 700;
}

.post-navigation .nav-label {
	display: block;
	font-size: 0.875rem;
	color: #5f6670;
}

.search-form {
	display: flex;
	gap: 0.5rem;
	max-width: 32rem;
	margin-block: var(--space-m);
}

.search-form__field {
	flex: 1;
	min-height: 44px;
	padding: 0.5rem 0.75rem;
	border: 1px solid #767676;
	border-radius: 4px;
}

.search-form__submit {
	min-height: 44px;
	padding: 0.5rem 1.25rem;
	font-family: var(--font-heading);
	font-weight: 700;
	color: var(--color-dark);
	background: var(--color-green);
	border: 0;
	border-radius: 4px;
	cursor: pointer;
}

/* 12. Footer
   (Styled to the design in a later step.)
   ========================================================================== */
.site-footer {
	border-top: 1px solid var(--color-border);
	padding-block: var(--space-l);
	font-size: 0.875rem;
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.25rem;
	list-style: none;
	margin: 0 0 var(--space-m);
	padding: 0;
}

.footer-menu a {
	display: inline-block;
	padding-block: 0.5rem;
	color: var(--color-dark);
}

.site-footer p {
	margin: 0 0 0.25rem;
	color: #5f6670;
}

/* 13. Reduced motion
   ========================================================================== */
@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;
	}
}
