/* EnTech component styles — buttons, cards, stats, forms.
   Registered as block styles / global classes so every template reuses
   the same visual language instead of one-off per-page CSS. */

/* Secondary button (outline) */
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--teal);
	border: 2px solid var(--wp--preset--color--teal);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:focus {
	background: var(--wp--preset--color--teal);
	color: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--teal);
}

/* Primary button gradient hover (default filled button) */
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
	transition: background-color 0.2s ease, color 0.2s ease;
}

/* Card component — services, projects, news */
.is-style-card,
.entech-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 0.5rem;
	padding: var(--wp--preset--spacing--compact, 2rem);
	transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.is-style-card:hover,
.entech-card:hover {
	border-color: var(--wp--preset--color--teal);
	box-shadow: 0 12px 32px -16px rgba(15, 30, 36, 0.25);
	transform: translateY(-2px);
}

/* Equal-height cards in a multi-column row (Vision/Mission, Our Services,
   Why EnTech, office/team/culture cards, etc.) — core's .wp-block-columns
   defaults to align-items: flex-start, so columns of differing content
   length were never actually stretched to match each other; the card div
   inside then only sized to its own content on top of that. Force both:
   the column stretches to the tallest sibling, and the card fills it. */
.wp-block-columns {
	align-items: stretch;
}
.wp-block-column > .entech-card {
	height: 100%;
	box-sizing: border-box;
}

/* Leadership team photo — replaces the initials-in-circle placeholder */
.entech-team-photo {
	margin: 0 auto;
}
.entech-team-photo img {
	display: block;
	width: 88px;
	height: 88px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 auto;
}

/* Stat / counter component — large number + label, used on Home trust bar */
.is-style-stat,
.entech-stat {
	text-align: center;
}
.is-style-stat .entech-stat__number,
.entech-stat .entech-stat__number {
	display: block;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800;
	font-size: var(--wp--preset--font-size--xx-large);
	line-height: 1.1;
	color: var(--wp--preset--color--teal);
}
.is-style-stat .entech-stat__label,
.entech-stat .entech-stat__label {
	display: block;
	margin-top: 0.5rem;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

/* Form fields — consultation / contact form, professional not consumer-y */
.entech-form label {
	display: block;
	margin-bottom: 0.4rem;
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink);
}
.entech-form input[type="text"],
.entech-form input[type="email"],
.entech-form input[type="tel"],
.entech-form textarea,
.entech-form select {
	width: 100%;
	padding: 0.85rem 1rem;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 0.25rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--ink);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.entech-form textarea {
	min-height: 8rem;
	resize: vertical;
}
.entech-form input:focus,
.entech-form textarea:focus,
.entech-form select:focus {
	outline: none;
	border-color: var(--wp--preset--color--teal);
	box-shadow: 0 0 0 3px rgba(31, 132, 171, 0.15);
}
.entech-form .entech-form__field {
	margin-bottom: 1.25rem;
}
.entech-form .entech-form__consent {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}
.entech-form .entech-form__consent input[type="checkbox"] {
	width: 1.1rem;
	height: 1.1rem;
	margin-top: 0.15rem;
	accent-color: var(--wp--preset--color--teal);
	flex-shrink: 0;
}
.entech-form button[type="submit"] {
	cursor: pointer;
}

/* Services tabs — progressively enhanced by assets/js/tabs.js.
   Without JS every panel below stays visible (no [hidden] is rendered
   server-side), so content never disappears if the script fails. */
.entech-tabs__list {
	display: flex;
	gap: 0.5rem;
	overflow-x: auto;
	/* Per the CSS Overflow spec, setting only overflow-x forces overflow-y
	   to compute as "auto" too — any sub-pixel vertical overflow then
	   renders a real (if unwanted) vertical scrollbar with arrow buttons.
	   Pin it explicitly so only the intended horizontal scroll remains. */
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.entech-tabs__tab {
	appearance: none;
	background: none;
	border: none;
	cursor: pointer;
	white-space: nowrap;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--muted);
	padding: 0.9rem 1.5rem;
	border-bottom: 3px solid transparent;
	margin-bottom: -1px;
	transition: color 0.2s ease, border-color 0.2s ease;
}
.entech-tabs__tab[aria-selected="true"] {
	color: var(--wp--preset--color--teal);
	border-bottom-color: var(--wp--preset--color--teal);
}
.entech-tabs__tab:hover {
	color: var(--wp--preset--color--teal);
}
.entech-tabs__tab:focus-visible {
	outline: 2px solid var(--wp--preset--color--teal);
	outline-offset: 2px;
}
.entech-tabs__panel {
	padding-top: 2.5rem;
}
.entech-tabs__panel[hidden] {
	display: none;
}
.entech-tabs__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
}
@media (max-width: 640px) {
	.entech-tabs__grid {
		grid-template-columns: 1fr;
	}
}
/* Long tabs (Risk Studies): 3 columns on wide screens, 2 below. */
@media (min-width: 1024px) {
	.entech-tabs__grid--3 {
		grid-template-columns: repeat(3, 1fr);
	}
}
.entech-service-item__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 0.5rem;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--teal);
	margin-bottom: 1rem;
}
.entech-service-item h3,
.entech-service-item h4 {
	margin: 0;
	font-size: var(--wp--preset--font-size--large);
}
.entech-service-item__sub {
	margin: 0.35rem 0 0;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--wp--preset--color--teal);
}
.entech-service-item__text {
	margin: 0.75rem 0 0;
	font-size: var(--wp--preset--font-size--reading);
	color: var(--wp--preset--color--muted);
}
/* Optional download link under a service item (e.g. Training brochure).
   Light-card counterpart of .entech-product__actions .is-ghost. */
.entech-service-item__actions {
	margin-top: 1.25rem;
}
.entech-service-item__actions .wp-element-button {
	background: transparent;
	color: var(--wp--preset--color--teal);
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--teal);
	text-decoration: none;
}
.entech-service-item__actions .wp-element-button:hover,
.entech-service-item__actions .wp-element-button:focus {
	background: var(--wp--preset--color--teal);
	color: var(--wp--preset--color--white);
}

/* Kenexis Software tab — product panel, module grid, offer cards and a
   closing band. Lives inside the same .entech-tabs__panel as the other
   tabs, so tabs.js needs no changes; only the panel's inner layout is new. */
.entech-product {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 0.5rem;
	overflow: hidden;
}
.entech-product__main {
	padding: 3rem;
}
.entech-product__badge {
	display: inline-block;
	margin-bottom: 1.25rem;
	padding: 0.3rem 0.8rem;
	background: var(--wp--preset--color--surface);
	border-radius: 999px;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--wp--preset--color--teal);
}
.entech-product__title {
	margin: 0 0 0.5rem;
	font-size: var(--wp--preset--font-size--xx-large);
	line-height: 1.15;
}
.entech-product__tagline {
	margin: 0 0 1.1rem;
	font-weight: 600;
	color: var(--wp--preset--color--teal);
}
.entech-product__text {
	margin: 0 0 1.75rem;
	font-size: var(--wp--preset--font-size--reading);
	line-height: 1.65;
	color: var(--wp--preset--color--muted);
}
.entech-product__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}
.entech-product__actions .wp-element-button {
	text-decoration: none;
}
/* Same outline treatment as .entech-service-item__actions */
.entech-product__actions .is-ghost {
	background: transparent;
	color: var(--wp--preset--color--teal);
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--teal);
}
.entech-product__actions .is-ghost:hover,
.entech-product__actions .is-ghost:focus {
	background: var(--wp--preset--color--teal);
	color: var(--wp--preset--color--white);
}
.entech-product__facts {
	display: grid;
	align-content: center;
	margin: 0;
	padding: 2.25rem;
	list-style: none;
	background: var(--wp--preset--color--surface);
	border-left: 1px solid var(--wp--preset--color--line);
}
.entech-product__facts li {
	padding: 1rem 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}
.entech-product__facts li:last-child {
	border-bottom: 0;
}
.entech-product__facts strong {
	display: block;
	margin-bottom: 0.15rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--ink);
}
.entech-tab-section-head {
	margin: 3.5rem 0 1.25rem;
}
.entech-tab-section-head h3 {
	margin: 0 0 0.35rem;
	font-size: var(--wp--preset--font-size--x-large);
}
.entech-tab-section-head p {
	margin: 0;
	color: var(--wp--preset--color--muted);
}
.entech-modules {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
	gap: 1rem;
}
.entech-module {
	padding: 1.5rem;
}
.entech-module h4 {
	margin: 0 0 0.25rem;
	font-size: var(--wp--preset--font-size--large);
}
.entech-module__sub {
	margin: 0 0 0.6rem;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--wp--preset--color--teal);
}
.entech-module p:last-child {
	margin: 0;
	color: var(--wp--preset--color--muted);
	line-height: 1.55;
}
.entech-module--featured {
	grid-column: span 2;
	border-color: var(--wp--preset--color--teal);
	background: var(--wp--preset--color--surface);
}
.entech-module__pill {
	display: inline-block;
	margin-bottom: 0.75rem;
	padding: 0.2rem 0.65rem;
	border-radius: 999px;
	background: var(--wp--preset--color--teal);
	color: var(--wp--preset--color--white);
	font-size: 0.75rem;
	font-weight: 700;
}
.entech-offers {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
	gap: 1.25rem;
}
.entech-tab-band {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem;
	margin-top: 3.5rem;
	padding: 2.25rem 2.5rem;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 0.5rem;
}
.entech-tab-band h3 {
	margin: 0 0 0.35rem;
	font-size: var(--wp--preset--font-size--x-large);
}
.entech-tab-band p {
	margin: 0;
	color: var(--wp--preset--color--muted);
}
.entech-tab-band .wp-element-button {
	text-decoration: none;
}
@media (max-width: 800px) {
	.entech-product {
		grid-template-columns: 1fr;
	}
	.entech-product__main {
		padding: 2rem 1.5rem;
	}
	.entech-product__facts {
		padding: 1rem 1.5rem;
		border-left: 0;
		border-top: 1px solid var(--wp--preset--color--line);
	}
	.entech-module--featured {
		grid-column: auto;
	}
	.entech-tab-band {
		padding: 1.75rem 1.5rem;
	}
}

/* Sticky header. The sticky sits on the template-part wrapper
   (<header class="wp-block-template-part">, emitted by every template's
   {"slug":"header","tagName":"header"} include), not on .entech-header
   inside it: a sticky element only sticks within its parent, and the
   wrapper is exactly as tall as the bar, so a sticky .entech-header had
   no room and scrolled away. The wrapper's parent is the full-page
   .wp-site-blocks. parts/header.html's root is a plain div for the same
   reason, and so the page has one <header> (banner landmark), not two.
   --entech-header-h is the measured bar height — re-measure if the logo
   size or header padding changes. It feeds the anchor offset and the job
   page's sticky summary card so neither slides under the bar. */
:root {
	--entech-header-h: 104px;
}
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
}
html {
	scroll-padding-top: calc(var(--entech-header-h) + var(--wp-admin--admin-bar--height, 0px) + 1rem);
}
@media (max-width: 600px) {
	:root {
		--entech-header-h: 70px;
	}
	/* The WP admin bar is position:absolute at this width and scrolls away. */
	.wp-site-blocks > header.wp-block-template-part {
		top: 0;
	}
	html {
		scroll-padding-top: calc(var(--entech-header-h) + 1rem);
	}
	/* Slimmer bar on phones so it takes less of the screen. */
	.entech-header {
		padding-top: 0.75rem !important;
		padding-bottom: 0.75rem !important;
	}
}

/* Mobile nav overlay must read top-to-bottom, left-aligned on this LTR
   site. The nav block itself now carries no justifyContent (see
   parts/header.html) — nothing sets an alignment class for the overlay to
   inherit in the first place. This is a defensive backstop in case a
   future core update still writes one, targeting the overlay panel
   directly instead of a specific WP class name, so it can't silently stop
   working the way the previous version (keyed to the
   is-content-justification-right class) did. */
.entech-header .wp-block-navigation__responsive-container.is-menu-open {
	justify-content: flex-start;
}
.entech-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
.entech-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	align-items: flex-start !important;
	justify-content: flex-start !important;
	text-align: left !important;
}

/* Header row is a nowrap flex (logo / nav+CTA cluster) — logo, hamburger
   toggle and the CTA button all have to fit on one line on a phone. Rather
   than hiding the CTA on mobile (it's the primary action, it should never
   disappear), shrink it and let its two words wrap onto two lines instead
   of growing wide — its footprint stays bounded regardless of viewport
   width or label length. */
@media (max-width: 600px) {
	.entech-header-logo img {
		width: 40px !important;
	}
	.entech-header-cta .wp-block-button__link {
		max-width: 6.5rem !important;
		padding: 0.5rem 0.4rem !important;
		font-size: 0.7rem !important;
		line-height: 1.25 !important;
		white-space: normal !important;
		text-align: center !important;
	}
}

/* Projects — badge, archive grid/card, single meta list, pagination */
.entech-badge {
	display: inline-block;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--teal);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 0.25rem 0.75rem;
	border-radius: 999px;
}
.entech-card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}
@media (max-width: 900px) {
	.entech-card-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 640px) {
	.entech-card-grid {
		grid-template-columns: 1fr;
	}
}
.entech-content-card {
	display: block;
	text-decoration: none;
	color: inherit;
}
/* Card title — Insights and Projects archives share this rule, and
   matches the homepage blog card h3 (see news-teaser.php). Deliberately
   the "medium" token (1rem/16px), not "large": --wp--preset--font-size--large
   resolves as a fluid clamp() on this site (up to 36px) rather than a flat
   value, which read as oversized here. */
.entech-content-card h2 {
	margin: 0.75rem 0 0;
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--ink);
}
.entech-content-card__meta {
	margin: 0.75rem 0 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}
.entech-content-card__excerpt {
	margin: 0.5rem 0 0;
	font-size: var(--wp--preset--font-size--reading);
	line-height: 1.6;
	color: var(--wp--preset--color--muted);
}
/* Insights grid/list toggle (news-archive.php + assets/js/insights-view.js).
   Toolbar stays hidden until the script marks it ready, so no-JS visitors
   never see buttons that do nothing. */
.entech-insights-toolbar {
	display: none;
	justify-content: flex-end;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
}
.entech-insights-toolbar.is-ready {
	display: flex;
}
.entech-view-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 0.25rem;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--muted);
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.entech-view-toggle:hover {
	border-color: var(--wp--preset--color--teal);
	color: var(--wp--preset--color--teal);
}
.entech-view-toggle[aria-pressed="true"] {
	background: var(--wp--preset--color--teal);
	border-color: var(--wp--preset--color--teal);
	color: var(--wp--preset--color--white);
}
.entech-view-toggle:focus-visible {
	outline: 2px solid var(--wp--preset--color--teal);
	outline-offset: 2px;
}
/* List view: one card per row, image left, text right. */
.entech-card-grid[data-entech-view="list"] {
	grid-template-columns: 1fr;
	gap: 1rem;
}
.entech-card-grid[data-entech-view="list"] .entech-content-card {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 1.5rem;
	align-items: start;
}
.entech-card-grid[data-entech-view="list"] .entech-content-card__body > :first-child {
	margin-top: 0 !important;
}
@media (max-width: 640px) {
	.entech-card-grid[data-entech-view="list"] .entech-content-card {
		grid-template-columns: 1fr;
		gap: 0;
	}
	.entech-card-grid[data-entech-view="list"] .entech-content-card__body > :first-child {
		margin-top: 0.75rem !important;
	}
}
.wp-block-post-terms.entech-post-terms {
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.entech-meta-list {
	margin: 1.5rem 0 0;
	padding: 0;
}
.entech-meta-list__row {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
	padding: 0.6rem 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.entech-meta-list__row dt {
	flex: 0 0 120px;
	margin: 0;
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--muted);
}
/* Value matches the label's size so the row reads as one line of data;
   weight + darker color carry the hierarchy instead of a bigger font. */
.entech-meta-list__row dd {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	line-height: 1.5;
	color: var(--wp--preset--color--ink);
}
/* Single project (project-single.php): the badge sits in a block-level
   wrapper so it aligns to the article's content column. */
.entech-project__type {
	margin-top: 1.5rem;
}
.entech-project__content {
	margin-top: 2.5rem;
}
@media (max-width: 480px) {
	.entech-meta-list__row {
		flex-direction: column;
		gap: 0.25rem;
	}
	.entech-meta-list__row dt {
		flex: none;
	}
}
.entech-pagination {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 2.5rem;
}
.entech-pagination .page-numbers {
	padding: 0.5rem 0.9rem;
	border-radius: 0.25rem;
	border: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--muted);
	text-decoration: none;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}
.entech-pagination .page-numbers.current {
	background: var(--wp--preset--color--teal);
	border-color: var(--wp--preset--color--teal);
	color: var(--wp--preset--color--white);
}
.entech-pagination .page-numbers:hover:not(.current) {
	border-color: var(--wp--preset--color--teal);
	color: var(--wp--preset--color--teal);
}

/* Careers — open positions list */
.entech-jobs-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.entech-jobs-list__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
}
.entech-jobs-list__item-main {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}
.entech-jobs-list__item h3 {
	margin: 0;
	font-size: var(--wp--preset--font-size--medium);
}
.entech-jobs-list__meta {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--wp--preset--color--muted);
}
.entech-jobs-list__item .wp-element-button {
	white-space: nowrap;
}
.entech-jobs-list__item-main {
	flex: 1 1 320px;
}
.entech-jobs-list__item h3 a {
	color: inherit;
	text-decoration: none;
}
.entech-jobs-list__item h3 a:hover,
.entech-jobs-list__item h3 a:focus-visible {
	color: var(--wp--preset--color--teal);
	text-decoration: underline;
}
.entech-jobs-list__summary {
	margin: 0.25rem 0 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--body-text);
}

/* Job detail page (single-job_opening.html → patterns/job-single.php) */
.entech-job__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1rem;
}
.entech-jobs-list__item .entech-job__badges {
	margin-top: 0;
}
.entech-badge--muted {
	color: var(--wp--preset--color--muted);
	border: 1px solid var(--wp--preset--color--line);
}
/* Informational cards (not links) shouldn't lift on hover. */
.entech-card--static:hover {
	border-color: var(--wp--preset--color--line);
	box-shadow: none;
	transform: none;
}
.entech-job__summary .entech-meta-list {
	margin-top: 0;
}
.entech-job__summary .entech-meta-list__row dt {
	flex-basis: 90px;
}
.entech-job__apply-link {
	display: block;
	margin-top: 1.5rem;
	text-align: center;
}
.entech-job__closed {
	margin: 1.25rem 0 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}
.entech-job__apply {
	margin-top: 3rem;
	padding-top: 2.5rem;
	border-top: 1px solid var(--wp--preset--color--line);
}
.entech-job__apply h2 {
	margin: 0 0 1.25rem;
}
@media (min-width: 782px) {
	.entech-job__aside > .entech-job__summary {
		position: sticky;
		top: calc(var(--entech-header-h) + var(--wp-admin--admin-bar--height, 0px) + 1.5rem);
	}
	.entech-job__aside {
		align-self: flex-start;
	}
}
/* Mobile: summary card (with its Apply jump link) goes above the description. */
@media (max-width: 781px) {
	.entech-job__layout {
		display: flex;
		flex-direction: column;
	}
	.entech-job__aside {
		order: -1;
	}
}

/* Application form additions (fields share the .entech-form base above) */
.entech-apply-form input,
.entech-apply-form select,
.entech-apply-form textarea {
	box-sizing: border-box;
}
.entech-form input[type="url"] {
	width: 100%;
	padding: 0.85rem 1rem;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 0.25rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--ink);
}
.entech-form input[type="url"]:focus {
	outline: none;
	border-color: var(--wp--preset--color--teal);
	box-shadow: 0 0 0 3px rgba(31, 132, 171, 0.15);
}
.entech-form__group {
	margin: 0 0 1.75rem;
	padding: 0;
	border: 0;
	min-width: 0;
}
.entech-form__group legend {
	margin-bottom: 1rem;
	padding: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--reading);
	color: var(--wp--preset--color--ink);
}
.entech-form__legend-note {
	margin: 0 0 1.5rem;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}
.entech-form__req {
	color: #b3261e;
}
.entech-form__optional {
	font-weight: 400;
	color: var(--wp--preset--color--muted);
}
.entech-form__hint {
	margin: 0.4rem 0 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}
.entech-form__error {
	margin: 0.4rem 0 0;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: #b3261e;
}
.entech-form__error[hidden] {
	display: none;
}
.entech-form [aria-invalid="true"] {
	border-color: #b3261e;
}
.entech-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 1.25rem;
}
@media (max-width: 600px) {
	.entech-form__row {
		grid-template-columns: 1fr;
	}
}
.entech-form__inline {
	display: flex;
	gap: 0.75rem;
}
.entech-form__inline input {
	flex: 1;
}
.entech-form .entech-form__inline select {
	width: auto;
	flex: 0 0 6.5rem;
}
.entech-form input[type="file"] {
	display: block;
	width: 100%;
	padding: 0.75rem;
	background: var(--wp--preset--color--surface);
	border: 1px dashed var(--wp--preset--color--line);
	border-radius: 0.25rem;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--body-text);
}
.entech-form input[type="file"]:focus-visible {
	outline: 2px solid var(--wp--preset--color--teal);
	outline-offset: 2px;
}
.entech-form input[type="file"]::file-selector-button {
	margin-right: 0.75rem;
	padding: 0.45rem 0.9rem;
	border: 1px solid var(--wp--preset--color--teal);
	border-radius: 0.25rem;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--teal);
	font-weight: 600;
	cursor: pointer;
}
.entech-form input[type="file"] + .entech-form__file-remove {
	margin-top: 0.4rem;
}
.entech-form__file-remove {
	padding: 0;
	border: 0;
	background: none;
	color: var(--wp--preset--color--teal);
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
	text-decoration: underline;
	cursor: pointer;
}
.entech-form__file-remove[hidden] {
	display: none;
}
[data-field="cover_letter"] textarea {
	margin-top: 0.75rem;
}
.entech-apply-form .entech-form__consent {
	margin-bottom: 0;
}
.entech-apply-form > .entech-form__error {
	margin-bottom: 0.5rem;
}
.entech-apply-form button[type="submit"] {
	margin-top: 1.5rem;
}
.entech-apply-form button[type="submit"]:disabled {
	opacity: 0.7;
	cursor: progress;
}
.entech-form__status {
	margin-top: 1.25rem;
	padding: 1rem 1.25rem;
	border: 1px solid #b3261e;
	border-radius: 0.25rem;
	background: rgba(179, 38, 30, 0.08);
	color: #b3261e;
	font-size: var(--wp--preset--font-size--small);
}
.entech-form__status[hidden] {
	display: none;
}
.entech-form-notice--info {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--body-text);
}
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Contact — form notices, honeypot, office map embeds */
.entech-form-notice {
	padding: 1rem 1.25rem;
	border-radius: 0.25rem;
	margin-bottom: 1.5rem;
	font-size: var(--wp--preset--font-size--small);
}
.entech-form-notice--success {
	background: rgba(31, 132, 171, 0.1);
	border: 1px solid var(--wp--preset--color--teal);
	color: var(--wp--preset--color--teal-hover);
}
.entech-form-notice--error {
	background: rgba(179, 38, 30, 0.08);
	border: 1px solid #b3261e;
	color: #b3261e;
}
.entech-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.entech-map {
	display: block;
	width: 100%;
	height: 220px;
	border: 0;
	border-radius: 0.5rem;
	background: var(--wp--preset--color--line);
}

/* Generic image-slot placeholder (Phase 4.1) — diagonal-stripe
   background, generalized so it can hold any
   aspect ratio (set per-instance via inline style="aspect-ratio:...")
   with zero layout shift once a real <img> replaces it later. */
.entech-img-placeholder {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-radius: 0.5rem;
	background: repeating-linear-gradient(
		45deg,
		var(--wp--preset--color--surface),
		var(--wp--preset--color--surface) 10px,
		var(--wp--preset--color--line) 10px,
		var(--wp--preset--color--line) 20px
	);
}
.entech-img-placeholder__label {
	max-width: 80%;
	text-align: center;
	padding: 0.5rem 1rem;
	border-radius: 0.25rem;
	background: rgba(255, 255, 255, 0.85);
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.entech-img-placeholder--dark {
	background: repeating-linear-gradient(
		45deg,
		var(--wp--preset--color--navy-800),
		var(--wp--preset--color--navy-800) 10px,
		var(--wp--preset--color--navy-900) 10px,
		var(--wp--preset--color--navy-900) 20px
	);
}
.entech-img-placeholder--dark .entech-img-placeholder__label {
	background: rgba(15, 30, 36, 0.85);
	color: var(--wp--preset--color--line);
}

/* Home — service cluster cards: accent top border (per-card --accent
   custom property set inline in services-overview.php) and a plain,
   dot-marked capability list reusing the reading/body-text pairing. */
.entech-card--service {
	border-top: 4px solid var(--accent, var(--wp--preset--color--teal));
}
.entech-capability-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}
.entech-capability-list li {
	position: relative;
	padding-left: 1.25rem;
}
.entech-capability-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.6em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--wp--preset--color--teal);
}

/* Home — Why EnTech: sequential connector between step cards, desktop
   only (mobile stacks the columns vertically, where a horizontal arrow
   would misread). */
@media (min-width: 901px) {
	.entech-why-step {
		position: relative;
	}
	.entech-why-step:not(:last-child)::after {
		content: "→";
		position: absolute;
		top: 50%;
		right: -1.4rem;
		transform: translateY(-50%);
		font-size: 1.5rem;
		color: var(--wp--preset--color--line);
		z-index: 1;
	}
}

/* Home — "Trusted By" logo marquee (patterns/clients.php). One slow,
   continuous strip: the list is rendered twice and the rail slides by
   exactly -50%, so the loop is seamless. Each <ul> carries its own
   trailing gap (padding-inline-end) so the seam spacing matches the rest.
   Logos are plain images — no border, hover or pointer — since they
   aren't links. --w is the logo's desktop width in px (from the pattern);
   --logo-scale shrinks every logo proportionally on smaller screens. */
.entech-marquee {
	--logo-scale: 1.1;
	--logo-gap: 4.5rem;
	--marquee-duration: 280s;
}
.entech-marquee__viewport {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.entech-marquee__rail {
	display: flex;
	width: max-content;
	animation: entech-marquee var(--marquee-duration) linear infinite;
}
.entech-marquee__list {
	display: flex;
	align-items: center;
	gap: var(--logo-gap);
	margin: 0;
	padding: 0.5rem var(--logo-gap) 0.5rem 0;
	list-style: none;
}
.entech-marquee__list li {
	flex: none;
	display: flex;
}
.entech-marquee__list img {
	display: block;
	width: calc(var(--w) * 1px * var(--logo-scale));
	height: auto;
	max-width: none;
	/* Muted colour: uniform, calm strip while round seals stay legible. */
	filter: grayscale(0.5);
	opacity: 0.85;
}
/* Hover-pause is scoped to the strip itself. */
.entech-marquee__viewport:hover .entech-marquee__rail {
	animation-play-state: paused;
}
@keyframes entech-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

@media (max-width: 781px) {
	.entech-marquee {
		--logo-scale: 0.8;
		--logo-gap: 2.75rem;
	}
}

/* Reduced motion: no automatic movement at all — the strip becomes a
   plain row the visitor scrolls/swipes themselves (a wrapping grid of 59
   logos would be ~2000px tall on a phone). The loop copy goes away;
   marquee.js makes the row keyboard-focusable in this mode. */
@media (prefers-reduced-motion: reduce) {
	.entech-marquee__viewport {
		overflow-x: auto;
		-webkit-mask-image: none;
		mask-image: none;
		scrollbar-width: thin;
	}
	.entech-marquee__viewport:focus-visible {
		outline: 2px solid var(--wp--preset--color--teal);
		outline-offset: 2px;
	}
	.entech-marquee__rail {
		animation: none;
	}
	.entech-marquee__list {
		padding-left: 0.5rem;
		padding-right: 0.5rem;
	}
	.entech-marquee__list[aria-hidden="true"] {
		display: none;
	}
}

/* Footer columns — the 3 unset-width columns (office/quick-links/general
   enquiries) get squeezed between core's single ~782px stacking
   breakpoint and the 1280px content width, tight enough at 20px bold
   headings to force character-level breaks in some browsers. Neutralize
   the break directly (defensive backstop, since no word-break/
   overflow-wrap rule exists anywhere in this theme's own CSS — this is
   coming from somewhere upstream) and give columns more room earlier via
   a 2-per-row wrap, same breakpoint pattern used by .entech-card-grid. */
.entech-footer h4 {
	overflow-wrap: normal;
	word-break: normal;
}
@media (max-width: 1024px) {
	.entech-footer .wp-block-columns {
		flex-wrap: wrap;
	}
	.entech-footer .wp-block-columns > .wp-block-column {
		flex: 1 1 45%;
	}
}
