/**
 * Page chrome: utility bar, header, search dialog, content shell, footer and
 * the standard article/archive styles.
 *
 * Front-end only — none of this exists inside the editor canvas.
 */

/* ===========================================================================
 * Page shell
 * ======================================================================== */

body {
	/*
	 * `clip` rather than `hidden`: it contains any full-bleed section without
	 * creating a scroll container, which would break the sticky header.
	 */
	overflow-x: clip;
}

.fcx-page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.fcx-main { flex: 1; }

body.fcx-search-open,
body.fcx-nav-open {
	overflow: hidden;
}

/* ===========================================================================
 * Utility bar
 * ======================================================================== */

.fcx-utility {
	background: var(--fcx-green-950);
	color: var(--fcx-on-dark-muted);
	font-size: var(--fcx-text-micro);
	letter-spacing: 0.04em;
}

.fcx-utility__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: var(--fcx-utility-height);
	padding-block: 0.45rem;
}

.fcx-utility__note {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 0.55rem;
}

.fcx-utility__note::before {
	content: "";
	width: 6px;
	height: 6px;
	flex: none;
	border-radius: 50%;
	background: var(--fcx-lime);
}

.fcx-utility__contact {
	display: flex;
	gap: 1.5rem;
}

.fcx-utility__contact a {
	color: var(--fcx-on-dark-muted);
	text-decoration: none;
}

.fcx-utility__contact a:hover,
.fcx-utility__contact a:focus-visible { color: var(--fcx-lime); }

@media (max-width: 720px) {
	.fcx-utility__contact { display: none; }
}

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

.fcx-header {
	position: sticky;
	top: 0;
	z-index: 60;
	border-bottom: 1px solid var(--fcx-rule);
	background: var(--fcx-white);
	color: var(--fcx-black);
	transition: box-shadow var(--fcx-duration) var(--fcx-ease);
}

.fcx-header.is-stuck { box-shadow: 0 1px 16px rgba(5, 23, 12, 0.08); }

.fcx-header__inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	min-height: var(--fcx-header-height);
	padding-block: 0.6rem;
}

/* ---- Brand ---- */

.fcx-brand {
	display: inline-flex;
	align-items: center;
	flex: none;
	color: inherit;
	text-decoration: none;
}

.fcx-brand img {
	width: auto;
	max-height: 2.5rem;
	object-fit: contain;
}

.fcx-brand__name {
	font-family: var(--fcx-font-display);
	font-size: 1.1rem;
}

/* ---- Navigation ---- */

.fcx-nav {
	display: flex;
	align-items: center;
	margin-left: auto;
}

.fcx-nav__list {
	display: flex;
	align-items: center;
	gap: clamp(0.9rem, 1.9vw, 1.9rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

/*
 * These two are scoped to the primary nav rather than written against
 * `.fcx-nav__item-text` alone: the same span is emitted for a disabled menu
 * item wherever a menu appears, and the footer's menus are on a dark ground
 * where the header's near-black would be invisible.
 */
.fcx-nav .fcx-nav__list a,
.fcx-nav .fcx-nav__list .fcx-nav__item-text {
	display: inline-block;
	padding: 0.4rem 0;
	color: var(--fcx-black);
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

.fcx-nav__list a:hover,
.fcx-nav__list a:focus-visible { color: var(--fcx-green-500); }

/*
 * The current-page marker has to reach the span as well as the anchor: a parent
 * that opens a dropdown is not a link, but it is still the section you are in.
 */
.fcx-nav__list .current-menu-item > a,
.fcx-nav__list .current_page_item > a,
.fcx-nav__list .current-menu-ancestor > a,
.fcx-nav__list .current-menu-item > .fcx-nav__item-text,
.fcx-nav__list .current_page_item > .fcx-nav__item-text,
.fcx-nav__list .current-menu-ancestor > .fcx-nav__item-text {
	color: var(--fcx-green-500);
	font-weight: 600;
}

/* Menu item rendered as text rather than a link: same shape, nothing to click. */
.fcx-nav__item-text {
	color: inherit;
	text-decoration: none;
	cursor: default;
}

/*
 * A top-level item that opens a dropdown looks identical to one that navigates,
 * so it says so with a caret. Applied to whichever element the item rendered
 * as, since the same item is a link or a span depending on the settings.
 */
.fcx-nav__list > .menu-item-has-children > a,
.fcx-nav__list > .menu-item-has-children > .fcx-nav__item-text {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.fcx-nav__list > .menu-item-has-children > a::after,
.fcx-nav__list > .menu-item-has-children > .fcx-nav__item-text::after {
	content: "";
	width: 0.42em;
	height: 0.42em;
	flex: none;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-0.14em) rotate(45deg);
	transition: transform var(--fcx-duration) var(--fcx-ease);
	opacity: 0.55;
}

.fcx-nav__list > .menu-item-has-children:hover > a::after,
.fcx-nav__list > .menu-item-has-children:hover > .fcx-nav__item-text::after,
.fcx-nav__list > .menu-item-has-children:focus-within > a::after,
.fcx-nav__list > .menu-item-has-children:focus-within > .fcx-nav__item-text::after {
	transform: translateY(0.02em) rotate(-135deg);
	opacity: 1;
}

/*
 * The parent is focusable so its dropdown can be reached from the keyboard, and
 * it has to show that focus as clearly as a link would.
 */
.fcx-nav__item-text--parent:focus-visible {
	outline: 2px solid var(--fcx-green-500);
	outline-offset: 3px;
}

/* ---- Sub-menus ---- */

.fcx-nav__list li { position: relative; }

.fcx-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 20;
	display: grid;
	gap: 0.1rem;
	min-width: 15rem;
	margin: 0;
	padding: 0.5rem;
	border: 1px solid var(--fcx-rule);
	background: var(--fcx-white);
	box-shadow: var(--fcx-shadow-md);
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity var(--fcx-duration) var(--fcx-ease),
		transform var(--fcx-duration) var(--fcx-ease),
		visibility var(--fcx-duration);
}

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

.fcx-nav__list .sub-menu a,
.fcx-nav__list .sub-menu .fcx-nav__item-text {
	display: block;
	padding: 0.5rem 0.7rem;
	font-size: 0.875rem;
	white-space: normal;
}

.fcx-nav__list .sub-menu a:hover { background: var(--fcx-cream); }

/* ---- Header actions ---- */

.fcx-header__actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex: none;
}

/*
 * The search trigger takes the slot the reference gives to a Get in Touch
 * button, per the brief.
 */
.fcx-search-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.6rem;
	padding: 0.5rem 1.1rem;
	border: 1px solid var(--fcx-rule-strong);
	border-radius: var(--fcx-r-pill);
	background: transparent;
	color: var(--fcx-black);
	font-family: var(--fcx-font-sans);
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	transition: background-color var(--fcx-duration) var(--fcx-ease),
		border-color var(--fcx-duration) var(--fcx-ease),
		color var(--fcx-duration) var(--fcx-ease);
}

.fcx-search-toggle:hover,
.fcx-search-toggle[aria-expanded="true"] {
	background: var(--fcx-green-500);
	border-color: var(--fcx-green-500);
	color: var(--fcx-white);
}

/* ---- Mobile toggle ---- */

.fcx-nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 2.6rem;
	height: 2.6rem;
	padding: 0;
	border: 1px solid var(--fcx-rule-strong);
	border-radius: var(--fcx-r-sm);
	background: transparent;
	color: var(--fcx-black);
	cursor: pointer;
}

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

.fcx-nav-toggle__bars { position: relative; }

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

.fcx-nav-toggle[aria-expanded="true"] .fcx-nav-toggle__bars { background: transparent; }
.fcx-nav-toggle[aria-expanded="true"] .fcx-nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.fcx-nav-toggle[aria-expanded="true"] .fcx-nav-toggle__bars::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 1080px) {
	.fcx-nav-toggle { display: inline-flex; }
	.fcx-header__inner { position: relative; }
	.fcx-search-toggle__label { display: none; }
	.fcx-search-toggle { padding: 0.5rem; width: 2.6rem; justify-content: center; }

	.fcx-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		margin: 0;
		padding: 0.5rem var(--fcx-gutter) 1.25rem;
		border-bottom: 1px solid var(--fcx-rule);
		background: var(--fcx-white);
		box-shadow: var(--fcx-shadow-md);
		max-height: calc(100vh - var(--fcx-header-height));
		overflow-y: auto;
	}

	.fcx-nav.is-open { display: flex; }

	.fcx-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.fcx-nav__list > li { border-bottom: 1px solid var(--fcx-rule); }

	.fcx-nav__list a,
	.fcx-nav__item-text { display: block; padding: 0.85rem 0; font-size: 1rem; }

	.fcx-nav__list .sub-menu {
		position: static;
		display: block;
		min-width: 0;
		padding: 0 0 0.5rem 1rem;
		border: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}
}

/* ===========================================================================
 * Search dialog
 * ======================================================================== */

.fcx-searchbox {
	position: fixed;
	inset: 0;
	z-index: 90;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: clamp(1rem, 8vh, 6rem) var(--fcx-gutter);
	background: rgba(5, 23, 12, 0.55);
	opacity: 0;
	transition: opacity var(--fcx-duration) var(--fcx-ease);
}

.fcx-searchbox.is-open { opacity: 1; }

.fcx-searchbox__panel {
	position: relative;
	width: 100%;
	max-width: 44rem;
	padding: clamp(1.75rem, 4vw, 2.75rem);
	background: var(--fcx-white);
	box-shadow: var(--fcx-shadow-lg);
	transform: translateY(-8px);
	transition: transform var(--fcx-duration) var(--fcx-ease);
}

.fcx-searchbox.is-open .fcx-searchbox__panel { transform: none; }

.fcx-searchbox__label {
	display: block;
	margin-bottom: 1rem;
	color: var(--fcx-ink);
	font-family: var(--fcx-font-display);
	font-size: var(--fcx-text-2xl);
}

.fcx-searchbox__row {
	display: flex;
	gap: 0.6rem;
}

.fcx-searchbox__input {
	flex: 1;
	min-width: 0;
	min-height: 52px;
	padding: 0.75rem 1rem;
	border: 1px solid var(--fcx-rule-strong);
	border-radius: var(--fcx-r-sm);
	background: var(--fcx-white);
	color: var(--fcx-ink);
	font-family: inherit;
	font-size: var(--fcx-text-lg);
}

.fcx-searchbox__submit { flex: none; min-height: 52px; }

.fcx-searchbox__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--fcx-muted);
	cursor: pointer;
}

.fcx-searchbox__close:hover { color: var(--fcx-ink); }

@media (max-width: 560px) {
	.fcx-searchbox__row { flex-direction: column; }
	.fcx-searchbox__submit { width: 100%; }
}

/* ===========================================================================
 * Content shell
 * ======================================================================== */

/*
 * Blocks sit in the content column by default. A block set to Full width in the
 * editor breaks out to the viewport edge, which is what the hero, the coloured
 * bands and the closing banner all do.
 */
.fcx-content > * {
	width: calc(100% - var(--fcx-gutter) * 2);
	max-width: var(--fcx-container);
	margin-inline: auto;
}

.fcx-content > .alignwide { max-width: 1440px; }
.fcx-content > .alignfull { width: 100%; max-width: none; }

.fcx-content > * + *:not(.alignfull) { margin-block-start: var(--fcx-section); }
.fcx-content > :last-child:not(.alignfull) { margin-block-end: var(--fcx-section); }

/* ---- Coloured bands ---- */

.wp-block-group[class*="is-style-fcx-band-"] {
	position: relative;
	padding-block: var(--fcx-section);
}

/*
 * The gutter is taken out of the box rather than added as padding: a child that
 * draws a border or a background - the programme grid, for one - would
 * otherwise paint a frame a gutter wider than the heading above it.
 */
.wp-block-group[class*="is-style-fcx-band-"] > * {
	width: calc(100% - var(--fcx-gutter) * 2);
	max-width: calc(var(--fcx-container) - var(--fcx-gutter) * 2);
	margin-inline: auto;
}

.wp-block-group[class*="is-style-fcx-band-"] > * + * {
	margin-block-start: clamp(2rem, 4vw, 3rem);
}

.is-style-fcx-band-paper { background: var(--fcx-paper); }
.is-style-fcx-band-cream { background: var(--fcx-cream); }

/*
 * A band over a photograph.
 *
 * The picture is set on the block itself, from the media library, so it can be
 * changed without touching this file. What the style adds is the wash that
 * makes the words survive it: without one, legibility would depend on which
 * photograph somebody happened to choose, which is not a thing to leave to
 * chance on a page of running text.
 *
 * The wash is heavier in the middle, where the reading happens, and lighter at
 * the edges, where the picture is allowed to show.
 */
.is-style-fcx-band-photo {
	position: relative;
	background-color: var(--fcx-paper);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	isolation: isolate;
}

.is-style-fcx-band-photo::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(
			180deg,
			rgb(from var(--fcx-paper) r g b / 0.97) 0%,
			rgb(from var(--fcx-paper) r g b / 0.86) 22%,
			rgb(from var(--fcx-paper) r g b / 0.86) 78%,
			rgb(from var(--fcx-paper) r g b / 0.97) 100%
		);
}

/* Where relative colours are not understood, a flat wash of the same weight. */
@supports not (color: rgb(from white r g b / 1)) {
	.is-style-fcx-band-photo::before {
		background: rgba(250, 249, 245, 0.9);
	}
}

/*
 * The cards stay solid. Reading a paragraph through a photograph is the thing
 * the wash exists to prevent, and a card is where the paragraphs are.
 *
 * Elsewhere the theme separates these with rules rather than boxes, which is
 * why the first card in a row carries no left padding and no left border. Over
 * a photograph each card needs its own opaque field, so that treatment is
 * undone here and every card is boxed on the same terms - otherwise the first
 * in each row reads as a mistake rather than a decision.
 */
.is-style-fcx-band-photo .fcx-principle {
	background: var(--fcx-white);
	border-radius: var(--fcx-radius-sm, 4px);
	box-shadow: 0 1px 2px rgba(20, 40, 25, 0.06), 0 8px 24px rgba(20, 40, 25, 0.05);
}

.is-style-fcx-band-photo .fcx-principles > *,
.is-style-fcx-band-photo .fcx-principles--cols-2 > *:nth-child(2n + 1),
.is-style-fcx-band-photo .fcx-principles--cols-3 > *:nth-child(3n + 1),
.is-style-fcx-band-photo .fcx-principles--cols-4 > *:nth-child(4n + 1),
.is-style-fcx-band-photo .fcx-principles--cols-2 > *:nth-child(n + 3),
.is-style-fcx-band-photo .fcx-principles--cols-3 > *:nth-child(n + 4),
.is-style-fcx-band-photo .fcx-principles--cols-4 > *:nth-child(n + 5) {
	padding: clamp(1.1rem, 2vw, 1.5rem);
	border: 0;
}

.is-style-fcx-band-deep {
	background: var(--fcx-green-900);
	color: var(--fcx-on-dark-body);
}

.is-style-fcx-band-mid {
	background: var(--fcx-green-700);
	color: var(--fcx-on-dark-body);
}

/* ===========================================================================
 * Pages, posts and archives
 * ======================================================================== */

.fcx-page-header {
	padding-block: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem);
	border-bottom: 1px solid var(--fcx-rule);
	background: var(--fcx-cream);
}

.fcx-page-header__title {
	max-width: 22ch;
	margin: 0.6rem 0 0;
	font-size: var(--fcx-text-3xl);
}

.fcx-page-header__meta {
	margin: 0.85rem 0 0;
	color: var(--fcx-muted);
	font-size: var(--fcx-text-sm);
}

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

.fcx-breadcrumbs {
	color: var(--fcx-muted);
	font-size: var(--fcx-text-micro);
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* Anything following the trail needs room; the trail itself sets none. */
.fcx-breadcrumbs { display: block; margin-bottom: 0.9rem; }

.fcx-breadcrumbs a { color: var(--fcx-green-500); text-decoration: none; }
.fcx-breadcrumbs a:hover { text-decoration: underline; }

/* ===========================================================================
 * Core blocks used inside designed sections
 *
 * A handful of WordPress's own blocks earn their place on these pages -
 * downloads, embeds, galleries. They arrive unstyled, so they are given the
 * same hairlines, radii and type as everything else rather than looking like
 * they were dropped in from another site.
 * ======================================================================== */

/* ---- Downloads ---- */

.wp-block-file {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.1rem 1.25rem;
	border: 1px solid var(--fcx-rule);
	border-radius: var(--fcx-r-md);
	background: var(--fcx-white);
	font-size: var(--fcx-text-base);
}

.wp-block-file + .wp-block-file { margin-top: 0.6rem; }

.wp-block-file a:not(.wp-block-file__button) {
	color: var(--fcx-ink);
	font-weight: 600;
	text-decoration: none;
}

.wp-block-file a:not(.wp-block-file__button):hover { color: var(--fcx-green-500); }

.wp-block-file .wp-block-file__button {
	flex: none;
	padding: 0.5rem 1rem;
	border-radius: var(--fcx-r-pill);
	background: var(--fcx-green-500);
	color: var(--fcx-white);
	font-size: var(--fcx-text-sm);
	font-weight: 600;
	text-decoration: none;
}

.wp-block-file .wp-block-file__button:hover { background: var(--fcx-green-600); }

.is-style-fcx-band-deep .wp-block-file,
.is-style-fcx-band-mid .wp-block-file {
	border-color: var(--fcx-rule-dark);
	background: var(--fcx-green-800);
}

.is-style-fcx-band-deep .wp-block-file a:not(.wp-block-file__button),
.is-style-fcx-band-mid .wp-block-file a:not(.wp-block-file__button) { color: var(--fcx-on-dark); }

.is-style-fcx-band-deep .wp-block-file .wp-block-file__button,
.is-style-fcx-band-mid .wp-block-file .wp-block-file__button {
	background: var(--fcx-lime);
	color: var(--fcx-green-950);
}

/* ---- Embeds ---- */

.wp-block-embed { margin: 0; }

.wp-block-embed__wrapper {
	position: relative;
	overflow: hidden;
	border-radius: var(--fcx-r-md);
	background: var(--fcx-green-950);
}

/* Holds the frame's shape before the provider's script has sized it. */
.wp-block-embed.is-type-video .wp-block-embed__wrapper::before {
	content: "";
	display: block;
	padding-top: 56.25%;
}

.wp-block-embed.is-type-video .wp-block-embed__wrapper iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.wp-block-embed figcaption {
	margin: 0.75rem 0 0;
	color: var(--fcx-muted);
	font-size: var(--fcx-text-sm);
	text-align: left;
}

.is-style-fcx-band-deep .wp-block-embed figcaption,
.is-style-fcx-band-mid .wp-block-embed figcaption { color: var(--fcx-on-dark-muted); }

/* ---- Galleries ---- */

.wp-block-gallery.has-nested-images figure.wp-block-image {
	border-radius: var(--fcx-r-md);
	overflow: hidden;
}

.wp-block-gallery.has-nested-images figure.wp-block-image img { display: block; }

/* ---- Prose ---- */

.fcx-prose {
	max-width: 44rem;
	margin-inline: auto;
	padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.fcx-prose > * + * { margin-block-start: 1.25rem; }
.fcx-prose h2 { margin-block-start: 2.5rem; font-size: var(--fcx-text-2xl); }
.fcx-prose h3 { margin-block-start: 2rem; font-size: var(--fcx-text-xl); }
.fcx-prose ul, .fcx-prose ol { padding-left: 1.35rem; }
.fcx-prose li + li { margin-top: 0.4rem; }
.fcx-prose figure { margin: 2rem 0; }

.fcx-prose figcaption {
	margin-top: 0.6rem;
	color: var(--fcx-muted);
	font-size: var(--fcx-text-sm);
	text-align: center;
}

/* ---- Archive ---- */

.fcx-archive { padding-block: clamp(2.5rem, 5vw, 4.5rem); }

.fcx-archive__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
}

@media (max-width: 1024px) { .fcx-archive__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .fcx-archive__grid { grid-template-columns: minmax(0, 1fr); } }

.fcx-pagination { margin-top: 2.5rem; text-align: center; }

.fcx-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.6rem;
	border: 1px solid var(--fcx-rule-strong);
	color: var(--fcx-ink);
	text-decoration: none;
}

.fcx-pagination .page-numbers.current,
.fcx-pagination .page-numbers:hover {
	background: var(--fcx-green-500);
	border-color: var(--fcx-green-500);
	color: var(--fcx-white);
}

/* ---- Search form and empty state ---- */

.fcx-searchform { display: flex; gap: 0.5rem; max-width: 30rem; }

.fcx-searchform input[type="search"] {
	flex: 1;
	min-height: 48px;
	padding: 0.6rem 1rem;
	border: 1px solid var(--fcx-rule-strong);
	border-radius: var(--fcx-r-sm);
	background: var(--fcx-white);
	color: var(--fcx-ink);
	font-family: inherit;
	font-size: var(--fcx-text-base);
}

.fcx-noresults { max-width: 44rem; }

.fcx-noresults__message {
	padding: 1.5rem;
	border-left: 3px solid var(--fcx-green-500);
	background: var(--fcx-cream);
	font-size: var(--fcx-text-lg);
}

.fcx-noresults__heading { margin-top: 2.5rem; font-size: var(--fcx-text-xl); }

.fcx-noresults__links {
	display: grid;
	gap: 0;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--fcx-rule);
}

.fcx-noresults__links li { border-bottom: 1px solid var(--fcx-rule); }

.fcx-noresults__links a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.9rem 0.25rem;
	color: var(--fcx-ink);
	text-decoration: none;
}

.fcx-noresults__links a:hover { color: var(--fcx-green-500); }

/* ---- 404 ---- */

.fcx-404 { padding-block: clamp(4rem, 10vw, 8rem); text-align: center; }

.fcx-404__code {
	margin: 0;
	color: var(--fcx-cream);
	font-family: var(--fcx-font-display);
	font-size: clamp(4rem, 14vw, 9rem);
	line-height: 1;
}

.fcx-404 .fcx-searchform { margin-inline: auto; margin-top: 2rem; }

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

.fcx-footer {
	background: var(--fcx-green-950);
	color: var(--fcx-on-dark-muted);
	font-size: var(--fcx-text-base);
}

.fcx-footer a { color: var(--fcx-on-dark-muted); text-decoration: none; }
.fcx-footer a:hover,
.fcx-footer a:focus-visible { color: var(--fcx-lime); }

.fcx-footer__top {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
	gap: clamp(2rem, 4vw, 3.5rem);
	padding-block: clamp(3rem, 6vw, 5rem);
}

.fcx-footer__heading {
	margin: 0 0 1.35rem;
	color: var(--fcx-white);
	font-family: var(--fcx-font-sans);
	font-size: var(--fcx-text-micro);
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.fcx-footer__brand img {
	width: auto;
	max-height: 2.5rem;
	margin-bottom: 1.25rem;
	/* The logo is dark artwork; knock it out for the dark footer. */
	filter: brightness(0) invert(1);
	opacity: 0.94;
}

.fcx-footer__about { max-width: 32ch; margin: 0; line-height: 1.7; }

.fcx-footer__menu,
.fcx-footer__contact {
	display: grid;
	gap: 0.7rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fcx-footer__contact li { display: flex; align-items: flex-start; gap: 0.65rem; }
.fcx-footer__contact-icon { color: var(--fcx-lime); margin-top: 0.2rem; }

/*
 * Menu items wrap here. The header's rule sets nowrap, which would push a long
 * service name straight out of a column this narrow. Colour is left to
 * inheritance so these read in the same tone as the rest of the footer.
 */
.fcx-footer__menu a,
.fcx-footer__menu .fcx-nav__item-text,
.fcx-footer__legal a,
.fcx-footer__legal .fcx-nav__item-text {
	white-space: normal;
}

.fcx-social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 1.75rem 0 0;
	padding: 0;
	list-style: none;
}

.fcx-social a {
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border: 1px solid var(--fcx-rule-dark-soft);
	border-radius: 50%;
	transition: background-color var(--fcx-duration) var(--fcx-ease),
		border-color var(--fcx-duration) var(--fcx-ease),
		color var(--fcx-duration) var(--fcx-ease);
}

.fcx-social a:hover,
.fcx-social a:focus-visible {
	background: var(--fcx-lime);
	border-color: var(--fcx-lime);
	color: var(--fcx-green-950);
}

.fcx-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 1.5rem;
	border-top: 1px solid var(--fcx-rule-dark-soft);
	font-size: var(--fcx-text-micro);
	letter-spacing: 0.04em;
}

.fcx-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fcx-footer__copyright { margin: 0; }

@media (max-width: 1000px) { .fcx-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .fcx-footer__top { grid-template-columns: minmax(0, 1fr); } }
