/*
Theme Name: ADROMAX Theme
Theme URI: https://adromax.com/theme
Author: ADROMAX
Author URI: https://adromax.com
Description: A block theme built to pair with ADROMAX CRM. Ten industry looks with their own page sets, importable starter pages, a connected structured-data graph from LocalBusiness through FAQPage, RealtyPress IDX support for real estate, and classic PHP fallbacks for installs where full-site editing is off. Edit it in the Site Editor or straight in HTML — no page-builder plugin required.
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 7.4
Version: 2.14.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: adromax-theme
Tags: block-patterns, full-site-editing, block-styles, wide-blocks, accessibility-ready, blog, business, portfolio, custom-colors, custom-logo, custom-menu, editor-style, featured-images, rtl-language-support, template-editing, threaded-comments, translation-ready
*/

/*
 * theme.json does the design work. This file exists for three narrow jobs it
 * cannot do, and deliberately nothing else — every colour, size and space
 * below resolves to a theme.json token, so a style variation changes them all.
 *
 *   1. Behaviour CSS that has no theme.json equivalent (focus-visible rings,
 *      reduced-motion, print, skip link).
 *   2. Classic-fallback styling, for when a builder plugin turns block
 *      templates off and the PHP templates in classic/ take over.
 *   3. A handful of pattern utilities that would otherwise mean inline styles
 *      repeated across twenty pattern files.
 */

/* ---- Long-string defence --------------------------------------------
 * An email address, a URL or a hyphen-free business name is one unbreakable
 * token, and a long one inside a narrow column pushes the whole page wider
 * than the viewport. That is how a site that looked fine in testing gains a
 * horizontal scrollbar the first time a real client's address is entered —
 * "hello@northsideplumbing.test" in a hero form card was 224px of solid
 * text and broke the layout at 1024px.
 *
 * break-word globally as the baseline; `anywhere` on the elements that
 * specifically hold addresses, emails and URLs, because there the mid-word
 * break is always preferable to the overflow.
 */
body {
	overflow-wrap: break-word;
}

.adx-card a[href^="mailto:"],
.adx-card a[href^="http"],
.adx-info-row dd,
.adx-business-info a,
address {
	overflow-wrap: anywhere;
	word-break: break-word;
}

/* ---- Skip link ------------------------------------------------------- */
.adx-skip-link {
	position: absolute;
	left: -9999px;
	z-index: 999999;
	padding: 0.75rem 1.25rem;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--surface);
	border-radius: var(--wp--custom--radius--sm);
	text-decoration: none;
	font-weight: 600;
}

.adx-skip-link:focus {
	left: 1rem;
	top: 1rem;
}

/* ---- Focus visibility ------------------------------------------------
 * A visible focus ring is an accessibility requirement, and the default UA
 * ring disappears against dark sections. This one is drawn with an outline
 * rather than a box-shadow so it is not clipped by overflow containers, and
 * it uses :focus-visible so mouse users never see it.
 */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--brand);
	outline-offset: 2px;
	border-radius: var(--wp--custom--radius--sm);
}

.has-surface-deep-background-color :where(a, button):focus-visible,
.adx-on-dark :where(a, button):focus-visible {
	outline-color: var(--wp--preset--color--surface);
}

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

/* ---- Pattern utilities ----------------------------------------------- */

/* An "answer block": a self-contained passage that fully answers one
 * question. AI citation analyses consistently find passages of roughly
 * 130-170 words that answer their own heading get lifted far more often than
 * the same content spread across a page, so the theme gives that shape a
 * first-class treatment rather than leaving it to chance. */
.adx-answer {
	max-width: var(--wp--custom--measure--answer);
	/* A constrained group inside a constrained parent gets margin-inline:auto
	 * from core and ends up centred, visibly out of line with the heading it
	 * sits under. Body copy belongs on the left margin. */
	margin-left: 0;
	margin-right: auto;
}

.adx-answer > h2,
.adx-answer > h3 {
	margin-bottom: var(--wp--preset--spacing--20);
}

/* Cards. A grid of these is the single most-repeated shape in the patterns,
 * so it lives here once rather than as inline styles in every file. */
.adx-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--lg);
	padding: var(--wp--preset--spacing--40);
	height: 100%;
}

.adx-card.is-flush {
	padding: 0;
	overflow: hidden;
}

.adx-card-hover {
	transition: transform var(--wp--custom--transition--base), box-shadow var(--wp--custom--transition--base);
}

.adx-card-hover:hover {
	transform: translateY(-2px);
	box-shadow: var(--wp--preset--shadow--md);
}

/* Eyebrow label above a heading. */
.adx-eyebrow {
	display: block;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--brand);
	margin-bottom: var(--wp--preset--spacing--20);
}

/* A single checkable figure. The GEO research is unambiguous that specific
 * numbers get cited and superlatives do not, so the theme makes stating a
 * number easy and makes "the best in the city" look out of place. */
.adx-stat {
	display: block;
}

.adx-stat-value {
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--3-xl);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.03em;
	color: var(--wp--preset--color--ink);
	font-variant-numeric: tabular-nums;
}

.adx-stat-label {
	display: block;
	margin-top: 0.25rem;
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--muted);
}

/* Star rating. Rendered as text so it survives being scraped, copied into an
 * AI answer, or read by a screen reader — an icon font or SVG-only rating is
 * invisible to all three. */
.adx-rating {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: var(--wp--preset--font-size--sm);
}

.adx-rating-stars {
	color: var(--wp--preset--color--warning);
	letter-spacing: 0.08em;
}

/* FAQ. <details> rather than JavaScript, so the answer is in the DOM and
 * indexable whether or not it is open, and works with JS disabled. */
.adx-faq-item {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.adx-faq-item > summary {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--30);
	padding: var(--wp--preset--spacing--30) 0;
	cursor: pointer;
	font-weight: 620;
	font-size: var(--wp--preset--font-size--lg);
	color: var(--wp--preset--color--ink);
	list-style: none;
}

.adx-faq-item > summary::-webkit-details-marker { display: none; }

.adx-faq-item > summary::after {
	content: "+";
	flex: 0 0 auto;
	font-size: var(--wp--preset--font-size--xl);
	font-weight: 400;
	line-height: 1;
	color: var(--wp--preset--color--brand);
}

.adx-faq-item[open] > summary::after { content: "–"; }

.adx-faq-answer {
	padding-bottom: var(--wp--preset--spacing--30);
	max-width: var(--wp--custom--measure--answer);
}

/* Sticky call bar, phones only. For a trades business the phone number is the
 * conversion, and on a phone it should never be more than a thumb away. */
.adx-callbar {
	display: none;
}

@media ( max-width: 600px ) {
	.adx-callbar {
		position: fixed;
		inset: auto 0 0 0;
		z-index: 90;
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: 1fr;
		gap: 1px;
		background: var(--wp--preset--color--line);
		box-shadow: 0 -2px 12px rgba(14, 17, 23, 0.10);
		/* Keeps the bar clear of the iOS home indicator. */
		padding-bottom: env( safe-area-inset-bottom );
	}

	.adx-callbar a {
		padding: 0.9rem 0.5rem;
		background: var(--wp--preset--color--surface);
		color: var(--wp--preset--color--ink);
		font-weight: 640;
		font-size: var(--wp--preset--font-size--sm);
		text-align: center;
		text-decoration: none;
	}

	.adx-callbar a.is-primary {
		background: var(--wp--preset--color--brand);
		color: var(--wp--preset--color--surface);
	}

	/* So the bar never covers the last thing on the page. */
	body.adx-has-callbar { padding-bottom: 3.75rem; }
}

/* ---- Classic fallback -----------------------------------------------
 * Used only when block templates are switched off — a builder plugin that
 * disables full-site editing, or the theme filter. theme.json emits its CSS
 * custom properties regardless of which template tree renders, so these rules
 * inherit the same tokens and a style variation still reaches them.
 */
.adx-classic .adx-container {
	max-width: 76rem;
	margin-inline: auto;
	padding-inline: var(--wp--preset--spacing--30);
}

.adx-classic .adx-narrow {
	max-width: 44rem;
	margin-inline: auto;
}

.adx-classic .adx-site-header {
	border-bottom: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--surface);
}

.adx-classic .adx-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--40);
	padding-block: var(--wp--preset--spacing--30);
}

.adx-classic .adx-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--30);
	margin: 0;
	padding: 0;
	list-style: none;
}

.adx-classic .adx-nav a {
	color: var(--wp--preset--color--body);
	text-decoration: none;
	font-weight: 520;
}

.adx-classic .adx-nav a:hover,
.adx-classic .adx-nav .current-menu-item > a {
	color: var(--wp--preset--color--brand);
}

.adx-classic .adx-site-footer {
	margin-top: var(--wp--preset--spacing--60);
	padding-block: var(--wp--preset--spacing--50);
	border-top: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--surface-alt);
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--muted);
}

.adx-classic main {
	padding-block: var(--wp--preset--spacing--50);
}

.adx-classic .adx-entry + .adx-entry {
	margin-top: var(--wp--preset--spacing--50);
	padding-top: var(--wp--preset--spacing--50);
	border-top: 1px solid var(--wp--preset--color--line);
}

/* ---- WordPress core requirements ------------------------------------- */
.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	clip-path: none;
	height: auto;
	width: auto;
	display: block;
	top: 1rem;
	left: 1rem;
	padding: 0.75rem 1.25rem;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--surface);
	z-index: 100000;
}

.alignleft {
	float: left;
	margin-right: var(--wp--preset--spacing--30);
}

.alignright {
	float: right;
	margin-left: var(--wp--preset--spacing--30);
}

.aligncenter {
	margin-inline: auto;
}

.sticky,
.gallery-caption,
.bypostauthor {
	/* Required by the theme review guidelines. */
}

/* ---- Print ------------------------------------------------------------
 * A service page printed from a phone in someone's driveway is a real use
 * case for a trades business. Drop the furniture, keep the content, and make
 * link targets visible on paper.
 */
@media print {
	.adx-callbar,
	.wp-block-navigation,
	.wp-site-blocks > footer,
	.adx-no-print {
		display: none !important;
	}

	body {
		font-size: 11pt;
		color: #000;
		background: #fff;
	}

	a[href^="http"]::after {
		content: " (" attr(href) ")";
		font-size: 9pt;
		word-break: break-all;
	}

	.adx-faq-answer {
		display: block !important;
	}
}

/* ---- Layout utilities used by patterns ------------------------------
 * A grid whose column count is set per-instance with a custom property,
 * collapsing to fewer columns as the viewport narrows. One rule replaces a
 * responsive column stack in every pattern that shows a set of cards, and
 * the auto-fit form means a row of three never leaves a single orphan card
 * stretched across the full width.
 */
.adx-grid {
	display: grid;
	grid-template-columns: repeat(var(--adx-cols, 3), minmax(0, 1fr));
	gap: var(--wp--preset--spacing--40);
	align-items: stretch;
}

@media ( max-width: 900px ) {
	.adx-grid { grid-template-columns: repeat(min(2, var(--adx-cols, 3)), minmax(0, 1fr)); }
}

@media ( max-width: 600px ) {
	.adx-grid { grid-template-columns: minmax(0, 1fr); }
}

/* A featured pricing tier. */
.adx-card.is-featured {
	border-color: var(--wp--preset--color--brand);
	box-shadow: var(--wp--preset--shadow--md);
}

/* Checklist. The marker is a pseudo-element rather than a character in the
 * content, so the tick is never read aloud by a screen reader or copied
 * into a quotation. */
.adx-checks {
	list-style: none;
	padding-left: 0;
}

.adx-checks > li {
	position: relative;
	padding-left: 1.85rem;
	margin-bottom: 0.6rem;
}

.adx-checks > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.42em;
	width: 1.1rem;
	height: 0.6rem;
	border-left: 2.5px solid var(--wp--preset--color--brand);
	border-bottom: 2.5px solid var(--wp--preset--color--brand);
	transform: rotate(-45deg);
}

/* Service areas. A plain list, laid out in columns — deliberately text
 * rather than a map embed: the town names have to be in the HTML for a
 * "near me" search to find them, and a Google Maps iframe contains none of
 * them while costing several hundred kilobytes. */
.adx-area-list {
	columns: 4 12rem;
	column-gap: var(--wp--preset--spacing--40);
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.adx-area-list > li {
	padding: 0.4rem 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	break-inside: avoid;
	font-size: var(--wp--preset--font-size--sm);
}

/* Numbered process steps. */
.adx-steps {
	list-style: none;
	counter-reset: adx-step;
	padding-left: 0;
	margin: 0;
	display: grid;
	gap: var(--wp--preset--spacing--40);
}

@media ( min-width: 900px ) {
	.adx-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.adx-step {
	display: flex;
	gap: var(--wp--preset--spacing--30);
	align-items: flex-start;
}

.adx-step-num {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--surface);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.adx-step-title {
	margin: 0.35rem 0 0.35rem;
	font-size: var(--wp--preset--font-size--lg);
}

.adx-step-body {
	margin: 0;
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--body);
}

/* Business details, as a definition list. dl/dt/dd is the correct element
 * for label-value pairs and it is what a parser expects to find. */
.adx-business-info {
	margin: 0;
	display: grid;
	gap: var(--wp--preset--spacing--20);
}

.adx-business-info.is-inline {
	grid-auto-flow: column;
	grid-auto-columns: max-content;
	gap: var(--wp--preset--spacing--40);
}

.adx-info-row dt {
	margin: 0;
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.adx-info-row dd {
	margin: 0.15rem 0 0;
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--body);
}

/* Breadcrumbs. The separator is a pseudo-element so it is never copied into
 * a quotation or announced by a screen reader. */
.adx-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 0.7rem;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: var(--wp--preset--font-size--xs);
	color: var(--wp--preset--color--muted);
}

.adx-breadcrumbs li + li::before {
	content: "/";
	margin-right: 0.7rem;
	color: var(--wp--preset--color--line);
}

.adx-breadcrumbs a {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
}

.adx-breadcrumbs a:hover {
	color: var(--wp--preset--color--brand);
	text-decoration: underline;
}

/* Block styles registered in PHP need their CSS here. */
.is-style-adx-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--lg);
	padding: var(--wp--preset--spacing--40);
}

.is-style-adx-answer {
	max-width: var(--wp--custom--measure--answer);
	margin-left: 0;
	margin-right: auto;
}

.is-style-adx-lead {
	font-size: var(--wp--preset--font-size--lg);
	line-height: 1.55;
	color: var(--wp--preset--color--body);
}

.is-style-adx-eyebrow {
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--brand);
}

.is-style-adx-rounded img { border-radius: var(--wp--custom--radius--lg); }

/* Reviews and post grids inherit the shared grid. */
.adx-reviews .adx-grid,
.adx-latest-posts .adx-grid { margin-top: var(--wp--preset--spacing--40); }


/* =======================================================================
 * 1.1.0 — Presentation layer
 * =======================================================================
 *
 * Everything above this line is behaviour, fallback and small utilities.
 * What follows is the part that answers the actual complaint about 1.0.0:
 * the site rendered, and it looked cheap.
 *
 * Three things were wrong, and only the third was taste:
 *
 *   1. The header collapsed, because the navigation block was rendering a
 *      list of every page (see inc/class-adx-nav.php). Fixed in PHP; the
 *      layout rules here make sure it cannot collapse again even with a
 *      long menu — the nav scrolls before the header wraps.
 *   2. Sections had no rhythm. Every band had the same padding and the
 *      same white background, so a page read as one undifferentiated
 *      column. Alternating surfaces and a real vertical scale fix that.
 *   3. Nothing was drawn with any care: no hairline details, no hover
 *      states worth the name, no scrims on imagery, flat cards.
 *
 * Rules this file holds itself to:
 *   - Every colour and length resolves to a theme.json token, so all ten
 *     style variations inherit the whole thing.
 *   - Interactive targets are at least 44px in their smallest dimension.
 *   - Every transition is short, on transform/opacity/colour only, and
 *     disabled under prefers-reduced-motion (handled once, above).
 *   - No fixed pixel widths that can exceed a 360px viewport.
 */

/* ---- Section rhythm ---------------------------------------------------
 * A page is a sequence of bands, and the eye needs the bands to differ.
 * These utilities give patterns a shared vertical scale and a shared set of
 * surfaces, so eight patterns stacked in any order still read as one design.
 */
.adx-section {
	padding-block: var(--wp--preset--spacing--70);
}

.adx-section.is-tight { padding-block: var(--wp--preset--spacing--60); }
.adx-section.is-major { padding-block: var(--wp--preset--spacing--80); }

.adx-section.is-alt { background-color: var(--wp--preset--color--surface-alt); }
.adx-section.is-tint { background-color: var(--wp--preset--color--surface-tint); }

/* Two consecutive bands of the same surface should read as one band, not as
 * two with a seam. Collapsing the inner padding is what stops a page looking
 * like it has been assembled from parts. */
.adx-section.is-alt + .adx-section.is-alt { padding-top: 0; }

/* Section heading group: eyebrow, heading, one line of lede. Constrained
 * narrower than the content width because a 78rem-wide paragraph is
 * unreadable — 60-75 characters is the target, per the type rules. */
.adx-section-head {
	max-width: var(--wp--custom--measure--answer);
	margin-bottom: var(--wp--preset--spacing--50);
}

.adx-section-head.is-centred {
	margin-inline: auto;
	text-align: center;
}

.adx-section-head > :last-child { margin-bottom: 0; }

.adx-lede {
	font-size: var(--wp--preset--font-size--lg);
	line-height: 1.55;
	color: var(--wp--preset--color--body);
	max-width: var(--wp--custom--measure--answer);
}

/* ---- Eyebrow, upgraded -----------------------------------------------
 * The 1.0.0 eyebrow was uppercase muted text and nothing else, which is the
 * single most generic thing on a template. A short rule beside it costs two
 * pseudo-element lines and reads as considered.
 */
.adx-eyebrow {
	display: flex;
	align-items: center;
	gap: 0.7em;
}

.adx-eyebrow::before {
	content: "";
	inline-size: 1.75rem;
	block-size: 2px;
	flex: 0 0 auto;
	background-color: currentColor;
	opacity: 0.55;
}

.is-centred .adx-eyebrow,
.adx-section-head.is-centred .adx-eyebrow {
	justify-content: center;
}

.adx-section-head.is-centred .adx-eyebrow::after {
	content: "";
	inline-size: 1.75rem;
	block-size: 2px;
	flex: 0 0 auto;
	background-color: currentColor;
	opacity: 0.55;
}

/* ---- Utility bar -----------------------------------------------------
 * The thin strip above the header. Deliberately quiet and deliberately
 * first in the DOM: on a phone the phone number is the conversion, and this
 * is the one place a visitor looks for it before scrolling.
 */
.adx-utility-bar {
	background-color: var(--wp--preset--color--surface-deep);
	color: var(--wp--preset--color--on-deep-muted);
	font-size: var(--wp--preset--font-size--xs);
	line-height: 1.4;
}

.adx-utility-bar__inner {
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto;
	padding-inline: var(--wp--preset--spacing--30);
	min-height: var(--wp--custom--header--utility-height);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--30);
	flex-wrap: wrap;
}

.adx-utility-bar__group {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--30);
	flex-wrap: wrap;
	min-width: 0;
}

.adx-utility-bar__item {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	min-width: 0;
}

.adx-utility-bar__item.is-message {
	color: var(--wp--preset--color--on-deep);
	font-weight: 560;
}

.adx-utility-bar a {
	color: var(--wp--preset--color--on-deep);
	text-decoration: none;
	/* 44px of tappable height inside a 44px-tall bar, without making the bar
	 * taller: the padding is vertical and the line box absorbs it. */
	padding-block: 0.7rem;
	overflow-wrap: anywhere;
}

.adx-utility-bar a:hover { text-decoration: underline; }

.adx-utility-bar .adx-glyph { opacity: 0.6; flex: 0 0 auto; }

.adx-utility-bar__social {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 0 0 auto;
}

.adx-utility-bar__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 2.75rem;
	block-size: 2.75rem;
	padding: 0;
	border-radius: var(--wp--custom--radius--pill);
	color: var(--wp--preset--color--on-deep-muted);
	transition: color var(--wp--custom--transition--fast), background-color var(--wp--custom--transition--fast);
}

.adx-utility-bar__social a:hover {
	color: var(--wp--preset--color--on-deep);
	background-color: rgba(255, 255, 255, 0.1);
	text-decoration: none;
}

/* Hours and email are the first things to go when space runs out — the phone
 * number is the one that has to survive to 360px. */
@media (max-width: 860px) {
	.adx-utility-bar__item.is-hours { display: none; }
}

@media (max-width: 660px) {
	.adx-utility-bar__item.is-email { display: none; }
	.adx-utility-bar__social { display: none; }
	.adx-utility-bar__inner { justify-content: center; }
}

/* ---- Header ----------------------------------------------------------
 * The layout contract: the brand never shrinks, the navigation gives way
 * first, and the call-to-action is the last thing standing. 1.0.0 had it the
 * other way round — the nav grew without limit and pushed the button onto a
 * line of its own, which is what made the header look broken.
 */
.adx-site-header {
	position: relative;
	z-index: 30;
}

.adx-site-header__bar,
.adx-site-header.is-minimal {
	backdrop-filter: saturate(1.4) blur(6px);
}

.adx-header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--40);
	flex-wrap: nowrap;
}

.adx-brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex: 0 0 auto;
	min-width: 0;
}

.adx-brand .wp-block-site-title {
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	/*
	 * Wide enough for a real business name — "Northside Plumbing & Heating" is
	 * 28 characters and truncated to "Northside Plum…" at the 15ch this
	 * started at, which looks like a bug in the header rather than a design
	 * decision. Clamped only where the screen genuinely cannot hold it.
	 */
	max-inline-size: 30ch;
}

@media (max-width: 599px) {
	.adx-brand .wp-block-site-title { max-inline-size: 18ch; }
}

/* A logo and a site title together is usually a mistake — the logo already
 * says the name. Hide the text only when a real logo image is present. */
.adx-brand .wp-block-site-logo:has(img) + .wp-block-site-title { display: none; }

.adx-brand .wp-block-site-logo img {
	display: block;
	max-block-size: 3rem;
	inline-size: auto;
}

.adx-header-actions {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--30);
	flex: 0 1 auto;
	min-width: 0;
	justify-content: flex-end;
}

.adx-header-actions .wp-block-navigation {
	min-width: 0;
}

/* Graceful degradation for a menu the owner has overfilled.
 *
 * The row itself never wraps — that is what kept the call-to-action on its own
 * line in 1.0.0 — but the navigation INSIDE it may. A header that grows a
 * second line of links is ugly; a header whose button falls below the logo
 * looks broken, and a header that pushes the document wider than the viewport
 * IS broken. So: brand fixed, CTA fixed, nav absorbs the pressure.
 *
 * With the curated six-link cap in inc/class-adx-nav.php this should never
 * fire. It is here for the site that adds a seventh link with a long name. */
.adx-header-actions .wp-block-navigation__container {
	min-width: 0;
	row-gap: 0.35rem;

	/*
	 * Do NOT wrap at desktop widths.
	 *
	 * This used to be an unconditional `flex-wrap: wrap`, written as graceful
	 * degradation for an overfilled menu. It fired on six links -- the curated
	 * cap -- because the header row sat at contentSize (45rem) while the footer
	 * sat at wideSize, so there was never room for brand + nav + toggle + CTA.
	 * The row is now alignwide, and the real fix is above; this line stops the
	 * fallback masking a layout bug as a design choice.
	 */
	flex-wrap: nowrap;
}

/*
 * Below the wide breakpoint there genuinely may not be room, and a second
 * line of links beats a header that pushes the document wider than the
 * viewport. The overlay menu takes over below 600px.
 */
@media (max-width: 1100px) {
	.adx-header-actions .wp-block-navigation__container { flex-wrap: wrap; }
}

.adx-header-cta { flex: 0 0 auto; }

.adx-header-cta .wp-block-button__link {
	white-space: nowrap;
	min-block-size: 2.75rem;
	display: inline-flex;
	align-items: center;
}

/* Navigation items: a hairline that grows on hover rather than an underline
 * that appears. Same information, considerably less noise. */
.adx-site-header .wp-block-navigation-item__content {
	position: relative;
	padding-block: 0.75rem;
	text-decoration: none;
}

.adx-site-header .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0.35rem;
	block-size: 2px;
	background-color: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--wp--custom--transition--base);
}

.adx-site-header .wp-block-navigation-item__content:hover::after,
.adx-site-header .current-menu-item > .wp-block-navigation-item__content::after,
.adx-site-header .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content::after {
	transform: scaleX(1);
}

/* The mobile overlay. Core handles the mechanics; these make it feel like
 * part of the theme rather than a default. */
.wp-block-navigation__responsive-container.is-menu-open {
	padding-top: calc(var(--wp--preset--spacing--50) + env(safe-area-inset-top, 0px));
	padding-bottom: calc(var(--wp--preset--spacing--50) + env(safe-area-inset-bottom, 0px));
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: var(--wp--preset--font-size--xl);
	font-family: var(--wp--preset--font-family--display);
	letter-spacing: -0.02em;
}

/*
 * Size the overlay buttons to a real touch target, and deliberately do NOT
 * set `display` here. Core hides the open button above the overlay breakpoint
 * with `.wp-block-navigation__responsive-container-open:not(.always-shown)`,
 * and a plain single-class `display:inline-flex` is one specificity step below
 * that — close enough to win by accident on a future core release, which
 * would pin a hamburger next to the menu on every desktop page. Sizing is
 * safe; display is core's business.
 */
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	min-inline-size: 2.75rem;
	min-block-size: 2.75rem;
	align-items: center;
	justify-content: center;
}

/*
 * This rule never worked. `.adx-header-cta` is one class; core's own
 * `.wp-block-buttons.is-layout-flex { display: flex }` is two, so it won
 * on specificity and the CTA stayed in the header at every width. The
 * mobile header is dealt with properly further down the file, under
 * "The header row on a phone" — selectors there are deep enough to
 * actually land.
 */

/* ---- Cards, upgraded -------------------------------------------------
 * A card in 1.0.0 was a bordered box. These are the same box with the three
 * details that separate a template from a designed page: a hairline that
 * tightens on hover, a lift that is felt rather than seen, and a top edge
 * that can carry the brand colour.
 */
.adx-card {
	position: relative;
	background-color: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--lg);
	padding: var(--wp--preset--spacing--40);
	transition:
		border-color var(--wp--custom--transition--base),
		box-shadow var(--wp--custom--transition--base),
		transform var(--wp--custom--transition--base);
}

.adx-card > :first-child { margin-top: 0; }
.adx-card > :last-child { margin-bottom: 0; }

.adx-card-hover:hover {
	border-color: var(--wp--preset--color--line-strong);
	box-shadow: var(--wp--preset--shadow--lg);
	transform: translateY(-3px);
}

/* Keyboard users get the same affordance as mouse users. */
.adx-card-hover:focus-within {
	border-color: var(--wp--preset--color--brand);
	box-shadow: var(--wp--custom--ring);
}

/* An accent edge, opt-in per card. */
.adx-card.is-edged { overflow: hidden; }

.adx-card.is-edged::before {
	content: "";
	position: absolute;
	inset-block-start: 0;
	inset-inline: 0;
	block-size: 3px;
	background-color: var(--wp--preset--color--brand);
}

.adx-card.is-featured {
	border-color: var(--wp--preset--color--brand);
	box-shadow: var(--wp--preset--shadow--md);
}

/* A card whose first child is an image: the image should meet the card's
 * edges, which means cancelling the padding on that side only. */
.adx-card > .adx-card-media:first-child,
.adx-card > figure:first-child.is-flush {
	margin: calc(-1 * var(--wp--preset--spacing--40));
	margin-bottom: var(--wp--preset--spacing--30);
	border-start-start-radius: calc(var(--wp--custom--radius--lg) - 1px);
	border-start-end-radius: calc(var(--wp--custom--radius--lg) - 1px);
	overflow: hidden;
}

.adx-card-media img {
	display: block;
	inline-size: 100%;
	block-size: auto;
	object-fit: cover;
	transition: transform var(--wp--custom--transition--slow);
}

.adx-card-hover:hover .adx-card-media img { transform: scale(1.035); }

/* ---- Grids ------------------------------------------------------------
 * minmax(0, 1fr), never 1fr. A bare 1fr track carries an implicit auto
 * minimum, so one long unbreakable word inside it pushes the whole grid
 * wider than the viewport — which is exactly how 1.0.0 gained a horizontal
 * scrollbar at 420px.
 */
.adx-grid {
	display: grid;
	gap: var(--wp--preset--spacing--40);
	grid-template-columns: repeat(var(--adx-cols, 3), minmax(0, 1fr));
}

@media (max-width: 900px) {
	.adx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 599px) {
	.adx-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Imagery ----------------------------------------------------------
 * A photograph with text over it needs a scrim, and the scrim needs to be
 * part of the design rather than an afterthought. Without one, white text on
 * a bright sky is unreadable and the page looks unfinished.
 */
.adx-media-frame {
	position: relative;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--lg);
	background-color: var(--wp--preset--color--surface-alt);
}

.adx-media-frame img {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

/* A cover block paints its dim through a child span and has no background of
 * its own, so a slow or blocked image leaves white text on white. A solid
 * floor underneath costs nothing and removes the failure mode entirely. */
.wp-block-cover.adx-hero {
	background-color: var(--wp--preset--color--surface-deep);
	isolation: isolate;
}

.wp-block-cover.adx-hero .wp-block-cover__image-background {
	/* Slightly cooler and calmer than the source photograph, so ten different
	 * client photographs still produce one coherent hero. */
	filter: saturate(0.92) contrast(1.02);
}

.adx-hero-content {
	max-width: 46rem;
}

/*
 * Scoped to a hero that is actually dark. The unscoped version tinted the
 * eyebrow to the on-dark muted grey in every hero — including the light
 * authority hero used by consulting and education, where it came out at
 * 2.2:1 on white. The class says "hero content", not "hero content on a
 * photograph", so the colour has to be conditioned on the band.
 */
.wp-block-cover .adx-hero-content .adx-eyebrow,
.adx-on-dark .adx-hero-content .adx-eyebrow,
.adx-hero.adx-on-dark .adx-eyebrow {
	color: var(--wp--preset--color--on-deep-muted);
}

.adx-hero h1 { text-wrap: balance; }

.adx-hero p { text-wrap: pretty; }

/* ---- Stats ------------------------------------------------------------ */
.adx-stat-value {
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
}

/* ---- Buttons ----------------------------------------------------------- */
.wp-element-button,
.wp-block-button__link {
	min-block-size: 2.75rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	transition:
		background-color var(--wp--custom--transition--fast),
		border-color var(--wp--custom--transition--fast),
		color var(--wp--custom--transition--fast),
		transform var(--wp--custom--transition--fast);
}

.wp-element-button:active,
.wp-block-button__link:active { transform: translateY(1px); }

/* An outline button that works on a dark band, where the stock outline style
 * would render brand-on-navy and disappear. */
.wp-block-button.is-style-outline-invert > .wp-block-button__link {
	background-color: transparent;
	color: currentColor;
	border: 1.5px solid currentColor;
}

.wp-block-button.is-style-outline-invert > .wp-block-button__link:hover {
	background-color: currentColor;
	/* color-mix keeps this correct on every variation without hard-coding a
	 * second colour per band. */
	color: var(--wp--preset--color--ink);
}

/* ---- Footer ----------------------------------------------------------- */
.adx-footer-strip__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--40);
	flex-wrap: wrap;
}

/* The strip is a contact bar, not a second call to action.
 *
 * It opened as a heading-and-sentence band saying "Ready to talk? Tell us what
 * you need and we will come back to you the same working day" — word for word
 * what the closing CTA band above it already said, one section earlier, in a
 * larger typeface. Two identical asks stacked on top of each other read as a
 * template rather than a design. It now carries the things a visitor scrolls
 * to the bottom looking for: the phone number, the email address and where the
 * business actually is.
 */
.adx-footer-strip .adx-business-info,
.adx-footer-strip__contact {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem var(--wp--preset--spacing--40);
	margin: 0;
	min-width: 0;
}

.adx-footer-strip .adx-info-row,
.adx-footer-strip__contact .adx-info-row {
	display: flex;
	align-items: baseline;
	gap: 0.4rem;
	min-width: 0;
}

.adx-footer-strip .adx-info-row dt,
.adx-footer-strip__contact dt {
	font-size: var(--wp--preset--font-size--xs);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 700;
	/* inherit, not a token: the strip is painted in the accent colour, and the
	 * definition-list rules further up this file set dt to muted grey and dd to
	 * body grey — both of which are dark text on a mid-tone band. On the warm
	 * accent used by the restaurant variation that came out at 1.1:1. */
	color: inherit;
	opacity: 0.75;
	margin: 0;
}

.adx-footer-strip .adx-info-row dd,
.adx-footer-strip__contact dd {
	margin: 0;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 560;
	color: inherit;
}

.adx-footer-strip a:not(.wp-block-button__link),
.adx-footer-strip address,
.adx-footer-strip__contact a,
.adx-footer-strip__contact address { color: inherit; }

/* No gap between the last full-width section and the footer.
 *
 * Nearly every page here ends on a full-bleed band, and a strip of white
 * between that band and the footer's own band looks like a rendering fault
 * rather than spacing. So the footer carries no top margin at all, and the
 * breathing room is put on the last element instead — but only when that
 * element is NOT full-bleed, which is a plain `:not()` rather than anything
 * that depends on `:has()` support.
 */
.adx-site-footer {
	margin-top: 0 !important;
}

main > :last-child:not(.alignfull):not(.wp-block-cover):not(.adx-section) {
	margin-bottom: var(--wp--preset--spacing--70);
}

/* A footer column whose only content is its own heading.
 *
 * The "Latest reading" column holds a server-rendered post list that returns
 * an empty string when nothing is published — leaving a small uppercase
 * heading floating above nothing on every fresh install, in the footer, on
 * every page. If the heading is the column's only child, the column goes.
 */
.adx-footer-cols .wp-block-column:has(> .adx-footer-heading:only-child) {
	display: none;
}

.adx-footer-main a { color: var(--wp--preset--color--on-deep); }

.adx-footer-heading { margin-bottom: var(--wp--preset--spacing--30) !important; }

.adx-footer-main .adx-info-row dt { color: var(--wp--preset--color--on-deep-muted); }
.adx-footer-main .adx-info-row dd { color: var(--wp--preset--color--on-deep); }

.adx-footer-nav .wp-block-navigation-item__content { text-decoration: none; }
.adx-footer-nav .wp-block-navigation-item__content:hover { text-decoration: underline; }

/* The footer's compact post list: no cards, no thumbnails, just a date and a
 * title, because a three-across card grid inside a footer column is a grid
 * of 180px-wide cards and unreadable. */
.adx-latest-posts.is-compact .adx-grid {
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--30);
}

.adx-latest-posts.is-compact .adx-card {
	background: none;
	border: 0;
	padding: 0;
}

.adx-latest-posts.is-compact .adx-card a[aria-hidden="true"] { display: none; }
.adx-latest-posts.is-compact .adx-eyebrow { display: none; }

.adx-latest-posts.is-compact h3 {
	font-size: var(--wp--preset--font-size--sm) !important;
	line-height: 1.4;
}

.adx-latest-posts.is-on-deep h3 a { color: var(--wp--preset--color--on-deep); }

/* The renderer writes `color: inherit` on the title link as an inline
 * style, and an inline declaration beats the rule above, so the title
 * came out near-black on the dark footer — invisible. Colour the h3
 * instead and the inline `inherit` resolves to the right thing. */
.adx-latest-posts.is-on-deep .adx-card,
.adx-latest-posts.is-on-deep .adx-card h3 {
	color: var(--wp--preset--color--on-deep);
}

/* A full-strength on-deep border reads as a bright box in the footer. */
.adx-latest-posts.is-on-deep .adx-card {
	border-color: rgba(255, 255, 255, 0.14);
}
.adx-latest-posts.is-on-deep time { color: var(--wp--preset--color--on-deep-muted); }

.adx-footer-legal { font-variant-numeric: tabular-nums; }

/* ---- Social row (footer / anywhere) ---------------------------------- */
.adx-social ul {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}

.adx-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 2.75rem;
	block-size: 2.75rem;
	border-radius: var(--wp--custom--radius--pill);
	border: 1px solid currentColor;
	color: inherit;
	opacity: 0.75;
	text-decoration: none;
	transition: opacity var(--wp--custom--transition--fast), transform var(--wp--custom--transition--fast);
}

.adx-social a:hover { opacity: 1; transform: translateY(-2px); }

.adx-social__label {
	display: block;
	font-size: var(--wp--preset--font-size--xs);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: 0.6rem;
	opacity: 0.7;
}

.adx-social.is-size-sm a { inline-size: 2.25rem; block-size: 2.25rem; }

/* ---- Property / listing cards ---------------------------------------
 * Used by the theme's own listing patterns and by the RealtyPress skin
 * below, so one set of rules governs both and a page mixing them does not
 * show the seam.
 */
.adx-property {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background-color: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--lg);
	transition:
		border-color var(--wp--custom--transition--base),
		box-shadow var(--wp--custom--transition--base),
		transform var(--wp--custom--transition--base);
}

.adx-property:hover {
	border-color: var(--wp--preset--color--line-strong);
	box-shadow: var(--wp--preset--shadow--lg);
	transform: translateY(-3px);
}

.adx-property__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background-color: var(--wp--preset--color--surface-alt);
}

.adx-property__media img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	transition: transform var(--wp--custom--transition--slow);
}

.adx-property:hover .adx-property__media img { transform: scale(1.04); }

.adx-property__badge {
	position: absolute;
	inset-block-start: 0.85rem;
	inset-inline-start: 0.85rem;
	padding: 0.3rem 0.7rem;
	border-radius: var(--wp--custom--radius--sm);
	background-color: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--surface);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 650;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.adx-property__body {
	padding: var(--wp--preset--spacing--30);
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	flex: 1 1 auto;
}

.adx-property__price {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--xl);
	font-weight: 680;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--ink);
	/* Tabular figures so a column of prices lines up on the decimal instead
	 * of jittering — the detail that makes a listing grid look professional. */
	font-variant-numeric: tabular-nums;
}

.adx-property__address {
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--body);
	margin: 0;
	overflow-wrap: anywhere;
}

.adx-property__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1rem;
	list-style: none;
	margin: auto 0 0;
	padding-top: var(--wp--preset--spacing--20);
	border-top: 1px solid var(--wp--preset--color--line);
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--muted);
	font-variant-numeric: tabular-nums;
}

.adx-property__facts li {
	display: inline-flex;
	align-items: baseline;
	gap: 0.3rem;
}

.adx-property__facts strong {
	color: var(--wp--preset--color--ink);
	font-weight: 640;
}

/* ---- Area / neighbourhood cards ------------------------------------- */
.adx-area-card {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--lg);
	aspect-ratio: 3 / 2;
	color: var(--wp--preset--color--surface);
	text-decoration: none;
	background-color: var(--wp--preset--color--surface-deep);
}

.adx-area-card img {
	position: absolute;
	inset: 0;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	transition: transform var(--wp--custom--transition--slow);
}

.adx-area-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(8, 14, 26, 0.12) 30%, rgba(8, 14, 26, 0.78) 100%);
}

.adx-area-card:hover img { transform: scale(1.05); }

.adx-area-card__label {
	position: absolute;
	inset-block-end: 0;
	inset-inline: 0;
	z-index: 1;
	padding: var(--wp--preset--spacing--30);
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
}

.adx-area-card__name {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--lg);
	font-weight: 640;
	letter-spacing: -0.02em;
}

.adx-area-card__count {
	font-size: var(--wp--preset--font-size--xs);
	opacity: 0.85;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* ---- Review / testimonial source badge ------------------------------
 * A review with a visible source is worth several without one. The badge is
 * text plus a mark, never a mark alone — a logo with no label says nothing to
 * a screen reader and nothing to a retrieval system.
 */
.adx-source-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: var(--wp--preset--font-size--xs);
	color: var(--wp--preset--color--muted);
}

.adx-source-badge .adx-social-icon { opacity: 0.8; }

/* ---- Date chip (blog cards) ----------------------------------------- */
.adx-date-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.25rem 0.6rem;
	border-radius: var(--wp--custom--radius--pill);
	background-color: var(--wp--preset--color--surface-alt);
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--xs);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* ---- Split section: content beside a map or image ------------------- */
.adx-split {
	display: grid;
	gap: var(--wp--preset--spacing--50);
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
}

.adx-split.is-weighted { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }

@media (max-width: 860px) {
	.adx-split,
	.adx-split.is-weighted { grid-template-columns: minmax(0, 1fr); }
}

.adx-map-frame {
	position: relative;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--lg);
	border: 1px solid var(--wp--preset--color--line);
	background-color: var(--wp--preset--color--surface-alt);
	aspect-ratio: 4 / 3;
}

.adx-map-frame iframe,
.adx-map-frame img {
	position: absolute;
	inset: 0;
	inline-size: 100%;
	block-size: 100%;
	border: 0;
	object-fit: cover;
}

/* ---- Logo / trust row ----------------------------------------------- */
.adx-logo-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
}

.adx-logo-row img {
	block-size: 2.25rem;
	inline-size: auto;
	max-inline-size: 100%;
	/* Client logos arrive in twelve different colours; desaturating them to a
	 * single weight is what turns a row of mismatched badges into one band. */
	filter: grayscale(1);
	opacity: 0.55;
	transition: filter var(--wp--custom--transition--base), opacity var(--wp--custom--transition--base);
}

.adx-logo-row a:hover img,
.adx-logo-row img:hover { filter: grayscale(0); opacity: 1; }

/* ---- Prose polish ---------------------------------------------------- */
.entry-content > h2,
.adx-prose > h2 { margin-top: var(--wp--preset--spacing--60); }

.entry-content > h3,
.adx-prose > h3 { margin-top: var(--wp--preset--spacing--50); }

.entry-content h2,
.entry-content h3,
.adx-prose h2,
.adx-prose h3 { text-wrap: balance; }

.entry-content p,
.adx-prose p { text-wrap: pretty; }

/* A page whose content supplies its own h1 does not need the template's
 * title spacing either — see inc/class-adx-headings.php. */
.adx-content-owns-h1 main > .wp-block-post-title { display: none; }

/* ---- Dark-band helper ----------------------------------------------- */
.adx-on-dark,
.has-surface-deep-background-color,
.has-brand-ink-background-color {
	--adx-on-dark: 1;
}

.adx-on-dark :where(h1, h2, h3, h4, h5, h6) { color: var(--wp--preset--color--on-deep); }
.adx-on-dark :where(p, li) { color: var(--wp--preset--color--on-deep-muted); }
.adx-on-dark .adx-card {
	background-color: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.14);
}
.adx-on-dark .adx-card :where(p, li) { color: var(--wp--preset--color--on-deep); }

/* ---- Page header band ------------------------------------------------
 * The breadcrumb-and-title band at the top of a standard page. When the
 * content supplies its own h1 (a page composed from patterns), the title and
 * excerpt are removed in PHP and this band would otherwise sit there as a
 * tall empty grey rectangle — which is precisely the "dead vertical space"
 * that made 1.0.0 look broken. It collapses to a breadcrumb strip instead.
 */
.adx-page-head .wp-block-post-title { margin-top: var(--wp--preset--spacing--20); }

.adx-page-head .adx-lede { margin-bottom: 0; }

.adx-content-owns-h1 .adx-page-head {
	padding-block: var(--wp--preset--spacing--20) !important;
	background-color: transparent !important;
}

.adx-content-owns-h1 .adx-page-head .adx-breadcrumbs { margin: 0; }

/* Sidebar column: on a phone the aside belongs after the article, and the
 * sticky position has to be released or it pins mid-scroll. */
@media (max-width: 781px) {
	.adx-with-sidebar .wp-block-column [style*="position:sticky"],
	.adx-with-sidebar .wp-block-column [style*="position: sticky"] {
		position: static !important;
	}
}

/* ---- Dark bands: links, and a background that cannot vanish -----------
 * Two hardening rules, both found by rendering rather than reading.
 *
 * 1. Link colour. The dark patterns each carried a per-block
 *    `style.elements.link.color` attribute, which works — until someone edits
 *    the paragraph and the attribute goes with it, at which point the phone
 *    number in the closing band renders brand-on-navy at 1.2:1 and is
 *    invisible. One rule on the band is not something an editor can delete.
 *
 * 2. Background. A `background:` shorthand carrying a gradient resets
 *    background-color to transparent, so a band styled with both a background
 *    colour and a gradient has only the gradient holding the text up. If the
 *    gradient's custom properties fail to resolve — an incomplete style
 *    variation, an old browser — the band goes transparent and its white text
 *    lands on white. The colour floor below is a second class, so it wins the
 *    cascade against the gradient's single-class rule for background-color
 *    while leaving the gradient itself in place.
 */
.adx-section.adx-on-dark,
.adx-on-dark.wp-block-cover {
	background-color: var(--wp--preset--color--surface-deep) !important;
}

.adx-on-dark a:not(.wp-block-button__link):not(.wp-element-button),
.adx-hero a:not(.wp-block-button__link):not(.wp-element-button) {
	color: var(--wp--preset--color--on-deep);
	text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
	text-underline-offset: 0.18em;
}

.adx-on-dark a:not(.wp-block-button__link):not(.wp-element-button):hover,
.adx-hero a:not(.wp-block-button__link):not(.wp-element-button):hover {
	color: var(--wp--preset--color--accent-bright);
}

.adx-on-dark :where(.adx-checks) > li::before,
.adx-hero :where(.adx-checks) > li::before {
	color: var(--wp--preset--color--accent-bright);
}

/* A separator used as a gold rule: core paints separators with a border, so a
 * background colour alone renders nothing. */
.adx-on-dark .wp-block-separator.has-background,
.adx-hero .wp-block-separator.has-background {
	border: 0;
	block-size: 2px;
	inline-size: 3.5rem;
	margin-inline: 0;
	opacity: 1;
}

/* ---- Hero content alignment ------------------------------------------
 * A cover block with a constrained layout centres its children, so a hero
 * whose scrim comes in from the LEFT ends up with its text in the middle —
 * over the bright part of the photograph, which is both harder to read and
 * not the composition the scrim was drawn for.
 *
 * The content group is alignwide so it occupies the wide container, and its
 * own children are held to a reading measure and pinned to the start edge.
 * `margin-inline: 0 auto` rather than `margin-inline-start: 0` so it stays
 * correct under RTL.
 */
.adx-hero-content > * {
	margin-inline: 0 auto;
	max-inline-size: min(100%, 46rem);
}

.adx-hero-content.is-centred {
	text-align: center;
}

.adx-hero-content.is-centred > * {
	margin-inline: auto;
}

/* A hero's own buttons row should not inherit the reading measure cap — two
 * wide buttons plus a phone number need the room. */
.adx-hero-content > .wp-block-buttons {
	max-inline-size: none;
}

/* ---- Section headers align with the grid below them -------------------
 * The misalignment this fixes is small and it is the difference between a
 * page that looks designed and one that looks assembled.
 *
 * A pattern's band is a constrained group: its heading is held to the reading
 * measure and CENTRED by core, while its card grid carries `alignwide` and so
 * starts further left. The result is a heading indented by roughly a hundred
 * pixels relative to the cards it introduces — visible on every section of
 * every page once you have seen it.
 *
 * The fix pins the header to the wide container's leading edge and lets it
 * keep its reading measure: the start margin is the distance from the band's
 * own edge to where an alignwide child begins, which is zero once the viewport
 * is narrower than the wide size. No !important, and the
 * `.wp-block-group.adx-section` prefix carries one more class than core's own
 * constrained-layout rule so it wins the cascade regardless of stylesheet
 * order.
 */
/*
 * 1.2.0 adds the condition this rule was always missing: `:has(> .alignwide)`.
 *
 * 1.1.0 pulled the header to the wide edge in EVERY section, on the assumption
 * that every section contains a wide grid. The calculator pages broke that
 * assumption -- a prose section, or a "Related calculators" section holding a
 * row of chips at reading width, has nothing alignwide in it, so the header was
 * pulled 264px to the LEFT of the content it introduced. Same defect, opposite
 * sign, and the alignment check now in the harness reports both.
 *
 * So the pull is conditional on the section actually having a wide child. A
 * browser with no :has() support drops the rule and the header stays centred at
 * reading width, which is the pre-1.1.0 behaviour rather than a broken one --
 * acceptable, since :has() has been available in every current engine since
 * 2023.
 */
.wp-block-group.adx-section:has(> .alignwide, > .alignfull) > :is(
	.adx-section-head,
	.adx-eyebrow,
	.wp-block-heading,
	.adx-lede
) {
	margin-inline-start: max(0px, calc((100% - var(--wp--style--global--wide-size)) / 2));
	margin-inline-end: auto;
}

/* The same for a hand-written heading group — patterns that group their
 * eyebrow and heading rather than calling ADX_Patterns::head(). */
.wp-block-group.adx-section:has(> .alignwide, > .alignfull) > .wp-block-group:has(> .adx-eyebrow) {
	margin-inline-start: max(0px, calc((100% - var(--wp--style--global--wide-size)) / 2));
	margin-inline-end: auto;
	max-inline-size: var(--wp--custom--measure--answer);
}

/* A centred section header wants to stay centred — and has to say so at a
 * specificity above the :has() pull, which is now 0,4,0. At 0,3,0 the centred
 * header was pulled to the wide edge and then centred in what was left of the
 * row, which put it a hundred and seventy pixels left of the grid it sat over.
 */
.wp-block-group.adx-section:has(> .alignwide, > .alignfull) > .adx-section-head.is-centred,
.wp-block-group.adx-section > .adx-section-head.is-centred {
	margin-inline: auto;
}

/* ---- Trust row -------------------------------------------------------
 * Four short statements, two-by-two on a phone. A grid rather than a columns
 * block because a columns block either stacks to four full-width rows or
 * refuses to stack at all, and neither is right for four three-word claims.
 */
.adx-trust-row {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
	list-style: none;
	margin: 0;
	padding: 0;
}

.adx-trust-row > li {
	margin: 0;
	text-align: center;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 620;
	color: var(--wp--preset--color--ink);
	text-wrap: balance;
}

@media (max-width: 599px) {
	.adx-trust-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Phone-width polish ----------------------------------------------
 * Two things that only show up at 390px and both read as carelessness:
 * buttons of different widths stacked on top of each other, and an uppercase
 * tracked eyebrow that runs into the gutter because it cannot wrap.
 */
@media (max-width: 479px) {
	.adx-hero-content .wp-block-buttons .wp-block-button,
	.adx-section .wp-block-buttons .wp-block-button {
		flex: 1 1 100%;
	}

	.adx-hero-content .wp-block-button__link,
	.adx-section .wp-block-buttons .wp-block-button__link {
		inline-size: 100%;
	}
}

@media (max-width: 599px) {
	.adx-eyebrow {
		flex-wrap: wrap;
		letter-spacing: 0.06em;
	}

	/* The rule before an eyebrow is decoration; at this width the words need
	 * the space more than the rule does. */
	.adx-eyebrow::before { inline-size: 1.1rem; }
}

/* ---- Section bar: a header with a link beside it ---------------------
 * "Featured listings" on the left, "See every listing" on the right. The
 * pattern declares a flex layout, and core generates the CSS for it — but a
 * real class here means the arrangement does not depend on core's generated
 * layout stylesheet reaching the page, and it lets the header keep its own
 * alignment rule without fighting the flex container.
 */
.adx-section-bar {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	flex-wrap: wrap;
}

.adx-section-bar > .adx-section-head {
	margin: 0;
	flex: 1 1 22rem;
}

.adx-section-bar > p {
	margin: 0;
	flex: 0 0 auto;
	padding-bottom: 0.35rem;
}

.adx-section-bar > p a {
	font-weight: 560;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

/* Inside a flex bar the header must not take the wide-container offset — it is
 * already positioned by the bar. */
.wp-block-group.adx-section > .adx-section-bar > .adx-section-head {
	margin-inline-start: 0;
}

/* =======================================================================
 * 1.2.0 — Couture layer
 *
 * 1.1.0 fixed what was broken. The result was clean and, in Ehsan's words,
 * still pale: white, off-white, off-white again, then black, with pastel
 * accents on the dark bands. Three things change here.
 *
 * 1. The band vocabulary gains a middle. `surface-mid` is a saturated,
 *    mid-dark band that carries light text, so a page can move
 *    surface → tint → alt → mid → deep instead of jumping from off-white to
 *    near-black. Depth is what reads as expensive; alternating two whites
 *    reads as a template.
 *
 * 2. `accent-bright` is saturated rather than pastel, and it is on-dark only.
 *    The palette generator asserts it FAILS AA on a light surface, so nothing
 *    can quietly start using it as body text on white.
 *
 * 3. A couture mode. The real-estate and restaurant variations set a wide
 *    eyebrow tracking and a serif display face; the rules below give that mode
 *    the treatment the reference sites use — full-bleed cinematic hero, a gold
 *    hairline under a credential line, uppercase display headings with open
 *    tracking, hairline-thin cards and a metal-leaf accent.
 *
 * Everything here is token-driven. A variation that does not opt into couture
 * gets the same structure in its own palette and type, which is the point of
 * shipping one theme rather than ten.
 * ======================================================================= */

/* ---- The middle of the band vocabulary -------------------------------
 * The 1.1.0 hardening rule pinned every dark band to surface-deep with
 * !important, which was correct then and wrong the moment a second dark band
 * existed. The floor is now a variable the band itself sets, so the
 * can't-go-transparent guarantee survives and `is-mid` still gets its own
 * colour.
 */
.adx-section.adx-on-dark,
.adx-on-dark.wp-block-cover {
	background-color: var(--adx-dark-bg, var(--wp--preset--color--surface-deep)) !important;
}

.adx-section.is-mid {
	--adx-dark-bg: var(--wp--preset--color--surface-mid);
}

.adx-section.is-ink {
	--adx-dark-bg: var(--wp--preset--color--brand-ink);
}

.adx-section.is-mid,
.adx-section.is-ink {
	--adx-on-dark: 1;
}

/* Two dark bands in a row read as one long band unless something marks the
 * join. A gold hairline is enough and is cheaper than padding. */
.adx-section.adx-on-dark + .adx-section.adx-on-dark {
	border-block-start: 1px solid color-mix(in srgb, var(--wp--preset--color--accent-bright) 22%, transparent);
}

/*
 * A card reads against whatever it sits on -- and since the page ground became
 * a light blue, that is always the same answer: the card is the card colour.
 *
 * These rules are what they became after that change, not what they were. They
 * used to tint a card ON a plain section, because the plain section was white
 * and a white card on a white page is invisible. The ground is tinted now, so
 * that rule ran backwards: it painted the card DARKER than the page it was
 * lifted off, which looked like a dent rather than a card. Worth recording
 * because the rule was individually sensible and became wrong without being
 * touched -- the kind of breakage that only shows up in a render.
 *
 * Kept at this specificity on purpose: it has to beat the base .adx-card
 * declaration and be beaten by nothing else.
 */
.adx-section.is-alt .adx-card,
.adx-section.is-tint .adx-card,
.adx-section:not(.is-alt):not(.is-tint):not(.adx-on-dark) .adx-card {
	background-color: var(--adx-card);
	border-color: transparent;
}

/*
 * On a dark band a card is a translucent lift, NOT a white panel -- unless it
 * has asked to be solid.
 *
 * The exclusion is the whole rule. Without it this caught the hero's method
 * card, which is deliberately solid white on the gradient and carries dark
 * body text and a dark link: a translucent white over blue turned it into a
 * pale blue panel and dropped that text to 3.09:1 and the link to 1.89:1.
 * Fifty-two contrast findings from one missing :not().
 */
.adx-section.adx-on-dark .adx-card:not(.adx-soft--solid):not(.adx-card--solid) {
	background-color: color-mix(in srgb, #FFFFFF 8%, transparent);
	border-color: color-mix(in srgb, #FFFFFF 14%, transparent);
}

/* And a solid card on a dark band is exactly what it says. */
.adx-section.adx-on-dark .adx-soft--solid,
.adx-section.adx-on-dark .adx-card--solid {
	background-color: var(--adx-card);
	border-color: transparent;
}

/* ---- Couture mode ----------------------------------------------------
 * Opted into by a style variation setting a wide eyebrow tracking. Reading the
 * flag off a custom property rather than a body class means a client who
 * switches variation in the site editor gets the switch too, with no PHP
 * involved.
 */
.adx-eyebrow {
	font-size: var(--wp--custom--eyebrow-size, 0.8125rem);
	letter-spacing: var(--wp--custom--eyebrow-tracking, 0.16em);
}

/* The couture display treatment. Applied by class so a pattern can ask for it
 * explicitly, and by the real-estate templates throughout. */
.adx-display-couture,
.adx-hero.is-cinematic h1,
.adx-hero.is-cinematic .adx-hero-title {
	font-family: var(--wp--preset--font-family--serif);
	font-weight: 300;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	line-height: 1.02;
}

/* ---- Cinematic hero -------------------------------------------------
 * Full viewport height, one slow drift across the photograph, three layers of
 * veil, and text that sits on the lower third rather than the middle. The
 * height uses svh, not vh: on a phone vh is the tallest the viewport ever
 * gets, so a 100vh hero is cropped by the browser chrome on first paint.
 */
.wp-block-cover.adx-hero.is-cinematic {
	min-block-size: var(--wp--custom--hero--full, 100svh);
	/*
	 * No padding on the cover itself. It moved to the inner container.
	 *
	 * An absolutely positioned child is laid out against its containing
	 * block's PADDING box, and the slideshow's containing block is the inner
	 * container, which is the full size of this element's CONTENT box. So
	 * every pixel of padding here became a strip of bare cover showing round
	 * the edge of the photographs -- sixteen down each side from the block
	 * default and seventy-two across the top from the rule that used to live
	 * on this line.
	 *
	 * The spacing itself has not gone anywhere; it is on the inner container
	 * now, which is the box the words are actually in.
	 */
	padding: 0;
	align-items: flex-end;
	overflow: hidden;
}

@media (max-width: 781px) {
	.wp-block-cover.adx-hero.is-cinematic {
		min-block-size: clamp(34rem, 88svh, 46rem);
	}
}

/*
 * The drift, and the exposure.
 *
 * 32 seconds, alternating, so it never snaps back to the start -- a visible
 * reset is the thing that makes a Ken Burns effect look cheap.
 *
 * The zoom used to run to 1.13. On a 1280px photograph that is 1133px of real
 * pixels stretched across a 2560px hero, and it showed. 1.04 to 1.10 is still
 * clearly moving and keeps a quarter more detail.
 *
 * The brightness filter is the part that was missing. Every hero worth copying
 * darkens the PHOTOGRAPH, not just the air above it: an overlay alone has to
 * be heavy enough for the brightest pixel in the image, which flattens
 * everything else to mud. Taking a third out of the exposure first means the
 * wash on top can stay light enough to keep the picture.
 */
.wp-block-cover.adx-hero.is-cinematic .wp-block-cover__image-background,
.adx-kenburns img {
	animation: adx-drift 32s ease-in-out infinite alternate;
	will-change: transform;
	filter: brightness(0.66) saturate(0.94) contrast(1.05);
}

@keyframes adx-drift {
	from { transform: scale(1.04) translate3d(0, 0, 0); }
	to   { transform: scale(1.10) translate3d(-1.2%, -1.8%, 0); }
}

/* Darker again on a phone: the text runs the full width, the type is smaller
 * relative to the picture, and the screen is read in daylight. */
@media (max-width: 781px) {
	.wp-block-cover.adx-hero.is-cinematic .wp-block-cover__image-background,
	.adx-kenburns img {
		filter: brightness(0.56) saturate(0.92) contrast(1.07);
	}
}

/*
 * The slideshow, when the site has supplied more than one hero image.
 *
 * "Sits above the cover's own image and below its overlay" is what this
 * comment claimed for two versions, and it was wrong on both counts, which
 * only became visible the day a real photograph went in behind it instead of
 * a dark drawn placeholder.
 *
 * The markup has to live inside `.wp-block-cover__inner-container`, because
 * that is the only place the cover block gives a pattern to put anything. That
 * container is `is-layout-constrained`, so it was capping the slideshow at the
 * content width -- the hero drew a bright 720px rectangle of photograph in the
 * middle of a dark band. And the container is `position: relative; z-index: 1`
 * and comes after the veil in the DOM, so the photographs painted ON TOP of
 * the scrim that exists to make the headline readable over them.
 *
 * Both are fixed below, in CSS, rather than by moving the markup: anything
 * placed inside a cover block but outside its inner container is freeform
 * content the block parser is entitled to drop.
 */
.adx-kenburns {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
	/* Out of the constrained layout. The core rule that caps a constrained
	 * child is written entirely in :where(), so it carries no specificity and
	 * one class is enough to opt out. */
	max-width: none;
	width: auto;
	margin-inline: 0;
}

.adx-hero.is-cinematic > .wp-block-cover__background {
	/*
	 * Full strength, not half.
	 *
	 * Core hands a cover's gradient overlay `opacity: 0.5`, which turned the
	 * veil's designed 0.66 top scrim into 0.33. That was survivable over the
	 * dark drawn placeholder and is not survivable over a photograph of a
	 * house at dusk with a bright sky in it. The veil sits under the slideshow
	 * rather than over it -- the DOM gives no way round that -- so it is the
	 * scrim below that carries the photographs, and this one carries the
	 * cover's own image on a site with a single hero picture.
	 */
	opacity: 1;
}

/*
 * The scrim that actually covers the photographs.
 *
 * It belongs to the slideshow rather than to the cover, because the cover's
 * own veil is painted underneath it and nothing short of moving the markup
 * changes that. Inside `.adx-kenburns` it sits above the images and below
 * `.adx-hero-content`, which is exactly where a scrim should be.
 *
 * EVEN, NOT WEIGHTED TO ONE SIDE
 *
 * The first attempt ran dark on the left, where the headline is, and faded to
 * almost nothing on the right "where the photograph is the only thing anybody
 * is looking at". That reasoning was wrong twice over. The eye reads the
 * brightest part of a frame first, so a bright right-hand half pulls attention
 * away from the words rather than leaving them alone -- and the gradient's own
 * edge becomes a visible diagonal across the picture, which looks like a
 * mistake rather than like lighting.
 *
 * So: an even vertical wash, heavy at the top where it meets the header,
 * lightest through the middle where the photograph is allowed to be a
 * photograph, and heaviest at the bottom so the section below starts from
 * black. A soft vignette closes the corners. With the exposure already down a
 * third this adds up to roughly 0.8 over the brightest part of a sky and the
 * picture still reads as a picture.
 *
 * Worst case, white text over a near-white cloud: about 10:1 at the top of the
 * hero and 6.6:1 at its lightest point.
 */
.adx-kenburns::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background:
		radial-gradient(
			120% 90% at 50% 46%,
			rgba(1, 16, 22, 0) 0%,
			rgba(1, 16, 22, 0.18) 58%,
			rgba(1, 16, 22, 0.46) 100%
		),
		linear-gradient(
			180deg,
			rgba(1, 16, 22, 0.64) 0%,
			rgba(1, 16, 22, 0.48) 20%,
			rgba(1, 16, 22, 0.44) 46%,
			rgba(1, 16, 22, 0.62) 72%,
			rgba(1, 16, 22, 0.86) 100%
		);
}

@media (max-width: 781px) {
	.adx-kenburns::after {
		background:
			linear-gradient(
				180deg,
				rgba(1, 16, 22, 0.66) 0%,
				rgba(1, 16, 22, 0.52) 28%,
				rgba(1, 16, 22, 0.56) 60%,
				rgba(1, 16, 22, 0.88) 100%
			);
	}
}

.adx-kenburns img:nth-child(1) { animation-delay: 0s, 0s; }
.adx-kenburns img:nth-child(2) { animation-delay: -11s, calc(var(--adx-slide-cycle, 27s) / 3); }
.adx-kenburns img:nth-child(3) { animation-delay: -22s, calc(var(--adx-slide-cycle, 27s) / 3 * 2); }

/* Three slides, so each is visible for a third of the cycle with a crossfade
 * at each end. The percentages are 1/3 of the cycle plus overlap. */
@keyframes adx-slide-fade {
	0%   { opacity: 0; }
	4%   { opacity: 1; }
	29%  { opacity: 1; }
	37%  { opacity: 0; }
	100% { opacity: 0; }
}

/*
 * Two slides.
 *
 * The three-slide timing run with two images leaves a third of every cycle
 * with both of them at zero opacity: the hero drops to the flat cover colour
 * for nine seconds and then comes back, which a visitor reads as the page
 * having broken rather than as a transition. Two slides want halves, with the
 * fades overlapping so one is always on its way in while the other is on its
 * way out.
 *
 * Slide one holds 8%–50% and fades out by 58%; slide two, delayed half a
 * cycle, holds 58%–100% and fades out by 8% of the next. Every moment of the
 * cycle has at least one image at full opacity or two mid-crossfade.
 */
.adx-kenburns.is-2 img { animation-name: adx-drift, adx-slide-fade-2; }
.adx-kenburns.is-2 img:nth-child(1) { animation-delay: 0s, 0s; }
.adx-kenburns.is-2 img:nth-child(2) { animation-delay: -13s, calc(var(--adx-slide-cycle, 27s) / 2); }

@keyframes adx-slide-fade-2 {
	0%   { opacity: 0; }
	8%   { opacity: 1; }
	50%  { opacity: 1; }
	58%  { opacity: 0; }
	100% { opacity: 0; }
}

/* A single slide must not fade out to nothing. */
.adx-kenburns img:only-child {
	opacity: 1;
	animation: adx-drift 32s ease-in-out infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-cover.adx-hero.is-cinematic .wp-block-cover__image-background,
	.adx-kenburns img {
		animation: none !important;
		transform: none !important;
	}

	.adx-kenburns img { opacity: 0; }
	.adx-kenburns img:first-child { opacity: 1; }
}

/* Content sits low and left, with a generous measure. Centred hero text over a
 * photograph is the single commonest way a good photograph is wasted. */
/*
 * The cover's inner container stretches to the hero's full height.
 *
 * Without this it is only as tall as its text, and the scroll cue -- which is
 * bottom-anchored to the nearest positioned ancestor, and that is the inner
 * container -- landed in the middle of the paragraph instead of at the bottom
 * of the hero. Stretching the container also lets the content sit at the
 * bottom without relying on the cover's own align-items.
 */
.adx-hero.is-cinematic > .wp-block-cover__inner-container {
	align-self: stretch;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	/*
	 * The hero's own spacing, moved here off the cover so that the slideshow
	 * can reach the edges of the screen. The end value carries the cover's
	 * former bottom padding plus the room the scroll cue needs -- the cue is
	 * bottom-anchored to this same box, and with the content also bottom
	 * aligned the two landed on top of each other.
	 */
	padding-block: var(--wp--preset--spacing--70) calc(var(--wp--preset--spacing--60) + 4.5rem);
}

@media (max-width: 599px) {
	/* The cue is hidden at this width, so the room it reserved is not needed --
	 * but the hero's own bottom spacing still is. */
	.adx-hero.is-cinematic > .wp-block-cover__inner-container {
		padding-block-end: var(--wp--preset--spacing--60);
	}
}

.adx-hero.is-cinematic .adx-hero-content {
	max-width: 62rem;
	position: relative;
	z-index: 2;
}

/*
 * 7.4vw was copied from a reference site whose headline is three words. At
 * 1440px that is 106px, and a sentence-length headline set in uppercase with
 * 0.1em tracking then breaks mid-word -- "INFORMATI / ON." -- which is the
 * first thing anyone notices. The cap is sized for a headline of six to ten
 * words, which is what the pattern ships and what a real one will be, and
 * `overflow-wrap: normal` makes a too-long single word overflow visibly rather
 * than splitting silently, so the problem is obvious in the editor instead of
 * on the live site.
 */
.adx-hero.is-cinematic h1,
.adx-hero.is-cinematic .adx-hero-title {
	font-size: clamp(2.125rem, 5.2vw, 4.5rem);
	margin-block: 0.35em 0.5em;
	text-wrap: balance;
	overflow-wrap: normal;
	hyphens: manual;
}

/* Three words or fewer -- a name, a place -- can take the full cinematic size.
 * Opt in per heading, because CSS cannot count words. */
.adx-hero.is-cinematic h1.is-monumental,
.adx-hero.is-cinematic .adx-hero-title.is-monumental {
	font-size: clamp(2.75rem, 7.4vw, 6.75rem);
	letter-spacing: 0.12em;
}

/* The credential line: a gold hairline, then one line of the things that
 * qualify the person. It is deliberately not a heading — it is a caption that
 * happens to be the most persuasive text on the page.
 */
.adx-credential {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--30);
	margin-block: 0 var(--wp--preset--spacing--40);
	font-size: var(--wp--preset--font-size--sm);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--on-deep);
}

.adx-credential::before {
	content: "";
	flex: 0 0 auto;
	inline-size: 3.25rem;
	block-size: 1px;
	background-color: var(--wp--preset--color--accent-bright);
}

.adx-credential.is-centred { justify-content: center; }

.adx-credential.is-centred::after {
	content: "";
	flex: 0 0 auto;
	inline-size: 3.25rem;
	block-size: 1px;
	background-color: var(--wp--preset--color--accent-bright);
}

/* Where the person works. One line, small, under the buttons. */
.adx-serves {
	margin-block-start: var(--wp--preset--spacing--40);
	font-size: var(--wp--preset--font-size--sm);
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--on-deep-muted);
}

.adx-serves strong {
	color: var(--wp--preset--color--on-deep);
	font-weight: 500;
}

/* Scroll cue. A 1px gold line that travels down its own track. It is
 * decorative, so it is hidden from assistive technology and from anyone who
 * has asked for less motion.
 */
.adx-scroll-cue {
	position: absolute;
	inset-block-end: var(--wp--preset--spacing--40);
	inset-inline-start: 50%;
	translate: -50% 0;
	z-index: 3;
	inline-size: 1px;
	block-size: 3.5rem;
	overflow: hidden;
	background-color: color-mix(in srgb, var(--wp--preset--color--on-deep) 24%, transparent);
}

.adx-scroll-cue::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	block-size: 1.25rem;
	background-color: var(--wp--preset--color--accent-bright);
	animation: adx-cue 2.4s ease-in-out infinite;
}

@keyframes adx-cue {
	0%   { inset-block-start: -1.25rem; }
	100% { inset-block-start: 3.5rem; }
}

@media (prefers-reduced-motion: reduce) {
	.adx-scroll-cue { display: none; }
}

@media (max-width: 599px) {
	.adx-scroll-cue { display: none; }
}

/* ---- Gold-leaf button ------------------------------------------------
 * A hairline gold border on a barely-there fill, filling solid on hover. The
 * reference sites use exactly this and it is why their single call to action
 * reads as more confident than three coloured buttons would.
 */
.wp-block-button.is-style-leaf > .wp-block-button__link,
.adx-btn-leaf {
	min-block-size: 3.5rem;
	padding-inline: 2.25rem;
	background-color: color-mix(in srgb, var(--wp--preset--color--accent-bright) 14%, transparent);
	border: 1px solid var(--wp--preset--color--accent-bright);
	border-radius: var(--wp--custom--radius--sm);
	color: var(--wp--preset--color--on-deep);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-decoration: none;
}

.wp-block-button.is-style-leaf > .wp-block-button__link:hover,
.adx-btn-leaf:hover {
	background-color: var(--wp--preset--color--accent-bright);
	color: var(--wp--preset--color--brand-ink);
	border-color: var(--wp--preset--color--accent-bright);
}

/* The same button on a light band, where on-deep text would disappear. */
.adx-section:not(.adx-on-dark):not(.wp-block-cover) .wp-block-button.is-style-leaf > .wp-block-button__link,
.adx-section:not(.adx-on-dark):not(.wp-block-cover) .adx-btn-leaf {
	color: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--accent);
	background-color: color-mix(in srgb, var(--wp--preset--color--accent) 8%, transparent);
}

.adx-section:not(.adx-on-dark):not(.wp-block-cover) .wp-block-button.is-style-leaf > .wp-block-button__link:hover,
.adx-section:not(.adx-on-dark):not(.wp-block-cover) .adx-btn-leaf:hover {
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--surface);
}

/* ---- Portrait with a badge ------------------------------------------
 * The about band. A photograph in a frame whose gold rule is offset from the
 * image rather than drawn on it, and a medal pinned to the lower corner.
 */
.adx-portrait {
	position: relative;
	isolation: isolate;
}

.adx-portrait__frame {
	position: relative;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--md);
	background-color: var(--wp--preset--color--surface-alt);
	aspect-ratio: 4 / 5;
}

.adx-portrait__frame img {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

/* The offset rule. Drawn behind the image and inset from two edges, so the
 * photograph appears to sit on a gold corner rather than inside a gold box. */
.adx-portrait::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset-block: var(--wp--preset--spacing--30) calc(-1 * var(--wp--preset--spacing--30));
	inset-inline: calc(-1 * var(--wp--preset--spacing--30)) var(--wp--preset--spacing--30);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--accent-bright) 72%, transparent);
	border-radius: var(--wp--custom--radius--md);
}

.adx-medal {
	position: absolute;
	inset-block-end: calc(-1 * var(--wp--preset--spacing--20));
	inset-inline-end: calc(-1 * var(--wp--preset--spacing--20));
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.15rem;
	inline-size: 7.5rem;
	block-size: 7.5rem;
	padding: 0.5rem;
	border-radius: 999px;
	background-color: var(--wp--preset--color--surface-deep);
	border: 1px solid var(--wp--preset--color--accent-bright);
	color: var(--wp--preset--color--on-deep);
	text-align: center;
	box-shadow: var(--wp--preset--shadow--lg);
}

.adx-medal__value {
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1.5rem;
	line-height: 1;
	color: var(--wp--preset--color--accent-bright);
	font-variant-numeric: tabular-nums;
}

.adx-medal__label {
	font-size: 0.5625rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	line-height: 1.3;
	color: var(--wp--preset--color--on-deep-muted);
}

@media (max-width: 599px) {
	.adx-medal {
		inline-size: 6rem;
		block-size: 6rem;
	}

	.adx-medal__value { font-size: 1.125rem; }
	.adx-medal__label { font-size: 0.5rem; }
}

/* ---- Stat panel -----------------------------------------------------
 * Four figures on a tinted panel with hairline gutters, rather than four
 * floating numbers. The hairlines are borders on the cells, cancelled on the
 * outer edges, so the panel keeps working when the grid drops to two columns.
 */
.adx-stat-panel {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-block: var(--wp--preset--spacing--40);
	background-color: var(--wp--preset--color--surface-alt);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--md);
	overflow: hidden;
	list-style: none;
	padding: 0;
}

.adx-on-dark .adx-stat-panel {
	background-color: color-mix(in srgb, var(--wp--preset--color--on-deep) 6%, transparent);
	border-color: color-mix(in srgb, var(--wp--preset--color--accent-bright) 26%, transparent);
}

.adx-stat-panel > li {
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30);
	border-inline-start: 1px solid var(--wp--preset--color--line);
	border-block-start: 1px solid var(--wp--preset--color--line);
	margin: 0;
}

.adx-on-dark .adx-stat-panel > li {
	border-color: color-mix(in srgb, var(--wp--preset--color--accent-bright) 20%, transparent);
}

/* Cancel the rules that would draw on the panel's own border. The panel is a
 * two-column grid at every width, so "first row" is the first two cells and
 * "first column" is the odd cells -- nth-child() cannot read a custom
 * property, so the column count lives here and in the grid template together.
 */
.adx-stat-panel > li:nth-child(-n + 2) { border-block-start: 0; }
.adx-stat-panel > li:nth-child(odd) { border-inline-start: 0; }

.adx-stat-panel__value {
	display: block;
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(1.75rem, 3.4vw, 2.625rem);
	line-height: 1;
	color: var(--wp--preset--color--accent);
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
}

.adx-on-dark .adx-stat-panel__value { color: var(--wp--preset--color--accent-bright); }

.adx-stat-panel__label {
	display: block;
	margin-block-start: 0.4rem;
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.adx-on-dark .adx-stat-panel__label { color: var(--wp--preset--color--on-deep-muted); }

/* ---- Value pills ----------------------------------------------------- */
.adx-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	padding: 0;
	margin-block: var(--wp--preset--spacing--30);
}

.adx-pills > li {
	margin: 0;
	padding: 0.4rem 0.9rem;
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: 999px;
	color: var(--wp--preset--color--body);
	background-color: var(--wp--preset--color--surface);
}

.adx-on-dark .adx-pills > li {
	border-color: color-mix(in srgb, var(--wp--preset--color--accent-bright) 34%, transparent);
	background-color: transparent;
	color: var(--wp--preset--color--on-deep);
}

/* ---- Search band ----------------------------------------------------
 * Area cards beside a sticky map, with a search card lifted over the join. The
 * negative margin is the detail that makes the band look composed rather than
 * stacked, and it is the first thing to go on a phone, where an overlap just
 * means two things on top of each other.
 */
.adx-search-band__map {
	position: sticky;
	top: calc(var(--wp--preset--spacing--40) + var(--adx-admin-bar, 0px));
}

.adx-search-card {
	position: relative;
	z-index: 2;
	margin-block-start: calc(-1 * var(--wp--preset--spacing--60));
	margin-inline: var(--wp--preset--spacing--40);
	padding: var(--wp--preset--spacing--40);
	background-color: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--md);
	box-shadow: var(--wp--preset--shadow--xl);
}

.adx-search-card > :first-child { margin-top: 0; }
.adx-search-card > :last-child { margin-bottom: 0; }

.adx-search-card__title {
	margin: 0 0 var(--wp--preset--spacing--30);
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

@media (max-width: 781px) {
	.adx-search-band__map { position: static; }

	.adx-search-card {
		margin-block-start: var(--wp--preset--spacing--40);
		margin-inline: 0;
	}
}

/* An area card inside the search band is taller and carries its arrow. */
.adx-area-card.is-tall { aspect-ratio: 3 / 4; }

.adx-area-card__arrow {
	position: absolute;
	inset-block-end: var(--wp--preset--spacing--30);
	inset-inline-end: var(--wp--preset--spacing--30);
	z-index: 2;
	display: grid;
	place-items: center;
	inline-size: 2.25rem;
	block-size: 2.25rem;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--accent-bright) 70%, transparent);
	border-radius: 999px;
	color: var(--wp--preset--color--accent-bright);
	transition: background-color var(--wp--custom--transition--fast), color var(--wp--custom--transition--fast);
}

.adx-area-card:hover .adx-area-card__arrow {
	background-color: var(--wp--preset--color--accent-bright);
	color: var(--wp--preset--color--brand-ink);
}

/* ---- Property-type strip -------------------------------------------
 * Five cards on the deepest surface, each with a gold-ringed icon. Five across
 * is too many below 1100px and two is too few above 600, so it steps.
 */
.adx-type-strip {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--30);
	list-style: none;
	padding: 0;
	margin: 0;
}

@media (max-width: 1100px) {
	.adx-type-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 599px) {
	.adx-type-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.adx-type-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
	margin: 0;
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30);
	text-align: center;
	background-color: var(--wp--preset--color--brand-ink);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--accent-bright) 20%, transparent);
	border-radius: var(--wp--custom--radius--md);
	transition: border-color var(--wp--custom--transition--base), transform var(--wp--custom--transition--base);
}

.adx-type-card:hover {
	border-color: var(--wp--preset--color--accent-bright);
	transform: translateY(-3px);
}

.adx-type-card__icon {
	display: grid;
	place-items: center;
	inline-size: 3.5rem;
	block-size: 3.5rem;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--accent-bright) 62%, transparent);
	border-radius: 999px;
	color: var(--wp--preset--color--accent-bright);
}

.adx-type-card__icon svg {
	inline-size: 1.375rem;
	block-size: 1.375rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.adx-type-card__name {
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--on-deep);
}

.adx-type-card__meta {
	font-size: var(--wp--preset--font-size--xs);
	color: var(--wp--preset--color--on-deep-muted);
}

.adx-type-card a {
	text-decoration: none;
	color: inherit;
}

/* ---- Gold hairline rule --------------------------------------------- */
.adx-rule-gold {
	border: 0;
	block-size: 1px;
	inline-size: 3.5rem;
	margin-block: var(--wp--preset--spacing--30);
	margin-inline: 0;
	background-color: var(--wp--preset--color--accent-bright);
	opacity: 1;
}

.adx-section:not(.adx-on-dark) .adx-rule-gold {
	background-color: var(--wp--preset--color--accent);
}

.adx-section-head.is-centred .adx-rule-gold { margin-inline: auto; }

/* ---- City search columns -------------------------------------------
 * A city with its property types under it. Three cities across, each a plain
 * list of links — deliberately text, because these are the pages the search
 * engines and the answer engines need to find, and an accordion hides them.
 */
.adx-city-cols {
	display: grid;
	grid-template-columns: repeat(var(--adx-cols, 3), minmax(0, 1fr));
	gap: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
}

@media (max-width: 781px) {
	.adx-city-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
	.adx-city-cols { grid-template-columns: minmax(0, 1fr); }
}

.adx-city-col__name {
	margin: 0 0 var(--wp--preset--spacing--20);
	padding-block-end: var(--wp--preset--spacing--20);
	border-block-end: 1px solid color-mix(in srgb, var(--wp--preset--color--accent-bright) 40%, transparent);
	font-family: var(--wp--preset--font-family--serif);
	font-size: var(--wp--preset--font-size--xl);
	letter-spacing: 0.04em;
}

.adx-city-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.adx-city-col li {
	margin: 0;
	padding-block: 0.3rem;
	font-size: var(--wp--preset--font-size--sm);
}

/* ---- Pre-construction city cloud -----------------------------------
 * Twenty city links. A grid of cards would be twenty cards of nothing; a
 * wrapping row of hairline chips is honest about what it is.
 */
.adx-chip-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.adx-chip-cloud > li { margin: 0; }

.adx-chip-cloud a {
	display: inline-block;
	padding: 0.5rem 1rem;
	font-size: var(--wp--preset--font-size--sm);
	letter-spacing: 0.04em;
	text-decoration: none;
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: var(--wp--custom--radius--sm);
	color: var(--wp--preset--color--body);
	transition: border-color var(--wp--custom--transition--fast), color var(--wp--custom--transition--fast);
}

.adx-chip-cloud a:hover {
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--ink);
}

.adx-on-dark .adx-chip-cloud a {
	color: var(--wp--preset--color--on-deep);
	border-color: color-mix(in srgb, var(--wp--preset--color--accent-bright) 30%, transparent);
}

.adx-on-dark .adx-chip-cloud a:hover {
	border-color: var(--wp--preset--color--accent-bright);
	color: var(--wp--preset--color--accent-bright);
}

/* ---- Editorial figure ------------------------------------------------
 * A large quote or credential passage on a tinted panel with a gold edge. Used
 * where a page needs a pause rather than another grid.
 */
.adx-editorial {
	margin: 0;
	padding: var(--wp--preset--spacing--50);
	background-color: var(--wp--preset--color--surface-alt);
	border-inline-start: 2px solid var(--wp--preset--color--accent);
	border-radius: 0 var(--wp--custom--radius--md) var(--wp--custom--radius--md) 0;
}

.adx-editorial p {
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(1.25rem, 2.4vw, 1.75rem);
	line-height: 1.4;
	color: var(--wp--preset--color--ink);
	margin-block: 0;
}

.adx-on-dark .adx-editorial {
	background-color: color-mix(in srgb, var(--wp--preset--color--on-deep) 6%, transparent);
	border-inline-start-color: var(--wp--preset--color--accent-bright);
}

.adx-on-dark .adx-editorial p { color: var(--wp--preset--color--on-deep); }

/* ---- Calculator shell ----------------------------------------------
 * The calculator pages embed the CRM's calculator shortcodes. The theme owns
 * how they sit on the page, not what they compute.
 */
.adx-calc {
	padding: var(--wp--preset--spacing--50);
	background-color: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: var(--wp--custom--radius--md);
	box-shadow: var(--wp--preset--shadow--md);
}

.adx-calc :is(input, select) {
	/* 16px minimum: anything smaller and iOS Safari zooms the page on focus,
	 * which reads as the site being broken. */
	font-size: max(1rem, 0.9375rem);
	min-block-size: 2.75rem;
}

.adx-calc-note {
	margin-block-start: var(--wp--preset--spacing--30);
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--muted);
}

/* ---- Tabular figures wherever money appears ------------------------ */
.adx-figure,
.adx-property__price,
.adx-stat-panel__value,
.adx-medal__value,
td:has(> .adx-figure) {
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
}

/* ---- Calculator forms and results ----------------------------------
 * A calculator is a form whose answer must be visible while you are still
 * typing into it, which on a phone means the answer cannot be below the
 * fold — hence the two-column layout collapsing to form-then-answer with
 * the answer sticky at the top of its own block rather than at the bottom
 * of the page.
 */
.adx-calc__form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	margin: 0;
}

@media (max-width: 599px) {
	.adx-calc__form { grid-template-columns: minmax(0, 1fr); }
}

.adx-calc__field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin: 0;
}

.adx-calc__field label {
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 500;
	color: var(--wp--preset--color--body);
}

.adx-calc__field :is(input[type="text"], input[type="number"], select) {
	inline-size: 100%;
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: var(--wp--custom--radius--sm);
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
}

/* A 44px tap target with a 20px box drawn inside it.
 *
 * The browser's own checkbox is about 18px square, and the audit caught it at
 * 17x44 — under both Apple's 44pt and Material's 48dp minimum. Enlarging the
 * visual box to 44px would look wrong, and relying on the label to be the hit
 * area does not help a finger aimed at the box. So the input itself is 44px,
 * transparent, and paints a 20px box through ::before; the negative inline
 * margin pulls the extra width back out of the layout so the row still reads as
 * a checkbox beside a label rather than a gap.
 */
.adx-calc__field input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	display: grid;
	place-items: center;
	/* A flex item shrinks by default, and at 390px a long label squeezed the
	 * 44px target down to 35px — which is how a fixed size silently stops being
	 * one. Nothing about "inline-size: 2.75rem" prevents that on its own. */
	flex: 0 0 auto;
	inline-size: 2.75rem;
	block-size: 2.75rem;
	margin-inline: -0.75rem;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.adx-calc__field input[type="checkbox"]::before {
	content: "";
	inline-size: 1.25rem;
	block-size: 1.25rem;
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: var(--wp--custom--radius--sm);
	background-color: var(--wp--preset--color--surface);
	transition:
		background-color var(--wp--custom--transition--fast),
		border-color var(--wp--custom--transition--fast);
}

.adx-calc__field input[type="checkbox"]:checked::before {
	background-color: var(--wp--preset--color--brand);
	border-color: var(--wp--preset--color--brand);
}

/* The tick: two borders on a rotated box. Drawn rather than a glyph, so it
 * inherits nothing from the font and cannot go missing. */
.adx-calc__field input[type="checkbox"]::after {
	content: "";
	position: absolute;
	inline-size: 0.6rem;
	block-size: 0.3rem;
	border-inline-start: 2px solid var(--wp--preset--color--surface);
	border-block-end: 2px solid var(--wp--preset--color--surface);
	rotate: -45deg;
	translate: 0 -0.06rem;
	opacity: 0;
}

.adx-calc__field input[type="checkbox"]:checked::after { opacity: 1; }

.adx-calc__field input[type="checkbox"]:focus-visible::before {
	outline: 2px solid var(--wp--preset--color--ink);
	outline-offset: 2px;
}

/* A checkbox field's label belongs beside the box, not above it, and the row
 * itself is 44px so the label is a hit area too. */
.adx-calc__field:has(input[type="checkbox"]) {
	position: relative;
	flex-direction: row-reverse;
	align-items: center;
	justify-content: flex-start;
	gap: 0.35rem;
	min-block-size: 2.75rem;
	grid-column: 1 / -1;
}

.adx-calc__field:has(input[type="checkbox"]) label { cursor: pointer; }

.adx-calc__out {
	margin-block-start: var(--wp--preset--spacing--40);
	padding-block-start: var(--wp--preset--spacing--40);
	border-block-start: 1px solid var(--wp--preset--color--line);
}

.adx-calc-result {
	display: grid;
	gap: 0;
	margin: 0;
}

.adx-calc-result__row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem var(--wp--preset--spacing--30);
	padding-block: 0.55rem;
	border-block-end: 1px solid var(--wp--preset--color--line);
}

.adx-calc-result__row:last-child { border-block-end: 0; }

.adx-calc-result dt {
	margin: 0;
	font-weight: 400;
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--muted);
}

.adx-calc-result dd {
	margin: 0;
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
	font-weight: 600;
	color: var(--wp--preset--color--ink);
}

/* The headline figure. One per calculator: if everything is emphasised then
 * nothing is, and a visitor has to read four numbers to find the one they
 * asked for. */
.adx-calc-result__row.is-lead {
	padding-block: var(--wp--preset--spacing--20);
	border-block-end: 1px solid var(--wp--preset--color--accent);
}

.adx-calc-result__row.is-lead dt {
	font-size: var(--wp--preset--font-size--base);
	color: var(--wp--preset--color--body);
}

.adx-calc-result__row.is-lead dd {
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	line-height: 1.1;
	color: var(--wp--preset--color--accent);
}

.adx-calc-warn {
	margin-block: var(--wp--preset--spacing--20);
	padding: 0.7rem 0.9rem;
	border-inline-start: 3px solid var(--wp--preset--color--warning);
	background-color: color-mix(in srgb, var(--wp--preset--color--warning) 8%, transparent);
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--ink);
}

/* A twelve-row amortization table does not fit a phone, and shrinking the
 * type until it does makes it unreadable. It scrolls instead, with the year
 * column pinned so a scrolled row still says which year it is. */
.adx-table-scroll {
	overflow-x: auto;
	margin-block-start: var(--wp--preset--spacing--30);
	-webkit-overflow-scrolling: touch;
}

.adx-calc-table {
	inline-size: 100%;
	border-collapse: collapse;
	font-size: var(--wp--preset--font-size--sm);
}

.adx-calc-table :is(th, td) {
	padding: 0.5rem 0.7rem;
	border-block-end: 1px solid var(--wp--preset--color--line);
	text-align: end;
	white-space: nowrap;
}

.adx-calc-table thead th {
	border-block-end: 1px solid var(--wp--preset--color--line-strong);
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	font-weight: 600;
}

.adx-calc-table :is(thead th:first-child, tbody th) {
	text-align: start;
	position: sticky;
	inset-inline-start: 0;
	background-color: var(--wp--preset--color--surface);
}

.adx-calc-table .adx-figure { font-variant-numeric: tabular-nums; }

/* ---- Calculator index ------------------------------------------------
 *
 * Ten tools on one page, and the only question a visitor has is which one
 * answers their question. So the card has to carry three things and nothing
 * else: a correct icon, the name, and one line saying what it works out.
 *
 * The page this replaced -- the listing plugin's own -- is a slab of solid
 * brand red with white tiles on it, and its icons are wrong: a megaphone on
 * the unit converter, a hospital on the rate comparison, the same calendar on
 * two different tools. A wrong icon is worse than none, because it is read
 * before the label and then has to be unlearned. These are light cards on the
 * page's own background with the right drawing on each.
 */
.adx-calc-index__set + .adx-calc-index__set {
	margin-block-start: var(--wp--preset--spacing--60);
}

.adx-calc-index__group {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	margin-block: 0 var(--wp--preset--spacing--30);
	font-size: var(--wp--preset--font-size--xl);
}

/* A rule running off to the right of the group name, so the three sets read
 * as three sets without three more headings competing with the page title. */
.adx-calc-index__group::after {
	content: "";
	flex: 1;
	block-size: 1px;
	background: linear-gradient(
		90deg,
		var(--wp--preset--color--line-strong) 0%,
		transparent 100%
	);
}

/*
 * Three columns, fixed, not auto-fit.
 *
 * auto-fit sizes the grid to its own contents, so the three-card group came
 * out three across and the five-card group four across, with the fifth card
 * alone on a row at a different width from everything above it. Three sets of
 * cards on one page have to be one set of cards.
 *
 * Three also gives each card enough width for its description to land in two
 * or three lines instead of being clipped, which is the only reason the
 * description is there.
 */
.adx-calc-index__grid {
	display: grid;
	/* auto-fit, not a fixed three. The index renders inside the ordinary
	 * content measure (~720px), and three columns there leave each card
	 * 230px wide — enough for the icon and the arrow and about six
	 * characters a line for the description. Letting the track size
	 * decide gives two readable cards instead of three unreadable ones,
	 * and still gives three when there is room. */
	grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
	gap: 0.9rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (max-width: 1040px) {
	.adx-calc-index__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.adx-calc-card { margin: 0; }

.adx-calc-card__link {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: start;
	gap: 0 1rem;
	block-size: 100%;
	padding: 1.15rem 1.2rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--surface);
	color: inherit;
	text-decoration: none;
	transition:
		border-color var(--wp--custom--transition--fast),
		box-shadow var(--wp--custom--transition--fast),
		transform var(--wp--custom--transition--fast);
}

a.adx-calc-card__link:hover,
a.adx-calc-card__link:focus-visible {
	border-color: color-mix(in srgb, var(--wp--preset--color--brand) 45%, var(--wp--preset--color--line));
	box-shadow: 0 16px 34px -22px rgba(16, 31, 62, 0.45);
	transform: translateY(-2px);
}

/* The icon tile. Brand-tinted rather than brand-filled: ten solid red squares
 * in a grid is the page this is replacing. */
.adx-calc-card__icon {
	display: grid;
	place-items: center;
	inline-size: 2.9rem;
	block-size: 2.9rem;
	border-radius: 12px;
	background: color-mix(in srgb, var(--wp--preset--color--brand) 9%, transparent);
	color: var(--wp--preset--color--brand);
	transition:
		background-color var(--wp--custom--transition--fast),
		color var(--wp--custom--transition--fast);
}

a.adx-calc-card__link:hover .adx-calc-card__icon,
a.adx-calc-card__link:focus-visible .adx-calc-card__icon {
	background: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--surface);
}

.adx-calc-card__glyph {
	inline-size: 1.5rem;
	block-size: 1.5rem;
}

.adx-calc-card__body { display: grid; gap: 0.3rem; }

.adx-calc-card__name {
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--base);
	font-weight: 600;
	line-height: 1.3;
	color: var(--wp--preset--color--ink);
}

.adx-calc-card__desc {
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1.55;
	color: var(--wp--preset--color--muted);
	/* Three lines is the longest of the ten. Clamping keeps the row of cards
	 * the same height without truncating any of them. */
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.adx-calc-card__go {
	inline-size: 1.05rem;
	block-size: 1.05rem;
	margin-block-start: 0.85rem;
	color: var(--wp--preset--color--line-strong);
	transition:
		color var(--wp--custom--transition--fast),
		translate var(--wp--custom--transition--fast);
}

a.adx-calc-card__link:hover .adx-calc-card__go,
a.adx-calc-card__link:focus-visible .adx-calc-card__go {
	color: var(--wp--preset--color--brand);
	translate: 3px 0;
}

/* A calculator with no page yet is still listed, because it exists and a
 * visitor asking for it should see that it does -- but it is drawn as a card
 * rather than as a link, and it does not pretend to go anywhere. */
.adx-calc-card.is-flat .adx-calc-card__link {
	background: var(--wp--preset--color--surface-alt);
	border-style: dashed;
}

@media (max-width: 600px) {
	.adx-calc-index__grid { grid-template-columns: minmax(0, 1fr); }
	.adx-calc-card__link { padding: 1rem; gap: 0 0.85rem; }
	.adx-calc-card__icon { inline-size: 2.5rem; block-size: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
	.adx-calc-card__link,
	.adx-calc-card__icon,
	.adx-calc-card__go { transition: none; }

	a.adx-calc-card__link:hover,
	a.adx-calc-card__link:focus-visible { transform: none; }

	a.adx-calc-card__link:hover .adx-calc-card__go { translate: 0; }
}

/* ---- Overlay header on a cinematic hero -----------------------------
 * A full-viewport hero with a solid white bar bolted above it is a hero with
 * its top sliced off. The reference sites all float the header over the
 * photograph, and it is most of the difference between "a nice big image" and
 * a page that looks composed.
 *
 * Conditional on the hero, via :has(), so every other page keeps its solid
 * header — and a browser without :has() simply keeps the solid header
 * everywhere, which is the conservative failure.
 *
 * `position: absolute` rather than `fixed`: a fixed header over a 100svh hero
 * eats 5rem of every subsequent screen on a phone, and the sticky-call-bar
 * already covers the "phone number always reachable" case.
 */
.wp-site-blocks:has(> main > .adx-hero.is-cinematic:first-child) > header,
.wp-site-blocks:has(> main > .wp-block-group > .adx-hero.is-cinematic:first-child) > header {
	position: absolute;
	inset-block-start: 0;
	inset-inline: 0;
	z-index: 20;
	/*
	 * A scrim on the header itself, not a tint on each bar.
	 *
	 * The first version tinted the utility bar to 62% of the ink colour and
	 * left the rest transparent, which meant the legibility of the phone
	 * number depended on how bright that part of the client's photograph
	 * happened to be. A header whose contrast is a property of the image is a
	 * header that fails on some images. This gradient is opaque enough at the
	 * top to hold small text at any exposure and fades out before the
	 * headline, so it does not read as a bar.
	 */
	background-image: linear-gradient(
		180deg,
		rgba(4, 8, 15, 0.86) 0%,
		rgba(4, 8, 15, 0.72) 42%,
		rgba(4, 8, 15, 0.34) 78%,
		rgba(4, 8, 15, 0) 100%
	);
	background-color: transparent;
}

.wp-site-blocks:has(> main > .adx-hero.is-cinematic:first-child) > header .adx-site-header__bar,
.wp-site-blocks:has(> main > .wp-block-group > .adx-hero.is-cinematic:first-child) > header .adx-site-header__bar {
	background-color: transparent !important;
	border-block-end-color: color-mix(in srgb, var(--wp--preset--color--on-deep) 18%, transparent) !important;
}

/* The bar's own contents have to invert, and they have to do it at a
 * specificity that beats the preset colour classes core writes inline. */
.wp-site-blocks:has(> main > .adx-hero.is-cinematic:first-child) > header .adx-site-header__bar :is(a, .wp-block-site-title a, .wp-block-navigation-item__content):not(.wp-block-button__link):not(.wp-element-button),
.wp-site-blocks:has(> main > .wp-block-group > .adx-hero.is-cinematic:first-child) > header .adx-site-header__bar :is(a, .wp-block-site-title a, .wp-block-navigation-item__content):not(.wp-block-button__link):not(.wp-element-button) {
	color: var(--wp--preset--color--on-deep);
}

/* The wrappers as well as the links. A navigation item, a site title paragraph
 * and a list item each carry the inherited body colour, and although the text
 * itself lives in the anchor, anything the theme or a plugin later renders
 * beside the anchor -- a separator, a badge, a submenu arrow -- would come out
 * near-black on the scrim. */
.wp-site-blocks:has(> main > .adx-hero.is-cinematic:first-child) > header .adx-site-header__bar :is(p, li, span, .wp-block-navigation-item),
.wp-site-blocks:has(> main > .wp-block-group > .adx-hero.is-cinematic:first-child) > header .adx-site-header__bar :is(p, li, span, .wp-block-navigation-item) {
	color: var(--wp--preset--color--on-deep);
}

.wp-site-blocks:has(> main > .adx-hero.is-cinematic:first-child) > header .adx-utility-bar,
.wp-site-blocks:has(> main > .wp-block-group > .adx-hero.is-cinematic:first-child) > header .adx-utility-bar {
	background-color: transparent;
	border-block-end: 1px solid color-mix(in srgb, var(--wp--preset--color--on-deep) 14%, transparent);
}

/* On the scrim, the utility bar's muted grey is the wrong side of readable at
 * 13px. It goes to full on-deep. */
.wp-site-blocks:has(> main > .adx-hero.is-cinematic:first-child) > header .adx-utility-bar,
.wp-site-blocks:has(> main > .adx-hero.is-cinematic:first-child) > header .adx-utility-bar :is(a, span, dt, dd),
.wp-site-blocks:has(> main > .wp-block-group > .adx-hero.is-cinematic:first-child) > header .adx-utility-bar,
.wp-site-blocks:has(> main > .wp-block-group > .adx-hero.is-cinematic:first-child) > header .adx-utility-bar :is(a, span, dt, dd) {
	color: var(--wp--preset--color--on-deep);
}

/* The hero has to make room for the header it is now sitting under. */
.wp-site-blocks:has(> main > .adx-hero.is-cinematic:first-child) .adx-hero.is-cinematic,
.wp-site-blocks:has(> main > .wp-block-group > .adx-hero.is-cinematic:first-child) .adx-hero.is-cinematic {
	padding-block-start: calc(var(--wp--preset--spacing--80) + 5rem);
}

/* The overlay button is the one element that should stay solid: a transparent
 * CTA on a photograph is a CTA nobody presses. */
.wp-site-blocks:has(> main > .adx-hero.is-cinematic:first-child) > header .adx-site-header__bar a.wp-block-button__link,
.wp-site-blocks:has(> main > .adx-hero.is-cinematic:first-child) > header .adx-site-header__bar a.wp-element-button,
.wp-site-blocks:has(> main > .wp-block-group > .adx-hero.is-cinematic:first-child) > header .adx-site-header__bar a.wp-block-button__link,
.wp-site-blocks:has(> main > .wp-block-group > .adx-hero.is-cinematic:first-child) > header .adx-site-header__bar a.wp-element-button {
	background-color: var(--wp--preset--color--accent-bright);
	/* Ink, not the on-deep ivory the surrounding links use: ivory on gold is
	 * 2:1, which the audit caught the moment the harness started nesting the
	 * utility bar inside the header the way the real template does. */
	color: var(--wp--preset--color--brand-ink);
}

/* Below the header breakpoint the overlay costs more than it buys: the mobile
 * menu opens into a transparent panel over a photograph. Solid again. */
@media (max-width: 781px) {
	.wp-site-blocks:has(> main > .adx-hero.is-cinematic:first-child) > header,
	.wp-site-blocks:has(> main > .wp-block-group > .adx-hero.is-cinematic:first-child) > header {
		position: static;
	}

	.wp-site-blocks:has(> main > .adx-hero.is-cinematic:first-child) > header .adx-site-header__bar,
	.wp-site-blocks:has(> main > .wp-block-group > .adx-hero.is-cinematic:first-child) > header .adx-site-header__bar {
		background-color: var(--wp--preset--color--surface) !important;
	}

	/*
	 * These have to carry the same :not() tail as the desktop rules they undo.
	 * The first version did not, so the desktop rule -- two classes heavier
	 * because of the :not()s added for the gold CTA -- kept winning inside the
	 * media query and the nav rendered ivory-on-ivory at 768px. A media query
	 * changes nothing about specificity, which is easy to forget precisely
	 * because it reads like an override.
	 */
	.wp-site-blocks:has(> main > .adx-hero.is-cinematic:first-child) > header .adx-site-header__bar :is(a, .wp-block-site-title a, .wp-block-navigation-item__content):not(.wp-block-button__link):not(.wp-element-button),
	.wp-site-blocks:has(> main > .wp-block-group > .adx-hero.is-cinematic:first-child) > header .adx-site-header__bar :is(a, .wp-block-site-title a, .wp-block-navigation-item__content):not(.wp-block-button__link):not(.wp-element-button),
	.wp-site-blocks:has(> main > .adx-hero.is-cinematic:first-child) > header .adx-site-header__bar :is(p, li, span, .wp-block-navigation-item),
	.wp-site-blocks:has(> main > .wp-block-group > .adx-hero.is-cinematic:first-child) > header .adx-site-header__bar :is(p, li, span, .wp-block-navigation-item) {
		color: var(--wp--preset--color--ink);
	}

	/* The utility bar goes back to its own solid band. */
	.wp-site-blocks:has(> main > .adx-hero.is-cinematic:first-child) > header .adx-utility-bar,
	.wp-site-blocks:has(> main > .adx-hero.is-cinematic:first-child) > header .adx-utility-bar :is(a, span, dt, dd),
	.wp-site-blocks:has(> main > .wp-block-group > .adx-hero.is-cinematic:first-child) > header .adx-utility-bar,
	.wp-site-blocks:has(> main > .wp-block-group > .adx-hero.is-cinematic:first-child) > header .adx-utility-bar :is(a, span, dt, dd) {
		background-color: var(--wp--preset--color--surface-deep);
		color: var(--wp--preset--color--on-deep);
	}

	.wp-site-blocks:has(> main > .adx-hero.is-cinematic:first-child) > header,
	.wp-site-blocks:has(> main > .wp-block-group > .adx-hero.is-cinematic:first-child) > header {
		background-image: none;
	}

	.wp-site-blocks:has(> main > .adx-hero.is-cinematic:first-child) .adx-hero.is-cinematic,
	.wp-site-blocks:has(> main > .wp-block-group > .adx-hero.is-cinematic:first-child) .adx-hero.is-cinematic {
		padding-block-start: var(--wp--preset--spacing--60);
	}
}

/* ---- Figures on a saturated band -----------------------------------
 * The statistics row moved onto `is-mid` in 1.2.0, so its ink-on-white
 * treatment has to invert. The figure takes the bright accent rather than plain
 * white: on a saturated band the accent is what makes four numbers read as the
 * point of the section instead of as four labels.
 */
.adx-on-dark .adx-stat-value {
	color: var(--wp--preset--color--accent-bright);
}

.adx-on-dark .adx-stat-label {
	color: var(--wp--preset--color--on-deep-muted);
}

/* ======================================================================
 * 1.3.0 — Light and dark
 *
 * The palette is twenty-two CSS variables redefined under
 * [data-adx-theme="dark"], computed in PHP from whichever style variation is
 * active (inc/class-adx-dark.php). Everything in this file and every pattern
 * already resolves through those variables, so almost nothing here is about
 * colour — it is about the toggle itself and the handful of places that need
 * to behave differently rather than merely look different.
 * ==================================================================== */

.adx-theme-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	/* 44px, the touch floor — this is a header control, so it is the one a
	 * phone user is most likely to hit by accident if it is smaller. */
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0 0.7rem;
	color: var(--wp--preset--color--body);
	background-color: transparent;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	cursor: pointer;
	transition:
		background-color var(--wp--custom--transition--base, 240ms) ease,
		border-color var(--wp--custom--transition--base, 240ms) ease,
		color var(--wp--custom--transition--base, 240ms) ease;
}

.adx-theme-toggle:hover {
	color: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--line-strong);
	background-color: var(--wp--preset--color--surface-tint);
}

.adx-theme-toggle:focus-visible {
	outline: 2px solid var(--wp--preset--color--brand);
	outline-offset: 2px;
}

.adx-theme-toggle svg {
	width: 1.125rem;
	height: 1.125rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex: 0 0 auto;
}

.adx-theme-toggle__label {
	font-size: 0.875rem;
	font-weight: 600;
	white-space: nowrap;
}

/*
 * One icon at a time, chosen by CSS rather than by script.
 *
 * The button shows what pressing it will DO, not what the page currently is:
 * in light it shows a moon, because pressing it gives you dark. Showing the
 * current state instead is the commoner choice and it is the wrong one — a sun
 * in a light theme is a label, not a control.
 */
.adx-theme-toggle .adx-icon-moon { display: block; }
.adx-theme-toggle .adx-icon-sun { display: none; }

:root[data-adx-theme="dark"] .adx-theme-toggle .adx-icon-moon { display: none; }
:root[data-adx-theme="dark"] .adx-theme-toggle .adx-icon-sun { display: block; }

/* Only when the site is set to follow the device; see Crm/ADX_Dark::css().
   The body class is printed server side so the CSS does not have to guess. */
@media (prefers-color-scheme: dark) {
	.adx-follows-device:not([data-adx-theme="light"]) .adx-theme-toggle .adx-icon-moon { display: none; }
	.adx-follows-device:not([data-adx-theme="light"]) .adx-theme-toggle .adx-icon-sun { display: block; }
}

/* An explicit light choice on a dark-preferring system has to win both ways. */
:root[data-adx-theme="light"] .adx-theme-toggle .adx-icon-moon { display: block; }
:root[data-adx-theme="light"] .adx-theme-toggle .adx-icon-sun { display: none; }

/*
 * Images and video in dark.
 *
 * Photographs are left alone — dimming a portrait makes the subject look ill.
 * What does get treated is the class of asset that is a light rectangle by
 * nature: a screenshot, a diagram, a logo wall. Those are opt-in via a class,
 * because guessing is worse than asking.
 */
:root[data-adx-theme="dark"] .adx-dim-on-dark img,
:root[data-adx-theme="dark"] img.adx-dim-on-dark {
	filter: brightness(0.86) contrast(1.04);
}

:root[data-adx-theme="dark"] .adx-invert-on-dark img,
:root[data-adx-theme="dark"] img.adx-invert-on-dark {
	filter: invert(1) hue-rotate(180deg);
}

/*
 * A map embed is a light rectangle that cannot be re-themed from outside its
 * iframe. A faint overlay is the honest compromise: it takes the glare off
 * without pretending the map is dark.
 */
:root[data-adx-theme="dark"] .adx-map-embed { position: relative; }

:root[data-adx-theme="dark"] .adx-map-embed::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-color: color-mix(in srgb, var(--wp--preset--color--surface-deep) 22%, transparent);
}

/* Print is always the light palette on white, whatever the screen was. */
@media print {
	:root[data-adx-theme="dark"] { color-scheme: light; }
	.adx-theme-toggle { display: none !important; }
}

/* ----------------------------------------------------------------------
 * ADROMAX — the ADRO method
 *
 * The four letters are the one piece of this brand that is genuinely its own,
 * so they get typography rather than icons. A letter in a circle would be a
 * badge; a letter set large in brass, hanging in the margin beside its name,
 * reads as a framework.
 * -------------------------------------------------------------------- */

.adx-adro-list {
	display: grid;
	gap: var(--wp--preset--spacing--40);
	margin-top: var(--wp--preset--spacing--40);
}

.adx-adro-row {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 1rem;
}

/*
 * Two classes, not one.
 *
 * `.adx-on-dark .adx-card :where(p, li)` is two classes and set the letter to
 * on-deep, so a one-class `.adx-adro-letter` lost and the brass letters
 * rendered white — the one piece of colour in the card, gone, and invisible
 * in a screenshot until the computed value was read. Matching its weight is
 * enough, because this rule comes later in the file.
 */
.adx-adro-row .adx-adro-letter {
	/* flex: 0 0 auto, because a flex item shrinks by default and a single
	 * character is the first thing to get squeezed to nothing. */
	flex: 0 0 auto;
	width: 2rem;
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.04em;
	color: var(--wp--preset--color--accent-bright);
	font-variant-numeric: tabular-nums;
}

.adx-adro-name {
	margin: 0 0 0.15rem;
	font-weight: 640;
	color: var(--wp--preset--color--ink);
}

.adx-adro-row p:last-child { margin-bottom: 0; }

.adx-on-dark .adx-adro-name { color: var(--wp--preset--color--on-deep); }
.adx-on-dark .adx-adro-row p:not(.adx-adro-name):not(.adx-adro-letter) { color: var(--wp--preset--color--on-deep-muted); }

/*
 * The hero's card.
 *
 * `.adx-card` on a dark hero is a dark panel on a dark band, which reads as
 * nothing at all. Lifting it a step and giving it a brass hairline is what
 * makes it a card rather than a slightly different patch of background.
 */
.adx-hero .adx-card,
.adx-hero__card {
	background-color: color-mix(in srgb, var(--wp--preset--color--on-deep) 6%, transparent);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--accent-bright) 26%, transparent);
	border-radius: var(--wp--custom--radius--lg);
	backdrop-filter: blur(2px);
}

.adx-hero__card .adx-eyebrow { color: var(--wp--preset--color--accent-bright); }

@media (max-width: 781px) {
	.adx-adro-letter {
		width: 1.6rem;
		font-size: 1.4rem;
	}
}

/*
 * An outline button on a dark band.
 *
 * `.is-style-outline` takes its colour from `brand`, which is correct on a
 * light surface and about 2:1 on a dark one — so every dark hero in every one
 * of the ten looks has had an unreadable secondary button, in both themes,
 * since the outline style was added. Nothing caught it because until now no
 * pattern put an outline button on a dark band.
 *
 * On dark it becomes the on-dark pair: the light text colour, with a border at
 * the strength that reads as a border rather than as a box.
 */
.adx-on-dark .wp-block-button.is-style-outline > .wp-block-button__link,
.adx-on-dark .wp-block-button.is-style-outline > .wp-element-button,
.adx-hero .wp-block-button.is-style-outline > .wp-block-button__link {
	color: var(--wp--preset--color--on-deep);
	border-color: color-mix(in srgb, var(--wp--preset--color--on-deep) 42%, transparent);
	background-color: transparent;
}

.adx-on-dark .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.adx-on-dark .wp-block-button.is-style-outline > .wp-element-button:hover,
.adx-hero .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	color: var(--wp--preset--color--accent-bright);
	border-color: var(--wp--preset--color--accent-bright);
	background-color: color-mix(in srgb, var(--wp--preset--color--on-deep) 10%, transparent);
}

/* The method page's phases run larger than the hero card's compact list. */
.adx-adro-row--lg .adx-adro-letter {
	width: 2.75rem;
	font-size: 2.5rem;
}

.adx-method-claim {
	margin-top: 0.25rem;
	font-weight: 560;
	color: var(--wp--preset--color--ink);
}

.adx-method-card .adx-eyebrow { margin-bottom: 0.5rem; }

.adx-method-tool {
	margin-top: var(--wp--preset--spacing--30);
	padding-top: 0.75rem;
	border-top: 1px solid var(--wp--preset--color--line);
	font-variant-numeric: tabular-nums;
}

/* The free-tools card is the commercially important one on the platform
 * section, so it gets the brass edge the others do not. */
.adx-card--free {
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--accent) 42%, transparent) !important;
	box-shadow: var(--wp--preset--shadow--md, 0 8px 24px rgba(10, 19, 34, 0.08));
}

@media (max-width: 781px) {
	.adx-adro-row--lg .adx-adro-letter {
		width: 2rem;
		font-size: 1.9rem;
	}
}

/* ======================================================================
 * Pricing tiers and the two configurators
 *
 * The middle tier is the product, so it is the one that is physically larger,
 * carries the ribbon, and is the only one with a filled call to action. Three
 * equal cards with a coloured border on one is the commoner treatment and it
 * makes the choice look arbitrary.
 * ==================================================================== */

.adx-pricing__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--40);
	align-items: start;
}

@media (max-width: 1080px) {
	.adx-pricing__grid { grid-template-columns: minmax(0, 1fr); }
}

.adx-tier {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: var(--wp--preset--spacing--50);
	background-color: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--lg);
}

/*
 * The featured tier is lifted rather than merely outlined: a step up in
 * surface, a brass edge, a shadow, and on a wide screen a little taller than
 * its neighbours. On one column that lift becomes meaningless, so it is
 * dropped rather than left as a stray margin.
 */
.adx-tier--featured {
	background-color: var(--wp--preset--color--surface-tint);
	border-color: color-mix(in srgb, var(--wp--preset--color--accent) 48%, transparent);
	box-shadow: 0 18px 48px color-mix(in srgb, var(--wp--preset--color--brand-ink) 14%, transparent);
}

@media (min-width: 1081px) {
	.adx-tier--featured {
		margin-block: calc(var(--wp--preset--spacing--40) * -1);
		padding-block: calc(var(--wp--preset--spacing--50) + var(--wp--preset--spacing--40));
	}
}

.adx-tier__ribbon {
	position: absolute;
	top: 0;
	left: 50%;
	translate: -50% -50%;
	margin: 0;
	padding: 0.35rem 0.9rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: var(--wp--custom--eyebrow-tracking, 0.1em);
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--wp--preset--color--brand-ink);
	background-color: var(--wp--preset--color--accent-bright);
	border-radius: 999px;
}

/* ----------------------------------------------------------------------
 * The tier that is running an offer
 * ----------------------------------------------------------------------
 *
 * Asked for as "different colours, different from the others", and the useful
 * reading of that is: the eye should land here first and should not have to
 * read three prices to work out why. So the offer tier swaps the family it is
 * drawn in -- the other two are blue-framed on a near-white card; this one is
 * green-framed on a green-tinted card, with a green ribbon and a green rule
 * over the price. Green is already the accent that means "go" everywhere else
 * in the theme, so it is a louder version of the existing system rather than a
 * fourth colour bolted on.
 *
 * The one thing it deliberately does NOT do is put the offer in a colour that
 * only exists here. A price that is the only red thing on the page reads as a
 * clearance sticker, and this is an introductory price on a product we want
 * people to stay on.
 *
 * Every value resolves to a palette token, so this follows a style variation
 * and inverts with the computed dark palette like everything else.
 */
.adx-tier--offer {
	background-color: color-mix(in srgb, var(--wp--preset--color--accent-soft) 74%, var(--wp--preset--color--surface));
	border-color: var(--wp--preset--color--accent);
	border-width: 2px;
	box-shadow: 0 20px 52px color-mix(in srgb, var(--wp--preset--color--accent) 20%, transparent);
}

.adx-tier__ribbon--offer {
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--surface);
	padding-inline: 1.05rem;
}

/*
 * The step-up line.
 *
 * It sits directly under the amount and above everything else, because it is
 * the second half of the price rather than a footnote about it. The rule above
 * it is the accent, which ties it to the ribbon and stops it reading as body
 * copy that happened to land there.
 */
.adx-tier__step {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	margin: -0.2rem 0 var(--wp--preset--spacing--30);
	padding-block-start: 0.55rem;
	border-block-start: 2px solid color-mix(in srgb, var(--wp--preset--color--accent) 40%, transparent);
}

.adx-tier__step-main {
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--body);
}

.adx-tier__step-main b {
	font-weight: 700;
	color: var(--wp--preset--color--ink);
	font-variant-numeric: tabular-nums;
}

.adx-tier__step-note {
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--wp--preset--color--accent);
}

/* The subcontracting disclosure on the Managed tier: set off from the other
 * notes with a hairline, because it is a term of the deal and not a remark. */
.adx-tier__note--network {
	padding-block-start: var(--wp--preset--spacing--30);
	border-block-start: 1px solid var(--wp--preset--color--line);
}

.adx-tier__note--network a {
	color: var(--wp--preset--color--brand);
	font-weight: 600;
}

.adx-tier__name {
	margin: 0.1rem 0 0.4rem;
	font-size: var(--wp--preset--font-size--2-xl);
}

.adx-tier__price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0 0 0.6rem;
}

.adx-tier__from,
.adx-tier__period {
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--muted);
}

.adx-tier__amount {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2.25rem, 4vw, 3rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.035em;
	color: var(--wp--preset--color--ink);
	/* Tabular figures, so a total changing from $49 to $149 does not shove the
	 * period label sideways on every tick. */
	font-variant-numeric: tabular-nums;
}

.adx-tier__lede {
	margin: 0 0 var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--body);
}

.adx-tier__note {
	margin: var(--wp--preset--spacing--30) 0 0;
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--muted);
}

.adx-tier__status {
	margin: 0.75rem 0 0;
	min-height: 1.4em;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 600;
	color: var(--wp--preset--color--accent);
}

/*
 * The buttons do NOT line up across the three tiers, and that is the choice.
 *
 * `align-items: start` on the grid lets each tier be its own height. Stretching
 * them so the three buttons align would give Starter — four bullets — the same
 * height as Growth, which carries twelve checkboxes, and put an inch of empty
 * card above its button. An equal-height row is the conventional treatment and
 * it is the wrong one when the cards are genuinely different shapes.
 *
 * `margin-top: auto` stays because it costs nothing and does the right thing if
 * a row ever does stretch; the separator is what actually makes the three
 * buttons read as the same kind of thing.
 */
.adx-tier__cta {
	margin: var(--wp--preset--spacing--40) 0 0;
	margin-top: auto;
	padding-top: var(--wp--preset--spacing--30);
	border-top: 1px solid var(--wp--preset--color--line);
}

/* The CTA wrapper is a span so it can live inside a <p>; core's button block
 * styles expect a block-level wrapper. */
.adx-tier__cta .wp-block-button { display: block; }

.adx-tier__cta .wp-element-button { width: 100%; text-align: center; }

/* ---- the configurator ---------------------------------------------- */

.adx-config {
	margin: var(--wp--preset--spacing--30) 0 0;
	border-top: 1px solid var(--wp--preset--color--line);
	padding-top: var(--wp--preset--spacing--30);
}

.adx-config__group {
	margin: 0 0 var(--wp--preset--spacing--30);
	padding: 0;
	border: 0;
}

.adx-config__group legend {
	padding: 0;
	margin-bottom: 0.5rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: var(--wp--custom--eyebrow-tracking, 0.1em);
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.adx-config__row { margin: 0; }

/*
 * The whole row is the label, so the whole row is the tap target. A 16px
 * checkbox with the text beside it is a 16px target; the label wrapping both
 * makes it the full width of the card and well past the 44px floor.
 */
.adx-config__opt {
	display: grid;
	grid-template-columns: 1.15rem 1fr auto;
	align-items: start;
	gap: 0.6rem;
	min-height: 2.75rem;
	padding: 0.45rem 0;
	cursor: pointer;
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1.5;
}

.adx-config__opt input {
	width: 1.15rem;
	height: 1.15rem;
	margin: 0.2rem 0 0;
	accent-color: var(--wp--preset--color--brand);
	cursor: pointer;
}

.adx-config__opt input:disabled {
	cursor: default;
	opacity: 0.55;
}

.adx-config__opt:has( input:disabled ) {
	cursor: default;
	color: var(--wp--preset--color--muted);
}

.adx-config__opt input:focus-visible {
	outline: 2px solid var(--wp--preset--color--brand);
	outline-offset: 2px;
}

.adx-config__label { color: var(--wp--preset--color--body); }

.adx-config__price {
	font-weight: 600;
	white-space: nowrap;
	color: var(--wp--preset--color--ink);
	font-variant-numeric: tabular-nums;
}

/* An unset price reads as a quiet note rather than as a number. */
.adx-config__opt:has( input[data-price="0"] ) .adx-config__price {
	font-weight: 400;
	color: var(--wp--preset--color--muted);
}

.adx-pricing__warning {
	margin: var(--wp--preset--spacing--40) 0 0;
	padding: 0.75rem 1rem;
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--ink);
	background-color: var(--wp--preset--color--accent-soft);
	border-left: 3px solid var(--wp--preset--color--accent);
	border-radius: var(--wp--custom--radius--sm);
}

/* On a dark band the tiers become cards on dark rather than inverting. */
.adx-on-dark .adx-tier {
	background-color: color-mix(in srgb, var(--wp--preset--color--on-deep) 6%, transparent);
	border-color: color-mix(in srgb, var(--wp--preset--color--on-deep) 18%, transparent);
}

.adx-on-dark .adx-tier--featured {
	background-color: color-mix(in srgb, var(--wp--preset--color--on-deep) 11%, transparent);
	border-color: color-mix(in srgb, var(--wp--preset--color--accent-bright) 52%, transparent);
}

.adx-on-dark .adx-tier__name,
.adx-on-dark .adx-tier__amount,
.adx-on-dark .adx-config__price { color: var(--wp--preset--color--on-deep); }

.adx-on-dark .adx-tier__lede,
.adx-on-dark .adx-config__label { color: var(--wp--preset--color--on-deep-muted); }

.adx-on-dark .adx-tier__from,
.adx-on-dark .adx-tier__period,
.adx-on-dark .adx-config__group legend,
.adx-on-dark .adx-tier--offer {
	/* A translucent wash of the accent rather than accent-soft, which in the
	 * dark palette is a near-black tint and would make the offer card the
	 * darkest thing on a dark band -- the opposite of drawing the eye. */
	background-color: color-mix(in srgb, var(--wp--preset--color--accent-bright) 13%, transparent);
	border-color: var(--wp--preset--color--accent-bright);
	box-shadow: 0 20px 52px color-mix(in srgb, var(--wp--preset--color--brand-ink) 45%, transparent);
}

.adx-on-dark .adx-tier__ribbon--offer {
	background-color: var(--wp--preset--color--accent-bright);
	color: var(--wp--preset--color--brand-ink);
}

.adx-on-dark .adx-tier__step { border-block-start-color: color-mix(in srgb, var(--wp--preset--color--accent-bright) 46%, transparent); }
.adx-on-dark .adx-tier__step-main { color: var(--wp--preset--color--on-deep-muted); }
.adx-on-dark .adx-tier__step-main b { color: var(--wp--preset--color--on-deep); }
.adx-on-dark .adx-tier__step-note { color: var(--wp--preset--color--accent-bright); }

.adx-on-dark .adx-tier__note--network { border-block-start-color: color-mix(in srgb, var(--wp--preset--color--on-deep) 16%, transparent); }
.adx-on-dark .adx-tier__note--network a { color: var(--wp--preset--color--brand-strong); }

.adx-on-dark .adx-tier__note { color: var(--wp--preset--color--on-deep-muted); }

.adx-on-dark .adx-tier__status { color: var(--wp--preset--color--accent-bright); }

.adx-on-dark .adx-config,
.adx-on-dark .adx-tier__cta { border-color: color-mix(in srgb, var(--wp--preset--color--on-deep) 16%, transparent); }

@media (prefers-reduced-motion: reduce) {
	.adx-tier { transition: none; }
}

/* ======================================================================
 * 1.6.0 — the soft language, and the literal logo colours
 * ======================================================================
 *
 * Two pieces of feedback with one answer.
 *
 * "The colours are not our exact ones." True, and the reason was real: the logo
 * blue #0093D3 is 3.4:1 on white and the green #539E1F is 3.3:1, so neither can
 * be small text or sit behind a white label. The previous pass reached for a
 * darkened version of each almost everywhere, which is correct and meant the
 * page never actually showed the brand's colour.
 *
 * "The design is too basic / old" — with the reference being adromax.com as it
 * stands: a saturated blue gradient running edge to edge, curved dividers
 * between sections, fully round buttons with a circular arrow badge in them,
 * big soft cards with a pale blob behind the content, circular icon badges,
 * centred eyebrows flanked by dots.
 *
 * They are the same problem. A flat, sharp, editorial layout has nowhere to put
 * a saturated colour, so it uses a muted one; and a palette with no colour it
 * is allowed to use loudly has nothing to build a soft, vivid language out of.
 * Fixing the second fixes the first.
 *
 * So: the hero is a gradient whose lightest stop is the literal #0093D3, which
 * is exactly where a white display heading still clears its 3:1 (3.43) and one
 * stop lighter would not. The logo colours fill the buttons, the badges, the
 * letters and the curve fills, where the ink label on them measures 5.5:1 and
 * is safe at any size. The darkened tones are kept for one job only — small
 * text on a light surface — which is the single job the literal values cannot
 * legally do.
 *
 * Every value below is a palette token, so the nine industry variations and the
 * computed dark palette still follow it.
 * ==================================================================== */

/* ---- Curved section dividers ------------------------------------------
 * The single strongest cue in the reference. A band ending in an arc rather
 * than a straight edge is what makes a page read as current rather than as a
 * stack of rectangles.
 *
 * Drawn as a CSS mask on a pseudo-element rather than as an <svg> in every
 * pattern: no markup per section, nothing in the reading order, and the curve
 * inherits the band's own background so it can never fall out of sync with it.
 * `aria-hidden` is unnecessary because there is no element to hide.
 * -------------------------------------------------------------------- */


/* ---- Curve masks -------------------------------------------------------
 * The two Elementor curve paths, as data URIs, defined once. A pattern sets
 * .adx-curve-b or .adx-curve-t and gets the shape; nothing has to carry an
 * SVG. preserveAspectRatio="none" is what lets one 1000x100 path stretch to
 * any section width instead of letterboxing.
 * -------------------------------------------------------------------- */

:root {
	--adx-curve-down: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M1000,4.3V0H0v4.3C0.9,23.1,126.7,99.2,500,100S1000,22.7,1000,4.3z' fill='%23000'/%3E%3C/svg%3E");
	--adx-curve-up:   url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M500,97C126.7,96.3,0.8,19.8,0,0v100l1000,0V1C1000,19.4,873.3,97.8,500,97z' fill='%23000'/%3E%3C/svg%3E");
}

.adx-curve-b,
.adx-curve-t { position: relative; }

/*
 * The curve itself. These are the exact paths adromax.com serves -- Elementor's
 * "curve" divider on a 1000x100 viewBox -- carried over verbatim rather than
 * approximated, because the shape is the thing being matched. The earlier
 * version here used a border-radius ellipse, which is a different curve: it
 * eases symmetrically where this one runs flatter at the edges and turns
 * harder in the middle.
 *
 * Still a mask on a pseudo-element, not an <svg> in every pattern: no markup
 * per section, nothing in the reading order, and the curve inherits the band's
 * own background so it can never fall out of sync with it.
 */

.adx-curve-b::after,
.adx-curve-t::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	block-size: clamp(38px, 5.5vw, 84px);
	background: inherit;
	pointer-events: none;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
}

/* The band bulges downward into whatever follows it. */
.adx-curve-b::after {
	inset-block-start: 100%;
	-webkit-mask-image: var(--adx-curve-down);
	mask-image: var(--adx-curve-down);
}

/* ...and the next band curves up over the one above it. */
.adx-curve-t::before {
	inset-block-end: 100%;
	-webkit-mask-image: var(--adx-curve-up);
	mask-image: var(--adx-curve-up);
}

/* A section that curves must not clip its own overhang, and must sit above the
 * band it overlaps. */
.adx-curve-b,
.adx-curve-t { overflow: visible; }
.adx-curve-t { z-index: 1; }

/* ---- The gradient hero -------------------------------------------------
 * Deep blue through to the literal logo blue, which is the LIGHTEST stop on
 * purpose: white display type measures 3.43:1 on #0093D3 and 2.71:1 one step
 * lighter, so this is the exact edge of what a white headline can sit on. The
 * cyan sparkle the reference has lives in the decorative layer instead, where
 * nothing is read against it.
 * -------------------------------------------------------------------- */

.adx-hero--gradient {
	position: relative;
	isolation: isolate;
	background:
		radial-gradient(120% 90% at 88% 8%, color-mix(in srgb, var(--wp--preset--color--brand-pure) 92%, white) 0%, transparent 58%),
		linear-gradient(118deg,
			var(--wp--preset--color--surface-deep) 0%,
			var(--wp--preset--color--brand-strong) 34%,
			var(--wp--preset--color--brand) 66%,
			var(--wp--preset--color--brand-pure) 100%);
}

/* Scatter. Three sizes of faint dot at three densities, which is what stops a
 * large gradient reading as a flat wash. Decorative, so no contrast applies. */
.adx-hero--gradient .adx-hero__field {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	/* Dots and a fine line grid on one plane, so the whole texture drifts as
	   a single parallax layer rather than two at different speeds. */
	background-image:
		radial-gradient(circle, rgba(255, 255, 255, 0.55) 1px, transparent 1.6px),
		radial-gradient(circle, rgba(255, 255, 255, 0.30) 1.4px, transparent 2px),
		linear-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.075) 1px, transparent 1px);
	background-size: 130px 130px, 210px 190px, 65px 65px, 65px 65px;
	background-position: 0 0, 64px 90px, 0 0, 0 0;
	/* Wide enough that it softens the corners without deleting the aurora,
	   which sits near the edges. The old 78% stop masked the blobs away. */
	-webkit-mask-image: radial-gradient(135% 115% at 50% 45%, black 35%, transparent 100%);
	mask-image: radial-gradient(135% 115% at 50% 45%, black 35%, transparent 100%);
	/* contains the aurora, which is why the hero itself must not */
	overflow: hidden;
}

.adx-hero__title--display {
	font-size: clamp(2.35rem, 5.2vw, 4rem);
	line-height: 1.04;
	letter-spacing: -0.032em;
	text-wrap: balance;
	margin-block-end: var(--wp--preset--spacing--40);
}

/* The second line of the headline, set lighter and translucent — the reference
 * does exactly this and it is what gives the hero two speeds. Still white, so
 * still 3.43:1 at display size. */
.adx-hero__title--display .adx-hero__word {
	display: block;
	color: color-mix(in srgb, white 82%, var(--wp--preset--color--brand-pure));
}

/* ---- Pill buttons with the arrow badge --------------------------------
 * The reference's signature control: a fully round button with a white circle
 * and an arrow sitting inside its right-hand end. Built with a pseudo-element
 * so it works on a plain core button block and needs no icon markup.
 * -------------------------------------------------------------------- */

.adx-btn-pill > .wp-block-button__link,
.adx-btn-pill > .wp-element-button {
	display: inline-flex;
	align-items: center;
	gap: 0.85rem;
	padding-block: 0.6rem;
	padding-inline: 1.5rem 0.6rem;
	font-size: 1.0625rem;
	font-weight: 650;
	border-radius: 999px;
	box-shadow: 0 10px 26px -10px color-mix(in srgb, var(--wp--preset--color--brand-ink) 55%, transparent);
	transition: transform var(--adx-t, 180ms) ease, box-shadow var(--adx-t, 180ms) ease;
}

.adx-btn-pill > .wp-block-button__link::after,
.adx-btn-pill > .wp-element-button::after {
	content: "";
	inline-size: 2.25rem;
	block-size: 2.25rem;
	border-radius: 50%;
	flex: none;
	background-color: currentColor;
	/* An arrow, as a mask, so it takes the button's own text colour and can
	 * never end up a colour nobody chose. */
	-webkit-mask: var(--adx-arrow) center / 1.05rem 1.05rem no-repeat;
	mask: var(--adx-arrow) center / 1.05rem 1.05rem no-repeat;
	opacity: 0.92;
}

:root {
	--adx-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M12 5l7 7-7 7'/%3E%3C/svg%3E");
}

/* The badge reads as a disc of the BUTTON's background showing through, which
 * is how the reference draws it — so the circle is the label colour and the
 * arrow is punched out of it. */
.adx-btn-pill > .wp-block-button__link::after { background-color: currentColor; }

@media (hover: hover) {
	.adx-btn-pill > .wp-block-button__link:hover,
	.adx-btn-pill > .wp-element-button:hover {
		transform: translateY(-2px);
		box-shadow: 0 16px 34px -12px color-mix(in srgb, var(--wp--preset--color--brand-ink) 60%, transparent);
	}
}

@media (prefers-reduced-motion: reduce) {
	.adx-btn-pill > .wp-block-button__link,
	.adx-btn-pill > .wp-element-button { transition: none; }
	.adx-btn-pill > .wp-block-button__link:hover,
	.adx-btn-pill > .wp-element-button:hover { transform: none; }
}

/* ---- Centred eyebrow with dots ---------------------------------------- */

.adx-eyebrow--dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	color: var(--wp--preset--color--muted);
}

.adx-eyebrow--dots::before,
.adx-eyebrow--dots::after {
	content: "";
	inline-size: 0.4rem;
	block-size: 0.4rem;
	border-radius: 50%;
	background: var(--wp--preset--color--brand-pure);
	flex: none;
}

.adx-on-dark .adx-eyebrow--dots { color: var(--wp--preset--color--on-deep-muted); }
.adx-on-dark .adx-eyebrow--dots::before,
.adx-on-dark .adx-eyebrow--dots::after { background: var(--wp--preset--color--accent-bright); }

/* ---- Soft cards with a blob -------------------------------------------
 * Big radius, soft shadow, and a pale organic shape behind the content in one
 * corner. The blob is the reference's whole card personality and it costs one
 * pseudo-element.
 * -------------------------------------------------------------------- */

.adx-soft {
	position: relative;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--xl);
	background: var(--wp--preset--color--surface);
	box-shadow: 0 18px 44px -20px color-mix(in srgb, var(--wp--preset--color--brand-ink) 32%, transparent);
	border: none;
}

.adx-soft::before {
	content: "";
	position: absolute;
	inset-block-start: -28%;
	inset-inline-end: -22%;
	inline-size: 62%;
	aspect-ratio: 1;
	border-radius: 46% 54% 38% 62% / 52% 38% 62% 48%;
	background: color-mix(in srgb, var(--wp--preset--color--brand-pure) 11%, transparent);
	pointer-events: none;
}

.adx-soft > * { position: relative; }

.adx-on-dark .adx-soft {
	background: color-mix(in srgb, var(--wp--preset--color--on-deep) 8%, transparent);
	box-shadow: 0 18px 44px -20px rgba(0, 0, 0, 0.6);
}

.adx-on-dark .adx-soft::before { background: color-mix(in srgb, var(--wp--preset--color--brand-pure) 22%, transparent); }

/* The offset grid. The reference staggers its cards rather than aligning them,
 * which reads as designed rather than generated. Dropped below the breakpoint,
 * because a stagger in one column is just inconsistent spacing. */
@media (min-width: 782px) {
	.adx-stagger > .wp-block-column:nth-child(even) { margin-block-start: var(--wp--preset--spacing--50); }
}

/* ---- Circular icon badges --------------------------------------------- */

.adx-badge {
	display: grid;
	place-items: center;
	inline-size: 3.5rem;
	block-size: 3.5rem;
	border-radius: 50%;
	margin-block-end: var(--wp--preset--spacing--30);
	background: var(--wp--preset--color--brand-pure);
	color: var(--wp--preset--color--surface);
	box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--wp--preset--color--brand-pure) 90%, transparent);
}

.adx-badge--accent {
	background: var(--wp--preset--color--accent-pure);
	color: var(--wp--preset--color--brand-ink);
	box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--wp--preset--color--accent-pure) 90%, transparent);
}

.adx-badge svg { inline-size: 1.6rem; block-size: 1.6rem; }

/* ---- Section tint ------------------------------------------------------
 * The reference alternates white with a very pale blue rather than with a
 * grey. Every text token clears AA on it by a wide margin (body 8.9:1).
 * -------------------------------------------------------------------- */

.adx-band-tint { background-color: var(--wp--preset--color--brand-soft); }

/* ---- Entrance ---------------------------------------------------------
 * A short staggered rise as a section arrives. Transform and opacity only, so
 * it cannot shift layout. The hiding rule is scoped to `.adx-reveal-ready`,
 * which only the script adds — so with JavaScript off, or with reduced motion
 * requested, everything is simply already in place rather than invisible.
 * -------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
	.adx-reveal-ready .adx-reveal {
		opacity: 0;
		transform: translateY(16px);
		transition: opacity 500ms cubic-bezier(0.22, 0.75, 0.25, 1), transform 500ms cubic-bezier(0.22, 0.75, 0.25, 1);
		transition-delay: var(--adx-reveal-delay, 0ms);
	}

	.adx-reveal-ready .adx-reveal.is-in { opacity: 1; transform: none; }
}

/* ---- The spelled heading and the method spine -------------------------
 * The brand spelled out of its own seven phase names, each initial in a
 * literal logo colour. At h2 display size both clear the 3:1 large-text
 * threshold on every light surface, which is the only reason this is possible.
 * -------------------------------------------------------------------- */

.adx-method__spell {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0 0.5em;
	font-size: clamp(1.6rem, 3.2vw, 2.6rem);
	line-height: 1.14;
	letter-spacing: -0.026em;
}

.adx-spell { white-space: nowrap; }
.adx-spell > b { color: var(--wp--preset--color--brand-pure); font-weight: inherit; }
.adx-spell--alt > b { color: var(--wp--preset--color--accent-pure); }
.adx-on-dark .adx-spell--alt > b { color: var(--wp--preset--color--accent-bright); }

/*
 * The spine. The page claims the ORDER is the point, and the previous version
 * rendered the phases as unconnected cards — contradicting the claim visually
 * while making it in words. Now a line runs from each letter to the next and
 * every phase prints what it depends on. If a phase could be moved without
 * breaking anything, the drawing would be lying.
 */
.adx-spine { display: grid; gap: 0; }

.adx-phase {
	display: grid;
	grid-template-columns: 4.75rem 1fr;
	gap: 0 var(--wp--preset--spacing--40);
	padding-block-end: var(--wp--preset--spacing--60);
}

.adx-phase:last-child { padding-block-end: 0; }

.adx-phase__rail { position: relative; display: flex; justify-content: center; }

/* Suppressed on the last phase: a line leaving the final step implies an
 * eighth one. */
.adx-phase:not(:last-child) .adx-phase__rail::after {
	content: "";
	position: absolute;
	inset-block-start: 3.6rem;
	inset-block-end: calc(var(--wp--preset--spacing--60) * -1);
	inline-size: 2px;
	border-radius: 2px;
	background: linear-gradient(
		to bottom,
		color-mix(in srgb, var(--wp--preset--color--brand-pure) 60%, transparent),
		color-mix(in srgb, var(--wp--preset--color--brand-pure) 12%, transparent)
	);
}

.adx-phase__letter {
	display: grid;
	place-items: center;
	inline-size: 3.25rem;
	block-size: 3.25rem;
	border-radius: 50%;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 1;
	/* The ink label on the literal logo blue measures 5.5:1, so the letter can
	 * be a solid fill of the real brand colour at any size. */
	color: var(--wp--preset--color--brand-ink);
	background: var(--wp--preset--color--brand-pure);
	box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--wp--preset--color--brand-pure) 95%, transparent);
}

.adx-phase__letter--alt {
	background: var(--wp--preset--color--accent-pure);
	box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--wp--preset--color--accent-pure) 95%, transparent);
}

.adx-phase__name { margin-block: 0.4rem 0; }

.adx-phase__needs {
	margin-block-start: var(--wp--preset--spacing--30);
	padding-inline-start: 0.85rem;
	border-inline-start: 3px solid var(--wp--preset--color--brand-pure);
	color: var(--wp--preset--color--muted);
	font-weight: 560;
}

.adx-phase__needs--first { border-inline-start-color: var(--wp--preset--color--accent-pure); }
.adx-on-dark .adx-phase__needs { color: var(--wp--preset--color--on-deep-muted); }

/* The platform surfaces a phase uses, as chips — a list of things read as
 * prose looks like one thing with commas in it. */
.adx-surfaces {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: var(--wp--preset--spacing--30) 0 0;
	padding: 0.85rem 0 0;
	list-style: none;
	border-block-start: 1px solid var(--wp--preset--color--line);
}

.adx-surfaces li {
	padding: 0.25rem 0.7rem;
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 620;
	color: var(--wp--preset--color--brand-strong);
	background: var(--wp--preset--color--surface);
	border-radius: 999px;
}

.adx-on-dark .adx-surfaces { border-block-start-color: color-mix(in srgb, var(--wp--preset--color--on-deep) 16%, transparent); }
.adx-on-dark .adx-surfaces li {
	color: var(--wp--preset--color--brand-ink);
	background: var(--wp--preset--color--brand-pure);
}

@media (max-width: 781px) {
	.adx-phase { grid-template-columns: 3rem 1fr; gap: 0 0.9rem; }
	.adx-phase__letter { inline-size: 2.6rem; block-size: 2.6rem; font-size: 1.3rem; }
	.adx-phase:not(:last-child) .adx-phase__rail::after { inset-block-start: 2.9rem; }
}

/* ---- Hero corrections -------------------------------------------------
 * Three defects the first render made obvious, each worth naming because each
 * was a decision rather than a typo.
 * -------------------------------------------------------------------- */

/*
 * 1. The headline is two lines, not a wrapped sentence with a coloured word in
 *    it. Setting a mid-sentence span to display:block strands whatever word it
 *    wrapped on a line of its own — which is what happened, and it read as a
 *    layout fault rather than as emphasis.
 */
.adx-hero__line { display: block; }

.adx-hero__line--soft {
	color: color-mix(in srgb, white 76%, var(--wp--preset--color--brand-pure));
	font-weight: 640;
}

/*
 * 2. The card is solid white, not translucent.
 *
 *    A frosted panel on a saturated gradient turns muddy: it takes the band's
 *    own colour at low opacity and ends up a desaturated middle tone with no
 *    edge. The reference floats a plain white card on the blue, which is the
 *    single strongest thing about that layout — the contrast of a clean
 *    rectangle against a vivid field — and it also makes the card's contents
 *    ordinary ink on white, with no on-dark handling at all.
 */
.adx-soft--solid {
	background: var(--wp--preset--color--surface);
	box-shadow: 0 30px 70px -28px rgba(1, 20, 28, 0.55);
}

.adx-on-dark .adx-soft--solid { background: var(--wp--preset--color--surface); }

/* Everything inside a solid card is on a light surface again, so the on-dark
 * inheritance has to be undone rather than worked around. */
.adx-on-dark .adx-soft--solid,
.adx-on-dark .adx-soft--solid :where(p, li, h2, h3, h4) { color: var(--wp--preset--color--body); }
.adx-on-dark .adx-soft--solid :where(h2, h3, h4),
.adx-on-dark .adx-soft--solid .adx-adro-name { color: var(--wp--preset--color--ink); }
.adx-on-dark .adx-soft--solid .adx-eyebrow { color: var(--wp--preset--color--brand); }
.adx-on-dark .adx-soft--solid a { color: var(--wp--preset--color--brand); }
.adx-on-dark .adx-soft--solid::before { background: color-mix(in srgb, var(--wp--preset--color--brand-pure) 10%, transparent); }

/*
 * 3. The letters are the same circular chip in the card as on the spine, so the
 *    device is one object seen twice rather than two treatments of one idea.
 *    Ink on the literal logo blue is 5.5:1, so the chip is safe at this size.
 */
.adx-chip {
	display: grid;
	place-items: center;
	inline-size: 2.4rem;
	block-size: 2.4rem;
	flex: none;
	border-radius: 50%;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1;
	color: var(--wp--preset--color--brand-ink) !important;
	background: var(--wp--preset--color--brand-pure);
}

.adx-adro-row:nth-child(even) .adx-chip { background: var(--wp--preset--color--accent-pure); }

.adx-method-card .adx-adro-row { align-items: center; gap: 0.85rem; }
.adx-method-card .adx-adro-row + .adx-adro-row { margin-block-start: 0.7rem; }

/*
 * 4. The gradient carries more of the literal logo blue.
 *
 *    The first attempt spent most of its area in the deep end and read as navy
 *    with a blue corner. The constraint is real — white body copy sits on the
 *    left of this band and needs 4.5:1, which caps that side at about #006B9A
 *    — so the brightness goes where nothing is read: the right-hand two fifths,
 *    behind the card, lifted with a second radial in the literal colour.
 */
.adx-hero--gradient {
	background:
		radial-gradient(85% 70% at 82% 18%, var(--wp--preset--color--brand-pure) 0%, transparent 62%),
		radial-gradient(70% 60% at 100% 100%, color-mix(in srgb, var(--wp--preset--color--accent-pure) 55%, transparent) 0%, transparent 58%),
		linear-gradient(104deg,
			var(--wp--preset--color--surface-deep) 0%,
			var(--wp--preset--color--brand-strong) 38%,
			var(--wp--preset--color--brand) 64%,
			var(--wp--preset--color--brand-pure) 100%);
}

/* The lede and the bullet list stay on the left half, where the band is at
 * least brand (#006B9A, white at 5.9:1). Capping the measure is what keeps
 * them there rather than trusting the column width alone. */
.adx-hero--gradient .adx-hero__lede,
.adx-hero--gradient .adx-checks { max-inline-size: 34rem; }

@media (max-width: 781px) {
	/* On one column there is no "left half", so the band flips to a vertical
	 * ramp that keeps every line of copy over the dark end. */
	.adx-hero--gradient {
		background:
			radial-gradient(120% 40% at 50% 100%, color-mix(in srgb, var(--wp--preset--color--brand-pure) 85%, transparent) 0%, transparent 70%),
			linear-gradient(170deg,
				var(--wp--preset--color--surface-deep) 0%,
				var(--wp--preset--color--brand-strong) 55%,
				var(--wp--preset--color--brand) 100%);
	}

	.adx-hero--gradient .adx-hero__lede,
	.adx-hero--gradient .adx-checks { max-inline-size: none; }
}

/* ---- Two corrections the audit found, and what caused each -------------
 *
 * Both were specificity, not colour choice, which is why neither was visible in
 * the CSS and both were obvious the moment the page was measured.
 * -------------------------------------------------------------------- */

/*
 * A. The solid white card kept the on-dark text colours: 1.72:1.
 *
 *    `.adx-on-dark .adx-adro-row p:not(.adx-adro-name):not(.adx-adro-letter)`
 *    is (0,4,1) — written for a dark card, where it is right. The reset above
 *    is (0,2,0) and lost to it, so a near-white muted tone stayed on a white
 *    panel. Matching the original shape and adding the card class beats it at
 *    (0,5,1) rather than reaching for !important, which would have hidden the
 *    next instance of the same problem.
 */
.adx-on-dark .adx-soft--solid .adx-adro-row p:not(.adx-adro-name):not(.adx-adro-letter) {
	color: var(--wp--preset--color--body);
}

.adx-on-dark .adx-soft--solid .adx-adro-name { color: var(--wp--preset--color--ink); }
.adx-on-dark .adx-soft--solid .adx-method-card__link a,
.adx-on-dark .adx-soft--solid a:not(.wp-block-button__link):not(.wp-element-button) {
	color: var(--wp--preset--color--brand);
	text-decoration-color: color-mix(in srgb, var(--wp--preset--color--brand) 45%, transparent);
}

/*
 * B. The hero's supporting copy was `on-deep-muted` on a brightened band.
 *
 *    `.adx-on-dark :where(p, li)` paints it, and that was correct against the
 *    old near-black hero where the pair measures 4.96:1. Against a gradient
 *    reaching the literal logo blue it is 2.45:1 — the band got brighter and
 *    the text that had been tuned to the old one did not move.
 *
 *    Two changes rather than one, because either alone would be a fudge: the
 *    copy goes to the full-strength on-deep tone, AND the gradient is capped at
 *    `brand` across the whole area any text occupies. The bright end now starts
 *    past the text column, behind the card, where nothing is read.
 */
.adx-hero--gradient :where(p, li) { color: var(--wp--preset--color--on-deep); }
.adx-hero--gradient .adx-eyebrow--dots,
.adx-hero--gradient .adx-hero__note { color: var(--wp--preset--color--on-deep); }

/* The outline button's label was 3.88:1 for the same reason. */
.adx-hero--gradient .wp-block-button.is-style-outline > .wp-block-button__link,
.adx-hero--gradient .wp-block-button.is-style-outline > .wp-element-button {
	color: var(--wp--preset--color--surface);
	border-color: color-mix(in srgb, var(--wp--preset--color--surface) 70%, transparent);
}

.adx-hero--gradient {
	background:
		/* The vivid end, tucked into the top-right corner behind the card. */
		radial-gradient(58% 62% at 96% 12%, var(--wp--preset--color--brand-pure) 0%, transparent 64%),
		radial-gradient(48% 44% at 104% 104%, color-mix(in srgb, var(--wp--preset--color--accent-pure) 60%, transparent) 0%, transparent 62%),
		linear-gradient(104deg,
			var(--wp--preset--color--surface-deep) 0%,
			var(--wp--preset--color--brand-strong) 46%,
			var(--wp--preset--color--brand) 82%,
			var(--wp--preset--color--brand-pure) 100%);
}

@media (max-width: 781px) {
	/*
	 * On one column every line of copy crosses the whole band, so there is no
	 * "away from the text" to put brightness in. The ramp therefore stops at
	 * `brand` and the vivid corner is dropped entirely — a hero that is a shade
	 * less striking on a phone is a better trade than one that cannot be read
	 * on one.
	 */
	.adx-hero--gradient {
		background: linear-gradient(168deg,
			var(--wp--preset--color--surface-deep) 0%,
			var(--wp--preset--color--brand-strong) 58%,
			var(--wp--preset--color--brand) 100%);
	}
}

/* ---- The gradient had to stop using tokens that change meaning ---------
 *
 * In dark mode `brand` and `brand-strong` are LIGHT — that is their whole job
 * there, and it is correct. Building the hero band out of them meant the band
 * inverted with the theme: a pale blue field with near-white text on it, 1.9:1.
 *
 * The hero is a deep brand band in BOTH themes, so it may only be built from
 * values that stay deep in both. `surface-deep` does, and `brand-pure` is the
 * literal logo blue and is identical in both palettes by design — so every
 * intermediate stop is a mix of exactly those two. The ramp is now theme-proof
 * by construction rather than by having been checked once in one theme.
 * -------------------------------------------------------------------- */

.adx-hero--gradient {
	--adx-hero-deep: var(--wp--preset--color--surface-deep);
	--adx-hero-1: color-mix(in srgb, var(--wp--preset--color--brand-pure) 26%, var(--adx-hero-deep));
	--adx-hero-2: color-mix(in srgb, var(--wp--preset--color--brand-pure) 58%, var(--adx-hero-deep));

	background:
		radial-gradient(54% 58% at 98% 10%, var(--wp--preset--color--brand-pure) 0%, transparent 62%),
		radial-gradient(44% 40% at 106% 106%, color-mix(in srgb, var(--wp--preset--color--accent-pure) 55%, transparent) 0%, transparent 60%),
		linear-gradient(104deg,
			var(--adx-hero-deep) 0%,
			var(--adx-hero-1) 48%,
			var(--adx-hero-2) 84%,
			var(--wp--preset--color--brand-pure) 100%);
}

@media (max-width: 781px) {
	.adx-hero--gradient {
		background: linear-gradient(168deg,
			var(--adx-hero-deep) 0%,
			var(--adx-hero-1) 62%,
			var(--adx-hero-2) 100%);
	}
}

/* The second headline line is a tint of white rather than white, which is the
 * reference's two-speed headline. It is display type so it needs 3:1, and at
 * 76% white over the literal logo blue it measured 2.59 — under, because the
 * band behind it got brighter. 88% clears it with the tint still reading as a
 * tint. */
.adx-hero__line--soft { color: color-mix(in srgb, white 88%, var(--wp--preset--color--brand-pure)); }

/* The hero's one line of supporting copy is display-scale: at 1.5rem it counts
 * as large text, which needs 3:1 rather than 4.5:1, and is therefore the only
 * size of copy a gradient can carry without knowing where the reader's viewport
 * put it. Everything smaller now lives on the plain band beneath. */
.adx-hero__lede--display {
	font-size: clamp(1.25rem, 1.9vw, 1.5rem);
	font-weight: 600;
	line-height: 1.45;
	max-inline-size: 34rem;
	color: var(--wp--preset--color--surface);
}

.adx-hero-under .adx-checks > li { color: var(--wp--preset--color--body); }
.adx-hero__note--under { color: var(--wp--preset--color--muted); margin-block-start: 0; }

@media (max-width: 781px) {
	.adx-hero__lede--display { max-inline-size: none; }
}

/* ---- Three more, each the same class of mistake ------------------------
 *
 * The hero band is dark in BOTH themes, so nothing inside it may be coloured
 * with a token whose value flips. `surface` is white in light and near-black in
 * dark — which is exactly what it is for, and exactly why the lede coloured
 * with it turned black-on-black at 1.06:1 the moment the theme changed. On a
 * band that is deliberately theme-invariant, white has to be literal.
 * -------------------------------------------------------------------- */

.adx-hero--gradient .adx-hero__lede--display { color: #FFFFFF; }

.adx-hero--gradient .wp-block-button.is-style-outline > .wp-block-button__link,
.adx-hero--gradient .wp-block-button.is-style-outline > .wp-element-button {
	color: #FFFFFF;
	border-color: rgba(255, 255, 255, 0.72);
}

.adx-hero--gradient .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.adx-hero--gradient .wp-block-button.is-style-outline > .wp-element-button:hover {
	color: #FFFFFF;
	border-color: #FFFFFF;
	background-color: rgba(255, 255, 255, 0.12);
}

/* `.adx-hero.adx-on-dark .adx-eyebrow` is (0,3,0) and was setting the eyebrow
 * to the muted on-dark tone — right for the old near-black hero, 1.9:1 against
 * this one. Matched at the same weight and placed after it. */
.adx-hero.adx-hero--gradient .adx-eyebrow { color: #FFFFFF; }

/* 2.99:1 against a 3.0 threshold is a fail, and rounding it up would be the
 * beginning of a bad habit. 92% white clears it and still reads as the lighter
 * of the two headline lines. */
.adx-hero__line--soft { color: color-mix(in srgb, white 92%, var(--wp--preset--color--brand-pure)); }

/* ---- Nothing small sits directly on the gradient -----------------------
 *
 * White on the literal logo blue is 3.43:1. That is fine for display type,
 * which needs 3:1, and not fine for a 13px eyebrow or a 17px button label. The
 * choice was either to dim the band until small white text worked — capping it
 * at #006B9A and losing the brand's actual colour from the largest surface on
 * the page — or to stop putting small text directly on it.
 *
 * The second is both the accessible answer and the better-looking one, and it
 * is what the reference design already does: its hero carries a headline and
 * solid controls, and nothing small floats on the blue. So the eyebrow becomes
 * a chip and the secondary button becomes a solid pill. Both are opaque fills
 * with measured pairs, and both are theme-invariant because the band is.
 * -------------------------------------------------------------------- */

.adx-eyebrow--chip {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	inline-size: auto;
	padding: 0.4rem 0.95rem;
	border-radius: 999px;
	/* An opaque deep fill, not a translucent one: a translucent chip takes the
	 * gradient underneath it and its contrast becomes a function of where on
	 * the band it happens to sit, which is the problem this chip exists to
	 * solve. White on this is 15:1. */
	background: color-mix(in srgb, var(--wp--preset--color--brand-ink) 88%, #000);
	color: #FFFFFF !important;
	margin-block-end: var(--wp--preset--spacing--30);
}

.adx-eyebrow--chip::before {
	content: "";
	inline-size: 0.45rem;
	block-size: 0.45rem;
	border-radius: 50%;
	background: var(--wp--preset--color--accent-pure);
	flex: none;
}

/* The secondary action: a solid white pill with the ink label. 17.6:1, and it
 * reads as a pair with the green primary rather than as the weaker outline
 * version of it. Both colours are literal because the band does not change
 * between themes and neither should the controls on it. */
.adx-btn-ghost-solid > .wp-block-button__link,
.adx-btn-ghost-solid > .wp-element-button {
	background-color: #FFFFFF;
	color: var(--wp--preset--color--brand-ink);
	border: none;
}

.adx-btn-ghost-solid > .wp-block-button__link:hover,
.adx-btn-ghost-solid > .wp-element-button:hover {
	background-color: #FFFFFF;
	color: var(--wp--preset--color--brand-strong);
}

/* Unambiguously large at every width, so the 3:1 threshold applies rather than
 * depending on where the clamp lands. */
.adx-hero__lede--display { font-size: clamp(1.5rem, 2vw, 1.75rem); font-weight: 650; }

/* The white-on-band eyebrow rule reached into the white card too, and painted
 * its eyebrow white on white at 1.02:1. The card is a light surface sitting
 * inside a dark band, so it has to win back every on-dark inheritance
 * explicitly — this is the last of them. */
.adx-hero--gradient .adx-soft--solid .adx-eyebrow { color: var(--wp--preset--color--brand); }

/* The curve is scenery and must sit behind whatever follows it. Without this
 * it painted over the first two lines of the next section — the band's own
 * colour drawn on top of the copy, which looked like a clipping fault. The
 * section beneath also reserves room for the overhang rather than starting
 * underneath it. */
.adx-curve-b::after,
.adx-curve-t::before { z-index: -1; }

.adx-curve-b { z-index: 0; }

.adx-hero-under { padding-block-start: calc(var(--wp--preset--spacing--60) + clamp(38px, 5.5vw, 84px)) !important; }

/* ---- The method head lines up with the spine, not with the band --------
 *
 * The head sat 108px left of its own content: the spine reserves a rail column
 * for the letters that the head above it does not have, so the two started at
 * different x positions. Centring the head hid the mismatch without fixing it —
 * and made it worse, because a centred head over left-aligned content is a
 * second misalignment.
 *
 * Indenting the head by exactly the rail's own width makes the two share an
 * edge, and the value is derived from the same measurement the grid uses rather
 * than typed in, so they cannot drift apart later.
 * -------------------------------------------------------------------- */

.adx-method {
	--adx-rail: 4.75rem;
	--adx-rail-gap: 2rem;
	--adx-rail-indent: 6.75rem;
}

.adx-phase { grid-template-columns: var(--adx-rail) 1fr; gap: 0 var(--adx-rail-gap); }

/* Core's constrained layout sets `margin-left: auto; margin-right: auto` on
 * every child of a constrained group, at (0,2,0) via :where(). A one-class rule
 * loses to it silently — the indent was in the stylesheet and not on the page.
 * Matched at (0,3,0), and both sides are set so neither can fall back to auto. */
.adx-section.adx-method .adx-section-head--railed {
	/*
	 * PADDING, not margin.
	 *
	 * Core's layout CSS sets `margin-left: auto; margin-right: auto` on an
	 * alignwide child of a constrained group at the same specificity as any
	 * rule a theme can write for it, and whether the theme or the layout block
	 * lands last in the cascade is not something the theme controls. Two
	 * attempts at a margin here were in the stylesheet and not on the page.
	 *
	 * Padding is not a property core's layout rules touch, so it simply works —
	 * and it indents the head by exactly the rail the spine reserves, which is
	 * what makes the heading share an edge with the phase copy beneath it.
	 */
	/* One value per breakpoint rather than a calc over two nested custom
	 * properties, which resolved to the rail alone and left the head 32px
	 * short. The grid uses the same two numbers; this is their sum. */
	padding-inline-start: var(--adx-rail-indent);
	max-inline-size: 58rem;
}

.adx-method__spell { justify-content: flex-start; }

@media (max-width: 781px) {
	.adx-method { --adx-rail: 3rem; --adx-rail-gap: 0.9rem; --adx-rail-indent: 3.9rem; }
	.adx-section-head--railed { margin-inline-start: 0; }
}

/* ---- The soft language, across the rest of the page -------------------
 * The hero and the method had it and the other four sections did not, which is
 * most of why the page read as unfinished: one composition with a soft, curved,
 * badged vocabulary and four flat panels underneath it.
 * -------------------------------------------------------------------- */

/* Section heads that sit above a full-width grid are centred, which is what the
 * reference does and what stops a head from having to line up with a card. */
/*
 * The measure goes on the TEXT, not on the head's box.
 *
 * Capping the box at 44rem and centring it with auto margins looks like the
 * obvious way to do this and does not survive contact with core's layout CSS:
 * the box stayed 720px wide and flush against the wide container's left edge,
 * so a "centred" head sat 264px left of the grid it introduced. Letting the box
 * span the full wide width and constraining each line inside it means the
 * centres agree by construction -- there is nothing left to get wrong, because
 * there is no margin in the calculation at all.
 */
/*
 * The centred section head is gone, not fixed.
 *
 * Core caps an alignwide child of a constrained group at the CONTENT size via a
 * :where() rule, so the head's box stayed 720px inside a 1248px container and
 * its centre could not be made to agree with the grid's. Four attempts lost
 * that cascade silently -- the rule was in the stylesheet and not on the page
 * each time, which is the worst failure mode there is.
 *
 * A left-aligned head over a wide grid shares the grid's left edge with nothing
 * to calculate, and the method section already reads that way, so the page ends
 * up more consistent than the version that was being chased.
 */

/* The free-tools card keeps its distinction, now in the soft idiom: an accent
 * ring rather than a heavier border, and the green badge. */
.adx-soft--free {
	box-shadow:
		0 0 0 2px var(--wp--preset--color--accent-pure),
		0 18px 44px -20px color-mix(in srgb, var(--wp--preset--color--accent-pure) 40%, transparent);
}

.adx-soft--free::before { background: color-mix(in srgb, var(--wp--preset--color--accent-pure) 13%, transparent); }

/* A card's own heading sits tighter under its badge than under nothing. */
.adx-soft .adx-badge + .adx-eyebrow,
.adx-soft .adx-badge + h3 { margin-block-start: 0; }

.adx-soft :where(h3) { margin-block-end: 0.35rem; }

/*
 * Cards in a row match height and their actions align, which is the difference
 * between a grid and four boxes that happen to be beside each other. The
 * columns block does not do this on its own, so the card stretches and its last
 * child is pushed down.
 */
.adx-stagger > .wp-block-column { display: flex; }
.adx-stagger > .wp-block-column > .adx-soft { flex: 1 1 auto; display: flex; flex-direction: column; }
.adx-stagger > .wp-block-column > .adx-soft > :last-child { margin-block-start: auto; }

/* Hover: a small lift, the same 2px the pill buttons use, so the whole page
 * moves with one vocabulary rather than three. */
@media (hover: hover) {
	.adx-soft {
		transition: transform 200ms cubic-bezier(0.22, 0.75, 0.25, 1), box-shadow 200ms cubic-bezier(0.22, 0.75, 0.25, 1);
	}

	.adx-soft:hover {
		transform: translateY(-3px);
		box-shadow: 0 26px 56px -22px color-mix(in srgb, var(--wp--preset--color--brand-ink) 40%, transparent);
	}

	.adx-soft--free:hover {
		box-shadow:
			0 0 0 2px var(--wp--preset--color--accent-pure),
			0 26px 56px -22px color-mix(in srgb, var(--wp--preset--color--accent-pure) 46%, transparent);
	}
}

@media (prefers-reduced-motion: reduce) {
	.adx-soft { transition: none; }
	.adx-soft:hover { transform: none; }
}

/* Two curved bands in a row must not both bulge into the same gap. */
.adx-curve-b + .adx-curve-b { padding-block-start: calc(var(--wp--preset--spacing--70) + clamp(38px, 5.5vw, 84px)); }

/* ---- The pricing disclosure -------------------------------------------
 * A native <details>, styled as a control. It opens with JavaScript off, takes
 * keyboard focus, and is announced as a disclosure with no ARIA at all — three
 * things a scripted accordion has to reimplement and usually gets wrong.
 * -------------------------------------------------------------------- */

.adx-disclose {
	margin-block-start: var(--wp--preset--spacing--30);
	border-block-start: 1px solid var(--wp--preset--color--line);
	padding-block-start: var(--wp--preset--spacing--30);
}

.adx-disclose__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	/* 44px, because a summary is a tap target and the browser gives it no
	 * minimum of its own. */
	min-block-size: 44px;
	padding: 0.6rem 0.9rem;
	border-radius: 999px;
	background: var(--wp--preset--color--brand-soft);
	color: var(--wp--preset--color--brand-strong);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 640;
	cursor: pointer;
	list-style: none;
	transition: background-color 160ms ease;
}

.adx-disclose__summary::-webkit-details-marker { display: none; }

.adx-disclose__summary::after {
	content: "";
	inline-size: 1.4rem;
	block-size: 1.4rem;
	flex: none;
	background-color: currentColor;
	-webkit-mask: var(--adx-chevron) center / 1.4rem 1.4rem no-repeat;
	mask: var(--adx-chevron) center / 1.4rem 1.4rem no-repeat;
	transition: rotate 180ms ease;
}

:root {
	--adx-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

.adx-disclose[open] > .adx-disclose__summary::after { rotate: 180deg; }

.adx-disclose__count {
	margin-inline-start: auto;
	font-weight: 600;
	opacity: 0.8;
}

.adx-disclose__summary:hover { background: color-mix(in srgb, var(--wp--preset--color--brand-pure) 22%, var(--wp--preset--color--surface)); }

.adx-disclose[open] > .adx-disclose__summary { margin-block-end: var(--wp--preset--spacing--30); }

.adx-on-dark .adx-disclose { border-block-start-color: color-mix(in srgb, var(--wp--preset--color--on-deep) 16%, transparent); }

.adx-on-dark .adx-disclose__summary {
	background: color-mix(in srgb, var(--wp--preset--color--on-deep) 12%, transparent);
	color: var(--wp--preset--color--on-deep);
}

/* The four included features are the answer to "what do I get for the base
 * price", so they stay visible and tight rather than joining the disclosure. */
.adx-checks--tight > li { margin-block-end: 0.35rem; }

@media (prefers-reduced-motion: reduce) {
	.adx-disclose__summary,
	.adx-disclose__summary::after { transition: none; }
}

/* ---- Soft cards align left, all the way down ---------------------------
 *
 * Core's constrained layout gives every child of a constrained group
 * `margin-left: auto; margin-right: auto`. For a full-width paragraph that is
 * invisible; for a 56px badge and a shrink-to-fit heading it centres them — so
 * the cards rendered with a centred icon and a centred title over a
 * left-aligned list, which reads as three different alignment decisions in one
 * card rather than as a design.
 *
 * Set explicitly rather than by removing the layout type, because the
 * constrained layout is also what gives the card its measure.
 * -------------------------------------------------------------------- */

/* Core's rule is `.wp-block-group.is-layout-constrained > :where(...)` at
 * (0,2,0), so a one-class override loses to it. Matched at (0,3,0) by naming
 * the same two classes plus the card's own. */
.wp-block-group.adx-soft.is-layout-constrained > *,
.wp-block-group.adx-card.is-layout-constrained > * {
	margin-inline-start: 0;
	margin-inline-end: 0;
}

.wp-block-group.adx-soft.is-layout-constrained > .adx-badge { margin-inline-end: auto; }
.wp-block-group.adx-soft.is-layout-constrained > h3 { inline-size: 100%; }

/* ...and the CTA at the foot of a tier still spans the card. */
.adx-soft > .adx-tier__cta,
.adx-card > .adx-tier__cta { margin-inline: 0; }

/* ====================================================================
 * Frames
 * ====================================================================
 *
 * Every image in the theme renders inside one of these. The frame owns the
 * reserved box, the crop, the depth and the scrim, so a pattern only has to
 * say what the picture is and where it sits.
 *
 * The depth is the part that was missing. A 1px border round a white card on
 * a white page is a wireframe convention; the reason the reference sites read
 * as expensive is that their surfaces sit ABOVE the page rather than being
 * drawn on it. That is a two-layer shadow -- a tight contact shadow and a wide
 * soft one -- plus a large radius, plus something behind the image that is not
 * the page colour.
 * ================================================================= */

.adx-frame {
	position: relative;
	display: block;
	margin: 0;
	/* Set per-instance from the ratio the pattern asked for; the fallback
	 * keeps a frame from collapsing if the property is ever missing. */
	aspect-ratio: var(--adx-frame-ratio, 3 / 2);
	overflow: hidden;
	border-radius: var(--wp--custom--radius--lg, 24px);
	background: var(--wp--preset--color--surface-alt, #ECECEC);
	isolation: isolate;
}

.adx-frame__img {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	/* The frame decides the shape and the image fills it. Without this the
	 * intrinsic aspect wins and every card in a row is a different height,
	 * which is most of what "not aligned" looks like. */
	object-fit: cover;
	object-position: center;
}

.adx-frame--top .adx-frame__img,
.adx-frame--top .adx-frame__shot .adx-frame__img {
	/* A screenshot is most useful at its head, where the controls and the
	 * headline figures are. Centre-cropping a tall one shows its middle. */
	object-position: top center;
}

.adx-frame__caption {
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	padding: 1.25rem 1.25rem 1rem;
	color: #FFFFFF;
	font-size: var(--wp--preset--font-size--sm, 0.875rem);
	font-weight: 600;
	/* Sits above the scrim, which is what guarantees its contrast. */
	z-index: 2;
}

/* ---- Depth ---------------------------------------------------------- */

/*
 * Two shadows, not one.
 *
 * A single large soft shadow reads as a sticker floating in space. Real
 * objects have a tight dark contact shadow where they meet the surface AND a
 * wide diffuse one further out, and reproducing both is the difference between
 * "has a box-shadow" and "looks physical".
 */
.adx-frame--plain,
.adx-frame--device,
.adx-frame--portrait {
	/*
	 * Offset down-and-right, and tinted navy rather than black.
	 *
	 * This is measured off the reference sites rather than chosen: theirs is
	 * `8px 8px 30px rgba(42, 67, 113, 0.3)` -- displaced on both axes, a
	 * saturated blue-navy, and three times the opacity anything here had. A
	 * centred low-alpha neutral shadow is the tasteful default and it is
	 * exactly why the cards read as drawn on the page instead of sitting above
	 * it. The tint is moved into the ADROMAX family; the geometry is theirs.
	 */
	box-shadow:
		1px 1px 2px rgba(4, 58, 82, 0.10),
		8px 9px 30px -6px rgba(4, 58, 82, 0.28);
}

.adx-frame--tile {
	border-radius: var(--wp--custom--radius--md, 14px);
	box-shadow: 2px 3px 10px 0 rgba(4, 58, 82, 0.14);
}

/* ---- Scrims --------------------------------------------------------- */

/*
 * A directional gradient, never a flat dim.
 *
 * dimRatio paints one flat wash over the whole picture: it flattens the image
 * everywhere and still leaves a bright sky too light for white text exactly
 * where the headline sits. A scrim is opaque where the text is and clear where
 * it is not, so the photograph survives and the ratio is guaranteed.
 */
.adx-frame__scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

.adx-frame--scrim-bottom .adx-frame__scrim {
	background: linear-gradient(
		to top,
		rgba(1, 18, 25, 0.88) 0%,
		rgba(1, 18, 25, 0.55) 34%,
		rgba(1, 18, 25, 0) 72%
	);
}

.adx-frame--scrim-left .adx-frame__scrim {
	background: linear-gradient(
		to right,
		rgba(1, 18, 25, 0.86) 0%,
		rgba(1, 18, 25, 0.45) 46%,
		rgba(1, 18, 25, 0) 82%
	);
}

/* ---- The device frame ----------------------------------------------- */

/*
 * Browser chrome drawn in CSS rather than baked into the screenshot.
 *
 * Baking it in means the chrome cannot follow the page into dark mode, cannot
 * be restyled, and has to be re-rendered every time the product changes. Drawn
 * here it is three dots and a bar that cost nothing and theme themselves, and
 * the asset stays a clean rectangle anybody can replace.
 */
.adx-frame--device {
	aspect-ratio: var(--adx-frame-ratio, 4 / 3);
	padding-block-start: 2.25rem;
	background: var(--wp--preset--color--surface-deep, #012231);
	border-radius: var(--wp--custom--radius--lg, 24px);
}

.adx-frame__chrome {
	position: absolute;
	inset-block-start: 0;
	inset-inline: 0;
	block-size: 2.25rem;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding-inline: 0.9rem;
	/* A hairline rather than a border: a full border on a dark bar reads as a
	 * second rectangle. */
	box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.adx-frame__dots {
	display: flex;
	gap: 0.375rem;
	flex: 0 0 auto;
}

.adx-frame__dots i {
	inline-size: 0.5rem;
	block-size: 0.5rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.28);
}

.adx-frame__bar {
	flex: 1 1 auto;
	block-size: 0.875rem;
	max-inline-size: 18rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
}

.adx-frame__shot {
	display: block;
	block-size: 100%;
	overflow: hidden;
	/* Only the bottom corners: the top of the shot meets the chrome bar
	 * square, the way a real viewport does. */
	border-end-start-radius: calc(var(--wp--custom--radius--lg, 24px) - 4px);
	border-end-end-radius: calc(var(--wp--custom--radius--lg, 24px) - 4px);
}

/* ---- The portrait frame --------------------------------------------- */

/*
 * A person, with something behind them.
 *
 * A head-and-shoulders photograph dropped straight onto a white page is the
 * single most common reason a small-business site looks homemade. A soft brand
 * disc behind it gives the cut-out a ground to sit on, and the ::before is on
 * the wrapper rather than the image so it works whether the photo has a
 * background or not.
 */
.adx-frame--portrait {
	aspect-ratio: var(--adx-frame-ratio, 4 / 5);
	border-radius: var(--wp--custom--radius--xl, 34px);
	background: linear-gradient(
		160deg,
		var(--wp--preset--color--brand-pure, #0093D3) 0%,
		var(--wp--preset--color--surface-deep, #012231) 100%
	);
}

/* ---- Art ------------------------------------------------------------ */

/*
 * A generated composition is art, not a photograph, so it does not get the
 * photographic treatment: no contact shadow pretending it is a physical print,
 * and it sits flush inside whatever surface contains it.
 */
.adx-frame.is-art {
	background: var(--wp--preset--color--surface-deep, #012231);
}

.adx-frame--tile.is-art {
	box-shadow: none;
}

/* ---- Overlap -------------------------------------------------------- */

/*
 * Letting a frame break out of its band.
 *
 * Every section ending exactly where the next begins is what makes a page read
 * as a stack of rectangles. One element crossing a boundary is the cheapest
 * way to make a layout look composed rather than assembled, and it costs a
 * negative margin.
 */
.adx-frame--rise {
	margin-block-end: calc(var(--wp--preset--spacing--60, 3rem) * -1);
	position: relative;
	z-index: 2;
}

@media (max-width: 781px) {
	/* Not on a phone: an overlap in one column is just a collision. */
	.adx-frame--rise {
		margin-block-end: 0;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.adx-frame--plain,
	.adx-frame--device,
	.adx-frame--portrait {
		transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
			box-shadow 320ms cubic-bezier(0.16, 1, 0.3, 1);
	}

	a:hover > .adx-frame--plain,
	a:hover > .adx-frame--device,
	.adx-card:hover .adx-frame--plain {
		transform: translateY(-4px);
		box-shadow:
			1px 1px 3px rgba(4, 58, 82, 0.12),
			12px 14px 40px -8px rgba(4, 58, 82, 0.34);
	}
}

/* ====================================================================
 * Showcase
 * ==================================================================== */

.adx-showcase__lead {
	max-inline-size: 64rem;
	margin-inline: auto;
}

.adx-showcase__cap {
	max-inline-size: 44rem;
	margin: var(--wp--preset--spacing--50, 2.5rem) auto 0;
	text-align: center;
	color: var(--wp--preset--color--muted, #426A7B);
	font-size: var(--wp--preset--font-size--sm, 0.875rem);
}

.adx-showcase__cap strong { color: var(--wp--preset--color--ink, #061116); }

.adx-showcase__row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: var(--wp--preset--spacing--40, 1.5rem);
	margin-block-start: var(--wp--preset--spacing--60, 3rem);
}

.adx-showcase__name {
	margin: 0.75rem 0 0;
	color: var(--wp--preset--color--ink, #061116);
	font-size: var(--wp--preset--font-size--sm, 0.875rem);
	font-weight: 650;
}

/*
 * A stagger on the small row, not a fade on the whole thing.
 *
 * Three items arriving together is a slide transition; three arriving 70ms
 * apart reads as the page assembling itself, which is the one motion cue that
 * consistently makes a static layout feel built rather than printed.
 */
@media (prefers-reduced-motion: no-preference) {
	.adx-showcase__item {
		animation: adx-rise-in 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
	}

	.adx-showcase__item:nth-child(2) { animation-delay: 70ms; }
	.adx-showcase__item:nth-child(3) { animation-delay: 140ms; }
}

@keyframes adx-rise-in {
	from { opacity: 0; transform: translateY(18px); }
	to   { opacity: 1; transform: none; }
}

/* ====================================================================
 * The hero shot
 * ====================================================================
 *
 * A frame that starts inside the band above it. The negative margin is on a
 * wrapper rather than on the figure, so the figure's own shadow and hover are
 * untouched and the lift can be dropped on small screens without unpicking
 * anything else.
 */

.adx-hero-shot {
	max-inline-size: 62rem;
	margin-inline: auto;
	margin-block-end: var(--wp--preset--spacing--60, 3rem);
}

.adx-frame--lift {
	/* Far enough to clear the curve and sit on it, not so far that the top of
	 * the screenshot lands on the headline. */
	margin-block-start: calc(var(--wp--preset--spacing--80, 6rem) * -1.15);
	position: relative;
	z-index: 3;
}

@media (max-width: 781px) {
	/*
	 * No lift on a phone. The hero's curve is shallower there and the gradient
	 * band is shorter, so a negative margin sized for a desktop curve puts the
	 * screenshot over the buttons.
	 */
	.adx-frame--lift {
		margin-block-start: 0;
	}

	.adx-hero-shot {
		margin-block-start: var(--wp--preset--spacing--50, 2.5rem);
	}
}

/* ====================================================================
 * The card surface
 * ====================================================================
 *
 * The page ground is now a light blue and the cards are white, which is the
 * inversion the reference sites are built on and the single biggest reason
 * they read as expensive. Before this, a white card sat on a #FCFDFE page --
 * a 0.4% difference -- so the only thing separating a card from the page was a
 * 1px grey border, which is a wireframe convention rather than a surface.
 *
 * `--adx-card` is a custom property rather than a palette slug because the
 * dark palette is COMPUTED from the light one by ADX_Dark, and a new slug
 * would need a matching generator branch. A property can simply be redeclared
 * per theme, which is all this needs.
 */
:root {
	--adx-card: var(--wp--custom--card, #FFFFFF);
}

/*
 * In dark, the card is LIGHTER than the page, not darker.
 *
 * Elevation in a dark interface is signalled by adding light, not by adding
 * shadow -- a shadow on a near-black ground is invisible. surface-tint is the
 * raised tone the dark generator already produces, so the relationship is
 * inverted correctly rather than by eye.
 */
@media (prefers-color-scheme: dark) {
	.adx-follows-device:not([data-adx-theme="light"]) {
		--adx-card: var(--wp--preset--color--surface-tint);
	}
}

:root[data-adx-theme="dark"] {
	--adx-card: var(--wp--preset--color--surface-tint);
}

.adx-card,
.adx-soft {
	background: var(--adx-card);
}

/*
 * And the border goes.
 *
 * A card that is lifted by a shadow and separated by colour does not also need
 * an outline; keeping both is what makes a surface look like a diagram of a
 * surface. The border stays only where a card sits on its own colour, which
 * .adx-card--outline opts into.
 */
.adx-card:not(.adx-card--outline) {
	border-color: transparent;
	box-shadow: var(--wp--preset--shadow--md);
}

.adx-card--outline {
	box-shadow: none;
}


/* ---- The hero's animated field -----------------------------------------
 * Four layers over the gradient, each doing one job:
 *
 *   .adx-hero__field          dots and a line grid on one drifting plane
 *   .adx-hero__field::before  aurora blob, cool
 *   .adx-hero__field::after   aurora blob, warm
 *
 * The texture lives in the field's own background rather than on a pseudo of
 * the hero, because .adx-curve-b::after is already the curve and the hero
 * carries both classes. Putting a second thing on that pseudo silently
 * deleted the curve.
 *
 * All of it animates transform only, so none of it triggers layout, and all
 * of it is switched off under prefers-reduced-motion below. No pattern markup
 * changes: the field element already existed for the dots.
 *
 * The blobs carry their own blur rather than inheriting one from a wrapper.
 * A filter on an ancestor creates a stacking context, which isolates
 * mix-blend-mode from the gradient behind it and leaves the aurora invisible
 * -- which is exactly what happened the first time this was built.
 * -------------------------------------------------------------------- */

/* isolation, so mix-blend-mode blends against this hero's gradient and not
   the page behind it. NOT overflow:hidden -- the curve is a pseudo-element
   that overhangs the section on purpose, and clipping here deletes it. The
   aurora is contained by the field instead. */
.adx-hero--gradient { position: relative; isolation: isolate; }

.adx-hero--gradient .adx-hero__field {
	animation: adx-dots 38s linear infinite;
	will-change: transform;
}

.adx-hero--gradient .adx-hero__field::before,
.adx-hero--gradient .adx-hero__field::after {
	content: "";
	position: absolute;
	display: block;
	border-radius: 50%;
	filter: blur(58px);
	mix-blend-mode: screen;
	pointer-events: none;
	will-change: transform;
}

.adx-hero--gradient .adx-hero__field::before {
	inline-size: 46vw; block-size: 46vw;
	inset-inline-start: -2%; inset-block-start: -4%;
	background: radial-gradient(circle at 50% 50%, rgba(0, 147, 211, 0.92) 0%, rgba(0, 147, 211, 0) 70%);
	animation: adx-drift-a 26s ease-in-out infinite alternate;
}

.adx-hero--gradient .adx-hero__field::after {
	inline-size: 40vw; block-size: 40vw;
	inset-inline-end: 2%; inset-block-end: -8%;
	background: radial-gradient(circle at 50% 50%, rgba(83, 158, 31, 0.58) 0%, rgba(83, 158, 31, 0) 70%);
	animation: adx-drift-b 34s ease-in-out infinite alternate;
}



@keyframes adx-drift-a {
	from { transform: translate3d(0, 0, 0) scale(1); }
	to   { transform: translate3d(7vw, 4vh, 0) scale(1.14); }
}

@keyframes adx-drift-b {
	from { transform: translate3d(0, 0, 0) scale(1.08); }
	to   { transform: translate3d(-6vw, 6vh, 0) scale(0.92); }
}

@keyframes adx-grid {
	from { transform: translate3d(0, 0, 0); }
	to   { transform: translate3d(58px, 58px, 0); }
}

@keyframes adx-dots {
	from { transform: translate3d(0, 0, 0); }
	to   { transform: translate3d(-130px, -130px, 0); }
}

/* The headline arrives rather than appearing. Gated on scripting so a page
 * with JavaScript off never shows content stuck at opacity 0. */
@media (scripting: enabled) {
	.adx-hero--gradient .adx-hero-content > * {
		animation: adx-rise 0.7s cubic-bezier(0.22, 0.8, 0.3, 1) both;
	}
	.adx-hero--gradient .adx-hero-content > *:nth-child(2) { animation-delay: 0.1s; }
	.adx-hero--gradient .adx-hero-content > *:nth-child(3) { animation-delay: 0.18s; }
	.adx-hero--gradient .adx-hero-content > *:nth-child(4) { animation-delay: 0.26s; }
}

@keyframes adx-rise {
	from { opacity: 0; transform: translate3d(0, 18px, 0); }
	to   { opacity: 1; transform: none; }
}

/* Motion is decoration here. Anyone who has asked for less of it gets the
 * same hero, still. */
@media (prefers-reduced-motion: reduce) {
	.adx-hero--gradient .adx-hero__field,
	.adx-hero--gradient .adx-hero__field::before,
	.adx-hero--gradient .adx-hero__field::after,
	.adx-hero--gradient .adx-hero-content > * {
		animation: none !important;
	}
}

/* ---- Agent credential strip --------------------------------------------
 * Five short facts under a biography. A grid rather than a flex row so a
 * long label wraps inside its own cell instead of pushing the next fact off
 * the line.
 * -------------------------------------------------------------------- */

.adx-factstrip {
	/* An explicit grid rather than relying on the block layout class: the
	   strip must lay out the same in a block theme, in the classic editor and
	   inside a page builder, none of which emit the same layout CSS. */
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
	gap: 1px;
	background-color: var(--wp--preset--color--line);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 12px;
	overflow: hidden;
}

.adx-fact {
	background-color: var(--wp--preset--color--surface, #fff);
	padding: var(--wp--preset--spacing--40);
	text-align: center;
}

.adx-fact__n {
	font-family: var(--wp--preset--font-family--display, inherit);
	font-weight: 700;
	font-size: clamp(1.35rem, 1.9vw, 1.9rem);
	font-variant-numeric: tabular-nums;
	line-height: 1.1;
	color: var(--wp--preset--color--brand);
	margin-block-end: 0.35rem;
}

.adx-fact__l {
	font-size: 0.8125rem;
	line-height: 1.45;
	color: var(--wp--preset--color--muted);
	margin-block: 0;
}

.adx-on-dark .adx-fact,
.adx-section--deep .adx-fact { background-color: rgba(255, 255, 255, 0.06); }
.adx-on-dark .adx-fact__n,
.adx-section--deep .adx-fact__n { color: var(--wp--preset--color--accent-bright, var(--wp--preset--color--accent)); }
.adx-on-dark .adx-fact__l,
.adx-section--deep .adx-fact__l { color: var(--wp--preset--color--on-deep-muted); }

/* A note that qualifies a claim above it. Small, but never faint enough to
   become unreadable -- a qualification nobody can read is not a
   qualification. */
.adx-finenote {
	color: var(--wp--preset--color--muted);
	max-inline-size: 68ch;
	margin-inline: auto;
	text-wrap: pretty;
}

/* ==========================================================================
   Core-class compatibility
   ==========================================================================
   The patterns in this theme use a handful of WordPress core block classes.
   In a block theme WordPress generates the CSS for those classes itself, so
   everything lines up. It does NOT generate it when the same markup is pasted
   into the classic editor, dropped into a page builder's HTML widget, or
   served from a static export.

   These rules are that missing CSS, written to match core's behaviour rather
   than to override it. On a block theme they are redundant and harmless; off
   one, they are the difference between a laid-out page and a single column.
   ========================================================================== */

.has-text-align-center { text-align: center; }
.has-text-align-left   { text-align: left; }
.has-text-align-right  { text-align: right; }

/* Columns. Core stacks these below 782px, which is the breakpoint used here
   so a theme and a non-theme context agree about where the fold is. */
.wp-block-columns {
	display: flex;
	flex-wrap: nowrap;
	gap: var(--wp--style--block-gap, 1.5rem);
	align-items: normal;
}
.wp-block-columns.are-vertically-aligned-center { align-items: center; }
.wp-block-columns.are-vertically-aligned-top { align-items: flex-start; }
.wp-block-column {
	flex-grow: 1;
	min-inline-size: 0;
	flex-basis: 100%;
}

@media (max-width: 781px) {
	.wp-block-columns:not(.is-not-stacked-on-mobile) { flex-wrap: wrap; }
	.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
		flex-basis: 100% !important;
	}
}

.wp-block-group.has-background,
.wp-block-group.has-border-color { padding: var(--wp--preset--spacing--40); }

.wp-block-image { margin: 0; }
.wp-block-image img { max-inline-size: 100%; block-size: auto; }

.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* A constrained group centres its children and caps their width. Without
   this, a pattern in a classic editor runs the full width of the viewport. */
.wp-block-group.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	max-inline-size: var(--wp--style--global--content-size, 46rem);
	margin-inline: auto;
}
.wp-block-group.is-layout-constrained > .alignwide {
	max-inline-size: var(--wp--style--global--wide-size, 76rem);
	margin-inline: auto;
}

/* ---- Quick-links strip (2.3.0) ---------------------------------------
 * The thin band under the hero. Deliberately quiet: it is a set of
 * shortcuts, not a second navigation, so the type is small and the only
 * emphasis is on hover.
 * ------------------------------------------------------------------- */

.adx-quick-links__row {
	gap: clamp(1rem, 3vw, 2.75rem);
	row-gap: 0.5rem;
}

.adx-quick-links__item {
	margin: 0;
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-weight: 600;
}

.adx-quick-links__item a {
	color: var(--wp--preset--color--on-deep-muted);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	padding-bottom: 2px;
	transition: color 0.16s ease, border-color 0.16s ease;
}

.adx-quick-links__item a:hover,
.adx-quick-links__item a:focus-visible {
	color: var(--wp--preset--color--on-deep);
	border-bottom-color: var(--wp--preset--color--accent-bright);
}

/* The hero's second action. Outline on a photograph needs a slightly
 * heavier border than outline on a flat ground, or it disappears into a
 * light part of the image. */
.adx-hero-cta--second .wp-block-button__link {
	border: 2px solid currentColor;
	background: transparent;
}

.adx-hero-cta--second .wp-block-button__link:hover {
	background: color-mix(in srgb, var(--wp--preset--color--on-deep) 14%, transparent);
}

@media (prefers-reduced-motion: reduce) {
	.adx-quick-links__item a { transition: none; }
}

/* ---- Editor-only notes (2.3.1) --------------------------------------
 * Instructions to whoever is editing the site. Never sent to a visitor —
 * ADX_Patterns::editor_note() returns an empty string without the
 * capability, so this styling only ever applies to an editor's own view.
 * Marked visually as scaffolding so it is never mistaken for copy.
 * ------------------------------------------------------------------- */

.adx-editor-note {
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1.5;
	color: var(--wp--preset--color--muted);
	background: color-mix(in srgb, var(--wp--preset--color--warning) 8%, transparent);
	border: 1px dashed var(--wp--preset--color--warning);
	border-radius: 6px;
	padding: 0.75rem 0.9rem;
	margin-block: 0.75rem;
}

.adx-editor-note::before {
	content: "Only you can see this ";
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: 0.7em;
	color: var(--wp--preset--color--warning);
	display: block;
	margin-bottom: 0.25rem;
}

/* ---- Listing search (2.5.0, redrawn 2.5.1) --------------------------
 * The bar, the suggestions, the preset chips and the advanced panel.
 *
 * 2.5.0 shipped the chips as flex children with no minimum, inheriting the
 * display serif from the form. "Condos under $500K" wrapped onto three lines
 * inside a 999px-radius pill sixty-nine pixels wide, which is a shape with no
 * name. Both are stated explicitly here now rather than inherited.
 *
 * Everything styles a form that already works without CSS or JavaScript: a
 * real input with a real name, real links, and a native <details>.
 * ------------------------------------------------------------------- */

.adx-search {
	position: relative;
	display: grid;
	gap: 0.85rem;
	margin-top: var(--wp--preset--spacing--40);
	/* Stated, not inherited. The form sat inside a section whose heading font
	 * is a display serif, and every chip and label picked it up. */
	font-family: var(--wp--preset--font-family--sans);
}

.adx-search__row {
	display: flex;
	gap: 0.6rem;
	align-items: stretch;
}

.adx-search__field {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 0.7rem;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: 999px;
	padding: 0 1.25rem;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.adx-search__field:focus-within {
	border-color: var(--wp--preset--color--brand);
	box-shadow: 0 0 0 4px var(--wp--preset--color--brand-soft);
}

.adx-search__field > svg { color: var(--wp--preset--color--muted); flex: 0 0 auto; }

.adx-search__input {
	flex: 1 1 auto;
	min-width: 0;
	font-family: inherit;
	/* 16px minimum: anything smaller makes iOS zoom the page on focus. */
	font-size: 1rem;
	line-height: 1.2;
	letter-spacing: -0.005em;
	border: 0;
	background: none;
	color: var(--wp--preset--color--ink);
	padding: 0.95rem 0;
}

.adx-search__input:focus { outline: none; }
.adx-search__input::-webkit-search-cancel-button { display: none; }

.adx-search__clear {
	flex: 0 0 auto;
	border: 0;
	background: none;
	color: var(--wp--preset--color--muted);
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	padding: 0.35rem 0.2rem;
	border-radius: 50%;
}

.adx-search__clear:hover { color: var(--wp--preset--color--ink); }

.adx-search__go {
	flex: 0 0 auto;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--brand);
	color: #fff;
	font-family: inherit;
	font-weight: 650;
	font-size: 0.92rem;
	letter-spacing: 0.02em;
	white-space: nowrap;
	/* 48px: a target you can hit with a thumb, not just a cursor. */
	min-height: 52px;
	padding: 0 1.75rem;
	cursor: pointer;
	transition: background 0.16s ease, transform 0.12s ease;
}

.adx-search__go:hover { background: var(--wp--preset--color--brand-strong); }
.adx-search__go:active { transform: scale(0.985); }

.adx-search__go:focus-visible {
	outline: 3px solid var(--wp--preset--color--brand);
	outline-offset: 3px;
}

.adx-search__hint {
	margin: 0;
	font-size: 0.78rem;
	letter-spacing: 0.01em;
	color: var(--wp--preset--color--muted);
}

.adx-search.is-compact .adx-search__hint { display: none; }

/* ---- Suggestions ---- */

.adx-search__suggest {
	position: absolute;
	/* Below the field row, not the whole form: the chips and the advanced
	 * panel sit underneath and must not push the list down. */
	top: calc(54px + 0.85rem);
	left: 0;
	right: 0;
	z-index: 40;
	margin: 0;
	padding: 0.4rem;
	list-style: none;
	max-height: min(26rem, 60vh);
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 18px;
	box-shadow: 0 24px 56px -12px rgba(0, 0, 0, 0.22);
}

.adx-search__suggest[hidden] { display: none; }

.adx-search__suggest-head {
	font-size: 0.64rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	padding: 0.8rem 0.8rem 0.35rem;
}

.adx-search__suggest-item {
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-areas: "name count" "meta count";
	align-items: center;
	gap: 0 0.75rem;
	padding: 0.6rem 0.8rem;
	border-radius: 12px;
	cursor: pointer;
}

.adx-search__suggest-item.is-active,
.adx-search__suggest-item:hover {
	background: var(--wp--preset--color--brand);
	color: #fff;
}

.adx-search__suggest-name { grid-area: name; font-weight: 600; font-size: 0.95rem; }

.adx-search__suggest-meta {
	grid-area: meta;
	font-size: 0.76rem;
	color: var(--wp--preset--color--muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.adx-search__suggest-item.is-active .adx-search__suggest-meta,
.adx-search__suggest-item:hover .adx-search__suggest-meta { color: rgba(255, 255, 255, 0.82); }

.adx-search__suggest-count {
	grid-area: count;
	font-size: 0.7rem;
	font-weight: 700;
	/* Tabular figures so a column of counts does not jitter as it filters. */
	font-variant-numeric: tabular-nums;
	color: var(--wp--preset--color--muted);
	background: var(--wp--preset--color--surface-alt);
	border-radius: 999px;
	padding: 0.18rem 0.55rem;
}

.adx-search__suggest-item.is-active .adx-search__suggest-count,
.adx-search__suggest-item:hover .adx-search__suggest-count {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

/* ---- Chips ----
 * One rule fixes the thing that made 2.5.0 look broken: a chip is a single
 * line. The row wraps when it runs out of width; a label never reflows into a
 * column of syllables, because the pill itself is nowrap.
 */

.adx-search__chips { display: grid; gap: 0.55rem; }

.adx-search__chips-label,
.adx-areas__region-label,
.adx-areas__filter-label {
	margin: 0;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.64rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.adx-areas__region-label { color: var(--wp--preset--color--brand); }

/*
 * The row wraps. It used to scroll sideways.
 *
 * A sideways-scrolling strip with a visible scrollbar and a fade at the right
 * edge is a pattern for a list that genuinely cannot fit -- a photo carousel,
 * a table of forty columns. There are ten filters here and they fit on two
 * lines, so the scrollbar was buying nothing and spending the one thing that
 * makes a filter row work: being able to see all of it at once. It also hid
 * the last two filters behind a gesture on exactly the device where a
 * horizontal swipe is most likely to be read as a page swipe.
 *
 * Wrapping on every width, phones included. Two or three short lines of pills
 * is not a problem to solve.
 */
.adx-search__chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.adx-search__chip-row > li { flex: 0 0 auto; }

.adx-areas__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.adx-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	/* The whole bug, in one declaration. */
	white-space: nowrap;
	min-height: 40px;
	padding: 0 0.95rem;
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: 999px;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--body);
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.84rem;
	font-weight: 550;
	letter-spacing: 0.005em;
	line-height: 1;
	text-decoration: none;
	transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.adx-pill:hover,
.adx-pill:focus-visible {
	background: var(--wp--preset--color--brand);
	border-color: var(--wp--preset--color--brand);
	color: #fff;
}

.adx-pill.is-pinned {
	background: var(--wp--preset--color--brand);
	border-color: var(--wp--preset--color--brand-strong);
	color: #fff;
}

/* Dashed means the filter can only read the listing's wording. The caveat is
 * written out in the panel too; this is the reminder at the point of use. */
.adx-pill.is-fuzzy { border-style: dashed; }

.adx-pill__n {
	font-size: 0.7rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	opacity: 0.65;
}

.adx-pill--area.is-extended { border-style: dashed; color: var(--wp--preset--color--muted); }

.adx-pill--area.is-extended:hover,
.adx-pill--area.is-extended:focus-visible,
.adx-pill--area.is-extended.is-pinned { color: #fff; }

/* ---- The advanced panel ---- */

.adx-search__advanced {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 16px;
	background: var(--wp--preset--color--surface);
}

.adx-search__advanced[open] { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); }

.adx-search__advanced-toggle {
	display: flex;
	align-items: baseline;
	gap: 0.65rem;
	flex-wrap: wrap;
	padding: 0.95rem 1.2rem;
	cursor: pointer;
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 650;
	font-size: 0.92rem;
	letter-spacing: 0.005em;
	color: var(--wp--preset--color--ink);
	list-style: none;
	border-radius: 16px;
}

.adx-search__advanced-toggle::-webkit-details-marker { display: none; }

.adx-search__advanced-toggle::before {
	content: "";
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--wp--preset--color--brand);
	border-bottom: 2px solid var(--wp--preset--color--brand);
	transform: rotate(45deg) translateY(-2px);
	transition: transform 0.18s ease;
}

.adx-search__advanced[open] .adx-search__advanced-toggle::before { transform: rotate(225deg) translateY(-2px); }

.adx-search__advanced-toggle:focus-visible { outline: 3px solid var(--wp--preset--color--brand); outline-offset: 2px; }

.adx-search__advanced-sub {
	font-weight: 400;
	font-size: 0.8rem;
	color: var(--wp--preset--color--muted);
}

.adx-search__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
	gap: 1rem 1.2rem;
	padding: 0.5rem 1.2rem 1.1rem;
}

.adx-search__cell { display: grid; gap: 0.35rem; margin: 0; align-content: start; }

.adx-search__cell label {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.adx-search__cell input,
.adx-search__cell select {
	font-family: inherit;
	font-size: 1rem;
	min-height: 48px;
	padding: 0.55rem 0.8rem;
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: 12px;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
	width: 100%;
	max-width: 100%;
}

.adx-search__cell input:focus-visible,
.adx-search__cell select:focus-visible {
	outline: none;
	border-color: var(--wp--preset--color--brand);
	box-shadow: 0 0 0 3px var(--wp--preset--color--brand-soft);
}

.adx-search__help { font-size: 0.74rem; line-height: 1.5; color: var(--wp--preset--color--muted); }

.adx-search__flags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.3rem;
	border: 0;
	border-top: 1px solid var(--wp--preset--color--line);
	margin: 0 1.2rem;
	padding: 0.9rem 0 0;
}

.adx-search__flags legend {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 0 0.5rem 0 0;
	color: var(--wp--preset--color--muted);
}

.adx-search__flag {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	min-height: 44px;
	font-size: 0.88rem;
	white-space: nowrap;
	cursor: pointer;
}

.adx-search__flag input { width: 20px; height: 20px; accent-color: var(--wp--preset--color--brand); }

.adx-search__caveat {
	margin: 0.9rem 1.2rem 0;
	padding-left: 0.85rem;
	border-left: 2px solid var(--wp--preset--color--line-strong);
	font-size: 0.76rem;
	line-height: 1.6;
	color: var(--wp--preset--color--muted);
}

.adx-search__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; padding: 1rem 1.2rem 1.2rem; }

.adx-search__reset {
	border: 1px solid var(--wp--preset--color--line-strong);
	background: none;
	border-radius: 999px;
	min-height: 48px;
	padding: 0 1.3rem;
	font-family: inherit;
	font-size: 0.9rem;
	color: var(--wp--preset--color--body);
	cursor: pointer;
}

.adx-search__reset:hover { border-color: var(--wp--preset--color--ink); color: var(--wp--preset--color--ink); }

/* ---- In the hero, where the type is light on dark ---- */

.adx-hero-search { margin-top: var(--wp--preset--spacing--40); max-width: 34rem; }
.adx-hero-search .adx-search { margin-top: 0; }
.adx-hero-search .adx-search__field { background: rgba(255, 255, 255, 0.97); border-color: transparent; }
.adx-hero-search .adx-search__input { color: var(--wp--preset--color--ink); }
.adx-hero-search__more { margin: 0.65rem 0 0; font-size: 0.82rem; }

.adx-hero-search__more a {
	color: var(--wp--preset--color--on-deep);
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-thickness: 1px;
}

.adx-search-page__bar { margin-top: var(--wp--preset--spacing--40); }

@media (max-width: 640px) {
	.adx-search__row { flex-wrap: wrap; }
	.adx-search__field,
	.adx-search__go { flex: 1 1 100%; }
	.adx-search__suggest { top: calc(54px + 52px + 1.45rem); }
	.adx-search__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	.adx-search__field,
	.adx-search__go,
	.adx-pill,
	.adx-search__advanced-toggle::before { transition: none; }
}

/* ---- Neighbourhood explorer (2.4.0, redrawn 2.5.1) ------------------
 * A coverage map and several hundred names, on a phone.
 *
 * The map is a dark card inside a light section. That is the one place this
 * page raises its voice, and it is the right place: it is the only thing on
 * screen that is a picture rather than a list, and a charcoal field is what
 * makes a hairline graticule and a brand-red block read as cartography
 * instead of as a chart.
 *
 * The list is still the primary control. Thirty labelled blocks are
 * unreadable at 360px and most of the people reading this are holding a
 * phone, so the municipality chips work at every width and the map appears
 * only where there is room for it to be legible.
 * ------------------------------------------------------------------- */

.adx-areas__search { margin-top: var(--wp--preset--spacing--40); }

.adx-areas__shell {
	display: grid;
	/* Asymmetric on purpose: the map is a reference, the list is the work. */
	grid-template-columns: minmax(0, 19rem) minmax(0, 1fr);
	gap: clamp(1.5rem, 3.5vw, 3.5rem);
	margin-top: var(--wp--preset--spacing--50);
	align-items: start;
}

@media (max-width: 900px) {
	.adx-areas__shell { grid-template-columns: minmax(0, 1fr); }
}

.adx-areas__aside { position: sticky; top: 1.5rem; display: grid; gap: 1.1rem; }

@media (max-width: 900px) {
	.adx-areas__aside { position: static; }
}

/* ---- The coverage map ---- */

/*
 * The map frame.
 *
 * Full section width on a pale card, not the charcoal field the old block
 * diagram sat on. A grey basemap on a dark panel is two greys fighting for the
 * same job, and here the map is the thing meant to be read, not the panel
 * holding it.
 *
 * No max-width of 1040px any more either. That number existed because the
 * diagram had a fixed viewBox and wanted to render near 1:1; a real map has no
 * natural size and simply takes the width it is given.
 */
.adx-areas__map-band {
	margin: var(--wp--preset--spacing--50) 0 0;
	display: grid;
	gap: 0.85rem;
}

.adx-areas__map-wrap {
	position: relative;
	width: 100%;
	border-radius: 20px;
	overflow: hidden;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	box-shadow: 0 24px 50px -34px rgba(16, 31, 62, 0.4);
}

.adx-map { position: relative; }

.adx-map__canvas {
	width: 100%;
	height: clamp(22rem, 52vw, 36rem);
	background: #eceef0;
}

/*
 * Grey tiles without a grey tile set.
 *
 * Every pale basemap worth having -- Positron, Toner Lite -- wants an API key,
 * and a theme that cannot draw a map until somebody has signed up for an
 * account does not work out of the box. So this takes OpenStreetMap's own
 * tiles, which need no key, and desaturates them in the compositor. The slight
 * lift in brightness is there because grey-scaling OSM's greens leaves parks
 * darker than the roads around them.
 */
.adx-map__canvas.is-grey .leaflet-tile-pane {
	filter: grayscale(1) contrast(0.88) brightness(1.08);
}

.adx-map__canvas .leaflet-container { background: #eceef0; }

/* Leaflet's own control chrome, brought in line with everything else. */
.adx-map__canvas .leaflet-bar {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 6px 18px -10px rgba(16, 31, 62, 0.5);
}

.adx-map__canvas .leaflet-bar a {
	width: 32px;
	height: 32px;
	line-height: 32px;
	color: var(--wp--preset--color--ink);
	border-bottom-color: var(--wp--preset--color--line);
	background: var(--wp--preset--color--surface);
}

.adx-map__canvas .leaflet-bar a:hover,
.adx-map__canvas .leaflet-bar a:focus-visible {
	background: var(--wp--preset--color--surface-alt);
	color: var(--wp--preset--color--brand);
}

.adx-map__canvas .leaflet-control-attribution {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.62rem;
	letter-spacing: 0.01em;
	background: rgba(255, 255, 255, 0.86);
	color: var(--wp--preset--color--muted);
	padding: 2px 6px;
	border-radius: 6px 0 0 0;
}

.adx-map__canvas .leaflet-control-attribution a { color: var(--wp--preset--color--muted); }

/* ---- Municipality labels ---- */

/*
 * DOM labels rather than painted text, so they stay upright through every
 * zoom, stay legible over whatever tile lands under them, and can be hidden by
 * CSS at the zooms where thirty of them would collide.
 */
.adx-map__label { pointer-events: none; }

.adx-map__label-in {
	position: absolute;
	left: 0;
	top: 0;
	transform: translate(-50%, -50%);
	display: grid;
	justify-items: center;
	gap: 0.05rem;
	white-space: nowrap;
	font-family: var(--wp--preset--font-family--sans);
	text-align: center;
}

/*
 * THE MAP DOES NOT HAVE A DARK MODE, SO ITS LABELS MUST NOT EITHER
 *
 * These names sit on OpenStreetMap's greyscale tiles, which are light
 * whatever the site's theme is. The colours below were theme tokens --
 * `ink` for the name, `muted` for the secondary line -- and in dark
 * mode `ink` resolves to near-white. White text, white halo, light
 * tiles: every city name on the coverage map disappeared.
 *
 * So they are literals, deliberately. A token here would mean the label
 * follows the page while its background follows the tile server, which
 * is the one thing it must not do -- the count included, since the dark
 * palette lifts the brand red to a light pink that has no contrast on a
 * white tile either.
 */
.adx-map__label-name {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	color: #16181a;
	/* A halo rather than a plate: the road network stays readable under the
	 * name instead of being covered by a box. */
	text-shadow:
		0 0 3px #fff, 0 0 3px #fff, 0 0 6px #fff,
		0 1px 0 #fff, 0 -1px 0 #fff, 1px 0 0 #fff, -1px 0 0 #fff;
}

.adx-map__label-n {
	font-size: 0.6rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: #9e0c24;
	text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 5px #fff;
}

.adx-map__label.is-extended .adx-map__label-name {
	font-weight: 600;
	color: #5a6168;
	letter-spacing: 0.02em;
}

.adx-map__label.is-extended .adx-map__label-n { color: #5a6168; }

/*
 * Zoomed out, only the municipalities worked daily are named.
 *
 * Thirty names across the whole GTA at the opening zoom is a thicket, and the
 * nine that matter most are the ones that get buried in it. The rest are
 * labelled as soon as there is room, and all thirty are listed in full below
 * the map either way.
 */
.adx-map__canvas.is-wide .adx-map__label.is-extended { opacity: 0; }

.adx-map__label.is-extended { transition: opacity 0.2s ease; }

@media (prefers-reduced-motion: reduce) {
	.adx-map__label.is-extended { transition: none; }
}

/* ---- Hover card and popup ---- */

.adx-map__canvas .leaflet-tooltip.adx-map__tip {
	display: grid;
	gap: 0.1rem;
	padding: 0.45rem 0.6rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 10px;
	background: var(--wp--preset--color--surface);
	box-shadow: 0 12px 28px -16px rgba(16, 31, 62, 0.55);
	font-family: var(--wp--preset--font-family--sans);
	color: var(--wp--preset--color--ink);
}

.adx-map__canvas .leaflet-tooltip.adx-map__tip::before { display: none; }

.adx-map__tip strong { font-size: 0.82rem; font-weight: 700; }

.adx-map__tip span {
	font-size: 0.68rem;
	color: var(--wp--preset--color--muted);
	letter-spacing: 0.02em;
}

.adx-map__canvas .leaflet-popup.adx-map__pop .leaflet-popup-content-wrapper {
	border-radius: 14px;
	border: 1px solid var(--wp--preset--color--line);
	box-shadow: 0 20px 44px -22px rgba(16, 31, 62, 0.5);
	background: var(--wp--preset--color--surface);
}

.adx-map__canvas .leaflet-popup.adx-map__pop .leaflet-popup-content {
	margin: 0.8rem 0.95rem;
	display: grid;
	gap: 0.3rem;
	font-family: var(--wp--preset--font-family--sans);
}

.adx-map__pop-eyebrow {
	font-size: 0.6rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--wp--preset--color--brand);
}

.adx-map__canvas .adx-map__pop strong {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.1rem;
	line-height: 1.15;
	color: var(--wp--preset--color--ink);
}

.adx-map__pop-n {
	font-size: 0.74rem;
	font-variant-numeric: tabular-nums;
	color: var(--wp--preset--color--muted);
}

.adx-map__pop-link {
	justify-self: start;
	margin-top: 0.3rem;
	padding: 0.4rem 0.9rem;
	border-radius: 999px;
	background: var(--wp--preset--color--brand);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-decoration: none;
}

.adx-map__pop-link:hover,
.adx-map__pop-link:focus-visible { background: var(--wp--preset--color--brand-strong); color: #fff; }

/* ---- "Click to zoom with the wheel" ---- */

/*
 * A map in the middle of a long page that eats the scroll gesture is the most
 * complained-about pattern on the mobile web. The wheel does not zoom until
 * the map has been clicked and, on touch, the map does not pan until it has
 * been tapped -- so this pill says so, rather than leaving a visitor to decide
 * the map is broken.
 *
 * It is a small pill and not a full-bleed shield on purpose: clicking a
 * municipality has to work on the first click, not the second.
 */
.adx-map__wake {
	position: absolute;
	left: 0.7rem;
	bottom: 0.7rem;
	z-index: 650;
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.75rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.64rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.adx-map__wake:hover,
.adx-map__wake:focus-visible { color: var(--wp--preset--color--brand); }

.adx-map__canvas.is-awake .adx-map__wake { opacity: 0; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
	.adx-map__wake { transition: none; }
}

/* ---- Legend bar over the map ---- */

.adx-areas__map-bar {
	position: absolute;
	top: 0.7rem;
	left: 0.7rem;
	z-index: 650;
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 0.42rem 0.8rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(6px);
	box-shadow: 0 10px 24px -16px rgba(16, 31, 62, 0.45);
}

.adx-areas__map-reset {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0;
	border: 0;
	background: none;
	color: var(--wp--preset--color--brand);
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.66rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	cursor: pointer;
}

.adx-areas__map-reset:hover,
.adx-areas__map-reset:focus-visible { color: var(--wp--preset--color--brand-strong); }

.adx-areas__legend {
	max-width: 62ch;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.72rem;
	line-height: 1.5;
	color: var(--wp--preset--color--muted);
}

.adx-areas__key {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.64rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	color: var(--wp--preset--color--muted);
}

.adx-areas__key::before {
	content: "";
	width: 14px;
	height: 10px;
	border-radius: 3px;
	border: 1px solid var(--wp--preset--color--brand);
	background: color-mix(in srgb, var(--wp--preset--color--brand) 18%, transparent);
}

.adx-areas__key--ext::before {
	border-color: var(--wp--preset--color--muted);
	border-style: dashed;
	background: transparent;
}

/*
 * At phone width the legend bar and the pill would cover a third of the map,
 * and the map is already short there. The legend moves under it; the key
 * colours are still the same two the shapes use.
 */
@media (max-width: 600px) {
	.adx-map__canvas { height: min(62vh, 24rem); }

	.adx-areas__map-bar {
		position: static;
		border-radius: 0;
		border-width: 1px 0 0;
		box-shadow: none;
		background: var(--wp--preset--color--surface);
		justify-content: space-between;
		gap: 0.5rem;
		padding: 0.55rem 0.8rem;
	}

	.adx-areas__map-wrap { border-radius: 16px; }
}

/* ---- The no-script fallback ---- */

/*
 * With scripts off there is no map, so the old block diagram stands in: a
 * labelled picture of the same municipalities, which beats an empty box. It is
 * inside <noscript>, so nobody who can see the real map ever sees it, and
 * every name in it is a real link in the list below regardless.
 */
.adx-map__fallback { padding: clamp(0.8rem, 2vw, 1.4rem); background: var(--wp--preset--color--surface-deep); }

.adx-map__fallback .adx-areas__map {
	width: 100%;
	height: auto;
	display: block;
	color: var(--wp--preset--color--on-deep);
}

.adx-map__fallback .adx-areas__grid,
.adx-map__fallback .adx-areas__focus { pointer-events: none; }

.adx-map__fallback .adx-areas__water { color: var(--wp--preset--color--on-deep); opacity: 0.5; }

.adx-map__fallback .adx-areas__block {
	fill: var(--wp--preset--color--brand);
	stroke: rgba(255, 255, 255, 0.28);
	stroke-width: 1;
}

.adx-map__fallback .adx-areas__region.is-extended .adx-areas__block {
	fill: rgba(255, 255, 255, 0.05);
	stroke: rgba(255, 255, 255, 0.34);
	stroke-dasharray: 4 3;
}

.adx-map__fallback .adx-areas__region.is-extended .adx-areas__region-name { fill: rgba(255, 255, 255, 0.72); }
.adx-map__fallback .adx-areas__region.is-extended .adx-areas__region-n { fill: rgba(255, 255, 255, 0.45); }

.adx-map__fallback .adx-areas__region-name {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	fill: #fff;
}

.adx-map__fallback .adx-areas__region-n {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 11px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	fill: rgba(255, 255, 255, 0.72);
}

.adx-map__fallback .adx-areas__lake {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.3em;
	fill: rgba(255, 255, 255, 0.5);
}

/* ---- Municipality chips ---- */

.adx-areas__regions { display: grid; gap: 1rem; }

.adx-areas__region-set {
	display: grid;
	gap: 0.45rem;
	padding-left: 0.7rem;
	border-left: 2px solid var(--wp--preset--color--line);
}

.adx-areas__count {
	margin: 0;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.72rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--wp--preset--color--ink);
}

.adx-areas__note {
	margin: 0;
	padding-top: 0.9rem;
	border-top: 1px solid var(--wp--preset--color--line);
	font-size: 0.74rem;
	line-height: 1.6;
	color: var(--wp--preset--color--muted);
}

/* ---- Filtering the list ---- */

.adx-areas__col { display: grid; gap: 0.9rem; min-width: 0; }
.adx-areas__filter { display: grid; gap: 0.35rem; }

.adx-areas__filter-field {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: 999px;
	padding: 0 1rem;
}

.adx-areas__filter-field:focus-within {
	border-color: var(--wp--preset--color--brand);
	box-shadow: 0 0 0 3px var(--wp--preset--color--brand-soft);
}

.adx-areas__filter-field svg { color: var(--wp--preset--color--muted); flex: 0 0 auto; }

.adx-areas__filter-field input {
	flex: 1 1 auto;
	min-width: 0;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1rem;
	border: 0;
	background: none;
	color: var(--wp--preset--color--ink);
	padding: 0.72rem 0;
}

.adx-areas__filter-field input:focus { outline: none; }

/* ---- The list ---- */

.adx-areas__main {
	max-height: min(38rem, 72vh);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding-right: 0.7rem;
	scrollbar-width: thin;
	scrollbar-color: var(--wp--preset--color--line-strong) transparent;
}

.adx-areas__main:focus-visible { outline: 2px solid var(--wp--preset--color--brand); outline-offset: 4px; border-radius: 12px; }
.adx-areas__main::-webkit-scrollbar { width: 8px; }
.adx-areas__main::-webkit-scrollbar-track { background: transparent; }
.adx-areas__main::-webkit-scrollbar-thumb { background: var(--wp--preset--color--line-strong); border-radius: 999px; }
.adx-areas__main::-webkit-scrollbar-thumb:hover { background: var(--wp--preset--color--muted); }

@media (max-width: 900px) {
	.adx-areas__main { max-height: 30rem; }
}

.adx-areas__city + .adx-areas__city { margin-top: var(--wp--preset--spacing--50); }
.adx-areas__city[hidden] { display: none; }

/*
 * The sticky municipality heading.
 *
 * In 2.5.0 it had a background and nothing else, so the first row of names
 * slid under it and showed through the gap between the background and the
 * border. It now carries its own padding and sits on an opaque band that
 * covers the full width of the scroller.
 */
.adx-areas__city-name {
	position: sticky;
	top: 0;
	z-index: 2;
	display: flex;
	align-items: baseline;
	gap: 0.7rem;
	flex-wrap: wrap;
	margin: 0 0 0.85rem;
	padding: 0.35rem 0 0.55rem;
	background: var(--wp--preset--color--surface-alt);
	box-shadow: 0 0 0 0.7rem var(--wp--preset--color--surface-alt);
	border-bottom: 2px solid var(--wp--preset--color--brand);
	font-size: clamp(1.15rem, 0.95rem + 0.7vw, 1.45rem);
	letter-spacing: -0.015em;
}

.adx-areas__city-name a { color: inherit; text-decoration: none; }
.adx-areas__city-name a:hover { color: var(--wp--preset--color--brand); }
.adx-areas__city.is-extended .adx-areas__city-name { border-bottom-style: dashed; }

.adx-areas__city-name span {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.adx-areas__city-n { font-variant-numeric: tabular-nums; margin-left: auto; }

.adx-areas__city-empty { margin: 0; font-size: 0.84rem; line-height: 1.6; color: var(--wp--preset--color--muted); }

.adx-areas__group {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--brand);
	margin: 1.3rem 0 0.5rem;
}

.adx-areas__group[hidden] { display: none; }

/*
 * The names.
 *
 * Hairline-separated columns rather than a boxed table: a grid of cells reads
 * as data to be scanned once, and these are links somebody comes back to.
 */
.adx-areas__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
	gap: 0 1.25rem;
	border-top: 1px solid var(--wp--preset--color--line);
}

.adx-areas__list li { margin: 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.adx-areas__list li[hidden] { display: none; }

.adx-areas__list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem;
	/* 44px tall: these are the most-tapped things on the page. */
	min-height: 46px;
	padding: 0.55rem 0.5rem 0.55rem 0.1rem;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.9rem;
	color: var(--wp--preset--color--body);
	text-decoration: none;
	transition: color 0.14s ease, padding-left 0.14s ease;
}

.adx-areas__list a em {
	font-style: normal;
	font-size: 0.7rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--wp--preset--color--muted);
}

.adx-areas__list a:hover,
.adx-areas__list a:focus-visible {
	color: var(--wp--preset--color--brand);
	padding-left: 0.5rem;
}

.adx-areas__list a:hover em,
.adx-areas__list a:focus-visible em { color: var(--wp--preset--color--brand); }

/* A neighbourhood with nothing for sale this week is still a real place and
 * still a page worth linking. It is dimmed, not hidden. */
.adx-areas__list li[data-empty] a { color: var(--wp--preset--color--muted); }

.adx-areas__empty {
	margin: var(--wp--preset--spacing--40) 0 0;
	padding: 1rem 1.15rem;
	border: 1px dashed var(--wp--preset--color--line-strong);
	border-radius: 12px;
	color: var(--wp--preset--color--muted);
	font-size: 0.88rem;
}

.adx-areas__empty[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
	.adx-areas__filter-field,
	.adx-areas__block,
	.adx-areas__list a { transition: none; }
}

/* ---- Logo and brokerage lockup (2.5.2) ------------------------------
 * The site logo in the header, the same logo knocked to white in the dark
 * footer, and the brokerage mark beside it.
 * ------------------------------------------------------------------- */

.adx-brand .wp-block-site-logo img { max-height: 52px; width: auto; }

/*
 * One name, once.
 *
 * With a logo set, the site title beside it repeats the business name in a
 * different typeface two centimetres away. It stays in the markup for a
 * screen reader and for the moment somebody removes the logo; it just stops
 * being drawn twice.
 */
.adx-brand:has(.wp-block-site-logo img) .wp-block-site-title {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/*
 * The footer logo, knocked to white.
 *
 * A single-colour mark on a charcoal field needs a second file in every other
 * theme. `brightness(0)` flattens whatever colour it is to black and
 * `invert(1)` lifts that to white, so one upload serves both backgrounds and
 * there is no second asset to keep in step when the logo changes.
 */
.adx-footer-logo img {
	max-height: 56px;
	width: auto;
	filter: brightness(0) invert(1);
}

.adx-brokerage {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	flex-wrap: wrap;
}

.adx-brokerage__logo {
	height: 38px;
	width: auto;
	max-width: 160px;
	/* Franchise marks come with rules about recolouring and distortion.
	 * Contain, never stretch, and never filter. */
	object-fit: contain;
}

.adx-brokerage__name {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.74rem;
	font-weight: 650;
	letter-spacing: 0.04em;
	line-height: 1.35;
	color: var(--wp--preset--color--muted);
}

.adx-on-dark .adx-brokerage__name { color: var(--wp--preset--color--on-deep-muted); }

/* Over the portrait, as a card rather than a caption. */
.adx-brokerage--badge {
	position: absolute;
	left: 50%;
	bottom: -1.1rem;
	transform: translateX(-50%);
	z-index: 2;
	gap: 0.6rem;
	padding: 0.6rem 0.9rem;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 12px;
	box-shadow: 0 10px 28px -14px rgba(0, 0, 0, 0.35);
	white-space: nowrap;
}

.adx-brokerage--badge .adx-brokerage__logo { height: 30px; max-width: 120px; }
.adx-brokerage--badge .adx-brokerage__name { color: var(--wp--preset--color--ink); max-width: 11rem; white-space: normal; }

@media (max-width: 600px) {
	.adx-brokerage--badge { position: static; transform: none; margin-top: 1.2rem; justify-content: center; }
}

/* ---- Fully rounded calls to action (2.6.0) --------------------------
 *
 * The gold-leaf button is drawn with a 10px radius everywhere else, which is
 * right on a dense page of cards: a pill among rectangles looks pasted on.
 *
 * In the hero there are no rectangles to agree with. The buttons sit on a
 * photograph with nothing but air around them, and at that size a 10px radius
 * reads as a corner that someone forgot to finish. So in the hero, and in the
 * closing band, they are pills.
 */
.adx-hero .wp-block-button > .wp-block-button__link,
.adx-hero .adx-btn-leaf,
.adx-btn--round > .wp-block-button__link {
	border-radius: var(--wp--custom--radius--pill);
}

/* ---- The closing band (2.6.0, recoloured 2.6.2) ---------------------
 *
 * One band, replacing the call-to-action band stacked on the contact band.
 * Both were dark rectangles opening with a heading and a sentence, and both
 * sentences promised an answer the same working day, because they were written
 * for different pages and nobody meant them to be read back to back.
 *
 * THE COLOUR, SECOND TIME
 *
 * 2.6.0 put a light card on the dark band, on the theory that an address set
 * small in white on charcoal passes a contrast checker and still gets squinted
 * at. Two things went wrong. The light background never applied -- a more
 * specific rule three hundred lines earlier
 * (`.adx-section.adx-on-dark .adx-card:not(...)`) sets the translucent panel,
 * and it wins -- so the card stayed dark while its text stayed dark too, which
 * is the one combination that is unreadable rather than merely imperfect. And
 * the fix was wrong anyway: a white block on the right half of a dark closing
 * band splits the band into two competing objects.
 *
 * So the card stays the translucent panel the rest of the theme uses on dark,
 * and the text is set the way the footer sets exactly this content on exactly
 * this background -- which was already right, and already in the stylesheet,
 * forty lines from where this was written.
 */
.adx-close {
	position: relative;
	/*
	 * The band's own wash, instead of the `deep-wash` preset.
	 *
	 * That gradient runs charcoal to brand-ink to mid-grey with the brand-ink
	 * stop at 52%, which lays a dark maroon stripe straight across the middle
	 * of the band -- through the heading on the left and the contact card on
	 * the right -- and reads as muddy rather than as depth.
	 *
	 * Two soft radials instead, both placed where there is nothing to read:
	 * brand low on the right, under the card rather than behind it, and a
	 * cool lift in the top left corner. Everywhere the eye actually lands is
	 * flat charcoal. Checked at every strength up to 40% brand: the card's
	 * white text holds above 9:1 and its labels above 5.4:1.
	 */
	background-image:
		radial-gradient(
			46% 58% at 84% 86%,
			color-mix(in srgb, var(--wp--preset--color--brand) 38%, transparent) 0%,
			transparent 74%
		),
		radial-gradient(
			55% 65% at 4% 4%,
			color-mix(in srgb, var(--wp--preset--color--surface-mid) 42%, transparent) 0%,
			transparent 70%
		);
}

/*
 * The contact card.
 *
 * Not a white block -- the translucent panel the theme already uses on dark
 * bands, with its contents coloured the way .adx-footer-main colours the same
 * business-info block on the same kind of background.
 */
.adx-close .adx-close__card { backdrop-filter: blur(2px); }

.adx-close .adx-close__card :where(h2, h3, h4) {
	/* A label, not a second heading. "Start with a conversation" is the
	 * heading here; setting this in the display serif at reading size gives
	 * the band two things competing to be read first. */
	margin-top: 0;
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--on-deep-muted);
}

.adx-close .adx-close__card .adx-info-row dt { color: var(--wp--preset--color--on-deep-muted); }
.adx-close .adx-close__card .adx-info-row dd,
.adx-close .adx-close__card address { color: var(--wp--preset--color--on-deep); }

/*
 * Brand red on a charcoal band is a link nobody can read -- about 2.4:1. The
 * links here are the phone number and the email address, which are the two
 * things in the card somebody is actually trying to read, so they are set in
 * the same white as the rest and marked as links by a hairline underneath, in
 * whatever accent-bright is in the active style variation.
 */
.adx-close .adx-close__card a {
	color: var(--wp--preset--color--on-deep);
	text-decoration: none;
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--accent-bright) 55%, transparent);
	transition: color var(--wp--custom--transition--fast), border-color var(--wp--custom--transition--fast);
}

.adx-close .adx-close__card a:hover,
.adx-close .adx-close__card a:focus-visible {
	color: var(--wp--preset--color--accent-bright);
	border-bottom-color: var(--wp--preset--color--accent-bright);
}

.adx-close .adx-close__card .adx-info-row dd { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
	.adx-close .adx-close__card a { transition: none; }
}

/* The phone number next to the primary action is the fastest route to a human
 * on a phone, which is most of this traffic. It is a button, not a footnote in
 * grey under one. */
.adx-close .wp-block-button.is-style-outline > .wp-block-button__link {
	border: 2px solid color-mix(in srgb, var(--wp--preset--color--on-deep) 55%, transparent);
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
}

.adx-close .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--on-deep);
	background: color-mix(in srgb, var(--wp--preset--color--on-deep) 12%, transparent);
}

/* ---- "Advanced search" in the hero ----------------------------------
 *
 * The arrow is the whole promise: this goes down the page, it does not leave
 * it. It only points down when the script has found a panel to open — with no
 * panel the link is an ordinary link to the search page and should not claim
 * otherwise.
 */
.adx-hero-search__more a {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.adx-hero-search__more svg {
	opacity: 0;
	transform: translateY(-2px);
	transition: opacity var(--wp--custom--transition--fast), transform var(--wp--custom--transition--fast);
}

.adx-search__advanced ~ * .adx-hero-search__more svg,
body:has(.adx-search__advanced) .adx-hero-search__more svg {
	opacity: 0.7;
	transform: none;
}

.adx-hero-search__more a:hover svg { opacity: 1; transform: translateY(2px); }

@media (prefers-reduced-motion: reduce) {
	.adx-hero-search__more svg { transition: none; }
}

/* ---- One contact ask at the bottom of a page, not three (2.6.0) -----
 *
 * The home page used to end with the call-to-action band, then the accent
 * footer strip with the phone number and a "Get in touch" button, then the
 * footer's own "Get in touch" column with the phone number again. Three asks
 * inside one screen's scroll, and the phone number set three times in three
 * different ways.
 *
 * Where a page already closes with the closing band -- which carries the
 * invitation, the action, the phone number as a button and the full contact
 * card -- the strip is the one that goes. The footer's contact column stays,
 * because that is where somebody who has scrolled past everything goes looking
 * for an address.
 *
 * On a page with no closing band the strip is still there and still earning
 * its place. :has() is doing real work here: this is a rule about what came
 * before the footer, which nothing else can express, and a browser without it
 * simply shows what it shows today.
 */
main:has(.adx-close) ~ .adx-site-footer .adx-footer-strip,
body:has(main .adx-close) .adx-site-footer .adx-footer-strip {
	display: none;
}

/* ---- The dark-mode header logo (2.7.2) ------------------------------
 *
 * A logo in the header vanished in dark mode, and it does so for two
 * opposite reasons depending on the file somebody uploaded:
 *
 *   a transparent PNG drawn in a dark brand colour  -> dark ink on a dark
 *       bar, which is the reported bug: the mark is still there and nobody
 *       can see it;
 *   a JPEG, which cannot be transparent             -> a raw white rectangle
 *       sitting in the header like a missing image.
 *
 * The footer's trick does not rescue either. `brightness(0) invert(1)`
 * flattens a mark to white, which works on a single-colour logo and turns
 * a white-backed JPEG into a solid white block.
 *
 * So dark mode gives the logo its own light plate instead: the mark keeps
 * its real colours, a white-backed file blends into the plate seamlessly,
 * and a transparent one gets the light ground it was drawn for. It reads as
 * a deliberate badge rather than an accident, and -- the part that matters
 * for a REALTOR® mark -- nothing is recoloured, inverted or filtered.
 * ------------------------------------------------------------------- */

/* With a light logo supplied, swap the file. Nothing is recoloured and
 * nothing gets a plate -- this is the version the designer drew for a dark
 * ground, which is always better than anything CSS can do to the other one. */
.adx-brand [data-adx-logo="dark"] { display: none; }

:root[data-adx-theme="dark"] .adx-brand [data-adx-logo="light"] { display: none; }
:root[data-adx-theme="dark"] .adx-brand [data-adx-logo="dark"] { display: block; }

@media (prefers-color-scheme: dark) {
	.adx-follows-device:not([data-adx-theme="light"]) .adx-brand [data-adx-logo="light"] { display: none; }
	.adx-follows-device:not([data-adx-theme="light"]) .adx-brand [data-adx-logo="dark"] { display: block; }
}

/* No light logo supplied: the original gets a plate instead. Scoped with
 * :not() so it never fights the swap above -- the two rules are mutually
 * exclusive by construction rather than by specificity. */
:root[data-adx-theme="dark"] .adx-brand .wp-block-site-logo:not(:has([data-adx-logo="dark"])) img,
.adx-follows-device:not([data-adx-theme="light"]) .adx-brand .wp-block-site-logo:not(:has([data-adx-logo="dark"])) img {
	background: #ffffff;
	padding: 0.4rem 0.6rem;
	border-radius: 10px;
}

@media (prefers-color-scheme: dark) {
	.adx-follows-device:not([data-adx-theme="light"]) .adx-brand .wp-block-site-logo:not(:has([data-adx-logo="dark"])) img {
		background: #ffffff;
		padding: 0.4rem 0.6rem;
		border-radius: 10px;
	}
}

/* ---- Find homes by area (2.7.2) -------------------------------------
 * Photo cards beside the drawn coverage map, with the search panel under
 * it. The cards column scrolls past a map that stays put, because the map
 * is the thing somebody keeps referring back to while reading the cards.
 * ------------------------------------------------------------------- */

/*
 * Stacked, not side by side.
 *
 * The two-column version put six cards in a narrow left rail against a tall
 * map, which left a column of dead space under the cards and squeezed the
 * photographs to the point where the place in them stopped being legible --
 * and a photograph of a neighbourhood that does not read as that
 * neighbourhood is doing no work at all. Each part now gets the full
 * measure in turn: the areas, then the map, then the search.
 */
.adx-findareas__split {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 3.5rem);
}

.adx-findareas__cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(0.9rem, 1.8vw, 1.5rem);
}

.adx-findareas__aside {
	display: grid;
	gap: clamp(1.25rem, 3vw, 2rem);
	justify-items: center;
}

/* The map is a schematic, not a photograph: past about 820px it stops
 * gaining information and starts looking like a diagram nobody finished. */
.adx-findareas__mapwrap {
	inline-size: min(100%, 820px);
}

.adx-findareas__aside > .adx-rps,
.adx-findareas__aside > .adx-rps-search,
.adx-findareas__fallback {
	inline-size: min(100%, 820px);
}

/* A taller card than the default 3:2 — these carry a city skyline or a
 * streetscape, and a wide letterbox crops the sky off both. */
.adx-findareas .adx-area-card { aspect-ratio: 4 / 3; }

.adx-findareas__mapwrap {
	padding: clamp(0.75rem, 2vw, 1.25rem);
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 16px;
}

.adx-findareas__mapwrap .adx-areas__map {
	display: block;
	width: 100%;
	height: auto;
}

/* A link in SVG gets no pointer and no focus ring for free. */
.adx-findareas .adx-areas__link { cursor: pointer; }

.adx-findareas .adx-areas__link:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-bright, #9ad86e);
	outline-offset: 2px;
}

.adx-findareas .adx-areas__link:hover .adx-areas__block,
.adx-findareas .adx-areas__link:focus-visible .adx-areas__block {
	opacity: 0.92;
}

.adx-findareas__mapnote {
	margin: 0.6rem 0 0;
	font-size: 0.78rem;
	line-height: 1.4;
	color: var(--wp--preset--color--on-deep-muted, rgba(255, 255, 255, 0.66));
}

.adx-findareas__fallback {
	padding: clamp(0.9rem, 2vw, 1.25rem);
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 16px;
}

.adx-findareas__fallback p { margin: 0 0 0.75rem; }
.adx-findareas__fallback p:last-child { margin-bottom: 0; }

/* The eyebrow over an area card's name — "York Region" over "Aurora". */
.adx-area-card__eyebrow {
	display: block;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.64rem;
	font-weight: 650;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.78);
	margin-bottom: 0.15rem;
}

@media (max-width: 1099px) {
	.adx-findareas__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 599px) {
	.adx-findareas__cards { grid-template-columns: minmax(0, 1fr); }
}

/* ---- One area's page (2.7.2) ---------------------------------------- */

.adx-areapage { margin: clamp(1.5rem, 4vw, 3rem) 0; }

.adx-areapage__h { margin: 0 0 0.4rem; }

.adx-areapage__lede {
	margin: 0 0 1.25rem;
	color: var(--wp--preset--color--muted);
}

.adx-areapage__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 0.6rem;
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
}

.adx-areapage__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem;
	/* 44px, the touch floor — these sit in a dense grid on a phone, which is
	 * exactly where a short target gets mis-tapped. */
	min-height: 2.75rem;
	padding: 0.6rem 0.85rem;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 10px;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	transition: border-color 180ms ease, transform 180ms ease;
}

.adx-areapage__item:hover {
	border-color: var(--wp--preset--color--brand);
	transform: translateY(-1px);
}

.adx-areapage__item:focus-visible {
	outline: 2px solid var(--wp--preset--color--brand);
	outline-offset: 2px;
}

.adx-areapage__n {
	flex: 0 0 auto;
	font-size: 0.8rem;
	font-variant-numeric: tabular-nums;
	color: var(--wp--preset--color--muted);
}

.adx-areapage__source {
	margin: 0.75rem 0 0;
	font-size: 0.8rem;
	color: var(--wp--preset--color--muted);
}

/* Each part of the area section announces itself, so three stacked blocks
 * read as three steps rather than one long scroll. */
.adx-findareas__kicker {
	margin: 0 0 1rem;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.7rem;
	font-weight: 650;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--on-deep-muted, rgba(255, 255, 255, 0.66));
}

.adx-findareas__aside .adx-findareas__kicker { text-align: center; }

.adx-findareas__part { inline-size: 100%; }

/* ---- The map inside the area section --------------------------------
 *
 * map_svg() paints nothing itself: it emits classes and lets whichever
 * context it sits in decide. The explorer styles it under
 * .adx-map__fallback, and this section is a different wrapper -- so until
 * these rules existed the blocks fell back to SVG's defaults, which is
 * black fill and black text, and the map rendered as six unlabelled black
 * rectangles on a near-black ground. Nothing was broken; nothing was
 * styled.
 * ------------------------------------------------------------------- */

.adx-findareas .adx-areas__map {
	color: var(--wp--preset--color--on-deep, #fff);
}

.adx-findareas .adx-areas__grid,
.adx-findareas .adx-areas__focus { pointer-events: none; }

.adx-findareas .adx-areas__water {
	color: var(--wp--preset--color--on-deep, #fff);
	opacity: 0.45;
}

.adx-findareas .adx-areas__block {
	fill: var(--wp--preset--color--brand);
	stroke: rgba(255, 255, 255, 0.28);
	stroke-width: 1;
	transition: fill 180ms ease, stroke 180ms ease;
}

.adx-findareas .adx-areas__region.is-extended .adx-areas__block {
	fill: rgba(255, 255, 255, 0.06);
	stroke: rgba(255, 255, 255, 0.34);
	stroke-dasharray: 4 3;
}

.adx-findareas .adx-areas__region-name {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	fill: #fff;
}

.adx-findareas .adx-areas__region.is-extended .adx-areas__region-name { fill: rgba(255, 255, 255, 0.78); }

.adx-findareas .adx-areas__region-n {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 11px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	fill: rgba(255, 255, 255, 0.72);
}

/* The water label, which is drawn as plain text in the schematic. */
.adx-findareas .adx-areas__lake {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 11px;
	letter-spacing: 0.22em;
	fill: rgba(255, 255, 255, 0.4);
}

/* A hovered or focused city lifts towards the brand's brighter tone, so it
 * is obvious the block is a link before anybody clicks it. */
.adx-findareas .adx-areas__link:hover .adx-areas__block,
.adx-findareas .adx-areas__link:focus-visible .adx-areas__block {
	fill: var(--wp--preset--color--brand-strong, var(--wp--preset--color--brand));
	stroke: rgba(255, 255, 255, 0.6);
	opacity: 1;
}

/* ====================================================================
 * 2.7.7 — black, white and red, and nothing in between
 * ==================================================================== */

/*
 * The light theme's own values for the two band variables that dark mode
 * pins. Declared here so the CTA rules below read the same in both themes
 * and neither has to know which one is active.
 */
:root {
	--adx-band-brand_solid: var(--wp--preset--color--brand);
	--adx-band-brand_solid_deep: var(--wp--preset--color--brand-strong);
}

/* ---- The closing call to action is RED -----------------------------
 *
 * It used to be `deep-wash`: surface-deep → brand-ink → surface-mid, which
 * on a red brand is three shades of maroon. A dark red band under a dark
 * page is not a call to action, it is a slightly different dark, and the
 * one element on the page that should raise its voice was whispering.
 *
 * Red, white text, full bleed. One primary action per screen, and this is
 * where it lives. The gradient stays within the red so the band has depth
 * without becoming two colours.
 * ------------------------------------------------------------------- */

.adx-section.has-deep-wash-gradient-background,
.adx-section.has-deep-wash-gradient-background.has-background {
	/* Flat. The gradient's dark ends were the "dark red" showing up at the
	 * top and bottom of every closing band. */
	background: var(--adx-band-brand_solid);
}

/* White throughout, including the headings and the small print — the band
 * is a single colour field and everything on it reads against that one
 * colour, so nothing here inherits a muted grey meant for a dark surface. */
.adx-section.has-deep-wash-gradient-background,
.adx-section.has-deep-wash-gradient-background :where(h1, h2, h3, h4, p, li, span, a, strong) {
	color: #fff;
}

.adx-section.has-deep-wash-gradient-background .adx-eyebrow,
.adx-section.has-deep-wash-gradient-background .adx-section__lede {
	color: rgba(255, 255, 255, 0.86);
}

/* A white button on red, and a white outline beside it. Anything tinted
 * would be a third colour on a two-colour band. */
.adx-section.has-deep-wash-gradient-background .wp-element-button,
.adx-section.has-deep-wash-gradient-background .wp-block-button__link {
	background-color: #fff;
	color: var(--adx-band-brand_solid);
	border-color: #fff;
}

.adx-section.has-deep-wash-gradient-background .is-style-outline .wp-block-button__link {
	background-color: transparent;
	color: #fff;
	border: 1.5px solid rgba(255, 255, 255, 0.72);
}

.adx-section.has-deep-wash-gradient-background .wp-element-button:hover,
.adx-section.has-deep-wash-gradient-background .wp-block-button__link:hover {
	background-color: rgba(255, 255, 255, 0.9);
}

/* The contact card that sits inside that band: a darker red panel rather
 * than the charcoal one, so it reads as part of the band. */
.adx-section.has-deep-wash-gradient-background .adx-panel,
.adx-section.has-deep-wash-gradient-background .adx-contact-card {
	background: rgba(0, 0, 0, 0.22);
	border: 1px solid rgba(255, 255, 255, 0.24);
}

/* ---- The logo ------------------------------------------------------- */

/* Bigger. 52px was sized for a wordmark; this is a stacked mark with a
 * second line of licence text under it, and at 52px that line was 6px tall
 * and unreadable — which is the same as not being there. */
.adx-brand .wp-block-site-logo img { max-height: 100px; }

@media (max-width: 781px) {
	.adx-brand .wp-block-site-logo img { max-height: 72px; }
}

/*
 * The footer is always dark, whatever the theme is, so it always wants the
 * light logo when one exists. The old `brightness(0) invert(1)` was written
 * for a single-colour mark; on a white-backed file it flattens the whole
 * rectangle to white, which is the white box that was appearing down there.
 */
.adx-footer-logo [data-adx-logo="light"] { display: none; }
.adx-footer-logo [data-adx-logo="dark"] { display: block; filter: none; }

.adx-footer-logo img { max-height: 96px; width: auto; }

/* Only filter when there is no light version to fall back on. */
.adx-footer-logo:not(:has([data-adx-logo="dark"])) img {
	filter: brightness(0) invert(1);
}

/* ---- The coverage map, centred -------------------------------------- */

.adx-findareas__mapwrap {
	margin-inline: auto;
}

.adx-findareas__aside > * { margin-inline: auto; }

/* ---- The area page hero --------------------------------------------
 *
 * The featured image used to render as a 16:9 card under the title: a
 * 1280px photograph shown at full width with nothing on it, which pushed
 * the actual content below the fold and made the page open on a picture
 * instead of a sentence. As a hero it does the job a photograph of a place
 * is for — says where you are before you read anything.
 *
 * The scrim is red over black rather than the usual flat dark. It ties the
 * page to the brand, and because it is a gradient rather than a flat tint
 * the photograph still reads underneath it.
 * ------------------------------------------------------------------- */

.adx-area-hero { align-items: flex-end; }

.adx-area-hero.wp-block-cover .wp-block-cover__background {
	/* Two layers: a dark foot so the white title clears 4.5:1 wherever
	 * the picture happens to be bright, over a flat red wash so the page
	 * reads as this site rather than as a stock photograph. The wash is
	 * written as a two-stop gradient rather than a colour because a bare
	 * colour in the `background` shorthand is taken as background-color
	 * and stops being a layer. */
	background:
		linear-gradient(
			to top,
			rgba(0, 0, 0, 0.78) 0%,
			rgba(0, 0, 0, 0.28) 52%,
			rgba(0, 0, 0, 0.10) 100%
		),
		linear-gradient(
			0deg,
			color-mix(in srgb, var(--adx-band-brand_solid) 48%, transparent),
			color-mix(in srgb, var(--adx-band-brand_solid) 48%, transparent)
		);
	/* Core prints its own dimRatio opacity on this span; one class deeper
	 * than that rule, this layer owns it. */
	opacity: 1;
}

/* Browsers without color-mix still get a red-over-black scrim. */
@supports not (color: color-mix(in srgb, red 50%, transparent)) {
	.adx-area-hero.wp-block-cover .wp-block-cover__background {
		background:
			linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.28) 52%, rgba(0, 0, 0, 0.10) 100%),
			linear-gradient(0deg, rgba(200, 16, 46, 0.48), rgba(200, 16, 46, 0.48));
	}
}

.adx-area-hero__inner {
	padding-block: clamp(2rem, 6vw, 4rem);
}

.adx-area-hero .adx-eyebrow { color: #fff; }

.adx-area-hero__title {
	margin: 0.25rem 0 0.6rem;
	color: #fff;
	font-size: clamp(2rem, 1.3rem + 3.4vw, 3.6rem);
	line-height: 1.05;
	text-wrap: balance;
}

.adx-area-hero__lede {
	margin: 0;
	/* 60–75 characters is the readable measure; a hero lede running the
	 * full width of a 1400px band is about 140 and nobody finishes it. */
	max-inline-size: 60ch;
	color: rgba(255, 255, 255, 0.88);
	font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem);
	line-height: 1.6;
}

.adx-area-body {
	padding-block: clamp(2rem, 6vw, 4rem);
}

/* The body measure, so paragraphs do not run the full band width. */
.adx-area-body :where(p, ul, ol) { max-inline-size: 68ch; }

/* The real map inside the area section: the canvas needs a height, and the
 * schematic fallback inside it must not also show once Leaflet has drawn. */
.adx-findareas .adx-map {
	inline-size: min(100%, 980px);
	margin-inline: auto;
	border-radius: 16px;
	overflow: hidden;
}

.adx-findareas .adx-map__canvas {
	min-block-size: clamp(340px, 46vh, 520px);
}

/* The franchise note under the brokerage name. Smaller and quieter than the
 * name, because it is a legal qualifier rather than a second brand. */
.adx-brokerage__note {
	display: block;
	margin-top: 0.12rem;
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	text-transform: none;
	opacity: 0.8;
}

/* ---- The calculators band (2.7.9) ----------------------------------
 *
 * Red field, white tiles outlined in white, one icon each. The reference
 * for this put twelve tiles over a photograph; the photograph is dropped —
 * at tile size it reads as noise behind text and costs a 300KB download to
 * do it. Flat red carries the same weight and the type stays legible.
 * ------------------------------------------------------------------- */

.adx-calcgrid {
	/* Flat, not a gradient. Two tones of the same red read as "dark red"
	 * at the edges of a wide band, which is the thing this palette is
	 * meant not to have. One colour, full bleed. */
	background: var(--adx-band-brand_solid);
}

.adx-calcgrid .adx-section__title,
.adx-calcgrid .adx-section__lede { color: #fff; }

.adx-calcgrid .adx-section__lede { color: rgba(255, 255, 255, 0.88); }

.adx-calcgrid__grid {
	display: grid;
	/* Four across on a desktop, two on a phone, and never a widowed tile on
	 * its own row — auto-fit with a floor does that without media queries. */
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: clamp(0.6rem, 1.4vw, 1rem);
	margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

.adx-calcgrid__tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.85rem;
	/* Comfortably past the 44px touch floor, and square-ish so the grid
	 * reads as a grid rather than a list of buttons. */
	min-block-size: 8.5rem;
	padding: 1.25rem 1rem;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 14px;
	color: #fff;
	text-align: center;
	text-decoration: none;
	background: rgba(255, 255, 255, 0.05);
	transition:
		background-color 200ms ease,
		border-color 200ms ease,
		transform 200ms ease;
}

.adx-calcgrid__tile:hover,
.adx-calcgrid__tile:focus-visible {
	background: rgba(255, 255, 255, 0.14);
	border-color: #fff;
	/* Lifts without moving its neighbours — no reflow, no jitter. */
	transform: translateY(-2px);
}

.adx-calcgrid__tile:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.adx-calcgrid__icon svg {
	inline-size: 30px;
	block-size: 30px;
	stroke-width: 1.7;
}

.adx-calcgrid__name {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.3;
	text-wrap: balance;
}

.adx-calcgrid__more { margin-top: clamp(1.25rem, 3vw, 2rem); }

.adx-calcgrid__more .wp-block-button__link {
	border: 1.5px solid rgba(255, 255, 255, 0.72);
	background: transparent;
	color: #fff;
}

.adx-calcgrid__more .wp-block-button__link:hover {
	background: #fff;
	color: var(--adx-band-brand_solid_deep);
}

@media (prefers-reduced-motion: reduce) {
	.adx-calcgrid__tile { transition: none; }
	.adx-calcgrid__tile:hover { transform: none; }
}

/* ====================================================================
 * ADROMAX CRM forms, dressed for this theme
 *
 * The plugin styles only what cannot work without CSS — the popup
 * overlay and the step indicator — and leaves the ordinary
 * label-and-input pair to the theme, by design. The theme had never
 * taken it up, so a contact form arrived as browser defaults: 21px
 * inputs, a native grey submit button, no focus ring, a 13px font that
 * makes iOS zoom the page on focus. That is not a form anyone fills in
 * on a phone.
 *
 * The accent is pinned to the site's own brand rather than the
 * per-form colour picker in the builder, so a form can never turn up
 * in a colour the site does not use.
 * ================================================================== */

.adromax-crm-form {
	/* !important, because the builder writes the per-form colour as an
	 * inline style and an inline declaration beats a normal one. An
	 * important author rule beats an inline normal rule, which is what
	 * keeps a green form from landing on a red-and-black site. */
	--adromax-form-accent: var(--wp--preset--color--brand) !important;
	display: grid;
	gap: clamp(0.9rem, 2vw, 1.15rem);
	/* A form wider than this is a form whose labels float a long way
	 * from their fields. */
	max-inline-size: 34rem;
}

.adromax-crm-form .adromax-crm-form-step {
	display: grid;
	gap: clamp(0.9rem, 2vw, 1.15rem);
}

/*
 * A multi-step form hides the steps it is not on with the `hidden`
 * attribute, and the rule above was quietly overriding it: `display:
 * grid` beats the browser's own `[hidden] { display: none }`, so every
 * step of the booking form rendered at once, Next and Back and Submit
 * all on screen together. Any rule that sets display on an element that
 * can be hidden has to say this.
 */
.adromax-crm-form .adromax-crm-form-step[hidden] { display: none; }

.adromax-crm-form .adromax-crm-form-step-title {
	margin: 0;
	font-size: var(--wp--preset--font-size--lg, 1.25rem);
	line-height: 1.25;
}

.adromax-crm-form .adromax-crm-field {
	display: grid;
	gap: 0.4rem;
}

.adromax-crm-form .adromax-crm-field > label {
	/* Visible label, above the field. Never a placeholder standing in
	 * for one — it disappears the moment anyone types. */
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--wp--preset--color--ink);
	/* The template's labels carry tabs around the asterisk. */
	white-space: normal;
}

.adromax-crm-form .adromax-crm-field > label span[aria-hidden] {
	margin-inline-start: 0.15em;
	color: var(--adromax-form-accent);
}

.adromax-crm-form :where(
	input[type="text"], input[type="email"], input[type="tel"],
	input[type="number"], input[type="url"], input[type="date"],
	input[type="time"], input[type="password"], input[type="search"],
	select, textarea
) {
	box-sizing: border-box;
	inline-size: 100%;
	min-block-size: 48px;
	padding: 0.7rem 0.9rem;
	font: inherit;
	/* 16px exactly: anything smaller and iOS zooms the page on focus. */
	font-size: 1rem;
	line-height: 1.4;
	color: var(--wp--preset--color--ink);
	background-color: #fff;
	border: 1.5px solid var(--wp--preset--color--line-strong, #b7b7b7);
	border-radius: 10px;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}

.adromax-crm-form textarea {
	min-block-size: 7.5rem;
	line-height: 1.6;
	resize: vertical;
}

.adromax-crm-form select {
	padding-inline-end: 2.25rem;
	background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position: right 1.1rem center, right 0.75rem center;
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
}

.adromax-crm-form :where(input, select, textarea)::placeholder {
	color: var(--wp--preset--color--muted, #6b7280);
	opacity: 1;
}

.adromax-crm-form :where(input, select, textarea):hover {
	border-color: var(--wp--preset--color--ink);
}

.adromax-crm-form :where(input, select, textarea):focus-visible {
	border-color: var(--adromax-form-accent);
	outline: 2px solid var(--adromax-form-accent);
	outline-offset: 2px;
}

/* Checkbox and radio keep their native box but get a real hit area. */
.adromax-crm-form :where(.adromax-crm-choice-option, label:has(> input[type="checkbox"]), label:has(> input[type="radio"])) {
	display: flex;
	gap: 0.6rem;
	align-items: center;
	min-block-size: 44px;
	font-weight: 400;
}

.adromax-crm-form :where(input[type="checkbox"], input[type="radio"]) {
	inline-size: 22px;
	block-size: 22px;
	min-block-size: 0;
	accent-color: var(--adromax-form-accent);
}

/* ---- Buttons ---- */

.adromax-crm-form .adromax-crm-form-step-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 0.75rem;
	margin-block-start: 0.25rem;
}

.adromax-crm-form .adromax-crm-form-step-nav button {
	min-block-size: 48px;
	padding: 0.75rem 1.75rem;
	font: inherit;
	font-size: 1rem;
	font-weight: 600;
	color: #fff;
	background-color: var(--adromax-form-accent);
	border: 1.5px solid var(--adromax-form-accent);
	border-radius: 999px;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease;
}

.adromax-crm-form .adromax-crm-form-step-nav button:hover {
	background-color: var(--wp--preset--color--brand-strong, #000);
	border-color: var(--wp--preset--color--brand-strong, #000);
}

.adromax-crm-form .adromax-crm-form-step-nav button:focus-visible {
	outline: 2px solid var(--adromax-form-accent);
	outline-offset: 3px;
}

/* Back is the secondary action; it should not compete with Submit. */
.adromax-crm-form .adromax-crm-form-step-nav .adromax-crm-form-back {
	color: var(--wp--preset--color--ink);
	background-color: transparent;
	border-color: var(--wp--preset--color--line-strong, #b7b7b7);
}

/* Disabled while the request is in flight — the JS sets this. */
.adromax-crm-form .adromax-crm-form-step-nav button[disabled] {
	opacity: 0.55;
	cursor: progress;
}

/* ---- The reply ---- */

.adromax-crm-form .adromax-crm-form-message:empty {
	display: none;
}

.adromax-crm-form .adromax-crm-form-message {
	margin: 0;
	padding: 0.85rem 1rem;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--wp--preset--color--ink);
	background-color: var(--wp--preset--color--brand-soft, #f3f4f6);
	border-inline-start: 3px solid var(--adromax-form-accent);
	border-radius: 8px;
}

/* On a red band the whole form inverts: white labels, white button. */
.has-deep-wash-gradient-background .adromax-crm-form .adromax-crm-field > label,
.adx-calcgrid .adromax-crm-form .adromax-crm-field > label {
	color: #fff;
}

.has-deep-wash-gradient-background .adromax-crm-form .adromax-crm-form-step-nav button {
	color: var(--adx-band-brand_solid);
	background-color: #fff;
	border-color: #fff;
}

.has-deep-wash-gradient-background .adromax-crm-form .adromax-crm-form-step-nav button:hover {
	background-color: rgba(255, 255, 255, 0.9);
	border-color: rgba(255, 255, 255, 0.9);
	color: var(--adx-band-brand_solid);
}

@media (prefers-reduced-motion: reduce) {
	.adromax-crm-form .adromax-crm-form-step-nav button { transition: none; }
}

/* ====================================================================
 * Measure and touch targets, applied across the whole site
 *
 * Two of the ui/ux rules were failing in a way an audit catches and an
 * eye does not: body copy running to 85–100 characters a line on a wide
 * screen (the readable measure is 60–75), and link rows in the area
 * grid and the quick-links list standing 18–39px tall against a 44px
 * minimum. Both are fixed here rather than in each pattern, because
 * both are properties of the theme, not of one section.
 * ================================================================== */

:where(.adx-section, .adx-hero, .entry-content) :where(p, li):not(.adx-eyebrow):not([class*="__meta"]) {
	/* ch is measured on the element's own font, so this holds at every
	 * step of the type scale. */
	max-inline-size: min(100%, 72ch);
}

/* Headings read wider than body copy at the same measure, and a lede
 * that balances over two lines reads better than one that runs to the
 * band edge. */
:where(.adx-section__head, .adx-hero-content) :where(.adx-section__lede, .adx-hero__lede, p) {
	max-inline-size: min(100%, 64ch);
}

/* A capped measure inside a centred block has to be centred too, or the
 * cap turns centred copy into left-aligned copy in a centred box. */
:where(.adx-section__head.is-centred) :where(p, .adx-section__lede),
:where(p, li).has-text-align-center,
:where(.has-text-align-center) > :where(p, li) {
	margin-inline: auto;
}

/* A tile or a row in a link grid is a touch target, not a line of text. */
:where(.adx-areas__list, .adx-findareas__cards) a {
	display: flex;
	align-items: center;
	min-block-size: 44px;
}

/* The quick-links strip under the hero: five text links in a row, 18px
 * tall as plain inline text. They are the second-most-used navigation on
 * the site and they were the smallest thing on it. */
.adx-quick-links__row a {
	display: inline-flex;
	align-items: center;
	min-block-size: 44px;
	padding-inline: 0.25rem;
}

/* Submenu rows in the header: 39px against a 44px floor. */
.wp-block-navigation__submenu-container :where(.wp-block-navigation-item__content, a) {
	display: flex;
	align-items: center;
	min-block-size: 44px;
}

/* Inline lists of links — footer columns — need the vertical room on a
 * phone, where they are the navigation. */
@media (max-width: 781px) {
	:where(.adx-footer-nav, .adx-footer-cols nav) a {
		display: flex;
		align-items: center;
		min-block-size: 44px;
	}
}

/* Core's submenu chevron is a 9px button inside a full-height item.
 * Give the button the item's height so the hit area matches what the
 * eye reads as the control. */
.wp-block-navigation .wp-block-navigation-submenu__toggle {
	min-block-size: 44px;
	min-inline-size: 28px;
}

/* ---- The CRM web-chat launcher ------------------------------------
 *
 * The plugin paints the launcher with ADROMAX blue in an inline style,
 * so every site that turns the chat on gets a blue bubble whatever its
 * brand is. Inline styles can only be answered with !important; the
 * proper fix belongs in the plugin, which should take the colour from
 * the site rather than hard-coding one.
 * ------------------------------------------------------------------- */

#adrc-wc-btn {
	background: var(--wp--preset--color--brand) !important;
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28) !important;
}

#adrc-wc-panel .adrc-btn-p {
	background: var(--wp--preset--color--brand) !important;
	border-color: var(--wp--preset--color--brand) !important;
	color: #fff !important;
}

/* ---- The logo swap, restated last ---------------------------------
 *
 * The pair of rules further up this file is correct but was losing to
 * something later in the cascade on the live site, which left both the
 * dark and the light logo stacked in the header. Restating the swap at
 * the end of the stylesheet, one class deeper, settles it: the header
 * shows exactly one logo in either theme.
 * ------------------------------------------------------------------- */

.adx-brand .wp-block-site-logo [data-adx-logo="dark"] { display: none; }
.adx-brand .wp-block-site-logo [data-adx-logo="light"] { display: block; }

:root[data-adx-theme="dark"] .adx-brand .wp-block-site-logo [data-adx-logo="dark"] { display: block; }
:root[data-adx-theme="dark"] .adx-brand .wp-block-site-logo [data-adx-logo="light"] { display: none; }

@media (prefers-color-scheme: dark) {
	.adx-follows-device:not([data-adx-theme="light"]) .adx-brand .wp-block-site-logo [data-adx-logo="dark"] { display: block; }
	.adx-follows-device:not([data-adx-theme="light"]) .adx-brand .wp-block-site-logo [data-adx-logo="light"] { display: none; }
}

.adx-footer-logo.wp-block-site-logo [data-adx-logo="dark"] { display: block; }
.adx-footer-logo.wp-block-site-logo [data-adx-logo="light"] { display: none; }

/* ---- The last few controls under 44px -----------------------------
 *
 * Found by measuring every link and button on the rendered page rather
 * than by reading the patterns: the hero's "Advanced search" link, the
 * map's own zoom buttons and wake control, the standalone "see every
 * listing" link, and RealtyPress's view-mode and per-page toolbars.
 * Attribution links are left alone — they are inline text, which the
 * target-size rule exempts.
 * ------------------------------------------------------------------- */

.adx-hero-search__more a,
.adx-section p > a:only-child:not(.wp-element-button) {
	display: inline-flex;
	align-items: center;
	min-block-size: 44px;
}

.leaflet-bar a,
.leaflet-touch .leaflet-bar a {
	inline-size: 44px;
	block-size: 44px;
	line-height: 44px;
}

.adx-map__wake {
	min-block-size: 44px;
	padding-inline: 1rem;
}

:where(.rps-toolbar-btn-lg, .rps-toolbar-btn-sm, .rps-posts-per-page, .rps-result-view) {
	min-block-size: 44px;
	min-inline-size: 44px;
}

/* Leaflet ships 30px zoom buttons and loads after this stylesheet, so
 * the earlier rule lost on order. One class deeper settles it. */
.leaflet-container.leaflet-touch .leaflet-bar a,
.leaflet-container .leaflet-bar a {
	inline-size: 44px;
	block-size: 44px;
	line-height: 44px;
}

/* RealtyPress card titles are 22px text links. The card is the thing
 * people aim at, so the hit area is extended with padding and taken
 * back with an equal negative margin — bigger target, same layout. */
.rps-property-info > a {
	display: inline-block;
	padding-block: 0.65rem;
	margin-block: -0.65rem;
}

/* ====================================================================
 * Pages rendered by a plugin's own PHP template
 *
 * header.php / footer.php give get_header() and get_footer() something
 * real to find; these give what they wrap a container and some air. A
 * RealtyPress listing page is a Bootstrap grid dropped straight into the
 * document, so without this it runs edge to edge with no padding.
 * ================================================================== */

.adx-plugin-main {
	box-sizing: border-box;
	inline-size: 100%;
	max-inline-size: var(--wp--style--global--wide-size, 76rem);
	margin-inline: auto;
	padding-inline: var(--wp--preset--spacing--30, 1rem);
	padding-block: clamp(1.5rem, 4vw, 2.75rem);
}

/* ---- The single listing ------------------------------------------- */

/*
 * The listing brokerage's details, kept but quietened.
 *
 * The DDF(R) feed is licensed on the condition that the listing office is
 * credited, so this block is not removed. What it should not be is the
 * most contactable thing on the page: as it ships it is a full contact
 * card for a competing brokerage, in the sidebar, where a visitor looks
 * for somebody to call. Here it reads as the attribution it is — small,
 * quiet, and with the outbound links inert so a click on this page goes
 * to the agent whose site it is.
 */
.rps-agent-details {
	margin-block-start: 1rem;
	padding: 0.9rem 1rem;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--wp--preset--color--muted, #6b7280);
	background: var(--wp--preset--color--surface-alt, #f4f4f4);
	border: 1px solid var(--wp--preset--color--line, #ddd);
	border-radius: 10px;
}

.rps-agent-details :where(strong, b) {
	font-weight: 600;
	color: var(--wp--preset--color--body, inherit);
}

.rps-agent-details a {
	color: inherit;
	text-decoration: none;
	pointer-events: none;
}

/* ---- The owner's own enquiry card, under the listing --------------- */

.adx-listing-cta {
	margin-block-start: clamp(1.5rem, 4vw, 2.5rem);
	padding-block: clamp(1.75rem, 5vw, 3rem);
	background: var(--adx-band-brand_solid, var(--wp--preset--color--brand));
	color: #fff;
}

.adx-listing-cta__inner {
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: clamp(1rem, 3vw, 2rem);
	inline-size: 100%;
	max-inline-size: var(--wp--style--global--wide-size, 76rem);
	margin-inline: auto;
	padding-inline: var(--wp--preset--spacing--30, 1rem);
}

.adx-listing-cta__words { flex: 1 1 22rem; }
.adx-listing-cta .adx-eyebrow { color: rgba(255, 255, 255, 0.82); }

.adx-listing-cta__title {
	margin: 0.3rem 0 0.5rem;
	font-size: clamp(1.4rem, 1rem + 1.6vw, 2.1rem);
	line-height: 1.15;
	color: #fff;
}

.adx-listing-cta__lede {
	margin: 0;
	max-inline-size: 56ch;
	color: rgba(255, 255, 255, 0.9);
	line-height: 1.6;
}

.adx-listing-cta__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.9rem;
}

.adx-listing-cta__book {
	display: inline-flex;
	align-items: center;
	min-block-size: 48px;
	padding: 0.75rem 1.75rem;
	font-weight: 600;
	color: var(--adx-band-brand_solid, var(--wp--preset--color--brand));
	background: #fff;
	border-radius: 999px;
	text-decoration: none;
}

.adx-listing-cta__book:hover { background: rgba(255, 255, 255, 0.9); }

.adx-listing-cta__tel {
	display: inline-flex;
	align-items: center;
	min-block-size: 48px;
	padding: 0.75rem 1.4rem;
	font-weight: 600;
	color: #fff;
	border: 1.5px solid rgba(255, 255, 255, 0.72);
	border-radius: 999px;
	text-decoration: none;
}

.adx-listing-cta__tel:hover { background: rgba(255, 255, 255, 0.12); }

/* ====================================================================
 * The areas section: the arrow stops sitting on the name
 *
 * The label was a space-between row — region on the left, city on the
 * right — and the arrow is absolutely placed in the bottom-right corner,
 * so on every card the circle landed on the city name. Stacking the two
 * and reserving the arrow's column fixes it without moving the arrow,
 * which is where the eye expects it on a card that is a link.
 * ================================================================== */

.adx-findareas .adx-area-card__label {
	display: grid;
	justify-items: start;
	align-items: end;
	gap: 0.15rem;
	padding-inline-end: calc(2.25rem + var(--wp--preset--spacing--30) + 0.6rem);
}

.adx-findareas .adx-area-card__name { text-wrap: balance; }

/* The map is the same width as the grid of cards above it. It was capped
 * at 820px from when it was a flat schematic; it is a real slippy map
 * now, which does gain from the width, and a map narrower than the
 * section it belongs to reads as a mistake. */
.adx-findareas__mapwrap,
.adx-findareas .adx-map,
.adx-findareas__aside > .adx-rps,
.adx-findareas__aside > .adx-rps-search,
.adx-findareas__fallback {
	inline-size: 100%;
	max-inline-size: none;
}

.adx-findareas__aside > * { margin-inline: 0; }

/* The frame's own padding was insetting the map by 20px, so it still did
 * not line up with the cards. The map carries its own rounded edge, so
 * the frame does not need to draw a second one around it. */
.adx-findareas__mapwrap {
	padding: 0;
	background: none;
	border: 0;
}

/* ====================================================================
 * Advanced search, open and laid out
 *
 * On the dedicated search page the filters are the page, so they are
 * open on arrival rather than behind a disclosure nobody opens. The
 * summary stays — it still collapses — but it reads as a section
 * heading when the panel is open rather than as a closed drawer.
 * ================================================================== */

.adx-search__advanced.is-open > .adx-search__advanced-toggle {
	cursor: default;
	list-style: none;
}

.adx-search__advanced.is-open > .adx-search__advanced-toggle::-webkit-details-marker {
	display: none;
}

.adx-search__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	gap: clamp(0.75rem, 2vw, 1.1rem);
	margin-block-start: 1rem;
}

.adx-search__cell {
	display: grid;
	gap: 0.35rem;
	margin: 0;
}

.adx-search__cell > label {
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--wp--preset--color--ink);
}

.adx-search__cell :where(input[type="text"], input[type="search"], select) {
	box-sizing: border-box;
	inline-size: 100%;
	min-block-size: 48px;
	padding: 0.65rem 0.85rem;
	font: inherit;
	font-size: 1rem;
	color: var(--wp--preset--color--ink);
	background-color: #fff;
	border: 1.5px solid var(--wp--preset--color--line-strong, #b7b7b7);
	border-radius: 10px;
	-webkit-appearance: none;
	appearance: none;
}

.adx-search__cell select {
	padding-inline-end: 2.25rem;
	background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position: right 1.1rem center, right 0.75rem center;
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
}

.adx-search__cell :where(input, select):focus-visible {
	border-color: var(--wp--preset--color--brand);
	outline: 2px solid var(--wp--preset--color--brand);
	outline-offset: 2px;
}

.adx-search__help {
	font-size: 0.78rem;
	line-height: 1.4;
	color: var(--wp--preset--color--muted, #6b7280);
}

.adx-search__flags {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
	gap: 0.25rem 1rem;
	margin-block-start: 1rem;
	padding: 0.9rem 1rem;
	border: 1px solid var(--wp--preset--color--line, #ddd);
	border-radius: 12px;
}

.adx-search__flags legend {
	grid-column: 1 / -1;
	padding-inline: 0.4rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--wp--preset--color--ink);
}

.adx-search__flag {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	min-block-size: 44px;
	font-size: 0.9375rem;
	cursor: pointer;
}

.adx-search__flag input {
	inline-size: 20px;
	block-size: 20px;
	accent-color: var(--wp--preset--color--brand);
}

.adx-search__caveat {
	margin-block: 0.9rem 0;
	max-inline-size: 72ch;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--wp--preset--color--muted, #6b7280);
}

.adx-search__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-block-start: 1rem;
}

.adx-search__reset {
	min-block-size: 48px;
	padding: 0.7rem 1.4rem;
	font: inherit;
	font-weight: 600;
	color: var(--wp--preset--color--ink);
	background: transparent;
	border: 1.5px solid var(--wp--preset--color--line-strong, #b7b7b7);
	border-radius: 999px;
	cursor: pointer;
}

/* ====================================================================
 * A Google Maps embed, sized by ratio rather than by the 600x450 the
 * share dialog hands out. A fixed-pixel iframe overflows a phone.
 * ================================================================== */

.adx-map-embed {
	position: relative;
	aspect-ratio: 16 / 10;
	margin-block-start: 1rem;
	overflow: hidden;
	background: var(--wp--preset--color--surface-alt, #eee);
	border-radius: 12px;
}

.adx-map-embed iframe {
	position: absolute;
	inset: 0;
	inline-size: 100%;
	block-size: 100%;
	border: 0;
	display: block;
}

/* In the footer column the map is a location pin, not a map to read. */
.adx-map-embed.is-compact {
	aspect-ratio: 4 / 3;
	max-inline-size: 22rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
}

/* On the contact page it is the directions, so it gets the room. */
.adx-map-embed.is-wide { aspect-ratio: 21 / 9; }

@media (max-width: 781px) {
	.adx-map-embed.is-wide { aspect-ratio: 4 / 3; }
}

/* The calculators band: a last row that does not fill centres itself
 * rather than hanging off the left edge.
 *
 * 1fr tracks cannot do this — they stretch to fill the row, so there is
 * nothing to centre. Capping the track at 240px leaves slack in the row
 * for justify-content to distribute, and a short last row then sits
 * under the middle of the one above it and reads as the end of a list
 * rather than as a tile that failed to load. */
/* Nine tiles want three columns: that is a filled 3x3 with no gap at
 * the end. auto-fit cannot be trusted with it — at this band width it
 * settled on two and turned nine tiles into four rows and an orphan —
 * so the count is stated, and only the phone drops to two. */
.adx-calcgrid__grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	justify-content: center;
}

@media (max-width: 600px) {
	.adx-calcgrid__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ====================================================================
 * The search panel inside the dark areas band
 *
 * Only the two lines that sit ON the dark band need recolouring: the
 * hint under the search box, and nothing else. The advanced panel
 * carries its own light surface, so everything inside it — labels,
 * legend, help text, the toggle — stays ink. Recolouring those for the
 * dark band put light grey text on a white card and made the whole
 * filter set unreadable.
 * ================================================================== */

.adx-findareas__search > .adx-search > .adx-search__hint {
	color: var(--wp--preset--color--on-deep-muted, rgba(255, 255, 255, 0.68));
}

/* The box the search sits in, so it reads as one block on the band
 * rather than as controls floating on it. */
.adx-findareas__search .adx-search {
	padding: clamp(1rem, 2.5vw, 1.5rem);
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 20px;
}

/* The panel inside it keeps the theme's own surface, and its summary
 * reads as a heading rather than as a closed drawer. */
.adx-findareas__search .adx-search__advanced {
	background: var(--wp--preset--color--surface);
	border-color: var(--wp--preset--color--line);
}

/* ====================================================================
 * The gutter a cover block does not get
 *
 * With useRootPaddingAwareAlignments, core puts the root padding on
 * .wp-site-blocks and gives constrained groups `has-global-padding` so
 * their contents keep a gutter when the viewport is narrower than the
 * content width. A cover block's inner container is not given that
 * class, so the hero was the one section on the site whose text ran
 * into the edge of the screen on a phone — headline, lede, buttons and
 * the serving line all flush to 0.
 *
 * On a wide screen this changes nothing: the content is centred well
 * inside the 20px either side.
 * ================================================================== */

.wp-block-cover > .wp-block-cover__inner-container {
	padding-inline: var(--wp--preset--spacing--30);
}

/* The hero's own content block is alignwide, which on a phone means
 * "the full width of the container" — so the padding has to sit on the
 * container, not on the block, or the block escapes it. Belt and
 * braces for the cover patterns that nest a second wrapper. */
.adx-hero .adx-hero-content,
.adx-hero .wp-block-cover__inner-container > * {
	max-inline-size: 100%;
}

/* ====================================================================
 * The header row on a phone
 *
 * 72px of logo, a menu button and a full-size "Book an appointment"
 * do not fit across 430px: the button ended up sitting on the logo.
 * The logo comes down and the button gets a compact size — it is still
 * the one primary action, just not two thirds of the row.
 * ================================================================== */

/*
 * The actual failure was not crowding, it was overflow. The actions
 * group is `flex-wrap: nowrap` with `justify-content: right`, and its
 * contents — menu button, theme toggle, "Book an appointment" — came to
 * 335px inside a 198px box. A right-justified flex row that overflows
 * spills out of its START edge, so the menu button and the toggle were
 * rendering 130px to the left of their own container, directly on top
 * of the logo. Nothing was positioned wrongly; there was simply more in
 * the row than the row could hold.
 *
 * So: take the toggle out of the row on a phone (dark mode still
 * follows the device, which is how a phone sets it anyway), tighten the
 * gaps, let the actions group take the space that is left rather than
 * sizing itself to its contents, and shrink the button. That brings the
 * row to about 200px inside 222px at 375px wide.
 */
@media (max-width: 600px) {
	.adx-brand .wp-block-site-logo img { max-height: 54px; }

	.adx-brand,
	.adx-brand .wp-block-site-logo { flex: 0 1 auto; min-inline-size: 0; }

	.adx-header-row > .adx-header-actions {
		flex: 1 1 auto;
		min-inline-size: 0;
		gap: 0.5rem;
	}

	.adx-header-actions .adx-theme-toggle { display: none; }

	.adx-site-header .wp-block-button__link,
	.adx-site-header .wp-element-button {
		padding: 0.55rem 0.85rem;
		font-size: 0.8125rem;
		white-space: nowrap;
	}
}

/* Narrower than about 360px there is no arrangement that fits a logo, a
 * menu button and a worded button, so the button goes and the menu
 * carries it. Three classes, to beat core's two. */
@media (max-width: 359px) {
	.adx-site-header .wp-block-buttons.adx-header-cta { display: none; }
}

/* ---- The credential line on a phone --------------------------------
 *
 * "BROKER · ABR · SRS · P.ENG (ONTARIO) · RE/MAX YOUR COMMUNITY REALTY,
 * BROKERAGE" sits in a flex row beside a 52px rule. On a 375px screen
 * the rule and its gap take 72px of a 335px measure, so the line wrapped
 * to four and started a third of the way in, out of line with the
 * headline above it. Stacked, the rule reads as the same device and the
 * text gets the full width.
 * ------------------------------------------------------------------- */

@media (max-width: 600px) {
	.adx-credential {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.6rem;
	}
}

/* ====================================================================
 * Form labels take the colour of the band they are on
 *
 * The CRM form has no surface of its own — it sits directly on
 * whatever section it is dropped into. Pinning the label to ink put
 * black text on the dark contact band, where First Name, Email, Phone
 * and Message were all but invisible. Inheriting is right for both:
 * ink on a white page, on-deep on a dark one, without the stylesheet
 * having to enumerate every dark context.
 * ================================================================== */

.adromax-crm-form .adromax-crm-field > label,
.adromax-crm-form .adromax-crm-form-step-title,
.adromax-crm-form .adromax-crm-form-message {
	color: inherit;
}

/* The help and caveat lines are quieter than the label rather than a
 * fixed grey, for the same reason. */
.adromax-crm-form .adromax-crm-field > .description,
.adromax-crm-form .adromax-crm-help {
	color: inherit;
	opacity: 0.75;
}

/* The reply box needs a surface that works on either ground. */
.adromax-crm-form .adromax-crm-form-message {
	background-color: color-mix(in srgb, currentColor 10%, transparent);
}

/* The search panel is the exception: it carries its own light surface,
 * so its labels stay ink wherever the panel is placed. */
.adx-search__advanced .adx-search__cell > label,
.adx-search__advanced .adx-search__flags legend,
.adx-search__advanced .adx-search__flag {
	color: var(--wp--preset--color--ink);
}

/* ======================================================================
 * 2.10.2 — the header that stays, and four things that were wrong
 * ====================================================================== */

/* ---- A header you can reach without scrolling back up ---------------
 *
 * Sticky, not fixed, and the whole header including the contact strip.
 * Fixed would need the page padded by the header's measured height, and a
 * header that hides its own strip on scroll shrinks — which on a sticky
 * element in normal flow yanks the page up by forty-four pixels mid-scroll.
 * Keeping it whole costs a little height and costs nothing in jumps.
 *
 * z-index 2500 is not arbitrary. RealtyPress puts its result overlay at
 * 2000 and Leaflet runs its map panes from 400 to 1000, so a header below
 * those paints underneath the map on the home page — and so does the
 * mobile menu, which lives inside the header and can never escape its
 * stacking context. That was the menu-behind-the-page bug.
 */
.adx-site-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 2500;
}

/* A shadow only. It appears on scroll and moves nothing. */
body.adx-stuck .adx-site-header {
	box-shadow: 0 1px 16px rgba(0, 0, 0, 0.09);
}

/*
 * The cinematic exception. On a page whose hero fills the screen the header
 * is absolutely positioned over the photograph, so it is already out of
 * flow — which means here, and only here, it can become a fixed bar on
 * scroll with no compensation and no jump, and drop the contact strip on
 * the way.
 *
 * The doubled class is deliberate: the rule it has to beat is the :has()
 * selector above, which carries four classes, and a selector that merely
 * matches later does not win against a more specific one.
 */
body.adx-stuck .wp-site-blocks:has(> main > .adx-hero.is-cinematic:first-child) > header.adx-site-header.adx-site-header,
body.adx-stuck .wp-site-blocks:has(> main > .wp-block-group > .adx-hero.is-cinematic:first-child) > header.adx-site-header.adx-site-header {
	position: fixed;
	inset-inline: 0;
	inset-block-start: var(--wp-admin--admin-bar--height, 0px);
	background-image: none;
	background-color: var(--wp--preset--color--surface);
	box-shadow: 0 1px 16px rgba(0, 0, 0, 0.09);
}

body.adx-stuck .wp-site-blocks:has(> main > .adx-hero.is-cinematic:first-child) > header .adx-utility-bar,
body.adx-stuck .wp-site-blocks:has(> main > .wp-block-group > .adx-hero.is-cinematic:first-child) > header .adx-utility-bar {
	display: none;
}

/* White-on-photograph is right over the hero and unreadable once the bar is
 * solid, so the ink comes back with it. */
body.adx-stuck .wp-site-blocks:has(> main > .adx-hero.is-cinematic:first-child) > header .adx-site-header__bar,
body.adx-stuck .wp-site-blocks:has(> main > .wp-block-group > .adx-hero.is-cinematic:first-child) > header .adx-site-header__bar {
	background-color: var(--wp--preset--color--surface) !important;
	border-block-end-color: var(--wp--preset--color--line) !important;
}

body.adx-stuck .wp-site-blocks:has(> main > .adx-hero.is-cinematic:first-child) > header .adx-site-header__bar :is(a, .wp-block-site-title a, .wp-block-navigation-item__content):not(.wp-block-button__link):not(.wp-element-button),
body.adx-stuck .wp-site-blocks:has(> main > .wp-block-group > .adx-hero.is-cinematic:first-child) > header .adx-site-header__bar :is(a, .wp-block-site-title a, .wp-block-navigation-item__content):not(.wp-block-button__link):not(.wp-element-button),
body.adx-stuck .wp-site-blocks:has(> main > .adx-hero.is-cinematic:first-child) > header .adx-site-header__bar :is(p, li, span, .wp-block-navigation-item),
body.adx-stuck .wp-site-blocks:has(> main > .wp-block-group > .adx-hero.is-cinematic:first-child) > header .adx-site-header__bar :is(p, li, span, .wp-block-navigation-item) {
	color: var(--wp--preset--color--ink) !important;
}

/* An in-page anchor must not land under the bar that is now covering it. */
:target { scroll-margin-block-start: 7rem; }

/* ---- The mobile menu, above everything ------------------------------
 *
 * The overlay is a child of the header, so it can never paint above the
 * header's own stacking context however high its z-index goes. The header
 * sitting at 2500 is what actually fixes this; the rule below puts the
 * open menu at the top of that context, above the sticky bar it opened
 * from.
 */
.wp-block-navigation__responsive-container.is-menu-open {
	z-index: 3000;
}

/* ---- The contact strip, legible ------------------------------------- */
.adx-utility-bar {
	font-size: var(--wp--preset--font-size--sm);
	letter-spacing: 0.005em;
}

.adx-utility-bar .adx-glyph {
	opacity: 0.75;
	inline-size: 1.05rem;
	block-size: 1.05rem;
}

.adx-utility-bar__social a svg {
	inline-size: 1.15rem;
	block-size: 1.15rem;
}

/* ---- The credential line, on one line -------------------------------
 *
 * Seventy-seven characters at fifteen pixels with 0.14em of tracking is
 * roughly eight hundred pixels of text, which is why it was wrapping into
 * two lines inside a seven-hundred-pixel column. Tighter tracking and a
 * size that scales with the viewport fit it on one line from tablet up.
 *
 * On a phone it cannot fit on one line at any size a person can read —
 * 375px divided by 77 characters is under five pixels each — so it wraps,
 * and the 2.9.x rule that stacked it one item per line is removed, because
 * two flowing lines read better than four stacked ones.
 */
.adx-credential {
	font-size: clamp(0.72rem, 0.62rem + 0.28vw, 0.86rem);
	letter-spacing: 0.07em;
	gap: var(--wp--preset--spacing--20);
}

.adx-credential::before,
.adx-credential.is-centred::after {
	inline-size: 2rem;
}

@media (min-width: 782px) {
	.adx-credential { white-space: nowrap; }
}

@media (max-width: 781px) {
	.adx-credential {
		flex-direction: row;
		align-items: center;
		flex-wrap: wrap;
		gap: 0.5rem;
		line-height: 1.5;
	}
}

/* ---- Where a portrait frame crops ------------------------------------
 *
 * Driven by a setting rather than a number in this file: the right crop is
 * a property of the photograph, and every site has a different one. The
 * fallback is the middle, which is what the browser does anyway.
 */
.adx-portrait__frame img {
	object-position: var(--adx-portrait-pos, 50% 50%);
}

/* ---- Down payment, two ways ------------------------------------------ */
.adx-calc__field input[data-adx-type="percent"] { text-align: start; }

/* ---- Two corrections found on the live page -------------------------
 *
 * 1. Sticky needs the template-part wrapper, not the header. A block
 *    theme wraps every template part in a div of its own, and that div is
 *    exactly as tall as the header — which is the whole range a sticky
 *    child is allowed to travel. The header computed as sticky and
 *    scrolled away regardless.
 *
 * 2. white-space: nowrap was being undone by text-wrap: pretty. In
 *    current CSS, white-space is a shorthand whose wrap half is
 *    text-wrap-mode, so `.adx-hero p { text-wrap: pretty }` — more
 *    specific, and about typography rather than wrapping — quietly set
 *    the line back to wrapping. The fix is to win on specificity and to
 *    set the longhand too.
 */
.wp-site-blocks > .wp-block-template-part:has(> .adx-site-header) {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 2500;
}

@media (min-width: 782px) {
	.adx-credential,
	.adx-hero .adx-credential {
		white-space: nowrap;
		text-wrap: nowrap;
	}
}

/* ---- The real reason the mobile menu was trapped --------------------
 *
 * The open menu is position: fixed with inset: 0, and it was rendering
 * 375 x 84 instead of filling the screen. Nothing was wrong with the
 * menu: backdrop-filter on the header bar makes that bar the containing
 * block for every fixed descendant, so "fixed to the viewport" quietly
 * became "fixed inside an eighty-four-pixel-tall bar". The frosted glass
 * is worth having on a header over a photograph and worth nothing while
 * a full-screen menu is open, so it stands down for exactly that long.
 */
.adx-site-header__bar:has(.wp-block-navigation__responsive-container.is-menu-open),
.adx-site-header.is-minimal:has(.wp-block-navigation__responsive-container.is-menu-open) {
	backdrop-filter: none;
}

/* ======================================================================
 * 2.11.0 — the header seam, the hero on one line, the whole portrait
 * ====================================================================== */

/* ---- The transparent seam under the contact strip -------------------
 *
 * The header bar carried a 32px top margin, which on a header that sits
 * over a photograph showed as a strip of hero between the contact strip
 * and the navigation. On a sticky header it is worse: the gap travels
 * down the page with it.
 */
.adx-site-header__bar {
	margin-block-start: 0;
}

/* ---- The contact strip, bigger again --------------------------------
 *
 * This strip holds the two things people look for first. It can afford
 * to be read from across a desk.
 */
.adx-utility-bar {
	font-size: 1rem;
}

.adx-utility-bar .adx-glyph {
	inline-size: 1.2rem;
	block-size: 1.2rem;
	opacity: 0.8;
}

.adx-utility-bar__social a {
	inline-size: 3rem;
	block-size: 3rem;
}

.adx-utility-bar__social a svg {
	inline-size: 1.35rem;
	block-size: 1.35rem;
}

/* The email is the second thing people want and it was being dropped at
 * 660px to save room. At this size it still fits beside the phone. */
@media (max-width: 660px) {
	.adx-utility-bar__item.is-email { display: inline-flex; }
	.adx-utility-bar { font-size: 0.9rem; }
}

/* ---- The logo, at the size the header can carry --------------------- */
@media (min-width: 782px) {
	.adx-brand .wp-block-site-logo img { max-height: 124px; }
}

/* ---- The hero, one line per line ------------------------------------
 *
 * Every line in the hero was capped at 720px — a sensible default for
 * body copy and wrong for four short lines that are each meant to read as
 * one. The name needs 819px at its display size, the credential line
 * needs 656, and the lead sentence needs 1119 at 20px, which is why it
 * was the one that would not fit. Inside a 992px column it fits at
 * 17.5px, so the lead is sized to land there on a desktop and to fall
 * back to 16px — where it needs 895px — on anything narrower.
 */
/*
 * Two things these rules have to win against, both of which cost a round
 * of measuring to find:
 *
 *   The measure rule is `:where(...) :where(p, li):not(.adx-eyebrow)
 *   :not([class*="__meta"])` — zero for the :where()s, but one class-weight
 *   for each :not(), which totals two and beats one class plus an element.
 *   Hence the extra .adx-hero on the front.
 *
 *   max-width and max-inline-size are separate properties resolving to the
 *   same used value, so declaring only the logical one loses to a physical
 *   declaration. Both are set.
 *
 *   And WordPress emits its font-size presets as
 *   `.has-lg-font-size { font-size: ... !important }`, so the lead sentence
 *   cannot be resized without matching it. That is the only !important
 *   here, and it is not optional.
 */
.adx-hero .adx-hero-content > .adx-eyebrow,
.adx-hero .adx-hero-content > .adx-hero-title,
.adx-hero .adx-hero-content > .adx-credential,
.adx-hero .adx-hero-content > p {
	max-width: none;
	max-inline-size: none;
}

@media (min-width: 1050px) {
	.adx-hero .adx-hero-content > .adx-hero-title {
		white-space: nowrap;
		text-wrap: nowrap;
	}

	.adx-hero .adx-hero-content > p.has-lg-font-size {
		font-size: clamp(1rem, 1.2vw, 1.12rem) !important;
		line-height: 1.5;
	}
}

/* The municipalities are links now, and they should look like the rest of
 * the line rather than a row of blue words. */
.adx-serves a {
	color: inherit;
	text-decoration: none;
	border-block-end: 1px solid color-mix(in srgb, currentColor 35%, transparent);
	padding-block-end: 1px;
}

.adx-serves a:hover,
.adx-serves a:focus-visible {
	border-block-end-color: currentColor;
	color: var(--wp--preset--color--accent-bright);
}

/* ---- The portrait, whole -------------------------------------------
 *
 * The frame was a fixed 4:5 against a photograph that is almost square,
 * so cover cropped fifty pixels off the sides — which on this photograph
 * is both hands. A portrait slot exists to show a person, and cutting the
 * person to fit the frame is the wrong way round: the frame now takes the
 * photograph's own shape and nothing is lost.
 */
.adx-portrait__frame {
	aspect-ratio: auto;
}

.adx-portrait__frame img {
	block-size: auto;
	object-fit: contain;
}

/* ======================================================================
 * 2.12.0 — the mobile menu as a drawer
 * ====================================================================== */

/*
 * A panel, not a full-screen wash, and sections that stay shut until
 * someone asks. WordPress prints every submenu expanded in the overlay,
 * which on this site means eighteen rows where four will do.
 *
 * Everything here is scoped to the open overlay. The desktop navigation,
 * which opens its submenus on hover, is not touched by any of it.
 */
.wp-block-navigation__responsive-container.is-menu-open {
	justify-content: flex-start;
	background-color: transparent !important;
	padding: 0;
}

.wp-block-navigation__responsive-container.is-menu-open::before {
	content: "";
	position: absolute;
	inset: 0;
	background-color: rgba(8, 10, 12, 0.55);
	z-index: 0;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close {
	position: relative;
	z-index: 1;
	inline-size: min(21.5rem, 86vw);
	max-inline-size: none;
	block-size: 100%;
	margin: 0;
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--40) var(--wp--preset--spacing--60);
	background-color: var(--wp--preset--color--surface);
	box-shadow: 0 0 40px rgba(0, 0, 0, 0.25);
	overflow-y: auto;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: stretch;
	inline-size: 100%;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: stretch;
	gap: 0;
	inline-size: 100%;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	position: relative;
	display: block;
	inline-size: 100%;
	border-block-end: 1px solid var(--wp--preset--color--line);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	display: block;
	padding-block: 0.95rem;
	padding-inline-end: 3rem;
	font-size: 0.95rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* ---- The sections that open ---------------------------------------- */
.wp-block-navigation__responsive-container.is-menu-open .has-child > .wp-block-navigation__submenu-container {
	display: none;
	position: static;
	inset: auto;
	min-inline-size: 0;
	padding: 0 0 0.5rem;
	border: 0;
	box-shadow: none;
	background-color: transparent;
	opacity: 1;
	visibility: visible;
}

.wp-block-navigation__responsive-container.is-menu-open .has-child.adx-sub-open > .wp-block-navigation__submenu-container {
	display: block;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item {
	border-block-end: 0;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding-block: 0.55rem;
	padding-inline-start: 0.9rem;
	font-size: 0.875rem;
	letter-spacing: 0.02em;
	text-transform: none;
	color: var(--wp--preset--color--body);
}

/* The block's own arrow is for the desktop dropdown and says nothing here. */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-icon {
	display: none;
}

.adx-subtoggle {
	position: absolute;
	inset-block-start: 0.35rem;
	inset-inline-end: 0;
	inline-size: 2.75rem;
	block-size: 2.75rem;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}

.adx-subtoggle::before,
.adx-subtoggle::after {
	content: "";
	position: absolute;
	inset-block-start: 50%;
	inset-inline-start: 50%;
	inline-size: 0.85rem;
	block-size: 1.5px;
	background-color: currentColor;
	transform: translate(-50%, -50%);
	transition: opacity var(--wp--custom--transition--fast, 0.15s) ease,
		transform var(--wp--custom--transition--fast, 0.15s) ease;
}

.adx-subtoggle::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.adx-sub-open > .adx-subtoggle::after {
	opacity: 0;
	transform: translate(-50%, -50%) rotate(0deg);
}

/* Outside the overlay the toggle has no job: the desktop menu opens on
 * hover and the button would sit on top of the dropdown arrow. */
@media (min-width: 782px) {
	.adx-site-header .wp-block-navigation__responsive-container:not(.is-menu-open) .adx-subtoggle { display: none; }
}

/* ---- Winning against items-justified-right ------------------------
 *
 * The navigation is right-justified by design on the desktop bar, and the
 * same classes come along into the overlay: align-items: flex-end makes
 * every row shrink to its text and sit against the right edge, which is
 * not a drawer, it is a column of right-aligned words. The doubled class
 * names below are there to outrank the block's own, and the li has to
 * become a block before the link inside it can fill the row.
 */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container.wp-block-navigation__container {
	align-items: stretch;
	justify-content: flex-start;
	text-align: start;
}

.wp-block-navigation__responsive-container.is-menu-open li.wp-block-navigation-item {
	display: block;
	inline-size: 100%;
	flex: 0 0 auto;
}

.wp-block-navigation__responsive-container.is-menu-open li.wp-block-navigation-item > .wp-block-navigation-item__content {
	display: block;
	inline-size: 100%;
	text-align: start;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container {
	align-items: stretch;
	text-align: start;
}

/* The content wrapper is right-justified too, which left every row inset
 * fifty pixels from the panel's left edge. Same remedy. */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content.wp-block-navigation__responsive-container-content {
	align-items: stretch;
	justify-content: flex-start;
	inline-size: 100%;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
	inline-size: 100%;
}

/* Two last overrides, both of which the block wins by one class: the
 * overlay's own padding (which floated the panel off the left edge) and the
 * row padding (the block zeroes the link's padding, so the rows were
 * twenty-five pixels tall and nowhere near tappable). */
.wp-block-navigation__responsive-container.is-menu-open.wp-block-navigation__responsive-container.is-menu-open {
	padding: 0;
}

.wp-block-navigation__responsive-container.is-menu-open li.wp-block-navigation-item > .wp-block-navigation-item__content.wp-block-navigation-item__content {
	padding-block: 0.95rem;
	padding-inline: 0 3rem;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container li.wp-block-navigation-item > .wp-block-navigation-item__content.wp-block-navigation-item__content {
	padding-block: 0.55rem;
	padding-inline: 0.9rem 0;
}

.wp-block-navigation__responsive-container.is-menu-open li.wp-block-navigation-item.wp-block-navigation-item {
	align-items: stretch;
}

/* ==== ADX-FIXES 2026-11-09 (vanishoja.com client round 1). Delete this whole block to revert. ==== */
.adx-eyebrow, .adx-eyebrow.has-brand-color { color: var(--wp--preset--color--brand) !important; }
.adx-stat-panel__value { color: var(--wp--preset--color--brand) !important; }

/* Typed text must be readable: white fields, dark text. */
.adx-hero-search .adx-search__input { color: #15171a !important; -webkit-text-fill-color: #15171a; caret-color: #15171a; }
.adx-hero-search .adx-search__input::placeholder { color: #6b7078; opacity: 1; -webkit-text-fill-color: #6b7078; }
.adromax-crm-form input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=file]),
.adromax-crm-form textarea,
.adromax-crm-form select { color: #15171a !important; -webkit-text-fill-color: #15171a; caret-color: #15171a; }
.adromax-crm-form ::placeholder { color: #6b7078 !important; opacity: 1; -webkit-text-fill-color: #6b7078; }
.adromax-crm-form select option { color: #15171a; background: #fff; }

/* Home hero: centred. */
.adx-hero-content { text-align: center; }
.adx-hero-content .adx-eyebrow { justify-content: center; }
.adx-hero-content .adx-credential { justify-content: center; align-items: center !important; margin-block-end: 0.35rem; }
.adx-hero-content .adx-credential::before, .adx-hero-content .adx-credential::after { display: none !important; }
.adx-hero-content .wp-block-buttons { justify-content: center; }
.adx-hero-content .adx-hero-search { margin-inline: auto; }
.adx-hero-content .adx-hero-search form.adx-search { margin-inline: auto; }
.adx-hero-content .adx-hero-search__more, .adx-hero-content .adx-serves { text-align: center; margin-inline: auto; }
.adx-credential-brokerage { margin: 0 0 var(--wp--preset--spacing--40); font-size: var(--wp--preset--font-size--sm); letter-spacing: 0.14em; text-transform: uppercase; color: var(--wp--preset--color--on-deep); }
.adx-credential-brokerage--about { margin: 0 0 var(--wp--preset--spacing--30); letter-spacing: 0.1em; color: var(--wp--preset--color--accent); }

/* Brokerage badge on the portrait: two lines. */
.adx-brokerage--badge .adx-brokerage__name, .adx-brokerage--badge .adx-brokerage__note { display: block; }
.adx-brokerage--badge .adx-brokerage__note { margin-top: 0.15rem; }

/* Search by area / communities: headings left, city names bigger. */
.adx-findareas .adx-section__head, .adx-findareas .adx-section__head > * { text-align: left !important; justify-content: flex-start !important; margin-inline: 0 !important; }
.adx-findareas .adx-section__head { max-width: none; align-items: flex-start; }
.adx-findareas__kicker { text-align: left !important; justify-content: flex-start !important; }
.adx-area-card__name { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.95rem) !important; line-height: 1.15; }
.adx-areas h3 { font-size: clamp(1.4rem, 1.15rem + 0.8vw, 1.75rem); }

/* Heading blocks sit on the wide edge, left aligned: Listings/Buy search, areas explorer, process steps. */
.adx-search-page > :not(.adx-search-page__bar),
.adx-areas > .adx-eyebrow, .adx-areas > h2, .adx-areas > p,
.adx-section:has(> .adx-steps) > .adx-eyebrow, .adx-section:has(> .adx-steps) > h2 { max-width: var(--wp--style--global--wide-size, 1200px) !important; width: 100%; margin-inline: auto !important; text-align: left !important; }

/* Section bar link ("See every office listing"): larger. */
.adx-section-bar > p { font-size: 1.125rem !important; }
.adx-section-bar > p a { font-size: 1.125rem; font-weight: 600; }

/* Contact details: larger, phone and email in the brand red. */
.adx-card .adx-business-info { font-size: 1.0625rem; }
.adx-card .adx-business-info dt { font-size: 0.8rem; }
.adx-business-info a[href^="tel"], .adx-business-info a[href^="mailto"] { color: var(--wp--preset--color--brand) !important; }
.adx-site-footer .adx-business-info a { color: var(--wp--preset--color--brand) !important; }

/* Closing call-to-action blocks (Buy, Sell, Listings). */
.adx-cta-block { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--60); }
.adx-cta-block .wp-block-buttons { margin-top: var(--wp--preset--spacing--30); }
.adx-cta-block .adx-cta-call { margin-top: 0.75rem; }
.adx-cta-block .adx-cta-call a { color: var(--wp--preset--color--brand); font-weight: 700; }
.adx-cta-block .wp-block-columns { gap: var(--wp--preset--spacing--60); }

/* About page: everything left aligned. */
body.adx-about-left .entry-content, body.adx-about-left .entry-content * { text-align: left !important; }
body.adx-about-left .entry-content .adx-credential, body.adx-about-left .entry-content .wp-block-buttons { justify-content: flex-start; }
/* About page: one left edge for every line (round 1b). */
body.adx-about-left .entry-content > .wp-block-group > :where(p, h1, h2, h3, ul, ol, .wp-block-heading) { max-width: 68ch !important; margin-left: max(0px, calc((100% - var(--wp--style--global--wide-size, 1200px)) / 2)) !important; margin-right: auto !important; }
body.adx-about-left .entry-content > .wp-block-group > :where(.wp-block-columns, .alignwide, .wp-block-group) { max-width: var(--wp--style--global--wide-size, 1200px) !important; margin-inline: auto !important; }
body.adx-about-left .entry-content > .wp-block-group:not(.alignfull) { max-width: var(--wp--style--global--wide-size, 1200px) !important; margin-inline: auto !important; }
.adx-card .adx-business-info dd, .adx-card .adx-business-info dd a, .adx-card .adx-business-info address { font-size: 1.125rem !important; line-height: 1.55; }
.adx-card .adx-business-info dt { font-size: 0.85rem !important; }
body.home #listings .row:has(> div > .rps-contact-form), body.home #listings .row:has(> div > .rps-sidebar-favorites), body.home #listings .rps-contact-form, body.home #listings .rps-sidebar-favorites { display: none !important; }
/* ==== /ADX-FIXES ==== */

/* ==== ADX-HEADER-FOOTER 2026-11-09 (premium header + footer). Delete this block to revert. ==== */
.adx-site-header { transition: box-shadow .3s ease; }
.adx-site-header__bar { position: relative; background-color: color-mix(in srgb, var(--wp--preset--color--surface) 80%, transparent) !important; -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); border-bottom: 0 !important; transition: padding .3s ease, box-shadow .3s ease; }
.adx-site-header__bar::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; pointer-events: none; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--wp--preset--color--brand) 65%, transparent) 22%, color-mix(in srgb, var(--wp--preset--color--brand) 65%, transparent) 78%, transparent); opacity: .6; }
.adx-site-header.is-scrolled .adx-site-header__bar { padding-top: 8px !important; padding-bottom: 8px !important; box-shadow: 0 14px 34px -20px rgba(0,0,0,.7); }
.adx-site-header .wp-block-site-logo img { max-height: 84px; width: auto !important; transition: max-height .3s ease; }
.adx-site-header.is-scrolled .wp-block-site-logo img { max-height: 54px; }
.adx-utility-bar { max-height: 64px; overflow: hidden; font-size: 13px; letter-spacing: .02em; transition: max-height .3s ease, opacity .25s ease, padding .3s ease; }
.adx-site-header.is-scrolled .adx-utility-bar { max-height: 0; opacity: 0; padding-top: 0 !important; padding-bottom: 0 !important; }

.adx-site-header .wp-block-navigation .wp-block-navigation-item__content { position: relative; font-size: 13px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; text-decoration: none !important; padding: .55rem .1rem; }
.adx-site-header .wp-block-navigation .wp-block-navigation-item__content::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 2px; height: 2px; background: var(--wp--preset--color--brand); transition: left .25s ease, right .25s ease; }
.adx-site-header .wp-block-navigation .wp-block-navigation-item__content:hover::after,
.adx-site-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content::after,
.adx-site-header .wp-block-navigation .wp-block-navigation-item__content[aria-current]::after { left: 0; right: 0; }
.adx-site-header .wp-block-navigation__submenu-container { border-radius: 14px !important; border: 1px solid var(--wp--preset--color--line) !important; box-shadow: 0 24px 48px -20px rgba(0,0,0,.65); padding: .5rem !important; }
.adx-site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content { text-transform: none; letter-spacing: .01em; font-size: 14px; padding: .55rem .8rem; border-radius: 8px; }
.adx-site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content::after { display: none; }
.adx-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.35rem; text-transform: none; letter-spacing: 0; }
.adx-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after { display: none; }

.adx-header-cta .wp-block-button__link { background: linear-gradient(135deg, color-mix(in srgb, var(--wp--preset--color--brand) 82%, #fff), var(--wp--preset--color--brand)) !important; box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--wp--preset--color--brand) 90%, transparent); font-weight: 700; letter-spacing: .04em; transition: transform .2s ease, box-shadow .2s ease; }
.adx-header-cta .wp-block-button__link::after { content: "\2192"; margin-left: .55rem; display: inline-block; transition: transform .2s ease; }
.adx-header-cta .wp-block-button__link:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -12px color-mix(in srgb, var(--wp--preset--color--brand) 100%, transparent); }
.adx-header-cta .wp-block-button__link:hover::after { transform: translateX(3px); }
@media (max-width: 781px) { .adx-site-header__bar { padding-top: 10px !important; padding-bottom: 10px !important; } .adx-header-cta .wp-block-button__link::after { display: none; } }

/* Footer */
.adx-footer-main { position: relative; background-image: radial-gradient(900px 360px at 88% -8%, color-mix(in srgb, var(--wp--preset--color--brand) 16%, transparent), transparent 70%) !important; }
.adx-footer-main::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, transparent, var(--wp--preset--color--brand), transparent); opacity: .8; }
.adx-footer-heading { position: relative; padding-bottom: .9rem; margin-bottom: 1.1rem !important; }
.adx-footer-heading::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; background: var(--wp--preset--color--brand); }
.adx-site-footer .wp-block-navigation a, .adx-footer-cols .wp-block-navigation-item__content { transition: color .2s ease, transform .2s ease; }
.adx-site-footer .wp-block-navigation a:hover { color: var(--wp--preset--color--brand) !important; }
.adx-footer-areas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .35rem 1.25rem; }
.adx-footer-areas a { white-space: nowrap; display: inline-block; padding: .2rem 0; color: var(--wp--preset--color--on-deep); font-weight: 600; text-decoration: none; transition: color .2s ease, transform .2s ease; }
.adx-footer-areas a:hover { color: var(--wp--preset--color--brand); transform: translateX(3px); }
.adx-footer-areas__all { grid-column: 1 / -1; margin-top: .5rem; }
.adx-footer-areas__all a { color: var(--wp--preset--color--brand); font-size: .9rem; }
.adx-footer-cols .adx-map-embed { border-radius: 14px; overflow: hidden; box-shadow: 0 18px 40px -24px rgba(0,0,0,.8); }
.adx-footer-legal { align-items: center; gap: .75rem 1.5rem; }
.adx-footer-legal a { text-decoration: none; transition: color .2s ease; }
.adx-footer-legal a:hover { color: var(--wp--preset--color--brand); }
.adx-footer-copy { max-width: 62ch; line-height: 1.55; }
.adx-to-top { font-weight: 700; }
@media (max-width: 781px) { .adx-footer-areas { grid-template-columns: 1fr 1fr; } }
/* ==== /ADX-HEADER-FOOTER ==== */

/* ==== ADX-HEADER-FIX 2026-11-09: logo overlapped "Home"; hero eyebrow closing dash ==== */
.adx-site-header .adx-site-header__bar > .alignwide{max-width:min(1400px,100%);}
.adx-site-header .adx-header-actions{flex:1 1 auto;min-width:0;gap:14px;}
.adx-site-header .adx-header-actions .wp-block-navigation{flex:0 0 auto;}
.adx-site-header .adx-header-actions .wp-block-navigation__container{column-gap:clamp(10px,1.1vw,18px);flex-wrap:nowrap;}
.adx-site-header .adx-brand{flex:0 0 auto;margin-right:8px;}
@media (min-width:782px) and (max-width:1320px){
	.adx-site-header .adx-header-actions .wp-block-navigation-item__content{font-size:.74rem;letter-spacing:.06em;}
	.adx-site-header .adx-header-cta .wp-block-button__link{padding-left:.9rem !important;padding-right:.9rem !important;}
}
.adx-hero-content .adx-eyebrow::after{content:"";display:block;width:28px;height:2px;background:var(--wp--preset--color--brand);margin-left:-.28em;}

/* ==== ADX-HEADER-FIX-2 2026-11-09: below 1240px the menu would run under the logo, so use the hamburger ==== */
@media (min-width:600px) and (max-width:1240px){
	.adx-site-header .wp-block-navigation__responsive-container-open{display:flex !important;}
	.adx-site-header .wp-block-navigation__responsive-container:not(.is-menu-open){display:none !important;}
}

/* ==== ADX-V2630 2026-11-10: bigger cropped header logo, footer redesign (icons, CTA photo band, trust strip, map on the right). Delete this block to revert. ==== */
/* Header logo: the artwork sat in a big empty canvas, so it looked tiny. Crop the canvas away with the image's own proportions and size the visible mark. */
.adx-site-header { --adx-logo-h: 80px; }
.adx-site-header.is-scrolled { --adx-logo-h: 56px; }
.adx-site-header .wp-block-site-logo a.custom-logo-link { display: block; position: relative; overflow: hidden; height: var(--adx-logo-h); width: calc(var(--adx-logo-h) * 2.13); transition: height .3s ease, width .3s ease; }
.adx-site-header .wp-block-site-logo a.custom-logo-link img[data-adx-logo] { position: absolute; max-height: none !important; max-width: none !important; height: auto !important; }
.adx-site-header .wp-block-site-logo img[data-adx-logo="dark"] { width: 111.82% !important; left: -5.91%; top: -24.15%; }
.adx-site-header .wp-block-site-logo img[data-adx-logo="light"] { width: 111.89% !important; left: -5.94%; top: -24.02%; }
.adx-footer-logo { --adx-logo-h: 92px; }
.adx-footer-logo a.custom-logo-link, .adx-footer-logo > a { display: block; position: relative; overflow: hidden; height: var(--adx-logo-h); width: calc(var(--adx-logo-h) * 2.13); }
.adx-footer-logo img[data-adx-logo] { position: absolute; max-height: none !important; max-width: none !important; height: auto !important; }
.adx-footer-logo img[data-adx-logo="dark"] { width: 111.82% !important; left: -5.91%; top: -24.15%; }
.adx-footer-logo img[data-adx-logo="light"] { width: 111.89% !important; left: -5.94%; top: -24.02%; }
@media (max-width: 781px) { .adx-site-header { --adx-logo-h: 54px; } .adx-site-header.is-scrolled { --adx-logo-h: 46px; } }
/* The logo is wider now, so the hamburger takes over a little earlier. */
@media (min-width: 600px) and (max-width: 1340px) {
	.adx-site-header .wp-block-navigation__responsive-container-open { display: flex !important; }
	.adx-site-header .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
}

/* Footer: photo call-to-action band */
.adx-footer-cta { position: relative; isolation: isolate; overflow: hidden; background: #0d0d0f url("/wp-content/uploads/2026/10/luxury-modern-house-richmondh-hill.jpg") center 40% / cover no-repeat; }
.adx-footer-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(10,10,12,.94) 0%, rgba(10,10,12,.82) 46%, rgba(120,12,22,.55) 100%); }
.adx-footer-cta__inner { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 2rem 3rem; align-items: center; padding-block: clamp(2.5rem, 5vw, 4rem); }
.adx-footer-cta h2 { color: #fff !important; margin: 0 0 .6rem; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.15; }
.adx-footer-cta p { color: rgba(255,255,255,.82) !important; margin: 0; max-width: 52ch; font-size: 1.05rem; line-height: 1.6; }
.adx-footer-cta .adx-eyebrow-line { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 .8rem; color: var(--wp--preset--color--brand) !important; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.adx-footer-cta .adx-eyebrow-line::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.adx-footer-cta__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: flex-end; }
.adx-footer-cta__actions a { display: inline-flex; align-items: center; gap: .55rem; padding: .95rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; white-space: nowrap; }
.adx-footer-cta__actions a:first-child { background: var(--wp--preset--color--brand); color: #fff; box-shadow: 0 14px 30px -14px var(--wp--preset--color--brand); }
.adx-footer-cta__actions a:last-child { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.4); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.adx-footer-cta__actions a:hover { transform: translateY(-2px); }
.adx-footer-cta__actions a:last-child:hover { background: rgba(255,255,255,.18); }
.adx-footer-cta__actions svg { width: 1.15rem; height: 1.15rem; }
@media (max-width: 860px) { .adx-footer-cta__inner { grid-template-columns: 1fr; } .adx-footer-cta__actions { justify-content: flex-start; } }

/* Footer: trust strip */
.adx-footer-trust { list-style: none; margin: 0 0 clamp(2rem, 4vw, 3rem); padding: 0 0 clamp(1.6rem, 3vw, 2.4rem); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.adx-footer-trust li { display: flex; gap: .9rem; align-items: flex-start; margin: 0; }
.adx-footer-trust__icon { flex: 0 0 auto; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: var(--wp--preset--color--brand); background: color-mix(in srgb, var(--wp--preset--color--brand) 14%, transparent); border: 1px solid color-mix(in srgb, var(--wp--preset--color--brand) 32%, transparent); }
.adx-footer-trust__icon svg { width: 22px; height: 22px; }
.adx-footer-trust strong { display: block; color: #fff; font-size: .98rem; line-height: 1.3; }
.adx-footer-trust span.t { display: block; color: var(--wp--preset--color--on-deep-muted); font-size: .84rem; line-height: 1.45; margin-top: .15rem; }
@media (max-width: 1000px) { .adx-footer-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .adx-footer-trust { grid-template-columns: 1fr; } }

/* Footer: five columns, map on the right */
.adx-footer-cols { align-items: flex-start; }
.adx-footer-cols .adx-footer-areas { grid-template-columns: 1fr; gap: .15rem; }
.adx-footer-cols .adx-footer-areas a { white-space: normal; }
.adx-footer-cols .adx-map-embed, .adx-footer-cols .adx-map-embed.is-compact { margin: 0; border: 1px solid rgba(255,255,255,.14); height: 340px; max-height: none; aspect-ratio: auto; }
.adx-footer-cols .adx-map-embed iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(.25) contrast(1.05); }
@media (min-width: 782px) and (max-width: 1180px) {
	.adx-footer-cols { flex-wrap: wrap !important; }
	.adx-footer-cols > .wp-block-column { flex-basis: calc(50% - 1.5rem) !important; flex-grow: 1 !important; }
}

/* Footer: heading + contact row icons */
.adx-fh { display: flex; align-items: center; gap: .6rem; }
.adx-fh::before { content: ""; flex: 0 0 auto; width: 1.15rem; height: 1.15rem; background: var(--wp--preset--color--brand); }
.adx-footer-cols .adx-business-info .adx-info-row { position: relative; padding-left: 2.6rem; min-height: 2rem; }
.adx-footer-cols .adx-business-info .adx-info-row::before { content: ""; position: absolute; left: 0; top: .2rem; width: 1.9rem; height: 1.9rem; border-radius: 10px; background: color-mix(in srgb, var(--wp--preset--color--brand) 16%, transparent); }
.adx-footer-cols .adx-business-info .adx-info-row::after { content: ""; position: absolute; left: .5rem; top: .7rem; width: .9rem; height: .9rem; background: var(--wp--preset--color--brand); }
.adx-fh--explore::before{-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Ccircle%20cx%3D'12'%20cy%3D'12'%20r%3D'10'%2F%3E%3Cpolygon%20points%3D'16.24%207.76%2014.12%2014.12%207.76%2016.24%209.88%209.88%2016.24%207.76'%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Ccircle%20cx%3D'12'%20cy%3D'12'%20r%3D'10'%2F%3E%3Cpolygon%20points%3D'16.24%207.76%2014.12%2014.12%207.76%2016.24%209.88%209.88%2016.24%207.76'%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;}
.adx-fh--areas::before{-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M3%207l6-3%206%203%206-3v13l-6%203-6-3-6%203z'%2F%3E%3Cpath%20d%3D'M9%204v13'%2F%3E%3Cpath%20d%3D'M15%207v13'%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M3%207l6-3%206%203%206-3v13l-6%203-6-3-6%203z'%2F%3E%3Cpath%20d%3D'M9%204v13'%2F%3E%3Cpath%20d%3D'M15%207v13'%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;}
.adx-fh--touch::before{-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M21%2015a2%202%200%200%201-2%202H7l-4%204V5a2%202%200%200%201%202-2h14a2%202%200%200%201%202%202z'%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M21%2015a2%202%200%200%201-2%202H7l-4%204V5a2%202%200%200%201%202-2h14a2%202%200%200%201%202%202z'%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;}
.adx-fh--visit::before{-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M20%2010c0%206-8%2012-8%2012s-8-6-8-12a8%208%200%200%201%2016%200Z'%2F%3E%3Ccircle%20cx%3D'12'%20cy%3D'10'%20r%3D'3'%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M20%2010c0%206-8%2012-8%2012s-8-6-8-12a8%208%200%200%201%2016%200Z'%2F%3E%3Ccircle%20cx%3D'12'%20cy%3D'10'%20r%3D'3'%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;}
.adx-footer-cols .adx-business-info .adx-info-row:has(a[href^="tel:"])::after{-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M22%2016.92v3a2%202%200%200%201-2.18%202%2019.8%2019.8%200%200%201-8.63-3.07%2019.5%2019.5%200%200%201-6-6%2019.8%2019.8%200%200%201-3.07-8.67A2%202%200%200%201%204.11%202h3a2%202%200%200%201%202%201.72c.13.96.36%201.9.7%202.81a2%202%200%200%201-.45%202.11L8.09%209.91a16%2016%200%200%200%206%206l1.27-1.27a2%202%200%200%201%202.11-.45c.91.34%201.85.57%202.81.7A2%202%200%200%201%2022%2016.92z'%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M22%2016.92v3a2%202%200%200%201-2.18%202%2019.8%2019.8%200%200%201-8.63-3.07%2019.5%2019.5%200%200%201-6-6%2019.8%2019.8%200%200%201-3.07-8.67A2%202%200%200%201%204.11%202h3a2%202%200%200%201%202%201.72c.13.96.36%201.9.7%202.81a2%202%200%200%201-.45%202.11L8.09%209.91a16%2016%200%200%200%206%206l1.27-1.27a2%202%200%200%201%202.11-.45c.91.34%201.85.57%202.81.7A2%202%200%200%201%2022%2016.92z'%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;}
.adx-footer-cols .adx-business-info .adx-info-row:has(a[href^="mailto:"])::after{-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Crect%20width%3D'20'%20height%3D'16'%20x%3D'2'%20y%3D'4'%20rx%3D'2'%2F%3E%3Cpath%20d%3D'm22%207-8.97%205.7a1.94%201.94%200%200%201-2.06%200L2%207'%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Crect%20width%3D'20'%20height%3D'16'%20x%3D'2'%20y%3D'4'%20rx%3D'2'%2F%3E%3Cpath%20d%3D'm22%207-8.97%205.7a1.94%201.94%200%200%201-2.06%200L2%207'%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;}
.adx-footer-cols .adx-business-info .adx-info-row:has(address)::after{-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M20%2010c0%206-8%2012-8%2012s-8-6-8-12a8%208%200%200%201%2016%200Z'%2F%3E%3Ccircle%20cx%3D'12'%20cy%3D'10'%20r%3D'3'%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M20%2010c0%206-8%2012-8%2012s-8-6-8-12a8%208%200%200%201%2016%200Z'%2F%3E%3Ccircle%20cx%3D'12'%20cy%3D'10'%20r%3D'3'%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;}
.adx-footer-cols .adx-business-info .adx-info-row:not(:has(a, address))::after{-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M6%209V2h12v7'%2F%3E%3Cpath%20d%3D'M6%2018H4a2%202%200%200%201-2-2v-5a2%202%200%200%201%202-2h16a2%202%200%200%201%202%202v5a2%202%200%200%201-2%202h-2'%2F%3E%3Crect%20width%3D'12'%20height%3D'8'%20x%3D'6'%20y%3D'14'%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M6%209V2h12v7'%2F%3E%3Cpath%20d%3D'M6%2018H4a2%202%200%200%201-2-2v-5a2%202%200%200%201%202-2h16a2%202%200%200%201%202%202v5a2%202%200%200%201-2%202h-2'%2F%3E%3Crect%20width%3D'12'%20height%3D'8'%20x%3D'6'%20y%3D'14'%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;}
/* ==== /ADX-V2630 ==== */

/* ==== ADX-V2630B 2026-11-10: About, Selling and Home-valuation page sections. Delete this block to revert. ==== */
.adx2-sec { max-width: var(--wp--style--global--wide-size, 78rem); margin-inline: auto; padding: clamp(3rem, 6vw, 5rem) var(--wp--preset--spacing--40, 1.5rem) 0; box-sizing: border-box; }
@media (min-width: 1100px) { .adx2-sec { padding-inline: 0; } }
.adx2-sec--last { padding-bottom: clamp(3rem, 6vw, 5rem); }
.adx2-head { max-width: 62ch; margin: 0 0 clamp(1.5rem, 3vw, 2.25rem); }
.adx2-eyebrow { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 .7rem; color: var(--wp--preset--color--brand); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.adx2-eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.adx2-title { margin: 0 0 .7rem; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); line-height: 1.12; text-wrap: balance; }
.adx2-lede { margin: 0; font-size: 1.08rem; line-height: 1.65; color: var(--wp--preset--color--muted); }
.adx2-grid { display: grid; gap: 1.25rem; }
.adx2-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.adx2-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.adx2-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .adx2-grid--3, .adx2-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .adx2-grid--3, .adx2-grid--4, .adx2-grid--2 { grid-template-columns: 1fr; } }
.adx2-card { position: relative; padding: 1.6rem 1.5rem; border-radius: 18px; background: var(--wp--preset--color--surface-alt); border: 1px solid var(--wp--preset--color--line); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.adx2-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--wp--preset--color--brand) 55%, var(--wp--preset--color--line)); box-shadow: 0 22px 40px -26px rgba(0,0,0,.6); }
.adx2-icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 1rem; border-radius: 14px; color: var(--wp--preset--color--brand); background: color-mix(in srgb, var(--wp--preset--color--brand) 13%, transparent); border: 1px solid color-mix(in srgb, var(--wp--preset--color--brand) 30%, transparent); }
.adx2-icon svg { width: 24px; height: 24px; }
.adx2-card h3 { margin: 0 0 .45rem; font-size: 1.12rem; line-height: 1.3; }
.adx2-card p { margin: 0; font-size: .97rem; line-height: 1.6; color: var(--wp--preset--color--muted); }
.adx2-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--wp--preset--color--line); border-radius: 20px; overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, var(--wp--preset--color--brand) 10%, var(--wp--preset--color--surface-alt)), var(--wp--preset--color--surface-alt)); }
.adx2-stat { padding: 1.8rem 1.5rem; text-align: left; border-right: 1px solid var(--wp--preset--color--line); }
.adx2-stat:last-child { border-right: 0; }
.adx2-stat b { display: block; font-family: var(--wp--preset--font-family--display, inherit); font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); line-height: 1; color: var(--wp--preset--color--brand); font-weight: 600; }
.adx2-stat span { display: block; margin-top: .5rem; font-size: .92rem; color: var(--wp--preset--color--muted); }
@media (max-width: 820px) { .adx2-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .adx2-stat:nth-child(2) { border-right: 0; } .adx2-stat:nth-child(-n+2) { border-bottom: 1px solid var(--wp--preset--color--line); } }
.adx2-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: adx2s; }
.adx2-step { position: relative; display: grid; grid-template-columns: 58px 1fr; gap: 1.25rem; align-items: start; padding: 1.4rem 1.5rem; border-radius: 18px; background: var(--wp--preset--color--surface-alt); border: 1px solid var(--wp--preset--color--line); counter-increment: adx2s; }
.adx2-step::before { content: counter(adx2s, decimal-leading-zero); display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: var(--wp--preset--color--brand); color: #fff; font-weight: 700; font-size: 1.1rem; letter-spacing: .04em; box-shadow: 0 12px 24px -14px var(--wp--preset--color--brand); }
.adx2-step h3 { margin: .15rem 0 .35rem; font-size: 1.15rem; }
.adx2-step p { margin: 0; line-height: 1.62; color: var(--wp--preset--color--muted); }
@media (min-width: 900px) { .adx2-steps--2 { grid-template-columns: 1fr 1fr; } }
.adx2-faq { display: grid; gap: .75rem; max-width: 60rem; }
.adx2-faq details { border: 1px solid var(--wp--preset--color--line); border-radius: 14px; background: var(--wp--preset--color--surface-alt); padding: 0 1.25rem; transition: border-color .2s ease; }
.adx2-faq details[open] { border-color: color-mix(in srgb, var(--wp--preset--color--brand) 55%, var(--wp--preset--color--line)); }
.adx2-faq summary { cursor: pointer; list-style: none; padding: 1.1rem 0; font-weight: 650; font-size: 1.04rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.adx2-faq summary::-webkit-details-marker { display: none; }
.adx2-faq summary::after { content: "+"; flex: 0 0 auto; width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--wp--preset--color--brand) 14%, transparent); color: var(--wp--preset--color--brand); font-size: 1.2rem; line-height: 1; }
.adx2-faq details[open] summary::after { content: "\2212"; }
.adx2-faq details p { margin: 0 0 1.15rem; line-height: 1.65; color: var(--wp--preset--color--muted); }
.adx2-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.adx2-chips li { margin: 0; padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--wp--preset--color--line-strong, var(--wp--preset--color--line)); background: var(--wp--preset--color--surface-alt); font-weight: 600; font-size: .95rem; }
.adx2-chips--brand li { border-color: color-mix(in srgb, var(--wp--preset--color--brand) 45%, transparent); background: color-mix(in srgb, var(--wp--preset--color--brand) 10%, transparent); }
.adx2-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .6rem; }
.adx2-list li { position: relative; margin: 0; padding-left: 1.9rem; line-height: 1.55; }
.adx2-list li::before { content: ""; position: absolute; left: 0; top: .2rem; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: color-mix(in srgb, var(--wp--preset--color--brand) 16%, transparent); }
.adx2-list li::after { content: ""; position: absolute; left: .27rem; top: .47rem; width: .72rem; height: .72rem; background: var(--wp--preset--color--brand); -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.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-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='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; }
.adx2-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 800px) { .adx2-split { grid-template-columns: 1fr; } }
.adx2-split .adx2-card { padding: 2rem; }
.adx2-split h3 { font-size: 1.3rem; }
.adx2-cta { margin-top: clamp(3rem, 6vw, 5rem); position: relative; overflow: hidden; border-radius: 24px; padding: clamp(2rem, 5vw, 3.5rem); color: #fff; background: linear-gradient(110deg, rgba(10,10,12,.96), rgba(10,10,12,.84) 55%, rgba(150,14,30,.78)), url("/wp-content/uploads/2026/10/luxury-modern-house-richmondh-hill.jpg") center/cover; display: grid; grid-template-columns: minmax(0, 1.5fr) auto; gap: 1.5rem 2.5rem; align-items: center; }
.adx2-cta h2 { margin: 0 0 .5rem; color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
.adx2-cta p { margin: 0; color: rgba(255,255,255,.84); max-width: 54ch; line-height: 1.6; }
.adx2-cta__btns { display: flex; flex-wrap: wrap; gap: .8rem; }
.adx2-btn { display: inline-flex; align-items: center; gap: .55rem; padding: .95rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none; background: var(--wp--preset--color--brand); color: #fff; transition: transform .2s ease; white-space: nowrap; }
.adx2-btn:hover { transform: translateY(-2px); }
.adx2-btn--ghost { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.45); }
.adx2-btn svg { width: 1.1rem; height: 1.1rem; }
@media (max-width: 860px) { .adx2-cta { grid-template-columns: 1fr; } }
.adx-area-hero .is-style-outline .wp-block-button__link { color: #fff; background: transparent; border-color: rgba(255,255,255,.65); }
/* About: portrait */
.adx2-bio { gap: clamp(2rem, 5vw, 4rem) !important; align-items: flex-start; }
@media (min-width: 782px) { .adx2-bio > .wp-block-column:first-child { position: sticky; top: 130px; } }
figure.adx-portrait { position: relative; margin: 0 0 2.2rem; isolation: isolate; }
figure.adx-portrait::before { content: ""; position: absolute; inset: 18px -16px -16px 18px; z-index: -1; border: 2px solid var(--wp--preset--color--brand); border-radius: 26px; opacity: .85; }
figure.adx-portrait::after { content: ""; position: absolute; inset: -30px auto auto -30px; width: 150px; height: 150px; z-index: -2; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--wp--preset--color--brand) 40%, transparent), transparent); }
figure.adx-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 11 / 12; object-fit: cover; object-position: top center; border-radius: 22px; box-shadow: 0 34px 60px -30px rgba(0,0,0,.75); }
.adx2-plate { margin-top: 0; padding: 1.2rem 1.3rem; border-radius: 16px; background: var(--wp--preset--color--surface-alt); border: 1px solid var(--wp--preset--color--line); border-left: 4px solid var(--wp--preset--color--brand); }
.adx2-plate strong { display: block; font-size: 1.15rem; }
.adx2-plate span { display: block; margin-top: .2rem; font-size: .92rem; color: var(--wp--preset--color--muted); line-height: 1.45; }
.adx2-plate .adx2-chips { margin-top: .9rem; }
.adx2-plate .adx2-chips li { padding: .3rem .75rem; font-size: .8rem; }
.adx2-bio h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); line-height: 1.12; margin: 0 0 1.1rem; text-wrap: balance; }
.adx2-bio p { line-height: 1.75; font-size: 1.06rem; }
.adx-area-hero .adx-eyebrow { color: #fff !important; font-size: .8rem; text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.adx-area-hero .adx-eyebrow::before { background: var(--wp--preset--color--brand); }
@media (max-width: 520px) { .adx-header-cta .adx-cta-long { display: none; } .adx-header-cta .wp-block-button__link { padding-left: 1.1rem !important; padding-right: 1.1rem !important; } }
/* ==== /ADX-V2630B ==== */

/* ==== ADX-V2632 2026-11-11: headings centred everywhere, valuation band aligned to the form, RealtyPress filter panel, Contact page. Delete this block to revert. ==== */

/* -- 1. Section headings: eyebrow, title and lede centred on every page. -- */
.adx-section__head,
.adx-section-head,
.adx2-head,
.adx-findareas .adx-section__head {
	text-align: center !important;
	margin-inline: auto !important;
	max-inline-size: min(100%, 52rem) !important;
	align-items: center !important;
}
.adx-section__head > *,
.adx-section-head > *,
.adx2-head > *,
.adx-findareas .adx-section__head > *,
.adx-findareas__kicker {
	text-align: center !important;
	margin-inline: auto !important;
	justify-content: center !important;
}
.adx-section__head :is(p, .adx-lede, .adx2-lede),
.adx-section-head :is(p, .adx-lede, .adx2-lede),
.adx2-head :is(p, .adx2-lede) { max-inline-size: 64ch; }

/* The eyebrow gets its dash on both sides when it is centred. */
:is(.adx-section__head, .adx-section-head, .adx2-head, .adx-findareas .adx-section__head, .adx-section > .adx-eyebrow, .adx-section > .wp-block-group:has(> .adx-eyebrow)) :is(.adx-eyebrow, .adx2-eyebrow, .adx-findareas__kicker)::after,
.adx-section:not(.wp-block-cover) > .adx-eyebrow::after {
	content: "";
	inline-size: 1.75rem;
	block-size: 2px;
	flex: 0 0 auto;
	background-color: currentColor;
	opacity: 0.55;
}
.adx2-eyebrow, .adx-findareas__kicker { display: flex; align-items: center; gap: .6rem; }
.adx-findareas__kicker::before { content: ""; inline-size: 1.75rem; block-size: 2px; flex: 0 0 auto; background-color: currentColor; opacity: .55; }

/* Headings that sit straight in a section (eyebrow, h2, lede) rather than in a head group. */
.wp-block-group.adx-section:not(.wp-block-cover) > .adx-eyebrow,
.wp-block-group.adx-section:not(.wp-block-cover) > .adx-eyebrow + .wp-block-heading,
.wp-block-group.adx-section:not(.wp-block-cover) > .adx-eyebrow + .wp-block-heading + :is(p, .adx-lede),
.wp-block-group.adx-section:not(.wp-block-cover) > .wp-block-group:has(> .adx-eyebrow) {
	text-align: center !important;
	justify-content: center !important;
	margin-inline: auto !important;
}
.wp-block-group.adx-section:not(.wp-block-cover) > .wp-block-group:has(> .adx-eyebrow) { max-inline-size: min(100%, 52rem) !important; }
.wp-block-group.adx-section:not(.wp-block-cover) > .adx-eyebrow + .wp-block-heading + :is(p, .adx-lede) { max-inline-size: 64ch; }
.wp-block-group.adx-section:not(.wp-block-cover) > .wp-block-group:has(> .adx-eyebrow) > * { text-align: center; margin-inline: auto; justify-content: center; }

/* A heading with a link beside it (office listings): heading centred, the link centred under it. */
.adx-section-bar { flex-direction: column !important; align-items: center !important; text-align: center; }
.adx-section-bar > .adx-section-head { flex: 0 0 auto !important; }
.adx-section-bar > p { text-align: center !important; padding-bottom: 0 !important; margin-top: -.5rem !important; }

/* -- 2. Valuation band: the copy starts level with the top of the form. -- */
#valuation .wp-block-columns { align-items: flex-start !important; }
#valuation .wp-block-column { align-self: flex-start !important; }
#valuation .wp-block-column > :first-child { margin-top: 0 !important; }
#valuation .wp-block-column > .adx-eyebrow:first-child { margin-top: 0 !important; padding-top: 0; }

/* -- 3. RealtyPress Search / Filter panel: smooth open, no jump. -- */
.result-search-form-h { transition: height .3s ease, opacity .25s ease; }
.btn-filter-search-results { cursor: pointer; }

/* -- 4. Contact page. -- */
.adx-qc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
a.adx-qc__card { display: block; color: inherit; text-decoration: none; }
.adx-qc__label { display: block; margin: 0 0 .4rem; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--brand); }
.adx-qc__value { display: block; font-size: 1.16rem; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
.adx-qc__note { display: block; margin-top: .45rem; font-size: .9rem; line-height: 1.5; color: var(--wp--preset--color--muted); }
a.adx-qc__card:hover .adx-qc__value { color: var(--wp--preset--color--brand); }
.adx-emoji { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-style: normal; line-height: 1; }

.adx-contact .wp-block-columns { align-items: flex-start; }
.adx-contact__form { padding: clamp(1.4rem, 3vw, 2.25rem); border-radius: 22px; background: var(--wp--preset--color--surface-alt); border: 1px solid var(--wp--preset--color--line); box-shadow: 0 34px 60px -42px rgba(0, 0, 0, .75); }
.adx-contact__form > h2 { display: flex; align-items: center; gap: .65rem; margin-top: 0; }
.adx-contact__form > h2 .adx-emoji { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-size: 1.35rem; background: color-mix(in srgb, var(--wp--preset--color--brand) 13%, transparent); border: 1px solid color-mix(in srgb, var(--wp--preset--color--brand) 30%, transparent); }
.adx-contact__side { display: grid; gap: 1.25rem; }
.adx-contact__card { padding: 1.6rem 1.6rem 1.7rem; border-radius: 20px; background: var(--wp--preset--color--surface-alt); border: 1px solid var(--wp--preset--color--line); }
.adx-contact__card h3 { display: flex; align-items: center; gap: .6rem; margin: 0 0 1.1rem; font-size: 1.2rem; line-height: 1.3; }
.adx-contact__card h3 .adx-emoji { font-size: 1.3rem; }
.adx-contact__card p { margin: 0 0 1rem; font-size: .95rem; line-height: 1.6; color: var(--wp--preset--color--muted); }
.adx-contact__card .adx2-chips li { padding: .45rem .85rem; font-size: .9rem; }
.adx-mini-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; counter-reset: adxmini; }
.adx-mini-steps li { display: grid; grid-template-columns: 38px 1fr; gap: .9rem; margin: 0; counter-increment: adxmini; }
.adx-mini-steps li::before { content: counter(adxmini); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--wp--preset--color--brand); color: #fff; font-weight: 700; box-shadow: 0 10px 20px -12px var(--wp--preset--color--brand); }
.adx-mini-steps strong { display: block; font-size: 1rem; line-height: 1.35; }
.adx-mini-steps span { display: block; margin-top: .15rem; font-size: .93rem; line-height: 1.55; color: var(--wp--preset--color--muted); }
.adx-contact__trust { display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin: 0; padding: 0; list-style: none; font-size: .88rem; color: var(--wp--preset--color--muted); }
.adx-contact__trust li { margin: 0; display: inline-flex; align-items: center; gap: .4rem; }

.adx-mapcard { border-radius: 22px; overflow: hidden; border: 1px solid var(--wp--preset--color--line); box-shadow: 0 34px 60px -42px rgba(0, 0, 0, .75); }
.adx-mapcard .adx-map-embed { margin: 0; border-radius: 0; }
.adx-mapcard iframe { display: block; width: 100%; min-height: 420px; border: 0; }
.adx-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1.25rem; }
.adx-fact { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.25rem; border-radius: 16px; background: var(--wp--preset--color--surface-alt); border: 1px solid var(--wp--preset--color--line); font-size: .97rem; line-height: 1.5; }
.adx-fact .adx-emoji { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; font-size: 1.3rem; background: color-mix(in srgb, var(--wp--preset--color--brand) 13%, transparent); }
.adx-fact strong { display: block; }
.adx-map-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.5rem; }
.adx-areas-chips { justify-content: center; }
.adx-areas-chips li { font-size: 1rem; padding: .65rem 1.2rem; }

@media (max-width: 1000px) { .adx-qc { grid-template-columns: repeat(2, minmax(0, 1fr)); } .adx-facts { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .adx-qc { grid-template-columns: 1fr; } .adx-mapcard iframe { min-height: 320px; } }
.adx-qc__label .adx-emoji { font-size: 1.05rem; }
.adx-fact, .adx-fact > div { text-align: left; }
/* The About page is left-aligned edge to edge; its section heads are the exception. */
body.adx-about-left .entry-content .adx2-head,
body.adx-about-left .entry-content .adx2-head * { text-align: center !important; }
body.adx-about-left .entry-content .adx2-head .adx2-eyebrow { justify-content: center; }
/* Communities page: eyebrow, title and lede above the search. */
.adx-areas > .adx-eyebrow,
.adx-areas > .adx-eyebrow + .wp-block-heading,
.adx-areas > .adx-eyebrow + .wp-block-heading + p { text-align: center !important; margin-inline: auto !important; justify-content: center !important; }
.adx-areas > .adx-eyebrow + .wp-block-heading + p { max-inline-size: 64ch; }
.adx-areas > .adx-eyebrow::after { content: ""; inline-size: 1.75rem; block-size: 2px; flex: 0 0 auto; background-color: currentColor; opacity: .55; }
/* Area pages: the neighbourhoods heading and its lede. */
.adx-areapage__h, .adx-areapage__lede { text-align: center !important; margin-inline: auto !important; max-inline-size: 64ch; }
/* ==== /ADX-V2632 ==== */

/* ==== ADX-V2641 2026-11-11: Book page, a booking card with a stepped form beside the reassurance cards. Delete this block to revert. ==== */
.adx-book { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.adx-book .wp-block-columns { align-items: flex-start; gap: clamp(1.5rem, 3vw, 2.75rem); }

/* The pills under the hero: what the first conversation is, in three lines. */
.adx-book-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; margin: 0 0 clamp(2rem, 4vw, 3rem); padding: 0; list-style: none; }
.adx-book-strip li { display: flex; align-items: center; gap: .9rem; margin: 0; padding: 1rem 1.2rem; border-radius: 16px; background: var(--wp--preset--color--surface-alt); border: 1px solid var(--wp--preset--color--line); font-size: .97rem; line-height: 1.45; }
.adx-book-strip .adx-emoji { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; font-size: 1.3rem; background: color-mix(in srgb, var(--wp--preset--color--brand) 13%, transparent); }
.adx-book-strip strong { display: block; font-size: 1.02rem; }
.adx-book-strip span span { color: var(--wp--preset--color--muted); font-size: .9rem; }

/* The booking card. */
.adx-book__card { position: relative; padding: clamp(1.5rem, 3.2vw, 2.5rem); border-radius: 24px; background: var(--wp--preset--color--surface-alt); border: 1px solid var(--wp--preset--color--line); box-shadow: 0 40px 70px -46px rgba(0, 0, 0, .8); scroll-margin-top: 7rem; overflow: hidden; }
.adx-book__card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--wp--preset--color--brand), color-mix(in srgb, var(--wp--preset--color--brand) 40%, transparent)); }
.adx-book__card > h2 { display: flex; align-items: center; gap: .7rem; margin: 0 0 .4rem; font-size: clamp(1.45rem, 2.6vw, 1.9rem); line-height: 1.2; }
.adx-book__card > h2 .adx-emoji { display: grid; place-items: center; flex: 0 0 auto; width: 48px; height: 48px; border-radius: 14px; font-size: 1.4rem; background: color-mix(in srgb, var(--wp--preset--color--brand) 13%, transparent); border: 1px solid color-mix(in srgb, var(--wp--preset--color--brand) 30%, transparent); }
.adx-book__card > p { margin: 0 0 1.5rem; color: var(--wp--preset--color--muted); line-height: 1.6; }
.adx-book__card .adromax-crm-form { max-inline-size: none; }
.adx-book__card .adromax-crm-form-step-title { margin: 0 0 .25rem; font-size: 1.15rem; line-height: 1.3; }

/* Radio choices become tiles; this is what makes "meeting type" and "time of day" read as a choice, not a list. */
.adx-book__card .adromax-crm-field-radio { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: .6rem; }
.adx-book__card .adromax-crm-field-radio > label:first-child { grid-column: 1 / -1; margin-bottom: -.1rem; }
.adx-book__card .adromax-crm-field-radio .adromax-crm-choice-option { display: flex; align-items: center; gap: .6rem; min-height: 3.1rem; margin: 0; padding: .7rem .95rem; border-radius: 14px; border: 1px solid var(--wp--preset--color--line); background: var(--wp--preset--color--surface); cursor: pointer; line-height: 1.3; transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease; }
.adx-book__card .adromax-crm-field-radio .adromax-crm-choice-option:hover { border-color: color-mix(in srgb, var(--wp--preset--color--brand) 55%, var(--wp--preset--color--line)); }
.adx-book__card .adromax-crm-field-radio .adromax-crm-choice-option:has(input:checked) { border-color: var(--wp--preset--color--brand); background: color-mix(in srgb, var(--wp--preset--color--brand) 11%, var(--wp--preset--color--surface)); box-shadow: 0 0 0 1px var(--wp--preset--color--brand) inset; }
.adx-book__card .adromax-crm-field-radio .adromax-crm-choice-option:has(input:focus-visible) { outline: 2px solid var(--wp--preset--color--brand); outline-offset: 2px; }
.adx-book__card .adromax-crm-form input[type="radio"] { flex: 0 0 auto; accent-color: var(--wp--preset--color--brand); inline-size: 1.1rem; block-size: 1.1rem; margin: 0; }
.adx-book__card .adromax-crm-form input[type="checkbox"] { accent-color: var(--wp--preset--color--brand); inline-size: 1.15rem; block-size: 1.15rem; }
.adx-book__card .adromax-crm-form input[type="date"] { min-height: 3rem; }
.adx-book__card .adromax-crm-form textarea { min-height: 6.5rem; }

.adx-book__reassure { margin: 1.25rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; font-size: .88rem; color: var(--wp--preset--color--muted); }
.adx-book__reassure li { margin: 0; display: inline-flex; align-items: center; gap: .4rem; }

/* Side cards reuse the Contact page card, steps and chips; only the spacing differs. */
.adx-book__side { display: grid; justify-items: stretch; gap: 1.25rem; position: sticky; top: 6.5rem; }
.adx-book__side > * { margin-inline: 0 !important; max-inline-size: none !important; inline-size: 100%; box-sizing: border-box; }
.adx-book__call { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.4rem; border-radius: 20px; color: inherit; text-decoration: none; background: linear-gradient(135deg, color-mix(in srgb, var(--wp--preset--color--brand) 22%, var(--wp--preset--color--surface-alt)), var(--wp--preset--color--surface-alt)); border: 1px solid color-mix(in srgb, var(--wp--preset--color--brand) 40%, var(--wp--preset--color--line)); }
.adx-book__call .adx-emoji { display: grid; place-items: center; flex: 0 0 auto; width: 50px; height: 50px; border-radius: 15px; font-size: 1.5rem; background: var(--wp--preset--color--brand); box-shadow: 0 14px 24px -14px var(--wp--preset--color--brand); }
.adx-book__call small { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.adx-book__call strong { display: block; font-size: 1.35rem; line-height: 1.25; }
.adx-book__call:hover strong { color: var(--wp--preset--color--brand); }
.adx-checks { margin: 0; padding: 0; list-style: none; display: grid; gap: .75rem; }
.adx-checks li { margin: 0; display: grid; grid-template-columns: 1.4rem 1fr; gap: .7rem; font-size: .95rem; line-height: 1.55; color: var(--wp--preset--color--muted); }
.adx-checks li { padding: 0 !important; }
.adx-checks li > span { grid-column: 2; grid-row: 1; min-inline-size: 0; }
.adx-checks li::before { content: ""; position: static !important; inset: auto !important; grid-column: 1; grid-row: 1; inline-size: 1.4rem; block-size: 1.4rem; border-radius: 50%; margin-top: .1rem; background: var(--wp--preset--color--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 66% no-repeat; }

/* Bring-with-you trio. */
.adx-book-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.adx-book-trio .adx2-card h3 { margin: .9rem 0 .4rem; font-size: 1.15rem; }
.adx-book-trio .adx2-card p { margin: 0; color: var(--wp--preset--color--muted); line-height: 1.6; }

@media (max-width: 1000px) { .adx-book__side { position: static; } .adx-book-trio { grid-template-columns: 1fr; } }
@media (max-width: 781px) { .adx-book-strip { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .adx-book__card { border-radius: 20px; } .adx-book__card .adromax-crm-field-radio { grid-template-columns: 1fr; } }
/* ==== /ADX-V2641 ==== */
