/*
 * Apartment Cats: header and footer (parts/header.html, parts/footer.html).
 * Colors come from the theme.json palette variables, so dark mode follows tokens.css.
 * No JavaScript: the search and menu buttons are <details> elements that share one name, so only one is open.
 */

/* Icons: Phosphor regular (MIT), drawn in the current text color. */
.ac-pop--search {
	--ac-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z'/%3E%3C/svg%3E");
}
.ac-pop--menu {
	--ac-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM40,72H216a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16ZM216,184H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z'/%3E%3C/svg%3E");
}
.ac-pop[open] {
	--ac-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z'/%3E%3C/svg%3E");
}

/* Header: 64px, surface, one hairline under it, not sticky. */
.ac-header {
	position: relative;
	box-shadow: inset 0 -1px 0 var(--wp--preset--color--line);
}
.ac-header .ac-header__bar {
	min-height: 64px;
	gap: var(--wp--preset--spacing--20);
}
.ac-header .ac-header__logo {
	flex: none;
	margin-right: auto;
}
.ac-header__logo a,
.ac-footer__logo a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

/* Hub links (one line from 1024px). */
.ac-header .ac-nav--bar .wp-block-navigation__container {
	gap: var(--wp--preset--spacing--10);
}
.ac-header .ac-nav .wp-block-navigation-item__content {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 0 var(--wp--preset--spacing--30);
	border-radius: var(--wp--custom--radius--control);
	color: var(--wp--preset--color--ink);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
}
.ac-header .ac-nav .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--surface-2);
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}
.ac-header .ac-nav--bar .wp-block-navigation-item__content[aria-current] {
	color: var(--wp--preset--color--accent);
	box-shadow: inset 0 -2px 0 var(--wp--preset--color--accent);
	border-radius: 0;
}

/* Search and menu buttons. */
.ac-header .ac-pop {
	position: static;
	margin: 0;
	flex: none;
}
.ac-pop > summary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--20);
	box-sizing: border-box;
	min-width: 44px;
	min-height: 44px;
	padding: 0 var(--wp--preset--spacing--30);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--control);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1;
	list-style: none;
	cursor: pointer;
	user-select: none;
}
.ac-pop > summary::-webkit-details-marker {
	display: none;
}
.ac-pop > summary::before {
	content: "";
	flex: none;
	width: 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: var(--ac-icon) center / contain no-repeat;
	mask: var(--ac-icon) center / contain no-repeat;
}
.ac-pop > summary:hover,
.ac-pop[open] > summary {
	background: var(--wp--preset--color--surface-2);
}
@media (forced-colors: active) {
	.ac-pop > summary::before {
		forced-color-adjust: none;
		background: ButtonText;
	}
}

/* The open panel spans the page width under the header. */
.ac-header .ac-pop > :not(summary) {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 30;
	box-sizing: border-box;
	margin: 0;
	padding: var(--wp--preset--spacing--50) max(var(--wp--preset--spacing--40), calc((100% - 1160px) / 2));
	background: var(--wp--preset--color--surface);
	border-bottom: 1px solid var(--wp--preset--color--line);
}

/* Search panel: label above the field, field and button on one line. */
.ac-search-form .wp-block-search__label {
	display: block;
	margin-bottom: var(--wp--preset--spacing--20);
	font-weight: 700;
	color: var(--wp--preset--color--ink);
}
.ac-search-form .wp-block-search__inside-wrapper {
	max-width: 680px;
	gap: var(--wp--preset--spacing--20);
}
.ac-search-form .wp-block-search__input {
	min-height: 44px;
	padding: 0 var(--wp--preset--spacing--30);
	border: 1px solid var(--wp--preset--color--ink-3);
	border-radius: var(--wp--custom--radius--control);
	background: var(--wp--preset--color--page);
	color: var(--wp--preset--color--ink);
	font-size: 1.0625rem;
}
.ac-search-form .wp-block-search__button {
	margin: 0;
	min-height: 44px;
}

/* Menu panel: a full-height list of the hubs and their sub-hub pages. */
.ac-header .ac-pop--menu > nav {
	display: block;
	min-height: calc(100vh - 64px);
	min-height: calc(100dvh - 64px);
	overflow-y: auto;
}
.ac-header .ac-nav--panel .wp-block-navigation__container {
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 0;
	max-width: 680px;
}
.ac-header .ac-nav--panel .wp-block-navigation-item {
	width: 100%;
}
.ac-header .ac-nav--panel .wp-block-navigation-item__content {
	flex: 1;
	min-height: 48px;
	font-size: 1.125rem;
	font-weight: 700;
}
.ac-header .ac-nav--panel .ac-nav__sub .wp-block-navigation-item__content {
	min-height: 44px;
	padding-left: var(--wp--preset--spacing--60);
	font-size: 1.0625rem;
	font-weight: 400;
	color: var(--wp--preset--color--ink-2);
}
.ac-header .ac-nav--panel .wp-block-navigation-item__content[aria-current] {
	color: var(--wp--preset--color--accent);
	box-shadow: inset 3px 0 0 var(--wp--preset--color--accent);
	border-radius: 0;
}

@media (min-width: 1024px) {
	.ac-header .ac-pop--menu {
		display: none;
	}
}
@media (max-width: 1023.98px) {
	.ac-header .ac-nav--bar {
		display: none;
	}
	/* Icon-only buttons; the word stays in the markup as the button's name for screen readers. */
	.ac-header .ac-pop > summary {
		width: 44px;
		padding: 0;
		gap: 0;
		font-size: 0;
	}
	.ac-header .ac-pop > summary::before {
		width: 22px;
		height: 22px;
	}
	/* The logo gives way first, so the three 44px buttons always fit: at 375px the row ran 8px past the screen
	 * (theme 1.19.2). It stays 211px wide from 400px up, 187px at 375 and 132px at 320. */
	.ac-header .ac-header__logo {
		flex: 0 1 auto;
		min-width: 0;
	}
	.ac-header .ac-header__logo a,
	.ac-header .ac-header__logo picture {
		min-width: 0;
		max-width: 100%;
	}
	.ac-header .ac-header__logo img {
		display: block;
		width: 211px;
		max-width: 100%;
		height: auto;
	}
}

/* ==================================================================== header 1.4.0
 * Desktop: a hand-built bar (nav.ac-bar) with a growing underline on hover and a dropdown for the hubs that have
 * sub-hub pages. Phones and tablets: a designed menu panel (nav.ac-menu), two columns from 640px. Panels open with
 * a short rise; the header hides while you scroll down and returns when you scroll up (header.js adds
 * .ac-head-smart). aria-current is set in PHP (apartmentcats_current_custom_links). Everything has a reduced-motion
 * path at the end of this section.
 */

.ac-header {
	--ac-head-ease: cubic-bezier(0.16, 1, 0.3, 1);
	--ac-head-shadow: rgba(12, 24, 60, 0.28);
}

:root[data-theme="dark"] .ac-header {
	--ac-head-shadow: rgba(0, 0, 0, 0.6);
}

/* Header buttons: one hover and press language for the switch, search and menu. */
.ac-pop > summary,
.ac-theme-toggle {
	transition: background-color 160ms, border-color 160ms, color 160ms, transform 120ms;
}

.ac-pop > summary:hover,
.ac-theme-toggle:hover {
	border-color: var(--wp--preset--color--ink-3);
}

.ac-pop > summary:active,
.ac-theme-toggle:active {
	transform: translateY(1px);
}

.ac-pop > summary::before {
	transition: transform 200ms var(--ac-head-ease);
}

.ac-pop[open] > summary::before {
	transform: rotate(90deg);
}

/* While a panel is open, the button says Close (the word Search or Menu stays as its accessible name). */
@media (min-width: 1024px) {
	.ac-header .ac-pop--search[open] > summary {
		font-size: 0;
		gap: 0;
	}

	.ac-header .ac-pop--search[open] > summary::after {
		content: "Close";
		margin-left: var(--wp--preset--spacing--20);
		font-size: 1rem;
	}
}

/* ---------------------------------------------------------------- desktop bar */

.ac-bar {
	display: none;
}

@media (min-width: 1024px) {
	.ac-bar {
		display: flex;
		align-items: center;
		margin-right: var(--wp--preset--spacing--20);
	}
}

.ac-bar__list {
	display: flex;
	align-items: center;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ac-bar__item {
	position: relative;
	margin: 0;
}

.ac-bar__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 var(--wp--preset--spacing--30);
	border-radius: var(--wp--custom--radius--control);
	color: var(--wp--preset--color--ink);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: color 160ms;
}

/* The underline grows from the middle on hover and stays on the hub you are in. */
.ac-bar__link::after {
	content: "";
	position: absolute;
	left: var(--wp--preset--spacing--30);
	right: var(--wp--preset--spacing--30);
	bottom: 6px;
	height: 2px;
	border-radius: 1px;
	background: var(--wp--preset--color--accent);
	transform: scaleX(0);
	transition: transform 280ms var(--ac-head-ease);
}

.ac-bar__item:hover > .ac-bar__link,
.ac-bar__item:focus-within > .ac-bar__link,
.ac-bar__link[aria-current] {
	color: var(--wp--preset--color--accent);
	text-decoration: none;
}

.ac-bar__item:hover > .ac-bar__link::after,
.ac-bar__item:focus-within > .ac-bar__link::after,
.ac-bar__link[aria-current]::after {
	transform: scaleX(1);
}

.ac-bar__caret {
	width: 12px;
	height: 12px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%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 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") center / contain no-repeat;
	opacity: 0.6;
	transition: transform 240ms var(--ac-head-ease), opacity 160ms;
}

.ac-bar__item:hover .ac-bar__caret,
.ac-bar__item:focus-within .ac-bar__caret {
	opacity: 1;
	transform: rotate(180deg);
}

/* Dropdown: opens on hover and on keyboard focus, closes with a short delay so a diagonal mouse path survives. */
.ac-bar__drop {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 40;
	min-width: 320px;
	padding: var(--wp--preset--spacing--20);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 10px;
	background: var(--wp--preset--color--surface);
	box-shadow: 0 22px 44px -22px var(--ac-head-shadow), 0 2px 6px -2px var(--ac-head-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 160ms ease, transform 220ms var(--ac-head-ease), visibility 0s linear 160ms;
}

/* An invisible bridge over the 8px gap, so moving the mouse down into the dropdown keeps it open. */
.ac-bar__drop::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -10px;
	height: 10px;
}

/* By problem: eight situations in two columns, so the dropdown stays short (1.23.0). */
.ac-bar__drop--wide {
	min-width: 560px;
}

.ac-bar__drop--wide ul {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 4px;
}

/* Tools holds eleven tools and printables, so it uses the two columns too, and any list taller than the window
 * scrolls inside its dropdown instead of running off the bottom of the screen (1.25.2, Bader 25 Oct 2026: on a
 * laptop the last tools could not be reached). The cap sits on the list, so the hover bridge and the "all" link
 * stay outside the scroll. */
.ac-bar__drop > ul {
	max-height: calc(100vh - 11rem);
	overflow-y: auto;
	overscroll-behavior: contain;
}

/* 1024 to 1279px: By problem and the six hubs share the row with the logo, so the links tighten, never wrap, and
 * search shows only its icon, as it does below 1024 (1.23.1). */
.ac-bar__link {
	white-space: nowrap;
}

@media (min-width: 1024px) and (max-width: 1279.98px) {
	.ac-bar__link {
		padding: 0 6px;
		font-size: 0.9375rem;
	}
	.ac-bar__link::after {
		left: 6px;
		right: 6px;
	}
	.ac-header .ac-pop--search > summary {
		width: 44px;
		padding: 0;
		gap: 0;
		font-size: 0;
	}
	.ac-header .ac-pop--search > summary::before {
		width: 22px;
		height: 22px;
	}
}

/* Care and Tools sit at the right end of the bar, so their dropdowns open leftward and stay on screen (1.19.4). */
.ac-bar__item--end > .ac-bar__drop {
	left: auto;
	right: 0;
}

.ac-bar__item:hover > .ac-bar__drop,
.ac-bar__item:focus-within > .ac-bar__drop {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity 180ms ease 60ms, transform 260ms var(--ac-head-ease) 60ms, visibility 0s;
}

.ac-bar__drop ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ac-bar__drop li {
	margin: 0;
}

.ac-bar__drop ul a {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px var(--wp--preset--spacing--30);
	border-radius: var(--wp--custom--radius--control);
	text-decoration: none;
	transition: background-color 140ms;
}

.ac-bar__drop ul a:hover,
.ac-bar__drop ul a:focus-visible {
	background: var(--wp--preset--color--surface-2);
}

.ac-bar__name {
	color: var(--wp--preset--color--ink);
	font-weight: 700;
	transition: color 140ms;
}

.ac-bar__drop ul a:hover .ac-bar__name,
.ac-bar__drop ul a[aria-current] .ac-bar__name {
	color: var(--wp--preset--color--accent);
}

.ac-bar__note {
	color: var(--wp--preset--color--ink-3);
	font-size: 0.9375rem;
	line-height: 1.35;
}

.ac-bar__all {
	display: flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	margin-top: var(--wp--preset--spacing--10);
	padding: 0 var(--wp--preset--spacing--30);
	border-top: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--accent);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
}

.ac-bar__all::after,
.ac-menu__hub-link::after {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z'/%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 256 256'%3E%3Cpath d='M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 200ms var(--ac-head-ease);
}

.ac-bar__all:hover::after {
	transform: translateX(3px);
}

/* ---------------------------------------------------------------- panels (search on all sizes, menu below 1024px) */

.ac-header .ac-pop[open] > :not(summary) {
	animation: ac-panel-in 280ms var(--ac-head-ease);
	box-shadow: 0 24px 40px -28px var(--ac-head-shadow);
}

@keyframes ac-panel-in {
	from { opacity: 0; transform: translateY(-6px); }
	to { opacity: 1; transform: none; }
}

/* The search button keeps the site's 8px corners (the block's default is a pill). */
.ac-search-form .wp-block-search__button {
	border-radius: var(--wp--custom--radius--control);
}

/* Menu panel. */
.ac-header .ac-pop--menu > nav.ac-menu {
	max-height: calc(100vh - 64px);
	max-height: calc(100dvh - 64px);
	overscroll-behavior: contain;
}

.ac-menu__hubs {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	max-width: 960px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

@media (min-width: 640px) {
	.ac-menu__hubs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: var(--wp--preset--spacing--60);
	}
}

.ac-menu__hub {
	margin: 0;
	padding: var(--wp--preset--spacing--20) 0 var(--wp--preset--spacing--30);
	border-top: 1px solid var(--wp--preset--color--line);
	animation: ac-menu-row 420ms var(--ac-head-ease) both;
	animation-delay: calc(var(--i, 0) * 45ms);
}

.ac-menu__hub:first-child {
	border-top: 0;
}

@media (min-width: 640px) {
	.ac-menu__hub:nth-child(2) {
		border-top: 0;
	}
}

@keyframes ac-menu-row {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: none; }
}

.ac-menu__hub-link {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	column-gap: var(--wp--preset--spacing--30);
	min-height: 56px;
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
	border-radius: var(--wp--custom--radius--control);
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	transition: background-color 140ms;
}

.ac-menu__hub-link::after {
	grid-column: 2;
	grid-row: 1 / span 2;
	color: var(--wp--preset--color--ink-3);
}

.ac-menu__hub-link:hover,
.ac-menu__hub-link:focus-visible {
	background: var(--wp--preset--color--surface-2);
	text-decoration: none;
}

.ac-menu__hub-link:hover::after {
	color: var(--wp--preset--color--accent);
	transform: translateX(3px);
}

.ac-menu__hub-name {
	grid-column: 1;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.2;
}

.ac-menu__hub-note {
	grid-column: 1;
	color: var(--wp--preset--color--ink-3);
	font-size: 0.9375rem;
	line-height: 1.35;
}

.ac-menu__hub-link[aria-current] .ac-menu__hub-name {
	color: var(--wp--preset--color--accent);
}

/* Sub-hub pages hang off their hub on a drafting line with end ticks. */
.ac-menu__subs {
	position: relative;
	margin: var(--wp--preset--spacing--10) 0 0 var(--wp--preset--spacing--40);
	padding: 0 0 0 var(--wp--preset--spacing--40);
	list-style: none;
}

.ac-menu__subs::before {
	content: "";
	position: absolute;
	left: -3px;
	top: 8px;
	bottom: 8px;
	width: 7px;
	background:
		linear-gradient(var(--wp--preset--color--accent), var(--wp--preset--color--accent)) top / 7px 1px no-repeat,
		linear-gradient(var(--wp--preset--color--accent), var(--wp--preset--color--accent)) bottom / 7px 1px no-repeat,
		linear-gradient(var(--wp--preset--color--line), var(--wp--preset--color--line)) center / 1px 100% no-repeat;
}

.ac-menu__subs li {
	margin: 0;
}

.ac-menu__subs a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 0 var(--wp--preset--spacing--30);
	border-radius: var(--wp--custom--radius--control);
	color: var(--wp--preset--color--ink-2);
	font-size: 1.0625rem;
	text-decoration: none;
	transition: background-color 140ms, color 140ms;
}

.ac-menu__subs a:hover,
.ac-menu__subs a:focus-visible {
	background: var(--wp--preset--color--surface-2);
	color: var(--wp--preset--color--accent);
}

.ac-menu__subs a[aria-current] {
	color: var(--wp--preset--color--accent);
	font-weight: 600;
}

.ac-menu__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--30) var(--wp--preset--spacing--50);
	max-width: 960px;
	margin: var(--wp--preset--spacing--40) auto 0;
	padding-top: var(--wp--preset--spacing--40);
	border-top: 1px solid var(--wp--preset--color--line);
	animation: ac-menu-row 420ms var(--ac-head-ease) 270ms both;
}

/* Border-box, so the 48px tap height includes the padding (it measured 70px as content-box). */
.ac-menu__start {
	box-sizing: border-box;
	display: inline-flex;
	flex: 1 1 100%;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding-block: 0;
	font-size: 1rem;
	text-decoration: none;
}

@media (min-width: 640px) {
	.ac-menu__start {
		flex: 0 0 auto;
	}
}

.ac-menu__aside {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--wp--preset--color--accent);
	font-weight: 600;
	text-decoration: none;
}

.ac-menu__aside:hover {
	text-decoration: underline;
}

/* The page behind an open menu stays put. */
@media (max-width: 1023.98px) {
	html:has(.ac-pop--menu[open]) {
		overflow: hidden;
	}
}

/* ---------------------------------------------------------------- smart header (header.js adds the classes) */

.wp-site-blocks > header.ac-head-smart {
	position: sticky;
	top: 0;
	z-index: 50;
	transition: transform 320ms var(--ac-ease-out, cubic-bezier(0.16, 1, 0.3, 1));
}

body.admin-bar .wp-site-blocks > header.ac-head-smart {
	top: var(--wp-admin--admin-bar--height, 32px);
}

@media (max-width: 600px) {
	body.admin-bar .wp-site-blocks > header.ac-head-smart {
		top: 0;
	}
}

.wp-site-blocks > header.ac-head-smart.ac-head-hidden {
	transform: translateY(calc(-100% - 50px));
}

.wp-site-blocks > header.ac-head-float .ac-header {
	box-shadow: inset 0 -1px 0 var(--wp--preset--color--line), 0 12px 28px -20px var(--ac-head-shadow);
}

.wp-site-blocks > header.ac-head-float .ac-header,
.wp-site-blocks > header .ac-header {
	transition: box-shadow 240ms ease;
}

/* Jump links land below a header that may slide back in. */
:where(h2, h3)[id] {
	scroll-margin-top: 88px;
}

/* ---------------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
	.ac-header .ac-pop[open] > :not(summary),
	.ac-menu__hub,
	.ac-menu__foot {
		animation: none;
	}

	.ac-bar__link::after,
	.ac-bar__caret,
	.ac-bar__drop,
	.ac-pop > summary::before,
	.wp-site-blocks > header.ac-head-smart {
		transition: none;
	}

	.ac-bar__item:hover > .ac-bar__drop,
	.ac-bar__item:focus-within > .ac-bar__drop {
		transition: none;
	}

	.ac-pop > summary:active,
	.ac-theme-toggle:active {
		transform: none;
	}
}

/* ==================================================================== footer 1.8.0
 * Bader, 16 Oct 2026: "make it perfect with the blue color we use". The footer is drawn on the home hero's
 * blueprint blue (--ac-bp-ground from motion.css: #14307F light, #0E1E52 dark) with the same grid, and a tape-measure
 * edge along the top whose long ticks fall on the grid's 120 px lines. Logo in white (media 77, eyes cut out).
 * Contrast on #14307F: white 11.9:1, ink-2 #DCE5FF 9.5:1, ink-3 #B8C6F0 7.0:1; on #0E1E52 15.8, 12.6 and 9.3.
 * Links are marked current in PHP (data-ac-nav), like the header menus.
 */

.ac-footer {
	--ac-ft-ground: var(--ac-bp-ground, #14307f);
	--ac-ft-ink: #ffffff;
	--ac-ft-ink-2: #dce5ff;
	--ac-ft-ink-3: #b8c6f0;
	--ac-ft-line: rgba(186, 204, 255, 0.24);
	--ac-ft-grid: rgba(186, 204, 255, 0.06);
	--ac-ft-grid-major: rgba(186, 204, 255, 0.12);
	--ac-ft-tick: rgba(214, 225, 255, 0.5);
	--ac-ft-tick-major: rgba(255, 255, 255, 0.85);
	position: relative;
	margin-block-start: 0;
	padding-top: calc(var(--wp--preset--spacing--80) + 6px);
	padding-bottom: var(--wp--preset--spacing--50);
	background-color: var(--ac-ft-ground);
	background-image:
		linear-gradient(var(--ac-ft-grid-major) 1px, transparent 1px),
		linear-gradient(90deg, var(--ac-ft-grid-major) 1px, transparent 1px),
		linear-gradient(var(--ac-ft-grid) 1px, transparent 1px),
		linear-gradient(90deg, var(--ac-ft-grid) 1px, transparent 1px);
	background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
	background-position: -1px -1px;
	color: var(--ac-ft-ink-2);
	font-size: 1rem;
	line-height: 1.5;
}

/* The tape-measure edge: a tick every 12 px, a long one every 120 px. */
.ac-footer::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 14px;
	pointer-events: none;
	background:
		repeating-linear-gradient(90deg, var(--ac-ft-tick-major) 0 1px, transparent 1px 120px) -1px 0 / 100% 14px no-repeat,
		repeating-linear-gradient(90deg, var(--ac-ft-tick) 0 1px, transparent 1px 12px) -1px 0 / 100% 7px no-repeat;
}

.ac-footer .ac-footer__inner > * {
	margin-block: 0;
}

.ac-ft {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--60) var(--wp--preset--spacing--60);
}

.ac-ft :where(p, ul, h2) {
	margin: 0;
}

.ac-ft a {
	color: var(--ac-ft-ink-2);
	text-decoration: underline;
	text-decoration-color: transparent;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.25em;
	transition: color 160ms, text-decoration-color 160ms;
}

.ac-ft a:hover,
.ac-ft a:focus-visible {
	color: var(--ac-ft-ink);
	text-decoration-color: currentColor;
}

.ac-ft a:focus-visible {
	outline-color: var(--ac-ft-ink);
}

/* Lead: logo, one line on what the site is, the research promise, two buttons. */
.ac-ft__lead {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--30);
	max-width: 30rem;
}

.ac-ft .ac-ft__logo {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.ac-ft__logo img {
	display: block;
	width: 200px;
	height: auto;
}

.ac-ft__tagline {
	color: var(--ac-ft-ink);
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.25rem, 2.2vw, 1.5rem);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.ac-ft__promise {
	color: var(--ac-ft-ink-3);
	font-size: 0.9375rem;
}

.ac-ft .ac-ft__badge {
	display: inline-block;
	margin-right: 0.4rem;
	padding: 0.1rem 0.5rem;
	border: 1px solid var(--ac-ft-line);
	border-radius: 6px;
	color: var(--ac-ft-ink);
	font-size: 0.8125rem;
	font-weight: 650;
	text-decoration: none;
}

.ac-ft .ac-ft__badge:hover {
	border-color: var(--ac-ft-ink);
}

.ac-ft__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: var(--wp--preset--spacing--10);
}

/* Faces, edges, hover, press and shine come from ui.css (theme 1.9.0, 3D buttons); the arrow is ::before, placed
   after the label with order, because ::after carries the shine. */
.ac-ft .ac-ft__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 44px;
	padding: 0 1.1rem;
	border-radius: 8px;
	font-weight: 650;
}

.ac-ft .ac-ft__btn--solid::before {
	content: "";
	order: 1;
	width: 1.05em;
	height: 1.05em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z'/%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 256 256'%3E%3Cpath d='M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 200ms var(--ac-ease-out, ease-out);
}

.ac-ft .ac-ft__btn--solid:hover::before {
	transform: translateX(3px);
}

/* Three link columns: two side by side on phones, three from 640 px. */
.ac-ft__nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
}

.ac-ft__heading {
	margin-bottom: 0.35rem !important;
	color: var(--ac-ft-ink);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0;
}

.ac-ft__nav ul,
.ac-ft__legal ul {
	list-style: none;
	padding: 0;
}

.ac-ft__nav li {
	margin: 0;
}

.ac-ft__nav a {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding-block: 0.3rem;
	line-height: 1.3;
}

/* Not the two buttons: white text on the white Start here key hid its label on /start-here/ (theme 1.14.1). */
.ac-ft a[aria-current]:not(.ac-ft__btn) {
	color: var(--ac-ft-ink);
	font-weight: 650;
	text-decoration-color: currentColor;
}

/* Base: the affiliate statement, then copyright, legal links and back to top. */
.ac-ft__base {
	grid-column: 1 / -1;
	display: grid;
	gap: var(--wp--preset--spacing--20);
	padding-top: var(--wp--preset--spacing--30);
	border-top: 1px solid var(--ac-ft-line);
	font-size: 0.875rem;
}

.ac-ft__statement {
	max-width: 44em;
	color: var(--ac-ft-ink-3);
}

.ac-ft__legal,
.ac-ft__legal ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 var(--wp--preset--spacing--40);
}

.ac-ft__copy {
	color: var(--ac-ft-ink-3);
}

.ac-ft__legal a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.ac-ft .ac-ft__top {
	gap: 0.4rem;
}

.ac-ft .ac-ft__top::before {
	content: "";
	width: 1em;
	height: 1em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M205.66,117.66a8,8,0,0,1-11.32,0L136,59.31V216a8,8,0,0,1-16,0V59.31L61.66,117.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0l72,72A8,8,0,0,1,205.66,117.66Z'/%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 256 256'%3E%3Cpath d='M205.66,117.66a8,8,0,0,1-11.32,0L136,59.31V216a8,8,0,0,1-16,0V59.31L61.66,117.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0l72,72A8,8,0,0,1,205.66,117.66Z'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 200ms var(--ac-ease-out, ease-out);
}

.ac-ft .ac-ft__top:hover::before {
	transform: translateY(-2px);
}

@media (min-width: 640px) {
	.ac-ft__nav {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.ac-ft {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
		column-gap: var(--wp--preset--spacing--80);
	}

	.ac-ft__nav a,
	.ac-ft__legal a {
		min-height: 40px;
	}

	.ac-ft__base {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		column-gap: var(--wp--preset--spacing--60);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ac-ft a,
	.ac-ft .ac-ft__btn--solid::before,
	.ac-ft .ac-ft__top::before {
		transition: none;
	}
}

/* ==================================================================== content pieces 1.6.0
 * Breadcrumbs above the title on sub-hubs and posts, the evidence tables on sub-hub and trust pages
 * (.ac-facts: a question and what the sources say, stacked on phones), and the author portrait on About.
 */

.ac-crumbs {
	margin-block: 0 var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--ink-3);
	font-size: 0.9375rem;
	line-height: 1.5;
}

.ac-crumbs a {
	color: var(--wp--preset--color--ink-2);
	text-decoration: none;
}

.ac-crumbs a:hover,
.ac-crumbs a:focus-visible {
	color: var(--wp--preset--color--accent);
	text-decoration: underline;
}

.ac-crumbs__sep {
	margin-inline: 0.45em;
	color: var(--wp--preset--color--line);
}

.ac-crumbs .breadcrumb_last {
	color: var(--wp--preset--color--ink-3);
}

.ac-facts {
	margin-block: var(--wp--preset--spacing--40);
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--container);
	background: var(--wp--preset--color--surface);
}

.ac-facts table {
	width: 100%;
	border-collapse: collapse;
}

.ac-facts th,
.ac-facts td {
	padding: 0.8rem 1rem;
	text-align: left;
	vertical-align: top;
}

.ac-facts thead th {
	background: var(--wp--preset--color--surface-2);
	color: var(--wp--preset--color--ink-2);
	font-size: 0.9375rem;
	font-weight: 600;
}

.ac-facts tbody th {
	width: 28%;
	color: var(--wp--preset--color--ink);
	font-weight: 650;
}

.ac-facts tbody td {
	color: var(--wp--preset--color--ink-2);
}

.ac-facts tbody tr + tr > * {
	border-top: 1px solid var(--wp--preset--color--line);
}

/* Phones: each row becomes a label over its answer, so nothing scrolls sideways. */
@media (max-width: 599.98px) {
	.ac-facts thead {
		display: none;
	}

	.ac-facts tbody th,
	.ac-facts tbody td {
		display: block;
		width: auto;
	}

	.ac-facts tbody th {
		padding-bottom: 0.2rem;
	}

	.ac-facts tbody td {
		padding-top: 0;
	}

	.ac-facts tbody tr + tr td {
		border-top: 0;
	}
}

.ac-portrait img {
	border-radius: 50%;
}

/* Printable previews (1.7.0): the page image sits on a hairline frame like a sheet of paper. */
.ac-printable-preview img {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 10px;
	background: #fff;
}

/* Skip link (1.7.0): off screen until it receives keyboard focus. */
.ac-skip {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 1000;
	padding: 0.6rem 1rem;
	border-radius: 8px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent-ink);
	font-weight: 600;
	text-decoration: none;
	transform: translateY(-200%);
}

.ac-skip:focus {
	transform: none;
}

/* 404 page (1.7.1): search, then the six topics as a two-column list of links with a note under each. */
.ac-404-search {
	margin-block: var(--wp--preset--spacing--40);
}

.ac-404-hubs ul {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	gap: 0.5rem 1.5rem;
	margin: var(--wp--preset--spacing--40) 0 0;
	padding: 0;
	list-style: none;
}

.ac-404-hubs li a {
	display: block;
	padding: 0.75rem 0;
	border-top: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.ac-404-hubs li a:hover .ac-404-hubs__name,
.ac-404-hubs li a:focus-visible .ac-404-hubs__name {
	color: var(--wp--preset--color--accent);
	text-decoration: underline;
}

.ac-404-hubs__name {
	display: block;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.25rem;
	font-weight: 700;
}

.ac-404-hubs__note {
	display: block;
	color: var(--wp--preset--color--ink-2);
	font-size: 0.9375rem;
}

.ac-404-hubs__start {
	margin-top: var(--wp--preset--spacing--40);
}

/* ---------------------------------------------------------------- search suggestions (1.18.0, search.js) */

/* The list under a search box: up to seven pages, each a title with its section label above it, then "See all". */
.ac-suggest-host {
	position: relative;
}

.ac-suggest {
	--ac-suggest-shadow: rgba(12, 24, 60, 0.3);
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 60;
	box-sizing: border-box;
	max-height: min(28rem, 62vh);
	margin: 0;
	padding: 0.375rem;
	overflow-y: auto;
	overscroll-behavior: contain;
	list-style: none;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 10px;
	background: var(--wp--preset--color--surface);
	box-shadow: 0 2px 6px var(--ac-suggest-shadow), 0 24px 44px -24px var(--ac-suggest-shadow);
	color: var(--wp--preset--color--ink);
	font-size: 1rem;
	text-align: left;
}

:root[data-theme="dark"] .ac-suggest {
	--ac-suggest-shadow: rgba(0, 0, 0, 0.65);
}

/* On the blue page header the list hangs from the page body; search.js sets its left, top and width. */
.ac-suggest--hang {
	right: auto;
	margin-top: 6px;
}

.ac-suggest[hidden] {
	display: none;
}

.ac-suggest [role="option"] {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.125rem;
	box-sizing: border-box;
	min-height: 48px;
	padding: 0.5rem 0.75rem;
	border-radius: var(--wp--custom--radius--control);
	line-height: 1.3;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.ac-suggest__label {
	order: -1;
	color: var(--wp--preset--color--accent);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ac-suggest__title {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	font-weight: 600;
}

.ac-suggest mark {
	background: none;
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.ac-suggest .ac-suggest__all {
	margin-top: 0.25rem;
	border-top: 1px solid var(--wp--preset--color--line);
	border-radius: 0 0 var(--wp--custom--radius--control) var(--wp--custom--radius--control);
	color: var(--wp--preset--color--accent);
	font-weight: 700;
}

@media (hover: hover) {
	.ac-suggest [role="option"]:hover {
		background: var(--wp--preset--color--surface-2);
	}
}

.ac-suggest [role="option"][aria-selected="true"] {
	background: var(--wp--preset--color--accent-tint);
	box-shadow: inset 3px 0 0 var(--wp--preset--color--accent);
}

@media (forced-colors: active) {
	.ac-suggest [role="option"][aria-selected="true"] {
		outline: 2px solid Highlight;
		outline-offset: -2px;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.ac-suggest {
		animation: ac-suggest-in 160ms ease-out;
	}
}

@keyframes ac-suggest-in {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: none; }
}

/* Read to screen readers only: how many suggestions there are. */
.ac-suggest-status {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
