/*
Theme Name: Amy Hempel Realty
Theme URI: https://amyhempelrealty.com/
Author: Eric, with Claude Code
Description: Rain Shadow child theme of Twenty Twenty-Five for Amy Hempel Realty (Port Angeles & Sequim real estate, one-on-one). Design tokens live in theme.json; this file holds only what theme.json cannot express.
Template: twentytwentyfive
Version: 0.1.0
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: amy-hempel-realty
*/

/* ------------------------------------------------------------------
   1. Layout tokens that need breakpoints (CLAUDE.md section 7)
   Gutter: 24px mobile, 40px tablet, 80px desktop.
------------------------------------------------------------------ */
:root {
	--ahr-gutter: 24px;
	--ahr-focus: var(--wp--preset--color--basalt);
	--ahr-transition: 150ms ease-out;
}

@media (min-width: 768px) {
	:root { --ahr-gutter: 40px; }
}

@media (min-width: 1025px) {
	:root { --ahr-gutter: 80px; }
}

/* Full-width bands sit flush against each other, the header and the footer
   (WordPress otherwise adds its block gap between them). */
.wp-site-blocks > main,
.wp-site-blocks > footer,
main > .alignfull,
.wp-block-post-content > .alignfull {
	margin-block-start: 0;
}

/* ------------------------------------------------------------------
   2. Links, focus and motion
------------------------------------------------------------------ */
a {
	text-underline-offset: 3px;
	transition: color var(--ahr-transition), background-color var(--ahr-transition), border-color var(--ahr-transition);
}

/* Text links in running copy and cards are bold (design handoff: Text link). */
:where(p, .wp-block-list li, dd, td, figcaption) a:where(:not(.wp-element-button)) {
	font-weight: 700;
}

/* Never remove focus outlines. Basalt on light, Linen on dark bands. */
:focus-visible {
	outline: 3px solid var(--ahr-focus);
	outline-offset: 2px;
}

.is-style-dark-band,
.has-basalt-background-color,
.has-charcoal-background-color {
	--ahr-focus: var(--wp--preset--color--linen);
}

body .skip-link.screen-reader-text:focus {
	background: var(--wp--preset--color--linen);
	color: var(--wp--preset--color--basalt);
	font-weight: 700;
	outline: 3px solid var(--wp--preset--color--basalt);
	outline-offset: 2px;
}

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

/* ------------------------------------------------------------------
   3. Buttons
   Primary (default): Sage fill, Basalt text; colors, padding and the
   2px transparent border (same outer size as the outlined variations)
   are in theme.json. Variations below.
------------------------------------------------------------------ */
.wp-element-button,
.wp-block-button__link {
	align-items: center;
	box-sizing: border-box;
	display: inline-flex;
	justify-content: center;
	min-height: 48px;
	text-align: center;
	transition: color var(--ahr-transition), background-color var(--ahr-transition), border-color var(--ahr-transition);
}

/* Secondary on light backgrounds */
.wp-block-button.is-style-secondary .wp-block-button__link {
	background-color: transparent;
	border-color: var(--wp--preset--color--basalt);
	color: var(--wp--preset--color--basalt);
}

.wp-block-button.is-style-secondary .wp-block-button__link:hover,
.wp-block-button.is-style-secondary .wp-block-button__link:focus-visible {
	background-color: var(--wp--preset--color--basalt);
	color: var(--wp--preset--color--linen);
}

/* Secondary on dark bands (hero, contact band) */
.wp-block-button.is-style-secondary-on-dark .wp-block-button__link {
	background-color: transparent;
	border-color: var(--wp--preset--color--linen);
	color: var(--wp--preset--color--linen);
}

.wp-block-button.is-style-secondary-on-dark .wp-block-button__link:hover,
.wp-block-button.is-style-secondary-on-dark .wp-block-button__link:focus-visible {
	background-color: var(--wp--preset--color--linen);
	color: var(--wp--preset--color--basalt);
}

/* Dark: Basalt fill, white text ("Read the post" on River Stone) */
.wp-block-button.is-style-dark .wp-block-button__link,
.ahr-button-dark {
	background-color: var(--wp--preset--color--basalt);
	border-color: var(--wp--preset--color--basalt);
	color: var(--wp--preset--color--white);
	font-size: 1rem;
	padding: 11px 22px;
}

.wp-block-button.is-style-dark .wp-block-button__link:hover,
.ahr-button-dark:hover {
	background-color: var(--wp--preset--color--charcoal);
	border-color: var(--wp--preset--color--charcoal);
	color: var(--wp--preset--color--white);
}

/* The Read More block styled as a Dark button */
a.wp-block-read-more.ahr-button-dark {
	align-items: center;
	border: 2px solid var(--wp--preset--color--basalt);
	border-radius: var(--wp--custom--radius--s);
	display: inline-flex;
	font-weight: 700;
	min-height: 48px;
	text-decoration: none;
}

/* Stack buttons full width on phones */
@media (max-width: 767.98px) {
	.ahr-buttons-stack.wp-block-buttons {
		align-items: stretch;
		flex-direction: column;
		gap: 12px;
	}

	.ahr-buttons-stack .wp-block-button,
	.ahr-buttons-stack .wp-block-button__link {
		width: 100%;
	}
}

/* ------------------------------------------------------------------
   4. Group, paragraph and image styles (block style variations)
------------------------------------------------------------------ */
.is-style-dark-band {
	background-color: var(--wp--preset--color--basalt);
	color: var(--wp--preset--color--linen);
}

.is-style-dark-band :where(h1, h2, h3, h4, h5, h6) {
	color: var(--wp--preset--color--linen);
}

.is-style-dark-band a:where(:not(.wp-element-button)) {
	color: var(--wp--preset--color--linen);
}

.is-style-dark-band a:where(:not(.wp-element-button)):hover {
	color: var(--wp--preset--color--river-stone);
}

.is-style-card,
.is-style-card-accent {
	background-color: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--m);
	padding: 24px;
}

.is-style-card-accent {
	border-top: 5px solid var(--wp--preset--color--field-sage);
}

.is-style-quiet-card {
	background-color: var(--wp--preset--color--river-stone);
	border-radius: var(--wp--custom--radius--m);
	padding: 24px;
}

@media (min-width: 768px) {
	.is-style-card,
	.is-style-card-accent {
		padding: 28px;
	}
}

/* In a card, a closing link line sits at the bottom so links line up across a row.
   Only link-only lines: ordinary card text stays right under its heading. */
:is(.is-style-card, .is-style-card-accent).is-layout-flex > p:last-child:has(> a:only-child) {
	margin-top: auto;
}

/* Photo placeholder: River Stone block naming the intended photo (never stock photos) */
.is-style-photo-placeholder,
.ahr-photo-placeholder {
	align-items: center;
	background-color: var(--wp--preset--color--river-stone);
	border-radius: var(--wp--custom--radius--l);
	box-sizing: border-box;
	color: var(--wp--preset--color--slate);
	display: flex;
	font-size: 0.9375rem;
	justify-content: center;
	min-height: 240px;
	padding: 24px;
	text-align: center;
}

.is-style-photo-placeholder > * {
	margin: 0;
}

/* Eyebrow: small uppercase label. Basalt on light, Sage on dark. */
.is-style-eyebrow {
	color: var(--wp--preset--color--basalt);
	font-size: var(--wp--preset--font-size--eyebrow);
	font-weight: 700;
	letter-spacing: 0.16em;
	line-height: 1.3;
	text-transform: uppercase;
}

.is-style-dark-band .is-style-eyebrow {
	color: var(--wp--preset--color--field-sage);
}

/* Breadcrumbs (Rank Math): small Slate line; links Basalt. */
.rank-math-breadcrumb {
	color: var(--wp--preset--color--slate);
	font-size: var(--wp--preset--font-size--caption);
	line-height: 1.5;
}

.rank-math-breadcrumb p {
	margin: 0;
}

.rank-math-breadcrumb a {
	color: var(--wp--preset--color--basalt);
	text-underline-offset: 3px;
}

.rank-math-breadcrumb .separator {
	padding: 0 0.35em;
}

.is-style-caption {
	color: var(--wp--preset--color--slate);
	font-size: var(--wp--preset--font-size--caption);
	line-height: 1.5;
}

/* Photos: large rounded frames */
.ahr-photo img,
.wp-block-post-featured-image img {
	border-radius: var(--wp--custom--radius--l);
}

.wp-block-image.ahr-photo {
	margin: 0;
}

.wp-block-image.ahr-photo img {
	width: 100%;
}

/* Photos inside a blog post's text get space above and below. */
.wp-block-post-content > .wp-block-image.ahr-photo {
	margin-bottom: var(--wp--preset--spacing--60);
	margin-top: var(--wp--preset--spacing--60);
}

/* Footer brokerage logos (white artwork, shown at its natural size). */
.ahr-footer__logos {
	margin: 0;
}

.ahr-footer__logos img {
	aspect-ratio: 262 / 76;
	height: auto;
	max-width: 100%;
	width: 262px;
}

/* A real hero photo sizes itself by its crop, unlike the placeholder. */
.wp-block-image.ahr-hero__photo {
	min-height: 0;
}

/* ------------------------------------------------------------------
   5. Header: wordmark, navigation, phone button, mobile menu
------------------------------------------------------------------ */
.ahr-wordmark {
	color: var(--wp--preset--color--basalt);
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: var(--wp--preset--font-size--wordmark);
	font-weight: 500;
	line-height: 1.1;
	margin: 0;
	white-space: nowrap;
}

.ahr-wordmark a {
	color: inherit;
	font-weight: inherit;
	text-decoration: none;
}

.ahr-wordmark em {
	font-style: italic;
	font-weight: 300;
}

.ahr-footer .ahr-wordmark {
	color: var(--wp--preset--color--linen);
}

.ahr-header .wp-block-navigation-item__content {
	padding-bottom: 10px;
	padding-top: 10px;
	text-underline-offset: 6px;
}

.ahr-header .wp-block-navigation-item__content:hover {
	text-decoration-color: var(--wp--preset--color--basalt);
	text-decoration-line: underline;
	text-decoration-thickness: 2px;
}

/* Current page: 2px Sage underline (decorative; the text itself stays Basalt) */
.ahr-header .current-menu-item > .wp-block-navigation-item__content,
.ahr-header .current-menu-ancestor > .wp-block-navigation-item__content {
	text-decoration-color: var(--wp--preset--color--field-sage);
	text-decoration-line: underline;
	text-decoration-thickness: 2px;
}

/* Desktop dropdown for the Relocation guides */
.ahr-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container {
	background-color: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--m);
	min-width: 280px;
	padding: 8px 0;
}

.ahr-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 10px 20px;
}

.ahr-header__phone .wp-block-button__link {
	font-size: 1rem;
	padding: 10px 18px;
	white-space: nowrap;
}

/* Phone link inside the menu shows only in the mobile overlay */
.ahr-header .wp-block-navigation__responsive-container:not(.is-menu-open) .ahr-nav-phone {
	display: none;
}

.ahr-header .wp-block-navigation__responsive-container-open,
.ahr-header .wp-block-navigation__responsive-container-close {
	align-items: center;
	justify-content: center;
	min-height: 44px;
	min-width: 44px;
}

/* Mobile overlay menu: left-aligned list, guides indented under Relocation */
.ahr-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: 24px var(--ahr-gutter);
}

/* The desktop menu is right-aligned; core repeats that on the list itself. */
.ahr-header .is-menu-open .wp-block-navigation__container,
.ahr-header .is-menu-open .wp-block-navigation-item {
	--navigation-layout-align: flex-start;
	--navigation-layout-justification-setting: flex-start;
	--navigation-layout-justify: flex-start;
}

.ahr-header .is-menu-open .wp-block-navigation__container {
	align-self: stretch;
	width: 100%;
}

.ahr-header .is-menu-open .wp-block-navigation-item__content {
	font-size: 1.375rem;
	padding-bottom: 8px;
	padding-top: 8px;
	text-align: left;
}

.ahr-header .is-menu-open .wp-block-navigation__submenu-container {
	gap: 0;
	padding: 0 0 8px 20px !important;
}

.ahr-header .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-size: 1.125rem;
	padding-bottom: 6px;
	padding-top: 6px;
}

.ahr-header .is-menu-open .ahr-nav-phone .wp-block-navigation-item__content {
	background-color: var(--wp--preset--color--field-sage);
	border-radius: var(--wp--custom--radius--s);
	font-weight: 700;
	margin-top: 16px;
	padding: 12px 20px;
}

/*
 * The full menu plus phone button needs about 1100px, so the menu button
 * (hamburger) is used below that width instead of core's 600px breakpoint.
 */
@media (min-width: 600px) and (max-width: 1099.98px) {
	.ahr-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.ahr-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

@media (max-width: 1099.98px) {
	.ahr-header__phone {
		display: none !important;
	}
}

/* ------------------------------------------------------------------
   6. Sections
------------------------------------------------------------------ */

/* Home hero */
.ahr-hero h1 {
	letter-spacing: -0.01em;
	line-height: 1.06;
	text-wrap: balance;
}

.ahr-hero h1 em {
	color: var(--wp--preset--color--field-sage);
	font-style: italic;
	font-weight: 300;
	white-space: nowrap;
}

.ahr-hero__intro {
	line-height: 1.55;
	max-width: 560px;
}

.ahr-hero__photo {
	min-height: 400px;
}

/* Tablet and below: hero and blog teaser become one column */
@media (max-width: 1024.98px) {
	.ahr-hero.wp-block-columns,
	.ahr-teaser.wp-block-columns {
		flex-wrap: wrap !important;
	}

	.ahr-hero.wp-block-columns > .wp-block-column,
	.ahr-teaser.wp-block-columns > .wp-block-column {
		flex-basis: 100% !important;
	}

	.ahr-hero__photo {
		max-width: 560px;
		min-height: 320px;
	}

	.ahr-teaser.wp-block-columns > .wp-block-column:last-child {
		order: -1;
	}
}

/* Three paths: two columns on tablet with the third card full width */
@media (min-width: 782px) and (max-width: 1024.98px) {
	.ahr-paths.wp-block-columns {
		flex-wrap: wrap !important;
	}

	.ahr-paths.wp-block-columns > .wp-block-column {
		flex-basis: calc(50% - 14px) !important;
	}

	.ahr-paths.wp-block-columns > .wp-block-column:nth-child(3) {
		flex-basis: 100% !important;
	}
}

.ahr-paths .wp-block-column > .wp-block-group,
.ahr-card-row .wp-block-column > .wp-block-group {
	height: 100%;
}

/* Quotes inside a row of cards use the small end of the pull-quote range */
.ahr-card-row .wp-block-quote {
	font-size: 1.375rem;
	line-height: 1.4;
}

.ahr-card-row .wp-block-quote cite {
	margin-top: 12px;
}

/* Blog teaser */
.ahr-teaser .wp-block-post-title {
	line-height: 1.12;
}

.ahr-teaser__image img,
.ahr-teaser .ahr-photo-placeholder {
	aspect-ratio: 3 / 2;
	min-height: 0;
	width: 100%;
}

/* Contact band */
.ahr-contact-band__details a {
	color: inherit;
}

@media (max-width: 767.98px) {
	.ahr-contact-band > .wp-block-group.is-layout-flex {
		align-items: stretch;
		flex-direction: column;
	}

	.ahr-contact-band .wp-block-buttons,
	.ahr-contact-band .wp-block-button,
	.ahr-contact-band .wp-block-button__link {
		width: 100%;
	}
}

/* Steps ("How buying from a distance works") */
ol.ahr-steps {
	counter-reset: ahr-step;
	list-style: none;
	padding-left: 0;
}

ol.ahr-steps > li {
	counter-increment: ahr-step;
	margin-top: 20px;
	min-height: 44px;
	padding-left: 60px;
	position: relative;
}

ol.ahr-steps > li::before {
	align-items: center;
	background-color: var(--wp--preset--color--field-sage);
	border-radius: 50%;
	color: var(--wp--preset--color--basalt);
	content: counter(ahr-step);
	display: flex;
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 1.25rem;
	font-weight: 500;
	height: 40px;
	justify-content: center;
	left: 0;
	position: absolute;
	top: 0;
	width: 40px;
}

/* FAQ (Details blocks) */
.wp-block-details {
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding-bottom: 16px;
	padding-top: 16px;
}

.wp-block-details + .wp-block-details {
	margin-top: 0;
}

.wp-block-details summary {
	align-items: center;
	color: var(--wp--preset--color--basalt);
	cursor: pointer;
	display: flex;
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: var(--wp--preset--font-size--sub-heading);
	font-weight: 500;
	gap: 16px;
	justify-content: space-between;
	line-height: 1.25;
	list-style: none;
	min-height: 44px;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::after {
	content: "+";
	flex: none;
	font-family: var(--wp--preset--font-family--dm-sans);
	font-size: 1.75rem;
	font-weight: 400;
	line-height: 1;
}

.wp-block-details[open] summary::after {
	content: "\2212";
}

/* Blog cards (From Amy's Desk index, archives, related posts) */
.ahr-post-card .wp-block-post-featured-image {
	margin-bottom: 0;
}

.ahr-post-card .wp-block-post-featured-image img {
	border-radius: var(--wp--custom--radius--m) var(--wp--custom--radius--m) 0 0;
}

/* Listings (cards on /listings/ and the single listing page) */
.ahr-listing-card .ahr-photo-placeholder {
	aspect-ratio: 3 / 2;
	border-radius: var(--wp--custom--radius--m) var(--wp--custom--radius--m) 0 0;
	min-height: 0;
	width: 100%;
}

.ahr-listing-card__price,
.ahr-listing__price {
	color: var(--wp--preset--color--basalt);
	font-family: var(--wp--preset--font-family--fraunces);
	font-weight: 500;
	line-height: 1.15;
	margin: 0;
}

.ahr-listing-card__price {
	font-size: 1.625rem;
}

.ahr-listing__price {
	font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
}

.ahr-listing-card__address {
	font-family: var(--wp--preset--font-family--dm-sans);
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.4;
}

.ahr-listing-card__address a {
	text-decoration: none;
}

.ahr-listing-card__address a:hover {
	text-decoration: underline;
}

.ahr-listing-card__facts {
	color: var(--wp--preset--color--slate);
}

.ahr-listing-card__link {
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ahr-status-badge {
	background-color: var(--wp--preset--color--river-stone);
	border-radius: var(--wp--custom--radius--s);
	margin: 0;
	padding: 6px 12px;
}

.ahr-listing__hero img,
.ahr-listing__hero.ahr-photo-placeholder {
	border-radius: var(--wp--custom--radius--l);
}

.ahr-listing__hero.ahr-photo-placeholder {
	aspect-ratio: 3 / 2;
	min-height: 0;
}

/* Tables (Port Angeles vs. Sequim comparison). Below 600px each row becomes
   a stacked card (see assets/js/tables.js for the column labels); without
   JavaScript the table scrolls sideways instead. */
.wp-block-table {
	overflow-x: auto;
}

.wp-block-table table {
	width: 100%;
	min-width: 600px;
	border-collapse: collapse;
	background: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
}

.wp-block-table th,
.wp-block-table td {
	padding: 14px 16px;
	border: 1px solid var(--wp--preset--color--border);
	text-align: left;
	vertical-align: top;
}

.wp-block-table thead th {
	background: var(--wp--preset--color--basalt);
	color: var(--wp--preset--color--linen);
	border-color: var(--wp--preset--color--basalt);
	font-weight: 700;
}

.wp-block-table thead th:first-child {
	width: 20%;
}

@media (max-width: 599.98px) {
	.wp-block-table .ahr-table--labelled {
		min-width: 0;
		background: transparent;
	}

	.wp-block-table .ahr-table--labelled thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
	}

	.wp-block-table .ahr-table--labelled tbody,
	.wp-block-table .ahr-table--labelled tr,
	.wp-block-table .ahr-table--labelled td,
	.wp-block-table .ahr-table--labelled th {
		display: block;
		width: auto;
	}

	.wp-block-table .ahr-table--labelled tr {
		margin-bottom: var(--wp--preset--spacing--40);
		border: 1px solid var(--wp--preset--color--border);
		border-radius: var(--wp--custom--radius--m);
		background: var(--wp--preset--color--white);
		overflow: hidden;
	}

	.wp-block-table .ahr-table--labelled td,
	.wp-block-table .ahr-table--labelled th {
		border: 0;
		border-top: 1px solid var(--wp--preset--color--border);
	}

	/* First cell is the row's label (for example "Views"). */
	.wp-block-table .ahr-table--labelled tr > :first-child {
		border-top: 0;
		background: var(--wp--preset--color--basalt);
		color: var(--wp--preset--color--linen);
		font-weight: 700;
	}

	.wp-block-table .ahr-table--labelled td[data-label]::before {
		content: attr(data-label);
		display: block;
		margin-bottom: 4px;
		font-size: 0.8125rem;
		font-weight: 700;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		color: var(--wp--preset--color--slate);
	}
}

/* "See Amy's Listings" compact band (Buy, Sell, Relocation) */
.ahr-listings-link {
	padding: var(--wp--preset--spacing--60);
}

/* When the section above is a coloured band, keep the card clear of it. */
.wp-block-group.has-background + .wp-block-group:has(> .ahr-listings-link) {
	padding-top: var(--wp--preset--spacing--70) !important;
}

.ahr-listings-link > .wp-block-group {
	max-width: 640px;
}

.ahr-listings-link h2 {
	font-weight: 500;
}

.ahr-listings-link p:not(.is-style-eyebrow) {
	font-size: 1rem;
	line-height: 1.55;
}

@media (max-width: 767.98px) {
	.ahr-listings-link {
		padding: var(--wp--preset--spacing--50);
	}
}

/* Photo viewer for galleries (assets/js/gallery-lightbox.js) */
.wp-block-gallery.ahr-has-lightbox .wp-block-image a,
.wp-block-gallery.ahr-has-lightbox .wp-block-image img[role="button"] {
	cursor: zoom-in;
}

.ahr-lightbox {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	max-width: 100vw;
	max-height: 100vh;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--linen);
	overflow: hidden;
}

.ahr-lightbox::backdrop {
	background: rgba(30, 33, 35, 0.94);
}

body:has(.ahr-lightbox[open]) {
	overflow: hidden;
}

.ahr-lightbox__figure {
	display: grid;
	grid-template-rows: 1fr auto;
	justify-items: center;
	align-items: center;
	gap: var(--wp--preset--spacing--30);
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 64px 88px 56px;
}

.ahr-lightbox__figure img {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 150px);
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: var(--wp--custom--radius--s);
	background: var(--wp--preset--color--charcoal);
}

.ahr-lightbox__figure figcaption {
	margin: 0;
	max-width: 720px;
	font-size: var(--wp--preset--font-size--caption);
	line-height: 1.5;
	text-align: center;
	color: var(--wp--preset--color--river-stone);
}

.ahr-lightbox__counter {
	position: fixed;
	top: 18px;
	left: 50%;
	transform: translateX(-50%);
	margin: 0;
	font-size: var(--wp--preset--font-size--caption);
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--wp--preset--color--river-stone);
}

.ahr-lightbox__button {
	position: fixed;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(245, 241, 234, 0.14);
	color: var(--wp--preset--color--linen);
	font-family: var(--wp--preset--font-family--dm-sans), system-ui, sans-serif;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.ahr-lightbox__button:hover {
	background: rgba(245, 241, 234, 0.28);
}

.ahr-lightbox__button:focus-visible {
	outline: 3px solid var(--wp--preset--color--linen);
	outline-offset: 2px;
}

.ahr-lightbox__close {
	top: 12px;
	right: 12px;
}

.ahr-lightbox__prev,
.ahr-lightbox__next {
	top: 50%;
	transform: translateY(-50%);
	width: 56px;
	height: 56px;
	font-size: 2.5rem;
	padding-bottom: 6px;
}

.ahr-lightbox__prev {
	left: 16px;
}

.ahr-lightbox__next {
	right: 16px;
}

@media (max-width: 767.98px) {
	.ahr-lightbox__figure {
		padding: 56px 12px 80px;
	}

	.ahr-lightbox__figure img {
		max-height: calc(100vh - 150px);
	}

	.ahr-lightbox__prev,
	.ahr-lightbox__next {
		top: auto;
		bottom: 12px;
		transform: none;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.ahr-lightbox__button {
		transition: background-color 150ms ease-out;
	}
}

/* ------------------------------------------------------------------
   7. Footer
------------------------------------------------------------------ */
.ahr-footer {
	color: var(--wp--preset--color--river-stone);
}

.ahr-footer .wp-block-navigation-item__content {
	padding-bottom: 6px;
	padding-top: 6px;
}

.ahr-footer .wp-block-navigation a:hover {
	color: var(--wp--preset--color--linen);
}

/* ------------------------------------------------------------------
   8. Forms (styles any form plugin that outputs standard fields)
------------------------------------------------------------------ */
:where(.wp-site-blocks) :where(
	input[type="text"],
	input[type="email"],
	input[type="tel"],
	input[type="url"],
	input[type="number"],
	input[type="search"],
	select,
	textarea
) {
	background-color: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--input-border);
	border-radius: var(--wp--custom--radius--s);
	box-sizing: border-box;
	color: var(--wp--preset--color--charcoal);
	font-family: inherit;
	font-size: 1.0625rem;
	min-height: 48px;
	padding: 14px 16px;
}

:where(.wp-site-blocks) :where(input, select, textarea):focus {
	border-color: var(--wp--preset--color--basalt);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--basalt);
}

:where(.wp-site-blocks) [aria-invalid="true"] {
	border-color: var(--wp--custom--color--error);
	box-shadow: inset 0 0 0 1px var(--wp--custom--color--error);
}

:where(.wp-site-blocks) label {
	font-size: 0.9375rem;
	font-weight: 700;
}

/* Fluent Forms: brand fields, labels, errors and button (CLAUDE.md section 8) */
.wp-site-blocks .fluentform {
	font-family: var(--wp--preset--font-family--dm-sans);
	max-width: 720px;
}

.wp-site-blocks .fluentform .ff-el-group {
	margin-bottom: 20px;
}

.wp-site-blocks .fluentform .ff-el-input--label label {
	color: var(--wp--preset--color--charcoal);
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.4;
}

/* Required marker: text, not color */
.wp-site-blocks .fluentform .ff-el-is-required.asterisk-right label::after {
	color: inherit;
	margin-left: 2px;
}

.wp-site-blocks .fluentform .ff-el-form-control {
	background-color: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--input-border);
	border-radius: var(--wp--custom--radius--s);
	color: var(--wp--preset--color--charcoal);
	font-family: inherit;
	font-size: 1.0625rem;
	line-height: 1.4;
	min-height: 48px;
	padding: 14px 16px;
}

.wp-site-blocks .fluentform select.ff-el-form-control {
	padding-top: 12px;
	padding-bottom: 12px;
}

.wp-site-blocks .fluentform .ff-el-form-control:focus {
	border-color: var(--wp--preset--color--basalt);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--basalt);
	outline: none;
}

.wp-site-blocks .fluentform .ff-el-form-control::placeholder {
	color: var(--wp--preset--color--slate);
	opacity: 1;
}

.wp-site-blocks .fluentform .ff-el-help-message {
	color: var(--wp--preset--color--slate);
	font-size: 0.875rem;
	font-style: normal;
	margin-top: 6px;
}

.wp-site-blocks .fluentform .ff-el-form-check label {
	font-size: 1rem;
	font-weight: 400;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.wp-site-blocks .fluentform .ff-el-form-check-input {
	accent-color: var(--wp--preset--color--basalt);
	height: 20px;
	width: 20px;
}

.wp-site-blocks .fluentform .ff-el-is-error .ff-el-form-control {
	border-color: var(--wp--custom--color--error);
	box-shadow: inset 0 0 0 1px var(--wp--custom--color--error);
}

.wp-site-blocks .fluentform .ff-el-is-error .text-danger,
.wp-site-blocks .fluentform .error.text-danger {
	color: var(--wp--custom--color--error);
	font-size: 0.9375rem;
	margin-top: 6px;
}

.wp-site-blocks .fluentform .ahr-form-note {
	color: var(--wp--preset--color--slate);
	font-size: 0.875rem;
	margin: 0;
}

.wp-site-blocks .fluentform .ff-btn-submit {
	background-color: var(--wp--preset--color--field-sage) !important;
	border: 2px solid transparent;
	border-radius: var(--wp--custom--radius--s);
	color: var(--wp--preset--color--basalt) !important;
	cursor: pointer;
	font-family: var(--wp--preset--font-family--dm-sans);
	font-size: 1.0625rem;
	font-weight: 700;
	min-height: 48px;
	padding: 13px 26px;
	transition: background-color 150ms ease-out;
}

.wp-site-blocks .fluentform .ff-btn-submit:hover {
	background-color: var(--wp--custom--color--sage-hover) !important;
	opacity: 1;
}

.wp-site-blocks .fluentform .ff-btn-submit:active {
	background-color: var(--wp--custom--color--sage-active) !important;
}

.wp-site-blocks .fluentform .ff-btn-submit:focus-visible {
	outline: 3px solid var(--wp--preset--color--basalt);
	outline-offset: 2px;
}

.wp-site-blocks .fluentform .ff-btn-submit:disabled {
	cursor: wait;
	opacity: 0.7;
}

.wp-site-blocks .ff-message-success {
	background-color: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-top: 5px solid var(--wp--preset--color--field-sage);
	border-radius: var(--wp--custom--radius--m);
	box-shadow: none;
	color: var(--wp--preset--color--charcoal);
	font-size: 1.0625rem;
	max-width: 720px;
	padding: 24px 28px;
}

@media (max-width: 767px) {
	.wp-site-blocks .fluentform .ff-btn-submit {
		width: 100%;
	}
}

/* Home hero, photo version (pattern "Home hero, photo version"; built 2026-10-13
   to compare with the original hero): page-wide photo of Amy with the eyebrow
   and title over it, then a Basalt band holding the intro and the buttons.
   Amy stands in the left third of the photo, so the title sits on the right
   over a fade into Basalt; on phones it moves to the bottom over a rising fade. */
.ahr-hero-photo.wp-block-cover {
	min-height: clamp(400px, 40vw, 760px);
	padding: var(--wp--preset--spacing--70) var(--ahr-gutter);
}

.ahr-hero-photo .wp-block-cover__inner-container {
	max-width: var(--wp--style--global--wide-size);
	width: 100%;
}

.ahr-hero-photo__text {
	margin-left: auto;
	max-width: 600px;
}

.ahr-hero-photo__text .is-style-eyebrow {
	color: var(--wp--preset--color--field-sage);
}

.ahr-hero-photo__text h1 {
	color: var(--wp--preset--color--linen);
	letter-spacing: -0.01em;
	line-height: 1.06;
	text-shadow: 0 1px 3px rgba(30, 33, 35, 0.45);
	text-wrap: balance;
}

.ahr-hero-photo__text h1 em {
	color: var(--wp--preset--color--field-sage);
	font-style: italic;
	font-weight: 300;
	white-space: nowrap;
}

/* Band: intro on the left, the two buttons on the right; they drop below the
   intro when the row gets too narrow. */
.ahr-hero-band .ahr-hero__intro {
	flex: 1 1 320px;
	max-width: 520px;
}

@media (max-width: 1024.98px) {
	.ahr-hero-photo__text {
		max-width: 520px;
	}
}

/* Phones: Amy's face sits just below the middle of the photo, so the title
   moves to the top over a fade from the header, and the photo is shifted so
   she stays centred; a light fade at the bottom leads into the band. */
@media (max-width: 767.98px) {
	.ahr-hero-photo.wp-block-cover {
		align-items: flex-start;
		min-height: min(80vh, 600px);
		padding-top: var(--wp--preset--spacing--60);
	}

	.ahr-hero-photo .wp-block-cover__background {
		background: linear-gradient(180deg, rgba(46, 51, 54, 0.86) 0%, rgba(46, 51, 54, 0.55) 28%, rgba(46, 51, 54, 0) 48%, rgba(46, 51, 54, 0) 80%, rgba(46, 51, 54, 0.6) 100%) !important;
	}

	.ahr-hero-photo .wp-block-cover__image-background {
		object-position: 18% 50% !important;
	}

	.ahr-hero-photo__text {
		margin-left: 0;
		max-width: none;
	}
}
