/*
 * California Nativescapes 2026 - what theme.json cannot express.
 *
 * Loaded on the front end (functions.php) and in the editor (add_editor_style), the same
 * file. Nothing here is scoped to one section of one page: every rule is a block style the
 * editor offers, a landmark (header, footer), or a fix for something core gets wrong against
 * this theme.json. Colors and sizes are theme.json presets; the only literal colors are the
 * white ring and label on the slider knob, which the design system specifies as white.
 *
 * Breakpoints (design system, theme.json custom.breakpoint; media queries cannot read custom
 * properties, so the numbers are repeated here and nowhere else):
 *   small   600px  - below: phones (slider crops 4:3, contact card stacks)
 *   medium  782px  - core stacks Columns below this; gallery row gets arrows and 300px cards
 *   large   960px  - header switches from menu button to inline navigation; hero art appears;
 *                    credentials four across; closing section side by side
 *   xlarge  1180px - the 1140px frame plus two 20px gutters; above it margins grow (no rules)
 * Every @media below uses 599/600, 781/782 or 959/960.
 */

/* ------------------------------------------------------------------ 1. Base */

/* Bands own their rhythm through their own padding; core's root block gap would otherwise
   put a 20px strip of page color between the dark closing band and the dark footer. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* A page shorter than the window (Thank you, at desktop sizes) still ends on the footer: the
   site wrapper is at least the window's height, less the admin bar for a logged-in user, and
   main takes the slack. Longer pages are taller than the minimum, so nothing moves on them.
   100vh first for browsers without dvh. */
.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
	min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));
}

.wp-site-blocks > main {
	flex: 1 0 auto;
}

/* A page headline with a hand-placed line break (Shift+Enter in the editor) keeps each of
   its lines whole: its Group becomes a container and the size drops below the heading-1
   preset until the longest line fits the column. 9.6cqi fits "Restoring California", 10.2em
   wide in Young Serif, with 2% to spare; a longer first line would need a smaller number.
   The mockup did the same with JavaScript. */
.wp-block-post-content .wp-block-group:has(> h1 > br) {
	container-type: inline-size;
}

.wp-block-post-content h1:has(> br) {
	font-size: min(var(--wp--preset--font-size--heading-1), 9.6cqi);
}

/* Headings balance their line breaks (the mockup does); long paragraphs do not. */
.wp-block-heading,
.wp-block-post-title,
.wp-block-query-title {
	text-wrap: balance;
}

/* Paragraphs and list items wrap "pretty": the browser re-breaks the last lines so an item
   does not end on one lone word ("lizards", "to save"). Browsers without it (Firefox today)
   wrap as before. */
p,
.wp-block-list > li {
	text-wrap: pretty;
}

a {
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
}

a:hover {
	text-decoration-thickness: 2px;
}

/* Bulleted lists - a base rule, not a block style the editor offers: every List block
   (core/list, unordered) marks its items with the site's poppy chevron instead of a disc,
   the same M9 5l7 7-7 7 path as the gallery's scroll-forward button, at text size. Scoped
   by .wp-block-list, which only the List block prints, so navigation menus
   (wp-block-navigation__container) and the footer menus are untouched; numbered lists (ol)
   keep their numbers. The chevron is a mask filled with the cta preset - decorative (the
   list itself tells screen readers it is a list), so its 2.4:1 against the page is
   acceptable for a marker, not for text. */
ul.wp-block-list {
	list-style: none;
	padding-inline-start: 0;
}

ul.wp-block-list > li {
	position: relative;
	padding-inline-start: calc(1em + 0.75rem);
}

ul.wp-block-list > li + li,
ul.wp-block-list > li > ul.wp-block-list {
	margin-block-start: var(--wp--preset--spacing--20);
}

ul.wp-block-list > li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: calc((1lh - 1em) / 2); /* centres the 1em mark on the first line, however the item wraps */
	width: 1em;
	height: 1em;
	background-color: var(--wp--preset--color--cta);
	-webkit-mask: 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.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Keyboard focus - one ring everywhere: 2px solid dark, 3px clear of the element (the
   custom.focus width and offset in theme.json), light (on-dark) on dark grounds. theme.json
   gives links and buttons the same ring; this rule covers everything else, and the few
   per-element rules below (header nav label, gallery Enlarge button, before-after handle,
   Gravity Forms fields) only move the ring or back it, always with these two values.
   :focus-visible keeps it off mouse and touch clicks for links and buttons. Browsers also
   match it when a text field is clicked, so theme.js marks the last input on <html>
   (data-input="pointer" or "keyboard") and a click into a field shows no ring - the field's
   own border darkening still marks where you are typing. With no script, fields keep the
   ring on every focus, which fails safe for keyboard users. */
:focus-visible {
	outline: var(--wp--custom--focus--width) solid var(--wp--preset--color--dark);
	outline-offset: var(--wp--custom--focus--offset);
	border-radius: var(--wp--custom--radius--small);
}

/* On dark grounds the focus ring goes light. Keyed to the preset classes. */
.has-dark-background-color :focus-visible,
.has-dark-panel-background-color :focus-visible,
.wp-block-cover :focus-visible {
	outline-color: var(--wp--preset--color--on-dark);
}

html[data-input="pointer"] :is(input, textarea, select):focus-visible {
	outline: none;
}

/* ------------------------------------------------------------------ 2. Buttons */

/* Core's outline style and theme.json's button element both sit at :root :where()
   specificity and theme.json prints last, so outline buttons would come out poppy. */
.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 1.5px solid currentColor;
}

.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background) {
	background-color: transparent;
}

.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color) {
	color: currentColor;
}

.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color):hover,
.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background):hover {
	background-color: var(--wp--preset--color--dark);
	border-color: var(--wp--preset--color--dark);
	color: var(--wp--preset--color--background);
}

.wp-element-button,
.wp-block-button__link {
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition:
		background-color var(--wp--custom--transition--duration) var(--wp--custom--transition--timing),
		color var(--wp--custom--transition--duration) var(--wp--custom--transition--timing),
		border-color var(--wp--custom--transition--duration) var(--wp--custom--transition--timing);
}

/* theme.json's hover (dark fill) would vanish on a dark ground; the mockup flips to white. */
.has-dark-background-color .wp-element-button:hover,
.has-dark-panel-background-color .wp-element-button:hover,
.wp-block-cover .wp-element-button:hover {
	background-color: var(--wp--preset--color--on-dark);
	border-color: var(--wp--preset--color--on-dark);
	color: var(--wp--preset--color--dark);
}

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

/* The header is not sticky on the way down. The template part is a spacer (theme.js sets its
   height to the bar's), and the bar inside it has three states: in the flow by default, so it
   scrolls away with the page; fixed to the top while the visitor scrolls up ("pinned", with a
   slide-in); absolute at the document position where the next downward move began
   ("released"), so it scrolls away with the page from wherever it was. Core marks the bar
   is-position-sticky with an inline top:0, hence the !important on the released top. With or
   without the script, an open phone menu or focus inside the header pins it. Pinned, the bar
   sits below the admin bar for a logged-in user: core's admin-bar offset (the bar's height,
   0 below 600px where the admin bar scrolls away, and undefined - so 0 - when logged out).
   Without it, clicking a header link (focus moves into the header) lifted the bar under the
   admin bar, and the mouse-up could land on an admin-bar link. */
header.wp-block-template-part:has(> .is-position-sticky) {
	position: relative;
	z-index: 10;
}

header.wp-block-template-part > .is-position-sticky {
	position: static;
}

header.wp-block-template-part.is-header-pinned > .is-position-sticky {
	position: fixed;
	top: var(--wp-admin--admin-bar--position-offset, 0px);
	left: 0;
	right: 0;
	animation: wd-header-in 220ms ease;
}

header.wp-block-template-part.is-header-released > .is-position-sticky {
	position: absolute;
	top: var(--wd-header-release, 0px) !important;
	left: 0;
	right: 0;
}

header.wp-block-template-part:focus-within > .is-position-sticky,
header.wp-block-template-part:has(.is-menu-open) > .is-position-sticky {
	position: fixed;
	top: var(--wp-admin--admin-bar--position-offset, 0px) !important;
	left: 0;
	right: 0;
}

/* Below 600px the admin bar scrolls with the page, so core's offset is 0 there, which is
   right once the page has scrolled but would lift a bar that is still in the flow at the top
   (nothing pinned or released yet) up under the admin bar. Logged-in only: a header in that
   state stays in the flow, where it already shows. */
@media (max-width: 600px) {
	body.admin-bar header.wp-block-template-part:not(.is-header-pinned):not(.is-header-released):focus-within > .is-position-sticky {
		position: static;
	}
}

@keyframes wd-header-in {
	from {
		transform: translateY(-100%);
	}

	to {
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	header.wp-block-template-part.is-header-pinned > .is-position-sticky {
		animation: none;
	}
}

/* Anchor jumps and the skip link land below the header, not under it. */
html {
	scroll-padding-top: calc(var(--wp--custom--header--height) + 12px);
}

@media (min-width: 960px) {
	html {
		scroll-padding-top: calc(var(--wp--custom--header--height-wide) + 12px);
	}
}

/* The header is 64px below `large` and 84px from it (theme.json custom.header); the logo
   badge is what sets that height, 46px then 62px. */
header.wp-block-template-part .wp-block-site-logo img {
	display: block;
	width: 46px;
	height: 46px;
}

header.wp-block-template-part .wp-block-site-title {
	line-height: 1.05;
}

/* Tap height (44px) for links that stand alone: the site name in the header and footer, and
   any paragraph or heading that is only a link (functions.php marks those `is-link-only`).
   Vertical padding on an inline link grows its hit area without moving a single line. */
.wp-block-site-title a,
.is-link-only > a {
	padding-block: 14px;
}

/* Footer links are a stacked list, so each row is made 44px tall on touch-sized screens
   instead (padding cannot overlap the next row there). */
@media (max-width: 959px) {
	footer.wp-block-template-part .wp-block-navigation .wp-block-navigation__container {
		gap: 0;
	}

	footer.wp-block-template-part .wp-block-navigation .wp-block-navigation-item__content {
		display: flex;
		align-items: center;
		min-height: 44px;
	}
}

/* From `medium` to `xlarge` the three footer columns are too narrow for the name beside the
   badge, so the brand takes the whole first row and the other two columns sit below it. */
@media (min-width: 782px) and (max-width: 1179px) {
	footer.wp-block-template-part .wp-block-columns {
		flex-wrap: wrap !important;
	}

	footer.wp-block-template-part .wp-block-columns > .wp-block-column:first-child {
		flex-basis: 100%;
	}
}

/* From `large` up the site name is 26px (David, 2026-10-25); no preset is that size and
   theme.json cannot change a size at a breakpoint. Below it the name keeps the lead preset
   so it stays on one line beside the badge on phones. */
@media (min-width: 960px) {
	header.wp-block-template-part .wp-block-site-logo img {
		width: 62px;
		height: 62px;
	}

	header.wp-block-template-part .wp-block-site-title {
		font-size: 1.625rem;
	}
}

/* Navigation states (design system, Header). The current page or section (aria-current,
   set by functions.php) carries a 2px leaf-green bar the width of the word, clear of the
   descenders; hovering another item draws the same bar in from the left at partial
   strength. Leaf green, not poppy: poppy is a fill and fails 3:1 as a thin line on the light
   ground, and green keeps the mark apart from the dark text it sits under. Keyboard focus
   is the site's ring with a small radius; a mouse or touch click shows none. */
header.wp-block-template-part .wp-block-navigation .wp-block-navigation-item__content {
	position: relative;
	padding: 10px 0;
	text-decoration: none;
}

header.wp-block-template-part .wp-block-navigation .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 9px;
	height: 2px;
	border-radius: 1px;
	background: var(--wp--preset--color--accent);
	opacity: 0;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 180ms ease, opacity 180ms ease;
	pointer-events: none;
}

header.wp-block-template-part .wp-block-navigation .wp-block-navigation-item__content:hover::after {
	opacity: 0.45;
	transform: scaleX(1);
}

header.wp-block-template-part .wp-block-navigation .wp-block-navigation-item__content[aria-current="page"]::after {
	opacity: 1;
	transform: scaleX(1);
}

/* The ring is drawn round the word (the label), not the 44px link box, so it reads as a
   neat outline instead of a tall box. */
header.wp-block-template-part .wp-block-navigation .wp-block-navigation-item__content:focus-visible {
	outline: none;
}

header.wp-block-template-part .wp-block-navigation .wp-block-navigation-item__content:focus-visible .wp-block-navigation-item__label {
	outline: var(--wp--custom--focus--width) solid var(--wp--preset--color--dark);
	outline-offset: var(--wp--custom--focus--offset);
	border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
	header.wp-block-template-part .wp-block-navigation .wp-block-navigation-item__content::after {
		transition: none;
	}
}

/* The header submenus, Services and Gallery (core/navigation-submenu, so keyboard and screen-reader behavior is
   core's). Whether it shows is core's state, read from the chevron's aria-expanded, so what
   is seen always matches what a screen reader hears: core opens it on hover and from the
   chevron (also the touch route) and closes it from the chevron, on focus leaving and on a
   tap outside; theme.js adds opening on keyboard focus and closing on Escape through
   core's own events. Core's stylesheet also shows a submenu on bare :hover, whatever the
   state; the first rule below overrides that. The panel sits 8px below the link; an
   invisible bridge over that gap keeps it open while the pointer crosses. Items carry a
   vertical bar on the left instead of the top nav's underline: full leaf green for the
   current page, 45% for hover and keyboard focus (design system, Header). */
@media (min-width: 960px) {
	header.wp-block-template-part .wp-block-navigation .has-child:has(> .wp-block-navigation-submenu__toggle[aria-expanded="false"]) > .wp-block-navigation__submenu-container {
		height: 0;
		opacity: 0;
		overflow: hidden;
		visibility: hidden;
	}

	header.wp-block-template-part .wp-block-navigation .wp-block-navigation__submenu-icon {
		width: 0.75em;
		height: 0.75em;
		margin-left: 0.3em;
		color: var(--wp--preset--color--muted);
	}

	/* The chevron is drawn 12px but taps a 44px square: the box starts at the gap before the
	   icon (never over the item's word) and runs right into the space before the next item. */
	header.wp-block-template-part .wp-block-navigation .wp-block-navigation-submenu__toggle {
		position: relative;
	}

	header.wp-block-template-part .wp-block-navigation .wp-block-navigation-submenu__toggle::before {
		content: "";
		position: absolute;
		top: 50%;
		left: -0.3em;
		width: 44px;
		height: 44px;
		transform: translateY(-50%);
	}

	/* .wp-block-navigation__container outranks core's right-justified rule (right: 0), which
	   would open the panel leftward from its item. */
	header.wp-block-template-part .wp-block-navigation .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container {
		left: -14px;
		right: auto;
		gap: 0;
		top: calc(100% + 8px);
		min-width: 260px;
		padding: 10px 0;
		border: 1px solid var(--wp--preset--color--line);
		border-radius: var(--wp--custom--radius--card);
		background-color: var(--wp--preset--color--background);
		box-shadow: var(--wp--preset--shadow--soft);
		font-family: var(--wp--preset--font-family--body);
	}

	header.wp-block-template-part .wp-block-navigation .has-child .wp-block-navigation__submenu-container::before {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		top: -9px;
		height: 9px;
	}

	header.wp-block-template-part .wp-block-navigation .has-child .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content {
		align-items: center;
		min-height: 44px;
		padding: 4px 20px 4px 24px;
		white-space: nowrap;
	}

	header.wp-block-template-part .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content::after {
		left: 12px;
		right: auto;
		top: 50%;
		bottom: auto;
		width: 2px;
		height: 1.25em;
		transform: translateY(-50%) scaleY(0);
		transform-origin: center;
	}

	header.wp-block-template-part .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover::after,
	header.wp-block-template-part .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible::after {
		opacity: 0.45;
		transform: translateY(-50%) scaleY(1);
	}

	header.wp-block-template-part .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content[aria-current="page"]::after {
		opacity: 1;
		transform: translateY(-50%) scaleY(1);
	}
}

/* Phone menu: each submenu's pages (the services, the gallery albums) always shown, indented
   under their item, with the same left bar for the current one; core's toggle is hidden there. */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .has-child,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container .wp-block-navigation-item {
	align-items: stretch;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container {
	width: 100%;
	align-items: stretch;
	padding: 0 0 12px 4px;
	gap: 0;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container .wp-block-navigation-item {
	border-bottom: 0;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	position: relative;
	min-height: 44px;
	box-sizing: border-box;
	padding: 4px 0 4px 16px;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--lead);
	font-weight: 500;
	line-height: 1.3;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container .wp-block-navigation-item__content[aria-current="page"] .wp-block-navigation-item__label::after {
	display: none;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container .wp-block-navigation-item__content[aria-current="page"]::after {
	content: "";
	display: block;
	position: absolute;
	left: 0;
	top: 50%;
	width: 3px;
	height: 1.3em;
	border-radius: 1.5px;
	background: var(--wp--preset--color--accent);
	opacity: 1;
	transform: translateY(-50%);
}

@media (prefers-reduced-motion: reduce) {
	header.wp-block-template-part .wp-block-navigation .has-child .wp-block-navigation__submenu-container {
		transition: none;
	}
}

/* Items marked overlay-only (Contact, the button, phone, email) exist for the phone menu. */
.wp-block-navigation-item.overlay-only {
	display: none;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.overlay-only {
	display: block;
}

/* Core swaps the menu button for inline links at 600px; this design does it at `large`. */
@media (min-width: 600px) and (max-width: 959px) {
	.wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

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

/* The menu button is a bordered 44px target, not a bare icon; the close button is 44px too. */
.wp-block-navigation__responsive-container-open {
	align-items: center;
	justify-content: center;
	min-height: 44px;
	min-width: 44px;
	padding: 0 10px;
	border: 1.5px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--small);
	background: var(--wp--preset--color--background);
	color: var(--wp--preset--color--heading);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	top: 10px;
	right: var(--wp--preset--spacing--40);
}

/* The open phone menu: a full-screen list in Young Serif, the button, then the contact
   lines. Every row is at least 44px tall. The selectors carry the content wrapper so they
   outrank core's own open-menu rules. */
.wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--custom--header--height) var(--wp--preset--spacing--40) var(--wp--preset--spacing--60);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: var(--wp--preset--spacing--40);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
	gap: 0;
	width: 100%;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item {
	width: 100%;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 44px;
	padding: 14px 0;
	border-bottom: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 2rem;
	font-weight: 400;
	line-height: 1.1;
}

/* The phone menu marks the current item with the same leaf-green bar, 3px at its large size
   and under the word only (the row itself is full width). The desktop bar is switched off
   here; the button and the contact lines are never marked. */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content::after {
	display: none;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item:not(.is-cta) .wp-block-navigation-item__content[aria-current="page"] .wp-block-navigation-item__label {
	position: relative;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item:not(.is-cta) .wp-block-navigation-item__content[aria-current="page"] .wp-block-navigation-item__label::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -6px;
	height: 3px;
	border-radius: 1.5px;
	background: var(--wp--preset--color--accent);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item.is-cta {
	border-bottom: 0;
	margin-top: var(--wp--preset--spacing--50);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item.is-cta .wp-block-navigation-item__content {
	display: inline-flex;
	box-sizing: border-box;
	width: auto;
	min-height: 48px; /* the site's buttons are 48px tall, padding included */
	padding: 0.9rem 1.375rem;
	border-radius: var(--wp--custom--radius--small);
	background: var(--wp--preset--color--cta);
	color: var(--wp--preset--color--dark);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--body);
	font-weight: 600;
	line-height: 1;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item.is-contact-line {
	border-bottom: 0;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item.is-contact-line .wp-block-navigation-item__content {
	min-height: 44px;
	padding: 10px 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--body);
	color: var(--wp--preset--color--accent);
	text-decoration: none;
}

/* The label is bold and plain; only the number or address is underlined (the span inside
   core's label wrapper), so the underline does not start under the space between them. */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item.is-contact-line .wp-block-navigation-item__content strong {
	margin-right: 0.4em;
	color: var(--wp--preset--color--heading);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item.is-contact-line .wp-block-navigation-item__label > span {
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

/* ------------------------------------------------------------------ 4. Images */

.wp-block-image figcaption,
.wp-element-caption {
	margin-top: 10px;
	margin-bottom: 0;
	color: var(--wp--preset--color--muted);
	font-size: 0.78rem;
	line-height: 1.4;
	text-align: center;
}

/* ------------------------------------------------------------------ 5. Block styles
   Registered in functions.php; selectable in the editor; drawn here. */

/* Hide on phones - the header button and the hero's botanical art exist from `large` up.
   Front end only: in the editor every block stays visible and editable. */
@media (max-width: 959px) {
	body:not(.block-editor-iframe__body) .is-style-hide-on-phones {
		display: none;
	}
}

/* Title with flower - a page's title band carries a smaller copy of the homepage hero's
   botanical poppy at the right edge of the content frame. Decorative, so it is a background
   on a pseudo-element: nothing for a screen reader, nothing to select. One flower size for
   every page (14rem tall at 1440, scaling with the window, 11rem floor), centred in the band,
   and the band is given a min-height of the flower plus spacing 50 above and below, so a short
   title still holds it with that gap - the band grows, the flower never shrinks. Shown from
   `large` up only, where the hero art also appears; below that the 40rem title text would run
   into it, and the image is not downloaded. The right edge is the 71.25rem frame's, or the root
   gutter once the window is narrower than the frame.
   Each page can carry its own plate: the "Title with <plant>" styles (functions.php, PLATES)
   share this layout, matched by the `is-style-title-` prefix, and swap only the image; the
   poppy is the default here. */
@media (min-width: 960px) {
	.wp-block-group.alignfull[class*="is-style-title-"] {
		--title-flower-height: clamp(11rem, 5rem + 10vw, 14rem);
		--title-flower-inset: var(--wp--preset--spacing--50);
		position: relative;
		min-height: calc(var(--title-flower-height) + 2 * var(--title-flower-inset));
	}

	.wp-block-group.alignfull[class*="is-style-title-"]::after {
		content: "";
		position: absolute;
		top: 50%;
		right: max(var(--wp--style--root--padding-right, 20px), calc((100% - 71.25rem) / 2));
		height: var(--title-flower-height);
		aspect-ratio: 637 / 1024;
		transform: translateY(-50%);
		background: url("../img/eschscholzia-cutout-637x1024.webp") right center / contain no-repeat;
		pointer-events: none;
	}

	/* A title band without its cutout: add `without-cutout` to the band's Group (Advanced >
	   Additional CSS class). The page keeps its plant's style, so the Start your project band
	   still shows that plant's framed plate (Reviews, 2026-11-03, David). */
	.wp-block-group.alignfull[class*="is-style-title-"].without-cutout {
		min-height: 0;
	}

	.wp-block-group.alignfull[class*="is-style-title-"].without-cutout::after {
		content: none;
	}
}

/* Screen readers only - a heading that labels a section without being drawn. Front end only. */
body:not(.block-editor-iframe__body) .is-style-screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* CLCA badge - a paragraph holding only the California Landscape Contractors Association
   member logo (assets/img/clca-member-477x200.png, sharp to 4x), shown 44px tall. Its green does not
   read on the dark footer, so there it sits on a light plate. */
.clca-badge {
	line-height: 0;
}

.clca-badge img {
	display: block;
	width: auto;
	height: 44px;
}

footer.wp-block-template-part .clca-badge img {
	box-sizing: content-box;
	padding: 4px 8px;
	border-radius: var(--wp--custom--radius--small);
	background: var(--wp--preset--color--background);
}

/* Icon and label - a paragraph whose first thing is a small inline image. */
.is-style-icon-label {
	display: flex;
	align-items: center;
	gap: 0.5em;
}

.is-style-icon-label img {
	flex: 0 0 auto;
	display: block;
}

/* Step number - the numeral in a poppy circle (a fill, with dark text: 6.20:1). */
.is-style-step-number {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--wp--preset--color--cta);
	color: var(--wp--preset--color--dark);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.15rem;
	line-height: 1;
}

/* Step row - Columns of numbered steps: a hairline joins each step's circle to the next from
   `medium` up, where the steps sit side by side. The line runs from spacing 30 after one
   circle to spacing 30 before the next, so it assumes the row's column gap is spacing 60
   (Large); a different gap needs the `right` value changed to match. */
.wp-block-columns.is-style-step-row .is-style-step-number {
	margin-block-end: var(--wp--preset--spacing--30);
}

@media (min-width: 782px) {
	.wp-block-columns.is-style-step-row > .wp-block-column {
		position: relative;
	}

	.wp-block-columns.is-style-step-row > .wp-block-column:not(:last-child)::after {
		content: "";
		position: absolute;
		top: 21px; /* the 44px circle's centre, less half the 2px line */
		left: calc(44px + var(--wp--preset--spacing--30));
		right: calc(var(--wp--preset--spacing--30) - var(--wp--preset--spacing--60));
		height: 2px;
		background: color-mix(in srgb, var(--wp--preset--color--muted) 30%, transparent);
	}
}

/* Text and photo - Columns with the text in one column and one of her photos in the other
   (Design, Installation, Maintenance). The photo is cropped to 4:5 from its center whatever
   its own shape, its top lines up with the section heading, and it is never wider than 28rem
   (560px tall at most), so it cannot tower over a short text column. Beside the text from
   `medium` up the column is narrower than that anyway (about 430px at `xlarge`); the cap is
   what holds it once the columns stack below `medium`. */
.wp-block-columns.is-style-text-and-photo {
	align-items: flex-start;
}

.wp-block-columns.is-style-text-and-photo .wp-block-image {
	max-inline-size: 28rem;
}

.wp-block-columns.is-style-text-and-photo .wp-block-image img {
	inline-size: 100%;
	block-size: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: center;
}

/* Stack below large screens - Columns that stay stacked up to `large` (core stacks them
   only below `medium`). For a row whose side column needs the room, like the closing
   section's print beside the contact card. */
@media (max-width: 959px) {
	.wp-block-columns.is-style-stack-below-large {
		flex-wrap: wrap !important;
	}

	.wp-block-columns.is-style-stack-below-large > .wp-block-column {
		flex-basis: 100% !important;
	}
}

/* Stack on phones only - Columns marked "not stacked on mobile" that still stack below
   `small`, so a two-column card stays two columns through tablets. */
@media (max-width: 599px) {
	.wp-block-columns.is-style-stack-below-small {
		flex-wrap: wrap !important;
	}

	.wp-block-columns.is-style-stack-below-small > .wp-block-column {
		flex-basis: 100% !important;
	}
}

/* Fact row - Columns that keep four facts in one line from `large` up with hairline
   dividers, and go two across below it instead of stacking. */
.wp-block-columns.is-style-fact-row > .wp-block-column {
	padding-inline: var(--wp--preset--spacing--50);
}

.wp-block-columns.is-style-fact-row > .wp-block-column:first-child {
	padding-left: 0;
}

.wp-block-columns.is-style-fact-row > .wp-block-column:last-child {
	padding-right: 0;
}

.wp-block-columns.is-style-fact-row > .wp-block-column + .wp-block-column {
	border-left: 1px solid var(--wp--preset--color--line);
}

/* A fact that runs to two lines reads as one unit (Shaun, 0.2.22): 1.25 instead of 1.6. */
.wp-block-columns.is-style-fact-row .is-style-icon-label {
	line-height: 1.25;
}

@media (max-width: 959px) {
	.wp-block-columns.is-style-fact-row {
		flex-wrap: wrap !important;
		gap: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
	}

	/* Same specificity as the rules above, later in the file, so they win here. */
	.wp-block-columns.is-style-fact-row > .wp-block-column,
	.wp-block-columns.is-style-fact-row > .wp-block-column:first-child,
	.wp-block-columns.is-style-fact-row > .wp-block-column:last-child,
	.wp-block-columns.is-style-fact-row > .wp-block-column + .wp-block-column {
		flex: 0 0 calc(50% - var(--wp--preset--spacing--40)) !important;
		padding: 0;
		border-left: 0;
	}
}

/* Accent row - Columns whose items each carry a short poppy bar on top, laid out two across
   from `small` up (a 2x2 set for four items) and stacked on phones. The grid takes its column
   and row gaps from the block's own spacing; on phones the stack keeps the Medium gap, so a
   wider desktop row gap does not loosen the phone layout. The bar is decoration, not text, so
   the fills-only cta color is within its use. */
.wp-block-columns.is-style-accent-row > .wp-block-column {
	padding-top: var(--wp--preset--spacing--30);
	position: relative;
}

.wp-block-columns.is-style-accent-row > .wp-block-column::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 2.5rem;
	height: 3px;
	background: var(--wp--preset--color--cta);
}

@media (min-width: 600px) {
	.wp-block-columns.is-style-accent-row {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 599px) {
	.wp-block-columns.is-style-accent-row {
		row-gap: var(--wp--preset--spacing--50);
	}
}

/* Plant tag - a card shaped like a nursery plant tag: photo on top, pointed foot. The
   column that holds it carries the shadow, because a clip-path would cut a shadow drawn on
   the same box. Hover lifts; nothing rotates. */
.wp-block-column:has(> .is-style-plant-tag) {
	display: flex;
	filter: drop-shadow(0 1px 1px rgba(21, 40, 28, 0.18)) drop-shadow(0 10px 18px rgba(21, 40, 28, 0.09));
}

.is-style-plant-tag {
	--point: 34px;
	position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--card) var(--wp--custom--radius--card) 0 0;
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--point)), 50% 100%, 0 calc(100% - var(--point)));
	padding-bottom: calc(var(--point) + 22px);
}

.is-style-plant-tag > .wp-block-image,
.is-style-plant-tag > .wp-block-image img {
	border-radius: 0;
}

/* The card photo fills its 16:9 frame from the center whatever the photo's own shape: a
   service card shows its page's featured image (functions.php card_photo), which is a 4:5
   portrait, so the frame shows the middle 45% of its height. */
.is-style-plant-tag > .wp-block-image img {
	object-fit: cover;
	object-position: center;
}

.is-style-plant-tag > .wp-block-group {
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* Three across between `medium` and `large` leaves a card about 230px wide; the narrower
   side padding keeps the icon label on one line so titles stay on one line across the row.
   !important because the padding is the block's own inline style. */
@media (min-width: 782px) and (max-width: 959px) {
	.is-style-plant-tag > .wp-block-group {
		padding-left: var(--wp--preset--spacing--40) !important;
		padding-right: var(--wp--preset--spacing--40) !important;
	}
}

/* At the very bottom of that range a longer label still wraps. */
@media (min-width: 782px) and (max-width: 799px) {
	.is-style-plant-tag > .wp-block-group {
		padding-left: var(--wp--preset--spacing--30) !important;
		padding-right: var(--wp--preset--spacing--30) !important;
	}
}

/* "Free first visit in Santa Clara County" takes two lines from `medium` to `xlarge`, so every
   card label in that range holds two lines and the titles across a row stay level. Labels sit
   at the top of that space, the icon centered on the first line. */
@media (min-width: 782px) and (max-width: 1179px) {
	.is-style-plant-tag .is-style-icon-label {
		min-height: 2lh;
		align-items: flex-start;
	}

	.is-style-plant-tag .is-style-icon-label img {
		margin-top: calc((1lh - 16px) / 2);
	}
}

/* The card's link sits on the bottom line of the row, whatever the title and text above it
   do, so a row of cards lines its links up. */
.is-style-plant-tag > .wp-block-group > :last-child:not(:first-child) {
	margin-top: auto;
	padding-top: var(--wp--preset--spacing--20);
}

/* Other services: every card title on one line, top-aligned, the same size in all three
   cards. The card's text column is a size container, so the title scales with the card:
   100cqi / 11.2 keeps "Maintenance services" (10.8em wide in Young Serif, the longest title)
   inside the column, capped at the heading-3 preset. A longer title needs a bigger divisor. */
.is-style-other-services .is-style-plant-tag > .wp-block-group {
	container-type: inline-size;
}

.is-style-other-services .is-style-plant-tag h3 {
	align-items: flex-start;
	min-height: 0;
	white-space: nowrap;
	font-size: min(var(--wp--preset--font-size--heading-3), 100cqi / 11.2);
}


.is-style-plant-tag h3 {
	display: flex;
	align-items: flex-end;
	min-height: 2.2em;
	line-height: 1.1;
}

.is-style-plant-tag h3 a {
	color: inherit;
	text-decoration: none;
}

/* The title is a flex box, which makes its link a block: the 44px tap padding from
   is-link-only would then push the title down. Equal negative margins keep the tap area and
   give the title back its own height. */
.is-style-plant-tag h3.is-link-only > a {
	margin-block: -14px;
}

.is-style-plant-tag h3 + p {
	min-height: calc(3 * 1.6em);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.wp-block-column:has(> .is-style-plant-tag) {
		transition: transform 0.25s ease, filter 0.25s ease;
	}

	.wp-block-column:has(> .is-style-plant-tag:hover) {
		transform: translateY(-5px);
		filter: drop-shadow(0 2px 2px rgba(21, 40, 28, 0.18)) drop-shadow(0 18px 26px rgba(21, 40, 28, 0.14));
	}
}

/* Photo placeholder - a labeled slot where one of Rebecca's photos is still to come. On its
   own (a gallery card) it is 4:5. Inside a column (the bio) it fills the column's height beside
   the text from `medium` up, and is 3:2 when the columns stack below it. */
.is-style-photo-placeholder {
	display: grid;
	place-items: center;
	align-content: center;
	aspect-ratio: 4 / 5;
	text-align: center;
}

.wp-block-column:has(> .is-style-photo-placeholder) {
	display: flex;
}

.wp-block-column > .is-style-photo-placeholder {
	flex: 1;
}

@media (min-width: 782px) {
	.wp-block-column > .is-style-photo-placeholder {
		aspect-ratio: auto;
		min-height: 220px;
	}
}

@media (max-width: 781px) {
	.wp-block-column > .is-style-photo-placeholder {
		aspect-ratio: 3 / 2;
	}
}

.is-style-photo-placeholder .is-style-icon-label {
	flex-direction: column;
	gap: 10px;
}

.is-style-photo-placeholder .is-style-icon-label img {
	width: 36px;
	height: 36px;
}

/* Scrolling row - a full-bleed row of cards that scrolls sideways, snapping card by card.
   Its left edge lines up with the wide frame, so the first card starts under the heading.
   theme.js adds previous/next arrows from `medium` up. */
.is-style-scroll-row {
	flex-wrap: nowrap !important;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	overscroll-behavior-x: contain;
	padding-top: 4px;
	padding-bottom: 18px;
	padding-left: max(var(--wp--preset--spacing--40), calc((100% - var(--wp--style--global--wide-size)) / 2));
	padding-right: var(--wp--preset--spacing--40);
	scroll-padding-left: max(var(--wp--preset--spacing--40), calc((100% - var(--wp--style--global--wide-size)) / 2));
}

.is-style-scroll-row > * {
	flex: 0 0 min(74%, 290px);
	min-width: 0;
	scroll-snap-align: start;
}

.is-style-scroll-row h3 a {
	color: inherit;
	text-decoration: none;
}

.is-style-scroll-row > *:hover h3 a {
	color: var(--wp--preset--color--accent);
}

@media (min-width: 782px) {
	.is-style-scroll-row > * {
		flex-basis: 300px;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.is-style-scroll-row .wp-block-image img {
		transition: transform 0.5s ease;
	}

	.is-style-scroll-row > *:hover .wp-block-image img {
		transform: scale(1.04);
	}
}

.is-style-scroll-row .wp-block-image {
	overflow: hidden;
	border-radius: var(--wp--custom--radius--card);
}

/* Gallery (webdogs/gallery). The hub's category cards are the homepage's gallery cards on a
   grid: photo 4:5, title in the card's link color, the line beneath in muted. A category
   page's photos are a core Gallery cropped to one 4:3 tile size, captions set beneath the
   photo in muted text rather than core's dark overlay; the enlarged view is core's. */
.wp-block-webdogs-gallery.is-categories h2 a {
	color: inherit;
	text-decoration: none;
}

.wp-block-webdogs-gallery.is-categories .wp-block-group > .wp-block-group:hover h2 a {
	color: var(--wp--preset--color--accent);
}

.wp-block-webdogs-gallery.is-categories .wp-block-image {
	overflow: hidden;
	border-radius: var(--wp--custom--radius--card);
}

.wp-block-webdogs-gallery.is-categories .is-style-photo-placeholder {
	border-radius: var(--wp--custom--radius--card);
}

@media (prefers-reduced-motion: no-preference) {
	.wp-block-webdogs-gallery.is-categories .wp-block-image img {
		transition: transform 0.5s ease;
	}

	.wp-block-webdogs-gallery.is-categories .wp-block-group > .wp-block-group:hover .wp-block-image img {
		transform: scale(1.04);
	}
}

.wp-block-webdogs-gallery .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) {
	flex-direction: column;
	flex-grow: 0;
	justify-content: flex-start;
}

/* Core's "Enlarge" button takes the site's focus ring, on a white band that fills the
   offset so the ring shows on a photo. */
.wp-block-webdogs-gallery .wp-lightbox-container button:focus-visible {
	outline: var(--wp--custom--focus--width) solid var(--wp--preset--color--dark);
	outline-offset: var(--wp--custom--focus--offset);
	box-shadow: 0 0 0 var(--wp--custom--focus--offset) #ffffff;
}

.wp-block-webdogs-gallery .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img {
	flex: none;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--wp--custom--radius--small);
}

.wp-block-webdogs-gallery .wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption)::before {
	content: none;
}

.wp-block-webdogs-gallery .wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	position: static;
	max-height: none;
	margin: 8px 0 0;
	padding: 0;
	overflow: visible;
	background: none;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	text-align: left;
	text-shadow: none;
}

/* Photo captions in the category grids are on (0.2.30, for David's review). To switch them
   off without touching the photos or the markup, add this one rule:
   .wp-block-webdogs-gallery .wp-block-gallery figure.wp-block-image figcaption { display: none; } */

.wd-scroll-controls {
	display: none;
	gap: 10px;
}

.wd-scroll-controls button {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1.5px solid var(--wp--preset--color--dark);
	border-radius: 50%;
	background: var(--wp--preset--color--background);
	color: var(--wp--preset--color--dark);
	cursor: pointer;
}

.wd-scroll-controls button:hover:not(:disabled) {
	background: var(--wp--preset--color--dark);
	color: var(--wp--preset--color--background);
}

.wd-scroll-controls button:disabled {
	opacity: 0.3;
	cursor: default;
}

.wd-scroll-controls svg {
	width: 22px;
	height: 22px;
}

@media (min-width: 782px) {
	.wd-scroll-controls {
		display: flex;
	}
}

/* Lead quote - the one large quote in a reviews band, with an opening mark above it. Its
   size is the mockup's (1.5rem to 2.2rem), which sits between the heading-3 and heading-2
   presets; a block style carrying its own size is how core's large-quote style works too.
   A font-size preset on the block (Maintenance uses heading-3) overrides it. Quotes are
   set in the body font by default (theme.json); the lead quote stays in the serif. */
.wp-block-quote.is-style-lead-quote {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem);
	line-height: 1.3;
}

/* Quote mark - the lead quote's opening mark on a quote in the body size (each review on
   Reviews). Same mark, same place. */
.wp-block-quote.is-style-lead-quote::before,
.wp-block-quote.is-style-quote-mark::before {
	content: "\201C";
	display: block;
	margin-bottom: 8px;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 4rem;
	line-height: 0.6;
	color: var(--wp--preset--color--cta);
}

/* On Reviews the mark sits close above the text, like an opening glyph (David, 2026-11-05):
   about 12px from the mark to the first line instead of about 42px. */
.wp-block-quote.is-style-quote-mark::before {
	margin-bottom: -22px;
}

.wp-block-quote cite {
	display: block;
	margin-top: 16px;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-style: normal;
	font-weight: 600;
}

/* On dark grounds (a cover photo, or a dark band) the name is the muted light text. */
.wp-block-cover .wp-block-quote cite,
.has-on-dark-color .wp-block-quote cite {
	color: var(--wp--preset--color--on-dark-muted);
}

/* Sticky aside - a Column given the class is-sticky-aside (Advanced > Additional CSS class;
   the Contact page's right column) stays in view while the column beside it scrolls, from
   `large` up, when all of it fits the window (theme.js adds is-sticky-whole and sets the top:
   clear of the header when there is room, else as low as fits). Never only part of it: a
   block stuck above the others hides them as they scroll up under it. */
@media (min-width: 960px) {
	.wp-block-column.is-sticky-aside.is-sticky-whole {
		position: sticky;
		top: var(--wd-sticky-top, 24px);
		align-self: flex-start;
	}
}

/* ------------------------------------------------------------------ 6. Before-and-after
   The block ships neutral; the theme dresses the knob (56px poppy, 3px white ring, dark
   arrows), the frame and the tags. Below `small` the frame is 4:3 and crops, as the mockup
   does on phones. */
.wp-block-webdogs-before-after {
	--wd-before-after-handle-size: 56px;
	--wd-before-after-handle-bg: var(--wp--preset--color--cta);
	--wd-before-after-handle-color: var(--wp--preset--color--dark);
	--wd-before-after-handle-ring: 3px solid white;
	--wd-before-after-divider: white;
	--wd-before-after-label-before-bg: color-mix(in srgb, var(--wp--preset--color--dark) 78%, transparent);
	--wd-before-after-label-before-color: white;
	--wd-before-after-label-after-bg: white;
	--wd-before-after-label-after-color: var(--wp--preset--color--dark);
	--wd-before-after-focus: var(--wp--preset--color--dark);
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--surface);
}

@media (max-width: 599px) {
	.wp-block-webdogs-before-after {
		aspect-ratio: 4 / 3;
	}

	/* Both photos fill the 4:3 frame, whichever one is in flow. The doubled classes outrank
	   the block's own is-after-left rule, which keeps the before photo in flow. */
	.wp-block-webdogs-before-after.wp-block-webdogs-before-after .wp-block-webdogs-before-after__image.wp-block-webdogs-before-after__image {
		position: absolute;
		inset: 0;
		height: 100%;
	}
}

/* ------------------------------------------------------------------ 7. Gravity Forms
   The project form on /contact/. The plugin's Orbital theme draws the fields from its own
   custom properties, and it prints the colors per form under an ID selector
   (#gform_wrapper_N.gform-theme), which outranks any class rule on the wrapper. So the
   site's values are set one level down, on the form element: every Orbital control reads
   them from there by inheritance, whatever the form's number. Nothing here is form-specific.
   Poppy is a fill with dark text, never white on poppy; hover is the dark fill, as on every
   other button on the site. */
.gform_wrapper.gform-theme form {
	--gf-font-family-base: var(--wp--preset--font-family--body);
	--gf-font-family-primary: var(--wp--preset--font-family--body);
	--gf-font-family-secondary: var(--wp--preset--font-family--body);
	--gf-font-size-primary: var(--wp--preset--font-size--body);
	--gf-font-size-secondary: var(--wp--preset--font-size--body);
	--gf-font-size-tertiary: var(--wp--preset--font-size--small);
	--gf-radius: var(--wp--custom--radius--small);

	/* Orbital derives these from the values above where it declares them, on the wrapper,
	   so they are restated here or they keep the wrapper's 14px and 3px. 16px and up on
	   fields also keeps iOS from zooming into the form. */
	--gf-ctrl-radius: var(--wp--custom--radius--small);
	--gf-ctrl-font-size: var(--wp--preset--font-size--body);
	--gf-ctrl-placeholder-font-size: var(--wp--preset--font-size--body);
	--gf-ctrl-label-font-size-primary: var(--wp--preset--font-size--body);
	--gf-ctrl-desc-font-size: var(--wp--preset--font-size--small);

	/* Controls */
	--gf-ctrl-bg-color: var(--wp--preset--color--background);
	--gf-ctrl-color: var(--wp--preset--color--body);
	--gf-ctrl-border-color: var(--wp--preset--color--muted);
	--gf-ctrl-border-width: 1.5px;
	--gf-ctrl-size: 44px;
	--gf-ctrl-border-color-focus: var(--wp--preset--color--dark);
	--gf-ctrl-outline-color-focus: var(--wp--preset--color--dark);
	--gf-ctrl-outline-width-focus: var(--wp--custom--focus--width);
	--gf-ctrl-outline-offset: var(--wp--custom--focus--offset);
	--gf-ctrl-accent-color: var(--wp--preset--color--accent);
	--gf-ctrl-choice-check-color: var(--wp--preset--color--accent);
	--gf-ctrl-select-dropdown-option-shadow-hover: inset 3px 0 0 var(--wp--preset--color--accent);
	--gf-ctrl-shadow: none;

	/* Labels, required markers, descriptions */
	--gf-ctrl-label-color-primary: var(--wp--preset--color--heading);
	--gf-ctrl-label-color-secondary: var(--wp--preset--color--heading);
	--gf-ctrl-label-font-weight-primary: 600;
	--gf-ctrl-label-color-req: var(--wp--preset--color--muted);
	--gf-ctrl-desc-color: var(--wp--preset--color--muted);

	/* The submit button: the site's poppy button */
	--gf-ctrl-btn-bg-color-primary: var(--wp--preset--color--cta);
	--gf-ctrl-btn-color-primary: var(--wp--preset--color--dark);
	--gf-ctrl-btn-bg-color-hover-primary: var(--wp--preset--color--dark);
	--gf-ctrl-btn-color-hover-primary: #ffffff;
	--gf-ctrl-btn-bg-color-focus-primary: var(--wp--preset--color--cta);
	--gf-ctrl-btn-color-focus-primary: var(--wp--preset--color--dark);
	--gf-ctrl-btn-border-color-focus-primary: transparent;
	--gf-ctrl-btn-bg-color-disabled-primary: var(--wp--preset--color--cta);
	--gf-ctrl-btn-font-family: var(--wp--preset--font-family--body);
	--gf-ctrl-btn-font-size: var(--wp--preset--font-size--body);
	--gf-ctrl-btn-font-weight: 600;
	--gf-ctrl-btn-radius: var(--wp--custom--radius--small);
	--gf-ctrl-btn-size: 48px;
	--gf-ctrl-btn-padding-x: 1.375rem;
	--gf-ctrl-btn-shadow: none;
	--gf-ctrl-btn-shadow-hover: none;
}

/* Orbital rings its controls on any :focus, so a mouse click drew the ring. The button
   keeps it for keyboard focus only; the fields drop it after a pointer click (data-input,
   set by theme.js - see Keyboard focus in section 1) and keep their darker focus border.
   The variable is set on the form, where the block above sets Orbital's controls. */
.gform_wrapper.gform-theme .gform_footer .gform_button:focus:not(:focus-visible),
html[data-input="pointer"] .gform_wrapper.gform-theme form {
	--gf-ctrl-outline-width-focus: 0;
}

/* Orbital transitions "all" on its controls, outline included, so a ring faded out over
   0.15s on the field being left - a flash on every click between fields - and faded in on
   Tab. The ring switches instantly; borders, fills and color still ease. */
.gform_wrapper.gform-theme form :is(input, textarea, select, button) {
	transition-property: background-color, border-color, color, box-shadow;
}

.gform_wrapper .gform_confirmation_message {
	font-size: var(--wp--preset--font-size--lead);
}

/* The caption in the enlarged view (theme.js adds the line), in the grid caption's muted
   color on core's light scrim, centered at the foot of the screen. While it shows, the
   photo's frame gives up a band at top and bottom (--wd-caption-band) and the photo is
   contained in what is left, so the caption never sits on the photo. Below 960px, where
   core moves its arrows to the foot, the caption sits above them and wraps to short lines.
   Clicks pass through it, so a click anywhere still closes the view as before. */
.wp-lightbox-overlay {
	--wd-caption-band: 52px;
}

.wp-lightbox-overlay .wd-lightbox-caption {
	position: absolute;
	bottom: calc(env(safe-area-inset-bottom) + 14px);
	left: 50%;
	z-index: 2000003;
	width: max-content;
	max-width: min(40rem, calc(100vw - 32px));
	margin: 0;
	transform: translateX(-50%);
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.4;
	text-align: center;
	pointer-events: none;
}

.wp-lightbox-overlay .wd-lightbox-caption[hidden] {
	display: none;
}

.wp-lightbox-overlay:has(> .wd-lightbox-caption:not([hidden])) .lightbox-image-container {
	max-height: calc(100% - 2 * var(--wd-caption-band) - 2 * env(safe-area-inset-bottom));
}

.wp-lightbox-overlay:has(> .wd-lightbox-caption:not([hidden])) .wp-block-image img {
	width: 100%;
	height: 100%;
	min-width: 0;
	min-height: 0;
	object-fit: contain !important;
}

@media (max-width: 959px) {
	.wp-lightbox-overlay {
		--wd-caption-band: 124px;
	}

	.wp-lightbox-overlay .wd-lightbox-caption {
		bottom: calc(env(safe-area-inset-bottom) + 68px);
		max-width: min(22rem, calc(100vw - 32px));
	}
}

/* Lightbox on phones. Below 481px (core's own threshold, not a theme breakpoint) core frames
   the enlarged photo edge to edge, with no side margin. Keep 16px a side: the frame is capped
   and the photo is contained in it, so it still shows whole (core sets cover inline). */
@media (max-width: 480px) {
	.wp-lightbox-overlay .lightbox-image-container {
		max-width: calc(100vw - 32px);
	}

	.wp-lightbox-overlay .wp-block-image img {
		min-width: 0;
		width: 100%;
		object-fit: contain !important;
	}
}
