/* WordPress bridge: maps Gutenberg block markup onto the unchanged Astro styles in site.css.
   Keep this file small; every rule here is a parity adaptation, not new design. */

/* Template-part wrappers must not create boxes (keeps the sticky header sticky). */
.site-header-part,
.site-footer-part {
	display: contents;
}
main.wp-block-group,
.wp-site-blocks {
	padding: 0;
}
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

.lang-switch {
	display: inline-grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
	border-radius: 999px;
	color: inherit;
	font: 700 .78rem/1 "IBM Plex Sans Thai", sans-serif;
	letter-spacing: .08em;
	text-decoration: none;
	transition: background-color .2s, color .2s, border-color .2s;
}
.lang-switch:hover,
.lang-switch:focus-visible {
	background: var(--ember);
	border-color: var(--ember);
	color: #fff;
}
.dtsun-en-only { display: none; }
html[lang^="en"] .dtsun-th-only { display: none; }
html[lang^="en"] .dtsun-en-only { display: inline; }
@media (max-width: 780px) {
	.lang-switch {
		min-width: 36px;
		height: 36px;
	}
}

/* Neutralise block defaults that site.css does not expect. */
:where(.wp-block-group, .wp-block-image, .wp-block-buttons, .wp-block-button) {
	margin: 0;
}
figure.wp-block-image {
	margin: 0;
}
.wp-block-image img {
	height: auto;
	max-width: 100%;
}
.wp-block-heading {
	margin: 0;
}

/* Buttons: core/button -> .btn / .btn--ghost / .btn--white */
.wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.wp-block-button .wp-block-button__link {
	--bg: var(--ember);
	--fg: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 12px 22px;
	border: 2px solid var(--bg);
	border-radius: var(--radius);
	background: var(--bg);
	color: var(--fg);
	font: 600 1rem/1.2 var(--font-body);
	text-decoration: none;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.wp-block-button .wp-block-button__link:hover {
	--bg: var(--oxblood);
}
.wp-block-button .wp-block-button__link:active {
	transform: translateY(1px);
}
.wp-block-button.is-style-ghost .wp-block-button__link {
	--bg: transparent;
	--fg: currentColor;
	border-color: currentColor;
}
.wp-block-button.is-style-ghost .wp-block-button__link:hover {
	--bg: rgba(255, 255, 255, 0.1);
}
.on-light .wp-block-button.is-style-ghost .wp-block-button__link:hover {
	--bg: rgba(30, 27, 26, 0.06);
}
.wp-block-button.is-style-white .wp-block-button__link {
	--bg: #fff;
	--fg: var(--ember);
}
.wp-block-button.is-style-white .wp-block-button__link:hover {
	--bg: var(--concrete);
}

/* Hero built from core blocks: group.hero > group.hero__slide > figure.hero__media + group.wrap.hero__content */
.hero .hero__media {
	margin: 0;
}
.hero .hero__media img {
	height: 100%;
	max-width: none;
}
.hero__title br {
	content: '';
}
.hero::after {
	/* reflective tape (Astro renders an element; here a pseudo-element keeps the editor markup clean) */
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	height: 14px;
	background: linear-gradient(180deg, var(--signal) 0 32%, var(--silver) 32% 68%, var(--signal) 68% 100%);
}
.hero .hero__ctas {
	margin-top: 32px;
}
.hero .hero__phone {
	margin-top: 26px;
}

/* Section head: core heading/paragraph keep their site.css classes. */
.section-head > .wp-block-heading,
.section-head > p {
	margin: 0;
}

/* Story built from groups; JS adds .story__visual and .story__num. */
.story__steps {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: story;
}
.story__step figure.story__inline {
	margin: 18px 0 0;
	aspect-ratio: 4 / 3;
}
.story__step figure.story__inline img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
@media (min-width: 960px) {
	.story__step figure.story__inline {
		display: none;
	}
	.no-js .story__step figure.story__inline {
		display: block;
	}
}

/* Training figure with caption = core/image with caption. */
.training__photo .wp-element-caption {
	margin: 0;
}

/* Company intro / about split images. */
figure.split__img {
	margin: 0;
}
figure.split__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Banner = linked core/image. */
figure.banner,
figure.banner a {
	display: block;
	margin: 0;
}
figure.banner img {
	width: 100%;
	height: auto;
}

/* CTA band tape + action links. */
.cta-band::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 14px;
	background: linear-gradient(180deg, var(--signal) 0 32%, var(--silver) 32% 68%, var(--signal) 68% 100%);
}
.cta-band__actions a:not(.wp-block-button__link) {
	color: #fff;
	font-weight: 600;
}
.cta-band__actions .wp-block-buttons {
	margin: 0;
}
.cta-band__actions .wp-block-button .wp-block-button__link {
	color: var(--fg); /* beats site.css ".cta-band__actions a:not(.btn)" */
}

/* About facts made of groups/paragraphs instead of dl/dt/dd. */
.facts > .wp-block-group {
	padding: 22px 20px 22px 0;
	border-bottom: 1px solid var(--line);
}
.facts .facts__label {
	color: var(--steel);
	font-size: var(--step--1);
}
.facts .facts__value {
	margin: 4px 0 0;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: var(--step-1);
	line-height: 1.35;
}
.page-hero .page-hero__bg {
	margin: 0;
}
.page-hero .page-hero__bg img {
	height: 100%;
}

/* Product rail controls rendered by the block (Astro places them in the section head). */
.rail--wp .rail__bar {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin-bottom: 24px;
}

/* Blog index card link covers the card (Astro scoped style). */
.articles--index .acard h2 {
	font-size: var(--step-1);
	line-height: 1.4;
}
.articles--index .acard h2 a {
	text-decoration: none;
}
.articles--index .acard h2 a::after {
	content: '';
	position: absolute;
	inset: 0;
}

/* Article page body (Astro inline styles). */
.article-body {
	padding-top: 48px;
}
.article-body__wrap {
	display: grid;
	gap: 40px;
	justify-items: start;
}
.article-cover {
	margin: 0;
	width: 100%;
	max-width: 880px;
}
.article-cover img.is-cutout,
.article-cover img[src$='.png'] {
	max-height: 480px;
	width: auto;
	margin-inline: auto;
}
.article-lead {
	color: var(--soot);
}
.article-lead p {
	margin: 0;
}
.article-cta {
	max-width: 68ch;
}
.page-body > * + * {
	margin-top: 1em;
}

/* WordPress admin bar keeps the sticky header below it. */
.admin-bar .site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}
@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}

/* LINE QR is an uploaded image here (editable), an inline SVG in Astro: same box. */
.footer-qr img {
	width: 96px;
	height: 96px;
	background: #fff;
	padding: 6px;
	flex: none;
}
.qr img {
	width: 120px;
	height: 120px;
}

/* Spacing utilities replacing Astro inline styles (applied as block "Additional CSS class"). */
.u-mt-18 { margin-top: 18px; }
.u-mt-20 { margin-top: 20px; }
.u-mt-28 { margin-top: 28px; }
.u-mt-32 { margin-top: 32px; }
.u-mb-40 { margin-bottom: 40px; }
.lead.lead--soot { color: var(--soot); }
.license .license__title { font-size: var(--step-3); }
.photo-strip figure { margin: 0; }

/* Block-built page hero (About): reflective tape + taller padding like Astro. */
.page-hero--blocks::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 14px;
	background: linear-gradient(180deg, var(--signal) 0 32%, var(--silver) 32% 68%, var(--signal) 68% 100%);
}
.page-hero__inner.about-hero-inner {
	padding-block: clamp(80px, 12vw, 160px) clamp(56px, 8vw, 96px);
}

/* PHP ICU segments some Thai words longer than the browser does; let narrow shelf cards wrap. */
/* Long Thai words (e.g. คาร์บอนไดออกไซด์) widen one shelf column at 320px and clip the card by 4px
   (same defect exists in the Astro reference). Equal columns + breakable words fix it. */
@media (max-width: 359px) {
	.shelf {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.shelf .nw {
		white-space: normal;
	}
	.shelf__body h3 {
		overflow-wrap: anywhere;
	}
}

/* Hidden blocks (block visibility) never leave gaps. */
.wp-block-group:empty {
	display: none;
}

/* Search results (templates/search.html). */
.search-form {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	gap: 12px;
	max-width: 640px;
	margin-bottom: clamp(32px, 4vw, 48px);
}
.search-form .field {
	flex: 1 1 260px;
}
.search-form .btn {
	min-height: 48px;
}
.acard__type {
	font-size: var(--step--1);
	font-weight: 600;
	color: var(--ember);
}
.search-empty {
	display: grid;
	gap: 18px;
}
.search-pager {
	margin-top: clamp(32px, 4vw, 48px);
}
.search-pager ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	padding: 0;
}
.search-pager .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	border: 1.5px solid #bfb9b4;
	border-radius: var(--radius);
	text-decoration: none;
}
.search-pager .page-numbers.current {
	background: var(--soot);
	border-color: var(--soot);
	color: #fff;
}

/* Category shelf: show the whole product photo. A percentage height on the img does not resolve inside the
   aspect-ratio box, so the 230px-wide image overflowed and its lower half was clipped. Pin it to the box instead. */
.shelf__img {
	position: relative;
}
.shelf__img img {
	position: absolute;
	inset: 24px 16px 0;
	width: calc(100% - 32px);
	height: calc(100% - 24px);
	object-fit: contain;
	object-position: center bottom;
}
/* Equal columns even when a card title has a long unbreakable word. */
.shelf {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 900px) {
	.shelf {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* =====================================================================
   Redesign 2026-11: products catalogue + training list
   ===================================================================== */

/* ---- Catalogue hero: actions + jump links with counts ---- */
.catalog-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}
.jump {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	margin-top: clamp(32px, 4vw, 48px);
	max-width: 720px;
	background: var(--line-dark);
	border: 1px solid var(--line-dark);
}
.jump a {
	display: grid;
	gap: 2px;
	padding: 16px 18px;
	background: var(--soot);
	text-decoration: none;
	transition: background-color 0.2s;
}
.jump a:hover {
	background: var(--soot-2);
}
.jump strong {
	font-family: var(--font-display);
	font-size: 1.9rem;
	line-height: 1;
	color: var(--signal);
	font-variant-numeric: tabular-nums;
}
.jump span {
	font-size: var(--step--1);
	color: #d6d0cb;
}

/* ---- Catalogue: sticky category filter ---- */
.catalog {
	padding-top: clamp(28px, 4vw, 48px);
}
.filter--sticky {
	position: sticky;
	top: var(--header-h);
	z-index: 5;
	margin-inline: calc(var(--gutter) * -1);
	padding: 12px var(--gutter);
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}
@media (max-width: 640px) {
	.filter--sticky {
		padding-block: 10px;
	}
}

/* ---- Product card: equal heights, aligned footer, clear affordance ---- */
.grid-products {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
	gap: clamp(14px, 2vw, 24px);
}
.grid-products > div {
	display: grid;
}
.pcard {
	border-radius: 6px;
	overflow: hidden;
	transition:
		box-shadow 0.25s var(--ease),
		border-color 0.25s,
		transform 0.25s var(--ease);
}
.pcard:hover {
	border-color: rgba(30, 27, 26, 0.28);
	box-shadow: 0 14px 32px -18px rgba(30, 27, 26, 0.45);
	transform: translateY(-2px);
}
.pcard__media {
	aspect-ratio: 1 / 1;
	background:
		radial-gradient(ellipse at 50% 92%, rgba(30, 27, 26, 0.14) 0 14%, transparent 42%),
		linear-gradient(180deg, #fff 0%, #f4f2ef 100%);
}
.pcard__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px 18px 18px;
}
.pcard__cat {
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--ember);
}
.pcard__title {
	font-size: 1.08rem;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: calc(1.08rem * 1.4 * 2);
}
.pcard__foot {
	margin-top: auto;
	padding-top: 6px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}
.pcard__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--soot);
}
.pcard__more svg {
	width: 16px;
	height: 16px;
	transition: transform 0.2s var(--ease);
}
.pcard:hover .pcard__more {
	color: var(--ember);
}
.pcard:hover .pcard__more svg {
	transform: translateX(3px);
}

/* ---- Service / training cards ---- */
.svc-grid > .scard {
	border-radius: 6px;
}
.scard__img {
	position: relative;
}
.scard__num {
	position: absolute;
	left: 14px;
	top: 14px;
	min-width: 44px;
	padding: 6px 10px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1;
	text-align: center;
	color: var(--soot);
	background: var(--signal);
	border-radius: 999px;
	font-variant-numeric: tabular-nums;
}
.scard__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px 22px 22px;
}
.scard p {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.scard__more {
	margin-top: auto;
	padding-top: 10px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	font-size: 0.92rem;
	color: var(--signal);
}
.scard__more svg {
	width: 16px;
	height: 16px;
	transition: transform 0.2s var(--ease);
}
.scard:hover .scard__more svg {
	transform: translateX(4px);
}
.section--dark .scard {
	border: 1px solid var(--line-dark);
	transition: border-color 0.25s;
}
.section--dark .scard:hover {
	border-color: rgba(255, 255, 255, 0.4);
}

/* Services: horizontal cards on light background. */
@media (min-width: 760px) {
	.svc-grid--rows {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
.scard--row {
	grid-template-rows: none;
	grid-template-columns: minmax(120px, 38%) 1fr;
	background: #fff;
	color: var(--soot);
	border: 1px solid var(--line);
	transition:
		box-shadow 0.25s var(--ease),
		border-color 0.25s;
}
.scard--row:hover {
	border-color: rgba(30, 27, 26, 0.28);
	box-shadow: 0 14px 32px -18px rgba(30, 27, 26, 0.45);
}
.scard--row .scard__img {
	aspect-ratio: auto;
	min-height: 220px;
	background: linear-gradient(180deg, #fff 0%, #f4f2ef 100%);
	border-right: 1px solid var(--line);
}
.scard--row .scard__img img {
	position: absolute;
	inset: 0;
}
.scard--row .scard__img img.is-cutout {
	background: transparent;
	padding: 10%;
}
.scard--row p {
	color: var(--steel);
}
.scard--row .scard__more {
	color: var(--ember);
}
@media (max-width: 480px) {
	.scard--row {
		grid-template-columns: 1fr;
	}
	.scard--row .scard__img {
		min-height: 180px;
		border-right: 0;
		border-bottom: 1px solid var(--line);
	}
}

/* ---- Home: training list as numbered cards with thumbnails ---- */
.courses--cards {
	display: grid;
	gap: 10px;
	border-top: 0;
}
.courses--cards li {
	border-bottom: 0;
}
.courses--cards a {
	grid-template-columns: auto auto minmax(0, 1fr) auto;
	gap: 16px;
	padding: 14px 16px 14px 18px;
	background: var(--soot-2);
	border: 1px solid var(--line-dark);
	border-radius: 6px;
	transition:
		border-color 0.2s,
		background-color 0.2s,
		transform 0.25s var(--ease);
}
.courses--cards a:hover {
	border-color: var(--ember);
	background: #322d2a;
	transform: translateX(4px);
}
.courses__num {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.15rem;
	color: var(--signal);
	font-variant-numeric: tabular-nums;
	min-width: 2ch;
}
.courses__thumb {
	width: 76px;
	height: 76px;
	border-radius: 4px;
	overflow: hidden;
	background: var(--soot);
}
.courses__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.courses__text {
	display: grid;
	gap: 4px;
	min-width: 0;
}
.courses--cards h3 {
	font-size: var(--step-1);
	line-height: 1.35;
}
.courses--cards p {
	font-size: 0.92rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.courses--cards .arrow {
	grid-row: auto;
	grid-column: auto;
}
@media (max-width: 560px) {
	.courses--cards a {
		grid-template-columns: auto minmax(0, 1fr) auto;
		gap: 12px;
		padding: 12px;
	}
	.courses__thumb {
		display: none;
	}
	.courses--cards .arrow {
		width: 36px;
		height: 36px;
	}
}

/* Home training photo: fill the column, caption as an overlay label. */
.training__photo {
	margin: 0;
	border-radius: 6px;
}
.training__photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.training__photo .wp-element-caption,
.training__photo figcaption {
	position: absolute;
	left: 16px;
	right: auto;
	bottom: 16px;
	padding: 8px 14px;
	font-weight: 600;
	color: var(--soot);
	background: var(--signal);
	border-radius: 999px;
}
@media (min-width: 960px) {
	.training {
		align-items: stretch;
	}
	.training__photo {
		position: sticky;
		top: calc(var(--header-h) + 24px);
		aspect-ratio: auto;
		height: min(640px, calc(100vh - var(--header-h) - 48px));
	}
}
@media (max-width: 959px) {
	.training__photo {
		aspect-ratio: 16 / 10;
	}
}

/* =====================================================================
   Header search: button + modal with live results (inc/live-search.php)
   ===================================================================== */
.search-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 10px;
	color: #e8e4e1;
	text-decoration: none;
	border: 1px solid var(--line-dark);
	border-radius: var(--radius);
	transition: border-color 0.2s, background-color 0.2s;
}
.search-toggle:hover {
	border-color: rgba(255, 255, 255, 0.45);
	background: rgba(255, 255, 255, 0.06);
}
.search-toggle .i {
	width: 20px;
	height: 20px;
}
.search-toggle__kbd {
	padding: 2px 6px;
	font: 600 0.72rem/1.2 var(--font-body);
	color: #bdb6b0;
	border: 1px solid var(--line-dark);
	border-radius: 4px;
}
@media (max-width: 1180px) {
	.search-toggle__kbd {
		display: none;
	}
	.search-toggle {
		min-width: 44px;
		min-height: 44px;
		justify-content: center;
	}
}
/* Phones: four header buttons + brand must fit 320px. The menu button keeps its text for screen readers. */
@media (max-width: 480px) {
	.header-actions {
		gap: 6px;
	}
	.lang-switch,
	.header-actions .quote-pill {
		min-width: 44px;
		min-height: 44px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		padding-inline: 8px;
	}
	.menu-toggle {
		min-width: 44px;
		justify-content: center;
		padding-inline: 10px;
	}
	.menu-toggle > span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
}
@media (max-width: 374px) {
	.site-header .brand__name {
		display: none; /* logo alone; the link keeps its "D.T.SUN — home" label */
	}
}

.search-modal {
	width: min(680px, calc(100vw - 24px));
	max-height: min(640px, calc(100dvh - 48px));
	margin: clamp(12px, 9vh, 96px) auto auto;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: #fff;
	color: var(--soot);
	box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.55);
	overflow: hidden;
}
.search-modal[open] {
	display: flex;
	flex-direction: column;
	animation: search-in 0.18s var(--ease) both;
}
.search-modal::backdrop {
	background: rgba(20, 17, 16, 0.62);
	backdrop-filter: blur(3px);
}
@keyframes search-in {
	from {
		opacity: 0;
		transform: translateY(-8px) scale(0.985);
	}
}
@media (prefers-reduced-motion: reduce) {
	.search-modal[open] {
		animation: none;
	}
}
.search-open {
	overflow: hidden;
}
.search-modal__bar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 6px 12px 6px 18px;
	border-bottom: 1px solid var(--line);
}
.search-modal__icon {
	flex: none;
	width: 22px;
	height: 22px;
	color: var(--ember);
}
.search-modal__input {
	flex: 1;
	min-width: 0;
	min-height: 56px;
	padding: 0;
	border: 0;
	background: transparent;
	font: 500 1.1rem/1.4 var(--font-body);
	color: var(--soot);
	outline: none;
}
.search-modal__input::-webkit-search-cancel-button {
	cursor: pointer;
}
.search-modal.is-loading .search-modal__icon {
	animation: search-pulse 0.9s ease-in-out infinite;
}
@keyframes search-pulse {
	50% {
		opacity: 0.35;
	}
}
.search-modal__close {
	flex: none;
	display: grid;
	place-items: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0;
	background: transparent;
	border: 0;
	cursor: pointer;
}
.search-modal kbd {
	display: inline-block;
	min-width: 22px;
	padding: 2px 6px;
	font: 600 0.72rem/1.3 var(--font-body);
	color: var(--steel);
	text-align: center;
	background: #f4f2ef;
	border: 1px solid var(--line);
	border-bottom-width: 2px;
	border-radius: 4px;
}
.search-modal__body {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 8px 10px 14px;
}
.search-modal__status {
	margin: 6px 8px 4px;
	font-size: var(--step--1);
	color: var(--steel);
}
.search-modal__status:empty {
	display: none;
}
.search-modal__status.is-empty {
	padding: 24px 8px;
	text-align: center;
	font-size: 0.98rem;
}
.search-group + .search-group {
	margin-top: 6px;
}
.search-group__label,
.search-modal__label {
	margin: 12px 8px 6px;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ember);
}
.search-hit {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr) 18px;
	align-items: center;
	gap: 14px;
	padding: 10px 10px;
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
	scroll-margin: 8px;
}
.search-hit[aria-selected='true'] {
	background: #f6efe9;
	box-shadow: inset 3px 0 0 var(--ember);
}
.search-hit__thumb {
	width: 48px;
	height: 48px;
	display: grid;
	place-items: center;
	overflow: hidden;
	border-radius: 6px;
	background: var(--concrete);
}
.search-hit__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.search-hit__thumb.is-cutout {
	background: #fff;
	border: 1px solid var(--line);
}
.search-hit__thumb.is-cutout img {
	object-fit: contain;
	padding: 3px;
}
.search-hit__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--ember);
}
.search-hit__text {
	display: grid;
	gap: 2px;
	min-width: 0;
}
.search-hit__title {
	font-weight: 600;
	line-height: 1.35;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.search-hit__title mark {
	background: rgba(214, 224, 31, 0.55);
	color: inherit;
	border-radius: 2px;
	padding: 0 1px;
}
.search-hit__excerpt {
	font-size: 0.86rem;
	color: var(--steel);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.search-hit__go {
	width: 18px;
	height: 18px;
	color: var(--steel);
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity 0.15s, transform 0.15s;
}
.search-hit[aria-selected='true'] .search-hit__go {
	opacity: 1;
	transform: none;
	color: var(--ember);
}
.search-all {
	display: block;
	margin: 10px 8px 2px;
	padding: 12px;
	text-align: center;
	font-weight: 600;
	color: var(--ember);
	text-decoration: none;
	border: 1px dashed rgba(152, 31, 21, 0.4);
	border-radius: 8px;
}
.search-all:hover {
	background: #fbf3f2;
}
.search-modal__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 8px 6px;
}
.search-chip {
	min-height: 36px;
	padding: 6px 14px;
	font: 500 0.9rem var(--font-body);
	color: var(--soot);
	background: #f4f2ef;
	border: 1px solid var(--line);
	border-radius: 999px;
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s;
}
.search-chip:hover {
	background: #fff;
	border-color: var(--ember);
	color: var(--ember);
}
.search-modal__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
}
.search-modal__links a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 12px 14px;
	font-weight: 600;
	color: var(--soot);
	text-decoration: none;
	border: 1px solid var(--line);
	border-radius: 8px;
	transition: border-color 0.15s, color 0.15s;
}
.search-modal__links a:hover {
	border-color: var(--ember);
	color: var(--ember);
}
.search-modal__links svg {
	width: 16px;
	height: 16px;
	flex: none;
}
.search-modal__foot {
	display: flex;
	gap: 18px;
	padding: 10px 18px;
	font-size: 0.8rem;
	color: var(--steel);
	background: #faf9f7;
	border-top: 1px solid var(--line);
}
.search-modal__foot kbd + kbd {
	margin-left: 2px;
}
@media (max-width: 640px) {
	.search-modal {
		position: fixed;
		inset: 0;
		width: 100%;
		max-width: none;
		height: 100%;
		max-height: none;
		margin: 0;
		border-radius: 0;
	}
	.search-modal__foot {
		display: none;
	}
	.search-modal__links {
		grid-template-columns: 1fr;
	}
	.search-hit {
		grid-template-columns: 44px minmax(0, 1fr);
	}
	.search-hit__thumb {
		width: 44px;
		height: 44px;
	}
	.search-hit__go {
		display: none;
	}
}

/* ---- Product photos: whole and seamless ----
   Product photos are opaque PNG/WebP on a white background. On a tinted box they showed as a white
   rectangle with the tank shrunk inside. The media box is white now, the photo is multiplied onto it (white
   disappears, the floor shadow shows through) and gets more of the box. */
.pcard__media {
	aspect-ratio: 4 / 5;
	padding: 0;
	background: radial-gradient(ellipse at 50% 95%, rgba(30, 27, 26, 0.13) 0 12%, transparent 40%), #fff;
	border-bottom: 1px solid var(--line);
}
.pcard__media img {
	inset: 6% 8% 4%;
	width: 84%;
	height: 90%;
	mix-blend-mode: multiply;
}
.scard--row .scard__img,
.scard--row .scard__img img.is-cutout {
	background: #fff;
}
.scard--row .scard__img img.is-cutout {
	padding: 5% 8%;
	mix-blend-mode: multiply;
}
.acard__img img.is-cutout {
	padding: 5%;
}

/* Process story: the product step shows the whole tank (not cropped), on white. */
.story__visual img.is-product {
	padding: 5% 12%;
}
.story__step figure.story__inline.is-product {
	aspect-ratio: 4 / 3;
	background: #fff;
	border: 1px solid var(--line);
}
.story__step figure.story__inline.is-product img {
	object-fit: contain;
	padding: 4%;
}

/* Footer: the company name stays on one line where four columns fit; two columns in between. */
.site-footer .brand__name {
	font-size: 1.05rem;
	line-height: 1.3;
}
@media (min-width: 900px) and (max-width: 1099px) {
	.site-footer__grid {
		grid-template-columns: 1fr 1fr;
	}
}
@media (min-width: 1100px) {
	.site-footer__grid {
		grid-template-columns: max-content 0.8fr 1.2fr 1fr;
		column-gap: clamp(32px, 4vw, 56px);
	}
	.site-footer .brand__name {
		white-space: nowrap;
	}
}

/* Catalogue filter: below the WordPress admin bar too (logged-in editors), so the header never covers it. */
.admin-bar .filter--sticky {
	top: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 32px));
}
@media (max-width: 600px) {
	.admin-bar .filter--sticky {
		top: var(--header-h);
	}
}

/* Home category shelf: the same seamless photo treatment. Narrow photos (dry chemical, BF 2000) left their
   white rectangle edges over the floor shadow; multiplied, only the tank and the shadow remain. */
.shelf__img img {
	mix-blend-mode: multiply;
}
/* Same photo height in every card; titles start on one line whatever their length. */
.shelf__item {
	grid-template-rows: auto 1fr;
}
