/*
 * One Front — theme stylesheet
 *
 * All component styling lives here; templates only carry class names.
 * Tokens (colours, font sizes, spacing) come from theme.json as CSS variables —
 * never hard-code a hex value or size that exists as a token.
 * See .claude/DESIGN.md for the palette, approved pairings and components.
 *
 * Contents
 *   1. Global defaults
 *   2. Layout: main wrapper & sections
 *   3. Header
 *   4. Breaking-news ticker
 *   5. Hero
 *   6. Feature strip
 *   7. Section heads & labels
 *   8. Post meta
 *   9. Story lists (featured lead + sidebar)
 *  10. Article cards
 *  11. Mission & stats
 *  12. Single article
 *  13. Footer
 *  14. Back-to-top button
 *  15. About page sections
 *  16. Contact page
 *  17. Forms (Contact Form 7)
 */

/* ---------------------------------------------------------------
 * 1. Global defaults
 * ------------------------------------------------------------- */

/* In-page links stop below the sticky header (height set by back-to-top.js). */
html {
	scroll-padding-top: calc(var(--of-header-height, 0px) + 1rem);
}
/* Smooth scrolling for anchor links and the back-to-top button, only for
   visitors who haven't asked for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

/* Link hover/focus: theme.json turns the text Navy Deep and underlines it;
   the underline is Gold. (Gold text on white fails contrast, so links never
   turn gold on light backgrounds.) Components with their own hover keep it. */
a:where(:not(.wp-element-button)):hover,
a:where(:not(.wp-element-button)):focus-visible {
	text-decoration-color: var(--wp--preset--color--gold);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.wp-block-post-date {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--slate);
}

.wp-block-post-author-name {
	font-size: var(--wp--preset--font-size--small);
}

.wp-block-post-excerpt {
	color: var(--wp--preset--color--slate);
}

/* The one page title style: every inner template's H1 (pages, posts, archives,
   Latest News). theme.json also sets H1s to this size as a fallback. */
.of-page-title {
	font-size: var(--wp--preset--font-size--xx-large);
}

/* Thin divider line (separator block with className "of-rule") */
.wp-block-separator.of-rule {
	border: 0;
	height: 1px;
	opacity: 1;
	background-color: var(--wp--preset--color--border);
	margin-block: 1rem;
}

/* ---------------------------------------------------------------
 * 2. Layout: main wrapper & sections
 * ------------------------------------------------------------- */

/*
 * Every container gets the same horizontal gutter so text never touches an
 * edge. Fluid: 20px on phones up to 48px on wide screens.
 */
.of-main {
	/* Inner pages: the title sits close under the header; full gap below. */
	margin-top: 0;
	padding-top: var(--wp--custom--spacing--page-top);
	padding-bottom: var(--wp--custom--spacing--section-gap);
	padding-inline: var(--wp--custom--spacing--gutter);
}
.of-main > :first-child {
	margin-top: 0;
}

.of-section {
	padding-block: var(--wp--preset--spacing--60);
	padding-inline: var(--wp--custom--spacing--gutter);
}

.of-section--cloud {
	background-color: var(--wp--preset--color--cloud);
}

.of-section--sky {
	background-color: var(--wp--preset--color--sky);
	border-top: 2px solid var(--wp--preset--color--navy);
}

/* ---------------------------------------------------------------
 * 3. Header
 * ------------------------------------------------------------- */

.of-site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background-color: var(--wp--preset--color--base);
}
/* Inner pages have no ticker under the header, so draw the separation. */
body:not(.home) .of-site-header {
	border-bottom: 1px solid var(--wp--preset--color--navy);
}

.of-site-header__inner {
	padding-block: 0.75rem;
	padding-inline: var(--wp--custom--spacing--gutter);
}

/*
 * Header search (core Search block): a 44px magnifier button beside Take
 * Action that slides open a search field (core "button only" mode). Results
 * show on templates/search.html. Button: White with a Navy icon and 1px
 * Border; hover/focus Gold with a Navy Deep icon, like the social icons.
 */
.of-header-actions {
	gap: 0.75rem;
}
.wp-block-search.of-header-search {
	margin: 0;
}
.of-header-search .wp-block-search__inside-wrapper {
	padding: 0;
	border: 0;
	gap: 0.5rem;
}
.of-header-search .wp-block-search__input {
	height: 44px;
	padding: 0 0.85rem;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 2px;
}
.of-header-search .wp-block-search__input:focus {
	border-color: var(--wp--preset--color--navy);
	outline: 2px solid var(--wp--preset--color--navy);
	outline-offset: 0;
}
.of-header-search .wp-block-search__button {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	color: var(--wp--preset--color--navy);
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 2px;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.of-header-search .wp-block-search__button svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}
.of-header-search .wp-block-search__button:hover,
.of-header-search .wp-block-search__button:focus-visible {
	color: var(--wp--preset--color--navy-deep);
	background-color: var(--wp--preset--color--gold);
	border-color: var(--wp--preset--color--gold);
}
.of-header-search .wp-block-search__button:focus-visible {
	outline: 2px solid var(--wp--preset--color--navy);
	outline-offset: 2px;
}
/* Open header field: a sensible width on desktop. */
.of-header-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__input {
	width: min(16rem, 50vw);
}
@media (prefers-reduced-motion: reduce) {
	.of-header-search .wp-block-search__button {
		transition: none;
	}
}

/*
 * Main menu. Rollover: Navy text with a 2px Gold underline (Gold text on
 * White would fail contrast). Top-level items are divided by a Slate "|",
 * only in the horizontal desktop menu, not the mobile overlay.
 */
.of-site-header .wp-block-navigation .wp-block-navigation-item__content {
	text-decoration: underline;
	text-decoration-color: transparent;
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
	transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
/* The current page keeps the rollover look. Articles and topic pages count
   as being in News. */
.of-site-header .wp-block-navigation .wp-block-navigation-item__content:hover,
.of-site-header .wp-block-navigation .wp-block-navigation-item__content:focus-visible,
.of-site-header .wp-block-navigation .wp-block-navigation-item__content[aria-current="page"],
.single-post .of-site-header .wp-block-navigation .wp-block-navigation-item__content[href$="/news/"],
.category .of-site-header .wp-block-navigation .wp-block-navigation-item__content[href$="/news/"] {
	color: var(--wp--preset--color--navy);
	text-decoration-color: var(--wp--preset--color--gold);
}
.of-site-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container {
	gap: 0;
}
.of-site-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .wp-block-navigation-item + .wp-block-navigation-item::before {
	content: "|";
	content: "|" / ""; /* empty alt text: screen readers skip the divider */
	padding-inline: 0.9rem;
	color: var(--wp--preset--color--slate);
	font-weight: 400;
}
@media (prefers-reduced-motion: reduce) {
	.of-site-header .wp-block-navigation .wp-block-navigation-item__content {
		transition: none;
	}
}

/*
 * Top bar: a full-width Navy Deep strip above the logo and menu, today's date
 * on the left ([of_today]) and the social icons on the right. Elsewhere (e.g.
 * the Contact page) the icons are Navy instead of each network's brand
 * colour; in this bar they are White. Hover/focus everywhere: a Gold square
 * with a Navy Deep icon.
 */
.of-social-bar {
	padding-block: 0.25rem;
	padding-inline: var(--wp--custom--spacing--gutter);
	background-color: var(--wp--preset--color--navy-deep);
}
.of-social-bar__inner {
	gap: 1rem;
}
.of-social-bar__inner > p {
	margin: 0;
}
.of-today {
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	white-space: nowrap;
	color: color-mix(in srgb, var(--wp--preset--color--base) 85%, var(--wp--preset--color--navy-deep));
}
@media (max-width: 600px) {
	.of-today__day {
		display: none;
	}
}
.of-social-bar .wp-block-social-links.of-social.is-style-logos-only .wp-social-link {
	color: var(--wp--preset--color--base);
}
.of-social-bar + .of-site-header__inner {
	margin-block-start: 0;
}
.of-social-bar > .of-social {
	gap: 0.25rem;
}
.wp-block-social-links.of-social.is-style-logos-only .wp-social-link {
	color: var(--wp--preset--color--navy);
	border-radius: 2px;
	transform: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.wp-block-social-links.of-social .wp-social-link a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	color: inherit;
}
.wp-block-social-links.of-social.is-style-logos-only .wp-social-link:hover,
.wp-block-social-links.of-social.is-style-logos-only .wp-social-link:focus-within {
	color: var(--wp--preset--color--navy-deep);
	background-color: var(--wp--preset--color--gold);
}
.wp-block-social-links.of-social .wp-social-link a:focus-visible {
	outline: 2px solid var(--wp--preset--color--navy);
	outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
	.wp-block-social-links.of-social .wp-social-link {
		transition: none;
	}
}

/*
 * Header on tablets and phones (≤1023px). One row: logo on the left, then
 * search, Take Action and the menu button. The full menu only fits from
 * 1024px, so below that it's always the menu button (core switches at 600px).
 */
@media (max-width: 1023px) {
	.of-site-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}
	.of-site-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
	.of-site-header__inner > .wp-block-group {
		flex-wrap: nowrap;
		gap: 0.5rem;
	}
	.of-site-header__inner .wp-block-site-logo {
		flex: none;
		margin-inline-end: auto;
	}
	.of-site-header__inner > .wp-block-group > .wp-block-navigation {
		order: 3;
		flex: none;
	}
	.of-site-header .wp-block-navigation__responsive-container-open {
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		color: var(--wp--preset--color--navy-deep);
	}
	.of-site-header .wp-block-navigation__responsive-container-open svg {
		width: 28px;
		height: 28px;
	}
	.of-header-actions {
		gap: 0.5rem;
	}
}
@media (max-width: 781px) {
	.of-site-header__inner {
		padding-block: 0.5rem;
	}
	.of-site-header__inner .wp-block-site-logo img {
		width: 84px;
		height: auto;
	}
	.of-header-actions .wp-block-button__link {
		padding: 0.6rem 0.85rem;
		font-size: 0.875rem;
		white-space: nowrap;
	}
	.of-header-search .wp-block-search__button {
		width: 40px;
		height: 40px;
	}
	/* Open search field: drop over the row instead of pushing it wider. */
	.of-header-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__input {
		width: min(12rem, 45vw);
	}
	/* Top bar: date and all seven icons on one line. */
	.of-social-bar {
		padding-block: 0.125rem;
	}
	.of-social-bar__inner {
		gap: 0.5rem;
	}
	.of-today {
		font-size: 0.75rem;
	}
	.of-social-bar .wp-block-social-links.of-social {
		gap: 0;
		flex-wrap: nowrap;
	}
	.of-social-bar .wp-block-social-links.of-social .wp-social-link a {
		width: 26px;
		height: 26px;
	}
	.of-social-bar .wp-block-social-links.of-social .wp-social-link svg {
		width: 15px;
		height: 15px;
	}
}

/*
 * Opened menu (overlay on tablets and phones): Navy Deep, White links in
 * Inter 600, the current page with a Gold underline, then a full-width
 * Take Action button and the social icons (added by functions.php).
 */
.of-site-header .wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open {
	color: var(--wp--preset--color--base);
	background-color: var(--wp--preset--color--navy-deep);
}
.of-site-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--custom--spacing--gutter);
}
.of-site-header .wp-block-navigation__responsive-container-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: var(--wp--preset--color--base);
}
.of-site-header .wp-block-navigation__responsive-container-close svg {
	width: 28px;
	height: 28px;
}
.of-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 3.5rem;
	align-items: center;
}
.of-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 1.5rem;
	align-items: center;
}
.of-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	color: var(--wp--preset--color--base);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
}
.of-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover,
.of-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:focus-visible,
.of-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content[aria-current="page"],
.single-post .of-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content[href$="/news/"],
.category .of-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content[href$="/news/"] {
	color: var(--wp--preset--color--base);
	text-decoration-color: var(--wp--preset--color--gold);
}
.of-site-header .wp-block-navigation__responsive-container.is-menu-open :focus-visible {
	outline: 2px solid var(--wp--preset--color--gold);
	outline-offset: 4px;
}
.of-menu-extras {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
	width: 100%;
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--base) 20%, transparent);
}
.wp-block-navigation__responsive-container:not(.is-menu-open) .of-menu-extras {
	display: none;
}
.of-menu-extras .wp-block-buttons,
.of-menu-extras .wp-block-button {
	width: 100%;
	max-width: 20rem;
	margin: 0;
}
.of-menu-extras .wp-block-button__link {
	display: block;
	width: 100%;
	text-align: center;
}
.of-menu-extras .wp-block-button__link:hover,
.of-menu-extras .wp-block-button__link:focus-visible {
	color: var(--wp--preset--color--navy-deep);
	background-color: var(--wp--preset--color--base);
}
.of-menu-extras .wp-block-social-links.of-social {
	justify-content: center;
	gap: 0.25rem;
}
.of-menu-extras .wp-block-social-links.of-social.is-style-logos-only .wp-social-link {
	color: var(--wp--preset--color--base);
}
.of-menu-extras .wp-block-social-links.of-social .wp-social-link a {
	width: 44px;
	height: 44px;
}

/* ---------------------------------------------------------------
 * 4. Breaking-news ticker
 * ------------------------------------------------------------- */

.of-ticker-bar {
	margin-top: 0;
	padding-block: 0.5rem;
	padding-inline: var(--wp--custom--spacing--gutter);
	background-color: var(--wp--preset--color--navy-deep);
}
.of-ticker-bar .wp-block-group {
	min-width: 0;
}

.of-ticker-label {
	flex: none;
	padding: 0.15rem 0.6rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: var(--wp--preset--color--navy-deep);
	background-color: var(--wp--preset--color--gold);
}

.of-ticker {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
}
.of-ticker .wp-block-post-template {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	width: max-content;
	white-space: nowrap;
}
/* Built by assets/js/ticker.js: two identical sets side by side, scrolled by
   exactly one set per loop so the restart is invisible. Without JS (or with
   reduced motion) the list simply sits still. */
.of-ticker__track {
	display: flex;
	width: max-content;
	animation: of-ticker-scroll var(--of-ticker-duration, 40s) linear infinite;
	will-change: transform;
}
.of-ticker:hover .of-ticker__track,
.of-ticker:focus-within .of-ticker__track {
	animation-play-state: paused;
}
.of-ticker .wp-block-post-template > li {
	display: flex;
	align-items: center;
	white-space: nowrap;
	padding-right: 2rem;
	margin-block: 0;
}
.of-ticker .wp-block-post-template > li::after {
	content: "\00b7";
	color: var(--wp--preset--color--gold);
	margin-left: 2rem;
	font-weight: 700;
}
.of-ticker .wp-block-post-title {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
}
.of-ticker .wp-block-post-title a {
	color: var(--wp--preset--color--base);
	text-decoration: none;
	font-size: 0.85rem;
}
.of-ticker .wp-block-post-title a:hover {
	color: var(--wp--preset--color--gold);
	text-decoration: underline;
}
@keyframes of-ticker-scroll {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}
@media (prefers-reduced-motion: reduce) {
	.of-ticker .wp-block-post-template {
		width: auto;
		flex-wrap: wrap;
	}
}

/* ---------------------------------------------------------------
 * 5. Hero
 * ------------------------------------------------------------- */

.of-hero {
	padding-block: var(--wp--preset--spacing--70);
	padding-inline: var(--wp--custom--spacing--gutter);
	color: var(--wp--preset--color--base);
	/* Navy waves + faded star; navy shows while the image loads. Star sits right, clear of the text. */
	background: var(--wp--preset--color--navy) url("../images/hero-bg-1024.png") right center / cover no-repeat;
	border-bottom: 3px solid var(--wp--preset--color--gold);
}
@media (min-width: 1025px) {
	.of-hero {
		background-image: url("../images/hero-bg.png");
	}
}

/*
 * The hero background is full-bleed (alignfull), but its text keeps the same
 * column as the boxed sections below: content width minus their gutter.
 */
.of-hero.is-layout-constrained > * {
	max-width: calc(var(--wp--style--global--content-size) - 2 * var(--wp--custom--spacing--gutter));
}

.of-hero-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: var(--wp--preset--color--gold);
	font-size: 0.85rem;
	font-weight: 700;
}

.of-hero__title {
	margin-top: 1rem;
	margin-bottom: 1.25rem;
	font-size: var(--wp--preset--font-size--huge);
	color: var(--wp--preset--color--base);
}
/* Phones: "antisemitism" at 56px is wider than a 390px screen, which widened
   the whole page. Scale with the screen instead (32px at 360, 56px from ~620). */
@media (max-width: 600px) {
	.of-hero__title {
		font-size: min(var(--wp--preset--font-size--huge), 9vw);
	}
}

.of-hero__lead {
	margin-bottom: 2rem;
	font-size: var(--wp--preset--font-size--large);
	/* Softened white: tinted toward navy so the headline stays dominant */
	color: color-mix(in srgb, var(--wp--preset--color--base) 80%, var(--wp--preset--color--navy));
}

/* Primary button on navy: the default navy hover would vanish, so invert to white */
.of-hero .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	color: var(--wp--preset--color--navy-deep);
	background-color: var(--wp--preset--color--base);
}

.of-hero .is-style-outline .wp-block-button__link {
	color: var(--wp--preset--color--base);
}
.of-hero .is-style-outline .wp-block-button__link:hover {
	color: var(--wp--preset--color--gold);
}

/* ---------------------------------------------------------------
 * 6. Feature strip (United / Defending / Acting / Together)
 * ------------------------------------------------------------- */

/*
 * Four white cards that ride up over the bottom of the hero. The hero gets
 * the same amount of extra bottom padding, so the cards never cover its
 * buttons.
 */
.of-hero:has(+ .of-feature-strip) {
	padding-bottom: calc(var(--wp--preset--spacing--70) + var(--wp--custom--spacing--pillar-overlap));
}

.of-feature-strip {
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.5rem;
	margin-top: calc(-1 * var(--wp--custom--spacing--pillar-overlap));
}
/*
 * The constrained layout gives every item but the first a top margin and
 * centres each one at its content width (auto margins, !important), which
 * staggers the row. Reset the margin and fill the grid cell instead.
 */
.of-feature-strip > .of-pillar {
	margin-block: 0;
	width: 100%;
}

.of-pillar {
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
	padding: 2rem 1.75rem;
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-top: 3px solid var(--wp--preset--color--gold);
	box-shadow: 0 12px 32px color-mix(in srgb, var(--wp--preset--color--navy-deep) 12%, transparent);
}
.of-pillar > * {
	margin: 0;
}

.of-pillar__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	color: var(--wp--preset--color--gold);
	background-color: var(--wp--preset--color--navy-deep);
}
.of-pillar__icon svg {
	width: 30px;
	height: 30px;
}

.of-pillar__title {
	margin-top: 0.25rem;
	font-size: 1.25rem;
	letter-spacing: 0.08em;
	color: var(--wp--preset--color--navy-deep);
}

.of-pillar__text {
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--wp--preset--color--slate);
}

@media (max-width: 781px) {
	.of-feature-strip {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem;
	}
}
/* Phones: one column, icon beside the text so four cards don't get too tall. */
@media (max-width: 600px) {
	.of-feature-strip {
		grid-template-columns: minmax(0, 1fr);
	}
	.of-pillar {
		display: grid;
		grid-template-columns: 56px minmax(0, 1fr);
		column-gap: 1rem;
		row-gap: 0.25rem;
		align-items: start;
		padding: 1.25rem;
	}
	.of-pillar__icon {
		grid-row: span 2;
	}
	.of-pillar__title {
		margin-top: 0;
		align-self: end;
	}
}

/* ---------------------------------------------------------------
 * 7. Section heads & labels
 * ------------------------------------------------------------- */

/* Row holding an eyebrow label and an "All stories" button */
.of-section-head + * {
	margin-top: 1.5rem;
}

/*
 * "All stories" / "All news" (paragraph with "of-more-link"): the link is
 * drawn as a button in the theme button colours, 10px corners, with a double
 * chevron after the text (a CSS mask, so it takes the text colour).
 */
.of-more-link {
	margin: 0;
}
.of-more-link a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6rem 1rem 0.6rem 1.25rem;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-decoration: none;
	color: var(--wp--preset--color--navy-deep);
	background-color: var(--wp--preset--color--gold);
	border-radius: 10px;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.of-more-link a::after {
	content: "";
	flex: none;
	width: 1rem;
	height: 1rem;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='square'%3E%3Cpath d='M6 6l6 6-6 6M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='square'%3E%3Cpath d='M6 6l6 6-6 6M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.of-more-link a:hover,
.of-more-link a:focus-visible {
	color: var(--wp--preset--color--base);
	background-color: var(--wp--preset--color--navy);
}
.of-more-link a:focus-visible {
	outline: 2px solid var(--wp--preset--color--navy);
	outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
	.of-more-link a {
		transition: none;
	}
}

/* Section eyebrow labels (FEATURED / LATEST NEWS) */
.of-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 700;
	font-size: 0.85rem;
	color: var(--wp--preset--color--navy-deep);
	display: inline-block;
	padding-bottom: 0.65rem;
	border-bottom: 3px solid var(--wp--preset--color--gold);
}

/* Category badge above headlines: Navy text with a short Gold rule on the
   left (Gold text on white would fail contrast). Hover: Gold underline. */
.of-category .wp-block-post-terms {
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 700;
	font-size: 0.78rem;
	line-height: 1.3;
	color: var(--wp--preset--color--navy);
	padding-left: 0.5rem;
	border-left: 3px solid var(--wp--preset--color--gold);
}
.of-category .wp-block-post-terms a {
	color: inherit;
	text-decoration: none;
}
.of-category .wp-block-post-terms a:hover,
.of-category .wp-block-post-terms a:focus-visible {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--gold);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

/* ---------------------------------------------------------------
 * 8. Post meta (author · date row)
 * ------------------------------------------------------------- */

.of-byline {
	margin-top: 0.75rem;
}

/* ---------------------------------------------------------------
 * 9. Story lists
 * ------------------------------------------------------------- */

@media (min-width: 782px) {
	/* Must outrank core's .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column */
	.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column.of-featured__lead {
		flex: 0 0 62%;
	}
}

/* Lead story (large, left column) */
.of-lead-story .wp-block-post-featured-image {
	margin-bottom: 1rem;
}
/* Fixed frame so tall (portrait) images don't stretch the lead story and,
   with it, the height the right-hand list is spread across. */
.of-lead-story .wp-block-post-featured-image img {
	aspect-ratio: 16 / 9;
	object-fit: cover;
	width: 100%;
	height: auto;
}
.of-lead-story .wp-block-post-title {
	margin-top: 0.5rem;
	margin-bottom: 0.75rem;
	font-size: var(--wp--preset--font-size--x-large);
}
.of-lead-story .wp-block-post-excerpt {
	font-size: var(--wp--preset--font-size--medium);
}

/* Compact list (right column): square thumbnail beside category, title, date */
.of-story-list .wp-block-post-template > li + li {
	margin-block-start: 1rem;
}
.of-story-list .wp-block-post-title {
	margin-block: 0.35rem;
	font-size: var(--wp--preset--font-size--medium);
}
.of-story {
	gap: 1rem;
}
.of-story__thumb {
	flex-shrink: 0;
	margin: 0;
}
.of-story__body {
	flex: 1;
	min-width: 0;
}
.of-story__body > * {
	margin-block-start: 0;
}
.of-featured__list .wp-block-post-template > li + li {
	margin-block-start: 0;
}
.of-featured__list .wp-block-separator.of-rule {
	margin-block: 0.75rem;
}

/* Desktop: the list shows a fixed 5 items (front-page.html; Latest News starts
   right after them, so no post is ever skipped). Nothing is hidden: the items
   are spread over the lead story's height so both columns end level, and if
   the list is the taller of the two the row simply grows. */
@media (min-width: 782px) {
	.of-featured__list {
		display: flex;
		flex-direction: column;
	}
	.of-featured__list .of-story-list {
		flex: 1;
		display: flex;
		flex-direction: column;
	}
	.of-featured__list .wp-block-post-template {
		flex: 1;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		margin: 0;
	}
}

/* ---------------------------------------------------------------
 * 10. Article cards
 * ------------------------------------------------------------- */

.of-card-grid {
	margin-top: 2rem;
}
.of-section-head + .of-card-grid {
	margin-top: 1.5rem;
}
.of-card-grid .wp-block-query-pagination {
	margin-top: 2rem;
}

.of-card {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	overflow: hidden;
	height: 100%;
}
.of-card .wp-block-post-featured-image {
	margin: 0 !important;
}
.of-card .wp-block-post-featured-image img {
	aspect-ratio: 3 / 2;
	object-fit: cover;
	width: 100%;
}
.of-card > .wp-block-group {
	padding: 1.25rem 1.25rem 1.5rem;
}
.of-card .wp-block-post-title {
	margin-block: 0.35rem;
	font-size: var(--wp--preset--font-size--medium);
}
.of-card .wp-block-post-excerpt {
	font-size: var(--wp--preset--font-size--small);
}

/*
 * 4-column card grid (homepage More News, under Our Mission): 4 per row on
 * desktop, 2 at ≤781px, 1 at ≤600px. Smaller titles than the 3-up cards, and
 * the image zooms slightly on hover (off under reduced motion).
 */
.of-card-grid--4 .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.of-card-grid--4 .wp-block-post-template > li {
	margin: 0;
}
.of-card-grid--4 .of-card > .wp-block-group {
	padding: 1rem 1rem 1.25rem;
}
.of-card-grid--4 .of-card .wp-block-post-title {
	font-size: var(--wp--preset--font-size--normal, 1rem);
	line-height: 1.35;
}
.of-card-grid--4 .of-card {
	transition: border-color 0.15s ease;
}
.of-card-grid--4 .of-card:hover {
	border-color: var(--wp--preset--color--navy);
}
.of-card-grid--4 .wp-block-post-featured-image {
	overflow: hidden;
}
.of-card-grid--4 .wp-block-post-featured-image img {
	transition: transform 0.3s ease;
}
.of-card-grid--4 .of-card:hover .wp-block-post-featured-image img {
	transform: scale(1.04);
}
@media (max-width: 1100px) and (min-width: 782px) {
	.of-card-grid--4 .wp-block-post-template {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
/* Fewer cards on smaller screens: the query loads 12 (desktop shows all),
   tablets show 6 (3 rows of 2), phones show 4 (one column). Hidden cards'
   images are lazy-loaded, so they aren't downloaded. */
@media (max-width: 781px) {
	.of-card-grid--4 .wp-block-post-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem;
	}
	.of-more-news .wp-block-post-template > li:nth-child(n+7) {
		display: none;
	}
}
@media (max-width: 600px) {
	.of-card-grid--4 .wp-block-post-template {
		grid-template-columns: 1fr;
	}
	.of-more-news .wp-block-post-template > li:nth-child(n+5) {
		display: none;
	}
}
@media (prefers-reduced-motion: reduce) {
	.of-card-grid--4 .of-card,
	.of-card-grid--4 .wp-block-post-featured-image img {
		transition: none;
	}
	.of-card-grid--4 .of-card:hover .wp-block-post-featured-image img {
		transform: none;
	}
}

/*
 * Card carousel (homepage Latest News: query block with "of-carousel").
 * One sideways-scrolling row with scroll-snap: 3 cards visible on desktop,
 * 2 on tablet, 1 on phone. assets/js/carousel.js adds the arrows (styled like
 * the back-to-top button) and the pills; without JS the row just scrolls.
 */
.of-carousel {
	--of-carousel-gap: 1.5rem;
	--of-carousel-per-view: 3;
}
/* The section holding the carousel (the grey box) anchors the arrows. */
.of-carousel-host {
	position: relative;
}
.of-carousel .wp-block-post-template {
	display: flex;
	gap: var(--of-carousel-gap);
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
}
.of-carousel .wp-block-post-template::-webkit-scrollbar {
	display: none;
}
.of-carousel .wp-block-post-template > li {
	flex: 0 0 calc((100% - (var(--of-carousel-per-view) - 1) * var(--of-carousel-gap)) / var(--of-carousel-per-view));
	margin: 0;
	scroll-snap-align: start;
}
@media (max-width: 781px) {
	.of-carousel {
		--of-carousel-per-view: 2;
		--of-carousel-gap: 1rem;
	}
}
@media (max-width: 600px) {
	.of-carousel {
		--of-carousel-per-view: 1;
	}
}

.of-carousel__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	color: var(--wp--preset--color--base);
	background-color: var(--wp--preset--color--navy-deep);
	border: 1px solid var(--wp--preset--color--gold);
	border-radius: 2px;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}
.of-carousel__arrow--prev {
	left: 0;
	transform: translate(-50%, -50%);
}
.of-carousel__arrow--next {
	right: 0;
	transform: translate(50%, -50%) scaleX(-1);
}
/* Where the grey box runs edge to edge (below ~1330px: phones, tablets and
   small laptops), half the arrow would be off screen and widen the page, so
   tuck them just inside the box instead. */
@media (max-width: 1330px) {
	.of-carousel__arrow--prev {
		left: 0.25rem;
		transform: translateY(-50%);
	}
	.of-carousel__arrow--next {
		right: 0.25rem;
		transform: translateY(-50%) scaleX(-1);
	}
}
.of-carousel__arrow:hover:not(:disabled),
.of-carousel__arrow:focus-visible {
	color: var(--wp--preset--color--navy-deep);
	background-color: var(--wp--preset--color--gold);
}
.of-carousel__arrow:disabled {
	opacity: 0;
	pointer-events: none;
}

.of-carousel__pills {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.25rem;
	margin-top: 1.5rem;
}
.of-carousel__pills[hidden] {
	display: none;
}
/* 24px-tall hit area around a small pill, drawn by ::before. */
.of-carousel__pill {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 24px;
	padding: 0 4px;
	background: none;
	border: 0;
	cursor: pointer;
}
.of-carousel__pill::before {
	content: "";
	display: block;
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background-color: var(--wp--preset--color--slate);
	transition: width 0.2s ease, background-color 0.15s ease;
}
.of-carousel__pill:hover::before {
	background-color: var(--wp--preset--color--navy);
}
.of-carousel__pill[aria-current="true"]::before {
	width: 28px;
	background-color: var(--wp--preset--color--navy-deep);
}

.of-carousel__arrow:focus-visible,
.of-carousel__pill:focus-visible {
	outline: 2px solid var(--wp--preset--color--navy);
	outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
	.of-carousel__arrow,
	.of-carousel__pill::before {
		transition: none;
	}
}

/* ---------------------------------------------------------------
 * 11. Mission & stats
 * ------------------------------------------------------------- */

.of-mission__title {
	margin-top: 0.75rem;
	margin-bottom: 1rem;
	font-size: var(--wp--preset--font-size--x-large);
}

.of-mission__text {
	color: var(--wp--preset--color--slate);
}

/* Equal tiles: same column width (1fr) and same row height (auto-rows 1fr) */
.of-stats-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-auto-rows: 1fr;
	gap: 1rem;
}
.of-stats-grid > .wp-block-group {
	/* Flow layout gives every tile but the first a top margin, staggering the grid */
	margin-block: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: var(--wp--preset--color--navy);
	padding: 1.75rem 1rem;
	text-align: center;
}
.of-stats-grid .wp-block-heading {
	color: var(--wp--preset--color--gold);
	margin: 0 0 0.25rem;
	font-family: var(--wp--preset--font-family--heading-serif);
	font-size: var(--wp--preset--font-size--x-large);
}
.of-stats-grid p {
	color: var(--wp--preset--color--base);
	margin: 0;
	font-size: 0.85rem;
}

/* ---------------------------------------------------------------
 * 12. Single article
 * ------------------------------------------------------------- */

.of-article .wp-block-post-title {
	margin-top: 0.5rem;
}
.of-article .wp-block-post-featured-image {
	margin-block: 1.5rem;
}
/* "AI-generated image" label from the content generator plugin (when on). */
.rscg-ai-image-label {
	color: var(--wp--preset--color--slate);
	font-size: var(--wp--preset--font-size--small);
	font-style: italic;
}

/* "Key points" box at the top of AI-rewritten articles (content generator
   plugin): Cloud panel with a 3px Gold left rule, like the principles. The
   plugin writes the heading as an H2, so it's restyled as an eyebrow label. */
.rscg-key-points.wp-block-group {
	margin-block: 0 var(--wp--preset--spacing--50);
	padding: 1.25rem 1.5rem;
	background: var(--wp--preset--color--cloud);
	border-left: 3px solid var(--wp--preset--color--gold);
}
.rscg-key-points > * {
	margin-block: 0;
}
.rscg-key-points .wp-block-heading {
	margin-bottom: 0.75rem;
	color: var(--wp--preset--color--navy-deep);
	font-family: var(--wp--preset--font-family--body-sans);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.3;
	text-transform: uppercase;
}
.rscg-key-points ul {
	list-style: none;
	padding-left: 0;
}
.rscg-key-points li {
	position: relative;
	padding-left: 1.25rem;
	color: var(--wp--preset--color--ink);
}
.rscg-key-points li + li {
	margin-top: 0.5rem;
}
/* Navy square bullet, centred on the first line of text. */
.rscg-key-points li::before {
	content: "";
	position: absolute;
	left: 0;
	top: calc(0.825em - 3px);
	width: 6px;
	height: 6px;
	background: var(--wp--preset--color--navy);
}

/* "Related articles" list at the end of AI-rewritten articles (content
   generator plugin): a Gold top rule and the same eyebrow label as Key points. */
.rscg-related.wp-block-group {
	margin-block: var(--wp--preset--spacing--50);
	padding-top: 1rem;
	border-top: 3px solid var(--wp--preset--color--gold);
}
.rscg-related > * {
	margin-block: 0;
}
.rscg-related .wp-block-heading {
	margin-bottom: 0.75rem;
	color: var(--wp--preset--color--navy-deep);
	font-family: var(--wp--preset--font-family--body-sans);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.3;
	text-transform: uppercase;
}
.rscg-related ul {
	padding-left: 1.25rem;
}
.rscg-related li + li {
	margin-top: 0.5rem;
}

/* Loose images in the article text (pasted in, or imported from feeds):
   never wider than the text column, centred on their own line. */
.of-article .wp-block-post-content img {
	max-width: 100%;
	height: auto;
}
.of-article .wp-block-post-content > img,
.of-article .wp-block-post-content img.aligncenter {
	display: block;
	margin-inline: auto;
}

/* ---------------------------------------------------------------
 * 13. Footer
 * ------------------------------------------------------------- */

.of-site-footer {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--40);
	padding-inline: var(--wp--custom--spacing--gutter);
	color: var(--wp--preset--color--base);
	background-color: var(--wp--preset--color--navy-deep);
	font-size: var(--wp--preset--font-size--small);
}
.of-site-footer a {
	color: var(--wp--preset--color--base);
}
.of-site-footer a:hover {
	color: var(--wp--preset--color--gold);
}
.of-site-footer__columns {
	gap: clamp(2rem, 4vw, 3.5rem);
}
@media (min-width: 782px) {
	.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column.of-site-footer__brand {
		flex: 0 0 32%;
	}
}

/* Brand card: the logo needs a light background, so it sits on a White card
   (Gold top rule, 12px lower corners, like the form card) with the tagline
   and Navy social icons. */
.of-footer-card {
	padding: 1.75rem;
	color: var(--wp--preset--color--ink);
	background-color: var(--wp--preset--color--base);
	border-top: 3px solid var(--wp--preset--color--gold);
	border-radius: 0 0 12px 12px;
}
.of-footer-card > * {
	margin-block: 0;
}
.of-footer-card .wp-block-site-logo {
	display: flex;
	justify-content: center;
}
.of-footer-card .wp-block-site-logo img {
	height: auto;
}
.of-footer-card__text {
	margin-top: 1rem !important;
	color: var(--wp--preset--color--slate);
	line-height: 1.6;
}
.of-footer-card .of-social {
	margin-top: 1.25rem !important;
	gap: 0.25rem;
	justify-content: center;
}
.of-footer-card .of-social .wp-social-link a {
	color: inherit;
}

/* Column headings: small Gold caps (Gold on Navy Deep passes AAA). */
.of-site-footer .of-footer-heading {
	margin: 0 0 1rem;
	font-family: var(--wp--preset--font-family--body-sans);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold);
}

/* Footer menus (Navigation blocks): a plain stacked list, softened White,
   Gold underline on hover (overrides theme.json's header nav colour/weight). */
.of-site-footer .wp-block-navigation.of-footer-menu {
	color: color-mix(in srgb, var(--wp--preset--color--base) 85%, var(--wp--preset--color--navy-deep));
	font-weight: 400;
}
.of-site-footer .of-footer-menu .wp-block-navigation__container {
	gap: 0.65rem;
}
.of-site-footer .of-footer-menu .wp-block-navigation-item__content {
	text-decoration: underline;
	text-decoration-color: transparent;
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
	transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.of-site-footer .of-footer-menu .wp-block-navigation-item__content:hover,
.of-site-footer .of-footer-menu .wp-block-navigation-item__content:focus-visible {
	color: var(--wp--preset--color--base);
	text-decoration-color: var(--wp--preset--color--gold);
}

/* Get involved: short line + buttons. Outline button in White on Navy. */
.of-site-footer__cta > p {
	margin-top: 0;
	color: color-mix(in srgb, var(--wp--preset--color--base) 85%, var(--wp--preset--color--navy-deep));
	line-height: 1.6;
}
.of-footer-buttons {
	flex-direction: column;
	align-items: stretch;
	gap: 0.75rem;
	margin-top: 1.25rem;
	max-width: 16rem;
}
.of-footer-buttons .wp-block-button__link {
	width: 100%;
	padding: 0.65rem 1.1rem;
	font-size: var(--wp--preset--font-size--small);
	text-align: center;
}
.of-site-footer .of-footer-buttons .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	color: var(--wp--preset--color--navy-deep);
}
.of-site-footer .of-footer-buttons .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	color: var(--wp--preset--color--navy-deep);
	background-color: var(--wp--preset--color--base);
}
.of-site-footer .of-footer-buttons .is-style-outline .wp-block-button__link {
	color: var(--wp--preset--color--base);
}
.of-site-footer .of-footer-buttons .is-style-outline .wp-block-button__link:hover {
	color: var(--wp--preset--color--gold);
}

.of-site-footer .wp-block-separator.of-rule {
	margin-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
	background-color: color-mix(in srgb, var(--wp--preset--color--base) 20%, transparent);
}
.of-site-footer__bottom {
	color: color-mix(in srgb, var(--wp--preset--color--base) 75%, var(--wp--preset--color--navy-deep));
	font-size: 0.8rem;
}
.of-site-footer__bottom > p,
.of-site-footer__legal > p {
	margin: 0;
}
.of-site-footer__legal {
	gap: 0.25rem 1.25rem;
}
/* "Cookie settings": reopens the Complianz consent banner (class cmplz-manage-consent). Looks like a footer link. */
.of-cookie-settings {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, var(--wp--preset--color--base) 40%, transparent);
	text-underline-offset: 3px;
	cursor: pointer;
}
.of-cookie-settings:hover,
.of-cookie-settings:focus-visible {
	color: var(--wp--preset--color--base);
	text-decoration-color: var(--wp--preset--color--gold);
}
.of-cookie-settings:focus-visible {
	outline: 2px solid var(--wp--preset--color--gold);
	outline-offset: 2px;
}
.of-site-footer__motto {
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 600;
}
@media (prefers-reduced-motion: reduce) {
	.of-site-footer .of-footer-menu .wp-block-navigation-item__content {
		transition: none;
	}
}

/* ---------------------------------------------------------------
 * 14. Back-to-top button
 * ------------------------------------------------------------- */

/*
 * Fixed bottom-right square, printed in functions.php and shown by
 * assets/js/back-to-top.js once the visitor has scrolled down. Navy Deep with
 * a White arrow so it stands out on light sections; the 1px Gold border keeps
 * it visible over the Navy Deep footer. Hover/focus: Gold with a Navy Deep
 * arrow, like the social icons.
 */
.of-back-to-top {
	position: fixed;
	right: var(--wp--custom--spacing--gutter);
	bottom: var(--wp--custom--spacing--gutter);
	z-index: 90; /* under the sticky header (100) */
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	color: var(--wp--preset--color--base);
	background-color: var(--wp--preset--color--navy-deep);
	border: 1px solid var(--wp--preset--color--gold);
	border-radius: 2px;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s, background-color 0.15s ease, color 0.15s ease;
}
.of-back-to-top[hidden] {
	display: none;
}
.of-back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
}
.of-back-to-top:hover,
.of-back-to-top:focus-visible {
	color: var(--wp--preset--color--navy-deep);
	background-color: var(--wp--preset--color--gold);
}
.of-back-to-top:focus-visible {
	outline: 2px solid var(--wp--preset--color--navy);
	outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
	.of-back-to-top {
		transition: none;
	}
}

/* ---------------------------------------------------------------
 * 15. About page sections
 *
 * Building blocks for content pages (About first). All are groups with
 * an of- class in the page content; they sit inside .of-main.
 * ------------------------------------------------------------- */

/* Space between sections on a content page (they sit in the post content
   wrapper inside .of-main). */
.wp-block-post-content > .of-about-section {
	margin-top: var(--wp--preset--spacing--70);
}

/* Hero banner inside a page: the homepage hero's navy waves, boxed to the
   content column, with a smaller title. Also used for the closing CTA band. */
.of-hero.of-hero--page {
	padding: clamp(2rem, 5vw, 3.5rem);
}
.of-hero--page > * {
	margin-block: 0;
	max-width: 46rem;
}
.of-hero--page .of-hero__title {
	margin-top: 0.75rem;
	font-size: var(--wp--preset--font-size--xx-large);
}
.of-hero--page .of-hero__lead {
	margin-top: 0;
	margin-bottom: 0;
}
.of-hero--page .wp-block-buttons {
	margin-top: 2rem;
}
.of-hero--page .of-hero__title:first-child {
	margin-top: 0;
}
.of-hero--page .of-hero__title + .of-hero__lead {
	margin-top: 1.25rem;
}

/* Two columns: text beside a panel. Stacks below 782px. */
.of-split {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}
.of-split > * {
	margin-block: 0;
}
@media (max-width: 781px) {
	.of-split {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Navy Deep quote panel with a large Gold quote mark. */
.of-quote-card {
	position: relative;
	padding: 3.5rem 2.25rem 2.25rem;
	color: var(--wp--preset--color--base);
	background-color: var(--wp--preset--color--navy-deep);
	border-top: 3px solid var(--wp--preset--color--gold);
}
.of-quote-card::before {
	content: "\201C";
	position: absolute;
	top: 0.5rem;
	left: 2rem;
	font-family: var(--wp--preset--font-family--heading-serif);
	font-size: 5rem;
	line-height: 1;
	color: var(--wp--preset--color--gold);
}
.of-quote-card__text {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading-serif);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 700;
	line-height: 1.25;
}
.of-quote-card__cite {
	margin: 1.25rem 0 0;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold);
}

/* Icon cards (the homepage pillar card) in a 4 / 2 / 1 column grid. */
.of-pillar-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.5rem;
	margin-top: 1.5rem;
}
.of-pillar-grid > .of-pillar {
	margin-block: 0;
}
@media (max-width: 1100px) {
	.of-pillar-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 600px) {
	.of-pillar-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 1rem;
	}
}

/* Three-card version (3 / 1 across). */
.of-pillar-grid.of-pillar-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 781px) {
	.of-pillar-grid.of-pillar-grid--3 {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Stat tiles in a single row of four (two on tablets and phones). */
.of-stats-grid.of-stats-grid--row {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 781px) {
	.of-stats-grid.of-stats-grid--row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Numbered values on a Cloud panel. Numbers are Navy (Gold on a light
   surface would fail contrast) with a short Gold rule above. */
.of-values {
	padding: clamp(2rem, 5vw, 3.5rem);
	background-color: var(--wp--preset--color--cloud);
}
.of-values > * {
	margin-block: 0;
}
.of-values > .wp-block-heading {
	margin-top: 1rem;
}
.of-values__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem 3rem;
	margin-top: 2rem !important;
}
/* Flow layout would push every item after the first down, staggering rows. */
.of-values__grid > .of-value,
.of-value > * {
	margin-block: 0;
}
.of-value__num {
	display: inline-block;
	padding-top: 0.6rem;
	font-family: var(--wp--preset--font-family--heading-serif);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 700;
	line-height: 1;
	color: var(--wp--preset--color--navy);
	border-top: 3px solid var(--wp--preset--color--gold);
}
.of-value .wp-block-heading {
	margin-top: 0.75rem;
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--navy-deep);
}
.of-value p:not(.of-value__num) {
	margin-top: 0.5rem;
	color: var(--wp--preset--color--slate);
}
/* Three numbered items in a row (e.g. "How it works" steps). */
.of-values__grid.of-values__grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 781px) {
	.of-values__grid.of-values__grid--3 {
		grid-template-columns: minmax(0, 1fr);
	}
}
@media (max-width: 600px) {
	.of-values__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* List with Navy tick marks instead of bullets. */
.of-check-list {
	padding-left: 0;
	list-style: none;
}
.of-check-list li {
	position: relative;
	padding-left: 2.25rem;
	margin-top: 0.85rem;
}
.of-check-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.1em;
	width: 1.4rem;
	height: 1.4rem;
	background-color: var(--wp--preset--color--navy);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='square'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='square'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Principles: short items with a Gold rule on the left. */
.of-principles {
	align-self: start;
}
.of-principles > * {
	margin-block: 0;
}
.of-principle {
	margin-top: 1.25rem !important;
	padding-left: 1.25rem;
	border-left: 3px solid var(--wp--preset--color--gold);
}
.of-principle > * {
	margin-block: 0;
}
.of-principle .wp-block-heading {
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--navy-deep);
}
.of-principle p {
	margin-top: 0.25rem;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--slate);
}

/*
 * Photo banner (core Cover block with "of-hero-photo"): a page photo under a
 * Navy Deep fade that is solid behind the text on the left and clears
 * towards the right, so White text always passes contrast. Phones get an even
 * fade, since the text runs the full width there. 3px Gold bottom rule like
 * the homepage hero.
 */
.wp-block-cover.of-hero-photo {
	padding: clamp(2rem, 5vw, 3.5rem);
	color: var(--wp--preset--color--base);
	border-bottom: 3px solid var(--wp--preset--color--gold);
}
.of-hero-photo > .wp-block-cover__background {
	opacity: 1 !important;
	background: linear-gradient(
		90deg,
		var(--wp--preset--color--navy-deep) 0%,
		color-mix(in srgb, var(--wp--preset--color--navy-deep) 88%, transparent) 40%,
		color-mix(in srgb, var(--wp--preset--color--navy-deep) 20%, transparent) 100%
	) !important;
}
@media (max-width: 781px) {
	.of-hero-photo > .wp-block-cover__background {
		background: color-mix(in srgb, var(--wp--preset--color--navy-deep) 82%, transparent) !important;
	}
}
.of-hero-photo .wp-block-cover__inner-container > * {
	max-width: 40rem;
	margin-block: 0;
}
.of-hero-photo .of-hero__title {
	margin-top: 0.75rem;
	font-size: var(--wp--preset--font-size--xx-large);
}
.of-hero-photo .of-hero__title:first-child {
	margin-top: 0;
}
.of-hero-photo .of-hero__lead {
	margin-top: 1.25rem;
}
.of-hero-photo .wp-block-buttons {
	margin-top: 2rem;
}
.of-hero-photo .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	color: var(--wp--preset--color--navy-deep);
	background-color: var(--wp--preset--color--base);
}
.of-hero-photo .is-style-outline .wp-block-button__link {
	color: var(--wp--preset--color--base);
}
.of-hero-photo .is-style-outline .wp-block-button__link:hover {
	color: var(--wp--preset--color--gold);
}

/* Content photo (Image block with "of-photo"): fixed 4:3 crop, 3px Gold
   bottom rule. "of-photo--wide" crops 16:9. */
.wp-block-image.of-photo {
	margin: 0;
}
.wp-block-image.of-photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-bottom: 3px solid var(--wp--preset--color--gold);
}
.wp-block-image.of-photo--wide img {
	aspect-ratio: 16 / 9;
}

/* Photo with the quote card overlapping its lower edge. */
.of-media-stack > * {
	margin-block: 0;
}
.of-media-stack > .of-quote-card {
	position: relative;
	margin: -4rem 0 0 2.5rem !important;
}
@media (max-width: 600px) {
	.of-media-stack > .of-quote-card {
		margin: -2rem 0 0 1rem !important;
	}
}

/* Principles in a row of four (two on tablets, one on phones). */
.of-principles-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.5rem 2rem;
	margin-top: 1.5rem !important;
}
.of-principles-grid > .of-principle {
	margin-top: 0 !important;
}
@media (max-width: 1100px) {
	.of-principles-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 600px) {
	.of-principles-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Picture link cards (Resources): photo on top, text below, the whole card
   lifts its border on hover. 3 / 1 across. */
.of-link-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
}
.of-link-card {
	display: flex;
	flex-direction: column;
	margin-block: 0 !important;
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	transition: border-color 0.15s ease;
}
.of-link-card:hover {
	border-color: var(--wp--preset--color--navy);
}
.of-link-card > * {
	margin-block: 0;
}
.of-link-card .wp-block-image {
	margin: 0;
	overflow: hidden;
}
.of-link-card .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: transform 0.3s ease;
}
.of-link-card:hover .wp-block-image img {
	transform: scale(1.04);
}
.of-link-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1.5rem;
}
.of-link-card__body > * {
	margin-block: 0;
}
.of-link-card__body .wp-block-heading {
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--navy-deep);
}
.of-link-card__body p {
	margin-top: 0.5rem;
	color: var(--wp--preset--color--slate);
}
.of-link-card__body .of-more-link {
	margin-top: auto;
	padding-top: 1.25rem;
}
@media (max-width: 781px) {
	.of-link-cards {
		grid-template-columns: minmax(0, 1fr);
	}
}
@media (prefers-reduced-motion: reduce) {
	.of-link-card,
	.of-link-card .wp-block-image img {
		transition: none;
	}
	.of-link-card:hover .wp-block-image img {
		transform: none;
	}
}

/* "Last updated" line at the top of the privacy policy. */
.of-privacy-updated {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--slate);
}
.wp-block-post-content > .of-notice {
	margin-block: 2rem !important;
}

/* ---------------------------------------------------------------
 * 16. Contact page
 * ------------------------------------------------------------- */

/* Info column beside the form card; stacks (form first) below 900px. */
.of-contact {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: start;
}
.of-contact > *,
.of-contact__info > *,
.of-contact-item > *,
.of-notice > *,
.of-form-card > * {
	margin-block: 0;
}
.of-contact__info > .wp-block-heading {
	margin-top: 1rem;
	margin-bottom: 0.5rem;
}
.of-contact__info > .of-photo {
	margin-bottom: 2rem;
}
.of-contact__info > .of-form-note {
	margin-top: 1rem;
}
@media (max-width: 900px) {
	.of-contact {
		grid-template-columns: minmax(0, 1fr);
	}
	.of-contact .of-form-card {
		order: -1;
	}
}

/* Icon beside a short title and line of text. */
.of-contact-item {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	column-gap: 1rem;
	row-gap: 0.15rem;
	padding-block: 1.1rem;
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.of-contact-item .of-pillar__icon {
	grid-row: span 2;
	width: 44px;
	height: 44px;
}
.of-contact-item .of-pillar__icon svg {
	width: 22px;
	height: 22px;
}
.of-contact-item .wp-block-heading {
	align-self: end;
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--navy-deep);
}
.of-contact-item p {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--slate);
}

/* Important-information panel: Sky with a Navy left rule. */
.of-notice {
	margin-top: 1.75rem !important;
	padding: 1.25rem 1.5rem;
	background-color: var(--wp--preset--color--sky);
	border-left: 4px solid var(--wp--preset--color--navy);
	border-radius: 0 8px 8px 0;
}
.of-notice .wp-block-heading {
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--navy-deep);
}
.of-notice p {
	margin-top: 0.35rem;
	font-size: var(--wp--preset--font-size--small);
}

.of-contact__follow {
	margin-top: 1.75rem !important;
	margin-bottom: 0.5rem !important;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--navy-deep);
}

/* White card holding a form: Gold top rule, soft Navy Deep shadow. */
.of-form-card {
	padding: clamp(1.5rem, 4vw, 2.75rem);
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-top: 3px solid var(--wp--preset--color--gold);
	border-radius: 0 0 12px 12px;
	box-shadow: 0 12px 32px color-mix(in srgb, var(--wp--preset--color--navy-deep) 12%, transparent);
}
.of-form-card > .wp-block-heading {
	font-size: var(--wp--preset--font-size--x-large);
}
.of-form-card__intro {
	margin-top: 0.5rem !important;
	margin-bottom: 1.75rem !important;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--slate);
}

/* ---------------------------------------------------------------
 * 17. Forms (Contact Form 7)
 *
 * Every CF7 form on the site (Contact, Report an Incident). Labels above
 * fields; Cloud fields with a 3:1 outline that turn White with a Navy border
 * and soft Gold glow on focus; 8px field corners and a 10px Gold submit
 * button like the "All news" buttons. Wrap paired fields in
 * <div class="of-form-row"> in the form editor to sit them side by side.
 * ------------------------------------------------------------- */

.wpcf7 {
	--of-field-border: color-mix(in srgb, var(--wp--preset--color--slate) 70%, var(--wp--preset--color--base));
}
.wpcf7-form > p,
.wpcf7-form .of-form-row > p {
	margin: 0 0 1.25rem;
}
.of-form-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 1.25rem;
}
@media (max-width: 600px) {
	.of-form-row {
		grid-template-columns: minmax(0, 1fr);
	}
}

.wpcf7-form label {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--wp--preset--color--ink);
}
.wpcf7-form label br {
	display: none;
}
.wpcf7-form-control-wrap {
	position: relative;
	display: block;
}

.wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.wpcf7-form select,
.wpcf7-form textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	padding: 0.75rem 1rem;
	font: inherit;
	font-size: 1rem;
	font-weight: 400;
	color: var(--wp--preset--color--ink);
	background-color: var(--wp--preset--color--cloud);
	border: 1px solid var(--of-field-border);
	border-radius: 8px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.wpcf7-form textarea {
	min-height: 160px;
	resize: vertical;
}
.wpcf7-form ::placeholder {
	color: var(--wp--preset--color--slate);
	opacity: 1;
}
.wpcf7-form input:not([type="submit"]):hover,
.wpcf7-form select:hover,
.wpcf7-form textarea:hover {
	border-color: var(--wp--preset--color--navy);
}
.wpcf7-form input:not([type="submit"]):focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
	outline: none;
	background-color: var(--wp--preset--color--base);
	border-color: var(--wp--preset--color--navy);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--wp--preset--color--gold) 40%, transparent);
}

/* Drop-down: our own chevron (in the text colour) instead of the browser's. */
.wpcf7-form select {
	appearance: none;
	padding-right: 2.75rem;
	cursor: pointer;
}
.wpcf7-form-control-wrap:has(select)::after {
	content: "";
	position: absolute;
	top: 24px;
	right: 1rem;
	width: 14px;
	height: 14px;
	transform: translateY(-50%);
	pointer-events: none;
	background-color: var(--wp--preset--color--navy);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='square'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='square'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.of-form-note {
	font-size: 0.8rem;
	color: var(--wp--preset--color--slate);
}
.wpcf7-form > .of-form-note {
	margin-bottom: 1.5rem;
}

/* Submit: Gold, 10px corners, full width on phones. */
.wpcf7-form .wpcf7-submit {
	min-height: 50px;
	padding: 0.85rem 2rem;
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--navy-deep);
	background-color: var(--wp--preset--color--gold);
	border: 0;
	border-radius: 10px;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.wpcf7-form .wpcf7-submit:hover,
.wpcf7-form .wpcf7-submit:focus-visible {
	color: var(--wp--preset--color--base);
	background-color: var(--wp--preset--color--navy);
}
.wpcf7-form .wpcf7-submit:focus-visible {
	outline: 2px solid var(--wp--preset--color--navy);
	outline-offset: 2px;
}
.wpcf7-form .wpcf7-submit:disabled {
	opacity: 0.6;
	cursor: wait;
}
@media (max-width: 600px) {
	.wpcf7-form .wpcf7-submit {
		width: 100%;
	}
}

/* Validation (selectors match the field rules above so they win). */
.wpcf7-form :is(input, select, textarea).wpcf7-not-valid:not([type="submit"]):not([type="checkbox"]):not([type="radio"]) {
	border-color: var(--wp--preset--color--error);
	background-color: var(--wp--preset--color--base);
}
.wpcf7-form :is(input, select, textarea).wpcf7-not-valid:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):focus {
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--wp--preset--color--error) 20%, transparent);
}
.wpcf7-not-valid-tip {
	margin-top: 0.4rem;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--wp--preset--color--error);
}

/* Message after sending: tinted panel with a coloured left rule. */
.wpcf7 form .wpcf7-response-output {
	margin: 1.5rem 0 0;
	padding: 0.9rem 1.1rem;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	border: 0;
	border-left: 4px solid var(--wp--preset--color--navy);
	border-radius: 0 8px 8px 0;
	background-color: var(--wp--preset--color--sky);
	color: var(--wp--preset--color--ink);
}
.wpcf7 form.sent .wpcf7-response-output {
	border-left-color: var(--wp--preset--color--success);
	background-color: color-mix(in srgb, var(--wp--preset--color--success) 8%, var(--wp--preset--color--base));
	color: var(--wp--preset--color--success);
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
	border-left-color: var(--wp--preset--color--error);
	background-color: color-mix(in srgb, var(--wp--preset--color--error) 6%, var(--wp--preset--color--base));
	color: var(--wp--preset--color--error);
}

@media (prefers-reduced-motion: reduce) {
	.wpcf7-form input,
	.wpcf7-form select,
	.wpcf7-form textarea,
	.wpcf7-form .wpcf7-submit {
		transition: none;
	}
}
