/*
 * Exercise Innovation — base.css (theme shell)
 *
 * Tokens (FRONTEND-CONTRACT §1), reset + typography, global classes (§2), ei-core form styles,
 * header / top bar / nav / drawer / sticky states, page hero, footer, pre-footer, mobile CTA bar,
 * social icons and the template-level layouts (Resources hub, articles, archives, search, 404).
 * Section vocabulary + content blocks live in components.css (design system).
 *
 * Mobile-first. Breakpoints: 600 / 782 / 1024 / 1280. Loaded on the front end and in the editor.
 */

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
	--ei-heading: var(--wp--preset--color--heading, #4E4D4D);
	--ei-text: var(--wp--preset--color--text, #28222C);
	--ei-blue: var(--wp--preset--color--blue, #1D789D);
	/* Text blue on panel / tinted surfaces: #1D789D is 4.35:1 on #F1EFF4, this is 5.88:1 (6.71:1 on white). */
	--ei-blue-dark: var(--wp--preset--color--blue-dark, #17637F);
	--ei-blue-brand: var(--wp--preset--color--blue-brand, #2082AB);
	--ei-red-dark: var(--wp--preset--color--red-dark, #971E19);
	--ei-red: var(--wp--preset--color--red, #D22B24);
	--ei-bg: var(--wp--preset--color--background, #FAF7FF);
	--ei-white: var(--wp--preset--color--white, #FFFFFF);
	--ei-panel: var(--wp--preset--color--panel, #F1EFF4);
	--ei-grey: var(--wp--preset--color--section-grey, #F5F5F5);
	--ei-dark: var(--wp--preset--color--dark, #262626);
	--ei-dark-section: var(--wp--preset--color--dark-section, #5F5E61);
	--ei-dark-deep: #353537; /* live Athletes "1-on-1 Coaching Sessions" band (black .8 over the background) */
	--ei-teal: var(--wp--preset--color--teal, #487F86);
	--ei-footer-hover: #FFC2BE;
	--ei-muted: #5F5A63; /* secondary text on white/background: 6.5:1 */

	--ei-border-soft: rgba(210, 43, 36, .21);
	--ei-border-faq: #D5D8DC;
	--ei-blue-tint: rgba(32, 130, 171, .43);
	--ei-overlay: rgba(78, 77, 77, .55);
	--ei-overlay-track: rgba(78, 77, 77, .80);
	--ei-overlay-hero: rgba(78, 77, 77, .70);
	--ei-overlay-home: rgba(78, 77, 77, .66);
	--ei-glass: rgba(255, 255, 255, .09);
	--ei-gradient-soft: var(--wp--preset--gradient--soft, radial-gradient(42% 60% at 12% 18%, rgba(205, 190, 238, .55) 0%, rgba(205, 190, 238, 0) 100%), radial-gradient(38% 55% at 88% 20%, rgba(242, 202, 226, .55) 0%, rgba(242, 202, 226, 0) 100%), radial-gradient(45% 60% at 72% 92%, rgba(196, 214, 244, .6) 0%, rgba(196, 214, 244, 0) 100%), radial-gradient(40% 55% at 22% 90%, rgba(238, 210, 236, .45) 0%, rgba(238, 210, 236, 0) 100%), linear-gradient(180deg, #F2EDF8 0%, #F4EFF8 100%));
	--ei-gradient-teal: var(--wp--preset--gradient--teal-card, linear-gradient(251deg, #487F86 47%, rgba(72, 127, 134, 0) 100%));
	--ei-gradient-dark-cta: var(--wp--preset--gradient--dark-cta, linear-gradient(90deg, rgba(0, 0, 0, .89) 20%, rgba(0, 0, 0, 0) 75%));

	--ei-font-heading: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
	--ei-font-body: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
	--ei-fs-display: clamp(2.25rem, 1.6rem + 2.6vw, 3.2rem);
	--ei-fs-h1: clamp(2.4rem, 1.9rem + 2.1vw, 3.45rem);
	--ei-fs-h2: clamp(2rem, 1.55rem + 1.8vw, 2.8rem);
	--ei-fs-h3-lg: clamp(1.5rem, 1.25rem + 1vw, 2rem);
	--ei-fs-h3: 1.375rem;
	--ei-fs-h4: 1.25rem;
	--ei-fs-lead: clamp(1.15rem, 1rem + .7vw, 1.5625rem);
	--ei-fs-body: 1.0625rem;
	--ei-fs-small: .875rem;
	--ei-fs-cta: clamp(1.9rem, 1.4rem + 2vw, 2.875rem);
	--ei-ls-heading: -0.03em;

	--ei-radius-panel: 40px;
	--ei-radius-card: 15px;
	--ei-radius-track: 10px;
	--ei-radius-row: 22px;
	--ei-radius-faq: 23px;
	--ei-radius-option: 27px;
	--ei-radius-pill: 50px;
	--ei-radius-chip: 16px;

	/* Rounded full-width panels sit 20px from the viewport edge (12px < 600px), never inside a notch. */
	--ei-inset: max(20px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
	--ei-container: 1180px; /* live: 1200px boxed container with 10px padded children → content 130–1310px at 1440 */
	--ei-wide: 1400px;
	--ei-gutter: clamp(16px, 4vw, 24px);
	--ei-measure: 800px;
	--ei-section-y: clamp(56px, 7vw, 80px);
	--ei-gap: 20px;
	--ei-shadow-option: 0 0 10px rgba(0, 0, 0, .5);
	--ei-shadow-card: 0 14px 34px rgba(40, 34, 44, .12);

	/* Header geometry (used by heroes for top padding and by anchors for scroll offsets). */
	--ei-header-h: 88px;
	--ei-header-h-stuck: 64px;
	--ei-topbar-h: 48px; /* live 51px; contract 40px → 48px: 44px tap targets (R7) and the hero starts at y≈68 like the live panel (67) */
	--ei-mobile-cta-h: 0px;

	--ei-focus-color: var(--ei-blue-brand);
	--ei-focus: 3px solid var(--ei-blue-brand);
}

@media (max-width: 1023px) {
	:root {
		--ei-header-h: 80px;
	}
}

@media (max-width: 599px) {
	:root {
		--ei-inset: max(12px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
		--ei-header-h: 72px;
		--ei-header-h-stuck: 60px;
		--ei-topbar-h: 0px; /* top bar hidden on phones (links move into the drawer) */
	}
}

body.ei-no-topbar {
	--ei-topbar-h: 0px;
}

@media (max-width: 781px) {
	body.ei-has-mobile-cta {
		--ei-mobile-cta-h: calc(68px + env(safe-area-inset-bottom, 0px));
	}
}

/* ==========================================================================
   2. Reset + base
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	/* Anchors (#pricing, #faq, form errors) land below the sticky header. */
	scroll-padding-top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--ei-header-h-stuck) + 24px);
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	min-height: 100vh;
	padding-bottom: var(--ei-mobile-cta-h);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-wrap: break-word;
}

/* R1: nothing may widen the page (fixed-width rows, negative margins, long URLs). `clip` keeps
   position: sticky working, unlike `hidden`. */
.wp-site-blocks {
	overflow-x: clip;
}

.wp-site-blocks > * + * {
	margin-block-start: 0;
}

img,
video,
canvas,
svg {
	max-width: 100%;
}

img,
video {
	height: auto;
}

img {
	border-style: none;
}

figure {
	margin-inline: 0;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	-webkit-tap-highlight-color: transparent;
}

[hidden] {
	display: none !important;
}

::selection {
	background: rgba(32, 130, 171, .22);
}

/* ==========================================================================
   3. Typography
   ========================================================================== */

/* Text wraps greedily, exactly like the live site: its line breaks (hero headline, section titles,
   footer heading) are part of the design, so no text-wrap: balance/pretty here. */
h1,
h2,
h3,
h4,
h5,
h6 {
	overflow-wrap: break-word;
}

strong,
b {
	font-weight: 700;
}

small {
	font-size: var(--ei-fs-small);
}

/* ==========================================================================
   4. Links + focus (D7)
   ========================================================================== */

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

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

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

:focus:not(:focus-visible) {
	outline: none;
}

.has-dark-bg,
.ei-site-header,
.ei-footer,
.ei-form-wrap--card {
	--ei-focus-color: #FFFFFF;
	--ei-focus: 3px solid #FFFFFF;
}

/* ==========================================================================
   5. Utilities
   ========================================================================== */

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

.skip-link:focus,
.screen-reader-text:focus {
	top: 12px;
	left: 12px;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 14px 22px;
	clip-path: none;
	border-radius: var(--ei-radius-pill);
	background: #FFFFFF;
	color: var(--ei-heading);
	font: 600 1rem/1 var(--ei-font-body);
	text-decoration: none;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
	outline: 3px solid var(--ei-blue-brand);
	outline-offset: 2px;
}

/* ==========================================================================
   6. Buttons (DESIGN-SPEC §4) + action rows (R5)
   ========================================================================== */

.ei-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	min-height: 47px;
	max-width: 100%;
	margin: 0;
	padding: 15px 30px;
	border: 0;
	border-radius: var(--ei-radius-pill);
	background: var(--ei-red-dark);
	color: #FFFFFF;
	font-family: var(--ei-font-body);
	font-size: 1.0625rem;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0;
	text-align: center;
	text-decoration: none;
	text-transform: capitalize;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .3s ease, color .3s ease, box-shadow .3s ease;
}

.ei-btn:hover,
.ei-btn:focus-visible {
	text-decoration: none;
}

.ei-btn--red {
	background: var(--ei-red);
	color: #FFFFFF;
}

.ei-btn--red-dark {
	background: var(--ei-red-dark);
	color: #FFFFFF;
}

.ei-btn--blue {
	background: var(--ei-blue);
	color: #FFFFFF;
}

/* Live hover: white background + grey text (a 2px ring keeps the pill visible on light pages). */
.ei-btn--red:hover,
.ei-btn--red-dark:hover,
.ei-btn--blue:hover {
	background: #FFFFFF;
	color: var(--ei-heading);
	box-shadow: inset 0 0 0 2px var(--ei-heading);
}

.ei-btn--white {
	background: #FFFFFF;
	color: var(--ei-heading);
}

.ei-btn--white:hover {
	background: transparent;
	color: #FFFFFF;
	box-shadow: inset 0 0 0 2px #FFFFFF;
}

.ei-btn--outline {
	background: transparent;
	color: var(--ei-heading);
	box-shadow: inset 0 0 0 2px var(--ei-heading);
}

.ei-btn--outline:hover {
	background: var(--ei-heading);
	color: #FFFFFF;
}

.ei-btn--outline-light {
	background: transparent;
	color: #FFFFFF;
	box-shadow: inset 0 0 0 2px #FFFFFF;
}

.ei-btn--outline-light:hover {
	background: #FFFFFF;
	color: var(--ei-heading);
}

.ei-btn--link {
	min-height: 44px;
	padding: 0;
	border-radius: 0;
	background: none;
	color: var(--ei-blue);
	text-decoration: underline;
	text-underline-offset: .2em;
}

.ei-btn--link:hover {
	background: none;
	color: var(--ei-red-dark);
	box-shadow: none;
	text-decoration: underline;
}

.has-dark-bg .ei-btn--link {
	color: #FFFFFF;
}

.ei-btn--block {
	display: flex;
	width: 100%;
}

/* ei/button: the <a> is the block root. Inside .ei-actions it is a flex item; on its own it must
   not flow inline — a content-sized box that lines up with the content column (core's constrained
   layout would otherwise centre a fit-content child with !important auto margins). */
.wp-block-ei-button {
	display: flex;
	width: fit-content;
	max-width: 100%;
}

.wp-block-ei-button.ei-btn--block {
	width: 100%;
}

.ei-actions > .wp-block-ei-button {
	display: inline-flex;
}

.is-layout-constrained:not(.is-content-justification-center):not(.is-content-justification-right) > .wp-block-ei-button:not(.ei-btn--block) {
	margin-inline-start: max(0px, (100% - var(--wp--style--global--content-size, 1180px)) / 2) !important;
	margin-inline-end: auto !important;
}

.ei-btn--sm {
	min-height: 44px;
	padding: 12px 22px;
	font-size: 1rem;
}

.ei-btn[aria-disabled="true"],
.ei-btn:disabled {
	cursor: not-allowed;
	opacity: .6;
}

.ei-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

/* Phones: buttons wrap as whole buttons and stack full-width (no squeezed circles — R5). */
@media (max-width: 479px) {
	.ei-actions,
	.ei-actions.is-layout-flex {
		flex-direction: column;
		align-items: stretch;
	}

	.ei-actions > .ei-btn,
	.ei-actions > .wp-block-ei-button,
	.ei-actions > .wp-block-button,
	.ei-actions > .wp-block-button > .wp-block-button__link {
		width: 100%;
	}

	.ei-btn {
		white-space: normal;
	}
}

/* ==========================================================================
   7. Eyebrow, section head, check lists, dark surfaces
   ========================================================================== */

.ei-eyebrow {
	margin: 0 0 .75rem;
	color: var(--ei-red-dark);
	font-family: var(--ei-font-body);
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: 0;
}

.has-dark-bg .ei-eyebrow {
	color: #FFFFFF;
}

.ei-section-head {
	margin: 0 0 clamp(24px, 3vw, 40px);
}

.ei-section-head__title {
	margin: 0;
}

.ei-section-head__intro {
	margin-top: 1rem;
}

.ei-section-head__intro > :first-child {
	margin-top: 0;
}

.ei-section-head__intro > :last-child {
	margin-bottom: 0;
}

.ei-section-head--left {
	text-align: left;
}

.ei-section-head--center {
	max-width: 1100px;
	margin-inline: auto;
	text-align: center;
}

.ei-section-head--center .ei-section-head__intro {
	max-width: 760px;
	margin-inline: auto;
}

.ei-checklist,
.ei-xlist {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ei-checklist > li,
.ei-xlist > li {
	position: relative;
	min-height: 24px;
	padding-left: 34px;
}

.ei-checklist > li::before,
.ei-xlist > li::before {
	content: "";
	position: absolute;
	top: .12em;
	left: 0;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background-color: var(--ei-blue);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
	background-position: center;
	background-repeat: no-repeat;
	background-size: 13px;
}

.ei-xlist > li::before {
	background-color: var(--ei-red-dark);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E");
	background-size: 12px;
}

.ei-icon {
	display: inline-block;
	flex: none;
	vertical-align: middle;
}

/* Any surface with a dark background: white text, white focus ring, white links. */
.has-dark-bg {
	color: #FFFFFF;
}

.has-dark-bg :where(h1, h2, h3, h4, h5, h6, p, li, dt, dd, figcaption, blockquote, cite) {
	color: #FFFFFF;
}

.has-dark-bg :where(a:not(.ei-btn)) {
	color: #FFFFFF;
}

/* ==========================================================================
   8. Tables: scroll-safe (R2); stacked labels for branded tables come from components.css + theme.js (R15)
   ========================================================================== */

/* No max-width on .wp-block-table: the constrained layout sets it (760px article column etc.). */
.ei-table-scroll {
	max-width: 100%;
}

.ei-table-scroll,
.wp-block-table {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
}

.ei-table-scroll:focus-visible,
.wp-block-table:focus-visible {
	outline: var(--ei-focus);
	outline-offset: 2px;
}

.ei-table-scroll > table,
.wp-block-table > table {
	min-width: 100%;
}

/* ==========================================================================
   9. Forms (ei-core: Contact / Coach / Testimonial / Newsletter) — live Contact look, R9
   ========================================================================== */

.ei-form-wrap {
	width: 100%;
	scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--ei-header-h-stuck) + 24px);
}

.ei-form-wrap--card {
	padding: clamp(20px, 4vw, 30px);
	border-radius: var(--ei-radius-card);
	background: var(--ei-blue);
	color: #FFFFFF;
}

.ei-form__title {
	margin: 0 0 .75rem;
	color: var(--ei-heading);
	font-size: var(--ei-fs-h3-lg);
	line-height: 1.1;
}

.ei-form__intro {
	margin: 0 0 1.5rem;
}

.ei-form__intro > :first-child {
	margin-top: 0;
}

.ei-form__intro > :last-child {
	margin-bottom: 0;
}

.ei-form-wrap--card .ei-form__title,
.ei-form-wrap--card .ei-form__intro,
.ei-form-wrap--card .ei-form__intro p {
	color: #FFFFFF;
}

.ei-form-wrap--card .ei-form__intro {
	padding-bottom: 1.5rem;
	border-bottom: 1px solid rgba(255, 255, 255, .35);
}

.ei-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 18px;
	margin: 0;
}

.ei-form__field {
	display: grid;
	gap: 6px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--ei-header-h-stuck) + 32px);
}

.ei-form__label {
	display: block;
	color: var(--ei-heading);
	font-family: var(--ei-font-body);
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.35;
}

legend.ei-form__label {
	margin: 0 0 6px;
	padding: 0;
}

.ei-form-wrap--card .ei-form__label,
.ei-form-wrap--card .ei-form__option-label {
	color: #FFFFFF;
}

.ei-form__req {
	font-size: .875rem;
	font-weight: 400;
	opacity: .9;
}

.ei-form__help {
	margin: 0;
	color: var(--ei-muted);
	font-size: .9375rem;
	line-height: 1.45;
}

/* On the blue card: plain white (4.97:1). A translucent white (#E8F2F5) was 4.36:1, below AA for
   the small "(required)" marker, the help lines and the consent Privacy Policy link. */
.ei-form-wrap--card .ei-form__req {
	color: #FFFFFF;
	opacity: 1;
}

.ei-form-wrap--card .ei-form__help {
	color: #FFFFFF;
}

.ei-form a,
.ei-form-wrap--card a:not(.ei-btn) {
	color: inherit;
	text-decoration: underline;
}

.ei-form__input {
	display: block;
	width: 100%;
	max-width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 11px 14px;
	border: 1px solid #C5BFCB;
	border-radius: 6px;
	background-color: #FFFFFF;
	color: var(--ei-text);
	font-family: var(--ei-font-body);
	font-size: max(16px, 1.0625rem); /* R9: >= 16px, no zoom on focus in iOS */
	line-height: 1.4;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.ei-form-wrap--card .ei-form__input {
	border-color: #FFFFFF;
}

.ei-form__input::placeholder {
	color: #77707D;
	opacity: 1;
}

.ei-form__input:hover {
	border-color: var(--ei-heading);
}

.ei-form__input:focus-visible {
	outline: 3px solid var(--ei-blue-brand);
	outline-offset: 2px;
}

.ei-form-wrap--card .ei-form__input:focus-visible {
	outline-color: #FFFFFF;
}

select.ei-form__input {
	padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234E4D4D' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-position: right 14px center;
	background-repeat: no-repeat;
	background-size: 18px;
	cursor: pointer;
}

textarea.ei-form__input {
	min-height: 140px;
	resize: vertical;
}

.ei-form__field.is-invalid .ei-form__input {
	border-color: var(--ei-red-dark);
	box-shadow: inset 0 0 0 1px var(--ei-red-dark);
}

.ei-form-wrap--card .ei-form__field.is-invalid .ei-form__input {
	border-color: #FFFFFF;
	box-shadow: 0 0 0 3px var(--ei-footer-hover);
}

.ei-form__error {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	width: fit-content;
	max-width: 100%;
	margin: 0;
	color: var(--ei-red-dark);
	font-size: .9375rem;
	font-weight: 600;
	line-height: 1.35;
}

.ei-form__error::before {
	content: "!";
	display: inline-grid;
	flex: none;
	place-items: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--ei-red-dark);
	color: #FFFFFF;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}

/* On the blue card the message is a high-contrast badge (white on dark red, 8.3:1). */
.ei-form-wrap--card .ei-form__error {
	padding: 6px 10px;
	border-radius: 6px;
	background: var(--ei-red-dark);
	color: #FFFFFF;
}

.ei-form-wrap--card .ei-form__error::before {
	background: #FFFFFF;
	color: var(--ei-red-dark);
}

.ei-form__options {
	display: grid;
	gap: 4px;
}

.ei-form__option,
.ei-form__check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	min-height: 44px;
	padding-top: 10px;
}

.ei-form__option {
	align-items: center;
	padding-top: 0;
}

.ei-form__radio,
.ei-form__checkbox {
	flex: none;
	width: 22px;
	height: 22px;
	margin: 1px 0 0;
	accent-color: var(--ei-red-dark);
	cursor: pointer;
}

.ei-form__option-label,
.ei-form__check .ei-form__label {
	flex: 1 1 auto;
	min-width: 0;
	font-weight: 500;
	cursor: pointer;
}

.ei-form__consent .ei-form__label {
	font-size: .9375rem;
	font-weight: 400;
	line-height: 1.45;
}

.ei-form__actions {
	margin: 6px 0 0;
}

.ei-form__submit {
	width: 100%;
	min-height: 52px;
}

.ei-form-wrap--card .ei-form__submit:hover {
	box-shadow: none;
}

.ei-form.is-submitting .ei-form__submit {
	cursor: progress;
	opacity: .75;
}

.ei-form__summary,
.ei-form__success {
	padding: 16px 20px;
	border-left: 6px solid var(--ei-red-dark);
	border-radius: 10px;
	background: #FFFFFF;
	color: var(--ei-text);
	scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--ei-header-h-stuck) + 32px);
}

.ei-form__summary-title {
	margin: 0;
	color: var(--ei-red-dark);
	font-weight: 700;
}

.ei-form__summary-list {
	margin: 8px 0 0;
	padding-left: 20px;
}

.ei-form .ei-form__summary a {
	color: var(--ei-red-dark);
	font-weight: 600;
}

.ei-form__success {
	border-left-color: var(--ei-teal);
	font-weight: 500;
}

.ei-form__success > :first-child {
	margin-top: 0;
}

.ei-form__success > :last-child {
	margin-bottom: 0;
}

.ei-form__summary:focus-visible,
.ei-form__success:focus-visible {
	outline: 3px solid var(--ei-blue-brand);
	outline-offset: 3px;
}

.ei-form-wrap--card .ei-form__summary:focus-visible,
.ei-form-wrap--card .ei-form__success:focus-visible {
	outline-color: #FFFFFF;
}

.ei-form__captcha {
	max-width: 100%;
	overflow: hidden;
}

@media (min-width: 782px) {
	.ei-form--newsletter {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 20px;
	}

	.ei-form--newsletter > :not(.ei-form__field--email):not(.ei-form__field--first-name) {
		grid-column: 1 / -1;
	}
}

/* ==========================================================================
   10. Page structure glue
   ========================================================================== */

.ei-main {
	position: relative;
}

.ei-main > * + * {
	margin-block-start: 0;
}

/* Overlay header: <main> slides up under the header slot so the first hero sits under the bar,
   exactly like the live site (logo, nav and CTA inside the rounded hero). The hero's side inset
   comes from its own (full) alignment — components.css §8. */
.ei-header-overlay #main {
	margin-top: calc(-1 * (var(--ei-inset) + var(--ei-header-h)));
}

.ei-header-overlay #main > :is(.ei-page-hero, .ei-hero):first-child,
.ei-header-overlay #main > .wp-block-post-content:first-child > :first-child {
	margin-top: var(--ei-inset);
}

/* Text pages (policies, simple pages): readable measure for top-level text blocks; full-width
   sections (alignfull groups, ei/* blocks) keep the 1180px container. */
.ei-page-content.is-layout-constrained > :where(p, h1, h2, h3, h4, h5, h6, ul, ol, dl, blockquote, hr, .wp-block-table, .wp-block-quote, .wp-block-list, .wp-block-details, .wp-block-heading):not(.alignwide):not(.alignfull) {
	max-width: var(--ei-measure);
}

.ei-page-content.is-layout-constrained > :first-child:where(p, h1, h2, h3, h4, h5, h6, ul, ol, dl, blockquote, figure, table, .wp-block-table, .wp-block-image, .wp-block-list, .wp-block-heading, .wp-block-quote, .wp-block-details, .wp-block-columns):not(.alignfull) {
	margin-block-start: var(--ei-section-y);
}

.ei-page-content.is-layout-constrained > :last-child:where(p, h1, h2, h3, h4, h5, h6, ul, ol, dl, blockquote, figure, table, .wp-block-table, .wp-block-image, .wp-block-list, .wp-block-heading, .wp-block-quote, .wp-block-details, .wp-block-columns):not(.alignfull) {
	margin-block-end: var(--ei-section-y);
}

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

.ei-tpl-section + .ei-tpl-section,
.ei-page-content + .ei-tpl-section:where(.ei-tpl-review, .ei-tpl-share) {
	padding-top: 0;
}

.ei-tpl-section--cta {
	padding-top: 0;
}

/* ==========================================================================
   11. Header: top bar, bar, logo, nav + dropdowns, actions, sticky/shrink (DESIGN-SPEC §6)
   ========================================================================== */

.wp-site-blocks > :has(> .ei-site-header) {
	position: relative;
	z-index: 100;
}

/* Sticky (only once theme.js is running, so the bar can never stay transparent over content):
   the template part sticks with the top bar scrolled away; the slot keeps its height → no jump. */
.ei-sticky-ready .wp-site-blocks > :has(> .ei-site-header.is-sticky) {
	position: sticky;
	top: calc(var(--wp-admin--admin-bar--height, 0px) + 8px - var(--ei-topbar-h) - var(--ei-inset));
}

@media screen and (max-width: 600px) {
	.ei-sticky-ready .admin-bar .wp-site-blocks > :has(> .ei-site-header.is-sticky) {
		top: calc(8px - var(--ei-topbar-h) - var(--ei-inset));
	}
}

.ei-site-header {
	position: relative;
	color: #FFFFFF;
	font-family: var(--ei-font-body);
}

/* Top bar (blue): Member Portal · Download App · email — fluid, wraps, never fixed-width (R1). */
.ei-topbar {
	display: none;
	background: var(--ei-blue);
	color: #FFFFFF;
}

@media (min-width: 600px) {
	.ei-topbar {
		display: block;
	}
}

.ei-topbar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0 24px;
	min-height: var(--ei-topbar-h);
	padding-inline: calc(var(--ei-inset) + clamp(12px, 2vw, 28px));
}

.ei-topbar__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ei-topbar__list > li {
	display: flex;
	align-items: center;
}

.ei-topbar__list > li + li::before {
	content: "";
	width: 1px;
	height: 18px;
	margin-right: 20px;
	background: rgba(255, 255, 255, .55);
}

.ei-topbar__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: #FFFFFF;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
}

.ei-topbar__link:hover {
	color: #FFFFFF;
	text-decoration: underline;
}

.ei-topbar__email {
	margin-right: auto;
}

@media (max-width: 781px) {
	.ei-topbar__email {
		display: none; /* in the drawer and the footer on small tablets */
	}
}

/* Header slot: reserves the bar's space for good (sticky shrink never moves the content). */
.ei-header-slot {
	position: relative;
	height: calc(var(--ei-inset) + var(--ei-header-h));
	padding: var(--ei-inset) var(--ei-inset) 0;
	pointer-events: none;
}

.ei-header-bar {
	position: relative;
	height: var(--ei-header-h);
	border-radius: var(--ei-radius-panel);
	pointer-events: auto;
	transition: height .25s ease, background-color .25s ease, box-shadow .25s ease;
}

@media (max-width: 599px) {
	.ei-header-bar {
		border-radius: 28px;
	}
}

.ei-site-header--solid .ei-header-bar {
	background: var(--ei-heading);
}

.ei-header-bar__inner {
	display: flex;
	align-items: center;
	gap: clamp(12px, 1.6vw, 28px);
	height: 100%;
	padding-inline: 12px; /* live: logo 12px and the CTA pill 10px inside the rounded hero edge */
}

.ei-logo {
	display: inline-flex;
	flex: none;
	align-items: center;
	min-height: 44px;
	border-radius: 8px;
	color: #FFFFFF;
	text-decoration: none;
}

.ei-logo__img {
	display: block;
	width: 150px;
	height: auto;
	transition: width .25s ease;
}

@media (min-width: 600px) {
	.ei-logo__img {
		width: 180px;
	}
}

@media (min-width: 1024px) {
	.ei-logo__img {
		width: 200px;
	}
}

/* Fallback (WordPress site logo, usually the colour version) on a dark bar/hero/footer. */
.ei-logo__img--fallback {
	filter: brightness(0) invert(1);
}

.ei-logo__text {
	color: #FFFFFF;
	font-family: var(--ei-font-heading);
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -.02em;
}

/* Primary nav (≥1280px; theme.js collapses it into the drawer if a long menu would not fit). */
.ei-nav {
	display: none;
	flex: 1 1 auto;
	justify-content: center;
	min-width: 0;
}

@media (min-width: 1280px) {
	.ei-nav {
		display: flex;
	}
}

.ei-site-header.is-nav-overflow .ei-nav {
	display: none;
}

.ei-nav .ei-menu {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ei-nav .ei-menu > li {
	position: relative;
	display: flex;
	align-items: center;
}

.ei-nav .ei-menu > li > a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 6px 10px;
	border-radius: 8px;
	color: #FFFFFF;
	font-family: var(--ei-font-heading);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}

@media (min-width: 1440px) {
	.ei-nav .ei-menu > li > a {
		padding-inline: 16px;
		font-size: 1.0625rem;
	}
}

.ei-nav .ei-menu > .menu-item-has-children > a {
	padding-right: 2px;
}

.ei-nav .ei-menu > li > a:hover,
.ei-nav .ei-menu > li > a[aria-current="page"],
.ei-nav .ei-menu > .current-menu-ancestor > a,
.ei-nav .ei-menu > .current-menu-parent > a {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 7px;
}

.ei-nav .ei-menu > li > a[aria-current="page"],
.ei-nav .ei-menu > .current-menu-ancestor > a,
.ei-nav .ei-menu > .current-menu-parent > a {
	text-decoration-color: var(--ei-footer-hover);
}

.ei-submenu-toggle {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 44px; /* 44×44 tap target (R7) */
	height: 44px;
	margin: 0 0 0 -6px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.ei-submenu-toggle .ei-icon {
	transition: transform .2s ease;
}

.ei-submenu-toggle[aria-expanded="true"] .ei-icon {
	transform: rotate(180deg);
}

.ei-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 10;
	min-width: 260px;
	margin: 0;
	padding: 8px;
	list-style: none;
	border-radius: var(--ei-radius-card);
	background: #FFFFFF;
	box-shadow: 0 16px 40px rgba(40, 34, 44, .2);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
	--ei-focus: 3px solid var(--ei-blue-brand);
}

/* Hover bridge so the pointer can travel from the item to its panel. */
.ei-nav .sub-menu::before {
	content: "";
	position: absolute;
	top: -12px;
	right: 0;
	left: 0;
	height: 12px;
}

.ei-nav .ei-menu > li:nth-last-child(-n+2) > .sub-menu {
	right: 0;
	left: auto;
}

.ei-nav .is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity .18s ease, transform .18s ease, visibility 0s;
}

@media (hover: hover) and (pointer: fine) {
	.ei-nav .menu-item-has-children:hover > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: opacity .18s ease, transform .18s ease, visibility 0s;
	}
}

.ei-nav .sub-menu a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 14px;
	border-radius: 10px;
	color: var(--ei-heading);
	font-family: var(--ei-font-heading);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.25;
	text-decoration: none;
}

.ei-nav .sub-menu a:hover,
.ei-nav .sub-menu a[aria-current="page"] {
	background: var(--ei-panel);
	color: var(--ei-red-dark);
}

/* Compact desktop (1280–1439px): slightly smaller logo, item padding and CTA so the full menu fits. */
@media (min-width: 1280px) and (max-width: 1439px) {
	.ei-site-header:not(.is-stuck) .ei-logo__img {
		width: 172px;
	}

	.ei-header-bar__inner {
		gap: 14px;
	}

	.ei-nav .ei-menu > li > a {
		padding-inline: 8px;
	}

	.ei-header-cta {
		padding-inline: 22px;
	}
}

/* Actions: CTA (≥600px; on phones it lives in the drawer + mobile CTA bar) + menu toggle. */
.ei-header-actions {
	display: flex;
	flex: none;
	align-items: center;
	gap: 10px;
	margin-left: auto;
}

.ei-header-cta {
	display: none;
}

@media (min-width: 600px) {
	.ei-header-cta {
		display: inline-flex;
	}
}

.ei-site-header--minimal .ei-header-cta {
	display: inline-flex;
}

@media (max-width: 599px) {
	.ei-site-header--minimal .ei-header-cta {
		min-height: 44px;
		padding: 12px 18px;
		font-size: 1rem;
	}
}

.ei-header-cta:hover {
	box-shadow: none;
}

.ei-menu-toggle {
	display: none;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .14);
	color: #FFFFFF;
	cursor: pointer;
	transition: background-color .2s ease;
}

.ei-menu-toggle:hover {
	background: rgba(255, 255, 255, .26);
}

.ei-js .ei-menu-toggle {
	display: inline-flex;
}

.ei-menu-fallback {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0 16px;
	border-radius: var(--ei-radius-pill);
	background: rgba(255, 255, 255, .14);
	color: #FFFFFF;
	font-weight: 600;
	text-decoration: none;
}

.ei-js .ei-menu-fallback {
	display: none;
}

@media (min-width: 1280px) {
	.ei-js .ei-site-header:not(.is-nav-overflow) .ei-menu-toggle,
	.ei-menu-fallback {
		display: none;
	}
}

/* Stuck: fixed dark bar with blur, 88 → 64px, logo 200 → 150px. */
.ei-site-header.is-stuck .ei-header-bar {
	height: var(--ei-header-h-stuck);
	background: rgba(78, 77, 77, .92);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
	-webkit-backdrop-filter: saturate(150%) blur(14px);
	backdrop-filter: saturate(150%) blur(14px);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.ei-site-header.is-stuck .ei-header-bar {
		background: var(--ei-heading);
	}
}

.ei-site-header.is-stuck .ei-logo__img {
	width: 130px;
}

@media (min-width: 1024px) {
	.ei-site-header.is-stuck .ei-logo__img {
		width: 150px;
	}
}

.ei-site-header.is-stuck .ei-header-cta {
	min-height: 44px;
	padding-block: 12px;
}

.ei-site-header.is-stuck .ei-menu-toggle {
	width: 44px;
	height: 44px;
}

.ei-sticky-sentinel {
	position: absolute;
	top: 120px;
	left: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
	visibility: hidden;
}

/* ==========================================================================
   12. Drawer (mobile/tablet menu): right panel, 85vw max 380px, 48px rows
   ========================================================================== */

html.ei-scroll-lock {
	overflow: hidden;
}

html.ei-scroll-lock body {
	padding-right: var(--ei-scrollbar, 0px);
}

.ei-drawer {
	position: fixed;
	inset: 0;
	z-index: 1000;
	color: var(--ei-heading);
	--ei-focus-color: var(--ei-blue-brand);
	--ei-focus: 3px solid var(--ei-blue-brand);
}

.ei-drawer__overlay {
	position: absolute;
	inset: 0;
	background: rgba(38, 38, 38, .55);
	opacity: 0;
	transition: opacity .3s ease;
}

.ei-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	width: min(85vw, 380px);
	padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
	overflow-y: auto;
	overscroll-behavior: contain;
	background: #FFFFFF;
	box-shadow: -12px 0 40px rgba(0, 0, 0, .2);
	transform: translateX(100%);
	transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}

.ei-drawer.is-open .ei-drawer__overlay {
	opacity: 1;
}

.ei-drawer.is-open .ei-drawer__panel {
	transform: none;
}

.ei-drawer__panel:focus {
	outline: none;
}

.ei-drawer__head {
	position: sticky;
	top: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 72px;
	padding: calc(10px + env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 10px 20px;
	border-bottom: 1px solid #ECE7F1;
	background: #FFFFFF;
}

.ei-drawer__title {
	display: flex;
	align-items: center;
	margin: 0;
	color: var(--ei-heading);
	font-family: var(--ei-font-heading);
	font-size: 1.25rem;
	font-weight: 600;
}

.ei-drawer__logo {
	width: 150px;
	height: auto;
}

.ei-drawer__close {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--ei-panel);
	color: var(--ei-heading);
	cursor: pointer;
}

.ei-drawer__close:hover {
	background: #E4E0EA;
}

.ei-drawer__nav .ei-menu {
	margin: 0;
	padding: 8px 0;
	list-style: none;
}

.ei-drawer__nav .ei-menu > li {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	border-bottom: 1px solid #F0ECF4;
}

.ei-drawer__nav a {
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: 8px 20px;
	color: var(--ei-heading);
	font-family: var(--ei-font-heading);
	font-size: 1.125rem;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
}

.ei-drawer__nav a:hover {
	color: var(--ei-red-dark);
	text-decoration: underline;
}

.ei-drawer__nav a[aria-current="page"] {
	color: var(--ei-red-dark);
	font-weight: 600;
	box-shadow: inset 4px 0 0 var(--ei-red-dark);
}

.ei-drawer__nav .ei-submenu-toggle {
	width: 48px;
	height: 48px;
	margin: 0 8px 0 0;
	border-radius: 50%;
	color: var(--ei-heading);
}

.ei-drawer__nav .ei-submenu-toggle:hover {
	background: var(--ei-panel);
}

.ei-drawer__nav .sub-menu {
	display: none;
	grid-column: 1 / -1;
	margin: 0;
	padding: 4px 0 8px;
	list-style: none;
	background: #F8F6FB;
}

.ei-drawer__nav .is-open > .sub-menu {
	display: block;
}

.ei-drawer__nav .sub-menu a {
	padding-left: 36px;
	font-size: 1.0625rem;
}

.ei-drawer__cta {
	padding: 20px 20px 4px;
}

.ei-drawer__utility {
	margin: 12px 0 0;
	padding: 0 8px;
	list-style: none;
}

.ei-drawer__utility-link {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	padding: 8px 12px;
	border-radius: 12px;
	color: var(--ei-heading);
	font-size: 1rem;
	font-weight: 500;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.ei-drawer__utility-link .ei-icon {
	color: var(--ei-blue);
}

.ei-drawer__utility-link:hover {
	background: var(--ei-panel);
	color: var(--ei-red-dark);
}

/* ==========================================================================
   13. Page hero (inner pages): radius 40, inset 20, min-height 391, overlay .70
   ========================================================================== */

.ei-page-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 320px;
	margin: var(--ei-inset) var(--ei-inset) 0;
	padding: calc(var(--ei-header-h) + 24px) var(--ei-gutter) 22px;
	overflow: hidden;
	border-radius: 28px;
	background: linear-gradient(135deg, var(--ei-dark-section) 0%, var(--ei-dark) 100%);
	color: #FFFFFF;
	text-align: center;
}

@media (min-width: 600px) {
	.ei-page-hero {
		border-radius: var(--ei-radius-panel);
	}
}

@media (min-width: 782px) {
	.ei-page-hero {
		min-height: 391px;
		padding-bottom: clamp(18px, 2vw, 28px);
	}
}

.ei-page-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.ei-page-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	/* Live overlay (.70) + a light bottom scrim behind the title/subtitle (17px text ≥ 4.5:1 — R13). */
	background: linear-gradient(to top, rgba(0, 0, 0, .2) 0%, rgba(0, 0, 0, .12) 45%, rgba(0, 0, 0, 0) 75%), rgba(78, 77, 77, var(--ei-hero-overlay, .7));
}

/* Phones + small tablets: eyebrow/subtitle (17px) sit on a larger share of the photo — overlay at
   least .76 (≥ 4.5:1 on the lightest hero photos). */
@media (max-width: 781px) {
	.ei-page-hero::after {
		background: linear-gradient(to top, rgba(0, 0, 0, .2) 0%, rgba(0, 0, 0, .12) 45%, rgba(0, 0, 0, 0) 75%), rgba(78, 77, 77, max(var(--ei-hero-overlay, .7), .76));
	}
}

.ei-page-hero__inner {
	width: 100%;
	max-width: var(--ei-container);
	margin-inline: auto;
}

.ei-page-hero__eyebrow {
	margin: 0 0 .625rem;
	color: #FFFFFF;
}

.ei-page-hero__title {
	margin: 0;
	color: #FFFFFF;
	font-size: var(--ei-fs-h1);
	line-height: 1.02;
}

.ei-page-hero__subtitle {
	max-width: 1000px;
	margin: 14px auto 0;
	color: #FFFFFF;
	font-size: 1.0625rem; /* live Contact hero lead: 17px semi-bold */
	font-weight: 600;
	line-height: 1.5;
}

/* Taller, vertically centred variant (live Contact hero: ~450px, title mid-panel). */
@media (min-width: 782px) {
	.ei-page-hero.ei-page-hero--tall {
		justify-content: center;
		min-height: 450px;
		padding-bottom: 40px;
	}
}

.ei-page-hero__actions {
	justify-content: center;
	margin-top: 24px;
}

/* ==========================================================================
   14. Footer: #4E4D4D panel, radius 40, inset 30 (20 / radius 28 on phones — R12)
   ========================================================================== */

.ei-footer {
	margin: 20px 30px 30px;
	padding: clamp(40px, 6vw, 80px) clamp(20px, 6.25vw, 90px) clamp(28px, 4vw, 52px);
	border-radius: var(--ei-radius-panel);
	background: var(--ei-heading);
	color: #FFFFFF;
	font-family: var(--ei-font-body);
}

@media (max-width: 599px) {
	.ei-footer {
		margin: 20px max(20px, env(safe-area-inset-left, 0px)) 20px max(20px, env(safe-area-inset-right, 0px));
		border-radius: 28px;
	}
}

.ei-footer__inner {
	max-width: var(--ei-container);
	margin-inline: auto;
}

.ei-footer a {
	color: #FFFFFF;
}

.ei-footer a:not(.ei-btn):hover {
	color: var(--ei-footer-hover);
	text-decoration: underline;
}

.ei-footer__top {
	display: grid;
	gap: 28px;
	align-items: center;
	padding-bottom: clamp(28px, 4vw, 40px);
	border-bottom: 1px solid rgba(255, 255, 255, .22);
}

/* Live (1440): rows and rules span 130–1310px (the 1180px container); top row = three equal
   columns — heading (wraps in ~367px), centred button, logo centred in the last column. */
@media (min-width: 1024px) {
	.ei-footer__top {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 20px;
	}
}

.ei-footer__heading {
	max-width: 11.5em;
	margin: 0;
	color: #FFFFFF;
	font-size: clamp(1.75rem, 1.35rem + 1.3vw, 2.5rem);
	font-weight: 600;
	line-height: 1;
	letter-spacing: var(--ei-ls-heading);
}

@media (min-width: 1024px) {
	.ei-footer__heading {
		max-width: 9.15em; /* live: 367px at 40px → "The NEXT / GENERATION of / Mental / Performance / Training" */
	}
}

/* Live (390): 30px on 35px lines → "The NEXT / GENERATION of / Mental Performance / Training". */
@media (max-width: 599px) {
	.ei-footer__heading {
		font-size: 1.875rem;
		line-height: 1.17;
	}
}

.ei-footer__cta {
	display: flex;
	justify-content: center;
}

.ei-footer__cta-btn {
	text-transform: uppercase;
}

.ei-footer__logo {
	display: inline-flex;
	justify-self: center;
	align-items: center;
	min-height: 44px;
	border-radius: 8px;
	text-decoration: none;
}


.ei-footer__logo-img {
	display: block;
	width: min(264px, 70vw);
	height: auto;
}

.ei-footer__main {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 32px;
	padding-block: clamp(28px, 4vw, 44px);
	border-bottom: 1px solid rgba(255, 255, 255, .22);
}

@media (min-width: 600px) {
	.ei-footer__main {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 36px 32px;
	}
}

@media (min-width: 1024px) {
	.ei-footer__main {
		grid-template-columns: minmax(0, 1.8fr) repeat(3, minmax(0, 1fr));
		gap: 20px;
	}
}

.ei-footer__desc {
	max-width: 354px; /* live: three lines */
	margin: 0 0 20px;
	color: #FFFFFF;
	font-size: 1.0625rem;
	line-height: 1.5;
}

.ei-footer__title {
	margin: 0 0 10px;
	color: #FFFFFF;
	font-size: var(--ei-fs-h3-lg);
	font-weight: 600;
	line-height: 1.05;
}

.ei-footer .ei-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ei-footer__col .ei-menu a,
.ei-footer__contact-link {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding-block: 4px;
	color: #FFFFFF;
	font-family: var(--ei-font-heading);
	font-size: 1.0625rem;
	font-weight: 400;
	line-height: 1.3;
	text-decoration: none;
}

/* Child items (live: ACL / Soccer under the Coaching parent) indent 20px and keep 44px rows. */
.ei-footer__col .ei-menu .sub-menu {
	margin: 0;
	padding: 0;
	padding-inline-start: 20px;
	list-style: none;
}

.ei-footer__col .ei-menu a[aria-current="page"] {
	text-decoration: underline;
	text-decoration-color: var(--ei-footer-hover);
	text-underline-offset: 5px;
}

.ei-footer__contact {
	margin: 14px 0 0;
	padding: 14px 0 0;
	list-style: none;
	border-top: 1px solid rgba(255, 255, 255, .16);
}

/* Contact lines (e-mail + location) use the 15px contact size: the address (228px) then fits the
   233px Resources column on one line once the container is at full width (≥ 1420px). Narrower
   columns break it only after the user name (<wbr> before "@"), never inside the domain; phones
   (one column) keep a break-anywhere safety net for very long addresses. */
.ei-footer__contact-link {
	font-size: .9375rem;
}

@media (max-width: 599px) {
	.ei-footer__contact-link {
		overflow-wrap: anywhere;
	}
}

@media (min-width: 1420px) {
	.ei-footer__contact-link {
		white-space: nowrap;
	}
}

.ei-footer__location {
	padding-block: 8px;
	color: rgba(255, 255, 255, .9);
	font-size: .9375rem;
	line-height: 1.45;
}

.ei-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 4px 28px;
	padding-top: 20px;
	font-size: 1rem;
}

.ei-footer--minimal .ei-footer__bottom {
	padding-top: 0;
}

.ei-footer__copy {
	margin: 0;
	color: #FFFFFF;
}

.ei-footer__legal {
	flex: 1 1 auto;
}

.ei-footer__legal .ei-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0 22px;
}

.ei-footer__legal a,
.ei-footer__email {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	text-decoration: none;
}

.ei-footer__email {
	overflow-wrap: anywhere;
}

.ei-footer--minimal {
	padding-block: 24px;
}

@media (max-width: 599px) {
	.ei-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ==========================================================================
   15. Social icons: 44px brand-colour circles
   ========================================================================== */

.ei-social {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ei-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--ei-heading);
	color: #FFFFFF;
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease;
}

.ei-footer .ei-social__link:hover,
.ei-social__link:hover {
	color: #FFFFFF;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, .55);
	transform: translateY(-2px);
}

.ei-social__link--facebook {
	background: #3B5998;
}

.ei-social__link--instagram {
	background: #262626;
}

.ei-social__link--youtube {
	background: #CD201F;
}

.ei-social__link--linkedin {
	background: #0077B5;
}

.ei-social__link--tiktok,
.ei-social__link--x {
	background: #000000;
}

.ei-social__link--podcast {
	background: #6B3FA0;
}

/* ==========================================================================
   16. Pre-footer CTA band + mobile CTA bar
   ========================================================================== */

.ei-prefooter {
	width: min(100% - 2 * var(--ei-gutter), var(--ei-container));
	margin: var(--ei-section-y) auto 0;
}

.ei-mobile-cta {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 90;
	padding: 10px max(var(--ei-gutter), env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(var(--ei-gutter), env(safe-area-inset-left, 0px));
	background: rgba(255, 255, 255, .96);
	box-shadow: 0 -8px 24px rgba(40, 34, 44, .14);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	transition: transform .25s ease, visibility 0s linear 0s;
}

.ei-mobile-cta__inner {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
	gap: 10px;
	max-width: 560px;
	margin-inline: auto;
}

.ei-mobile-cta .ei-btn {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	font-size: 1rem;
	white-space: nowrap;
}

.ei-mobile-cta.is-hidden,
html.ei-drawer-open .ei-mobile-cta {
	visibility: hidden;
	transform: translateY(110%);
	transition: transform .25s ease, visibility 0s linear .25s;
}

@media (min-width: 782px) {
	.ei-mobile-cta {
		display: none;
	}
}

/* ==========================================================================
   17. Template layouts: Resources hub, topic archive, query cards, pagination, articles,
       search, 404, videos
   ========================================================================== */

.ei-hub-archive__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 32px;
	margin-bottom: clamp(24px, 3vw, 36px);
}

.ei-hub-archive__title {
	margin: 0;
}

.ei-topic-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
}

.ei-topic-nav__label {
	margin: 0;
	color: var(--ei-heading);
	font-weight: 600;
}

.ei-topic-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ei-topic-chips li {
	margin: 0;
}

.ei-topic-chips a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 18px;
	border: 1px solid var(--ei-border-soft);
	border-radius: var(--ei-radius-pill);
	background: #FFFFFF;
	color: var(--ei-heading);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.ei-topic-chips a:hover {
	border-color: var(--ei-blue);
	color: var(--ei-blue);
}

.ei-topic-chips .current-cat > a,
.ei-topic-chips a[aria-current="page"] {
	border-color: var(--ei-blue);
	background: var(--ei-blue);
	color: #FFFFFF;
}

/* Query cards (same look as the ei/latest-articles cards). */
.ei-query__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--ei-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 600px) {
	.ei-query__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.ei-query__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.ei-query__grid > li {
	display: flex;
	margin: 0;
}

.ei-query-card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	overflow: hidden;
	border: .8px solid var(--ei-border-soft);
	border-radius: var(--ei-radius-card);
	background: #FFFFFF;
	transition: box-shadow .25s ease, transform .25s ease;
}

.ei-query-card:hover {
	box-shadow: 0 10px 30px rgba(40, 34, 44, .12);
	transform: translateY(-2px);
}

.ei-query-card:focus-within {
	box-shadow: 0 0 0 3px var(--ei-blue-brand);
}

/* No flow-layout gap between the image and the card body (same rhythm as ei/latest-articles). */
.ei-query-card > .ei-query-card__body,
.ei-query-card > * + * {
	margin-block-start: 0;
}

.ei-query-card__media {
	aspect-ratio: 16 / 10;
	margin: 0;
	overflow: hidden;
	background: var(--ei-panel);
}

.ei-query-card__media img,
.ei-query-card__media a {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ei-query-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 20px 22px 22px;
}

.ei-query-card__body > * {
	margin: 0;
}

.ei-query-card__topic {
	position: relative;
	z-index: 2;
	color: var(--ei-red-dark);
	font-size: var(--ei-fs-small);
	font-weight: 600;
	line-height: 1.3;
}

.ei-query-card__topic a {
	color: inherit;
	text-decoration: none;
}

.ei-query-card__topic a:hover {
	text-decoration: underline;
}

.ei-query-card__title {
	margin-top: 6px !important;
	font-size: var(--ei-fs-h3);
	line-height: 1.15;
}

.ei-query-card__title a {
	color: var(--ei-heading);
	text-decoration: none;
}

.ei-query-card__title a:focus-visible {
	outline: none;
}

.ei-query-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.ei-query-card__excerpt {
	margin-top: 10px !important;
	font-size: .9375rem;
}

.ei-query-card__excerpt p {
	margin: 0;
}

.ei-query-card__meta {
	gap: 0 8px;
	margin-top: auto !important;
	padding-top: 14px;
	color: var(--ei-heading);
	font-size: var(--ei-fs-small);
}

.ei-query-card__meta > * + *::before {
	content: "·";
	margin-right: 8px;
}

.ei-empty {
	margin: 0;
	padding: 28px;
	border: 1px dashed var(--ei-border-soft);
	border-radius: var(--ei-radius-card);
	background: #FFFFFF;
	color: var(--ei-heading);
	text-align: center;
}

/* Pagination */
.ei-pagination {
	gap: 8px;
	margin-top: clamp(28px, 4vw, 44px);
}

.ei-pagination .page-numbers,
.ei-pagination .wp-block-query-pagination-previous,
.ei-pagination .wp-block-query-pagination-next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	margin: 0;
	padding: 0 14px;
	border-radius: var(--ei-radius-pill);
	color: var(--ei-heading);
	font-weight: 600;
	text-decoration: none;
}

.ei-pagination a.page-numbers,
.ei-pagination .wp-block-query-pagination-previous,
.ei-pagination .wp-block-query-pagination-next {
	border: 1px solid var(--ei-border-soft);
	background: #FFFFFF;
}

.ei-pagination a:hover {
	border-color: var(--ei-blue);
	color: var(--ei-blue);
}

.ei-pagination .page-numbers.current {
	background: var(--ei-heading);
	color: #FFFFFF;
}

/* Single article (AEO): readable ~760px column. */
.ei-article {
	padding-top: clamp(28px, 4vw, 48px);
}

.ei-article__header > * {
	margin-block: 0;
}

.ei-article__header > * + * {
	margin-top: 14px;
}

.ei-article__title {
	font-size: var(--ei-fs-h1);
	line-height: 1.04;
}

.ei-article__lead {
	color: var(--ei-heading);
	font-size: var(--ei-fs-lead);
	line-height: 1.5;
}

.ei-article__media {
	width: min(100% - 2 * var(--ei-gutter), var(--ei-container));
	margin: clamp(24px, 4vw, 40px) auto 0;
	overflow: hidden;
	border-radius: var(--ei-radius-card);
}

.ei-article__media img {
	display: block;
	width: 100%;
	max-height: 640px;
	object-fit: cover;
}

.ei-article__content {
	padding-block: clamp(28px, 4vw, 44px) 0;
	font-size: 1.125rem;
	line-height: 1.65;
}

/* Article headings: a reading scale (same as the legal pages), also inside the AEO body group. */
.ei-article__content :is(h2, h3):where(.wp-block-heading) {
	margin-top: 1.6em;
	margin-bottom: .5em;
}

.ei-article__content h2.wp-block-heading {
	font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
	line-height: 1.1;
}

.ei-article__content h3.wp-block-heading {
	font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem);
	line-height: 1.2;
}

.ei-article__footer {
	padding-block: clamp(28px, 4vw, 44px) 0;
}

/* The player is the last block of its column (core zeroes its bottom margin): the section keeps
   the gap to the CTA band below. */
.ei-video-single {
	padding-top: clamp(24px, 4vw, 40px);
	padding-bottom: var(--ei-section-y);
}

/* Search results + 404 */
.ei-search-form .wp-block-search__inside-wrapper {
	gap: 8px;
	padding: 0;
	border: 0;
}

.ei-search-form .wp-block-search__input {
	min-height: 52px;
	padding: 12px 22px;
	border: 1px solid #C5BFCB;
	border-radius: var(--ei-radius-pill);
	background: #FFFFFF;
	color: var(--ei-text);
	font-size: max(16px, 1.0625rem);
}

.ei-search-form .wp-block-search__button {
	min-height: 52px;
	margin: 0;
	padding-inline: 26px;
}

.ei-results {
	margin: clamp(24px, 4vw, 36px) 0 0;
	padding: 0;
	list-style: none;
}

.ei-results > li {
	margin: 0;
}

.ei-result {
	padding: 22px 0;
	border-bottom: 1px solid #E7E2EC;
}

.ei-result__title {
	margin: 0 0 6px;
	font-size: var(--ei-fs-h3);
	line-height: 1.2;
}

.ei-result__title a {
	display: inline-block;
	padding-block: 9px; /* 44px tap target (R7) */
	color: var(--ei-heading);
	text-decoration: none;
}

.ei-result__title a:hover {
	color: var(--ei-red-dark);
	text-decoration: underline;
}

.ei-result__excerpt,
.ei-result__excerpt p {
	margin: 0;
}

.ei-tpl-404__title {
	margin: 0 0 18px;
	font-size: var(--ei-fs-h3-lg);
	text-align: center;
}

/* ==========================================================================
   18. Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
		transition-delay: 0s !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
	}
}

/* ==========================================================================
   19. Print
   ========================================================================== */

@media print {
	.ei-topbar,
	.ei-nav,
	.ei-header-actions,
	.ei-drawer,
	.ei-mobile-cta,
	.ei-prefooter,
	.skip-link,
	.ei-footer__top,
	.ei-social,
	.ei-pagination {
		display: none !important;
	}

	body {
		padding: 0 !important;
		background: #FFFFFF;
		color: #000000;
	}

	.wp-site-blocks > * {
		position: static !important;
	}

	.ei-header-overlay #main {
		margin-top: 0;
	}

	.ei-header-slot {
		height: auto;
		padding: 0;
	}

	.ei-header-bar {
		height: auto;
		background: none !important;
	}

	.ei-page-hero {
		min-height: 0;
		margin: 0;
		padding: 12px 0;
		background: none;
		color: #000000;
	}

	.ei-page-hero::after,
	.ei-page-hero__bg {
		display: none;
	}

	.ei-page-hero__title,
	.ei-page-hero__subtitle {
		color: #000000;
	}

	.ei-footer {
		margin: 24px 0 0;
		padding: 12px 0 0;
		border-top: 1px solid #000000;
		border-radius: 0;
		background: none;
		color: #000000;
	}

	.ei-footer a,
	.ei-footer__copy,
	.ei-footer__title,
	.ei-footer__desc {
		color: #000000;
	}

	.ei-page-content a[href^="http"]::after {
		content: " (" attr(href) ")";
		font-size: .85em;
	}
}
