/**
 * Northline - front-end stylesheet.
 *
 * Colour, type and spacing tokens are generated by theme.json as
 * --wp--preset--* custom properties and consumed here, so the block editor's
 * colour and type pickers stay in sync with the templates.
 *
 * Contents
 *   1.  Tokens
 *   2.  Base & reset
 *   3.  Accessibility helpers
 *   4.  Layout primitives
 *   5.  Site header & navigation
 *   6.  Page headers
 *   7.  Content flow & block alignment
 *   8.  Insights grid & cards
 *   9.  Article furniture
 *   10. Forms
 *   11. Site footer
 *   12. Motion & print
 */

/* -------------------------------------------------------------------------
   1. Tokens
   ---------------------------------------------------------------------- */

:root {
	--nl-content: 46rem;
	--nl-wide: 78rem;
	--nl-gutter: clamp(1.25rem, 5vw, 2.75rem);

	--nl-radius-sm: 3px;
	--nl-radius: 6px;
	--nl-radius-lg: 12px;

	--nl-hairline: 1px solid var(--wp--preset--color--line, #dbe3ec);
	--nl-hairline-dark: 1px solid rgba(255, 255, 255, 0.14);

	--nl-shadow-soft: 0 1px 2px rgba(11, 22, 34, 0.04), 0 8px 24px -12px rgba(11, 22, 34, 0.18);
	--nl-shadow-lift: 0 2px 4px rgba(11, 22, 34, 0.05), 0 18px 40px -18px rgba(11, 22, 34, 0.3);

	--nl-header-height: 4.75rem;
	--nl-transition: 180ms cubic-bezier(0.2, 0, 0.2, 1);
	--nl-tracking-eyebrow: 0.14em;
}

/* -------------------------------------------------------------------------
   2. Base & reset
   ---------------------------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--nl-header-height) + 1rem);
}

body {
	margin: 0;
	min-height: 100vh;
	background-color: var(--wp--preset--color--base, #ffffff);
	color: var(--wp--preset--color--slate, #16283a);
	font-family: var(--wp--preset--font-family--sans, ui-sans-serif, system-ui, sans-serif);
	font-size: var(--wp--preset--font-size--medium, 1.0625rem);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

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

img {
	display: block;
}

figure {
	margin: 0;
}

a {
	color: inherit;
}

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--primary, #f2a01d);
	outline-offset: 3px;
	border-radius: 2px;
}

/* -------------------------------------------------------------------------
   3. Accessibility helpers
   ---------------------------------------------------------------------- */

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

.skip-link:focus {
	clip-path: none;
	height: auto;
	margin: 0;
	width: auto;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 999;
	padding: 0.75rem 1.25rem;
	background: var(--wp--preset--color--ink, #0b1622);
	color: #ffffff;
	font-size: var(--wp--preset--font-size--small, 0.9375rem);
	font-weight: 700;
	text-decoration: none;
	border-radius: var(--nl-radius-sm);
}

/* -------------------------------------------------------------------------
   4. Layout primitives
   ---------------------------------------------------------------------- */

.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	overflow-x: clip;
}

.site-main {
	flex: 1 0 auto;
}

.nl-button {
	display: inline-block;
	padding: 0.9em 1.6em;
	background: var(--wp--preset--color--primary, #f2a01d);
	color: var(--wp--preset--color--ink, #0b1622);
	font-size: var(--wp--preset--font-size--small, 0.9375rem);
	font-weight: 700;
	letter-spacing: 0.02em;
	text-decoration: none;
	border-radius: var(--nl-radius-sm);
	transition: background var(--nl-transition), color var(--nl-transition);
}

.nl-button:hover,
.nl-button:focus {
	background: var(--wp--preset--color--primary-deep, #c67c07);
	color: #ffffff;
}

/* -------------------------------------------------------------------------
   5. Site header & navigation
   ---------------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.94);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: var(--nl-hairline);
}

.site-header__inner {
	position: relative;
	display: flex;
	align-items: center;
	gap: clamp(1rem, 3vw, 2.5rem);
	width: min(100% - (var(--nl-gutter) * 2), var(--nl-wide));
	margin-inline: auto;
	min-height: var(--nl-header-height);
}

/* Branding */

.site-branding {
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin-right: auto;
	min-width: 0;
}

.site-branding__logo img,
.custom-logo {
	max-height: 2.75rem;
	width: auto;
}

.site-title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.1;
	color: var(--wp--preset--color--ink, #0b1622);
}

.site-title a {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	text-decoration: none;
	color: inherit;
}

/* Decorative mark: a rule with a live end - the "north line". */
.site-title__mark {
	position: relative;
	display: inline-block;
	flex: none;
	width: 1.5rem;
	height: 2px;
	background: currentColor;
}

.site-title__mark::after {
	content: "";
	position: absolute;
	right: -0.1rem;
	top: 50%;
	width: 0.5rem;
	height: 0.5rem;
	transform: translateY(-50%) rotate(45deg);
	background: var(--wp--preset--color--primary, #f2a01d);
}

.site-description {
	margin: 0.15rem 0 0;
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--steel, #5b6e81);
}

/* Primary menu */

.primary-menu,
.footer-menu,
.legal-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-menu {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 2vw, 1.9rem);
}

.primary-menu a {
	display: block;
	padding: 0.4rem 0;
	font-size: var(--wp--preset--font-size--small, 0.9375rem);
	font-weight: 600;
	text-decoration: none;
	color: var(--wp--preset--color--slate, #16283a);
	transition: color var(--nl-transition);
}

.primary-menu a:hover,
.primary-menu a:focus {
	color: var(--wp--preset--color--ink, #0b1622);
}

.primary-menu > li {
	position: relative;
}

.primary-menu > li > a::after {
	content: "";
	display: block;
	height: 2px;
	margin-top: 0.3rem;
	background: var(--wp--preset--color--primary, #f2a01d);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--nl-transition);
}

.primary-menu > li:hover > a::after,
.primary-menu > li:focus-within > a::after,
.primary-menu > .current-menu-item > a::after,
.primary-menu > .current-menu-ancestor > a::after,
.primary-menu > .current_page_item > a::after,
.primary-menu > .current_page_parent > a::after {
	transform: scaleX(1);
}

/* A menu item given the CSS class "nl-menu-cta" renders as a button. */
.primary-menu > li.nl-menu-cta > a {
	padding: 0.65em 1.25em;
	background: var(--wp--preset--color--ink, #0b1622);
	color: #ffffff;
	border-radius: var(--nl-radius-sm);
	transition: background var(--nl-transition);
}

.primary-menu > li.nl-menu-cta > a::after {
	display: none;
}

.primary-menu > li.nl-menu-cta > a:hover,
.primary-menu > li.nl-menu-cta > a:focus {
	background: var(--wp--preset--color--primary-deep, #c67c07);
	color: #ffffff;
}

/* Sub-menus */

.primary-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0.5rem;
	min-width: 14rem;
	background: #ffffff;
	border: var(--nl-hairline);
	border-radius: var(--nl-radius);
	box-shadow: var(--nl-shadow-lift);
}

@media (min-width: 62em) {
	.primary-menu .sub-menu {
		position: absolute;
		top: 100%;
		left: -0.75rem;
		opacity: 0;
		visibility: hidden;
		transform: translateY(6px);
		transition: opacity var(--nl-transition), transform var(--nl-transition), visibility var(--nl-transition);
	}

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

	.primary-menu .sub-menu a {
		padding: 0.5rem 0.75rem;
		border-radius: var(--nl-radius-sm);
	}

	.primary-menu .sub-menu a:hover,
	.primary-menu .sub-menu a:focus {
		background: var(--wp--preset--color--surface, #f2f6f9);
	}
}

/* Mobile toggle & drawer */

.nav-toggle {
	display: none;
	align-items: center;
	gap: 0.55rem;
	margin-left: auto;
	padding: 0.6rem 0.9rem;
	background: transparent;
	border: var(--nl-hairline);
	border-radius: var(--nl-radius-sm);
	color: var(--wp--preset--color--ink, #0b1622);
	font: inherit;
	font-size: var(--wp--preset--font-size--x-small, 0.8125rem);
	font-weight: 700;
	letter-spacing: var(--nl-tracking-eyebrow);
	text-transform: uppercase;
	cursor: pointer;
}

.nav-toggle__bars {
	position: relative;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 1.05rem;
	height: 2px;
	background: currentColor;
	transition: transform var(--nl-transition), background var(--nl-transition);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.nav-toggle__bars::before {
	top: -6px;
}

.nav-toggle__bars::after {
	top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
	background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
	transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
	transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 61.99em) {
	.nav-toggle {
		display: inline-flex;
	}

	.primary-navigation {
		position: absolute;
		top: 100%;
		left: calc(var(--nl-gutter) * -1);
		right: calc(var(--nl-gutter) * -1);
		display: none;
		padding: var(--nl-gutter);
		background: #ffffff;
		border-bottom: var(--nl-hairline);
		box-shadow: var(--nl-shadow-lift);
		max-height: calc(100vh - var(--nl-header-height));
		overflow-y: auto;
	}

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

	.primary-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.primary-menu > li + li {
		border-top: var(--nl-hairline);
	}

	.primary-menu a {
		padding: 0.9rem 0;
		font-size: 1.0625rem;
	}

	.primary-menu > li > a::after {
		display: none;
	}

	.primary-menu > li.nl-menu-cta {
		margin-top: 1rem;
		border-top: 0;
	}

	.primary-menu > li.nl-menu-cta > a {
		text-align: center;
	}

	.primary-menu .sub-menu {
		margin: 0 0 0.75rem 0.75rem;
		padding: 0;
		border: 0;
		border-left: var(--nl-hairline);
		border-radius: 0;
		box-shadow: none;
	}

	.primary-menu .sub-menu a {
		padding: 0.6rem 0 0.6rem 0.9rem;
		font-size: var(--wp--preset--font-size--small, 0.9375rem);
	}
}

/* -------------------------------------------------------------------------
   6. Page headers
   ---------------------------------------------------------------------- */

/*
 * A solid band rather than a fade to white: the header has to read as its own
 * section, because on most pages the block below it is also white.
 */
.page-header {
	padding-block: clamp(2.75rem, 7vw, 5.5rem) clamp(1.75rem, 4vw, 3rem);
	background: var(--wp--preset--color--surface, #f2f6f9);
	border-bottom: var(--nl-hairline);
}

/*
 * When the content opens with a Surface band of its own — as the Services page
 * does — the two tinted blocks stack into one very long grey zone that only
 * ends partway down the page. The page header keeps its tint, since that is
 * consistent across every page; it is the repeated band directly beneath it
 * that drops to the base colour so the page alternates again.
 *
 * Only the first section is affected, and only directly under a page header:
 * the same Surface style used anywhere else on the page, or on the front page,
 * renders normally.
 */
.page-header + .entry-content > .is-style-nl-section-surface:first-child {
	background-color: var(--wp--preset--color--base, #ffffff);
}

/*
 * Page headers sit on the site's spine — the same 78rem shell as the site
 * header, the footer and every block section — so the title lines up with the
 * content beneath it. The reading measure is applied to the text itself, not
 * to the container, for the same reason as .is-style-nl-intro above.
 */
.page-header__inner {
	width: min(100% - (var(--nl-gutter) * 2), var(--nl-wide));
	margin-inline: auto;
}

.page-header__eyebrow {
	margin: 0 0 0.9rem;
	font-size: var(--wp--preset--font-size--x-small, 0.8125rem);
	font-weight: 700;
	letter-spacing: var(--nl-tracking-eyebrow);
	text-transform: uppercase;
	color: var(--wp--preset--color--steel, #5b6e81);
}

.page-header__eyebrow a {
	text-decoration: none;
}

.page-header__eyebrow a:hover {
	text-decoration: underline;
}

.page-header__title {
	margin: 0;
	max-width: 46rem;
	font-size: var(--wp--preset--font-size--xx-large, 2.75rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.028em;
	color: var(--wp--preset--color--ink, #0b1622);
	text-wrap: balance;
}

.page-header__standfirst {
	margin: 1.1rem 0 0;
	max-width: 42rem;
	font-size: var(--wp--preset--font-size--large, 1.375rem);
	line-height: 1.5;
	color: var(--wp--preset--color--steel, #5b6e81);
	text-wrap: pretty;
}

.page-header__search {
	margin-top: 1.75rem;
	max-width: 30rem;
}

.page-header__media {
	width: min(100% - (var(--nl-gutter) * 2), var(--nl-wide));
	margin: clamp(2rem, 5vw, 3.5rem) auto 0;
}

.page-header__media img {
	width: 100%;
	border-radius: var(--nl-radius-lg);
	box-shadow: var(--nl-shadow-soft);
}

.page-header__media figcaption {
	margin-top: 0.75rem;
	font-size: var(--wp--preset--font-size--x-small, 0.8125rem);
	color: var(--wp--preset--color--steel, #5b6e81);
}

.page-header--has-media {
	padding-bottom: 0;
	border-bottom: 0;
}

/*
 * Single articles are the exception: their body copy sits in the centred 46rem
 * reading column, so the header follows it there instead of the wide spine.
 */
.page-header--article .page-header__inner {
	width: min(100% - (var(--nl-gutter) * 2), var(--nl-content));
}

.page-header--article .page-header__title {
	max-width: 22ch;
}

/* -------------------------------------------------------------------------
   7. Content flow & block alignment
   ---------------------------------------------------------------------- */

/*
 * A named-line grid gives blocks their alignment without wrapper markup:
 * ordinary blocks sit in the content track, .alignwide spans the wide track,
 * and .alignfull bleeds to the viewport edges.
 */
.entry-content {
	display: grid;
	grid-template-columns:
		[full-start] minmax(var(--nl-gutter), 1fr)
		[wide-start] minmax(0, calc((var(--nl-wide) - var(--nl-content)) / 2))
		[content-start] min(100% - (var(--nl-gutter) * 2), var(--nl-content)) [content-end]
		minmax(0, calc((var(--nl-wide) - var(--nl-content)) / 2)) [wide-end]
		minmax(var(--nl-gutter), 1fr) [full-end];
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.entry-content > * {
	grid-column: content;
	min-width: 0;
}

.entry-content > .alignwide {
	grid-column: wide;
}

.entry-content > .alignfull {
	grid-column: full;
	width: 100%;
	max-width: none;
}

.entry-content--canvas {
	padding-block: 0;
}

/*
 * A full-bleed section carries its own generous top padding. When one opens the
 * content — as it does on every page built from the section patterns — the
 * flow padding above it is dead space between the page header and the first
 * band, so drop it. Pages that open with ordinary or wide blocks keep it,
 * because those blocks bring no padding of their own.
 */
.entry-content:has(> .alignfull:first-child) {
	padding-block-start: 0;
}

/*
 * The Insights intro sits between the page header and the article grid, both of
 * which are on the site's 78rem spine, so it follows them there rather than
 * dropping into the centred reading column. Blocks the editor has explicitly
 * aligned keep their own placement.
 */
.entry-content--intro {
	padding-block: clamp(1.75rem, 4vw, 2.75rem) clamp(1.5rem, 4vw, 3rem);
}

.entry-content--intro > :not(.alignwide):not(.alignfull) {
	grid-column: wide;
	max-width: var(--nl-content);
}

/* Vertical rhythm for top-level blocks. */
.entry-content > * + * {
	margin-block-start: var(--wp--preset--spacing--40, 1.5rem);
}

.entry-content > :is(h2, h3, h4) + * {
	margin-block-start: var(--wp--preset--spacing--30, 1rem);
}

.entry-content > * + :is(h2, h3, h4) {
	margin-block-start: var(--wp--preset--spacing--50, 2.5rem);
}

/* Stacked full-bleed sections butt against each other; their own padding
   supplies the rhythm. Mixed content keeps the normal block gap. */
.entry-content > .alignfull + .alignfull {
	margin-block-start: 0;
}

/* -------------------------------------------------------------------------
   8. Insights grid & cards
   ---------------------------------------------------------------------- */

.content-area {
	width: min(100% - (var(--nl-gutter) * 2), var(--nl-wide));
	margin-inline: auto;
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.post-grid {
	display: grid;
	gap: clamp(1.5rem, 3vw, 2.5rem);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
}

.post-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: var(--nl-hairline);
	border-radius: var(--nl-radius-lg);
	overflow: hidden;
	transition: transform var(--nl-transition), box-shadow var(--nl-transition), border-color var(--nl-transition);
}

.post-card:hover,
.post-card:focus-within {
	transform: translateY(-3px);
	border-color: transparent;
	box-shadow: var(--nl-shadow-lift);
}

.post-card .entry-thumbnail {
	aspect-ratio: 10 / 7;
	background: var(--wp--preset--color--surface, #f2f6f9);
	overflow: hidden;
}

.post-card .entry-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 400ms cubic-bezier(0.2, 0, 0.2, 1);
}

.post-card:hover .entry-thumbnail img {
	transform: scale(1.03);
}

.post-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0.7rem;
	padding: clamp(1.25rem, 2.5vw, 1.75rem);
}

.post-card__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--large, 1.375rem);
	line-height: 1.25;
	letter-spacing: -0.018em;
	text-wrap: balance;
}

.post-card__title a {
	text-decoration: none;
	color: var(--wp--preset--color--ink, #0b1622);
}

/* Whole card is the click target; the link keeps the accessible name. */
.post-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.post-card__excerpt {
	margin: 0;
	font-size: var(--wp--preset--font-size--small, 0.9375rem);
	color: var(--wp--preset--color--steel, #5b6e81);
}

.post-card__more {
	margin-top: auto;
	padding-top: 0.4rem;
	font-size: var(--wp--preset--font-size--x-small, 0.8125rem);
	font-weight: 700;
	letter-spacing: var(--nl-tracking-eyebrow);
	text-transform: uppercase;
	color: var(--wp--preset--color--primary-deep, #c67c07);
}

.post-card__more::after {
	content: " \2192";
}

.no-results {
	max-width: var(--nl-content);
	padding-block: clamp(2rem, 5vw, 4rem);
}

.no-results__title {
	margin-top: 0;
}

.content-area__actions {
	margin-top: 0;
}

/* -------------------------------------------------------------------------
   9. Article furniture
   ---------------------------------------------------------------------- */

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	font-size: var(--wp--preset--font-size--x-small, 0.8125rem);
	color: var(--wp--preset--color--steel, #5b6e81);
}

.entry-meta--header {
	margin-bottom: 1rem;
}

.entry-meta--byline {
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: var(--nl-hairline);
}

.entry-meta__category {
	display: inline-block;
	padding: 0.25rem 0.6rem;
	background: var(--wp--preset--color--surface, #f2f6f9);
	border-radius: 999px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--wp--preset--color--slate, #16283a);
	transition: background var(--nl-transition), color var(--nl-transition);
}

.entry-meta__category:hover {
	background: var(--wp--preset--color--primary, #f2a01d);
	color: var(--wp--preset--color--ink, #0b1622);
}

.entry-footer,
.post-navigation,
.pagination,
.comments-area {
	width: min(100% - (var(--nl-gutter) * 2), var(--nl-content));
	margin-inline: auto;
}

.entry-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding-block: 1.5rem;
	border-top: var(--nl-hairline);
	font-size: var(--wp--preset--font-size--x-small, 0.8125rem);
}

.entry-tags a {
	padding: 0.25rem 0.65rem;
	border: var(--nl-hairline);
	border-radius: 999px;
	text-decoration: none;
	color: var(--wp--preset--color--steel, #5b6e81);
}

.entry-tags a:hover {
	border-color: var(--wp--preset--color--ink, #0b1622);
	color: var(--wp--preset--color--ink, #0b1622);
}

.post-navigation {
	padding-block: clamp(1.5rem, 4vw, 3rem);
}

.post-navigation .nav-links {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.post-navigation .nav-links a {
	display: block;
	padding: 1.25rem;
	border: var(--nl-hairline);
	border-radius: var(--nl-radius);
	text-decoration: none;
	transition: border-color var(--nl-transition), background var(--nl-transition);
}

.post-navigation .nav-links a:hover {
	border-color: transparent;
	background: var(--wp--preset--color--surface, #f2f6f9);
}

.post-navigation__label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: var(--wp--preset--font-size--x-small, 0.8125rem);
	font-weight: 700;
	letter-spacing: var(--nl-tracking-eyebrow);
	text-transform: uppercase;
	color: var(--wp--preset--color--steel, #5b6e81);
}

.post-navigation__title {
	display: block;
	font-weight: 700;
	line-height: 1.3;
	color: var(--wp--preset--color--ink, #0b1622);
}

.pagination {
	padding-top: clamp(2rem, 4vw, 3rem);
}

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

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.6rem;
	height: 2.6rem;
	padding-inline: 0.75rem;
	border: var(--nl-hairline);
	border-radius: var(--nl-radius-sm);
	font-size: var(--wp--preset--font-size--small, 0.9375rem);
	font-weight: 600;
	text-decoration: none;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
	background: var(--wp--preset--color--ink, #0b1622);
	border-color: var(--wp--preset--color--ink, #0b1622);
	color: #ffffff;
}

.page-links {
	display: flex;
	gap: 0.5rem;
	padding-top: 1.5rem;
	font-size: var(--wp--preset--font-size--small, 0.9375rem);
}

/* Comments */

.comments-area {
	padding-block: clamp(2rem, 5vw, 3.5rem);
	border-top: var(--nl-hairline);
}

.comments-area__title {
	margin-top: 0;
	font-size: var(--wp--preset--font-size--large, 1.375rem);
}

.comment-list,
.comment-list .children {
	list-style: none;
	padding: 0;
}

.comment-list {
	margin: 0;
}

.comment-list > li {
	padding-block: 1.5rem;
	border-top: var(--nl-hairline);
}

.comment-list .children {
	margin-left: clamp(1rem, 4vw, 2.5rem);
}

.comment-meta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: var(--wp--preset--font-size--x-small, 0.8125rem);
}

.comment-list img.avatar {
	border-radius: 50%;
}

/* -------------------------------------------------------------------------
   10. Forms
   ---------------------------------------------------------------------- */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="search"],
input[type="number"],
textarea,
select {
	width: 100%;
	padding: 0.75rem 0.9rem;
	background: #ffffff;
	border: var(--nl-hairline);
	border-radius: var(--nl-radius-sm);
	color: inherit;
	font: inherit;
	font-size: var(--wp--preset--font-size--small, 0.9375rem);
	transition: border-color var(--nl-transition), box-shadow var(--nl-transition);
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--wp--preset--color--primary, #f2a01d);
	box-shadow: 0 0 0 3px rgba(242, 160, 29, 0.18);
	outline: none;
}

.search-form {
	display: flex;
	gap: 0.5rem;
}

.search-form__label {
	display: contents;
}

.search-form__field {
	flex: 1;
}

.search-form__submit,
.comment-form .submit {
	padding: 0.75rem 1.35rem;
	background: var(--wp--preset--color--ink, #0b1622);
	border: 0;
	border-radius: var(--nl-radius-sm);
	color: #ffffff;
	font: inherit;
	font-size: var(--wp--preset--font-size--small, 0.9375rem);
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	transition: background var(--nl-transition);
}

.search-form__submit:hover,
.comment-form .submit:hover {
	background: var(--wp--preset--color--primary-deep, #c67c07);
}

.comment-form label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: var(--wp--preset--font-size--x-small, 0.8125rem);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--steel, #5b6e81);
}

.comment-form p {
	margin-block: 1rem;
}

/* -------------------------------------------------------------------------
   11. Site footer
   ---------------------------------------------------------------------- */

.site-footer {
	flex: none;
	margin-top: auto;
	background: var(--wp--preset--color--ink, #0b1622);
	color: rgba(255, 255, 255, 0.72);
	font-size: var(--wp--preset--font-size--small, 0.9375rem);
}

.site-footer__inner {
	width: min(100% - (var(--nl-gutter) * 2), var(--nl-wide));
	margin-inline: auto;
	padding-block: clamp(2.75rem, 6vw, 4.5rem) 1.75rem;
}

.site-footer a {
	color: #ffffff;
	text-decoration: none;
	transition: color var(--nl-transition);
}

.site-footer a:hover,
.site-footer a:focus {
	color: var(--wp--preset--color--primary, #f2a01d);
	text-decoration: underline;
}

.site-footer__columns {
	display: grid;
	gap: clamp(1.75rem, 4vw, 3rem);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	padding-bottom: clamp(2rem, 4vw, 3rem);
}

.site-footer .widget__title {
	margin: 0 0 0.9rem;
	font-size: var(--wp--preset--font-size--x-small, 0.8125rem);
	font-weight: 700;
	letter-spacing: var(--nl-tracking-eyebrow);
	text-transform: uppercase;
	color: var(--wp--preset--color--primary, #f2a01d);
}

.site-footer .widget p {
	margin-block: 0 0.75rem;
}

.site-footer .widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer .widget li + li {
	margin-top: 0.5rem;
}

.footer-navigation {
	padding-block: 1.75rem;
	border-top: var(--nl-hairline-dark);
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.75rem;
	font-weight: 600;
}

.site-footer__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	padding-top: 1.75rem;
	border-top: var(--nl-hairline-dark);
	font-size: var(--wp--preset--font-size--x-small, 0.8125rem);
}

.site-footer__copyright {
	margin: 0;
}

.legal-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
}

/* -------------------------------------------------------------------------
   12. Motion & print
   ---------------------------------------------------------------------- */

@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;
	}
}

@media print {
	.site-header,
	.site-footer,
	.post-navigation,
	.comments-area,
	.pagination,
	.nav-toggle {
		display: none !important;
	}

	.entry-content {
		display: block;
	}
}
