/*
Theme Name: HTROBOT Candidate
Version: 0.3.6
Requires at least: 7.1
Requires PHP: 8.3
Text Domain: htrobot
*/

@font-face {
	font-family: "Arimo";
	src: url("assets/fonts/Arimo.1034e59331df.woff2") format("woff2"), url("assets/fonts/Arimo.ttf") format("truetype");
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
}

:root {
	--ht-brand: #164de5;
	--ht-ink: #101a3b;
	--ht-muted: #56617a;
	--ht-surface: #f3f7fc;
	--ht-white: #ffffff;
	--ht-border: #d2ddf1;
	--ht-error: #ad2334;
	--ht-focus: #739fff;
	--ht-space-4: 4px;
	--ht-space-8: 8px;
	--ht-space-12: 12px;
	--ht-space-18: 18px;
	--ht-space-24: 24px;
	--ht-space-32: 32px;
	--ht-radius: 4px;
	font-family: "Arimo", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:lang(ar) { font-family: "Noto Sans Arabic", "Geeza Pro", Tahoma, sans-serif; }
:lang(ja) { font-family: "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif; }
:lang(ko) { font-family: "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
:lang(th) { font-family: Thonburi, "Leelawadee UI", Tahoma, sans-serif; }
:lang(lo) { font-family: "Lao Sangam MN", "Leelawadee UI", sans-serif; }

* { box-sizing: border-box; }

html {
	background: var(--ht-white);
	color: var(--ht-ink);
	line-height: 1.5;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--ht-white);
	color: var(--ht-ink);
	overflow-wrap: anywhere;
}

body, button, input, textarea, select { font-family: inherit; }
a { color: var(--ht-brand); text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--ht-focus); outline-offset: 3px; }
img { max-width: 100%; height: auto; }

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

.site-shell,
.ht-page-content > .wp-block-group,
.ht-page-content > .wp-block-heading {
	width: min(1216px, calc(100% - 64px));
	margin-inline: auto;
}

.site-header {
	position: relative;
	z-index: 20;
	background: var(--ht-white);
	border-block-end: 1px solid transparent;
}

.site-header__inner {
	min-height: 80px;
	display: flex;
	align-items: center;
	gap: var(--ht-space-24);
}

.site-brand {
	flex: 0 0 auto;
	color: var(--ht-brand);
	font-size: 24px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	letter-spacing: -.02em;
}

.site-brand--logo img {
	display: block;
	width: auto;
	max-width: 220px;
	max-height: 56px;
}

.site-primary { margin-inline-start: auto; }

.site-menu,
.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: clamp(18px, 2.5vw, 48px);
}

.site-menu a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--ht-ink);
	font-size: 14px;
	text-decoration: none;
	border-block-end: 2px solid transparent;
}

.site-menu a:hover,
.site-menu .current-menu-item > a,
.site-menu a[aria-current="page"] {
	color: var(--ht-brand);
	border-block-end-color: currentColor;
}

.nav-toggle {
	display: none;
	min-height: 44px;
	padding: 0 10px;
	color: var(--ht-ink);
	background: var(--ht-white);
	border: 1px solid transparent;
	border-radius: var(--ht-radius);
	font-size: 14px;
	cursor: pointer;
}

.language-menu { position: relative; flex: 0 0 auto; }

.language-menu > summary {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 0 6px;
	font-size: 14px;
	cursor: pointer;
	list-style: none;
}

.language-menu > summary::-webkit-details-marker { display: none; }
.language-menu > summary::after { content: "▾"; margin-inline-start: 6px; font-size: 10px; }
.language-menu[open] > summary::after { content: "▴"; }

.language-menu__panel {
	position: absolute;
	inset-block-start: calc(100% + 4px);
	inset-inline-end: 0;
	width: min(720px, calc(100vw - 36px));
	max-height: min(70vh, 480px);
	overflow: auto;
	padding: var(--ht-space-18);
	background: var(--ht-white);
	border: 1px solid var(--ht-border);
	border-radius: var(--ht-radius);
	box-shadow: 0 12px 32px rgb(16 26 59 / 14%);
}

.site-main { min-height: calc(100vh - 166px); padding-block: var(--ht-space-24) 48px; }
.ht-page-content > *:first-child { margin-block-start: 0; }
.ht-home-page .wp-block-columns { margin-block: 0; }
.ht-home-page .wp-block-column { min-width: 0; }

.ht-home-hero > .wp-block-group__inner-container,
.ht-starting > .wp-block-group__inner-container,
.ht-custom > .wp-block-group__inner-container,
.ht-home-note > .wp-block-group__inner-container {
	max-width: none !important;
}

.ht-home-hero { padding: var(--ht-space-24); background: var(--ht-surface); }

.ht-home-hero__columns {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr);
	gap: var(--ht-space-32);
	align-items: center;
}

.ht-home-hero__copy,
.ht-home-hero__media { min-width: 0; }

.ht-home-hero__media figure,
.ht-home-hero__media img { display: block; margin: 0; width: 100%; }

.ht-home-hero__media img {
	height: 270px;
	object-fit: contain;
	background: var(--ht-white);
}

.ht-eyebrow,
.product-kicker {
	margin: 0 0 22px;
	color: var(--ht-brand);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
}

.ht-hero-title {
	margin: 0;
	max-width: 720px;
	font-size: clamp(42px, 4.1vw, 58px);
	font-weight: 700;
	line-height: 1.06;
	letter-spacing: -.035em;
}

:lang(de) .ht-hero-title,
:lang(de) .ht-section-title { hyphens: auto; }

.ht-hero-lede { margin: 18px 0 0; color: var(--ht-muted); font-size: 18px; line-height: 1.5; }

.ht-home-page .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-block-start: 18px;
}

.ht-home-page .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 220px;
	min-height: 44px;
	padding: 10px 18px;
	border: 1px solid var(--ht-brand);
	border-radius: var(--ht-radius);
	background: var(--ht-brand);
	color: var(--ht-white);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}

.ht-home-page .is-style-outline > .wp-block-button__link { background: var(--ht-white); color: var(--ht-brand); }
.ht-starting { padding-block-start: 28px; }
.ht-section-title { margin: 0 0 18px; font-size: 30px; line-height: 1.15; letter-spacing: -.02em; }

.ht-card-grid {
	display: block;
}

.ht-card-grid > .wp-block-group__inner-container {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.ht-entry-card { min-width: 0; padding: 12px; background: var(--ht-surface); }
.ht-entry-card > .wp-block-group__inner-container { min-width: 0; }
.ht-entry-card figure { margin: 0 0 14px; }

.ht-entry-card img {
	display: block;
	width: 100%;
	height: 120px;
	object-fit: contain;
	background: var(--ht-white);
}

.ht-entry-card h3 { margin: 0 0 8px; font-size: 21px; line-height: 1.2; }
.ht-entry-card p { margin: 0 0 8px; color: var(--ht-muted); font-size: 14px; }
.ht-entry-card .ht-card-link { margin: 0; color: var(--ht-brand); font-weight: 700; }
.ht-entry-card .ht-card-link a { text-decoration: none; }

.ht-custom {
	margin-block-start: 24px;
	padding: 24px clamp(24px, 8vw, 128px);
	background: var(--ht-surface);
}

.ht-custom__columns {
	display: grid;
	grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr);
	gap: clamp(32px, 8vw, 128px);
	align-items: center;
}

.ht-custom figure { margin: 0; }

.ht-custom img {
	display: block;
	width: 100%;
	height: 150px;
	object-fit: contain;
	background: var(--ht-white);
}

.ht-custom h2 { margin: 0; font-size: 30px; line-height: 1.15; }
.ht-custom p { margin: 14px 0 0; color: var(--ht-muted); font-size: 16px; }

.ht-home-note {
	margin-block-start: 18px;
	padding: 12px 18px;
	border-inline-start: 3px solid var(--ht-border);
	color: var(--ht-muted);
	font-size: 13px;
}

.ht-home-note p { margin: 0; }
.ht-standard-page { padding-block: 32px; }

.ht-section-page .ht-page-content > .wp-block-group,
.ht-section-page .ht-page-content > .ht-feature-grid,
.ht-section-page .ht-page-content > .ht-wide-panel,
.ht-section-page .ht-page-content > .ht-resource-tabs {
	width: min(1216px, calc(100% - 64px));
	margin-inline: auto;
}

.ht-section-intro { padding-block: 12px 24px; }
.ht-section-intro .ht-eyebrow { margin-block-end: 20px; }

.ht-section-hero-title {
	max-width: 760px;
	margin: 0;
	font-size: clamp(42px, 4.4vw, 58px);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -.035em;
}

.ht-section-lede {
	max-width: 780px;
	margin: 18px 0 0;
	color: var(--ht-muted);
	font-size: 18px;
}

.ht-section-page .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-block-start: 18px;
}

.ht-section-page .wp-block-button__link,
.ht-contact-form button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 220px;
	min-height: 44px;
	padding: 10px 18px;
	border: 1px solid var(--ht-brand);
	border-radius: var(--ht-radius);
	background: var(--ht-brand);
	color: var(--ht-white);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}

.ht-section-page .is-style-outline > .wp-block-button__link {
	background: var(--ht-white);
	color: var(--ht-brand);
}

.ht-products-layout {
	display: block;
}

.ht-products-layout > .wp-block-group__inner-container {
	display: grid;
	grid-template-columns: minmax(190px, .65fr) minmax(0, 3fr);
	gap: 24px;
	align-items: start;
}

.ht-category-panel { padding-block: 2px; }
.ht-category-panel h2 { margin: 0 0 12px; font-size: 20px; }
.ht-source-status { color: var(--ht-muted); font-size: 13px; }

.ht-category-list {
	list-style: none;
	margin: 20px 0 0;
	padding: 0;
	display: grid;
	gap: 12px;
}

.ht-category-list li {
	padding-block-end: 8px;
	border-block-end: 1px solid var(--ht-border);
	color: var(--ht-ink);
	font-size: 15px;
}

.ht-product-grid {
	display: block;
}

.ht-product-grid > .wp-block-group__inner-container {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.ht-product-grid .ht-entry-card { padding: 12px; }
.ht-product-grid .ht-entry-card img { height: 160px; }

.ht-product-type + .ht-product-type { margin-block-start: 28px; }
.ht-product-type > .wp-block-group__inner-container > h3 { margin: 0 0 14px; font-size: 20px; }

.ht-inner-hero {
	display: block;
	padding: 24px;
	background: var(--ht-surface);
}

.ht-inner-hero > .wp-block-group__inner-container {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr);
	gap: 32px;
	align-items: center;
}

.ht-inner-hero__copy,
.ht-inner-hero__media { min-width: 0; }
.ht-inner-hero__media figure { margin: 0; }
.ht-inner-hero__media img { display: block; width: 100%; height: 270px; object-fit: contain; background: var(--ht-white); }

.ht-feature-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin-block-start: 24px;
}

.wp-block-group.ht-feature-grid { display: block; }

.wp-block-group.ht-feature-grid > .wp-block-group__inner-container {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.ht-feature-card,
.ht-wide-panel,
.ht-contact-aside {
	min-width: 0;
	padding: 24px;
	background: var(--ht-surface);
}

.ht-feature-card h2,
.ht-wide-panel h2,
.ht-contact-aside h2 { margin: 0 0 14px; font-size: 24px; line-height: 1.2; }
.ht-feature-card p,
.ht-wide-panel p,
.ht-contact-aside p { margin: 0; color: var(--ht-muted); }
.ht-feature-card .wp-block-buttons { align-items: stretch; flex-direction: column; }
.ht-feature-card .wp-block-button__link { width: 100%; }
.ht-wide-panel { margin-block-start: 24px; }

.ht-resource-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	padding-block: 4px 18px;
	color: var(--ht-brand);
	font-weight: 700;
}

.ht-resource-grid {
	display: block;
}

.ht-resource-grid > .wp-block-group__inner-container {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.ht-resource-grid .ht-feature-card { min-height: 190px; }

.ht-download-card .wp-block-file {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-block-start: 18px;
}

.ht-download-card .wp-block-file__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 18px;
	border-radius: var(--ht-radius);
	background: var(--ht-brand);
	color: var(--ht-white);
	font-weight: 700;
	text-decoration: none;
}

.ht-contact-layout {
	display: block;
}

.ht-contact-layout > .wp-block-group__inner-container {
	display: grid;
	grid-template-columns: minmax(300px, .78fr) minmax(0, 1.6fr);
	grid-template-areas: "aside form";
	gap: 32px;
	align-items: start;
}

.ht-contact-form {
	grid-area: form;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px 24px;
}

.ht-contact-aside { grid-area: aside; }
.ht-contact-aside figure { margin: 0 0 20px; }
.ht-contact-aside img { display: block; width: 100%; height: 230px; object-fit: contain; background: var(--ht-white); }
.ht-field { min-width: 0; }
.ht-field--wide { grid-column: 1 / -1; }
.ht-field label { display: block; margin-block-end: 8px; font-size: 14px; }

.ht-field input,
.ht-field textarea {
	display: block;
	width: 100%;
	min-height: 42px;
	padding: 10px 12px;
	border: 1px solid var(--ht-border);
	border-radius: var(--ht-radius);
	background: var(--ht-white);
	color: var(--ht-ink);
	font-size: 16px;
}

.ht-field textarea { min-height: 150px; resize: vertical; }
.ht-field input:focus,
.ht-field textarea:focus { outline: 3px solid var(--ht-focus); outline-offset: 2px; }

.ht-contact-form button[disabled] {
	cursor: not-allowed;
	background: #dfe6f5;
	border-color: #c3cde0;
	color: #56617a;
}

.ht-contact-status { max-width: 680px; margin: 10px 0 0; color: var(--ht-muted); font-size: 13px; }
.site-footer { border-block-start: 1px solid var(--ht-border); padding-block: 24px; }

.site-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.site-brand--footer { font-size: 20px; }
.footer-menu { gap: 18px; flex-wrap: wrap; }
.footer-menu a { font-size: 14px; text-decoration: none; }

.product-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, .78fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: start;
	padding-block: 32px;
}

.product-layout > * { min-width: 0; }

.product-layout h1,
.ht-standard-page h1 {
	margin: 0 0 20px;
	font-size: clamp(36px, 5vw, 64px);
	line-height: 1.04;
	letter-spacing: -.035em;
}

.product-media { position: sticky; inset-block-start: 16px; }
.product-media img { display: block; background: var(--ht-surface); border-radius: var(--ht-radius); }
.product-body { font-size: 17px; }
.product-layout.ht-long-product-title:not(.ht-manipulator-detail) h1 { font-size: clamp(30px, 3.3vw, 42px); line-height: 1.15; }
.product-body .wp-block-table { overflow-x: auto; margin-block: 32px; }

.product-body table {
	width: 100%;
	min-width: 544px;
	border-collapse: collapse;
	background: var(--ht-white);
}

.product-body th,
.product-body td {
	padding: 12px 14px;
	border: 1px solid var(--ht-border);
	text-align: start;
	vertical-align: top;
}

.product-body th { background: var(--ht-surface); font-weight: 700; }
.product-body figure { margin-inline: 0; }

.language-panel {
	margin-block-start: 48px;
	padding-block-start: 20px;
	border-block-start: 1px solid var(--ht-border);
}

.language-panel h2 {
	margin: 0 0 12px;
	color: var(--ht-muted);
	font-size: 13px;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.language-switcher ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0;
	margin: 0;
}

.language-switcher a,
.language-switcher span {
	display: inline-flex;
	min-height: 36px;
	align-items: center;
	padding: 5px 10px;
	border: 1px solid var(--ht-border);
	border-radius: var(--ht-radius);
	background: var(--ht-white);
	font-size: 13px;
	text-decoration: none;
}

.language-switcher a[aria-current="page"] {
	border-color: var(--ht-brand);
	box-shadow: inset 0 -2px var(--ht-brand);
	font-weight: 700;
}

.language-switcher span[aria-disabled="true"] {
	color: #747c83;
	background: var(--ht-surface);
	border-style: dashed;
}

.empty-state {
	margin-block: 32px;
	padding: clamp(24px, 4vw, 48px);
	background: var(--ht-surface);
	border-inline-start: 4px solid var(--ht-brand);
}

.synthetic-note { color: var(--ht-muted); font-size: 13px; }

[dir="rtl"] .ht-eyebrow,
[dir="rtl"] .product-kicker,
[dir="rtl"] .language-panel h2 { letter-spacing: 0; text-transform: none; }
[dir="rtl"] .product-body table { direction: rtl; }

@media (max-width: 1000px) and (min-width: 761px) {
	.site-header__inner { gap: 14px; }
	.site-menu { gap: 14px; }
	.site-menu a { font-size: 13px; }
}

@media (max-width: 760px) {
	.site-shell,
	.ht-page-content > .wp-block-group,
	.ht-page-content > .wp-block-heading { width: calc(100% - 36px); }

	.site-header__inner { min-height: 76px; gap: 10px; }
	.site-brand { font-size: 24px; }

	.ht-js .nav-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		margin-inline-start: auto;
	}

	.site-primary {
		position: absolute;
		inset-block-start: 100%;
		inset-inline: 18px;
		margin: 0;
		padding: 10px;
		background: var(--ht-white);
		border: 1px solid var(--ht-border);
		border-radius: var(--ht-radius);
		box-shadow: 0 12px 32px rgb(16 26 59 / 14%);
	}

	.ht-js .site-primary[data-open="false"] { display: none; }
	.site-menu { align-items: stretch; flex-direction: column; gap: 0; }
	.site-menu a { width: 100%; padding-inline: 10px; }

	.language-menu__panel {
		position: fixed;
		inset-block-start: 70px;
		inset-inline: 18px;
		width: auto;
	}

	.site-main { padding-block-start: 24px; }
	.ht-home-hero { padding: 24px; }

	.ht-home-hero__columns,
	.ht-card-grid > .wp-block-group__inner-container,
	.ht-custom__columns {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.ht-home-hero__media img { height: 210px; }
	.ht-eyebrow { margin-block-end: 20px; }
	.ht-hero-title { font-size: 34px; line-height: 1.06; }
	.ht-hero-lede { font-size: 18px; }

	.ht-home-page .wp-block-buttons {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
	}

	.ht-home-page .wp-block-button,
	.ht-home-page .wp-block-button__link { width: 100%; }
	.ht-section-title { font-size: 28px; }
	.ht-section-page .ht-page-content > .wp-block-group,
	.ht-section-page .ht-page-content > .ht-feature-grid,
	.ht-section-page .ht-page-content > .ht-wide-panel,
	.ht-section-page .ht-page-content > .ht-resource-tabs { width: calc(100% - 36px); }
	.ht-section-intro { padding-block-start: 4px; }
	.ht-section-hero-title { font-size: 34px; }
	.ht-products-layout,
	.ht-product-grid,
	.ht-inner-hero,
	.ht-feature-grid,
	.ht-resource-grid,
	.ht-contact-layout,
	.ht-contact-form { grid-template-columns: minmax(0, 1fr); }
	.ht-products-layout > .wp-block-group__inner-container,
	.ht-product-grid > .wp-block-group__inner-container,
	.ht-inner-hero > .wp-block-group__inner-container,
	.wp-block-group.ht-feature-grid > .wp-block-group__inner-container,
	.ht-resource-grid > .wp-block-group__inner-container,
	.ht-contact-layout > .wp-block-group__inner-container { grid-template-columns: minmax(0, 1fr); }
	.ht-contact-layout > .wp-block-group__inner-container { grid-template-areas: "form" "aside"; }
	.ht-section-page .wp-block-buttons { display: grid; grid-template-columns: minmax(0, 1fr); }
	.ht-section-page .wp-block-button,
	.ht-section-page .wp-block-button__link { width: 100%; }
	.ht-inner-hero { padding: 24px; }
	.ht-inner-hero > .wp-block-group__inner-container { gap: 24px; }
	.ht-inner-hero__media img { height: 210px; }
	.ht-product-grid .ht-entry-card > .wp-block-image,
	.ht-product-grid .ht-entry-card > .ht-entry-card__copy { min-width: 0; }
	.ht-feature-card,
	.ht-wide-panel,
	.ht-contact-aside { padding: 24px; }
	.ht-field--wide { grid-column: auto; }
	.ht-card-grid > .wp-block-group__inner-container { gap: 18px; }

	.ht-entry-card > .wp-block-group__inner-container {
		display: grid;
		grid-template-columns: 90px minmax(0, 1fr);
		gap: 12px;
		align-items: center;
		min-height: 144px;
	}

	.ht-entry-card figure { margin: 0; }
	.ht-entry-card img { height: 120px; }
	.ht-entry-card__copy { min-width: 0; }
	.ht-custom { padding: 24px; }
	.ht-custom img { height: 210px; }
	.ht-custom h2 { font-size: 28px; }

	.site-footer__inner { align-items: flex-start; flex-direction: column; }
	.footer-menu { align-items: flex-start; gap: 12px 18px; }
	.product-layout { grid-template-columns: minmax(0, 1fr); }
	.product-media { position: static; order: -1; }
	.product-body { font-size: 16px; }
}

/* M4 enquiry states reuse the Contact layout. */
.ht-enquiry-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; grid-column:1/-1; border:0; padding:0; margin:0; min-width:0; }
.ht-field-error { color:#a52222; font-size:.9rem; }
.ht-contact-form [hidden] { display:none !important; }
.ht-contact-form [role="status"] { overflow-wrap:anywhere; }
.ht-contact-form button { min-height:44px; }
.ht-contact-form [aria-invalid="true"] { border-color:#a52222; }
@media(max-width:600px) { .ht-enquiry-fields { grid-template-columns:minmax(0,1fr); } }

/* Products and source-backed category directories. */
.ht-products-view .ht-section-intro,
.ht-category-view .ht-section-intro { padding-block: 24px 16px; }
.ht-products-view .ht-section-intro h1,
.ht-category-view .ht-section-intro h1 { margin: 0; font-size: clamp(36px, 4vw, 48px); line-height: 1.12; letter-spacing: -.03em; }
.ht-products-view .ht-section-intro .ht-eyebrow { margin-bottom: 10px; }
.ht-products-view .ht-section-intro p,
.ht-category-view .ht-section-intro p { margin-block: 10px 0; }
.ht-category-view .ht-standard-page__header { display: none; }
.ht-products-view .ht-wide-panel.ht-catalog-panel { padding: 0; margin-top: 0; margin-bottom: 56px; background: transparent; }
.ht-catalog-categories { margin-bottom: 24px; }
.ht-catalog-categories h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.ht-catalog-categories ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.ht-catalog-categories a, .ht-category-back { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border: 1px solid var(--ht-border); border-radius: 24px; text-decoration: none; font-size: 15px; }
.ht-catalog-categories li:first-child a { background: var(--ht-ink, #142b42); color: white; border-color: transparent; }
.ht-category-back { margin-bottom: 24px; }
.ht-catalog-results > h2 { margin: 0 0 12px; font-size: 22px; }
.ht-catalog-search { max-width: 600px; margin-bottom: 28px; }
.ht-catalog-search label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--ht-muted); }
.ht-catalog-search > div { display: flex; gap: 8px; }
.ht-catalog-search input { min-width: 0; flex: 1; height: 46px; padding: 10px 14px; border: 1px solid var(--ht-border); border-radius: 6px; background: white; font: inherit; }
.ht-catalog-search button { min-height: 46px; padding: 10px 22px; border: 0; border-radius: 6px; background: #075ca8; color: white; font: inherit; cursor: pointer; }
.ht-catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.ht-catalog-contained { max-width: 1216px; margin-inline: auto; padding-inline: 32px; box-sizing: content-box; }
.ht-source-service .ht-existing-section-source .ht-catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ht-source-section .ht-feature-grid:has(.ht-entry-card),
.ht-source-section .ht-feature-grid:has(.ht-entry-card) > .wp-block-group__inner-container,
.ht-source-section .ht-existing-section-source .ht-catalog-grid > .wp-block-group__inner-container { align-items: start; }
.ht-source-section .ht-entry-card > .wp-block-group__inner-container { display: block; }
.ht-source-section .ht-entry-card figure { margin-bottom: 14px; }
.ht-source-description { margin-top: 8px; }
.ht-source-description summary { cursor: pointer; color: var(--ht-brand); min-height: 44px; padding-block: 10px; font-size: 15px; font-weight: 600; }
.ht-source-description summary:focus-visible { outline: 3px solid var(--ht-brand); outline-offset: 3px; }
.ht-source-description .ht-description-less,
.ht-source-description[open] .ht-description-more { display: none; }
.ht-source-description[open] .ht-description-less { display: inline; }
.ht-source-description__body { margin-top: 10px; overflow-wrap: anywhere; }
.wp-block-group.ht-catalog-grid { display: block; }
.wp-block-group.ht-catalog-grid > .wp-block-group__inner-container { display: grid; grid-template-columns: inherit; gap: inherit; }
.ht-category-products .ht-catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ht-catalog-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #e1e8ef; border-radius: 12px; background: white; box-shadow: 0 4px 16px rgb(20 43 66 / 4%); }
.ht-catalog-card__media { display: block; position: relative; flex: none; aspect-ratio: 4 / 3; background: #f4f7fa; }
.ht-catalog-card__media img { position: absolute; inset: 20px; display: block; width: calc(100% - 40px); height: calc(100% - 40px); object-fit: contain; filter: drop-shadow(0 6px 5px rgb(20 43 66 / 9%)); }
.ht-category-products .ht-catalog-card__media { aspect-ratio: 4 / 3; }
.ht-category-products .ht-catalog-card__media--dark { background: #1f1f1f; aspect-ratio: 5 / 3; }
.ht-category-products .ht-catalog-card__media--dark img { inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
.ht-catalog-card__media--dark img { filter: none; }
.ht-category-view .ht-standard-page { padding-top: 0; }
.ht-category-view .ht-section-intro { width: 100%; }
.ht-catalog-card > div { display: flex; flex-direction: column; flex: 1; padding: 18px; }
.ht-catalog-card h3 { margin: 0 0 20px; font-size: 17px; line-height: 1.45; font-weight: 600; }
.ht-catalog-card h3 a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; text-decoration: none; color: #17334e; }
.ht-catalog-card .ht-card-link { margin-top: auto; min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; }
.ht-catalog-card a:focus-visible, .ht-catalog-search :focus-visible, .ht-catalog-categories a:focus-visible, .ht-category-back:focus-visible { outline: 3px solid #0879d1; outline-offset: 3px; }
.ht-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 32px 0 0; padding: 0; list-style: none; }
.ht-pagination a, .ht-pagination span { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--ht-border); border-radius: 6px; text-decoration: none; }
.ht-pagination .current { background: #17334e; color: white; }
@media (max-width: 1000px) {
	.ht-catalog-grid, .ht-category-products .ht-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
	.ht-source-service .ht-existing-section-source .ht-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.ht-catalog-grid, .ht-category-products .ht-catalog-grid { grid-template-columns: minmax(0, 1fr); }
	.ht-source-service .ht-existing-section-source .ht-catalog-grid { grid-template-columns: minmax(0, 1fr); }
	.ht-catalog-contained { padding-inline: 18px; }
	.ht-catalog-card__media { aspect-ratio: 4 / 3; }
	.ht-category-products .ht-catalog-card__media { aspect-ratio: 4 / 3; }
	.ht-catalog-search button { padding-inline: 16px; }
}

/* Source-backed English sections; original media and native blocks remain editable. */
.ht-source-content p { max-width: 72ch; margin: 0 0 1.25em; line-height: 1.75; }
.ht-source-content .ht-download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ht-source-content .ht-download-item { min-width: 0; padding: 20px; background: white; border: 1px solid var(--ht-border); border-radius: 8px; }
.ht-source-content .ht-download-item h2 { margin-top: 0; font-size: 22px; }
.ht-source-content h2 { margin-block: 1.5em .75em; }
.ht-source-content .wp-block-video { max-width: 880px; margin: 24px 0; }
.ht-source-content video, .ht-original-video video { display: block; width: 100%; max-height: 70vh; background: #111; }
.ht-original-video { margin-block: 32px; }
.ht-original-video figure { margin: 0; }
.ht-source-cases p { font-size: 20px; line-height: 1.65; }
.ht-manipulator-detail .product-media { background: #1f1f1f; padding: 8px; }
.ht-manipulator-detail .product-media img { object-fit: contain; }
.ht-related-products { margin-top: 32px; }
.ht-related-products__grid > .wp-block-group__inner-container { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ht-related-products figure { min-width: 0; margin: 0; }
.ht-related-products img { width: 100%; height: 160px; object-fit: contain; background: #f4f7fa; }
.ht-related-products figcaption { font-size: 14px; line-height: 1.5; margin-top: 8px; }
@media (max-width: 600px) {
	.ht-category-products .ht-catalog-card__media--dark { aspect-ratio: 5 / 3; }
	.ht-related-products__grid > .wp-block-group__inner-container { grid-template-columns: minmax(0, 1fr); }
	.ht-source-content .ht-download-grid { grid-template-columns: minmax(0, 1fr); }
}
