/**
 * Iron Forge — theme styles that theme.json can't express.
 * Tokens come from theme.json (--wp--preset--*); keep raw values out of here.
 */

:root {
	--ife-red: var(--wp--preset--color--red);
	--ife-red-dark: var(--wp--preset--color--red-dark);
	--ife-black: var(--wp--preset--color--black);
	--ife-line: var(--wp--preset--color--line);
	--ife-display: var(--wp--preset--font-family--display);
	--ife-body: var(--wp--preset--font-family--body);
	--ife-gutter: var(--wp--style--root--padding-left, clamp(20px, 4vw, 56px));
	--ife-content: var(--wp--style--global--content-size, 1328px);
	/* Offset for sticky elements: admin bar + header. The header height is kept current by assets/js/theme.js. */
	--ife-admin-bar: 0px;
	--ife-header-h: 62px;
}

.admin-bar { --ife-admin-bar: var(--wp-admin--admin-bar--height, 32px); }

/* The canvas behind the page, which is what iOS Safari paints into the strip
   under the status bar and into any overscroll. Left to itself it takes the
   body's white and shows as a band above the black header, so it is set to
   the header's black here; body still paints its own white over its own box.
   Works even where the theme-color meta tag is ignored. */
html { background-color: #0A0A0B; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

[id] { scroll-margin-top: calc(var(--ife-admin-bar) + var(--ife-header-h)); }

::selection { background: var(--ife-red); color: #fff; }

/* Top-level blocks sit flush; sections carry their own spacing. */
.wp-site-blocks > * { margin-block-start: 0; }
.wp-site-blocks > main > * { margin-block-start: 0; }

/* ------------------------------------------------------------------ */
/* Measures (readable line lengths)                                    */
/* ------------------------------------------------------------------ */
.ife-measure-xs { max-width: 340px; }
.ife-measure-s { max-width: 400px; }
.ife-measure { max-width: 500px; }
.ife-measure-l { max-width: 540px; }
.ife-measure-xl { max-width: 840px; }

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */
/* The part wrapper is a plain div; let the header stick to the page, not to the wrapper. */
.ife-site-header { display: contents; }

.ife-topbar p {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.16em;
	line-height: 1.5;
	text-transform: uppercase;
}
.ife-topbar__text { flex: 1 1 260px; min-width: 0; }
.ife-topbar__links { display: flex; gap: 24px; }
.ife-topbar a { color: var(--wp--preset--color--steel); }
.ife-topbar a:hover { color: #fff; }

.ife-header {
	position: sticky;
	top: var(--ife-admin-bar);
	z-index: 60;
	/* Fully opaque. No backdrop-filter here: it makes the header a containing
	   block for fixed children, which traps the mobile menu overlay inside the
	   header instead of letting it fill the screen. Without the blur, even the
	   3% transparency this used to carry was not a frosted effect, just the
	   page showing through: light sections scrolling under the bar ghosted
	   their text across the logo and nav. */
	background: rgb(10, 10, 11) !important;
}
.ife-header__inner { row-gap: 12px !important; }

/* Brand: the logo lockup image, so no web font ever sits beside the logo's own lettering. */
.ife-brand { flex-shrink: 0; margin: 0; }
/* The lockup is the wordmark alone (no IF monogram), so it is wider than it is
   tall; 170px keeps the type the size it was while the header height barely moves. */
.ife-brand img { display: block; width: 170px !important; max-width: 52vw; height: auto; }

.ife-nav { margin-left: auto; }
.ife-nav .wp-block-navigation-item__content:hover,
.ife-nav .current-menu-item > .wp-block-navigation-item__content { color: var(--wp--preset--color--red-bright, #FA3A41); }
.ife-nav .wp-block-navigation__submenu-container {
	background: var(--ife-black) !important;
	border: 1px solid var(--wp--preset--color--graphite) !important;
	padding: 8px 0;
	min-width: 230px !important;
}
.ife-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 9px 18px; }
.ife-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 24px var(--ife-gutter);
}
.ife-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	gap: 18px;
	font-size: 15.5px;
	/* The desktop bar is right-aligned; a full-screen menu reads far better
	   ranged left, where every item starts on the same edge. */
	align-items: flex-start !important;
	text-align: left;
}
.ife-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
.ife-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	align-items: flex-start !important;
	text-align: left;
}
.ife-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item,
.ife-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	align-self: flex-start;
	text-align: left;
}
/* The dropdown's border and panel background belong to the desktop bar, not
   to a full-screen menu where the group is already obvious from the indent. */
.ife-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	background: transparent !important;
	border: 0 !important;
	padding: 6px 0 6px 18px;
	min-width: 0 !important;
}
.ife-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 9px 0; }

/* WordPress puts has-modal-open on <html> while the menu is open. */
.has-modal-open .ife-quote-fab { display: none; }
.ife-nav .wp-block-navigation__responsive-container-open svg,
.ife-nav .wp-block-navigation__responsive-container-close svg { fill: #fff; }

/* Core's toggle is two thin rules and nothing else, which nobody reads as a
   menu. Replace it with a labelled three-bar button. */
.ife-nav .wp-block-navigation__responsive-container-open {
	gap: 9px;
	padding: 0 2px;
	color: #fff;
	font-family: var(--wp--preset--font-family--body, Roboto, system-ui, sans-serif);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}
.ife-nav .wp-block-navigation__responsive-container-open::before { content: "Menu"; }
.ife-nav .wp-block-navigation__responsive-container-open svg { display: none; }
.ife-nav .wp-block-navigation__responsive-container-open::after {
	content: "";
	width: 24px;
	height: 14px;
	background-image:
		linear-gradient(currentColor, currentColor),
		linear-gradient(currentColor, currentColor),
		linear-gradient(currentColor, currentColor);
	background-size: 24px 2px;
	background-position: left top, left center, left bottom;
	background-repeat: no-repeat;
}
.ife-nav .wp-block-navigation__responsive-container-open:hover { color: var(--wp--preset--color--red-bright, #FA3A41); }

.ife-header__phone { margin: 0; white-space: nowrap; }
.ife-header__phone a {
	font-family: var(--ife-body);
	font-size: 15px;
	font-weight: 700;
	color: #fff;
}
.ife-header__phone a:hover { color: var(--ife-red); }
.ife-button-compact .wp-block-button__link { padding: 12px 20px; font-size: 12.5px; white-space: nowrap; }

@media (max-width: 720px) {
	.ife-topbar .ife-topbar__links,
	.ife-topbar__extra { display: none; }
	.ife-header .ife-header__phone { display: none; }
}
/* Phones: keep the sticky header to one row; the hero CTA and quote bar cover this action. */
@media (max-width: 560px) {
	.ife-header .ife-header__actions { display: none; }
}

/* ------------------------------------------------------------------ */
/* Text styles                                                         */
/* ------------------------------------------------------------------ */
.is-style-eyebrow {
	font-family: var(--ife-body);
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.18em;
	line-height: 1.5;
	text-transform: uppercase;
	color: var(--wp--preset--color--grey);
}
.is-style-eyebrow strong {
	margin-right: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: var(--ife-red);
}
.is-style-section-dark .is-style-eyebrow:not(.has-text-color),
.wp-block-cover .is-style-eyebrow:not(.has-text-color) { color: var(--wp--preset--color--steel); }

.is-style-kicker {
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.2em;
	line-height: 1.5;
	text-transform: uppercase;
	color: var(--ife-red);
}

.ife-label {
	margin: 0;
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--steel);
}

.ife-declaration {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1.4;
	text-transform: uppercase;
	color: #fff;
}
.ife-declaration::before {
	content: "";
	flex: 0 0 18px;
	height: 3px;
	background: var(--ife-red);
	transform: skewX(-24deg);
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */
.wp-block-button__link { transition: background-color .16s ease, color .16s ease, border-color .16s ease; }

.wp-block-button.is-style-outline-light .wp-block-button__link {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.45);
	color: #fff;
}
.wp-block-button.is-style-outline-light .wp-block-button__link:hover { background: #fff; color: var(--ife-black); }

.wp-block-button.is-style-outline-dark .wp-block-button__link {
	background: transparent;
	border: 1px solid #DEDEE3;
	color: var(--ife-black);
}
.wp-block-button.is-style-outline-dark .wp-block-button__link:hover { border-color: var(--ife-black); color: var(--ife-black); }

.wp-block-button.is-style-dark .wp-block-button__link { background: var(--ife-black); color: #fff; }
.wp-block-button.is-style-dark .wp-block-button__link:hover { background: var(--ife-red); color: #fff; }

.wp-block-button.is-style-text-arrow .wp-block-button__link {
	padding: 0 0 4px;
	background: transparent;
	border-bottom: 2px solid var(--ife-red);
	border-radius: 0;
	color: var(--ife-black);
}
.wp-block-button.is-style-text-arrow .wp-block-button__link:hover { background: transparent; color: var(--ife-red); }

/* Bands flip the primary button to white on hover, as in the mockup. */
.is-style-band .wp-block-button:not([class*="is-style-"]) .wp-block-button__link:hover { background: #fff; color: var(--ife-red); }

/* ------------------------------------------------------------------ */
/* Photo bands and hero                                                */
/* ------------------------------------------------------------------ */
/* Align band/hero text with the 1440px grid even though the cover is full-bleed. */
.ife-hero,
.is-style-band {
	padding-left: max(var(--ife-gutter), calc((100% - var(--ife-content)) / 2)) !important;
	padding-right: max(var(--ife-gutter), calc((100% - var(--ife-content)) / 2)) !important;
}
.ife-band-pair .is-style-band { padding-left: clamp(24px, 3.4vw, 48px) !important; padding-right: clamp(24px, 3.4vw, 48px) !important; }

.is-style-band .wp-block-cover__inner-container { max-width: 490px; }
.ife-band--bottom .wp-block-cover__inner-container { max-width: 420px; }
.ife-hero .wp-block-cover__inner-container { width: 100%; max-width: none; }

.is-style-band h3 { font-size: clamp(28px, 4vw, 44px); }
.ife-band--bottom h3 { font-size: var(--wp--preset--font-size--x-large); }

/* Two bands side by side; stack below ~700px. Overrides the grid layout's auto-fill. */
.ife-band-pair.ife-band-pair {
	grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
	gap: 0;
}
.ife-band-pair > * { margin: 0 !important; }

@media (max-width: 720px) {
	.ife-hero { min-height: auto !important; padding-top: 72px !important; padding-bottom: 52px !important; }
	.is-style-band { min-height: 54vh !important; }
	.ife-band--right { justify-content: flex-start !important; }
	.ife-band--right .has-text-align-right { text-align: left; }
	.ife-band--right .wp-block-buttons { justify-content: flex-start; }
}

/* ------------------------------------------------------------------ */
/* Section pieces                                                      */
/* ------------------------------------------------------------------ */
.is-style-feature { gap: 6px !important; }
.is-style-feature h4 { margin: 0; }
.is-style-feature p { margin: 0; line-height: 1.55; color: var(--wp--preset--color--grey); }

/* Two overlapping photos */
.is-style-image-stack { position: relative; min-height: 440px; }
.is-style-image-stack > .wp-block-image { position: absolute; margin: 0; }
.is-style-image-stack > .wp-block-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.is-style-image-stack .ife-stack__back { top: 0; right: 0; width: 82%; height: 82%; background: #F2F2F5; }
.is-style-image-stack .ife-stack__front {
	bottom: 0;
	left: 0;
	width: 48%;
	height: 50%;
	border: 6px solid #fff;
	box-shadow: 0 24px 58px rgba(10, 10, 11, 0.18);
}

.ife-swatch { width: 32px; height: 32px; }
.ife-swatch { outline: 1px solid rgba(255, 255, 255, 0.14); outline-offset: -1px; }

.is-style-callout { border-radius: 0; }
.is-style-callout h3 { margin: 0; }

/* Process */
@media (min-width: 782px) {
	.wp-block-column.is-style-sticky {
		position: sticky;
		top: calc(var(--ife-admin-bar) + var(--ife-header-h) + 56px);
		align-self: flex-start;
	}
}
.is-style-step {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr);
	gap: 22px;
	padding: 34px 0;
	border-top: 1px solid var(--ife-line);
}
.is-style-step > * { margin: 0 !important; }
.ife-step__num {
	font-family: var(--ife-display);
	font-size: 38px;
	font-weight: var(--wp--custom--display-weight, 800);
	line-height: 0.9;
	color: var(--ife-red);
}
.ife-step__title.ife-step__title {
	margin: 0;
	font-size: 26px;
	font-style: normal;
	font-weight: var(--wp--custom--display-weight, 800);
	letter-spacing: 0.01em;
	text-transform: none;
}
.ife-step__body p { margin: 0; }

/* About */
.ife-about .ife-about__media { display: flex; }
.ife-about .ife-about__media .wp-block-cover { flex: 1; height: 100%; }
.is-style-stat p { margin: 0; }
.ife-stat__value {
	font-family: var(--ife-display);
	font-size: 24px;
	font-weight: var(--wp--custom--display-weight, 800);
	line-height: 1;
	text-transform: uppercase;
	color: var(--ife-red);
}
.ife-stat__label {
	font-size: 12.5px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--slate);
}

/* Contact */
.ife-contact-list p { margin: 0; }
.ife-contact-value a {
	font-family: var(--ife-body);
	font-size: 20px;
	font-weight: 700;
	color: #fff;
	word-break: break-word;
}
.ife-contact-value--lg a { font-size: 28px; }
.ife-contact-value a:hover { color: var(--ife-red); }

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */
.ife-footer p { margin: 0; }
.ife-footer h6 { margin: 0; }
.ife-links { list-style: none; margin: 0; padding: 0 !important; display: flex; flex-direction: column; gap: 11px; font-size: 15.5px; }
.ife-links a { color: var(--wp--preset--color--steel); word-break: break-word; }
.ife-links a:hover { color: var(--ife-red); }
.ife-footer__legal { line-height: 1.6; }
.ife-footer__legal p { font-size: 13px; }

/* ------------------------------------------------------------------ */
/* Single machine                                                      */
/* ------------------------------------------------------------------ */
/*
 * The photo sits in a fixed panel but is never enlarged more than 1.5x its own
 * pixels (--ife-img-w comes from functions.php): past that, catalogue photos
 * turn to mush. Small photos show smaller and sharp instead of big and blurry.
 */
.ife-machine__media .wp-block-post-featured-image {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: clamp(16px, 2.5vw, 32px);
	min-height: min(58vw, 480px);
	/* Catalogue photos are cut out on white, so a white panel hides their edges. */
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
}
.ife-machine__media .wp-block-post-featured-image img {
	width: min(100%, calc(var(--ife-img-w, 9999px) * 1.5));
	height: auto;
	max-height: min(58vw, 440px);
	object-fit: contain;
}
@media (min-width: 782px) {
	.ife-machine__media { position: sticky; top: calc(var(--ife-admin-bar) + var(--ife-header-h) + 32px); align-self: flex-start; }
}
.ife-machine__info .wp-block-post-terms a { color: var(--ife-red); }
.ife-machine__code {
	margin: 0;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--grey);
}
.ife-machine__code:empty,
.ife-machine__type:empty { display: none; }
.ife-machine__type { margin-top: 10px; font-size: 15px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.ife-machine__content { margin-top: 22px; font-size: 17px; }
.ife-machine__content h2,
.ife-machine__content h3,
.ife-machine__content h4 {
	margin: 28px 0 10px;
	font-family: var(--ife-display);
	font-size: 21px;
	font-style: normal;
	font-weight: var(--wp--custom--display-weight, 800);
	text-transform: uppercase;
	color: var(--ife-black);
}
.ife-machine__content ul { padding-left: 0; list-style: none; }
.ife-machine__content li { position: relative; padding-left: 22px; margin-bottom: 6px; }
.ife-machine__content li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.62em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ife-red);
}

/* ------------------------------------------------------------------ */
/* Misc core blocks                                                    */
/* ------------------------------------------------------------------ */
.ife-search .wp-block-search__input { border: 1px solid #DEDEE3; border-radius: 2px; padding: 12px 14px; font-family: inherit; }
.ife-search .wp-block-search__button { margin-left: 8px; }
.is-style-section-dark .wp-block-query-title,
.is-style-section-dark .wp-block-post-title { color: #fff; }
.wp-block-post-template .wp-block-post-featured-image img { background: #F2F2F5; }

/* ------------------------------------------------------------------ */
/* Premium layer: motion, header, motifs                               */
/* ------------------------------------------------------------------ */

/* Section labels open with red slashes — a nod to Panatta's guideline graphics. */
.is-style-eyebrow { display: flex; align-items: center; }
.is-style-eyebrow::before {
	content: "";
	flex: 0 0 22px;
	height: 12px;
	margin-right: 12px;
	background: repeating-linear-gradient(115deg, var(--ife-red) 0 4px, transparent 4px 8px);
}
.has-text-align-right.is-style-eyebrow { justify-content: flex-end; }

/* Homepage: header floats over the hero, then turns solid once the page scrolls. */
.ife-header { transition: background-color .35s ease, box-shadow .35s ease; }
.ife-header.is-scrolled { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); }
.home .ife-header:not(.is-scrolled) {
	background: linear-gradient(180deg, rgba(10, 10, 11, 0.72), rgba(10, 10, 11, 0)) !important;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}
.home .ife-hero-section { margin-top: calc(-1 * var(--ife-header-h)) !important; }
.home .ife-hero { min-height: 88vh !important; }

/* Slow settle on the hero photograph. */
@keyframes ife-settle { from { transform: scale(1.07); } to { transform: scale(1); } }
.ife-hero .wp-block-cover__image-background { animation: ife-settle 12s cubic-bezier(.2, .7, .2, 1) both; }

/* Buttons lift slightly on hover. */
.wp-block-button__link { transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.wp-block-button:not(.is-style-text-arrow) .wp-block-button__link:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(10, 10, 11, 0.18); }

/* Photo bands: gentle zoom on hover. */
.is-style-band { overflow: hidden; }
.is-style-band .wp-block-cover__image-background { transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.is-style-band:hover .wp-block-cover__image-background { transform: scale(1.04); }

/* Key figures band */
.ife-figure { padding-left: 20px; border-left: 3px solid var(--ife-red); }
.ife-figure p { margin: 0; }
.ife-figure__value {
	font-family: var(--ife-display);
	font-size: clamp(40px, 4.4vw, 60px);
	font-weight: var(--wp--custom--display-weight, 800);
	/* Upright, like the logo: the wordmark has no slant. */
	font-style: normal;
	line-height: 1;
	color: var(--ife-black);
}
.ife-figure__label { max-width: 260px; line-height: 1.5; }

/* Reveal on scroll (classes are added by theme.js, so content is always visible without JS). */
.ife-reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.ife-reveal.is-in { opacity: 1; transform: none; }
/* Siblings arrive a beat apart. Done in CSS so the script never has to measure. */
.ife-reveal:nth-child(4n + 2) { transition-delay: 70ms; }
.ife-reveal:nth-child(4n + 3) { transition-delay: 140ms; }
.ife-reveal:nth-child(4n + 4) { transition-delay: 210ms; }

@media (prefers-reduced-motion: reduce) {
	.ife-hero .wp-block-cover__image-background { animation: none; }
	.ife-reveal { opacity: 1; transform: none; transition: none; }
	.is-style-band:hover .wp-block-cover__image-background,
	.wp-block-button:not(.is-style-text-arrow) .wp-block-button__link:hover { transform: none; }
}

/* ------------------------------------------------------------------ */
/* Touch targets and containment (from responsive QA)                  */
/* ------------------------------------------------------------------ */
.ife-hero { overflow: hidden; }
.ife-brand a { display: block; padding: 6px 0; }
.ife-nav .wp-block-navigation__responsive-container-open,
.ife-nav .wp-block-navigation__responsive-container-close {
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
}
.ife-nav .wp-block-navigation__responsive-container-open { min-width: 0; }
.ife-nav .wp-block-navigation__responsive-container-open svg,
.ife-nav .wp-block-navigation__responsive-container-close svg { width: 28px; height: 28px; }
.wp-block-button.is-style-text-arrow .wp-block-button__link { display: inline-block; padding-top: 12px; }
.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
}
.is-style-kicker { font-size: 12.5px; }
@media (max-width: 1023px) {
	.ife-machine__info .wp-block-post-terms a { display: inline-block; padding: 12px 0; }
}

/* Tablet and below: the full menu doesn't fit beside the logo and quote button, so use the menu button up to 1199px (WordPress core switches at 600px). */
@media (max-width: 1199px) {
	.ife-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.ife-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
	.ife-header .ife-header__phone,
	.ife-topbar__extra { display: none; }
	.ife-header__inner { flex-wrap: nowrap !important; }
}

/* Key figures: four across on wide screens, reflowing on smaller ones. */
.ife-figures .is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important; }

/* Contact Us page */
.ife-quote-card { padding: clamp(22px, 4vw, 48px) !important; border-radius: 6px; box-shadow: 0 24px 60px rgba(10, 10, 11, 0.08); }
/* After sending, the card holds only the thank-you: don't stretch it to the sidebar. */
.ife-quote-card:has(.ife-confirm) { align-self: flex-start; }
.ife-quote-card .ife-confirm { border: 0; border-top: 3px solid var(--wp--preset--color--red); padding: 0; padding-top: clamp(24px, 3vw, 34px); }
.ife-quote-steps .is-style-step { grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding: 20px 0; }
.ife-quote-steps .ife-step__num { font-size: 28px; }
.ife-quote-steps .ife-step__title.ife-step__title { font-size: 20px; }
.ife-quote-contact { border-radius: 6px; }
.ife-quote-contact .ife-contact-value--lg a { font-size: 26px; }
.ife-quote-contact .ife-contact-value a { font-size: 17px; word-break: break-all; }

/* Readable-width text inside constrained sections aligns to the content edge, not the centre. */
.is-layout-constrained > [class*="ife-measure"] {
	margin-left: max(0px, calc((100% - var(--wp--style--global--content-size, 1328px)) / 2)) !important;
	margin-right: auto !important;
}
.is-style-eyebrow strong { flex-shrink: 0; white-space: nowrap; }

/* Touch comfort: underlined text links and logo links reach 44px on phones. */
@media (max-width: 1023px) {
	.wp-block-button.is-style-text-arrow .wp-block-button__link,
	.ife-brand a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}
}

/* ------------------------------------------------------------------ */
/* Accessible reds                                                     */
/* ------------------------------------------------------------------ */
/*
 * The palette red (#DE1018) clears 4.5:1 against white and near-white, which
 * small text and buttons need. On black and charcoal panels the same red is
 * too dark, so red text there switches to the brighter shade.
 */
.is-style-section-dark .has-red-color,
.is-style-section-dark .is-style-eyebrow strong,
.is-style-section-dark .is-style-kicker,
.wp-block-cover .has-red-color,
.wp-block-cover .is-style-eyebrow strong,
.wp-block-cover .is-style-kicker,
.ife-footer .has-red-color,
.ife-footer .is-style-kicker,
.ife-quote-contact .has-red-color {
	color: var(--wp--preset--color--red-bright) !important;
}
/*
 * The line index count is no longer red: the group icon carries the red there
 * and the count reads in steel, which clears AA on black by a wider margin.
 */

/* Links inside body copy need more than colour to stand out. */
main p > a:not(.wp-element-button):not(.ife-btn),
main li > a:not(.wp-element-button):not(.ife-btn):not(.wp-block-navigation-item__content):not(.ife-line-index__item),
.ife-machine__content a,
.ife-details__note a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Footer column titles and the "why" sub-headings keep their look while the
   document outline stays in order (no level is skipped). */
.ife-footer__title {
	margin: 0;
	font-family: var(--ife-body) !important;
	font-size: 12.5px !important;
	font-style: normal !important;
	font-weight: 700 !important;
	letter-spacing: 0.18em !important;
	line-height: 1.5 !important;
	text-transform: uppercase;
}
.ife-h-sub { line-height: 1.15 !important; letter-spacing: 0.02em !important; }

/* ------------------------------------------------------------------ */
/* Photographs on tablet and phone                                     */
/* ------------------------------------------------------------------ */
/*
 * Every photograph here is landscape (roughly 3:2) and the machine usually
 * sits to one side of the frame rather than dead centre. Dropped into a tall
 * box on a tablet or phone, a centred `cover` crop was throwing away half to
 * two thirds of the width, and the part it threw away was the product: the
 * About picture was showing 38% of its width, the paired bands 53%.
 *
 * Two fixes together. First stop the boxes going so tall, so there is less to
 * crop at all. Second, aim each crop at the machine instead of the middle of
 * the picture; the percentages are the subject's centre measured off the
 * source photograph. On desktop these boxes are wider than the picture, so
 * the image fills the width and the horizontal position has no effect there.
 */
@media (max-width: 900px) {
	/* One band per row, so each gets the full width instead of half of it. */
	.ife-band-pair.ife-band-pair { grid-template-columns: 1fr; }

	/* A landscape picture does not need two thirds of the viewport height. */
	.is-style-band { min-height: 52vh !important; }

	/* The About picture sat beside the text in a tall, narrow column. */
	.ife-about .wp-block-columns { flex-wrap: wrap !important; }
	.ife-about .ife-about__media { flex-basis: 100% !important; }
	.ife-about .ife-about__media .wp-block-cover { min-height: 320px; height: auto; }
}

img[src*="/assets/images/hero"] { object-position: 22% 50%; }
img[src*="/assets/images/training"] { object-position: 40% 50%; }
img[src*="/assets/images/band-cardio"] { object-position: 72% 50%; }
img[src*="/assets/images/band-fit-evo"] { object-position: 70% 50%; }
img[src*="/assets/images/band-freeweight"] { object-position: 44% 50%; }
img[src*="/assets/images/atelier"] { object-position: 66% 50%; }
img[src*="/assets/images/about"] { object-position: 66% 50%; }

/* ------------------------------------------------------------------ */
/* Section heading and its standfirst, side by side                    */
/* ------------------------------------------------------------------ */
/*
 * These rows carry a small eyebrow and a heading in the left column and one
 * paragraph in the right. The columns were aligned on their bottoms, so a
 * three line paragraph climbed above the heading and the two never began on
 * the same line. Align the tops instead, then drop the paragraph by the
 * height of the eyebrow (19px) plus the heading's own top margin (18px), so
 * its first line starts level with the first line of the heading.
 *
 * Matched on structure rather than a class, because the pages are stored as
 * saved block markup: this reaches every such row on the site, including any
 * added later. The first column must hold the eyebrow and heading and nothing
 * else, which is what separates a standfirst row from the rows whose second
 * column carries a form, a photograph or a list of steps.
 *
 * Below 782px the columns stack and the paragraph already follows the
 * heading, so the offset applies only while they sit side by side. Browsers
 * without :has() keep the previous alignment rather than breaking.
 */
@media (min-width: 782px) {
	.wp-block-columns:has(> .wp-block-column > .is-style-eyebrow + :is(h1, h2):last-child) {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		/* Column gap stays as the layout set it; this is the eyebrow-to-heading step. */
		row-gap: 18px;
		align-items: start;
	}
	/*
	 * The first column dissolves so the eyebrow and the heading become items of
	 * the row's own grid. The eyebrow takes row one on its own and the heading
	 * shares row two with the paragraph, which is what puts their first lines on
	 * the same baseline no matter how many lines the eyebrow runs to.
	 */
	.wp-block-columns:has(> .wp-block-column > .is-style-eyebrow + :is(h1, h2):last-child) > .wp-block-column:first-child {
		display: contents;
	}
	.wp-block-columns:has(> .wp-block-column > .is-style-eyebrow + :is(h1, h2):last-child) > .wp-block-column:first-child > .is-style-eyebrow {
		grid-column: 1;
		grid-row: 1;
	}
	.wp-block-columns:has(> .wp-block-column > .is-style-eyebrow + :is(h1, h2):last-child) > .wp-block-column:first-child > :is(h1, h2) {
		grid-column: 1;
		grid-row: 2;
		/* The row gap now carries this space, so the heading starts flush. */
		margin-top: 0 !important;
	}
	.wp-block-columns:has(> .wp-block-column > .is-style-eyebrow + :is(h1, h2):last-child) > .wp-block-column:first-child + .wp-block-column {
		grid-column: 2;
		grid-row: 2;
		padding-top: 0;
	}
}
