/* ==========================================================================
   AgentCOS theme
   Tokens come from theme.json. The --acos-* aliases are what sections read,
   so a section works on any site that sets these variables.
   Spacing runs on an 8px grid: 8, 16, 24, 32, 48, 64, 96, 128.
   ========================================================================== */

:root {
	--acos-ink: var(--wp--preset--color--ink, #0A1628);
	--acos-ink-soft: var(--wp--preset--color--ink-soft, #15263F);
	--acos-paper: var(--wp--preset--color--paper, #FFFFFF);
	--acos-mist: var(--wp--preset--color--mist, #F2F5F9);
	--acos-line: var(--wp--preset--color--line, #DCE3EC);
	--acos-muted: var(--wp--preset--color--muted, #55657A);
	--acos-accent: var(--wp--preset--color--accent, #00C9A7);
	--acos-accent-ink: var(--wp--preset--color--accent-ink, #0A1628);
	--acos-on-dark: var(--wp--preset--color--on-dark, #EDEDED);
	--acos-gold: #D3B574;
	--acos-title-size-sm: 32px;
	--acos-title-size: 40px;

	--acos-font-body: var(--wp--preset--font-family--body, system-ui, sans-serif);
	--acos-font-heading: var(--wp--preset--font-family--heading, var(--acos-font-body));

	--acos-radius-sm: 4px;
	--acos-radius-md: 8px;
	--acos-radius-lg: 16px;
	--acos-radius-pill: 999px;
	--acos-shadow: 0 16px 40px rgba(10, 22, 40, 0.10);

	--acos-content: 720px;
	--acos-wide: 1280px;
	--acos-gutter: 24px;
	--acos-section-y: 64px;
	--acos-header-h: 72px;
	--acos-admin-bar: 0px;
}

@media (min-width: 768px) {
	:root {
		--acos-gutter: 32px;
		--acos-section-y: 72px;
	}
}

@media (min-width: 1200px) {
	:root {
		--acos-gutter: 48px;
		--acos-section-y: 80px;
		--acos-header-h: 80px;
	}
}

.admin-bar { --acos-admin-bar: 46px; }
@media (min-width: 783px) { .admin-bar { --acos-admin-bar: 32px; } }

/* Base
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--acos-header-h) + 24px);
}

body {
	margin: 0;
	background: var(--acos-paper);
	color: var(--acos-ink);
	font-family: var(--acos-font-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

:focus-visible {
	outline: 2px solid var(--acos-accent);
	outline-offset: 2px;
}

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

.acos-skip-link {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 100;
	padding: 8px 16px;
	background: var(--acos-ink);
	color: var(--acos-paper);
	border-radius: var(--acos-radius-sm);
	transform: translateY(-200%);
}
.acos-skip-link:focus { transform: none; }

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

.acos-button,
.wp-element-button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 24px;
	border: 1px solid transparent;
	border-radius: var(--acos-radius-pill);
	background: var(--acos-accent);
	color: var(--acos-accent-ink);
	font: 400 16px/1.2 var(--acos-font-body);
	text-decoration: none;
	cursor: pointer;
	transition: background-color 160ms ease, color 160ms ease;
}
.acos-button:hover,
.wp-element-button:hover,
.wp-block-button__link:hover {
	background: var(--acos-ink);
	color: var(--acos-on-dark);
}

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

.acos-header {
	/* Surface colors. White by default; .acos-header--dark switches them. */
	--_hbg: var(--acos-paper);
	--_hfg: var(--acos-ink);
	--_hline: var(--acos-line);
	--_hsoft: var(--acos-muted);

	position: sticky;
	top: var(--acos-admin-bar);
	z-index: 50;
	background: var(--_hbg);
	color: var(--_hfg);
	border-bottom: 1px solid var(--_hline);
	transition: background-color 240ms ease, color 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}
.acos-header--dark {
	--_hbg: var(--acos-ink);
	--_hfg: #FFFFFF;
	--_hline: rgba(255, 255, 255, 0.12);
	--_hsoft: rgba(255, 255, 255, 0.72);
}

.acos-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	max-width: calc(var(--acos-wide) + 2 * var(--acos-gutter));
	height: var(--acos-header-h);
	margin-inline: auto;
	padding-inline: var(--acos-gutter);
}

/* Logos
   A logo slot has a version for light backgrounds, one for dark backgrounds,
   or one version that is recolored white or black to fit the background. */

.acos-header,
.acos-footer {
	--_on-light: block;
	--_on-dark: none;
	--_dark-only: brightness(0);
	--_light-only: none;
}
.acos-header--dark,
.acos-footer {
	--_on-light: none;
	--_on-dark: block;
	--_dark-only: none;
	--_light-only: brightness(0) invert(1);
}

.acos-brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.acos-brand__home,
.acos-brand__aff { display: flex; align-items: center; flex: none; }
.acos-logo { display: block; width: auto; max-width: none; }
.acos-logo--on-light { display: var(--_on-light); }
.acos-logo--on-dark { display: var(--_on-dark); }
.acos-logo--dark-only { filter: var(--_dark-only); }
.acos-logo--light-only { filter: var(--_light-only); }
.acos-logo--main { height: calc(var(--acos-logo-h, 48px) * 0.8); }
.acos-logo--aff { height: calc(var(--acos-aff-h, 32px) * 0.75); }
.acos-brand__divider {
	flex: none;
	width: 1px;
	height: calc(var(--acos-logo-h, 48px) * 0.66);
	background: currentColor;
	opacity: 0.32;
}
.acos-brand__name {
	font-family: var(--acos-font-heading);
	font-size: 20px;
	font-weight: var(--acos-heading-weight, 700);
	letter-spacing: calc(-0.01em * var(--acos-heading-tracking, 1));
	text-decoration: none;
	white-space: nowrap;
}

/* On narrow phones the affiliation logo moves into the menu and the footer. */
@media (max-width: 359px) {
	.acos-brand--header .acos-brand__divider,
	.acos-brand--header .acos-brand__aff { display: none; }
}

@media (min-width: 1024px) {
	.acos-brand { gap: 24px; }
	.acos-logo--main { height: var(--acos-logo-h, 48px); }
	.acos-logo--aff { height: var(--acos-aff-h, 32px); }
}

.acos-brand--footer .acos-logo--main { height: var(--acos-logo-h, 48px); }
.acos-brand--footer .acos-logo--aff { height: var(--acos-aff-h, 32px); }
.acos-brand--footer { flex-wrap: wrap; }

.acos-nav__aff { display: none; }
@media (max-width: 359px) {
	.acos-nav__aff { display: flex; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--_hline); }
	.acos-nav__aff .acos-logo--aff { height: var(--acos-aff-h, 32px); }
}

/* Transparent header over an opening hero: dark surface until scrolled. */
.acos-overlay-header .acos-header {
	position: fixed;
	inset-inline: 0;
	background: transparent;
	border-bottom-color: transparent;
	color: var(--acos-on-dark, #EDEDED);
}
.acos-overlay-header .acos-header:not(.is-scrolled):not(.is-open) {
	--_on-light: none;
	--_on-dark: block;
	--_dark-only: none;
	--_light-only: brightness(0) invert(1);
}
.acos-overlay-header .acos-header.is-scrolled,
.acos-overlay-header .acos-header.is-open {
	background: var(--_hbg);
	border-bottom-color: var(--_hline);
	color: var(--_hfg);
	box-shadow: 0 8px 24px rgba(10, 22, 40, 0.06);
}

/* Navigation */

.acos-nav__list,
.acos-nav__list ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.acos-nav__list a {
	display: block;
	text-decoration: none;
	font-size: 16px;
	font-weight: 500;
}

.acos-nav__list .is-cta > a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 8px 24px;
	border-radius: var(--acos-radius-pill);
	background: var(--acos-accent);
	color: var(--acos-accent-ink);
	font-weight: 400;
}

.acos-nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-right: -12px;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.acos-nav-toggle__bars,
.acos-nav-toggle__bars::before,
.acos-nav-toggle__bars::after {
	display: block;
	width: 24px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform 200ms ease, opacity 200ms ease;
}
.acos-nav-toggle__bars { position: relative; }
.acos-nav-toggle__bars::before,
.acos-nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.acos-nav-toggle__bars::before { top: -8px; }
.acos-nav-toggle__bars::after { top: 8px; }
.acos-nav-toggle[aria-expanded="true"] .acos-nav-toggle__bars { background: transparent; }
.acos-nav-toggle[aria-expanded="true"] .acos-nav-toggle__bars::before { transform: translateY(8px) rotate(45deg); }
.acos-nav-toggle[aria-expanded="true"] .acos-nav-toggle__bars::after { transform: translateY(-8px) rotate(-45deg); }

/* Mobile menu panel */
@media (max-width: 1023px) {
	.acos-nav {
		position: fixed;
		top: calc(var(--acos-admin-bar) + var(--acos-header-h));
		inset-inline: 0;
		bottom: 0;
		overflow-y: auto;
		padding: 24px var(--acos-gutter) 48px;
		background: var(--_hbg);
		color: var(--_hfg);
		visibility: hidden;
		opacity: 0;
		transform: translateY(-8px);
		transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear 200ms;
	}
	.acos-nav.is-open {
		visibility: visible;
		opacity: 1;
		transform: none;
		transition: opacity 200ms ease, transform 200ms ease;
	}
	.acos-nav__list > li { border-bottom: 1px solid var(--_hline); }
	.acos-nav__list > li > a { padding: 16px 0; font-size: 24px; font-weight: 400; }
	.acos-nav__list .sub-menu { padding-bottom: 16px; }
	.acos-nav__list .sub-menu a { padding: 8px 0; color: var(--_hsoft); }
	.acos-nav__list > .is-cta { border-bottom: 0; padding-top: 24px; }
	.acos-nav__list > .is-cta > a { min-height: 48px; font-size: 16px; }
	body.acos-nav-open { overflow: hidden; }
}

/* Desktop menu */
@media (min-width: 1024px) {
	.acos-nav-toggle { display: none; }
	.acos-nav__list { display: flex; align-items: center; gap: 32px; }
	.acos-nav__list > li { position: relative; }
	.acos-nav__list > li > a { padding: 8px 0; }
	.acos-nav__list > li:not(.is-cta) > a:hover { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; }

	.acos-nav__list .sub-menu {
		position: absolute;
		top: 100%;
		left: -16px;
		min-width: 240px;
		padding: 8px;
		border-radius: var(--acos-radius-md);
		background: var(--acos-paper);
		color: var(--acos-ink);
		box-shadow: var(--acos-shadow);
		visibility: hidden;
		opacity: 0;
		transform: translateY(8px);
		transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
	}
	.acos-nav__list li:hover > .sub-menu,
	.acos-nav__list li:focus-within > .sub-menu {
		visibility: visible;
		opacity: 1;
		transform: none;
		transition: opacity 160ms ease, transform 160ms ease;
	}
	.acos-nav__list .sub-menu a { padding: 8px 16px; border-radius: var(--acos-radius-sm); }
	.acos-nav__list .sub-menu a:hover { background: var(--acos-mist); }
}

/* Page layout
   ========================================================================== */

.acos-main { display: block; }

.acos-page-header {
	padding: var(--acos-section-y) var(--acos-gutter) 48px;
}
.acos-page-header__inner {
	max-width: var(--acos-wide);
	margin-inline: auto;
}
.acos-page-header__title {
	max-width: 16ch;
	margin: 0;
	font-size: 40px;
}
.acos-page-header__intro {
	max-width: 56ch;
	margin: 24px 0 0;
	color: var(--acos-muted);
	font-size: 18px;
}
@media (min-width: 768px) {
	.acos-page-header__title { font-size: 56px; }
	.acos-page-header__intro { font-size: 20px; }
}

/* Content column. Regular blocks sit in the reading column; wide and full blocks break out. */
.acos-content > * {
	max-width: min(var(--acos-content), 100% - 2 * var(--acos-gutter));
	margin-inline: auto;
}
.acos-content > .alignwide { max-width: min(var(--acos-wide), 100% - 2 * var(--acos-gutter)); }
.acos-content > .alignfull { max-width: none; }
.acos-content > .alignfull:first-child { margin-top: 0; }

.acos-content--prose { padding-bottom: var(--acos-section-y); }

/* Prose
   ========================================================================== */

.acos-content--prose > * { margin-block: 0; }
.acos-content--prose > * + * { margin-top: 24px; }
.acos-content--prose > :is(h2, h3, h4) { margin-top: 48px; }
.acos-content--prose > :is(h2, h3, h4) + * { margin-top: 16px; }

.acos-content--prose h2 { font-size: 28px; }
.acos-content--prose h3 { font-size: 22px; }
.acos-content--prose h4 { font-size: 20px; }
.acos-content--prose :is(h2, h3, h4) { line-height: 1.2; }
@media (min-width: 768px) {
	.acos-content--prose h2 { font-size: 32px; }
	.acos-content--prose h3 { font-size: 24px; }
	.acos-content--prose h4 { font-size: 20px; }
}

.acos-content--prose :is(p, li) { font-size: 18px; line-height: 1.7; }
@media (min-width: 768px) {
	.acos-content--prose :is(p, li) { font-size: 20px; }
}

.acos-content--prose a {
	text-decoration-color: var(--acos-accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}
.acos-content--prose a:hover { text-decoration-thickness: 3px; }

.acos-content--prose :is(ul, ol) { padding-left: 24px; }
.acos-content--prose li + li { margin-top: 8px; }
.acos-content--prose li::marker { color: var(--acos-muted); }

.acos-content--prose :is(blockquote, .wp-block-quote) {
	position: relative;
	margin-inline: auto;
	padding: 48px 0 0;
	border: 0;
	font-size: 24px;
	line-height: 1.4;
	font-weight: 500;
	letter-spacing: -0.01em;
}
.acos-content--prose :is(blockquote, .wp-block-quote)::before {
	content: "“";
	position: absolute;
	top: -8px;
	left: 0;
	color: var(--acos-accent);
	font-size: 80px;
	line-height: 1;
	font-weight: 700;
}
.acos-content--prose :is(blockquote, .wp-block-quote) p { font-size: inherit; line-height: inherit; }
.acos-content--prose :is(blockquote, .wp-block-quote) cite {
	display: block;
	margin-top: 16px;
	color: var(--acos-muted);
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
}

.acos-content--prose :is(figure, .wp-block-image) img { display: block; border-radius: var(--acos-radius-md); }
.acos-content--prose figcaption,
.acos-post__image figcaption {
	margin-top: 8px;
	color: var(--acos-muted);
	font-size: 16px;
}

.acos-content--prose hr {
	height: 1px;
	margin-block: 48px;
	border: 0;
	background: var(--acos-line);
}

.acos-content--prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.acos-content--prose :is(th, td) { padding: 12px 16px; border-bottom: 1px solid var(--acos-line); text-align: left; }
.acos-content--prose th { font-weight: 600; }

.acos-content--prose code {
	padding: 2px 4px;
	border-radius: var(--acos-radius-sm);
	background: var(--acos-mist);
	font-size: 0.9em;
}

/* Single post
   ========================================================================== */

.acos-post__header {
	max-width: min(var(--acos-content), 100% - 2 * var(--acos-gutter));
	margin: 0 auto;
	padding-top: 64px;
	padding-bottom: 48px;
}
@media (min-width: 1200px) { .acos-post__header { padding-top: 96px; } }

.acos-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
	color: var(--acos-muted);
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.acos-crumbs a { text-decoration: none; }
.acos-crumbs a:hover { color: var(--acos-ink); }

.acos-post__title { margin: 0; font-size: 32px; line-height: 1.2; }
@media (min-width: 768px) { .acos-post__title { font-size: 40px; } }

.acos-post__dek {
	margin: 24px 0 0;
	color: color-mix(in srgb, var(--acos-ink) 84%, #FFFFFF);
	font-size: 20px;
	font-weight: 400;
	line-height: 28px;
}
@media (min-width: 768px) { .acos-post__dek { font-size: 24px; line-height: 32px; } }

.acos-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 24px 0 0;
	color: var(--acos-muted);
	font-size: 16px;
}
.acos-meta__sep { opacity: 0.6; }

.acos-post__image {
	max-width: min(var(--acos-wide), 100% - 2 * var(--acos-gutter));
	margin: 0 auto 64px;
}
.acos-post__image img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: var(--acos-radius-lg);
}

.acos-post__tags,
.acos-post__after {
	max-width: min(var(--acos-content), 100% - 2 * var(--acos-gutter));
	margin: 0 auto 64px;
}

.acos-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.acos-tags a {
	display: inline-block;
	padding: 4px 16px;
	border: 1px solid var(--acos-line);
	border-radius: var(--acos-radius-pill);
	font-size: 16px;
	text-decoration: none;
}
.acos-tags a:hover { border-color: var(--acos-ink); }

.acos-post__after {
	padding: 32px;
	border-radius: var(--acos-radius-lg);
	background: var(--acos-ink);
	color: var(--acos-paper);
}
.acos-post__after .acos-widget__title { margin: 0 0 8px; font-size: 24px; }
.acos-post__after p { margin: 0 0 16px; }

.acos-related {
	padding: var(--acos-section-y) var(--acos-gutter);
	background: var(--acos-mist);
}
.acos-related__inner { max-width: var(--acos-wide); margin-inline: auto; }
.acos-related__title { margin: 0 0 32px; font-size: 32px; }

/* Cards and archive
   ========================================================================== */

.acos-archive {
	max-width: calc(var(--acos-wide) + 2 * var(--acos-gutter));
	margin-inline: auto;
	padding: 0 var(--acos-gutter) var(--acos-section-y);
}

.acos-grid {
	display: grid;
	gap: 48px 32px;
	grid-template-columns: 1fr;
}
@media (min-width: 640px) { .acos-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .acos-grid { grid-template-columns: repeat(3, 1fr); } }

.acos-card { display: flex; flex-direction: column; gap: 24px; }
.acos-card__body { display: flex; flex-direction: column; gap: 8px; }

.acos-card__media {
	display: block;
	overflow: hidden;
	border-radius: var(--acos-radius-md);
	background: var(--acos-mist);
	aspect-ratio: 16 / 10;
}
.acos-card__media img,
.acos-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 400ms ease;
}
.acos-card:hover .acos-card__media img { transform: scale(1.03); }
.acos-card__placeholder {
	background:
		linear-gradient(160deg, var(--acos-ink-soft), var(--acos-ink));
}

.acos-card__cat {
	margin: 0;
	color: var(--acos-muted);
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.acos-card__title { margin: 0; font-size: 24px; line-height: 1.2; }
.acos-card__title a { text-decoration: none; }
.acos-card__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.acos-card__excerpt { margin: 0; color: var(--acos-muted); font-size: 16px; line-height: 1.6; }
.acos-card .acos-meta { margin-top: 8px; }

.acos-card--featured { margin-bottom: 64px; }
@media (min-width: 1024px) {
	.acos-card--featured {
		display: grid;
		grid-template-columns: 7fr 5fr;
		align-items: center;
		gap: 48px;
	}
	.acos-card--featured .acos-card__media { aspect-ratio: 3 / 2; border-radius: var(--acos-radius-lg); }
	.acos-card--featured .acos-card__body { display: flex; flex-direction: column; gap: 16px; }
	.acos-card--featured .acos-card__title { font-size: 40px; }
	.acos-card--featured .acos-card__excerpt { font-size: 18px; }
}
.acos-card--featured .acos-card__body { display: flex; flex-direction: column; gap: 16px; }

.pagination { margin-top: 64px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	height: 48px;
	padding: 0 16px;
	border: 1px solid var(--acos-line);
	border-radius: var(--acos-radius-pill);
	text-decoration: none;
	font-weight: 600;
}
.pagination .page-numbers.current { background: var(--acos-ink); border-color: var(--acos-ink); color: var(--acos-paper); }

.acos-empty { color: var(--acos-muted); }

.search-form { display: flex; gap: 8px; }
.search-form .search-field {
	flex: 1;
	min-height: 48px;
	padding: 8px 16px;
	border: 1px solid var(--acos-line);
	border-radius: var(--acos-radius-pill);
	font: inherit;
}
.search-form .search-submit {
	min-height: 48px;
	padding: 8px 24px;
	border: 0;
	border-radius: var(--acos-radius-pill);
	background: var(--acos-ink);
	color: var(--acos-paper);
	font: 400 16px/1 var(--acos-font-body);
	cursor: pointer;
}

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

.acos-footer {
	background: var(--acos-ink);
	color: var(--acos-paper);
}

.acos-footer__inner,
.acos-footer__bottom {
	max-width: calc(var(--acos-wide) + 2 * var(--acos-gutter));
	margin-inline: auto;
	padding-inline: var(--acos-gutter);
}

.acos-footer__inner {
	display: grid;
	gap: 48px;
	padding-block: 64px;
}
@media (min-width: 1024px) {
	.acos-footer__inner { grid-template-columns: 4fr 8fr; padding-block: 96px; }
}

.acos-footer__tagline {
	max-width: 32ch;
	margin: 16px 0 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: 16px;
}

.acos-footer__list,
.acos-footer__list ul { margin: 0; padding: 0; list-style: none; }
.acos-footer__list {
	display: grid;
	gap: 32px;
	grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .acos-footer__list { grid-template-columns: repeat(4, 1fr); } }
.acos-footer__list > li > a { font-weight: 600; }
.acos-footer__list a { text-decoration: none; font-size: 16px; }
.acos-footer__list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.acos-footer__list .sub-menu { display: grid; gap: 8px; margin-top: 16px; }
.acos-footer__list .sub-menu a { color: rgba(255, 255, 255, 0.72); }

.acos-footer__bottom {
	padding-block: 0 32px;
	color: rgba(255, 255, 255, 0.64);
	font-size: 16px;
}
.acos-footer__bottom::before {
	content: "";
	display: block;
	height: 1px;
	margin-bottom: 32px;
	background: rgba(255, 255, 255, 0.12);
}
.acos-footer__legal { margin-bottom: 16px; }
.acos-footer__legal p { margin: 0 0 8px; }
.acos-footer__copy { margin: 0; }

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

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* Gold underlines on links in text, the same on every section. */
:is(.acos-content--prose, .acos-pillars, .acos-post-feed, .acos-showcase, .acos-features, .acos-contact__details) a {
	text-decoration-color: var(--acos-gold);
}

/* ==========================================================================
   Brand colors in the sections (this site only)
   ========================================================================== */
:root {
	--acos-deep: #0D3339;
	--acos-petrol: #14505A;
	--acos-teal: #0E7C86;
	--acos-aqua: #7ED6D5;
	--acos-champagne: #E4D2AE;
	--acos-champagne-light: #F5EEE1;
}

/* The short line before every eyebrow is gold. */
body [class*="__eyebrow"]::before { background: var(--acos-gold); }

/* Hero without a photo: one flat dark, a step darker than the dark sections, no fade and no grain. */
body .acos-hero--no-image .acos-hero__media { background: #22201E; }
body .acos-hero--no-image .acos-hero__shade::after { display: none; }

/* Light sections: deep water headings, petrol item titles, teal eyebrows, champagne lines. */
body :is(.acos-features--light, .acos-features--mist, .acos-pillars--light, .acos-pillars--mist, .acos-showcase--light, .acos-feed--light, .acos-contact--light) :is(.acos-features__title, .acos-pillars__title, .acos-showcase__title, .acos-feed__title, .acos-contact__title) { color: var(--acos-deep); }
body :is(.acos-features--light, .acos-features--mist) .acos-features__item-title,
body :is(.acos-pillars--light, .acos-pillars--mist) .acos-pillars__word,
body .acos-showcase--light .acos-showcase__item-title { color: var(--acos-petrol); }
body :is(.acos-features--light, .acos-features--mist, .acos-pillars--light, .acos-pillars--mist, .acos-feed--light, .acos-showcase--light) [class*="__eyebrow"] { color: var(--acos-teal); }
body .acos-features--list:is(.acos-features--light, .acos-features--mist) .acos-features__item { padding-top: 24px; border-top: 1px solid var(--acos-champagne); }

/* Dark sections: champagne light text, aqua item titles, gold lines. */
body :is(.acos-features--dark, .acos-features--gunmetal) {
	--_fg: var(--acos-on-dark);
	--_soft: color-mix(in srgb, var(--acos-on-dark) 78%, transparent);
}
body :is(.acos-features--dark, .acos-features--gunmetal) .acos-features__item-title,
body :is(.acos-pillars--dark, .acos-pillars--gunmetal) .acos-pillars__word,
body :is(.acos-showcase--dark, .acos-showcase--gunmetal) .acos-showcase__item-title { color: var(--acos-aqua); }
body .acos-features--list:is(.acos-features--dark, .acos-features--gunmetal) .acos-features__item { padding-top: 24px; border-top: 1px solid rgba(211, 181, 116, 0.56); }

/* Form button: gold on hover. */
body .acos-contact .acos-contact__button.acos-contact__button:hover { background: var(--acos-gold); color: var(--acos-ink); }

/* Body text: 19px, weight 400, line height 1.6. */
body { font-size: 19px; font-weight: 400; line-height: 1.6; }
body .acos-content--prose :is(p, li) { font-size: 19px; font-weight: 400; line-height: 1.6; }
