/*
Theme Name: Apogee House
Theme URI: https://apogeehouse.com
Author: Apogee House, LLC
Description: Custom block theme for Apogee House, architectural lighting supply and consulting in Miami. Day/night mode that follows the visitor's device, projects with honest status labels, an A–Z brand list with brand pages, and a restyled Zoho CRM inquiry form. No page builder or required plugins. After activating, run Appearance → Apogee Setup.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.1.7
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: apogee-house
Tags: block-patterns, block-styles, full-site-editing, custom-colors, editor-style, featured-images, wide-blocks, translation-ready
*/

/* ==========================================================================
   1. Tokens. Day is the default (theme.json). Night redefines the same
      preset variables, for the visitor's device setting and for an explicit
      choice made with the header or footer switch.
   ========================================================================== */
:root {
	--ah-gutter: var(--wp--style--root--padding-left, clamp(1.25rem, 0.55rem + 3.6vw, 4.5rem));
	--ah-section: var(--wp--preset--spacing--50, clamp(3.75rem, 2.2rem + 5.5vw, 8rem));
	--ah-gap: clamp(1.25rem, 0.7rem + 2vw, 2.75rem);
	--ah-header-h: 4.25rem;
	--ah-admin: var(--wp-admin--admin-bar--height, 0px);
	--ah-hero-ink: #F7F4EF;
	--ah-scrim: 12, 11, 10;
	--ah-on-dark: #F4F1EB;
	--ah-foot: #1D1E1C;
	--ah-foot-ink: #EDE8E0;
	--ah-foot-muted: #ABA498;
	--ah-foot-rule: rgba(237, 232, 224, 0.16);
	--ah-header-bg: rgba(239, 236, 230, 0.9);
	--ah-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	color-scheme: light;
}
@media (min-width: 920px) { :root { --ah-header-h: 5rem; } }
@media (max-width: 600px) { :root { --ah-admin: 0px; } } /* the admin bar scrolls away on phones */

:root[data-theme="dark"],
:root[data-theme="dark"] body {
	--wp--preset--color--base: #131311;
	--wp--preset--color--base-2: #1A1A17;
	--wp--preset--color--surface: #1F1E1B;
	--wp--preset--color--contrast: #EDE8E0;
	--wp--preset--color--muted: #ABA498;
	--wp--preset--color--accent: #C9A672;
	--wp--preset--color--line: #33312C;
	--wp--preset--color--line-strong: #5A564D;
	--wp--preset--color--band: #1C1B18;
	--wp--preset--color--band-text: #EDE8E0;
	--wp--preset--color--band-muted: #ABA498;
	--wp--preset--color--tile: #23221E;
	--ah-foot: #0C0C0B;
	--ah-header-bg: rgba(19, 19, 17, 0.88);
	color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]),
	:root:not([data-theme="light"]) body {
		--wp--preset--color--base: #131311;
		--wp--preset--color--base-2: #1A1A17;
		--wp--preset--color--surface: #1F1E1B;
		--wp--preset--color--contrast: #EDE8E0;
		--wp--preset--color--muted: #ABA498;
		--wp--preset--color--accent: #C9A672;
		--wp--preset--color--line: #33312C;
		--wp--preset--color--line-strong: #5A564D;
		--wp--preset--color--band: #1C1B18;
		--wp--preset--color--band-text: #EDE8E0;
		--wp--preset--color--band-muted: #ABA498;
		--wp--preset--color--tile: #23221E;
		--ah-foot: #0C0C0B;
		--ah-header-bg: rgba(19, 19, 17, 0.88);
		color-scheme: dark;
	}
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--ah-header-h) + var(--ah-admin) + 1rem); }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-wrap: break-word; }
body.ah-theme-ready { transition: background-color 0.25s ease, color 0.25s ease; }
img, video, svg { max-width: 100%; height: auto; }
:where(.wp-site-blocks) :focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 3px; }
::selection { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; font-optical-sizing: auto; }
a { text-underline-offset: 0.3em; text-decoration-thickness: 1px; }
.screen-reader-text:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { z-index: 100001; }
.has-display-font-size { line-height: 0.98 !important; }
.wp-site-blocks > * { margin-block: 0; } /* header, main and footer sit flush */
.ah-cq { container-type: inline-size; container-name: sec; }
.ah-wrap { width: 100%; max-width: calc(var(--wp--style--global--wide-size, 1280px) + 2 * var(--ah-gutter)); margin-inline: auto; padding-inline: var(--ah-gutter); }
.ah-section-pad { padding-block: var(--ah-section); }
.ah-measure { max-width: 62ch; }
.ah-nowrap { white-space: nowrap; }

/* Paragraph and heading styles (offered in the editor's Styles panel) */
.is-style-eyebrow {
	font-family: var(--wp--preset--font-family--body); font-size: 0.7rem !important; font-weight: 500;
	letter-spacing: 0.22em; text-transform: uppercase; line-height: 1.5; color: var(--wp--preset--color--muted);
}
.is-style-lead { font-size: var(--wp--preset--font-size--lead); line-height: 1.55; }
.is-style-number { font-size: 0.75rem !important; letter-spacing: 0.12em; color: var(--wp--preset--color--muted); font-variant-numeric: tabular-nums; }
.has-band-background-color .is-style-eyebrow,
.has-band-background-color .has-muted-color { color: var(--wp--preset--color--band-muted) !important; }

/* ==========================================================================
   3. Buttons and text links (48px targets, arrow after the label)
      → stays on this site. ↗ leaves it: links that open in a new tab, and
      buttons pointing at another website (inc/links.php adds .ah-out).
   ========================================================================== */
:root {
	--ah-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11.5M9 3.5L13.5 8 9 12.5' fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	--ah-arrow-out: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 11.5l7-7M5.5 4.5h6v6' fill='none' stroke='black' stroke-width='1.3'/%3E%3C/svg%3E");
}
.wp-block-button__link, .ah-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.65em;
	min-height: 48px; border-radius: 0; text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.wp-block-button__link::after, .ah-btn--arrow::after, .ah-link::after, .ah-form button[type="submit"]::after {
	content: ""; width: 0.95em; height: 0.95em; flex: none; background: currentColor;
	-webkit-mask: var(--ah-arrow) center / contain no-repeat;
	mask: var(--ah-arrow) center / contain no-repeat;
}
.wp-block-button__link.ah-out::after, .wp-block-button__link[target="_blank"]::after,
.ah-link.ah-out::after, .ah-link[target="_blank"]::after {
	-webkit-mask-image: var(--ah-arrow-out); mask-image: var(--ah-arrow-out);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.wp-block-button__link::after, .ah-btn--arrow::after, .ah-link::after, .ah-form button[type="submit"]::after { transition: transform 0.2s ease; }
	.wp-block-button__link:not(.ah-out):not([target="_blank"]):hover::after, .ah-btn--arrow:hover::after,
	.ah-link:not(.ah-out):not([target="_blank"]):hover::after, .ah-form button[type="submit"]:not([disabled]):hover::after { transform: translateX(0.18em); }
}
.wp-block-button.is-style-plain .wp-block-button__link::after { display: none; }
.wp-block-button.is-style-light .wp-block-button__link { background: var(--ah-on-dark); color: #1D1E1C; border-color: var(--ah-on-dark); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: inherit; border-color: currentColor; }
.wp-block-button.is-style-link .wp-block-button__link {
	background: transparent; color: inherit; border-color: transparent; padding: 0; min-height: 44px; font-weight: 500;
	text-decoration: underline; text-underline-offset: 0.4em; text-decoration-color: var(--wp--preset--color--line-strong);
}
.has-band-background-color .wp-block-button.is-style-link .wp-block-button__link,
.ah-hero .wp-block-button.is-style-link .wp-block-button__link { text-decoration-color: rgba(255, 255, 255, 0.45); }
.wp-block-buttons.is-full .wp-block-button, .wp-block-buttons.is-full .wp-block-button__link { width: 100%; }
@media (hover: hover) {
	.wp-block-button:not(.is-style-link):not(.is-style-light):not(.is-style-outline) .wp-block-button__link:hover { background: var(--wp--preset--color--muted); border-color: var(--wp--preset--color--muted); }
	.wp-block-button.is-style-light .wp-block-button__link:hover { background: #FFFFFF; border-color: #FFFFFF; }
	.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); border-color: var(--wp--preset--color--contrast); }
	.wp-block-button.is-style-link .wp-block-button__link:hover { text-decoration-color: currentColor; }
}
.ah-link { display: inline-flex; align-items: center; gap: 0.55em; min-height: 44px; font-weight: 500; text-decoration: underline; text-underline-offset: 0.4em; text-decoration-color: var(--wp--preset--color--line-strong); }
@media (hover: hover) { .ah-link:hover { text-decoration-color: currentColor; } }

/* ==========================================================================
   4. Header (sticky). The blur sits on ::before: a backdrop-filter on the
      header itself would trap the full-screen menu inside the header.
   ========================================================================== */
header.wp-block-template-part { position: sticky; top: var(--ah-admin); z-index: 100; }
.ah-header { position: relative; color: var(--wp--preset--color--contrast); }
.ah-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: var(--ah-header-bg);
	-webkit-backdrop-filter: saturate(1.2) blur(14px); backdrop-filter: saturate(1.2) blur(14px);
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.ah-header__row { min-height: var(--ah-header-h); gap: 0.5rem !important; flex-wrap: nowrap !important; }
/* Wordmark (1.1.2): between the 1.0.1 size (1.42rem) and the 1.0.2 size (3.16rem). Phones keep
   1.42rem; it grows to 2.25rem on tablets and from 2rem (920px) to 2.5rem (1280px+) on desktop,
   so the letters (0.87em in Crimson Text) are about 80% of the 44px button. */
.ah-header .wp-block-site-title { margin-right: auto; white-space: nowrap; font-size: clamp(1.42rem, 10.73vw - 1.53rem, 2.25rem) !important; }
.ah-header .wp-block-site-title a { display: inline-block; padding-block: clamp(0rem, calc((var(--ah-header-h) - 1em) / 2), 0.6rem); transform: translateY(-0.087em); /* centres the letters on the button */ }
.ah-header__row > .wp-block-navigation { order: 3; }
.ah-header .ah-theme-toggle { order: 2; display: none; }
.ah-header .ah-header-cta { order: 2; }
@media (min-width: 920px) {
	.ah-header__row { gap: clamp(1.25rem, 2.2vw, 2.4rem) !important; }
	.ah-header .wp-block-site-title { font-size: clamp(2rem, 2.22vw + 0.72rem, 2.5rem) !important; }
	.ah-header__row > .wp-block-navigation { order: 1; }
	.ah-header .ah-theme-toggle { display: inline-grid; order: 2; margin-inline: -0.5rem -0.25rem; }
	.ah-header .ah-header-cta { order: 3; }
}
.is-style-caps.wp-block-site-title, .is-style-caps .wp-block-site-title { text-transform: uppercase; letter-spacing: 0.3em; font-size: 0.98rem !important; }

/* Main menu: full-screen overlay below 920px, inline links from 920px. */
.ah-header .wp-block-navigation-item__content { text-decoration: none; padding-block: 0.75rem; min-height: 44px; display: inline-flex; align-items: center; border-bottom: 1px solid transparent; }
.ah-header .wp-block-navigation-item__content[aria-current="page"],
.ah-header .current-menu-item > .wp-block-navigation-item__content { border-bottom-color: currentColor; }
@media (hover: hover) { .ah-header .wp-block-navigation-item__content:hover { border-bottom-color: var(--wp--preset--color--line-strong); } }
.ah-header .wp-block-navigation__responsive-container-open,
.ah-header .wp-block-navigation__responsive-container-close { width: 44px; height: 44px; display: inline-grid; place-items: center; color: inherit; }
.ah-header .wp-block-navigation__responsive-container-open svg,
.ah-header .wp-block-navigation__responsive-container-close svg { width: 26px; height: 26px; }
.ah-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--base) !important; color: var(--wp--preset--color--contrast) !important;
	padding: calc(env(safe-area-inset-top, 0px) + 0.75rem) max(var(--ah-gutter), env(safe-area-inset-right, 0px)) max(1.5rem, env(safe-area-inset-bottom, 0px)) max(var(--ah-gutter), env(safe-area-inset-left, 0px));
}
.ah-header .is-menu-open .wp-block-navigation__responsive-container-close { top: calc(env(safe-area-inset-top, 0px) + 0.75rem); right: max(var(--ah-gutter), env(safe-area-inset-right, 0px)); }
.ah-header .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 4.25rem !important; align-items: stretch !important; gap: 0 !important; min-height: 100%; display: flex; flex-direction: column; }
.ah-header .is-menu-open .wp-block-navigation__container { gap: 0 !important; width: 100%; align-items: stretch !important; }
.ah-header .is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--wp--preset--color--line); }
.ah-header .is-menu-open .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--display); font-weight: 300; letter-spacing: -0.018em;
	font-size: clamp(2rem, 1.2rem + 5vw, 3rem) !important; line-height: 1.1; padding-block: 0.45rem !important; border: 0;
}
.ah-header .is-menu-open .wp-block-buttons { width: 100%; margin-top: 1.5rem; }
.ah-header .is-menu-open .wp-block-button, .ah-header .is-menu-open .wp-block-button__link { width: 100%; }
.ah-menu-extra { display: grid; gap: 0.25rem; margin-top: auto; padding-top: 1.5rem; font-size: 0.95rem; }
.ah-menu-extra .ah-mode-switch { margin-top: 0.75rem; justify-self: start; }
.ah-menu-extra > a:not(.ah-btn) { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; justify-self: start; }
.ah-menu-cta { width: 100%; margin-bottom: 1rem; background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base) !important; border: 1px solid var(--wp--preset--color--contrast); font-weight: 500; padding: 0.8em 1.4em; }
@media (min-width: 920px) {
	.ah-header .wp-block-navigation__responsive-container-open { display: none !important; }
	.ah-header .wp-block-navigation__responsive-container.hidden-by-default:not(.is-menu-open) { display: block; position: relative; width: 100%; z-index: auto; background-color: inherit; }
	.ah-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__responsive-container-close { display: none; }
	.ah-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container { gap: clamp(1.25rem, 2.4vw, 2.4rem); }
	.ah-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-buttons,
	.ah-header .wp-block-navigation__responsive-container:not(.is-menu-open) .ah-menu-extra { display: none; }
}

/* Header call to action: label shortens on narrow phones */
.ah-header-cta { display: inline-flex; }
.ah-header-cta .wp-block-button__link, .ah-header-cta .ah-btn { min-height: 44px; padding: 0.6em 0.95em; font-size: 0.86rem; background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--contrast); font-weight: 500; }
.ah-header-cta .l-mid, .ah-header-cta .l-long { display: none; }
@media (min-width: 360px) { .ah-header-cta .l-short { display: none; } .ah-header-cta .l-mid { display: inline; } }
@media (min-width: 440px) { .ah-header-cta .l-mid { display: none; } .ah-header-cta .l-long { display: inline; } .ah-header-cta .ah-btn { padding-inline: 1.1em; } }
@media (hover: hover) { .ah-header-cta .ah-btn:hover { background: var(--wp--preset--color--muted); border-color: var(--wp--preset--color--muted); } }

/* Day/night toggle and footer switch */
.ah-theme-toggle { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; background: transparent; color: inherit; cursor: pointer; padding: 0; }
.ah-theme-toggle svg { width: 22px; height: 22px; }
.ah-theme-toggle .ah-ico-moon { display: none; }
:root[data-theme="dark"] .ah-theme-toggle .ah-ico-sun { display: none; }
:root[data-theme="dark"] .ah-theme-toggle .ah-ico-moon { display: block; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .ah-theme-toggle .ah-ico-sun { display: none; }
	:root:not([data-theme="light"]) .ah-theme-toggle .ah-ico-moon { display: block; }
}
.ah-mode-switch { display: inline-flex; border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 30%, transparent); }
.ah-mode-switch button { font: 500 0.78rem/1 var(--wp--preset--font-family--body); color: inherit; background: transparent; border: 0; min-height: 40px; padding: 0 0.85rem; cursor: pointer; }
.ah-mode-switch button[aria-pressed="true"] { background: currentColor; }
.ah-mode-switch button[aria-pressed="true"] span { color: var(--ah-foot); }
.ah-menu-extra .ah-mode-switch button[aria-pressed="true"] span { color: var(--wp--preset--color--base); }

/* ==========================================================================
   5. Hero (core Cover block with the class ah-hero)
   ========================================================================== */
.wp-block-cover.ah-hero {
	min-height: clamp(33rem, calc(100svh - var(--ah-header-h) - var(--ah-admin)), 58rem) !important;
	padding: 0 !important; align-items: stretch; color: var(--ah-hero-ink);
}
.wp-block-cover.ah-hero::before {
	content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background: linear-gradient(to top, rgba(var(--ah-scrim), 0.86) 0%, rgba(var(--ah-scrim), 0.62) 42%, rgba(var(--ah-scrim), 0.18) 75%, rgba(var(--ah-scrim), 0.32) 100%);
}
.wp-block-cover.ah-hero .wp-block-cover__inner-container { position: relative; z-index: 2; display: flex; flex-direction: column; width: 100%; max-width: none; color: var(--ah-hero-ink); }
.ah-hero__copy { margin-top: auto !important; padding-block: 3rem 2rem; width: 100%; max-width: calc(var(--wp--style--global--wide-size, 1280px) + 2 * var(--ah-gutter)); margin-inline: auto !important; padding-inline: var(--ah-gutter); }
.ah-hero__copy > * { max-width: 46rem; }
.ah-hero__copy .is-style-eyebrow { color: rgba(247, 244, 239, 0.82); }
.ah-hero__copy .is-style-lead { max-width: 30rem; color: rgba(247, 244, 239, 0.92); }
.ah-hero__foot { border-top: 1px solid rgba(247, 244, 239, 0.22); width: 100%; margin-top: 0 !important; }
.ah-hero__foot p { margin: 0 auto !important; max-width: calc(var(--wp--style--global--wide-size, 1280px) + 2 * var(--ah-gutter)); padding: 1.1rem var(--ah-gutter); color: rgba(247, 244, 239, 0.82) !important; }
@media (min-width: 760px) {
	.wp-block-cover.ah-hero::before { background: linear-gradient(90deg, rgba(var(--ah-scrim), 0.78) 0%, rgba(var(--ah-scrim), 0.5) 38%, rgba(var(--ah-scrim), 0.08) 68%), linear-gradient(to top, rgba(var(--ah-scrim), 0.5), transparent 30%); }
	.ah-hero__copy { margin-block: auto !important; padding-block: 4rem; }
}
/* Short landscape phones: let the hero shrink to its content. */
@media (max-height: 520px) and (orientation: landscape) {
	.wp-block-cover.ah-hero { min-height: 0 !important; }
	.ah-hero__copy { padding-block: 2rem 1.5rem; }
}

/* ==========================================================================
   5b. Section rhythm (1.1.7). Every full-width section of a page sits one
       --ah-section (60px on phones, up to 128px) from the next, whatever
       padding the page saved: plain sections take that space above them,
       coloured bands take it inside, and the section before a band (or at
       the end of the page) also takes it below. Saved padding used to add
       up (bottom + top + the 20px block gap), so gaps ran from 106 to 291px.
       !important because pages store their padding inline.
   ========================================================================== */
:is(.wp-block-post-content, .is-root-container) > .alignfull.ah-cq {
	--ah-pt: var(--ah-section); --ah-pb: 0px;
	margin-block: 0 !important; padding-bottom: var(--ah-pb) !important;
}
:is(.wp-block-post-content, .is-root-container) > .alignfull.ah-cq:not(:first-child) { padding-top: var(--ah-pt) !important; }
/* Coloured bands, and the section before one or at the end of the page */
:is(.wp-block-post-content, .is-root-container) > .alignfull.ah-cq:is(.has-background, :has(> .ah-qband), :last-child, :has(+ .has-background, + * > .ah-qband)) { --ah-pb: var(--ah-section); }
/* A page header (the first section, with the H1) is closer to what it introduces */
:is(.wp-block-post-content, .is-root-container) > .alignfull.ah-cq:first-child:has(> .ah-split h1) { --ah-pb: calc(var(--ah-section) * 0.6); }
:is(.wp-block-post-content, .is-root-container) > .alignfull.ah-cq:first-child:has(> .ah-split h1) + .ah-cq:not(.has-background) { --ah-pt: 0px; }
/* Home: "Already have a specification?" and the brand strip run on from the service line above */
:is(.wp-block-post-content, .is-root-container) > .alignfull.ah-cq:has(> .ah-spec-band) { --ah-pt: 0px; }
/* Full-bleed photo (About) and the Services split hero carry no space of their own */
:is(.wp-block-post-content, .is-root-container) > .alignfull.ah-cq:has(> .ah-pimg, > .ah-shero) { --ah-pt: 0px; --ah-pb: 0px; }
/* One-line closing row (brand pages: "Also supplied … All brands") */
:is(.wp-block-post-content, .is-root-container) > .alignfull.ah-cq:has(> .ah-sec-head:only-child) { --ah-pt: calc(var(--ah-section) * 0.5); --ah-pb: calc(var(--ah-section) * 0.5); }
/* The last row of a section ends the section (no extra space under it) */
.wp-block-group.ah-srow:last-child { padding-bottom: 0; }

/* ==========================================================================
   6. Layout pieces used by the section patterns
   ========================================================================== */
.wp-block-group:is(.ah-split, .ah-cards3, .ah-spec-band, .ah-brandstrip, .ah-qband, .ah-cols3, .ah-form-sec, .ah-shero, .ah-srow, .ah-req, .ah-bcats, .ah-pair) > * { margin-block: 0; }
.ah-stack { display: grid; gap: 1rem; align-content: start; }
.ah-stack > * { margin-block: 0 !important; min-width: 0; }
.ah-stack-lg { display: grid; gap: clamp(1.25rem, 2.4vw, 2rem); align-content: start; }
.ah-stack-lg > * { margin-block: 0 !important; min-width: 0; }

.wp-block-group.ah-split { display: grid; gap: var(--ah-gap); align-items: start; }
@container sec (min-width: 760px) {
	.wp-block-group.ah-split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
	.wp-block-group.ah-split.is-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.wp-block-group.ah-split.is-top { align-items: start; }
	.wp-block-group.ah-split.is-center { align-items: center; }
}
.ah-sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.5rem 1.5rem; margin-bottom: clamp(1.25rem, 2.5vw, 2rem) !important; }
.ah-sec-head > * { margin: 0 !important; }

/* Three image cards */
.wp-block-group.ah-cards3 { display: grid; gap: 2.25rem var(--ah-gap); }
@container sec (min-width: 540px) { .wp-block-group.ah-cards3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ah-gap) clamp(0.9rem, 1.6vw, 1.75rem); } }
.ah-card { display: grid; gap: 0.9rem; align-content: start; }
.ah-card > * { margin: 0 !important; }
.ah-card .wp-block-image { margin: 0; overflow: hidden; background: var(--wp--preset--color--tile); }
.ah-card .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.6s var(--ah-ease); }
@container sec (min-width: 540px) { .ah-cards3 .ah-card .wp-block-image img { aspect-ratio: 4 / 5; } }
.ah-card h3 { margin: 0; }
.ah-card a { text-decoration: none; }
@media (hover: hover) { .ah-card:hover .wp-block-image img { transform: scale(1.025); } }

/* Service chips */
ul.ah-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem 1.1rem; padding: 1.25rem 0 !important; margin: clamp(2rem, 4vw, 3rem) 0 0 !important; border-top: 1px solid var(--wp--preset--color--line); border-bottom: 1px solid var(--wp--preset--color--line); list-style: none; }
ul.ah-chips li { font-size: 0.85rem; color: var(--wp--preset--color--muted); display: flex; align-items: center; gap: 1.1rem; margin: 0; }
ul.ah-chips li + li::before { content: "·"; color: var(--wp--preset--color--line-strong); }
@container sec (max-width: 640px) { ul.ah-chips { gap: 0.35rem 1.25rem; } ul.ah-chips li + li::before { content: none; } }

/* Specification band */
.wp-block-group.ah-spec-band { display: grid; gap: 1.25rem; align-items: center; padding-block: clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--wp--preset--color--line); }
.ah-spec-band h2 { font-size: clamp(1.7rem, 1.25rem + 1.9vw, 2.55rem) !important; }
@container sec (min-width: 620px) { .wp-block-group.ah-spec-band { grid-template-columns: minmax(0, 1fr) auto; column-gap: 2rem; } .ah-spec-band > :first-child { grid-column: 1 / -1; } }
@container sec (min-width: 1040px) {
	.wp-block-group.ah-spec-band { grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(1.5rem, 3vw, 3rem); }
	.ah-spec-band > :first-child { grid-column: auto; }
	.ah-spec-band > p { border-left: 1px solid var(--wp--preset--color--line); padding-left: clamp(1.5rem, 3vw, 3rem); }
}

/* Brand logo strip */
.wp-block-group.ah-brandstrip { display: grid; gap: 1.25rem; align-items: center; padding-block: clamp(1.5rem, 3vw, 2.25rem); border-bottom: 1px solid var(--wp--preset--color--line); }
@container sec (min-width: 960px) { .wp-block-group.ah-brandstrip { grid-template-columns: 11rem minmax(0, 1fr) auto; gap: 3rem; } }
.ah-logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 1.5rem; align-items: center; justify-items: start; list-style: none; padding: 0; margin: 0; }
@container sec (min-width: 600px) { .ah-logos { grid-template-columns: repeat(4, auto); justify-content: space-between; } }
@container sec (min-width: 960px) { .ah-logos { justify-content: space-evenly; } }
.ah-logos a { display: flex; align-items: center; min-height: 44px; max-width: 100%; text-decoration: none; color: inherit; }
.ah-logos .ah-brand-name { font-family: var(--wp--preset--font-family--display); font-size: 1.35rem; font-weight: 300; letter-spacing: 0.01em; }
.ah-logos li { min-width: 0; max-width: 100%; }
.ah-logo { display: block; flex: 0 1 auto; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; width: calc(var(--h, 16px) * var(--ar, 6)); max-width: 100%; height: auto; aspect-ratio: var(--ar, 6); }
@container sec (min-width: 960px) { .ah-logos .ah-logo { width: calc(var(--h, 16px) * 1.15 * var(--ar, 6)); } }

/* "Have a lighting question?": a full-width dark band (1.1.7; it was a card inside the page width).
   Pages saved before 1.1.7 carry the colour and padding on the inner group: the section takes the
   colour here and the inner group loses its padding, so the band looks the same either way. */
.ah-cq:has(> .ah-qband) { background-color: var(--wp--preset--color--band); color: var(--wp--preset--color--band-text); }
.wp-block-group.ah-qband { display: grid; gap: 2rem; padding: 0 !important; border: 0; }
.ah-qband__aside { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; padding-top: 1.75rem; border-top: 1px solid rgba(237, 232, 224, 0.16); }
.ah-qband__aside > * { margin: 0 !important; }
.ah-qband__aside h3 { font-size: var(--wp--preset--font-size--x-large); }
ul.ah-qfacts { list-style: none; padding: 0; align-self: stretch; border-top: 1px solid rgba(237, 232, 224, 0.16); }
ul.ah-qfacts li { margin: 0; padding: 0.6rem 0; border-bottom: 1px solid rgba(237, 232, 224, 0.16); font-size: 0.95rem; line-height: 1.45; }
@container sec (min-width: 860px) {
	.wp-block-group.ah-qband { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 4rem; align-items: stretch; }
	.ah-qband__aside { padding: 0 0 0 3rem; border-top: 0; border-left: 1px solid rgba(237, 232, 224, 0.16); }
	/* The button lines up with the last line on the left; with the pre-1.1.7 markup the
	   availability line moves to the top of the column instead of leaving it empty. */
	.ah-qband__aside > .wp-block-buttons { margin-top: auto !important; padding-top: 0.75rem; }
}

/* Three columns divided by rules */
.wp-block-group.ah-cols3 { display: grid; gap: 0; }
.ah-cols3 > * { padding-block: 1.5rem; border-top: 1px solid var(--wp--preset--color--line); display: grid; gap: 0.55rem; align-content: start; }
.ah-cols3 > * > * { margin: 0 !important; }
@container sec (max-width: 699.98px) { .ah-cols3 > :last-child { padding-bottom: 0; } } /* stacked: no empty space under the last one */
@container sec (min-width: 700px) {
	.wp-block-group.ah-cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--wp--preset--color--line); }
	.ah-cols3 > * { border-top: 0; padding: 1.75rem clamp(1.25rem, 2.6vw, 2.5rem); }
	.ah-cols3 > * + * { border-left: 1px solid var(--wp--preset--color--line); }
	.ah-cols3 > *:first-child { padding-left: 0; }
	.ah-cols3 > *:last-child { padding-right: 0; }
}

/* Feature (project notes, about split) */
.wp-block-group.ah-feature, .ah-feature { display: grid; gap: var(--ah-gap); align-items: center; }
.wp-block-group.ah-feature > * { margin: 0 !important; }
@container sec (min-width: 760px) { .wp-block-group.ah-feature, .ah-feature { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.ah-feature .wp-block-image, .ah-feature__media { margin: 0; overflow: hidden; background: var(--wp--preset--color--tile); }
.ah-feature .wp-block-image img, .ah-feature__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }

/* Status labels (projects) */
.ah-status { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.ah-status::before { content: ""; width: 0.55rem; height: 0.55rem; border: 1px solid currentColor; border-radius: 50%; flex: none; }
.ah-status--onsite::before { background: currentColor; opacity: 0.55; }
.ah-status--completed { color: var(--wp--preset--color--accent); }
.ah-status--completed::before { background: currentColor; }

/* Contact / inquiry split */
.wp-block-group.ah-form-sec { display: grid; gap: var(--ah-gap); }
@container sec (min-width: 860px) {
	.wp-block-group.ah-form-sec { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0; }
	.ah-form-sec > :first-child { padding-right: clamp(2rem, 5vw, 4.5rem); border-right: 1px solid var(--wp--preset--color--line); }
	.ah-form-sec > :last-child { padding-left: clamp(2rem, 5vw, 4.5rem); }
}
.ah-cmedia { margin: 0 !important; overflow: hidden; background: var(--wp--preset--color--tile); }
.ah-cmedia img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 84% 50%; display: block; }
@container sec (min-width: 860px) { .ah-cmedia img { aspect-ratio: 4 / 5; } }

/* Services split hero */
.wp-block-group.ah-shero { display: grid; padding: 0 !important; }
.ah-shero__copy { display: grid; gap: 1.2rem; align-content: center; padding-block: clamp(2.5rem, 6vw, 5rem); padding-inline: var(--ah-gutter); }
.ah-shero__copy > * { margin: 0 !important; }
.ah-shero .wp-block-image { margin: 0; overflow: hidden; background: var(--wp--preset--color--tile); }
.ah-shero .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 55%; display: block; }
@container sec (min-width: 820px) {
	.wp-block-group.ah-shero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); min-height: min(calc(100svh - var(--ah-header-h) - var(--ah-admin)), 46rem); border-bottom: 1px solid var(--wp--preset--color--line); }
	.ah-shero__copy { padding-left: max(var(--ah-gutter), calc((100cqi - var(--wp--style--global--wide-size, 1280px)) / 2)); padding-right: clamp(2rem, 4vw, 4rem); }
	.ah-shero__copy h1 { font-size: min(var(--wp--preset--font-size--xxx-large), 4.65rem) !important; }
	.ah-shero .wp-block-image, .ah-shero .wp-block-image img { height: 100%; aspect-ratio: auto; }
}

/* Alternating rows (services) */
.wp-block-group.ah-srow { display: grid; gap: 1.5rem; padding-block: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--wp--preset--color--line); }
.ah-srow .wp-block-image { margin: 0; overflow: hidden; background: var(--wp--preset--color--tile); }
.ah-srow .wp-block-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.ah-srow__body { display: grid; gap: 0.8rem; align-content: center; }
.ah-srow__body > * { margin: 0 !important; }
@container sec (min-width: 760px) {
	.wp-block-group.ah-srow { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
	.wp-block-group.ah-srow.is-flipped > .wp-block-image { order: 2; }
}

/* Lists */
ul.ah-bul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; }
ul.ah-bul li { padding-left: 1.4rem; position: relative; max-width: 62ch; margin: 0; }
ul.ah-bul li::before { content: ""; position: absolute; left: 0; top: 0.78em; width: 0.7rem; height: 1px; background: var(--wp--preset--color--line-strong); }
ul.ah-facts { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; padding: 1.1rem 0 !important; border-top: 1px solid var(--wp--preset--color--line); border-bottom: 1px solid var(--wp--preset--color--line); list-style: none; margin-block: 0; }
ul.ah-facts li { font-size: 0.9rem; margin: 0; }
ul.ah-tagrow { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
ul.ah-tagrow li { border: 1px solid var(--wp--preset--color--line-strong); padding: 0.45rem 0.75rem; font-size: 0.88rem; margin: 0; }

/* FAQ (core Details blocks inside .ah-faq) */
.ah-faq { border-top: 1px solid var(--wp--preset--color--line); }
.ah-faq > * { margin-block: 0 !important; }
.ah-faq .wp-block-details { border-bottom: 1px solid var(--wp--preset--color--line); padding: 0; }
.ah-faq .wp-block-details summary {
	list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 56px; padding-block: 1rem;
	font-family: var(--wp--preset--font-family--display); font-weight: 300; letter-spacing: -0.01em; font-size: clamp(1.2rem, 1.05rem + 0.65vw, 1.55rem); line-height: 1.25;
}
.ah-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.ah-faq .wp-block-details summary::after { content: "+"; font-family: var(--wp--preset--font-family--body); font-weight: 300; font-size: 1.5rem; line-height: 1; flex: none; }
.ah-faq .wp-block-details[open] summary::after { content: "–"; }
.ah-faq .wp-block-details > :not(summary) { color: var(--wp--preset--color--muted); margin: 0 0 1.25rem; }

/* Contact request cards */
.wp-block-group.ah-req { display: grid; gap: 1px; background: var(--wp--preset--color--line); border-block: 1px solid var(--wp--preset--color--line); }
.ah-req > * { background: var(--wp--preset--color--base); padding: 1.5rem 0; display: grid; gap: 0.5rem; align-content: start; }
.ah-req > * > * { margin: 0 !important; }
@container sec (min-width: 760px) { .wp-block-group.ah-req { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ah-req > * { padding: 2rem clamp(1.25rem, 2.6vw, 2.5rem); } .ah-req > *:first-child { padding-left: 0; } }
/* Inquiry received: numbered steps, then "While you wait" links on one line. */
.wp-block-group.ah-steps { counter-reset: ah-step; }
.ah-steps > * { counter-increment: ah-step; }
.ah-steps > *::before { content: counter(ah-step, decimal-leading-zero); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; color: var(--wp--preset--color--accent); }
.wp-block-group.ah-thanks-more { display: flex; flex-wrap: wrap; align-items: center; gap: 0 2rem; margin-top: 0.5rem !important; }
.ah-thanks-more > * { margin: 0 !important; }
.wp-block-buttons.ah-thanks-links { gap: 0 2rem; }

/* Brand page pieces */
.wp-block-group.ah-bcats { display: grid; gap: 1px; background: var(--wp--preset--color--line); border-block: 1px solid var(--wp--preset--color--line); }
.ah-bcats > * { background: var(--wp--preset--color--base); padding: 1.4rem 0; display: grid; gap: 0.4rem; align-content: start; }
.ah-bcats > * > * { margin: 0 !important; }
@container sec (min-width: 620px) { .wp-block-group.ah-bcats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ah-bcats > * { padding: 1.6rem 1.5rem; } .ah-bcats > *:nth-child(odd) { padding-left: 0; } }
@container sec (min-width: 1000px) { .wp-block-group.ah-bcats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ah-bcats > *:nth-child(odd) { padding-left: 1.5rem; } .ah-bcats > *:nth-child(3n+1) { padding-left: 0; } }
.ah-checklist { border: 1px solid var(--wp--preset--color--line); padding: clamp(1.25rem, 3vw, 2rem) !important; display: grid; gap: 1rem; background: var(--wp--preset--color--surface); }
.ah-checklist > * { margin: 0 !important; }
.ah-checklist ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.8rem; counter-reset: c; }
.ah-checklist ol li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); counter-increment: c; margin: 0; }
.ah-checklist ol li::before { content: counter(c, decimal-leading-zero); font-size: 0.75rem; color: var(--wp--preset--color--muted); padding-top: 0.2rem; }
.ah-bhero { display: grid; gap: var(--ah-gap); }
.ah-bhero > * { margin: 0 !important; min-width: 0; }
@container sec (min-width: 860px) { .ah-bhero { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; } }
.ah-bpanel { border: 1px solid var(--wp--preset--color--line); background: var(--wp--preset--color--surface); padding: clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: 1.5rem; }
.ah-bpanel { min-width: 0; }
.ah-bpanel > * { min-width: 0; }
.ah-bpanel .ah-logo { width: min(100%, calc(var(--h, 34px) * var(--ar, 5))); }
.ah-bpanel .ah-brand-name { font-family: var(--wp--preset--font-family--display); font-size: 2rem; font-weight: 300; }

/* Definition list (contact details, brand panel) */
.ah-dl { display: grid; gap: 0.9rem; margin: 0; }
.ah-dl div { display: grid; gap: 0.1rem; }
.ah-dl dt { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.ah-dl dd { margin: 0; }
.ah-dl a { text-decoration: none; }
@media (hover: hover) { .ah-dl a:hover { text-decoration: underline; } }

/* Breadcrumbs */
.ah-crumbs ol, .ah-crumbs .rank-math-breadcrumb p { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; margin: 0; font-size: 0.85rem; color: var(--wp--preset--color--muted); }
.ah-crumbs a { text-decoration: none; }
@media (hover: hover) { .ah-crumbs a:hover { text-decoration: underline; } }

/* Legal and other text pages */
.ah-prose { font-size: var(--wp--preset--font-size--medium); }
.ah-prose h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); margin-top: 2.5rem; }
.ah-prose h3 { font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem); margin-top: 2rem; }
.ah-prose li { margin-block: 0.3rem; }

/* ==========================================================================
   7. Inquiry form (posts straight to Zoho CRM)
   ========================================================================== */
.ah-form { display: grid; gap: 1.1rem; container-type: inline-size; container-name: form; }
.ah-form > * { margin: 0; }
.ah-f-grid { display: grid; gap: 1.1rem; }
@container form (min-width: 520px) { .ah-f-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ah-fld { display: grid; gap: 0.4rem; min-width: 0; }
.ah-fld label, .ah-seg legend, .ah-fld .ah-fld__label { font-size: 0.85rem; font-weight: 500; }
.ah-fld label i, .ah-fld__label i { font-style: normal; color: var(--wp--preset--color--muted); font-weight: 400; }
.ah-fld input, .ah-fld textarea, .ah-search input {
	width: 100%; min-height: 48px; padding: 0.75rem 0.85rem; font: 400 1rem/1.4 var(--wp--preset--font-family--body); color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line-strong); border-radius: 0; -webkit-appearance: none; appearance: none;
}
.ah-fld textarea { min-height: 8.5rem; resize: vertical; }
.ah-fld input::placeholder, .ah-fld textarea::placeholder, .ah-search input::placeholder { color: var(--wp--preset--color--muted); opacity: 0.85; }
.ah-fld input:focus, .ah-fld textarea:focus, .ah-search input:focus { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 0; border-color: var(--wp--preset--color--accent); }
.ah-fld input[aria-invalid="true"], .ah-fld textarea[aria-invalid="true"] { border-color: #B3261E; }
.ah-err { color: #B3261E; font-size: 0.85rem; }
:root[data-theme="dark"] .ah-err { color: #F2A29B; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ah-err { color: #F2A29B; } }
.ah-seg { border: 0; padding: 0; margin: 0; display: grid; gap: 0.5rem; min-width: 0; }
.ah-seg__opts { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ah-seg__opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ah-seg__opts label { display: inline-flex; align-items: center; min-height: 44px; padding: 0.55rem 0.95rem; border: 1px solid var(--wp--preset--color--line-strong); font-size: 0.9rem; cursor: pointer; background: var(--wp--preset--color--surface); }
.ah-seg__opts input:checked + label { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); border-color: var(--wp--preset--color--contrast); }
.ah-seg__opts input:focus-visible + label { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 2px; }
.ah-file { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; }
.ah-file input[type="file"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ah-file label { display: inline-flex; align-items: center; min-height: 48px; padding: 0.6rem 1.2rem; border: 1px solid currentColor; cursor: pointer; font-size: 0.9rem; font-weight: 500; }
.ah-file input:focus-visible + label { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 2px; }
.ah-file__names { font-size: 0.85rem; color: var(--wp--preset--color--muted); overflow-wrap: anywhere; }
.ah-captcha { min-height: 78px; max-width: 100%; }
.ah-form button[type="submit"] { width: 100%; min-height: 52px; border: 1px solid var(--wp--preset--color--contrast); background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); font: 500 1rem/1.2 var(--wp--preset--font-family--body); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 0.65em; }
.ah-form button[type="submit"][disabled] { opacity: 0.6; cursor: progress; }
@media (hover: hover) { .ah-form button[type="submit"]:hover { background: var(--wp--preset--color--muted); border-color: var(--wp--preset--color--muted); } }
.ah-form__fine { font-size: 0.82rem; color: var(--wp--preset--color--muted); }
.ah-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   8. Projects
   ========================================================================== */
.ah-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.ah-filters button { font: 500 0.85rem/1 var(--wp--preset--font-family--body); min-height: 44px; padding: 0.5rem 1rem; border: 1px solid var(--wp--preset--color--line-strong); background: transparent; color: var(--wp--preset--color--contrast); cursor: pointer; }
.ah-filters button[aria-pressed="true"] { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); border-color: var(--wp--preset--color--contrast); }
.ah-pgrid { display: grid; gap: 2.5rem var(--ah-gap); }
@container sec (min-width: 620px) { .ah-pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ah-pgrid > .ah-pcard--wide { grid-column: 1 / -1; } }
.ah-pcard { display: grid; gap: 0.9rem; text-decoration: none; color: inherit; }
.ah-pcard[hidden] { display: none; }
.ah-pcard__media { aspect-ratio: 16 / 11; overflow: hidden; background: var(--wp--preset--color--tile); }
.ah-pcard--wide .ah-pcard__media { aspect-ratio: 16 / 9; }
@container sec (min-width: 620px) { .ah-pcard--wide .ah-pcard__media { aspect-ratio: 2.35 / 1; } }
.ah-pcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ah-ease); }
@media (hover: hover) { .ah-pcard:hover .ah-pcard__media img { transform: scale(1.02); } }
.ah-pcard__meta { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.ah-pcard__meta h2, .ah-pcard__meta h3 { font-size: var(--wp--preset--font-size--x-large); margin: 0; }
.ah-pcard__meta .ah-link { min-height: 0; white-space: nowrap; font-size: 0.875rem; }
.ah-back { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; min-height: 44px; font-size: 0.92rem; }
.ah-pimg { margin: 0; overflow: hidden; background: var(--wp--preset--color--tile); }
.ah-pimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ah-pimg--lead img { aspect-ratio: 4 / 3; }
@container sec (min-width: 700px) { .ah-pimg--lead img { aspect-ratio: 2 / 1; } }
.ah-pfacts { display: grid; gap: 0; border-bottom: 1px solid var(--wp--preset--color--line); margin: 0; }
.ah-pfacts > div { padding-block: 1.1rem; border-top: 1px solid var(--wp--preset--color--line); display: grid; gap: 0.25rem; }
.ah-pfacts dt { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.ah-pfacts dd { margin: 0; }
@container sec (min-width: 700px) { .ah-pfacts { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ah-pfacts > div { border-top: 0; padding: 1.4rem 1.5rem; } .ah-pfacts > div + div { border-left: 1px solid var(--wp--preset--color--line); } .ah-pfacts > div:first-child { padding-left: 0; } }
.ah-story { display: grid; gap: var(--ah-gap); }
@container sec (min-width: 760px) { .ah-story { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.ah-story__notes { display: grid; gap: 1.5rem; align-content: start; }
.ah-gallery { display: grid; gap: 2rem var(--ah-gap); }
@container sec (min-width: 700px) { .ah-gallery { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } .ah-gallery > .is-wide { grid-column: 1 / -1; } }
.ah-gallery figure { margin: 0; display: grid; gap: 0.75rem; }
.ah-gallery figcaption { font-size: 0.88rem; color: var(--wp--preset--color--muted); max-width: 52ch; }
.ah-gallery .is-a img { aspect-ratio: 16 / 10; }
.ah-gallery .is-b img { aspect-ratio: 4 / 5; }
.ah-gallery .is-wide img { aspect-ratio: 4 / 3; }
@container sec (min-width: 700px) { .ah-gallery .is-wide img { aspect-ratio: 2 / 1; } }
.ah-pnext { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; padding-block: 1.5rem; border-top: 1px solid var(--wp--preset--color--line); }
.ah-pnext a.ah-next { display: inline-flex; align-items: center; gap: 1rem; text-decoration: none; min-height: 44px; }
.ah-pnext a.ah-next img { width: 7.5rem; aspect-ratio: 3 / 2; object-fit: cover; }
/* Single project (1.1.7): story, your own blocks, gallery, principles and the next-project bar sit one
   --ah-section apart (the template's padding used to stack to ~160px), and a part with nothing in it
   (no story or principles filled in) leaves no empty space. */
.single-ah_project main > .wp-block-group.alignwide { margin-top: 0 !important; padding: var(--ah-section) 0 0 !important; }
.single-ah_project main > .wp-block-group.alignwide:not(:has(*)) { display: none; }
.single-ah_project main > :is(.wp-block-post-content, .ah-project--gallery, .ah-pnext) { margin-top: var(--ah-section) !important; }
.ah-project--gallery > :last-child { margin-bottom: 0; }
.ah-concept-note { font-size: 0.88rem; color: var(--wp--preset--color--muted); }

/* ==========================================================================
   9. Brands A–Z
   ========================================================================== */
.ah-search { position: relative; }
.ah-search input { padding-left: 2.6rem; }
.ah-search svg { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--wp--preset--color--muted); }
/* Phones and tablets: the search (and product type menu) scroll away and only
   the A–Z bar stays under the header, every letter visible (2 rows, or 3 on
   the narrowest phones; no sideways scrolling). Wide screens: the whole bar
   stays, in one or two rows. */
.ah-bbar { display: contents; }
.ah-btools { display: grid; gap: 0.75rem; padding-block: 0.75rem; align-items: end; }
.ah-pick { display: grid; gap: 0.3rem; min-width: 0; }
.ah-pick[hidden] { display: none; }
.ah-pick label { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.ah-pick select {
	width: 100%; min-height: 48px; padding: 0.7rem 2.4rem 0.7rem 0.85rem; font: 400 1rem/1.4 var(--wp--preset--font-family--body); color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%2357534B' stroke-width='1.4'/%3E%3C/svg%3E") right 0.8rem center / 14px no-repeat;
	border: 1px solid var(--wp--preset--color--line-strong); border-radius: 0; -webkit-appearance: none; appearance: none;
}
.ah-pick select:focus { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 0; border-color: var(--wp--preset--color--accent); }
.ah-az {
	position: sticky; top: calc(var(--ah-header-h) + var(--ah-admin)); z-index: 10; background: var(--wp--preset--color--base);
	display: grid; grid-template-columns: repeat(var(--ah-az-c2, 13), minmax(0, 1fr)); padding-block: 0.2rem; border-bottom: 1px solid var(--wp--preset--color--line);
}
.ah-az a { min-width: 0; min-height: 40px; display: grid; place-items: center; font-weight: 500; font-size: 0.95rem; text-decoration: none; }
.ah-az a.is-off { color: var(--wp--preset--color--line-strong); cursor: default; }
@media (hover: hover) { .ah-az a:not(.is-off):hover { text-decoration: underline; text-underline-offset: 0.3em; } }
@container sec (max-width: 19.5rem) { .ah-az { grid-template-columns: repeat(var(--ah-az-c3, 9), minmax(0, 1fr)); } }
@container sec (min-width: 700px) { .ah-az { grid-template-columns: repeat(var(--ah-az-n, 26), minmax(0, 1fr)); } .ah-btools:has(.ah-pick:not([hidden])) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@container sec (min-width: 920px) {
	.ah-bbar { display: grid; gap: 0 2rem; align-items: center; position: sticky; top: calc(var(--ah-header-h) + var(--ah-admin)); z-index: 10; background: var(--wp--preset--color--base); border-bottom: 1px solid var(--wp--preset--color--line); padding-block: 0.75rem; }
	.ah-bbar:not(.has-types) { grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr); }
	.ah-btools { padding-block: 0; }
	.ah-bbar.has-types .ah-btools { grid-template-columns: minmax(16rem, 22rem) minmax(14rem, 20rem); gap: 1rem; padding-bottom: 0.5rem; }
	.ah-az { position: static; border-bottom: 0; padding-block: 0; background: none; }
}
.ah-bbar, .ah-btools, .ah-types { scroll-margin-top: calc(var(--ah-header-h) + var(--ah-admin) + 0.5rem); }
.ah-bresult { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.5rem; padding-block: 1rem; border-bottom: 1px solid var(--wp--preset--color--line); }
.ah-bresult[hidden] { display: none; }
.ah-bresult p { margin: 0; font-size: 1.05rem; }
.ah-textbtn { font: 500 1rem/1.3 var(--wp--preset--font-family--body); color: inherit; background: none; border: 0; padding: 0; min-height: 44px; cursor: pointer; text-decoration: underline; text-underline-offset: 0.4em; text-decoration-color: var(--wp--preset--color--line-strong); }
@media (hover: hover) { .ah-textbtn:hover { text-decoration-color: currentColor; } }
/* Browse by product type */
/* Row of product-type links above the search (Apogee Settings → Product types). */
.ah-tlinks { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.ah-tlinks__label { margin: 0 !important; }
.ah-tlinks ul.ah-tagrow--links a.is-active { background: var(--wp--preset--color--contrast); border-color: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }
.ah-tlinks ul.ah-tagrow--links a.is-active em { color: inherit; }
/* "Browse by product type": one bar, closed by default (a <details>, so it works without JavaScript). */
.ah-types { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); border-block: 1px solid var(--wp--preset--color--line-strong); }
.ah-types__sum { display: flex; align-items: center; gap: 0.75rem; min-height: 56px; padding-block: 0.5rem; cursor: pointer; list-style: none; }
.ah-types__sum::-webkit-details-marker { display: none; }
.ah-types__sum::after { content: "+"; margin-left: auto; font-weight: 300; font-size: 1.6rem; line-height: 1; width: 1.25rem; text-align: center; }
.ah-types[open] > .ah-types__sum::after { content: "–"; }
.ah-types__sum:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 2px; }
.ah-types__title { margin: 0 !important; font: 500 1.05rem/1.3 var(--wp--preset--font-family--body) !important; letter-spacing: 0 !important; }
.ah-types__count { font-size: 0.8rem; color: var(--wp--preset--color--muted); }
@media (hover: hover) { .ah-types__sum:hover .ah-types__title { text-decoration: underline; text-underline-offset: 0.3em; } }
.ah-types__grid { display: grid; border-top: 1px solid var(--wp--preset--color--line); }
.ah-tgroup:last-child { border-bottom: 0; }
@container sec (min-width: 700px) { .ah-types[open] > .ah-types__grid { margin-bottom: 0.75rem; } }
.ah-tgroup { border-bottom: 1px solid var(--wp--preset--color--line); min-width: 0; }
.ah-tgroup__h { margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; min-height: 48px; font: 500 1rem/1.3 var(--wp--preset--font-family--body); letter-spacing: 0; }
.ah-tgroup__h em, .ah-tgroup__list em { font-style: normal; font-weight: 400; font-size: 0.8rem; color: var(--wp--preset--color--muted); }
.ah-tgroup__btn { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; width: 100%; min-height: 48px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ah-tgroup__btn > span { flex: 1; }
.ah-tgroup__btn::after { content: "+"; font-weight: 300; font-size: 1.4rem; line-height: 1; width: 1rem; text-align: center; }
.ah-tgroup__btn[aria-expanded="true"]::after { content: "–"; }
.ah-tgroup__list { list-style: none; margin: 0; padding: 0 0 0.75rem; display: grid; }
.ah-tgroup__list[hidden] { display: none; }
.ah-tgroup__list li { margin: 0; }
.ah-tgroup__list a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-block: 0.55rem; min-height: 40px; text-decoration: none; line-height: 1.3; }
.ah-tgroup__list a.is-active { font-weight: 600; }
.ah-tgroup__list a.is-active em { color: var(--wp--preset--color--contrast); }
.ah-tag, .ah-azg li a .ah-tag { display: inline-block; font-size: 0.62rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wp--preset--color--accent); border: 1px solid currentColor; padding: 0.12rem 0.35rem; white-space: nowrap; line-height: 1.3; vertical-align: 0.15em; }
@media (hover: hover) { .ah-tgroup__list a:hover > span { text-decoration: underline; text-underline-offset: 0.3em; } }
@container sec (min-width: 700px) {
	.ah-types__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1.5rem, 3.5vw, 3.5rem); border-top: 0; }
	.ah-tgroup { border-bottom: 0; border-top: 1px solid var(--wp--preset--color--line); padding-top: 0.5rem; padding-bottom: 1.25rem; }
	.ah-tgroup__h { min-height: 0; padding-block: 0.6rem 0.4rem; }
}
.ah-preview-note { margin: 0 0 1.5rem !important; padding: 0.75rem 1rem; border: 1px dashed var(--wp--preset--color--accent); color: var(--wp--preset--color--accent); font-size: 0.88rem; }
.ah-azgrid { display: grid; margin-top: -1px; } /* the first row's top line sits under the A–Z bar's line: one line, no notch */
@container sec (min-width: 700px) { .ah-azgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 6vw, 6rem); } }
.ah-azg { display: grid; grid-template-columns: clamp(3.25rem, 12vw, 9rem) minmax(0, 1fr); gap: 1rem; padding-block: 1.75rem; border-top: 1px solid var(--wp--preset--color--line); scroll-margin-top: calc(var(--ah-header-h) + var(--ah-admin) + 6rem); }
@container sec (max-width: 19.5rem) { .ah-azg { scroll-margin-top: calc(var(--ah-header-h) + var(--ah-admin) + 8.5rem); } }
@container sec (min-width: 920px) { .ah-azg { scroll-margin-top: calc(var(--ah-header-h) + var(--ah-admin) + 9rem); } }
.ah-azg[hidden] { display: none; }
/* Anything the search, the Product type menu or "Show all" hides stays hidden, whatever its layout rule (1.1.5 fix: brand lines are display: flex). */
.ah-brand-index [hidden], .ah-pt [hidden] { display: none !important; }
.ah-azg__l { font-family: var(--wp--preset--font-family--display); font-weight: 300; font-size: clamp(2.75rem, 1.7rem + 3.7vw, 4.75rem); line-height: 0.9; margin: 0; }
.ah-azg ul { list-style: none; margin: 0; padding: 0; display: grid; align-content: start; gap: 0.1rem; }
.ah-azg li { margin: 0; display: flex; align-items: center; min-width: 0; }
.ah-azg li a.ah-bname { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 0.25rem 0.5rem; min-width: 0; min-height: 40px; padding-block: 0.3rem; text-decoration: none; font-size: 1.02rem; line-height: 1.3; align-content: center; }
@media (hover: hover) { .ah-azg li a.ah-bname:hover { text-decoration: underline; text-underline-offset: 0.3em; } }
/* The separate ↗ to the manufacturer's website (40px tap target, quiet). */
.ah-bsite { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2rem; min-height: 40px; margin-left: 0.05rem; color: var(--wp--preset--color--muted); text-decoration: none; }
.ah-bsite .ah-ico { width: 0.8rem; height: 0.8rem; }
@media (hover: hover) { .ah-bsite:hover { color: var(--wp--preset--color--accent); } }
.ah-pt-intro .ah-ico { width: 0.75em; height: 0.75em; vertical-align: -0.05em; }
.ah-none { padding-block: 2rem; color: var(--wp--preset--color--muted); }

/* ==========================================================================
   9b. Product-type pages (/brands/type/<slug>/)
   ========================================================================== */
/* Same rhythm as page sections (5b): space above each plain section, inside each band, and under the section before a band. */
.ah-pt { padding-block: var(--ah-section) 0; }
main > .ah-pt { margin-block: 0; }
.ah-pt:is(.has-background, :has(+ .has-background)) { padding-bottom: var(--ah-section); }
.ah-pt--hero { padding-block: clamp(1.25rem, 3vw, 2.5rem) 0; }
.ah-pt--photo { padding-block: calc(var(--ah-section) * 0.6) 0; }
.ah-pt--others { padding-block: calc(var(--ah-section) * 0.5); }
.ah-pt h2 { margin: 0; }
.ah-pt-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.ah-pt-acts .wp-block-buttons { margin: 0; }
.ah-pt-card { align-content: start; }
.ah-pt-card p { margin: 0; }
.ah-pt-count { font-family: var(--wp--preset--font-family--display); font-weight: 300; font-size: clamp(3.25rem, 2.4rem + 3vw, 5rem); line-height: 0.95; letter-spacing: -0.02em; }
ul.ah-tagrow--links li { border: 0; padding: 0; }
ul.ah-tagrow--links a { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 40px; padding: 0.4rem 0.8rem; border: 1px solid var(--wp--preset--color--line-strong); text-decoration: none; font-size: 0.9rem; line-height: 1.2; }
ul.ah-tagrow--links em { font-style: normal; font-size: 0.78rem; color: var(--wp--preset--color--muted); }
@media (hover: hover) { ul.ah-tagrow--links a:hover { border-color: currentColor; } }
.ah-pt-figure { margin: 0; }
.ah-pt-figure img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--wp--preset--color--tile); }
@container sec (min-width: 700px) { .ah-pt-figure img { aspect-ratio: 21 / 9; } }
.ah-pt-figure figcaption { margin-top: 0.6rem; font-size: 0.8rem; color: var(--wp--preset--color--muted); }
.ah-pt-fcards { display: grid; gap: 1px; background: var(--wp--preset--color--line); border-block: 1px solid var(--wp--preset--color--line); }
.ah-pt-fcard { display: grid; gap: 1rem; align-content: start; padding: 1.5rem 0; background: var(--wp--preset--color--base); color: inherit; text-decoration: none; min-width: 0; }
.ah-pt-fcard__mark { display: flex; align-items: center; min-height: 44px; min-width: 0; }
.ah-pt-fcard__mark .ah-brand-name { font-family: var(--wp--preset--font-family--display); font-size: 1.6rem; font-weight: 300; }
.ah-pt-fcard__body { display: grid; gap: 0.35rem; }
.ah-pt-fcard__name { font-family: var(--wp--preset--font-family--display); font-weight: 300; font-size: var(--wp--preset--font-size--x-large); line-height: 1.15; }
.ah-pt-fcard .ah-link { min-height: 0; justify-self: start; }
@media (hover: hover) { .ah-pt-fcard:hover .ah-link { text-decoration-color: currentColor; } }
@container sec (min-width: 760px) {
	.ah-pt-fcards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ah-pt-fcard { padding: 1.75rem 1.75rem 2rem; }
	.ah-pt-fcard:first-child { padding-left: 0; }
}
.ah-pt-often { font-size: 0.85rem; color: var(--wp--preset--color--accent); }
.ah-pt-groups { display: grid; gap: clamp(1.75rem, 3vw, 2.5rem); }
.ah-pt-group { display: grid; gap: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--wp--preset--color--line); }
.ah-pt-group__h { margin: 0; display: flex; align-items: baseline; gap: 0.6rem; font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem) !important; }
.ah-pt-group__h em { font: 400 0.8rem/1 var(--wp--preset--font-family--body); font-style: normal; color: var(--wp--preset--color--muted); letter-spacing: 0; }
.ah-pt-blist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.ah-pt-blist li { display: grid; gap: 0.15rem; margin: 0; }
.ah-pt-bn { font-size: 1.02rem; line-height: 1.35; }
.ah-pt-bn a.ah-bname { text-decoration-color: var(--wp--preset--color--line-strong); text-underline-offset: 0.25em; }
.ah-pt-bn .ah-bsite { width: 2rem; min-height: 32px; margin-block: -0.4rem; vertical-align: middle; }
.ah-pt-also { font-size: 0.8rem; color: var(--wp--preset--color--muted); }
.ah-pt-more { display: none; justify-self: start; min-height: 44px; padding: 0.5rem 1rem; font: 500 0.9rem/1 var(--wp--preset--font-family--body); color: inherit; background: transparent; border: 1px solid var(--wp--preset--color--line-strong); cursor: pointer; }
@container sec (max-width: 699px) {
	.ah-pt-group.is-collapsed li.is-more { display: none; }
	.ah-pt-group.is-collapsed .ah-pt-more:not([hidden]) { display: inline-flex; align-items: center; }
}
@container sec (min-width: 560px) { .ah-pt-blist { display: block; columns: 2; column-gap: 2rem; } .ah-pt-blist li { break-inside: avoid; margin-bottom: 0.9rem; } }
@container sec (min-width: 960px) { .ah-pt-blist { columns: 3; } }
.ah-pt-checks { display: grid; gap: clamp(2rem, 4vw, 3rem); }
.ah-pt-checks .wp-block-buttons { margin: 0; }
.ah-pt-checklist { list-style: none; margin: 0; padding: 0; counter-reset: c; display: grid; border-top: 1px solid rgba(237, 232, 224, 0.16); }
.ah-pt-checklist li { counter-increment: c; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); column-gap: 0.75rem; row-gap: 0.2rem; margin: 0; padding-block: 1rem; border-bottom: 1px solid rgba(237, 232, 224, 0.16); }
.ah-pt-checklist li::before { content: counter(c, decimal-leading-zero); grid-row: span 2; font-size: 0.75rem; padding-top: 0.25rem; color: var(--wp--preset--color--band-muted); }
.ah-pt-checklist strong { font-weight: 500; }
.ah-pt-checklist span { grid-column: 2; color: var(--wp--preset--color--band-muted); font-size: 0.95rem; }
@container sec (min-width: 600px) { .ah-pt-checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; } }
@container sec (min-width: 960px) { .ah-pt-checks { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 6rem); align-items: start; } }
.ah-pt-projects .ah-pcard__meta h3 { font-size: var(--wp--preset--font-size--x-large); margin: 0; }
.ah-pt-others { display: grid; gap: 1rem; justify-items: start; padding-top: 1.5rem; border-top: 1px solid var(--wp--preset--color--line); }
.ah-pt-others > * { margin: 0 !important; }

/* ==========================================================================
   10. Instagram (Smash Balloon feed, restyled)
   ========================================================================== */
.ah-instagram #sb_instagram, .ah-instagram .sbi { padding: 0 !important; }
.ah-instagram #sb_instagram #sbi_images { gap: 0.5rem; padding: 0 !important; }
.ah-instagram #sb_instagram .sbi_item { padding: 0 !important; }
.ah-instagram #sb_instagram .sbi_photo_wrap, .ah-instagram #sb_instagram .sbi_photo { background-color: var(--wp--preset--color--tile); }
.ah-instagram #sb_instagram .sbi_header, .ah-instagram #sb_instagram #sbi_load .sbi_follow_btn { display: none; }
.ah-instagram #sb_instagram #sbi_load .sbi_load_btn { background: transparent !important; color: inherit !important; border: 1px solid currentColor; border-radius: 0; min-height: 44px; font: 500 0.9rem var(--wp--preset--font-family--body); }

/* ==========================================================================
   11. Footer
   ========================================================================== */
.ah-footer, .ah-footer-band { background: var(--ah-foot); color: var(--ah-foot-ink); }
.ah-footer a, .ah-footer-band a { color: inherit; }
.ah-footer .has-muted-color, .ah-footer-band .has-muted-color, .ah-footer .is-style-eyebrow { color: var(--ah-foot-muted) !important; }
.ah-footer-band .wp-block-button .wp-block-button__link { background: var(--ah-on-dark); color: #1D1E1C; border-color: var(--ah-on-dark); }
@media (hover: hover) { .ah-footer-band .wp-block-button .wp-block-button__link:hover { background: #FFFFFF; } }
.ah-band-grid { display: grid; gap: 1.5rem; }
.ah-band-grid > * { margin: 0 !important; }
@container sec (min-width: 860px) { .ah-band-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: end; gap: 3rem; } .ah-band-grid > p { border-left: 1px solid var(--ah-foot-rule); padding-left: 3rem; } }
.ah-foot-grid { display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); padding-block: 2.5rem; border-top: 1px solid var(--ah-foot-rule); }
.ah-foot-grid > * { margin: 0 !important; }
/* The rule under "Bring your project to light." would sit on the footer's top edge on pages without that band. */
.wp-site-blocks > :not(:has(> .ah-footer-band)) + footer .ah-foot-grid { border-top-color: transparent; }
.ah-foot-grid h2 { font-family: var(--wp--preset--font-family--body); font-size: 0.68rem !important; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ah-foot-muted); margin: 0 0 0.75rem; }
.ah-foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.1rem; }
.ah-foot-grid li { margin: 0; }
.ah-foot-grid li a, .ah-foot-grid li > span { display: inline-flex; align-items: center; min-height: 36px; font-size: 0.95rem; text-decoration: none; }
@media (hover: hover) { .ah-foot-grid li a:hover, .ah-foot-grid .ah-contact a:hover { text-decoration: underline; } }
/* Contact and Office: links stay link-sized; plain details read as text, secondary lines quieter. */
.ah-foot-grid .ah-contact > p, .ah-foot-grid .ah-contact > address { margin: 0; }
.ah-foot-phone a, .ah-foot-line a { display: inline-flex; align-items: center; min-height: 36px; font-size: 0.95rem; text-decoration: none; }
.ah-foot-grid .ah-contact > p.ah-foot-pair { margin-top: 0.55rem; }
.ah-foot-cap { display: block; font-size: 0.8rem; line-height: 1.4; color: var(--ah-foot-muted); }
/* First lines of all four columns share one line: the address starts where a 36px link row centres its text. */
.ah-foot-address { font-style: normal; font-size: 0.95rem; line-height: 1.6; padding-top: calc((36px - 1.6em) / 2); }
.ah-foot-grid .ah-contact > p.ah-foot-quiet { margin-top: 0.85rem; font-size: 0.85rem; line-height: 1.6; color: var(--ah-foot-muted); }
/* Phones: the number leads in the headline serif; Explore and Follow sit side by side. */
@container sec (max-width: 30rem) {
	.ah-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ah-foot-grid > .ah-contact { grid-column: 1 / -1; }
	.ah-foot-phone a { min-height: 44px; font-family: var(--wp--preset--font-family--display); font-size: 1.9rem; font-weight: 300; line-height: 1.15; letter-spacing: -0.005em; }
	.ah-foot-grid .ah-contact > p.ah-foot-phone { margin-bottom: 0.25rem; }
}
.ah-foot-grid .wp-block-social-links { gap: 0.5rem; }
.ah-foot-grid .wp-block-social-links .wp-social-link { color: var(--ah-foot-ink); background: transparent !important; }
.ah-foot-grid .wp-block-social-links .wp-social-link a { padding: 0.6rem; }
.ah-foot-base { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 1rem 2rem; padding-block: 1.5rem max(1.5rem, env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--ah-foot-rule); font-size: 0.82rem; color: var(--ah-foot-muted); }
.ah-foot-base > * { margin: 0 !important; }
.ah-foot-base .wp-block-site-title { font-size: 1.75rem !important; line-height: 1.1; color: var(--ah-foot-ink); }
/* Wordmark and area line (with #NeverEnoughLighting under it) on one row, legal links and the mode switch on the next. */
.ah-foot-area { display: grid; gap: 0.3rem; }
.ah-foot-area > * { margin: 0 !important; }
.ah-footer .ah-foot-tag { font-size: 0.8rem; letter-spacing: 0.02em; color: var(--ah-foot-muted); }
@container sec (min-width: 40rem) { .ah-foot-base { grid-template-columns: auto minmax(0, 1fr); } .ah-foot-area { text-align: right; } .ah-foot-legal { grid-column: 1 / -1; } }
.ah-foot-legal { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; align-items: center; }
.ah-foot-legal > * { margin: 0 !important; }
.ah-foot-legal a { min-height: 44px; display: inline-flex; align-items: center; text-decoration-color: rgba(237, 232, 224, 0.35); }
:root[data-theme="dark"] .ah-footer-band { border-top: 1px solid #2A2925; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ah-footer-band { border-top: 1px solid #2A2925; } }

/* ==========================================================================
   12. 404 and search
   ========================================================================== */
.ah-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.wp-block-search__input { min-width: 0; min-height: 48px; border-radius: 0; border-color: var(--wp--preset--color--line-strong); background: var(--wp--preset--color--surface); color: var(--wp--preset--color--contrast); }
.wp-block-search__button { min-height: 48px; border-radius: 0; margin-left: 0.5rem; }

/* Editor placeholders for dynamic blocks */
.ah-placeholder { padding: 1.25rem; border: 1px dashed var(--wp--preset--color--line-strong); color: var(--wp--preset--color--muted); font-size: 0.9rem; }

/* ==========================================================================
   13. Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media print {
	header.wp-block-template-part, .ah-footer-band, .ah-btools, .ah-theme-toggle { display: none !important; }
}
