/* 3S Network theme — block style variations and site chrome.
   Values come from the 3S Network Design System; colours reference theme.json presets. */

:root {
	--3s-navy: var(--wp--preset--color--navy-800);
	--3s-blue: var(--wp--preset--color--blue-500);
	--3s-hairline: var(--wp--preset--color--slate-200);
	--3s-hairline-dark: rgba(255, 255, 255, .16);
	--3s-ease: var(--wp--custom--motion--ease);
}

body { -webkit-font-smoothing: antialiased; text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }
::selection { background: var(--wp--preset--color--blue-100); color: var(--3s-navy); }
:where(a) { text-underline-offset: .18em; text-decoration-thickness: 1px; }
:where(.wp-site-blocks) :focus-visible { outline: 2px solid var(--wp--preset--color--blue-300); outline-offset: 2px; }

/* ---------- Header ----------
   Sticky on every page. Solid by default: translucent white, hairline rule, navy utility strip.
   On pages that open with a navy band, header.js adds .s3-overlay-header to <body>: the header then
   floats over the band, transparent with light text and the white logo, and turns solid
   (.is-scrolled) once the page scrolls. */
/* Only the bar with the logo and menu stays on screen: the whole header is sticky, but offset
   upward by the utility strip's height (measured by header.js), so the strip scrolls away. */
.wp-site-blocks > header.wp-block-template-part {
	--s3-admin-bar: 0px;
	position: sticky;
	top: calc(var(--s3-admin-bar) - var(--s3-utility-h, 31px));
	z-index: 100;
	margin-block-start: 0;
}
.admin-bar .wp-site-blocks > header.wp-block-template-part { --s3-admin-bar: 32px; }
@media (max-width: 782px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { --s3-admin-bar: 46px; } }
@media (max-width: 600px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { --s3-admin-bar: 0px; } }

.s3-header {
	background: rgba(255, 255, 255, .94);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--3s-hairline);
	transition: background-color var(--wp--custom--motion--base) var(--3s-ease), border-color var(--wp--custom--motion--base) var(--3s-ease), box-shadow var(--wp--custom--motion--base) var(--3s-ease);
}
.s3-header__bar { min-height: var(--wp--custom--header-height); display: flex; align-items: center; }
.s3-header__bar > .alignwide { width: 100%; }
.s3-utility {
	background: var(--3s-navy);
	color: var(--wp--preset--color--on-dark-muted);
	transition: background-color var(--wp--custom--motion--base) var(--3s-ease);
}
.s3-utility a { color: inherit !important; text-decoration: none; }
.s3-utility a:hover { color: var(--wp--preset--color--white) !important; text-decoration: underline; }
.s3-mono, .s3-utility .s3-mono { font-family: var(--wp--preset--font-family--mono); letter-spacing: .005em; font-variant-numeric: tabular-nums; }
@media (max-width: 599px) { .s3-utility__offices { display: none; } }

/* logo: colour on light, white on navy */
.s3-logo .wp-block-image { margin: 0; }
.s3-logo .s3-logo--white { display: none; }

/* navigation */
.s3-header .wp-block-navigation .wp-block-navigation-item__content { padding: 6px 0; color: var(--wp--preset--color--slate-700); transition: color 120ms var(--3s-ease); }
.s3-header .wp-block-navigation .wp-block-navigation-item__content:hover { color: var(--3s-navy); }
.s3-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
.s3-header .wp-block-navigation .current-menu-ancestor > .wp-block-navigation-item__content,
.s3-header .wp-block-navigation [aria-current="page"] {
	color: var(--3s-navy);
	font-weight: 600;
	box-shadow: inset 0 calc(-1 * var(--wp--custom--rule--accent)) 0 var(--3s-blue);
}
.s3-header .wp-block-navigation__submenu-container {
	border: 1px solid var(--3s-hairline) !important;
	border-radius: var(--wp--custom--radius--card);
	box-shadow: var(--wp--preset--shadow--md);
	padding: 8px 0;
	min-width: 280px !important;
}
.s3-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 8px 16px !important; color: var(--wp--preset--color--slate-700) !important; }
.s3-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--blue-50); color: var(--3s-navy) !important; }
.s3-header .wp-block-navigation__responsive-container.is-menu-open { padding: 24px; }
.s3-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { color: var(--3s-navy) !important; }

/* overlay state: transparent over the navy band */
.s3-overlay-header .wp-site-blocks > header.wp-block-template-part { margin-bottom: calc(-1 * var(--s3-header-h, 0px)); }
.s3-overlay-header:not(.s3-scrolled) .s3-header {
	background: transparent;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	border-bottom-color: transparent;
}
.s3-overlay-header:not(.s3-scrolled) .s3-utility { background: transparent; }
.s3-overlay-header:not(.s3-scrolled) .s3-logo--color { display: none; }
.s3-overlay-header:not(.s3-scrolled) .s3-logo--white { display: block; }
.s3-overlay-header:not(.s3-scrolled) .s3-header .wp-block-navigation > .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content,
.s3-overlay-header:not(.s3-scrolled) .s3-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content,
.s3-overlay-header:not(.s3-scrolled) .s3-header .wp-block-navigation__submenu-icon,
.s3-overlay-header:not(.s3-scrolled) .s3-header .wp-block-navigation__responsive-container-open {
	color: rgba(255, 255, 255, .88);
}
.s3-overlay-header:not(.s3-scrolled) .s3-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--white); }
.s3-overlay-header:not(.s3-scrolled) .s3-header .wp-block-navigation__responsive-container:not(.is-menu-open) .current-menu-item > .wp-block-navigation-item__content,
.s3-overlay-header:not(.s3-scrolled) .s3-header .wp-block-navigation__responsive-container:not(.is-menu-open) .current-menu-ancestor > .wp-block-navigation-item__content,
.s3-overlay-header:not(.s3-scrolled) .s3-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .wp-block-navigation-item > [aria-current="page"] {
	color: var(--wp--preset--color--white);
	box-shadow: inset 0 calc(-1 * var(--wp--custom--rule--accent)) 0 var(--wp--preset--color--blue-300);
}
.s3-scrolled .s3-header { box-shadow: var(--wp--preset--shadow--sm); }

/* the navy band under an overlay header: room for the header above its content */
.s3-overlay-header .s3-first-band { padding-top: calc(var(--s3-header-h, 0px) + var(--wp--preset--spacing--80)) !important; }

/* ---------- Paragraph styles ---------- */
.is-style-eyebrow {
	font-family: var(--wp--preset--font-family--body) !important;
	font-size: var(--wp--preset--font-size--eyebrow) !important;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--3s-blue);
	line-height: 1.4;
}
.has-navy-800-background-color .is-style-eyebrow,
.has-navy-900-background-color .is-style-eyebrow,
.has-navy-gradient-background .is-style-eyebrow,
.is-style-card-dark .is-style-eyebrow { color: var(--wp--preset--color--blue-200); }
.is-style-lead { font-size: var(--wp--preset--font-size--lead); line-height: 1.6; }
.is-style-data { font-family: var(--wp--preset--font-family--mono); font-size: 13.5px; letter-spacing: .005em; font-variant-numeric: tabular-nums; }
/* readable measure for running text in constrained sections */
.is-layout-flex > p { max-width: 66ch; }
.s3-card-foot { max-width: none !important; align-self: stretch; }

/* ---------- Cards ---------- */
.is-style-card, .is-style-card-featured {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--3s-hairline);
	border-radius: var(--wp--custom--radius--card);
	box-shadow: var(--wp--preset--shadow--sm);
	padding: var(--wp--preset--spacing--50);
	transition: box-shadow var(--wp--custom--motion--base) var(--3s-ease), transform var(--wp--custom--motion--base) var(--3s-ease);
}
.is-style-card-featured { border-top: var(--wp--custom--rule--accent) solid var(--3s-blue); }
.is-style-card:has(a.s3-card-link):hover, .is-style-card-featured:has(a.s3-card-link):hover {
	box-shadow: var(--wp--preset--shadow--md);
	transform: translateY(-2px);
}
.is-style-card-dark {
	background: var(--3s-navy);
	border: 1px solid var(--3s-hairline-dark);
	border-radius: var(--wp--custom--radius--card);
	padding: var(--wp--preset--spacing--50);
	color: var(--wp--preset--color--on-dark-muted);
}
.is-style-card-dark :where(h1, h2, h3, h4) { color: var(--wp--preset--color--white); }
.is-style-card-dark a { color: var(--wp--preset--color--blue-200); }
.s3-card-link { font-weight: 600; text-decoration: none; }
.s3-card-link:hover { text-decoration: underline; }
.s3-card-foot { border-top: 1px solid var(--3s-hairline); padding-top: 16px; margin-top: auto !important; font-size: var(--wp--preset--font-size--small); }
.is-style-card-dark .s3-card-foot { border-top-color: var(--3s-hairline-dark); }
.s3-icon { width: 24px; height: 24px; color: var(--3s-blue); display: block; }
.is-style-card-dark .s3-icon { color: var(--wp--preset--color--blue-200); }

/* ---------- Stats ---------- */
.is-style-stat { padding-left: 24px; border-left: 1px solid var(--3s-hairline); }
.has-navy-800-background-color .is-style-stat, .has-navy-gradient-background .is-style-stat { border-left-color: var(--3s-hairline-dark); }
.s3-stat-value { color: var(--3s-navy); font-family: var(--wp--preset--font-family--display); font-weight: 600; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.s3-stat-value .s3-unit { font-size: .5em; font-weight: 500; color: var(--3s-blue); margin-left: 4px; }
.has-navy-800-background-color .s3-stat-value { color: var(--wp--preset--color--white); }
.has-navy-800-background-color .s3-unit, .has-navy-gradient-background .s3-unit { color: var(--wp--preset--color--blue-200); }

/* ---------- Alert: the one place a coloured left rule is correct ---------- */
.is-style-alert {
	background: var(--wp--preset--color--blue-50);
	border: 1px solid var(--wp--preset--color--blue-100);
	border-left: var(--wp--custom--rule--accent) solid var(--3s-blue);
	border-radius: var(--wp--custom--radius--control);
	padding: 14px 18px;
	font-size: var(--wp--preset--font-size--small);
}
.is-style-alert.has-warning-tint-background-color { border-color: #F3DFBE; border-left-color: var(--wp--preset--color--warning); }
.is-style-alert.has-success-tint-background-color { border-color: #CBE6D7; border-left-color: var(--wp--preset--color--success); }
.is-style-alert.has-danger-tint-background-color { border-color: #F5D2CE; border-left-color: var(--wp--preset--color--danger); }

/* ---------- Buttons ---------- */
.wp-block-button__link { transition: background-color 120ms var(--3s-ease), border-color 120ms var(--3s-ease), color 120ms var(--3s-ease); }
.wp-block-button.is-style-secondary .wp-block-button__link {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--blue-700);
	border: 1px solid var(--wp--preset--color--slate-300);
}
.wp-block-button.is-style-secondary .wp-block-button__link:hover { background: var(--wp--preset--color--blue-50); border-color: var(--wp--preset--color--blue-300); }
.wp-block-button.is-style-ghost .wp-block-button__link { background: transparent; color: var(--wp--preset--color--blue-700); border-color: transparent; }
.wp-block-button.is-style-ghost .wp-block-button__link:hover { background: var(--wp--preset--color--slate-100); }
.wp-block-button.is-style-inverse .wp-block-button__link { background: transparent; color: var(--wp--preset--color--white); border: 1px solid rgba(255, 255, 255, .42); }
.wp-block-button.is-style-inverse .wp-block-button__link:hover { background: rgba(255, 255, 255, .1); border-color: var(--wp--preset--color--white); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--wp--preset--color--blue-700); border-color: var(--wp--preset--color--blue-500); }

/* ---------- Lists ---------- */
.is-style-checks { list-style: none; padding-left: 0; }
.is-style-checks li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.is-style-checks li::before {
	content: "";
	position: absolute; left: 0; top: .3em;
	width: 18px; height: 18px;
	background: currentColor;
	color: var(--3s-blue);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.has-navy-800-background-color .is-style-checks li::before, .has-navy-gradient-background .is-style-checks li::before { color: var(--wp--preset--color--blue-200); }
.is-style-plain { list-style: none; padding-left: 0; }
.is-style-plain li { padding: 10px 0; border-bottom: 1px solid var(--3s-hairline); margin: 0; }
.is-style-plain li:last-child { border-bottom: 0; }

/* ---------- Tables ---------- */
.wp-block-table.is-style-data table { border-collapse: collapse; width: 100%; }
.wp-block-table.is-style-data :where(th, td) { border: 0; border-bottom: 1px solid var(--3s-hairline); padding: 10px 12px; text-align: left; }
.wp-block-table.is-style-data thead { border-bottom: 0; }
.wp-block-table.is-style-data th {
	font-size: var(--wp--preset--font-size--eyebrow);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--slate-500);
	font-weight: 600;
	background: var(--wp--preset--color--slate-50);
}
.wp-block-table.is-style-data tbody tr:hover { background: var(--wp--preset--color--blue-50); }
.wp-block-table.is-style-data td:first-child { font-family: var(--wp--preset--font-family--mono); font-size: 13.5px; }

/* ---------- Images ---------- */
.wp-block-image.is-style-framed img { border-radius: var(--wp--custom--radius--card); border: 1px solid var(--3s-hairline); }

/* ---------- Status pill (used in patterns as a paragraph with class s3-pill) ---------- */
.s3-pill {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 3px 10px 3px 8px;
	border-radius: var(--wp--custom--radius--pill);
	font-size: var(--wp--preset--font-size--caption);
	font-weight: 600;
	background: var(--wp--preset--color--success-tint);
	color: #0E5F37;
	max-width: none;
}
.s3-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--wp--preset--color--success); }

/* ---------- Footer ---------- */
.s3-footer a { color: var(--wp--preset--color--on-dark-muted); text-decoration: none; }
.s3-footer a:hover { color: var(--wp--preset--color--white); text-decoration: underline; }
.s3-footer .wp-block-heading { color: var(--wp--preset--color--blue-200); }
.s3-footer hr, .s3-footer .wp-block-separator { border-color: rgba(255, 255, 255, .16) !important; color: rgba(255, 255, 255, .16); opacity: 1; }

/* footer lists */
.s3-footer ul { list-style: none; padding-left: 0; margin-top: 12px; }
.s3-footer li { margin-bottom: 8px; }

/* equal-height cards inside columns */
.wp-block-column > .is-style-card, .wp-block-column > .is-style-card-featured, .wp-block-column > .is-style-card-dark { height: 100%; }

/* ---------- Placeholder for photography that has not been supplied ---------- */
.s3-photo-placeholder {
	background: repeating-linear-gradient(135deg, var(--wp--preset--color--slate-100) 0 12px, var(--wp--preset--color--slate-50) 12px 24px);
	border: 1px dashed var(--wp--preset--color--slate-300);
	border-radius: var(--wp--custom--radius--card);
	min-height: 280px;
	display: flex; align-items: center; justify-content: center;
	color: var(--wp--preset--color--slate-500);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	text-align: center;
	padding: 24px;
}

/* ---------- Posts ---------- */
.s3-post-card { border-bottom: 1px solid var(--3s-hairline); padding-bottom: var(--wp--preset--spacing--50); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* sections butt against the header and footer: no root block gap between template parts */
.wp-site-blocks > main, .wp-site-blocks > footer { margin-block-start: 0; }
.wp-site-blocks > header.wp-block-template-part + main { margin-block-start: 0; }

@media (max-width: 599px) {
	.s3-header__bar .wp-block-buttons { display: none; }
	.is-style-stat { padding-left: 0; border-left: 0; padding-top: 20px; border-top: 1px solid var(--3s-hairline); }
}

/* links on navy bands */
.has-navy-gradient-background a:not(.wp-element-button), .has-navy-800-background-color a:not(.wp-element-button) { color: var(--wp--preset--color--blue-200); }

/* "Also offered" tags: pill radius is reserved for Tag */
.s3-tag { margin: 0; }
.s3-tag a {
	display: inline-flex; align-items: center;
	padding: 5px 12px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--slate-700);
	border: 1px solid var(--3s-hairline);
	border-radius: var(--wp--custom--radius--pill);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	text-decoration: none;
}
.s3-tag a:hover { background: var(--wp--preset--color--slate-100); color: var(--3s-navy); }
.s3-inline-icon { width: 18px; height: 18px; vertical-align: -3px; margin-right: 4px; display: inline-block; }

/* cards stacked in a vertical group fill the column */
.is-layout-flex.is-vertical > :is(.is-style-card, .is-style-card-featured, .is-style-card-dark) { align-self: stretch; }

/* header office list: room between cities */
.s3-utility__offices .s3-sep { display: inline-block; margin: 0 12px; opacity: .6; }
.s3-utility .alignwide { column-gap: 32px !important; }

/* home locations strip: centred (the :has() rule also centres pages built before 1.3.2) */
.s3-locations, .is-layout-flex:has(> p > .s3-inline-icon) { justify-content: center; }

/* footer offices: four equal columns across the full width, centred */
.s3-footer__offices { text-align: center; }
.s3-footer__offices > .wp-block-group { align-items: center; }
.s3-footer__offices p { margin-inline: auto; }
@media (max-width: 781px) { .s3-footer__offices { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 479px) { .s3-footer__offices { grid-template-columns: minmax(0, 1fr) !important; } }

/* ---------- Client logos ----------
   Without JavaScript, or with reduced motion on, the logos sit in a centred grid.
   clients.js turns the row into a slow, seamless strip that pauses on hover and on focus. */
.s3-marquee { row-gap: 28px; column-gap: 0; }
.s3-marquee .s3-client { margin: 0 28px !important; flex: 0 0 auto; }
.s3-marquee .s3-client img { display: block; height: auto; max-width: none; }
.s3-marquee.is-animated {
	flex-wrap: nowrap !important;
	justify-content: flex-start !important;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.s3-marquee__track {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	width: max-content;
	animation: s3-marquee var(--s3-marquee-duration, 60s) linear infinite;
}
.s3-marquee.is-animated:hover .s3-marquee__track,
.s3-marquee.is-animated:focus-within .s3-marquee__track { animation-play-state: paused; }
@keyframes s3-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Project photos ---------- */
.s3-photo img { border-radius: var(--wp--custom--radius--card); display: block; width: 100%; height: auto; }
.s3-photo .wp-element-caption {
	margin: 8px 0 0;
	font-size: var(--wp--preset--font-size--caption);
	color: var(--wp--preset--color--slate-500);
	text-align: left;
}
.s3-photo--feature img { box-shadow: var(--wp--preset--shadow--md); }
.s3-gallery > .wp-block-image { margin: 0; }

/* service cards: photo bleeds to the card edges */
.s3-service-card { padding-top: 0 !important; overflow: hidden; }
.s3-service-card .s3-card-photo { margin: 0 calc(-1 * var(--wp--preset--spacing--50)) 6px !important; width: calc(100% + 2 * var(--wp--preset--spacing--50)) !important; max-width: none; }
.s3-service-card .s3-card-photo img { border-radius: 0; }
.s3-service-card .s3-card-title a { color: var(--3s-navy); text-decoration: none; }
.s3-service-card .s3-card-title a:hover { color: var(--wp--preset--color--blue-600); text-decoration: underline; }
.s3-service-card .s3-card-foot { margin-top: auto !important; }

/* projects page tiles */
.s3-work-tile .wp-block-image { margin: 0; }
.s3-work-tile .wp-block-image img { border-radius: var(--wp--custom--radius--card); }

/* EV process step numbers */
.s3-step-num { font-family: var(--wp--preset--font-family--mono); font-size: 13.5px; font-weight: 500; color: var(--3s-blue); margin: 0; }

/* DAS OEM logo strip */
.s3-oem img { border-radius: 0 !important; mix-blend-mode: multiply; }

/* ---------- Markets map ---------- */
.s3-map { margin: 0; }
.s3-map img { width: 100%; height: auto; border: 1px solid var(--3s-hairline); border-radius: var(--wp--custom--radius--card); background: var(--wp--preset--color--slate-50); }
.s3-map-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; max-width: none; margin: 0; color: var(--wp--preset--color--slate-700); }
.s3-key { display: inline-block; vertical-align: -2px; margin-right: 8px; }
.s3-map-legend .s3-key:not(:first-child) { margin-left: 0; }
.s3-key--served { width: 18px; height: 12px; background: var(--wp--preset--color--blue-100); border: 1px solid var(--wp--preset--color--slate-300); }
.s3-key--project { width: 12px; height: 12px; border-radius: 50%; background: var(--3s-blue); border: 1.5px solid #fff; box-shadow: 0 0 0 1px var(--wp--preset--color--slate-300); }
.s3-key--office { width: 12px; height: 12px; background: var(--3s-navy); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--wp--preset--color--slate-300); }

/* ---------- Photo hero ---------- */
.wp-block-cover.alignfull { margin-block-start: 0; }
.wp-block-cover .wp-block-cover__background.has-navy-900-background-color { background: linear-gradient(100deg, rgba(0,27,43,.94) 0%, rgba(0,27,43,.82) 45%, rgba(0,27,43,.55) 100%) !important; opacity: 1 !important; }
.wp-block-cover .is-style-eyebrow { color: var(--wp--preset--color--blue-200); }
.s3-legend-item { display: inline-flex; align-items: center; white-space: nowrap; }

/* grids whose items share the full row and wrap on small screens */
.is-layout-grid.s3-fill { grid-template-columns: repeat(auto-fit, minmax(min(var(--s3-fill-min, 220px), 100%), 1fr)) !important; }
.s3-fill-200 { --s3-fill-min: 200px; } .s3-fill-220 { --s3-fill-min: 220px; } .s3-fill-260 { --s3-fill-min: 260px; } .s3-fill-300 { --s3-fill-min: 300px; }

/* mobile menu: services list sits inline, not as a floating card */
.s3-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { border: 0 !important; box-shadow: none !important; padding: 4px 0 8px !important; min-width: 0 !important; }
.s3-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 6px 0 !important; font-size: 15px; }
