/*
 * Nirvana DE: tokens, base, layout, primitives, then one band per block.
 *
 * The :root block is the ENTIRE per-site design surface. Values are copied one
 * to one from AUDIT.md §Design direction (approved 2026-09-29) and
 * DESIGN-DIRECTION.html. Never hardcode a hex or font below; use var(--de-*).
 */

/* =========================================================================
 * 1. Tokens
 * ====================================================================== */
:root {
	/* Palette */
	--de-teal:        #19667C; /* primary: buttons, eyebrows, links, teal panels */
	--de-teal-deep:   #134F60; /* hover, hero overlay */
	--de-focus:       #134F60; /* focus ring on light surfaces (>= 3:1 vs white/pale); blush on dark panels, below */
	--de-teal-light:  #9BC2CE; /* eyebrows on dark, card hover border */
	--de-teal-pale:   #ECF7FA; /* section + interior hero panel background */
	--de-blush:       #FFD2BF; /* on teal only: counters, focus ring */
	--de-ink:         #181818; /* headings, outline buttons */
	--de-body:        #444444; /* running text */
	--de-footer:      #223037; /* footer, dark bands */
	--de-white:       #FFFFFF;
	--de-line:        #DCE8EC; /* hairlines, card borders */
	--de-on-dark-muted: rgba(255, 255, 255, .72); /* secondary text on footer / dark (Phase 2 bug fix 2026-10-02: was self-referencing, so it rendered solid white) */
	--de-on-dark-line:  rgba(255, 255, 255, .14); /* hairlines on dark (same fix) */
	--de-on-dark-hover: rgba(255, 255, 255, .08); /* hover tint on dark */

	/* Type */
	--de-font:        'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; /* 400/500/600/700 */
	--de-accent:      'Playfair Display', Georgia, 'Times New Roman', serif;                 /* italic 400/500 */

	--de-fs-display:  clamp(46px, 6.4vw, 92px); /* home hero only */
	--de-fs-h1:       clamp(34px, 4.6vw, 60px);
	--de-fs-h2:       clamp(30px, 3.2vw, 48px);
	--de-fs-h3:       22px;
	--de-fs-body:     16px;
	--de-fs-body-sm:  15px;                     /* under 400px */
	--de-fs-eyebrow:  13px;

	--de-lh-display:  1.02;
	--de-lh-h1:       1.1;
	--de-lh-h2:       1.14;
	--de-lh-body:     1.7;
	--de-ls-eyebrow:  0.14em;

	/* Shape */
	--de-radius:       16px;  /* cards, images */
	--de-radius-panel: 28px;  /* inset panels */
	--de-radius-pill:  999px; /* buttons */
	--de-inset:        16px;  /* panel inset from the viewport edge */

	/* Layout + rhythm */
	--de-max-w:        1200px; /* keep in sync with theme.json contentSize */
	--de-prose-w:      760px;
	--de-gutter:       24px;
	/* Rhythm (QA 2026-10-02): ONE visible gap between any two consecutive sections
	 * (open content or panel edge, whatever the background), ONE inner padding for
	 * every inset panel, one step each inside a section head. */
	--de-section-gap:  clamp(64px, 8vw, 96px);
	--de-section-y:    var(--de-section-gap); /* legacy alias */
	--de-panel-pad:    clamp(40px, 6vw, 72px);
	--de-space-eyebrow: 14px;                   /* eyebrow → heading */
	--de-space-heading: 20px;                   /* heading → body / intro */
	--de-space-button:  28px;                   /* body → button row */
	--de-space-head:    clamp(32px, 4vw, 48px); /* section head → its grid / list / logos */
	--de-header-h:     88px;
	--de-hero-home-h:  640px;
	--de-hero-h:       520px;  /* every interior hero variant */

	/* Buttons */
	--de-btn-h:        52px;
	--de-btn-h-min:    44px;   /* mobile floor */

	/* Forms */
	--de-form-gap:     20px;
	--gf-form-gap-y:   var(--de-form-gap);

	/* Depth + motion */
	--de-shadow:       0 10px 36px rgba(19, 79, 96, 0.10);
	--de-shadow-soft:  0 2px 12px rgba(19, 79, 96, 0.06);
	--de-shadow-menu:  0 16px 40px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.06); /* desktop flyouts: dark, so each level stands off the page and off its parent menu (user annotation 2026-10-11) */
	/* Photo overlay. >= 0.82 deep teal across the first 920px (the text area) so white
	 * text passes AA over a white photo pixel (needs >= 0.74; large text >= 0.58). Fades
	 * only beyond the text. On narrow panels the whole panel stays >= 0.82. */
	--de-overlay:      linear-gradient(90deg, rgba(19, 79, 96, 0.9) 0, rgba(19, 79, 96, 0.82) 920px, rgba(19, 79, 96, 0.25) 100%);
	--de-overlay-lander: linear-gradient(90deg, rgba(19, 79, 96, 0.9) 0, rgba(19, 79, 96, 0.84) 48%, rgba(19, 79, 96, 0.3) 70%, rgba(19, 79, 96, 0.14) 100%); /* lander hero: text column 0-48%, form side lighter */
	--de-overlay-flat:  linear-gradient(0deg, rgba(19, 79, 96, 0.86) 0, rgba(19, 79, 96, 0.86) 100%); /* stacked panels on mobile: uniform tint */
	--de-overlay-light: linear-gradient(0deg, rgba(19, 79, 96, 0.2) 0, rgba(19, 79, 96, 0.2) 100%); /* mobile panel tint */
	--de-overlay-up:    linear-gradient(0deg, rgba(19, 79, 96, 0.9) 0, rgba(19, 79, 96, 0.82) calc(100% - 160px), rgba(19, 79, 96, 0) 100%); /* mobile: behind the text, fading upward */
	--de-transition:   0.2s ease;
	--de-mask-fade-x:  linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%); /* alpha mask for carousels (colour irrelevant) */
}

/* =========================================================================
 * 2. Base
 * ====================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-padding-top: var(--de-header-h); }

body {
	margin: 0;
	background: var(--de-white);
	color: var(--de-body);
	font-family: var(--de-font);
	font-size: var(--de-fs-body);
	line-height: var(--de-lh-body);
	overflow-wrap: break-word;
	-webkit-font-smoothing: antialiased;
}

img,
video,
iframe { max-width: 100%; height: auto; }

a { color: var(--de-teal); transition: color var(--de-transition); }
a:hover { color: var(--de-teal-deep); }

:focus-visible { outline: 3px solid var(--de-focus); outline-offset: 3px; }

h1, h2, h3, h4 {
	margin: 0 0 0.5em;
	color: var(--de-ink);
	font-family: var(--de-font);
	font-weight: 500;
	letter-spacing: -0.01em;
	text-wrap: balance;
}
h1 { font-size: var(--de-fs-h1); line-height: var(--de-lh-h1); }
h2 { font-size: var(--de-fs-h2); line-height: var(--de-lh-h2); }
h3 { font-size: var(--de-fs-h3); line-height: 1.3; font-weight: 600; }

[id] { scroll-margin-top: var(--de-header-h); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.de-skip-link {
	position: absolute; left: var(--de-inset); top: -100px; z-index: 1000;
	padding: 12px 20px; border-radius: var(--de-radius-pill);
	background: var(--de-teal); color: var(--de-white);
}
.de-skip-link:focus { top: var(--de-inset); color: var(--de-white); }

@media (max-width: 400px) {
	body { font-size: var(--de-fs-body-sm); }
}

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

/* =========================================================================
 * 3. Layout helpers
 * ====================================================================== */
#de-page { min-height: 100vh; display: flex; flex-direction: column; }
.de-main { flex: 1 0 auto; }

.de-container {
	width: 100%;
	max-width: calc(var(--de-max-w) + 2 * var(--de-gutter));
	margin-inline: auto;
	padding-inline: var(--de-gutter);
}

.de-section { padding-block: var(--de-section-y); }

.de-prose { max-width: var(--de-prose-w); }
.de-prose > :first-child { margin-top: 0; }

/* Interior content column: scoped so it can't reach into de-* blocks. */
.de-interior > :not([class*="de-"]) {
	max-width: var(--de-prose-w);
	margin-inline: auto;
	padding-inline: var(--de-gutter);
}
.de-interior > h2:first-child,
.de-interior > h3:first-child { margin-top: 0; }
/* A .de-prose wrapper (Privacy's legal text in an HTML block) is skipped by the rule above: same column. */
.de-interior > .de-prose {
	margin-inline: auto;
	padding-inline: var(--de-gutter);
}

/* Legal text: numbered section headings (h4 in the content) and list rhythm. */
.de-legal h4 { margin: 2em 0 .6em; font-size: var(--de-fs-h3); line-height: 1.3; font-weight: 600; }
.de-legal h4 strong { font-weight: inherit; }
.de-legal p { margin: 0 0 1em; }
.de-legal :is(ul, ol) { margin: 0 0 1.2em; padding-left: 1.4em; }
.de-legal li + li { margin-top: .45em; }

/* =========================================================================
 * 4. Primitives
 * ====================================================================== */

/* 4a. Inset panel: the design signature. Every coloured or photo section is a
 * rounded panel inset from the viewport edge; white sections sit open. */
.de-panel {
	position: relative;
	margin-inline: var(--de-inset);
	border-radius: var(--de-radius-panel);
	overflow: hidden;
}
.de-panel--teal   { background: var(--de-teal); color: var(--de-white); }
.de-panel--pale   { background: var(--de-teal-pale); }
.de-panel--dark   { background: var(--de-footer); color: var(--de-white); }
.de-panel--photo  { background: var(--de-teal-deep) center / cover no-repeat; color: var(--de-white); }
.de-panel--photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--de-overlay); pointer-events: none; }
.de-panel--photo > * { position: relative; z-index: 2; }
.de-panel--teal :is(h1, h2, h3, h4),
.de-panel--dark :is(h1, h2, h3, h4),
.de-panel--photo :is(h1, h2, h3, h4) { color: var(--de-white); }

/* 4a'. Section rhythm (2026-10-07, one rule set site-wide). Two treatments only: plain (white, no panel) or an
 * inset panel (pale or teal). Every section is a .de-block with margin-block = --de-section-gap; margins
 * collapse, so the visible gap between ANY two sections is exactly the token. Two adjacent panels of the SAME
 * tint merge into one panel: the second pulls up by one gap (margins collapse to 0), the shared corners square
 * off, and a hairline marks the seam (both sides keep --de-panel-pad). The page hero (a pale panel) merges with
 * a pale first section the same way. */
:root { --de-seam: var(--de-line); }
.de-block:has(> .de-panel--pale) + .de-block:has(> .de-panel--pale),
.de-block:has(> .de-panel--teal) + .de-block:has(> .de-panel--teal) { margin-top: calc(-1 * var(--de-section-gap)); }
.de-block:has(> .de-panel--pale):has(+ .de-block > .de-panel--pale) > .de-panel,
.de-block:has(> .de-panel--teal):has(+ .de-block > .de-panel--teal) > .de-panel { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.de-block:has(> .de-panel--pale) + .de-block > .de-panel--pale,
.de-block:has(> .de-panel--teal) + .de-block > .de-panel--teal { border-top-left-radius: 0; border-top-right-radius: 0; box-shadow: inset 0 1px 0 var(--de-seam); }
.de-block:has(> .de-panel--teal) + .de-block > .de-panel--teal { --de-seam: var(--de-on-dark-line); }
.de-page-hero:has(> .de-panel--pale) + .de-interior > .de-block:first-child:has(> .de-panel--pale) { margin-top: 0; }
.de-page-hero:has(> .de-panel--pale):has(+ .de-interior > .de-block:first-child > .de-panel--pale) > .de-panel { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.de-page-hero:has(> .de-panel--pale) + .de-interior > .de-block:first-child > .de-panel--pale { border-top-left-radius: 0; border-top-right-radius: 0; box-shadow: inset 0 1px 0 var(--de-seam); }

/* 4b. Eyebrow: plain label, no slashes. */
.de-eyebrow {
	margin: 0 0 var(--de-space-eyebrow);
	color: var(--de-teal);
	font-size: var(--de-fs-eyebrow);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: var(--de-ls-eyebrow);
	text-transform: uppercase;
}
/* Eyebrow colour per surface, chosen for WCAG AA at 13px (Phase 3a contrast check):
 * teal → blush 4.71:1 (light teal is only 3.4:1 there); photo → white; dark/footer → light teal 7.12:1. */
.de-panel--teal .de-eyebrow { color: var(--de-blush); }
.de-panel--photo .de-eyebrow { color: var(--de-white); }
.de-panel--dark .de-eyebrow { color: var(--de-teal-light); }

/* 4c. Two-part heading: part 2 in Playfair italic. */
.de-accent {
	font-family: var(--de-accent);
	font-style: italic;
	font-weight: 400;
	letter-spacing: 0;
}
.de-display { font-size: var(--de-fs-display); line-height: var(--de-lh-display); }

/* 4d. Buttons: 52px uppercase pills. One primary, one secondary per background:
 *   white / pale → .de-btn--primary + .de-btn--outline
 *   teal / footer / photo → .de-btn--light + .de-btn--outline-light */
.de-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--de-btn-h);
	padding: 0 30px;
	border: 1.5px solid transparent;
	border-radius: var(--de-radius-pill);
	font-family: var(--de-font);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color var(--de-transition), color var(--de-transition), border-color var(--de-transition);
}
.de-btn:focus-visible { outline: 3px solid var(--de-focus); outline-offset: 3px; }

.de-btn--primary { background: var(--de-teal); color: var(--de-white); }
.de-btn--primary:hover { background: var(--de-teal-deep); color: var(--de-white); }

.de-btn--light { background: var(--de-white); color: var(--de-teal); }
.de-btn--light:hover { background: var(--de-teal-pale); color: var(--de-teal-deep); } /* pale teal, not blush (user annotation 2026-10-11) */

.de-btn--outline { border-color: var(--de-ink); background: transparent; color: var(--de-ink); }
.de-btn--outline:hover { background: var(--de-ink); color: var(--de-white); }

.de-btn--outline-light { border-color: var(--de-white); background: transparent; color: var(--de-white); }
.de-btn--outline-light:hover { background: var(--de-white); color: var(--de-teal-deep); }

.de-btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

@media (max-width: 560px) {
	.de-btn { min-height: var(--de-btn-h); padding-inline: 24px; white-space: normal; text-align: center; }
}

/* 4e. Forms (Gravity Forms, Orbital theme). Styled only through GF's own
 * --gf-* variables (colours come from the gform_default_styles filter in
 * inc/de-blocks.php); no GF markup is overridden. body + class beats GF's own
 * .gform-theme--framework defaults. */
body .gform-theme--framework {
	--gf-form-gap-y: var(--de-form-gap);
	--gf-form-gap-x: var(--de-form-gap);
	--gf-field-gap-x: var(--de-form-gap);
	--gf-font-family-base: var(--de-font);
	--gf-font-family-primary: var(--de-font);
	--gf-font-family-secondary: var(--de-font);
	--gf-font-size-primary: 16px;
	--gf-font-size-secondary: 15px;
	--gf-ctrl-font-size: 16px;
	--gf-ctrl-btn-font-family: var(--de-font);
	--gf-ctrl-btn-font-weight: 600;
	--gf-ctrl-btn-radius: var(--de-radius-pill);
	--gf-ctrl-btn-text-transform: uppercase; /* site-wide button casing (AUDIT.md) */
	--gf-ctrl-btn-letter-spacing: .06em;
	--gf-ctrl-outline-color-focus: var(--de-focus); /* deep teal on the white form card (blush was 1.3:1) */
	/* GF's per-form block (ID-level, inputSize "lg") points the button at the -lg
	 * size tokens, so the site button size is set on those tokens. */
	--gf-ctrl-btn-size-lg: var(--de-btn-h);
	--gf-ctrl-btn-font-size-lg: 14px;
	--gf-ctrl-btn-padding-x-lg: 30px;
	--gf-ctrl-size-lg: 50px; /* one GF style site-wide (Contact redesign 2026-10-06, from the Detox form card) */
}
/* One GF style site-wide (2026-10-06): full-width submit; visible focus on the two GF controls whose outline
 * GF zeroes (date-picker button, scrollable consent text). */
body .gform-theme--framework.gform_wrapper .gform_footer .gform_button.button { inline-size: 100% !important; width: 100% !important; } /* GF sets the width through its own higher-specificity reset */
body .gform-theme--framework :is(.gform-datepicker-toggle, .gfield_consent_description_text):focus-visible { box-shadow: 0 0 0 3px var(--de-white), 0 0 0 6px var(--de-focus) !important; border-radius: 8px; }
body .gform-theme--framework .gform_required_legend:empty { display: none; } /* legend text removed in inc/de-blocks.php (QA 013) */
/* Half-width pairs: the inputs line up when only one of the two labels wraps (QA 005: an optional label is shorter). */
body .gform-theme--framework .gfield--width-half:not(.gform_hidden, .gfield_visibility_hidden, .gform_validation_container):has(> .gfield_label + .ginput_container) { display: flex; flex-direction: column; }
body .gform-theme--framework .gfield--width-half:not(.gform_hidden, .gfield_visibility_hidden, .gform_validation_container):has(> .gfield_label + .ginput_container) > .ginput_container { margin-top: auto; }

/* =========================================================================
 * 5. Site chrome
 * ====================================================================== */

/* 5a. Header: sticky, --de-header-h tall. Logo | nav | phone + button. */
.de-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--de-white);
	box-shadow: 0 1px 0 var(--de-line);
}
.admin-bar .de-header { top: 32px; }
.de-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	height: var(--de-header-h);
	max-width: calc(var(--de-max-w) + 2 * var(--de-gutter));
	margin-inline: auto;
	padding-inline: var(--de-gutter);
}
.de-header__logo { flex: none; display: block; line-height: 0; }
.de-header__logo { overflow: hidden; }
/* The logo PNGs (1000×400) carry wide transparent padding: crop it with object-fit. */
.de-header__logo-img,
.de-footer__logo-img { display: block; object-fit: cover; object-position: 50% 42%; }
.de-header__logo-img { width: 250px; height: 62px; }
.de-header__site-name { font-size: 20px; font-weight: 600; line-height: 1; color: var(--de-ink); }

.de-header__actions { display: flex; align-items: center; gap: 22px; flex: none; }

/* Phone link: the number is the link's only content (CTM DNI swap); the icon is CSS. */
.de-phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--de-ink);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}
.de-phone::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: var(--de-icon-phone) center / contain no-repeat;
	mask: var(--de-icon-phone) center / contain no-repeat;
}
.de-header .de-phone::before { background: var(--de-teal); }
.de-phone:hover { color: var(--de-teal); }
:root {
	--de-icon-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1l-2.3 2.2Z'/%3E%3C/svg%3E");
}

/* 5b. Nav (desktop): cascading flyouts on dark panels, as live. */
.de-nav { flex: 1; display: flex; justify-content: center; min-width: 0; }
.de-nav__menu,
.de-nav__menu .sub-menu { margin: 0; padding: 0; list-style: none; }
.de-nav__menu { display: flex; align-items: center; gap: 4px; }
.de-nav__menu > li { position: relative; }
.de-nav__menu a {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--de-ink);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
}
.de-nav__menu > li > a { min-height: 44px; padding: 0 12px; border-radius: var(--de-radius-pill); }
.de-nav__menu > li > a:hover,
.de-nav__menu > li:focus-within > a,
.de-nav__menu > .current-menu-item > a,
.de-nav__menu > .current-menu-ancestor > a { color: var(--de-teal); }

.de-nav__menu .menu-item-has-children > a::after {
	content: "";
	width: 8px;
	height: 8px;
	margin-top: -3px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	opacity: .6;
}
.de-nav__sub-toggle { display: none; }

.de-nav__menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 10;
	min-width: 250px;
	padding: 12px;
	border-radius: var(--de-radius);
	background: var(--de-footer);
	box-shadow: var(--de-shadow-menu);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity var(--de-transition), transform var(--de-transition), visibility 0s linear .2s;
}
.de-nav__menu > li > .sub-menu { margin-top: 8px; }
.de-nav__menu > li > .sub-menu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; } /* hover bridge */
.de-nav__menu .sub-menu li { position: relative; }
.de-nav__menu .sub-menu a {
	justify-content: space-between;
	padding: 10px 12px;
	border-radius: 10px;
	color: var(--de-white);
}
.de-nav__menu .sub-menu a:hover,
.de-nav__menu .sub-menu li:focus-within > a,
.de-nav__menu .sub-menu .current-menu-item > a { background: var(--de-on-dark-hover); color: var(--de-teal-light); }
.de-nav__menu .sub-menu .menu-item-has-children > a::after { transform: rotate(-45deg); margin-top: 0; }
.de-nav__menu .sub-menu .sub-menu { top: -12px; left: calc(100% + 12px); }
.de-nav__menu .sub-menu .sub-menu::before { content: ""; position: absolute; inset: 0 auto 0 -12px; width: 12px; } /* hover bridge */
.de-nav__menu .de-flip > .sub-menu { left: auto; right: calc(100% + 12px); }
.de-nav__menu .de-flip > .sub-menu::before { left: auto; right: -12px; }

.de-nav__menu li:hover > .sub-menu,
.de-nav__menu li:focus-within > .sub-menu,
.de-nav__menu li.de-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}
/* Desktop: closed flyouts take no layout. Hidden but positioned 3rd/4th-level menus (Programs →
 * Addiction → Benzo → Ativan) otherwise widen the page between ~1101 and 1300px (horizontal scroll).
 * The fade-in is kept with @starting-style; the drawer (<= 1100px) has its own display rules. */
@media (min-width: 1101px) {
	.de-nav__menu .sub-menu { display: none; transition: opacity var(--de-transition), transform var(--de-transition), visibility 0s linear .2s, display .2s allow-discrete; }
	.de-nav__menu li:hover > .sub-menu,
	.de-nav__menu li:focus-within > .sub-menu,
	.de-nav__menu li.de-open > .sub-menu { display: block; }
	@starting-style {
		.de-nav__menu li:hover > .sub-menu,
		.de-nav__menu li:focus-within > .sub-menu,
		.de-nav__menu li.de-open > .sub-menu { opacity: 0; transform: translateY(6px); }
	}
}

.de-nav__mobile-actions { display: none; }

/* 5c. Burger. */
.de-header__toggle {
	display: none;
	flex: none;
	width: 48px;
	height: 48px;
	margin-right: -8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--de-ink);
	cursor: pointer;
}
.de-header__toggle-bars,
.de-header__toggle-bars::before,
.de-header__toggle-bars::after,
.de-header__toggle-bars span {
	display: block;
	width: 22px;
	height: 2px;
	margin-inline: auto;
	border-radius: 2px;
	background: currentColor;
	transition: transform var(--de-transition), opacity var(--de-transition);
}
.de-header__toggle-bars { position: relative; background: transparent; }
.de-header__toggle-bars::before,
.de-header__toggle-bars::after { content: ""; position: absolute; left: 0; }
.de-header__toggle-bars::before { top: -7px; }
.de-header__toggle-bars::after { top: 7px; }
.de-header__toggle[aria-expanded="true"] .de-header__toggle-bars span { opacity: 0; }
.de-header__toggle[aria-expanded="true"] .de-header__toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.de-header__toggle[aria-expanded="true"] .de-header__toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* 5d. Nav (mobile + tablet): full-height panel under the header, accordion submenus. */
@media (max-width: 1100px) {
	.de-header__toggle { display: grid; place-items: center; }
	.de-header__actions { margin-left: auto; }
	.de-nav {
		position: fixed;
		inset: var(--de-header-h) 0 0;
		z-index: 99;
		display: block;
		padding: 16px var(--de-gutter) 40px;
		overflow-y: auto;
		background: var(--de-white);
		visibility: hidden;
		opacity: 0;
		transition: opacity var(--de-transition), visibility 0s linear .2s;
	}
	.admin-bar .de-nav { top: calc(var(--de-header-h) + 46px); }
	.de-nav-open .de-nav { visibility: visible; opacity: 1; transition-delay: 0s; }
	.de-nav-open { overflow: hidden; }

	.de-nav__menu { display: block; }
	.de-nav__menu li { position: relative; border-bottom: 1px solid var(--de-line); }
	.de-nav__menu .sub-menu li:last-child { border-bottom: 0; }
	.de-nav__menu a,
	.de-nav__menu > li > a { min-height: 52px; padding: 0 56px 0 4px; font-size: 17px; border-radius: 0; }
	.de-nav__menu .menu-item-has-children > a::after { display: none; }

	.de-nav__sub-toggle {
		position: absolute;
		top: 2px;
		right: 0;
		display: grid;
		place-items: center;
		width: 48px;
		height: 48px;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: transparent;
		color: var(--de-teal);
		cursor: pointer;
	}
	.de-nav__sub-toggle .de-icon { width: 22px; height: 22px; transition: transform var(--de-transition); }
	.de-nav__sub-toggle[aria-expanded="true"] .de-icon { transform: rotate(180deg); }

	.de-nav__menu .sub-menu,
	.de-nav__menu .sub-menu .sub-menu {
		position: static;
		display: none;
		min-width: 0;
		margin: 0 0 8px;
		padding: 0 0 0 14px;
		border-radius: 0;
		background: none;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}
	.de-nav__menu > li > .sub-menu { margin-top: 0; }
	.de-nav__menu .sub-menu::before { display: none; }
	.de-nav__menu li.de-open > .sub-menu { display: block; }
	.de-nav__menu .sub-menu a { color: var(--de-body); font-size: 16px; min-height: 48px; border-radius: 0; }
	.de-nav__menu .sub-menu a:hover,
	.de-nav__menu .sub-menu li:focus-within > a,
	.de-nav__menu .sub-menu .current-menu-item > a { background: none; color: var(--de-teal); }

	.de-nav__mobile-actions { display: flex; padding-top: 24px; }
	.de-nav__mobile-actions .de-phone { font-size: 18px; }
}
@media (max-width: 1100px) and (min-width: 783px) {
	.admin-bar .de-nav { top: calc(var(--de-header-h) + 32px); }
}
/* Smaller logo before the phone drops out: logo + phone + button + toggle need 735px at full size (QA 009:
 * the toggle was pushed past the viewport from 641 to 734px). */
@media (max-width: 760px) {
	.de-header__inner { gap: 10px; }
	.de-header__logo-img { width: 170px; height: 42px; }
}
@media (max-width: 640px) {
	.de-header__inner { padding-inline: var(--de-inset); }
	.de-header__phone { display: none; }
	.de-header__actions { min-width: 0; }
	.de-header__actions .de-btn { min-height: 44px; padding-inline: 16px; font-size: 12.5px; white-space: nowrap; }
}
@media (max-width: 420px) {
	.de-header__logo-img { width: 138px; height: 34px; }
	.de-header__actions .de-btn { padding-inline: 14px; font-size: 12px; letter-spacing: .04em; }
	.de-header__toggle { width: 44px; height: 44px; margin-right: -6px; }
}
@media (max-width: 340px) {
	.de-header__actions .de-btn { display: none; }
}

/* 5e. Footer: dark inset panel. */
.de-footer { padding: 0 0 var(--de-inset); } /* top: the last section's gap is the whole gap */
.de-footer__panel { padding-block: clamp(56px, 7vw, 88px) 28px; }
.de-footer__panel,
.de-footer__panel a { color: var(--de-white); }
.de-footer__panel a { text-decoration: none; transition: color var(--de-transition); }
.de-footer__panel a:hover { color: var(--de-teal-light); }

.de-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 48px clamp(40px, 6vw, 96px);
}
.de-footer__logo { display: inline-block; line-height: 0; }
.de-footer__logo-img { width: 260px; height: 64px; }
.de-footer__tagline { margin: 18px 0 0; color: var(--de-on-dark-muted); font-size: 17px; }
.de-footer__heading { margin: 40px 0 18px; color: var(--de-white); font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: 0; }
.de-footer__links .de-footer__heading { margin-top: 0; }

.de-footer__contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px 32px; margin: 0; }
.de-footer__contact dt { margin-bottom: 4px; color: var(--de-teal-light); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.de-footer__contact dd { margin: 0; line-height: 1.6; }
.de-footer__email { grid-column: 1 / -1; } /* the email is one long word: its own full row so it never wraps (user annotation 2026-10-11) */
.de-footer .de-phone::before { display: none; }
.de-footer .de-phone { font-weight: 500; }

.de-footer__trust { display: flex; align-items: center; gap: 24px; margin-top: 32px; }
.de-footer__social { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.de-footer__social a {
	display: grid;
	background: var(--de-on-dark-hover);
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--de-on-dark-line);
	border-radius: 50%;
	transition: background-color var(--de-transition), border-color var(--de-transition), color var(--de-transition);
}
.de-footer__social a:hover { border-color: var(--de-white); background: var(--de-white); color: var(--de-teal-deep); }
.de-footer__social .de-icon { width: 20px; height: 20px; }
.de-footer__legitscript { line-height: 0; }

.de-footer__links { padding-left: clamp(0px, 5vw, 64px); border-left: 1px solid var(--de-on-dark-line); }
.de-footer__menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; margin: 0; padding: 0; list-style: none; }
.de-footer__menu a { display: inline-block; padding-block: 2px; }

.de-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 24px;
	margin-top: 56px;
	padding-top: 24px;
	border-top: 1px solid var(--de-on-dark-line);
	font-size: 14px;
	color: var(--de-on-dark-muted);
}
.de-footer__copyright { margin: 0; }

@media (max-width: 820px) {
	.de-footer__grid { grid-template-columns: minmax(0, 1fr); }
	.de-footer__links { padding-left: 0; padding-top: 40px; border-left: 0; border-top: 1px solid var(--de-on-dark-line); }
}
@media (max-width: 400px) {
	.de-footer__menu { grid-template-columns: minmax(0, 1fr); }
}

/* 5f. Scroll to top. */
.de-scrolltop {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 90;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 50%;
	background: var(--de-teal);
	color: var(--de-white);
	box-shadow: var(--de-shadow);
	cursor: pointer;
}
.de-scrolltop .de-icon { transform: rotate(180deg); }
.de-scrolltop:hover { background: var(--de-teal-deep); }
.de-scrolltop[hidden] { display: none; }

/* =========================================================================
 * 6. Page hero (template helper): 4 variants, one frame. 520px min-height,
 * pale inset panel, same type scale, spacing and button placement throughout.
 * ====================================================================== */
.de-page-hero { margin-top: var(--de-inset); }
.de-page-hero__panel { display: grid; align-items: center; min-height: var(--de-hero-h); padding-block: var(--de-panel-pad); }
.de-page-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(32px, 5vw, 72px); align-items: center; }
.de-page-hero--no-media .de-page-hero__grid { grid-template-columns: minmax(0, 1fr); }
.de-page-hero--no-media .de-page-hero__copy { max-width: 820px; }
.de-page-hero--photo .de-page-hero__panel { overflow: hidden; }
.de-page-hero__panel > .de-page-hero__bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; } /* background photo: under the overlay (::before, z 1) */
.de-page-hero--photo .de-page-hero__panel::before { background: var(--de-overlay-lander); } /* text column on the left; the photo shows on the right */
@media (max-width: 820px) { .de-page-hero--photo .de-page-hero__panel::before { background: var(--de-overlay-flat); } }
/* Compact text-only hero (blog index, archives, search: 2026-10-06): no min-height, so the posts stay high. */
.de-page-hero--compact .de-page-hero__panel { min-height: 0; padding-block: clamp(40px, 5vw, 64px); }
.de-page-hero__copy { display: grid; gap: var(--de-space-heading); align-content: center; min-width: 0; }
.de-page-hero__copy .de-eyebrow { margin: 0 0 calc(var(--de-space-eyebrow) - var(--de-space-heading)); }
.de-page-hero__heading { margin: 0; font-size: var(--de-fs-h1); line-height: var(--de-lh-h1); }
/* Length-fitted H1 (de_hero_heading_fit()): 2 lines up to ~44 characters, else 3; never above the normal size. */
.de-page-hero__copy { container-type: inline-size; }
.de-page-hero__heading[style*="--de-h1-fit"] { font-size: min(var(--de-fs-h1), max(32px, 100cqi * var(--de-h1-fit))); text-wrap: balance; }
.de-page-hero__intro { max-width: 62ch; }
.de-page-hero__copy .de-btn-row { margin-top: calc(var(--de-space-button) - var(--de-space-heading)); }
.de-page-hero__media { min-width: 0; }
.de-page-hero__figure { margin: 0; }
.de-page-hero__img { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--de-radius); }
/* overview-image: image left, text right. */
.de-page-hero--overview-image .de-page-hero__media { order: -1; }
.de-page-hero--overview-image .de-page-hero__img { aspect-ratio: 4 / 3; }
/* overview-cards: the live service cards, or the page's form card. */
.de-page-hero__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.de-page-hero__cards .de-card { border-color: transparent; box-shadow: var(--de-shadow-soft); }
.de-page-hero__form { background: var(--de-white); }
.de-page-hero--overview-cards.de-page-hero--has-media .de-page-hero__grid { align-items: start; }
.de-page-hero__contact { margin-top: 8px; }
.de-social { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.de-social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--de-teal-light); border-radius: 50%; color: var(--de-teal); }
.de-social a:hover { background: var(--de-teal); border-color: var(--de-teal); color: var(--de-white); }
.de-social .de-icon { width: 20px; height: 20px; }
.de-page-hero__logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.de-page-hero__logos li { display: grid; place-items: center; height: 64px; padding: 10px; border-radius: 12px; background: var(--de-white); }
.de-page-hero__logos img { max-width: 100%; max-height: 40px; width: auto; height: auto; object-fit: contain; }
@media (max-width: 900px) {
	.de-page-hero__grid { grid-template-columns: minmax(0, 1fr); }
	.de-page-hero--overview-image .de-page-hero__media { order: 0; }
	.de-page-hero__media { order: 2; }
}
@media (max-width: 560px) {
	.de-page-hero__cards { grid-template-columns: minmax(0, 1fr); }
	.de-page-hero__logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 6b. Blog post + sidebar ---------------------------------------------------- */
.de-single { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px clamp(40px, 5vw, 72px); align-items: start; padding-block: clamp(40px, 5vw, 64px) var(--de-section-y); }
.de-single__meta { margin: 0 0 12px; color: var(--de-body); font-size: 15px; }
.de-single__meta a { color: var(--de-teal); }
.de-single__title { margin: 0 0 28px; font-size: var(--de-fs-h1); line-height: var(--de-lh-h1); }
.de-single__image { margin: 0 0 36px; }
.de-single__image img { display: block; width: 100%; height: auto; border-radius: var(--de-radius); }
.de-single__content { max-width: none; font-size: 17px; }
.de-single__content h2 { margin: 1.6em 0 .6em; font-size: clamp(26px, 2.6vw, 34px); }
.de-single__content h3 { margin: 1.4em 0 .5em; }
.de-single__content img { height: auto; border-radius: var(--de-radius); }
.de-sidebar { display: grid; gap: 20px; min-width: 0; }
.de-sidebar__box { padding: 24px; border: 1px solid var(--de-line); border-radius: var(--de-radius); background: var(--de-white); }
.de-sidebar__title { margin: 0 0 14px; font-size: 20px; font-weight: 600; line-height: 1.3; }
.de-sidebar__kicker { margin: 0 0 6px; color: var(--de-teal); font-size: var(--de-fs-eyebrow); font-weight: 600; letter-spacing: var(--de-ls-eyebrow); text-transform: uppercase; }
.de-sidebar__author-name { margin: 0; font-size: 20px; font-weight: 600; }
.de-sidebar__author-name a { color: var(--de-ink); text-decoration: none; }
.de-sidebar__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.de-sidebar__list a { color: var(--de-ink); text-decoration: none; }
.de-sidebar__list a:hover { color: var(--de-teal); }
.de-sidebar__related { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.de-sidebar__related li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: center; }
.de-sidebar__related li:not(:has(img)) { grid-template-columns: minmax(0, 1fr); }
.de-sidebar__related a { display: block; color: var(--de-ink); font-weight: 600; line-height: 1.35; text-decoration: none; }
.de-sidebar__related a:hover { color: var(--de-teal); }
.de-sidebar__related time { color: var(--de-body); font-size: 14px; }
.de-sidebar__thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; }
.de-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.de-tags a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--de-line); border-radius: var(--de-radius-pill); color: var(--de-ink); font-size: 14px; text-decoration: none; }
.de-tags a:hover { border-color: var(--de-teal); color: var(--de-teal); }
.de-sidebar__sticky { position: sticky; top: calc(var(--de-header-h) + 20px); display: grid; gap: 20px; }
.de-sidebar__gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.de-sidebar__gallery img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.de-sidebar__cta { margin: 0; min-height: 280px; display: grid; align-items: end; padding: 28px; }
.de-sidebar .de-sidebar__cta .de-sidebar__cta-bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.de-sidebar__cta-title { margin: 0 0 18px; font-size: 34px; line-height: 1.1; }
/* Search form (blog sidebar, 404): WP's core form wraps the field in a <label>, so the label is the flex item
 * that has to shrink (QA 015: the boxes ran past the container); 16px field text so iOS doesn't zoom on focus,
 * 48px controls (QA 016). */
.de-search-form,
.search-form { display: flex; gap: 8px; }
.search-form label { display: flex; flex: 1; min-width: 0; margin: 0; }
.search-form input[type="search"] { flex: 1; width: 100%; min-width: 0; min-height: 48px; padding: 0 16px; border: 1px solid var(--de-teal-light); border-radius: var(--de-radius-pill); font: inherit; font-size: 16px; }
.search-form input[type="submit"] { flex: none; min-height: 48px; padding: 0 20px; border: 0; border-radius: var(--de-radius-pill); background: var(--de-teal); color: var(--de-white); font: 600 14px/1 var(--de-font); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.de-404 .search-form { max-width: 520px; margin-block: 24px; }
@media (max-width: 1100px) {
	.de-single { grid-template-columns: minmax(0, 1fr); }
	.de-sidebar__sticky { position: static; }
}

/* =========================================================================
 * 7. Blocks: one band per block, added in Phase 3.
 * ====================================================================== */

/* 7.0 Shared block rhythm + prose ---------------------------------------- */
.de-block { margin-block: var(--de-section-gap); }
/* A hero-type first block (Home hero, lander form hero, the posts page) sits one inset under the header. */
.de-home > .de-block:first-child,
.de-interior > .de-block:first-child { margin-top: var(--de-inset); }
/* After the page hero: the section gap, for blocks and plain content alike; plain content ends on it too. */
.de-page-hero + .de-interior > :first-child { margin-top: var(--de-section-gap); }
.de-interior > :last-child { margin-bottom: var(--de-section-gap); }
.de-block-hint { padding: 20px; border: 1px dashed var(--de-teal-light); border-radius: var(--de-radius); color: var(--de-teal); font-size: 14px; }

.de-prose > :first-child { margin-top: 0; }
.de-prose > :last-child { margin-bottom: 0; }
.de-prose p,
.de-prose ul,
.de-prose ol { margin: 0 0 1em; }
.de-prose ul,
.de-prose ol { padding-left: 1.25em; }
.de-prose li + li { margin-top: .4em; }
.de-prose strong { color: var(--de-ink); font-weight: 600; }
.de-prose a { text-decoration: underline; text-underline-offset: 3px; }
.de-prose > .de-btn-row { margin-top: var(--de-space-button); }

/* 7.1 de-hero (Home) ------------------------------------------------------ */
.de-hero__panel {
	display: grid;
	align-items: center; /* content block centred vertically, left-aligned (QA 2026-10-05; was end) */
	min-height: var(--de-hero-home-h);
	padding: clamp(28px, 5vw, 64px);
}
.de-hero .de-hero__image {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.de-hero__content { max-width: 820px; }
.de-hero__heading { margin: 0 0 var(--de-space-heading); max-width: 12ch; color: var(--de-white); }
.de-hero__sub { max-width: 60ch; margin: 0 0 var(--de-space-button); color: var(--de-white); font-size: 18px; }
.de-hero__heading:has(+ .de-btn-row) { margin-bottom: var(--de-space-button); } /* buttons get the button step whatever precedes them */
.de-hero__sub p { margin: 0 0 .75em; }
@media (max-width: 640px) {
	.de-hero__panel { min-height: 520px; }
}
/* Mobile (<= 768px): bottom-up overlay. The panel keeps only a light tint so the
 * photo shows; the strong tint sits behind the text block (its own ::before),
 * running from the panel's bottom edge and fading out over 160px above the text.
 * >= 0.82 behind every line of text: white passes 4.5:1 over a white pixel. */
@media (max-width: 768px) {
	.de-hero .de-hero__panel::before { background: var(--de-overlay-light); }
	.de-hero__content { isolation: isolate; }
	.de-hero__content::before {
		content: "";
		position: absolute;
		z-index: -1;
		top: -160px;
		right: -100vw;
		bottom: -100vh; /* down to the panel's bottom edge (the panel clips it): the text block is centred now, no longer at the bottom */
		left: -100vw;
		background: var(--de-overlay-up);
		pointer-events: none;
	}
}

/* 7.2 de-split ------------------------------------------------------------ */
.de-split__panel { padding-block: var(--de-panel-pad); }
.de-split__inner { display: grid; gap: var(--de-space-heading) clamp(32px, 6vw, 80px); }
.de-split__heading { margin: 0; font-size: var(--de-fs-h2); line-height: var(--de-lh-h2); }
.de-split__head,
.de-split__body,
.de-split__media { min-width: 0; }
.de-split__body .de-btn-row { margin-top: var(--de-space-button); }

/* Text only: heading left, text right. */
.de-split--text .de-split__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
/* In a panel, a short heading column sits centred against the body (no narrow column floating at the top of the tint). */
@media (min-width: 821px) { .de-split--text .de-split__panel .de-split__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; } }
/* Long text only (render.php: over 750 characters): heading above the text in one centred reading column. */
.de-split--stack .de-split__inner,
.de-split--stack .de-split__panel .de-split__inner { grid-template-columns: minmax(0, 1fr); max-width: calc(800px + 2 * var(--de-gutter)); }

/* With media: media spans both rows on its side. */
.de-split--media .de-split__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; }
.de-split--media .de-split__head { align-self: end; }
.de-split--media .de-split__body { align-self: start; }
.de-split--media.de-split--img-left .de-split__inner { grid-template-areas: "media head" "media body"; }
.de-split--media.de-split--img-right .de-split__inner { grid-template-areas: "head media" "body media"; }
.de-split--media .de-split__head { grid-area: head; }
.de-split--media .de-split__body { grid-area: body; }
.de-split--media .de-split__media { grid-area: media; align-self: center; }
/* Image beside text: both columns centred (above). Accordion column: both columns start at the top,
 * the text block keeps its natural height and the spare row space goes below it. */
.de-split--media-accordion .de-split__inner { grid-template-rows: auto 1fr; }
.de-split--media-accordion :is(.de-split__head, .de-split__body, .de-split__media) { align-self: start; }

.de-split__figure { margin: 0; }
.de-split__image { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: var(--de-radius); }
.de-split__figure + .de-accordion { margin-top: 28px; }
.de-split--media-accordion .de-split__image { aspect-ratio: 16 / 9; } /* image above an accordion: keep the column from running tall */

/* Backgrounds. */
.de-split--bg-teal .de-prose,
.de-split--bg-teal .de-prose strong,
.de-split--bg-teal .de-prose a { color: var(--de-white); }

/* Optional photo band behind a text-only split (split_bg_image; 2026-10-06): a decorative CSS background set by
 * de-main.js near the viewport, under a light overlay so the dark text keeps its contrast. */
.de-split__band { padding-block: var(--de-panel-pad); background: var(--de-teal-pale) var(--de-band-img, none) center / cover no-repeat; }
.de-split__band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .78) 55%, rgba(255, 255, 255, .7) 100%); pointer-events: none; }
.de-split__band > * { position: relative; }

/* Accordion (native <details>, keyboard + screen-reader friendly). */
.de-accordion { border-top: 1px solid var(--de-line); }
.de-accordion__item { border-bottom: 1px solid var(--de-line); }
.de-accordion__title {
	position: relative;
	display: block;
	padding: 20px 48px 20px 0;
	color: var(--de-ink);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	list-style: none;
	cursor: pointer;
}
.de-accordion__title::-webkit-details-marker { display: none; }
.de-accordion__title::before,
.de-accordion__title::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 8px;
	width: 16px;
	height: 2px;
	border-radius: 2px;
	background: var(--de-teal);
	transition: transform var(--de-transition);
}
.de-accordion__title::after { transform: rotate(90deg); }
.de-accordion__item[open] > .de-accordion__title::after { transform: rotate(0deg); }
.de-accordion__title:hover { color: var(--de-teal); }
.de-accordion__title:focus-visible { outline: 3px solid var(--de-focus); outline-offset: 2px; border-radius: 6px; }
.de-accordion__body { padding: 0 48px 22px 0; }
.de-split--bg-teal .de-accordion,
.de-split--bg-teal .de-accordion__item { border-color: var(--de-on-dark-line); }
.de-split--bg-teal .de-accordion__title { color: var(--de-white); }
.de-split--bg-teal .de-accordion__title::before,
.de-split--bg-teal .de-accordion__title::after { background: var(--de-blush); }

@media (max-width: 820px) {
	.de-split--text .de-split__inner,
	.de-split--media .de-split__inner { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
	.de-split--media.de-split--img-left .de-split__inner,
	.de-split--media.de-split--img-right .de-split__inner { grid-template-areas: "head" "body" "media"; }
	.de-split--media.de-split--media-image .de-split__inner { grid-template-areas: "media" "head" "body"; }
}

/* 7.3 de-cta-banner --------------------------------------------------------- */
.de-cta__panel { padding-block: var(--de-panel-pad); }
.de-cta__inner { max-width: calc(var(--de-prose-w) + 2 * var(--de-gutter)); text-align: center; }
.de-cta__heading { margin: 0 0 var(--de-space-heading); font-size: var(--de-fs-h2); line-height: var(--de-lh-h2); }
.de-cta__text { margin-inline: auto; }
.de-cta__actions { justify-content: center; margin-top: var(--de-space-button); }
.de-cta .de-phone::before { background: currentColor; }

/* 7.4 de-marquee ------------------------------------------------------------ */
/* Large scrolling band on every page, as live (QA 006). */
.de-marquee { overflow: hidden; }
.de-marquee__track { display: flex; width: max-content; animation: de-marquee 48s linear infinite; }
.de-marquee:hover .de-marquee__track { animation-play-state: paused; }
.de-marquee__list { display: flex; margin: 0; padding: 0; list-style: none; }
.de-marquee__item {
	color: var(--de-teal);
	font-size: clamp(36px, 5.5vw, 50px); /* 50px on desktop */
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.01em;
	white-space: nowrap;
}
.de-marquee__item::after { content: "\2013"; margin-inline: .4em; color: var(--de-teal-light); }
@keyframes de-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.de-marquee__track { width: auto; animation: none; }
	.de-marquee__list { flex-wrap: wrap; justify-content: center; }
	.de-marquee__list[aria-hidden="true"] { display: none; }
	.de-marquee__item { font-size: clamp(28px, 4vw, 50px); }
}

/* 7.5 Shared section head (eyebrow + heading left, intro/button right) ------ */
.de-cards__head,
.de-ins__head {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: var(--de-space-heading) clamp(32px, 6vw, 80px);
	align-items: end;
	margin-bottom: var(--de-space-head);
}
.de-cards__heading,
.de-ins__heading,
.de-list__heading,
.de-reviews__heading,
.de-team__heading { margin: 0; font-size: var(--de-fs-h2); line-height: var(--de-lh-h2); }
/* Section button (cards, insurance, gallery, posts): always centred under the grid / carousel (QA 2026-10-02).
 * The grids' own bottom gaps (12–16px) are smaller than the token, so the token is the gap at every width. */
.de-block-foot { justify-content: center; margin-top: var(--de-space-button); }
.de-list__head,
.de-reviews__head,
.de-team__head { margin-bottom: var(--de-space-head); max-width: 760px; }
.de-list__intro { margin-top: var(--de-space-heading); max-width: 62ch; }
@media (max-width: 820px) {
	.de-cards__head,
	.de-ins__head { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

/* de-insurance head centred on every page (QA 012; was the Editorial "centered" look only). */
.de-ins .de-ins__head { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.de-ins .de-ins__aside { max-width: 640px; }
/* de-insurance on teal (shared default, decided 2026-09-30): logos on white chips, solid white button. */
.de-ins__panel { padding-block: var(--de-panel-pad); }
.de-ins--teal .de-prose,
.de-ins--teal .de-prose strong { color: var(--de-white); }
.de-ins--teal .de-logos__item { border-color: transparent; border-radius: 14px; }

/* 7.6 de-cards ------------------------------------------------------------ */
.de-cards__panel { padding-block: var(--de-panel-pad); }
.de-cards__grid {
	--cols: 4;
	display: grid;
	grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.de-cards--cols-1 .de-cards__grid { --cols: 1; }
.de-cards--cols-2 .de-cards__grid { --cols: 2; }
.de-cards--cols-3 .de-cards__grid { --cols: 3; }
@media (max-width: 1100px) { .de-cards--cols-4 .de-cards__grid { --cols: 3; } }
@media (max-width: 820px) { .de-cards__grid { --cols: 2 !important; } }
@media (max-width: 560px) { .de-cards__grid { --cols: 1 !important; } }
/* Desktop + tablet (QA 2026-10-02): an incomplete last row is centred (7 cards = 4 + 3 centred). Flex rows with
 * the grid's own column width and gap, so full rows look exactly as before; cards in a row keep equal heights.
 * Phones (<= 560px) keep the grid: 1 column, or 2 compact columns for page grids. */
@media (min-width: 561px) {
	.de-cards__grid { --gap: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
	.de-cards__grid > .de-card { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); }
}
/* Page-card grids on phones: 2 compact columns (title + arrow; no image or text). */
@media (max-width: 560px) {
	.de-cards--compact-m .de-cards__grid { --cols: 2 !important; gap: 10px; }
	.de-cards--compact-m .de-card { padding: 14px 14px 12px; gap: 8px; }
	.de-cards--compact-m :is(.de-card__media, .de-card__icon, .de-card__num, .de-card__text, .de-card__kicker) { display: none; }
	.de-cards--compact-m .de-card__title { font-size: 15px; line-height: 1.3; hyphens: auto; }
	.de-cards--compact-m .de-card__more { padding-top: 2px; }
}

.de-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-width: 0;
	padding: 24px;
	border: 1px solid var(--de-line);
	border-radius: var(--de-radius);
	background: var(--de-white);
	transition: border-color var(--de-transition), box-shadow var(--de-transition), transform var(--de-transition);
}
.de-cards--bg-pale .de-card { border-color: transparent; }
.de-card--link:hover,
.de-card--link:has(.de-card__link:focus-visible) { border-color: var(--de-teal-light); box-shadow: var(--de-shadow); } /* keyboard focus only: a mouse-focused link (after a click, or back from the next page) must not keep the hover look */
@media (prefers-reduced-motion: no-preference) { .de-card--link:hover { transform: translateY(-2px); } }
.de-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
.de-card__kicker { margin: 0; color: var(--de-teal); font-size: var(--de-fs-eyebrow); font-weight: 600; letter-spacing: var(--de-ls-eyebrow); text-transform: uppercase; }
.de-card__title { margin: 0; color: var(--de-ink); font-size: 20px; font-weight: 600; line-height: 1.3; text-wrap: balance; }
.de-card__link { color: inherit; text-decoration: none; }
.de-card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole card clickable, one link */
.de-card__link:focus-visible { outline: none; }
.de-card--link:has(.de-card__link:focus-visible) { outline: 3px solid var(--de-focus); outline-offset: 3px; }
.de-card__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 6px;
	color: var(--de-teal);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.de-card__more .de-icon { width: 18px; height: 18px; transition: transform var(--de-transition); }
.de-card--link:hover .de-card__more .de-icon { transform: translateX(3px); }

/* Numbered cards (the shared "services" set; Home redesign 2026-10-07): no arrow icon; the whole card stays one link
 * (the title link stretched over the card), focus ring on the card, hover = border + shadow only (no movement). */
.de-cards--numbered .de-card__more { display: none; }
.de-cards--numbered .de-card--link:hover { transform: none; }

/* Text cards (style = text; Home "Conditions We Treat", user decision 2026-10-02): no media. Visual order
 * label → title → description → "Learn More" + arrow at the bottom; the DOM keeps live's order (title, then
 * label) and the label is raised with `order`, so the heading still starts the card for screen readers.
 * The title link covers the card (accessible name = title); "Learn More" + arrow are aria-hidden. */
.de-cards--text .de-card { padding: 32px; }
.de-cards--text .de-card--link:hover { transform: none; }
.de-cards--text .de-card__body { gap: 0; }
.de-cards--text .de-card__kicker { order: -1; margin-bottom: var(--de-space-eyebrow); color: var(--de-body); }
.de-cards--text .de-card__title { font-size: var(--de-fs-h3); font-weight: 600; line-height: 1.3; }
.de-cards--text .de-card__text { margin-top: var(--de-space-eyebrow); font-size: var(--de-fs-body); line-height: var(--de-lh-body); }
.de-cards--text .de-card__more { padding-top: var(--de-space-heading); font-size: var(--de-fs-body); letter-spacing: 0; text-transform: none; }
.de-cards--text .de-card--link:is(:hover, :has(.de-card__link:focus-visible)) .de-card__more .de-icon { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) {
	.de-cards--text .de-card__more .de-icon { transition: none; }
	.de-cards--text .de-card--link:is(:hover, :has(.de-card__link:focus-visible)) .de-card__more .de-icon { transform: none; }
}
/* 3 columns from 1024px, 2 (+1 centred) at 768–1023px, 1 below 768px. */
@media (max-width: 1023px) { .de-cards--text .de-cards__grid { --cols: 2 !important; } }
@media (max-width: 767px) {
	.de-cards--text .de-cards__grid { --cols: 1 !important; }
	.de-cards--text .de-card { padding: 24px; }
}
/* Image band (cards_bg = image; Home "Conditions We Treat"): an inset rounded panel (user decision 2026-10-05,
 * was full-width) with a decorative CSS background set by de-main.js when it nears the viewport. */
.de-cards__band { padding-block: var(--de-panel-pad); background: var(--de-teal-pale) var(--de-band-img, none) center / cover no-repeat; }

/* Feature cards (style = feature): line icon in a pale circle → label → serif title → text → "Learn More →"
 * pinned to the bottom. DOM keeps live's title-then-label order; icon + label are raised with `order`. */
.de-cards--feature.de-cards--bg-image .de-cards__heading .de-accent { color: var(--de-teal); } /* Home §8 only */
.de-cards--feature .de-cards__grid { --gap: 24px; gap: var(--gap); }
.de-cards--feature .de-card {
	padding: 40px;
	border-color: rgba(155, 194, 206, .45);
	border-radius: 22px;
	background: rgba(255, 255, 255, .92);
	box-shadow: 0 12px 32px rgba(19, 79, 96, .08);
}
.de-cards--feature .de-card--link:is(:hover, :has(.de-card__link:focus-visible)) { transform: none; border-color: var(--de-teal-light); box-shadow: 0 16px 40px rgba(19, 79, 96, .14); }
.de-cards--feature .de-card__body { gap: 0; }
.de-cards--feature .de-card__line-icon { order: -2; display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 24px; border-radius: 50%; background: var(--de-teal-pale); color: var(--de-teal); }
.de-cards--feature .de-card__line-icon .de-icon { width: 28px; height: 28px; }
.de-cards--feature .de-card__kicker { order: -1; margin-bottom: 12px; }
.de-cards--feature .de-card__title { color: var(--de-footer); font-family: var(--de-accent); font-size: clamp(28px, 2.2vw, 30px); font-style: italic; font-weight: 400; line-height: 1.2; }
.de-cards--feature .de-card__text { margin-top: var(--de-space-eyebrow); color: var(--de-footer); font-size: var(--de-fs-body); line-height: var(--de-lh-body); }
.de-cards--feature .de-card__text :is(p, li, strong) { color: inherit; }
.de-cards--feature .de-card__more { padding-top: 24px; font-size: var(--de-fs-body); letter-spacing: 0; text-transform: none; }
.de-cards--feature .de-card--link:is(:hover, :has(.de-card__link:focus-visible)) .de-card__more .de-icon { transform: translateX(4px); }
.de-cards--feature.de-cards--bg-image .de-block-foot { margin-top: 40px; } /* Home §8 only: 40px + arrow button */
.de-cards--feature.de-cards--bg-image .de-block-foot .de-btn { gap: 10px; }
.de-cards--feature.de-cards--bg-image .de-block-foot .de-btn .de-icon { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) {
	.de-cards--feature .de-card__more .de-icon { transition: none; }
	.de-cards--feature .de-card--link:is(:hover, :has(.de-card__link:focus-visible)) .de-card__more .de-icon { transform: none; }
}
/* 3 columns from 1024px, 2 (+1 centred) at 768–1023px, 1 below 768px. */
@media (max-width: 1023px) { .de-cards--feature .de-cards__grid { --cols: 2 !important; } }
@media (max-width: 767px) {
	.de-cards--feature .de-cards__grid { --cols: 1 !important; }
	.de-cards--feature .de-card { padding: 28px; }
}

/* Centred section head (per block: Heading alignment = Centred). */
.de-cards__head--center { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }

.de-card__media { margin: -24px -24px 0; }
.de-card__image { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--de-radius) var(--de-radius) 0 0; }
.de-card__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--de-teal-pale); }
.de-card__icon img { width: 28px; height: 28px; object-fit: contain; }
.de-cards--bg-pale .de-card__icon { background: var(--de-teal-pale); }
.de-card__num { color: var(--de-teal); font-size: 34px; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }

/* Card alignment (site-wide rule, 2026-10-11; AUDIT decision "card alignment rule"). Every card component (hero
 * service cards, numbered, icon/value/approach, feature/condition, image and page cards) centres the icon circle,
 * the number (Editorial numbered cards: number + line icon as one centred row, editorial.css §4), the label + title
 * and the "Learn More" / arrow; the description stays left-aligned. One token per card: a component that ever needs
 * left-aligned heads sets --de-card-align: start on its .de-card. Equal heights and the arrow pinned to the bottom
 * (.de-card__more margin-top: auto) are unchanged; where a component hides the arrow (numbered cards, Editorial
 * open-column values) it stays hidden. */
.de-card { --de-card-align: center; }
.de-post { --de-card-align: start; } /* blog post cards (de-posts) reuse .de-card but keep their left-aligned layout (user annotation 2026-10-11) */
.de-card :is(.de-card__icon, .de-card__line-icon, .de-card__num, .de-card__more) { align-self: var(--de-card-align); justify-self: var(--de-card-align); }
.de-card :is(.de-card__title, .de-card__kicker) { align-self: stretch; text-align: var(--de-card-align); }
.de-card .de-card__text { align-self: stretch; text-align: left; }

/* 7.7 de-list (numbered, hover image) --------------------------------------- */
.de-list__grid {
	display: grid;
	grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--de-line);
}
.de-list--cols-3 .de-list__grid { --cols: 3; }
.de-list--cols-2 .de-list__grid { --cols: 2; }
.de-list--cols-1 .de-list__grid { --cols: 1; }
.de-list__item {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
	padding: 28px 24px 32px;
	border-bottom: 1px solid var(--de-line);
}
.de-list__item + .de-list__item { border-left: 1px solid var(--de-line); }
.de-list__media { overflow: hidden; margin-bottom: 8px; border-radius: var(--de-radius); background: var(--de-teal-pale); aspect-ratio: 12 / 5; }
.de-list__image { display: block; width: 100%; height: 100%; max-width: 100%; object-fit: cover; }
.de-list__num { color: var(--de-teal); font-size: 15px; font-weight: 600; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.de-list__title { margin: 0; color: var(--de-ink); font-size: 21px; font-weight: 600; line-height: 1.3; }
.de-list__link { color: inherit; text-decoration: none; }
.de-list__link::after { content: ""; position: absolute; inset: 0; }
.de-list__item--link:hover .de-list__title,
.de-list__item--link:has(.de-list__link:focus-visible) .de-list__title { color: var(--de-teal); }
.de-list__item--link:has(.de-list__link:focus-visible) { outline: 3px solid var(--de-focus); outline-offset: -3px; }
.de-list__link:focus-visible { outline: none; }
/* Hover-capable pointers: the image rests faint and grey, and comes to full
 * colour on hover / focus (never an empty box at rest). Touch: always full. */
@media (hover: hover) and (pointer: fine) and (min-width: 821px) {
	.de-list__image { opacity: .35; filter: grayscale(1); transform: scale(1.03); transition: opacity .35s ease, filter .35s ease, transform .5s ease; }
	.de-list__item:hover .de-list__image,
	.de-list__item:has(.de-list__link:focus-visible) .de-list__image { opacity: 1; filter: none; transform: none; }
}
@media (max-width: 1100px) {
	.de-list--cols-4 .de-list__grid { --cols: 2; }
	.de-list--cols-4 .de-list__item:nth-child(odd) { border-left: 0; }
}
@media (max-width: 560px) {
	.de-list__grid { --cols: 1 !important; }
	.de-list__item + .de-list__item { border-left: 0; }
	.de-list__item { padding-inline: 0; }
}

/* 7.8 de-stats -------------------------------------------------------------- */
.de-stats__panel { padding-block: var(--de-panel-pad); }
.de-stats__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 28px clamp(32px, 5vw, 72px); align-items: center; }
.de-stats__intro { color: var(--de-white); font-size: 18px; line-height: 1.6; }
.de-stats__intro strong { color: var(--de-white); }
.de-stats__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.de-stat__value { margin: 0; color: var(--de-blush); font-size: clamp(40px, 4.4vw, 60px); font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.de-stat__label { margin: 10px 0 0; color: var(--de-white); font-size: 16px; font-weight: 500; }
@media (max-width: 820px) { .de-stats__inner { grid-template-columns: minmax(0, 1fr); } }

/* 7.9 de-insurance (logo carousel) ------------------------------------------ */
.de-logos { overflow: hidden; padding-block: 8px; margin-block: -8px; /* the padding only keeps chip borders clear of the mask */ -webkit-mask-image: var(--de-mask-fade-x); mask-image: var(--de-mask-fade-x); }
.de-logos__track { display: flex; width: max-content; }
.de-logos--scroll .de-logos__track { animation: de-marquee 40s linear infinite; }
.de-logos--scroll:hover .de-logos__track,
.de-logos--scroll:focus-within .de-logos__track { animation-play-state: paused; }
.de-logos__list { display: flex; gap: 16px; margin: 0; padding: 0 8px; list-style: none; }
.de-logos__item { display: grid; place-items: center; width: 180px; height: 96px; padding: 18px 22px; border: 1px solid var(--de-line); border-radius: var(--de-radius); background: var(--de-white); }
.de-logos__img { display: block; width: auto; max-width: 100%; height: auto; max-height: 56px; object-fit: contain; }
.de-logos:not(.de-logos--scroll) { -webkit-mask-image: none; mask-image: none; }
.de-logos:not(.de-logos--scroll) .de-logos__track { width: auto; max-width: calc(var(--de-max-w) + 2 * var(--de-gutter)); margin-inline: auto; padding-inline: var(--de-gutter); }
.de-logos:not(.de-logos--scroll) .de-logos__list { flex-wrap: wrap; justify-content: center; }
@media (prefers-reduced-motion: reduce) {
	.de-logos { -webkit-mask-image: none; mask-image: none; }
	.de-logos--scroll .de-logos__track { width: auto; animation: none; padding-inline: var(--de-gutter); }
	.de-logos__list { flex-wrap: wrap; justify-content: center; }
	.de-logos__list[aria-hidden="true"] { display: none; }
}
@media (max-width: 560px) { .de-logos__item { width: 150px; height: 84px; padding: 14px 18px; } }

/* 7.10 de-reviews + de-team -------------------------------------------------- */
.de-reviews__embed { min-height: 120px; }
.de-team__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.de-team__member { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 22px; border: 1px solid var(--de-line); border-radius: 18px; background: var(--de-white); box-shadow: 0 10px 28px rgba(19, 79, 96, .08); } /* boxed like the program cards */
.de-team__member .de-team__photo img { border-radius: 12px; }
.de-team__photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--de-radius); margin-bottom: 8px; }
.de-team__name { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.3; }
.de-team__cred { font-weight: 500; color: var(--de-body); }
.de-team__role { margin: 0; color: var(--de-teal); font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
/* Cards: same height in a row; the bio's first paragraph clamped, the full bio in a popover (native, no JS). */
.de-team__excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; color: var(--de-body); font-size: 16px; }
.de-team__excerpt p { margin: 0; }
.de-team__more { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: auto; padding: 6px 0 0; border: 0; background: none; color: var(--de-teal); font: 600 14px/1.4 var(--de-font); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.de-team__more .de-icon { width: 18px; height: 18px; transition: transform var(--de-transition); }
.de-team__more:hover .de-icon { transform: translateX(3px); }
.de-team__more:focus-visible,
.de-team__close:focus-visible { outline: 3px solid var(--de-focus); outline-offset: 3px; border-radius: 4px; }
.de-team__pop { width: min(920px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); margin: auto; padding: clamp(24px, 4vw, 44px); overflow: auto; border: 0; border-radius: var(--de-radius); background: var(--de-white); color: var(--de-body); box-shadow: 0 24px 60px rgba(0, 0, 0, .25); }
.de-team__pop::backdrop { background: var(--de-footer); opacity: .8; }
.de-team__pop-grid { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(24px, 4vw, 44px); align-items: start; }
.de-team__pop-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--de-radius); }
.de-team__pop-body { display: grid; gap: 8px; min-width: 0; }
.de-team__pop-body .de-team__bio { margin-top: 12px; max-width: none; }
.de-team__close { position: sticky; top: 0; float: right; z-index: 1; width: 44px; height: 44px; margin: -12px -12px 0 12px; border: 0; border-radius: 50%; background: var(--de-teal-pale); cursor: pointer; }
.de-team__close::before,
.de-team__close::after { content: ""; position: absolute; top: 50%; left: 50%; width: 18px; height: 2px; background: var(--de-teal-deep); }
.de-team__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.de-team__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
@media (max-width: 640px) {
	.de-team__pop-grid { grid-template-columns: minmax(0, 1fr); }
	.de-team__pop-photo { max-width: 220px; }
}

/* 7.11 de-gallery + lightbox ------------------------------------------------ */
.de-gallery__head,
.de-posts__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--de-space-heading) 40px;
	margin-bottom: var(--de-space-head);
}
.de-gallery__heading,
.de-posts__heading,
.de-lf__heading { margin: 0; font-size: var(--de-fs-h2); line-height: var(--de-lh-h2); }
.de-gallery__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 1100px) { .de-gallery__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .de-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.de-gallery__thumb {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	border-radius: var(--de-radius);
	overflow: hidden;
	background: var(--de-teal-pale);
	cursor: zoom-in;
}
.de-gallery__img { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s ease; }
.de-gallery__thumb:hover .de-gallery__img { transform: scale(1.04); }
.de-gallery__thumb:focus-visible { outline: 3px solid var(--de-focus); outline-offset: 3px; }

.de-lightbox {
	width: 100vw;
	max-width: none;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--de-white);
}
.de-lightbox::backdrop { background: var(--de-footer); opacity: .94; }
.de-lightbox[open] { display: grid; grid-template-rows: 1fr auto; place-items: center; }
.de-lightbox__figure { display: grid; justify-items: center; gap: 12px; max-width: min(92vw, 1400px); margin: 0; padding: 72px 72px 0; }
.de-lightbox__img { display: block; max-width: 100%; max-height: calc(100dvh - 180px); width: auto; height: auto; border-radius: var(--de-radius); object-fit: contain; }
.de-lightbox__caption { max-width: 70ch; margin: 0; color: var(--de-on-dark-muted); font-size: 15px; text-align: center; }
.de-lightbox__count { margin: 0 0 24px; color: var(--de-white); font-size: 14px; font-weight: 600; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.de-lightbox__btn {
	position: fixed;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 1.5px solid var(--de-white);
	border-radius: 50%;
	background: transparent;
	color: var(--de-white);
	cursor: pointer;
	transition: background-color var(--de-transition), color var(--de-transition);
}
.de-lightbox__btn:hover { background: var(--de-white); color: var(--de-teal-deep); }
.de-lightbox__btn:focus-visible { outline: 3px solid var(--de-focus); outline-offset: 3px; }
.de-lightbox__btn .de-icon { width: 24px; height: 24px; }
.de-lightbox__close { top: 16px; right: 16px; }
.de-lightbox__prev { top: 50%; left: 16px; transform: translateY(-50%); }
.de-lightbox__next { top: 50%; right: 16px; transform: translateY(-50%); }
.de-lightbox__prev .de-icon { transform: rotate(90deg); }
.de-lightbox__next .de-icon { transform: rotate(-90deg); }
@media (max-width: 640px) {
	.de-lightbox__figure { padding: 72px 12px 0; }
	.de-lightbox__prev,
	.de-lightbox__next { top: auto; bottom: 16px; transform: none; }
}
html.de-lightbox-open { overflow: hidden; }

/* 7.12 de-lead-form ---------------------------------------------------------- */
.de-lf__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px clamp(32px, 6vw, 80px); align-items: start; }
.de-lf__intro { display: grid; gap: var(--de-space-heading); }
.de-lf__intro .de-eyebrow { margin-bottom: calc(var(--de-space-eyebrow) - var(--de-space-heading)); }
.de-lf__intro > .de-btn-row { margin-top: calc(var(--de-space-button) - var(--de-space-heading)); }
.de-lf__contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px 32px; margin: 12px 0 0; }
.de-lf__contact dt { margin-bottom: 4px; color: var(--de-ink); font-weight: 600; }
.de-lf__contact dd { margin: 0; line-height: 1.6; }
.de-lf__contact a { color: var(--de-teal); }
.de-lf__contact .de-phone { color: var(--de-teal); font-weight: 500; }
.de-lf__contact .de-phone::before { display: none; }
.de-lf__phone { margin: 0; color: var(--de-ink); font-weight: 600; }
.de-lf__card { padding: clamp(24px, 4vw, 48px); border-radius: var(--de-radius-panel); background: var(--de-teal-pale); }
.de-lf__card-heading { margin: 0 0 var(--de-space-heading); font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; line-height: 1.2; }
.de-lf__privacy { margin-top: 20px; font-size: 14px; }
/* Photo / teal panel (shared form section, decided 2026-09-30): the hero's overlay tokens, white text,
 * a solid white form card. Mobile (stacked) uses a flat >= 0.86 tint so white text passes over a white pixel. */
.de-lf__panel { padding-block: var(--de-panel-pad); }
.de-lf__image { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.de-lf--on-dark .de-lf__intro,
.de-lf--on-dark .de-lf__intro .de-prose,
.de-lf--on-dark .de-lf__phone,
.de-lf--on-dark .de-lf__intro .de-eyebrow { color: var(--de-white); }
.de-lf--on-dark .de-lf__card { background: var(--de-white); box-shadow: var(--de-shadow); color: var(--de-ink); } /* GF text inherits: dark on the white card */
@media (max-width: 900px) {
	.de-lf--on-dark .de-panel--photo::before { background: var(--de-overlay-flat); }
}
@media (max-width: 900px) { .de-lf__inner { grid-template-columns: minmax(0, 1fr); } }
/* Lead form as the page's first section (Landing, 3963; user decision 2026-09-30): Home-hero heading
 * scale, text centred beside the form card, and the Home hero's overlay: strong behind the text column,
 * fading toward the form so the photo shows. Mobile: a light tint on the photo, the strong tint only
 * behind the text block (as the Home hero), so white text passes over a white pixel. */
.de-lf--hero .de-lf__heading.de-display { font-size: var(--de-fs-display); line-height: var(--de-lh-display); }
.de-lf--hero .de-lf__inner { align-items: center; }
.de-lf--hero .de-panel--photo::before { background: var(--de-overlay-lander); }
@media (max-width: 900px) {
	.de-lf--hero.de-lf--on-dark .de-panel--photo::before { background: var(--de-overlay-light); }
	.de-lf--hero .de-lf__intro { position: relative; isolation: isolate; }
	.de-lf--hero .de-lf__intro::before {
		content: "";
		position: absolute;
		z-index: -1;
		top: -170px; /* the gradient's 160px fade ends above the eyebrow */
		right: -100vw;
		bottom: -24px;
		left: -100vw;
		background: var(--de-overlay-up);
		pointer-events: none;
	}
}

/* 7.13 de-map ----------------------------------------------------------------- */
.de-map__frame { display: block; width: 100%; height: clamp(320px, 42vw, 520px); border: 0; }

/* 7.14 de-posts --------------------------------------------------------------- */
.de-posts__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 1100px) { .de-posts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .de-posts__grid { grid-template-columns: minmax(0, 1fr); } }
.de-post__date { margin: 0; color: var(--de-body); font-size: 14px; }
.de-posts__pagination { margin-top: var(--de-space-head); } /* grid → pagination: the section-head token (2026-10-06) */
.de-posts__pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.de-posts__pagination a,
.de-posts__pagination span {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--de-line);
	border-radius: var(--de-radius-pill);
	color: var(--de-ink);
	font-weight: 600;
	text-decoration: none;
}
.de-posts__pagination a:hover { border-color: var(--de-teal); color: var(--de-teal); }
.de-posts__pagination .current { border-color: var(--de-teal); background: var(--de-teal); color: var(--de-white); }

/* Post end (user decision 2026-09-30): previous/next + a 2-post related strip, as live. */
.de-post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--de-line); }
.de-post-nav__link { display: grid; gap: 6px; color: var(--de-ink); text-decoration: none; }
.de-post-nav__link--next { text-align: right; }
.de-post-nav__label { color: var(--de-teal); font-size: var(--de-fs-eyebrow); font-weight: 600; letter-spacing: var(--de-ls-eyebrow); text-transform: uppercase; }
.de-post-nav__title { font-weight: 600; line-height: 1.35; }
.de-post-nav__link:hover .de-post-nav__title,
.de-post-nav__link:focus-visible .de-post-nav__title { text-decoration: underline; text-underline-offset: 3px; }
.de-post-related { margin-top: 48px; }
.de-post-related__heading { margin: 0 0 24px; font-size: var(--de-fs-h3, 28px); line-height: 1.2; }
.de-post-related__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.de-post-related__card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--de-line); border-radius: var(--de-radius); background: var(--de-white); }
.de-post-related__image { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.de-post-related__body { display: grid; gap: 8px; padding: 18px 20px 20px; }
.de-post-related__meta { margin: 0; color: var(--de-teal); font-size: 13px; font-weight: 600; }
.de-post-related__title { margin: 0; font-size: 18px; line-height: 1.35; }
.de-post-related__link { color: var(--de-ink); text-decoration: none; }
.de-post-related__link::after { content: ""; position: absolute; inset: 0; } /* whole card clickable, one link */
.de-post-related__card:has(.de-post-related__link:focus-visible) { outline: 3px solid var(--de-focus); outline-offset: 3px; }
.de-post-related__more { display: inline-flex; align-items: center; gap: 8px; color: var(--de-teal); font-size: 14px; font-weight: 600; }
.de-post-related__more .de-icon { width: 16px; height: 16px; }
@media (max-width: 640px) { .de-post-related__grid, .de-post-nav { grid-template-columns: minmax(0, 1fr); } .de-post-nav__link--next { text-align: left; } }
/* The sidebar's Related Posts would repeat the strip once the sidebar drops below the article. */
@media (max-width: 1100px) { .de-sidebar__box--related { display: none; } } /* = where the sidebar drops below the article */

/* Landing template (user decision 2026-09-30): minimal header + footer, no navigation. */
.de-header--landing .de-header__inner { justify-content: space-between; }
.de-landing-header__phone { white-space: nowrap; }
.de-footer--landing { margin-top: 0; padding-block: 0 24px; } /* the last section's gap is the whole gap */
.de-footer--landing .de-footer__bottom { padding-top: 0; }
.de-footer--landing .de-footer__bottom { align-items: center; margin-top: 0; border-top-color: var(--de-line); color: var(--de-body); }
.de-footer--landing .de-footer__bottom a { color: var(--de-teal); }
.de-lf__logos { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 0; padding: 0; list-style: none; }
.de-lf__logos .de-logos__item { width: 120px; height: 64px; padding: 10px 14px; }

/* Focus ring colour per surface (QA 2026-10-01, WCAG 1.4.11 / 2.4.7): deep teal on white/pale (9.4:1 on white),
 * blush on teal, photo and dark panels (4.7:1 on teal). White cards inside dark panels go back to deep teal. */
.de-panel--teal, .de-panel--photo, .de-panel--dark, .de-footer, .de-lf--on-dark .de-lf__intro { --de-focus: var(--de-blush); }
.de-lf__card, .de-logos__item, .de-card { --de-focus: #134F60; }
.gform_wrapper a:focus-visible { outline: 3px solid var(--de-focus); outline-offset: 2px; }
