/*
 * JRP theme stylesheet — the only stylesheet the theme loads.
 * All values come from design/*.dc.html (see SPEC section 3).
 *
 *  1. Fonts
 *  2. Tokens
 *  3. Base
 *  4. Layout helpers
 *  5. Buttons
 *  6. Header (top bar, masthead, mobile menu, language switcher)
 *  7. CTA band
 *  8. Footer
 *  9. Fallback content (index.php)
 */

/* 1. Fonts ------------------------------------------------------------- */

@font-face {
	font-family: "IBM Plex Sans Thai";
	src: url("../fonts/IBMPlexSansThai-Regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "IBM Plex Sans Thai";
	src: url("../fonts/IBMPlexSansThai-Medium.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "IBM Plex Sans Thai";
	src: url("../fonts/IBMPlexSansThai-SemiBold.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "IBM Plex Sans Thai";
	src: url("../fonts/IBMPlexSansThai-Bold.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "IBM Plex Mono";
	src: url("../fonts/IBMPlexMono-Regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "IBM Plex Mono";
	src: url("../fonts/IBMPlexMono-Medium.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

/* 2. Tokens ------------------------------------------------------------ */

:root {
	--ink: #0D1411;
	--ground: #FFFFFF;
	--ground-alt: #F3F6F3;
	--line: #DCE3DD;
	--field-border: #9DB0A5;
	--muted: #3F4D45;
	--green: #2BB673;
	--green-hover: #239C62;
	--green-deep: #0A6B3B;
	--green-light: #7BE0AE;
	--on-dark: #E8EFEA;
	--on-dark-muted: #C3D0C8;
	--error: #B3261E;
	--error-bg: #FDECEA;
	--error-text: #8C1D18;
	--hatch-a: #F3F6F3;
	--hatch-b: #E9EEEA;

	/* Plex Mono has no Thai glyphs (e.g. ฿); fall back to Plex Sans Thai for those. */
	--font-sans: "IBM Plex Sans Thai", "Noto Sans Thai", Tahoma, sans-serif;
	--font-mono: "IBM Plex Mono", "IBM Plex Sans Thai", monospace;

	--fs-h1-home: clamp(34px, 4.6vw, 58px);
	--fs-h1: clamp(32px, 4vw, 48px);
	--fs-h2: 36px;

	--container: 1200px;
	--gutter: 24px;
	--section-y: clamp(48px, 7vw, 88px);

	--radius-sm: 4px;
	--radius: 6px;
	--radius-lg: 8px;
	--radius-pill: 999px;

	--focus: var(--green-deep);
}

/* 3. Base -------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.7;
	color: var(--ink);
	background: var(--ground);
	-webkit-font-smoothing: antialiased;
}

img,
video {
	max-width: 100%;
	height: auto;
}

svg {
	flex: none;
}

a {
	color: var(--green-deep);
}

a:hover {
	color: var(--ink);
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

/* Focus: 2px --green-deep, 2px gap, on everything clickable (SPEC 3).
   Dark and green surfaces swap the colour so the ring stays visible. */
:focus-visible {
	outline: 2px solid var(--focus);
	outline-offset: 2px;
}

.site-main:focus {
	outline: none;
}

.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;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 16px;
	z-index: 1000;
	padding: 12px 20px;
	border-radius: var(--radius-sm);
	background: var(--ink);
	color: #FFFFFF;
	font-weight: 600;
	text-decoration: none;
}

.skip-link:focus {
	top: 16px;
	color: #FFFFFF;
	outline-color: var(--green-light);
}

/* 4. Layout helpers ---------------------------------------------------- */

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.section {
	padding-block: var(--section-y);
}

.eyebrow {
	margin: 0;
	font-family: var(--font-mono);
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--green-deep);
}

/* The only fixed breakpoint: the header menu at 900px (SPEC 4). */
@media (max-width: 899px) {
	.is-wide-only {
		display: none !important;
	}
}

@media (min-width: 900px) {
	.is-narrow-only {
		display: none !important;
	}
}

/* 5. Buttons ----------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 24px;
	border: 0;
	border-radius: var(--radius-sm);
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.btn--sm {
	min-height: 44px;
	padding: 0 20px;
	font-size: 15px;
}

.btn--lg {
	min-height: 52px;
	padding: 0 28px;
}

.btn--primary,
.btn--primary:hover {
	color: var(--ink);
}

.btn--primary {
	background: var(--green);
}

.btn--primary:hover {
	background: var(--green-hover);
}

.btn--dark,
.btn--dark:hover {
	background: var(--ink);
	color: #FFFFFF;
}

.btn--outline,
.btn--outline:hover {
	border: 1.5px solid var(--ink);
	background: transparent;
	color: var(--ink);
}

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--ground);
	color: var(--ink);
}

.icon-btn:hover {
	color: var(--ink);
	border-color: var(--field-border);
}

/* 6. Header ------------------------------------------------------------ */

.site-header {
	background: var(--ground);
	color: var(--ink);
	border-bottom: 1px solid var(--line);
}

/* Top bar */
.topbar {
	--focus: var(--green-light);
	background: var(--ink);
	color: var(--on-dark);
	font-size: 13px;
	line-height: 1.5;
}

.topbar__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 24px;
	justify-content: space-between;
	align-items: center;
	padding-block: 8px;
}

.topbar__end {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 24px;
}

.topbar a {
	text-decoration: none;
}

.topbar__phone {
	color: var(--green-light);
	font-family: var(--font-mono);
}

.topbar__email {
	color: var(--on-dark);
	font-family: var(--font-mono);
}

.topbar__phone:hover,
.topbar__email:hover {
	color: #FFFFFF;
	text-decoration: underline;
}

/* Language switcher: two languages */
.lang-switch {
	display: flex;
	align-items: center;
	gap: 6px;
	font-family: var(--font-mono);
}

.lang-switch .icon {
	color: var(--on-dark);
}

.topbar .lang-switch__link {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 0 8px;
	border-radius: 3px;
	color: var(--on-dark);
	font-weight: 500;
}

.topbar .lang-switch__link:hover {
	color: #FFFFFF;
	text-decoration: underline;
}

.topbar .lang-switch__link[aria-current="true"],
.topbar .lang-switch__link[aria-current="true"]:hover {
	background: var(--green);
	color: var(--ink);
	text-decoration: none;
}

/* Language switcher: three or more languages (dropdown, not in the design) */
.lang-menu {
	position: relative;
	font-family: var(--font-mono);
}

.lang-menu__toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 24px;
	padding: 0 8px;
	border-radius: 3px;
	background: var(--green);
	color: var(--ink);
	font-weight: 500;
	list-style: none;
	cursor: pointer;
}

.lang-menu__toggle::-webkit-details-marker {
	display: none;
}

.lang-menu[open] .icon--chevron {
	transform: rotate(180deg);
}

.lang-menu__list {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 50;
	min-width: 180px;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: var(--ink);
	border: 1px solid #33423A;
	border-radius: var(--radius-sm);
}

.topbar .lang-menu__link {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 40px;
	padding: 0 10px;
	border-radius: 3px;
	color: var(--on-dark);
	font-family: var(--font-sans);
}

.topbar .lang-menu__link:hover {
	color: #FFFFFF;
	background: #1B2621;
}

.topbar .lang-menu__link[aria-current="true"] {
	color: var(--green-light);
}

.lang-menu__code {
	font-family: var(--font-mono);
	font-size: 12px;
	min-width: 22px;
}

/* Masthead */
.masthead {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 40px;
	align-items: center;
	justify-content: space-between;
	padding-block: 12px;
}

.masthead__logo {
	display: flex;
	align-items: center;
	min-height: 44px;
}

.site-logo--header {
	display: block;
	width: auto;
	height: 46px;
}

.primary-nav {
	flex: 1 1 520px;
	display: flex;
	flex-wrap: wrap;
	gap: 0 28px;
	font-size: 16px;
	font-weight: 500;
}

.primary-nav__link,
.primary-nav__link:hover {
	color: var(--ink);
}

.primary-nav__link {
	padding: 12px 0 9px;
	border-bottom: 3px solid transparent;
	text-decoration: none;
}

.primary-nav__link:hover {
	border-bottom-color: var(--line);
}

.primary-nav__link.is-current {
	border-bottom-color: var(--green);
}

.masthead__actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.menu-toggle__close,
.menu-toggle[aria-expanded="true"] .menu-toggle__open {
	display: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__close {
	display: block;
}

/* Mobile menu: open by default without JS, collapsed once JS runs. */
.mobile-nav {
	display: flex;
	flex-direction: column;
	padding: 0 24px 20px;
	font-size: 17px;
	font-weight: 500;
}

.js .mobile-nav:not(.is-open) {
	display: none;
}

@media (min-width: 900px) {
	.mobile-nav {
		display: none;
	}
}

.mobile-nav__link,
.mobile-nav__link:hover {
	color: var(--ink);
}

.mobile-nav__link {
	display: flex;
	align-items: center;
	min-height: 52px;
	padding-left: 12px;
	border-top: 1px solid var(--line);
	border-left: 3px solid transparent;
	text-decoration: none;
}

.mobile-nav__link:nth-last-child(2) {
	border-bottom: 1px solid var(--line);
}

.mobile-nav__link.is-current {
	border-left-color: var(--green);
}

.mobile-nav__cta {
	margin-top: 16px;
	width: 100%;
}

/* 7. CTA band ---------------------------------------------------------- */

.cta-band {
	--focus: var(--ink);
	background: var(--green);
	color: var(--ink);
	line-height: 1.7;
}

.cta-band__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 24px 48px;
	align-items: center;
	justify-content: space-between;
	padding-block: 64px;
}

.cta-band__text {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1 1 420px;
}

.cta-band__title {
	margin: 0;
	font-size: 32px;
	line-height: 1.35;
	font-weight: 700;
}

.cta-band__lead {
	margin: 0;
	font-size: 18px;
}

.cta-band__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* 8. Footer ------------------------------------------------------------ */

.site-footer {
	background: var(--ground-alt);
	color: var(--ink);
	border-top: 4px solid var(--green);
	font-size: 15px;
	line-height: 1.7;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
	gap: 40px;
	padding-top: 56px;
	padding-bottom: 40px;
}

.site-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.site-logo--footer {
	display: block;
	width: 92px;
	height: 52px;
	object-fit: contain;
	object-position: left;
}

.site-footer__about,
.site-footer__address {
	margin: 0;
	color: var(--muted);
}

.site-footer__col {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.site-footer__heading {
	margin: 0 0 8px;
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.12em;
	color: var(--green-deep);
}

.site-footer__col a {
	align-self: flex-start;
	color: var(--ink);
	text-decoration: none;
}

.site-footer__col a:hover {
	text-decoration: underline;
}

.site-footer__phone {
	font-weight: 600;
}

.site-footer__bar {
	border-top: 1px solid var(--line);
}

.site-footer__bar-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	justify-content: space-between;
	padding-block: 18px;
	font-size: 13px;
	color: var(--muted);
}

.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
}

.site-footer__legal a {
	color: var(--green-deep);
}

.site-footer__legal a:hover {
	color: var(--ink);
}

/* 9. Fallback content (index.php) -------------------------------------- */

.entry__title {
	margin: 0 0 16px;
	font-size: var(--fs-h1);
	line-height: 1.3;
	font-weight: 700;
}

.entry__title--sm {
	font-size: 22px;
	line-height: 1.4;
	font-weight: 600;
	margin-bottom: 8px;
}

.entry__title a {
	color: var(--ink);
	text-decoration: none;
}

.entry-list {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.entry__content {
	max-width: 780px;
	font-size: 18px;
	line-height: 1.9;
}

/* 10. Shared page parts ------------------------------------------------ */

.hatch {
	background: repeating-linear-gradient(135deg, var(--hatch-a) 0 12px, var(--hatch-b) 12px 24px);
}

.breadcrumb {
	font-size: 14px;
	color: var(--muted);
}

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

.breadcrumb__item {
	display: flex;
	gap: 8px;
}

.breadcrumb-bar {
	border-bottom: 1px solid var(--line);
}

.breadcrumb-bar .breadcrumb {
	padding-block: 16px;
}

.page-hero {
	border-bottom: 1px solid var(--line);
	background: var(--ground-alt);
}

.page-hero__inner {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-top: 56px;
	padding-bottom: 64px;
}

.page-hero__title {
	margin: 0;
	font-size: var(--fs-h1);
	line-height: 1.3;
	font-weight: 700;
}

.page-hero__lead {
	max-width: 720px;
	margin: 0;
	font-size: 18px;
	color: var(--muted);
}

.page-hero--dark {
	border-bottom: 0;
	background: var(--ink);
	color: #FFFFFF;
	--focus: var(--green-light);
}

.page-hero--dark .breadcrumb,
.page-hero--dark .page-hero__lead {
	color: var(--on-dark-muted);
}

.page-hero--dark a {
	color: var(--green-light);
}

.page-hero--dark a:hover {
	color: #FFFFFF;
}

.pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	padding-top: 16px;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 6px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	color: var(--ink);
	font-family: var(--font-mono);
	text-decoration: none;
}

.pagination a.page-numbers:hover {
	border-color: var(--ink);
}

.pagination .page-numbers.current {
	border-color: var(--ink);
	background: var(--ink);
	color: #FFFFFF;
}

.pagination .page-numbers.dots {
	border-color: transparent;
}

.empty-note {
	margin: 0;
	padding: 48px 24px;
	border-radius: var(--radius);
	background: var(--ground-alt);
	color: var(--muted);
	text-align: center;
}

.arrow-link {
	align-self: flex-start;
	font-weight: 600;
}

.table-scroll {
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--ground);
}

.is-mono {
	font-family: var(--font-mono);
}

/* 11. Product card and grid -------------------------------------------- */

/* auto-fill instead of the design's auto-fit: a short list keeps the card
   size instead of stretching one card across the row. A full row looks the same. */
.product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(250px, calc(50% - 12px)), 1fr));
	gap: 24px;
}

.product-grid--listing {
	grid-template-columns: repeat(auto-fill, minmax(min(240px, calc(50% - 12px)), 1fr));
}

.product-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--ink);
	text-decoration: none;
}

.product-card:hover {
	border-color: var(--field-border);
	color: var(--ink);
}

.product-card__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background-color: var(--ground);
}

/* Absolute so the image never stretches the 4:3 box, whatever its own ratio. */
.product-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.product-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 6px;
	padding: 20px;
}

.product-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0 6px;
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--green-deep);
}

.product-card__brand {
	text-transform: uppercase;
}

.product-card__title {
	font-size: 17px;
	font-weight: 600;
	line-height: 1.45;
	overflow-wrap: anywhere;
}

.product-card__desc {
	font-size: 14px;
	color: var(--muted);
}

.product-card__foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 4px 12px;
	margin-top: auto;
	padding-top: 12px;
}

.product-card__price {
	font-family: var(--font-mono);
	font-size: 18px;
	font-weight: 500;
}

.product-card__more {
	font-size: 14px;
	font-weight: 600;
	color: var(--green-deep);
}

.product-card:hover .product-card__more {
	color: var(--ink);
}

/* 12. Product listing -------------------------------------------------- */

.product-listing {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 40px 48px;
	padding-top: 56px;
	padding-bottom: 88px;
}

.product-filters {
	display: flex;
	flex: 1 1 230px;
	flex-direction: column;
	gap: 32px;
}

.product-filters__group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.product-filters__heading {
	margin: 0 0 6px;
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--green-deep);
}

.filter-list,
.filter-pills {
	margin: 0;
	padding: 0;
	list-style: none;
}

.filter-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.filter-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.filter-list__link,
.filter-pills__link {
	display: flex;
	align-items: center;
	min-height: 44px;
	border: 1px solid var(--line);
	background: var(--ground);
	color: var(--ink);
	font-weight: 500;
	text-decoration: none;
}

.filter-list__link {
	justify-content: space-between;
	gap: 12px;
	padding: 0 14px;
	border-radius: var(--radius-sm);
	font-size: 15px;
}

.filter-list__count {
	font-family: var(--font-mono);
	font-size: 12px;
}

.filter-pills__link {
	padding: 0 16px;
	border-radius: var(--radius-pill);
	font-size: 14px;
	text-transform: uppercase;
}

.filter-list__link:hover,
.filter-pills__link:hover {
	border-color: var(--ink);
	color: var(--ink);
}

.filter-list__link[aria-current],
.filter-pills__link[aria-current] {
	border-color: var(--ink);
	background: var(--ink);
	color: #FFFFFF;
}

.product-listing__main {
	display: flex;
	flex: 999 1 560px;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
}

.product-toolbar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 12px 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--line);
}

.product-toolbar__count {
	margin: 0;
	color: var(--muted);
}

.product-toolbar__count strong {
	color: var(--ink);
}

.product-sort {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: var(--muted);
}

.product-sort__select {
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--field-border);
	border-radius: var(--radius-sm);
	background: var(--ground);
	color: var(--ink);
	font-size: 15px;
}

/* The select submits itself when JavaScript runs. */
.js .product-sort__submit:not(.is-visible) {
	display: none;
}

/* 13. Single product --------------------------------------------------- */

.product-hero {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
	align-items: start;
	gap: 56px;
	padding-top: 56px;
	padding-bottom: 72px;
}

.product-gallery {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.product-gallery__main {
	position: relative;
	aspect-ratio: 1;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--ground);
}

.product-gallery__img,
.product-gallery__placeholder {
	display: block;
	width: 100%;
	height: 100%;
}

.product-gallery__img {
	position: absolute;
	inset: 0;
	object-fit: contain;
}

.product-gallery__thumbs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.product-gallery__thumb {
	position: relative;
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--ground-alt);
}

.product-gallery__thumb[aria-current="true"] {
	border: 2px solid var(--green);
}

.product-gallery__thumb img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-summary {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.product-summary__head {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.product-summary__title {
	margin: 0;
	font-size: clamp(28px, 3.2vw, 40px);
	line-height: 1.3;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.product-summary__intro {
	margin: 0;
	font-size: 18px;
	color: var(--muted);
}

.product-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 20px;
	padding: 20px 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.product-price__value {
	font-family: var(--font-mono);
	font-size: 36px;
	font-weight: 500;
	line-height: 1.2;
}

.product-price__note {
	font-size: 14px;
	color: var(--muted);
}

.product-price__stock {
	font-size: 14px;
	font-weight: 600;
	color: var(--green-deep);
}

.product-price__stock.is-out-of-stock {
	color: var(--muted);
}

.product-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.qty {
	display: flex;
	align-items: center;
	border: 1px solid var(--field-border);
	border-radius: var(--radius-sm);
}

/* The stepper only feeds the quote link, so it needs JavaScript. */
.no-js .qty {
	display: none;
}

.qty__btn {
	width: 48px;
	height: 52px;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 20px;
}

.qty__btn[aria-disabled="true"] {
	color: var(--field-border);
	cursor: default;
}

.qty__value {
	min-width: 40px;
	font-family: var(--font-mono);
	font-size: 18px;
	text-align: center;
}

.product-actions__quote,
.product-actions__line {
	min-height: 54px;
	padding: 0 28px;
}

.product-actions__quote {
	flex: 1 1 200px;
}

.product-facts {
	display: flex;
	flex-direction: column;
	margin: 0;
	font-size: 15px;
}

.product-facts > div {
	display: flex;
	gap: 16px;
	padding: 12px 0;
	border-top: 1px solid var(--line);
}

.product-facts > div:last-child {
	border-bottom: 1px solid var(--line);
}

.product-facts dt {
	flex: 0 0 110px;
	color: var(--muted);
}

.product-facts dd {
	min-width: 0;
	margin: 0;
	overflow-wrap: anywhere;
}

.product-info {
	background: var(--ground-alt);
}

.product-tabs {
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding-top: 56px;
	padding-bottom: 72px;
}

.product-tabs__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	border-bottom: 1px solid var(--line);
}

.no-js .product-tabs__list {
	display: none;
}

.product-tabs__tab {
	min-height: 48px;
	padding: 0 20px;
	border: 0;
	border-bottom: 3px solid transparent;
	background: transparent;
	color: var(--ink);
	font-size: 17px;
	font-weight: 500;
}

.product-tabs__tab[aria-selected="true"] {
	border-bottom-color: var(--green);
	font-weight: 700;
}

.js .product-tabs__list ~ .product-panel:not(.is-active) {
	display: none;
}

.product-panel {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 800px;
}

.product-panel__title {
	margin: 0;
	font-size: 26px;
	line-height: 1.35;
	font-weight: 700;
}

.product-panel__prose {
	color: var(--muted);
}

.product-panel__prose > * {
	margin: 0;
}

.product-panel__prose > * + * {
	margin-top: 14px;
}

.product-panel__prose img {
	border-radius: var(--radius-lg);
}

.spec-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.spec-table th,
.spec-table td {
	padding: 14px 20px;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.spec-table th {
	/* 220px as designed; never more than 45% so the value column survives at 390px. */
	width: min(220px, 45%);
	font-weight: 500;
	color: var(--muted);
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
	border-bottom: 0;
}

.related-products {
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding-top: 72px;
	padding-bottom: 88px;
}

.related-products__title {
	margin: 0;
	font-size: 30px;
	line-height: 1.35;
	font-weight: 700;
}

/* 14. Layout helpers for content pages --------------------------------- */

.stack-14,
.stack-18,
.stack-20,
.stack-40,
.stack-48 {
	display: flex;
	flex-direction: column;
}

.stack-14 { gap: 14px; }
.stack-18 { gap: 18px; }
.stack-20 { gap: 20px; }
.stack-40 { gap: 40px; }
.stack-48 { gap: 48px; }

.btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.band-alt {
	background: var(--ground-alt);
}

.band-dark {
	background: var(--ink);
	color: var(--on-dark);
	--focus: var(--green-light);
}

.band-dark .eyebrow {
	color: var(--green-light);
}

.band-dark .section-head__title,
.band-dark .h2-sm {
	color: #FFFFFF;
}

.section-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px 40px;
}

.section-head__text {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.section-head__title {
	margin: 0;
	font-size: var(--fs-h2);
	line-height: 1.3;
	font-weight: 700;
}

.h2-sm,
.h2-md {
	margin: 0;
	line-height: 1.35;
	font-weight: 700;
}

.h2-sm { font-size: 34px; }
.h2-md { font-size: 28px; }

.card-grid {
	display: grid;
	gap: 24px;
}

/* auto-fill: a single article or service keeps the card width (full rows match the design). */
.card-grid--300 {
	grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
}

/* Few cards (home services): stretch them across the row instead of leaving empty columns. */
.card-grid--fit {
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

/* Brands: up to four on one row. */
.card-grid--brands {
	grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}

.card-grid--150 {
	grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
	gap: 16px;
}

.split {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
	align-items: center;
	gap: 40px 56px;
}

.split--top {
	align-items: start;
}

.prose-muted {
	color: var(--muted);
}

.prose-muted > * {
	margin: 0;
}

.prose-muted > * + * {
	margin-top: 18px;
}

.media-frame {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius-lg);
}

.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--16x10 { aspect-ratio: 16 / 10; }
.media-frame--16x8 { aspect-ratio: 16 / 8; }

.media-frame img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* 15. Home ------------------------------------------------------------- */

.home-hero {
	border-bottom: 1px solid var(--line);
	background: var(--ground-alt);
}

.home-hero__inner {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
	align-items: center;
	gap: 56px;
	padding-top: 72px;
	padding-bottom: 80px;
}

.home-hero__text {
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
}

.home-hero__title {
	margin: 0;
	font-size: var(--fs-h1-home);
	line-height: 1.25;
	font-weight: 700;
	text-wrap: balance;
}

.home-hero__lead {
	max-width: 520px;
	margin: 0;
	font-size: 18px;
	color: var(--muted);
}

/* Decorative switch panel, CSS only (SPEC 6). */
.port-panel {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 28px;
	border-radius: var(--radius-lg);
	background: var(--ink);
	font-family: var(--font-mono);
	font-size: 12px;
}

.port-panel__top {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	letter-spacing: 0.1em;
	color: var(--field-border);
}

.port-panel__status {
	color: var(--green-light);
}

.port-panel__ports {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 8px;
}

.port {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	aspect-ratio: 1;
	padding-top: 18%;
	border: 1px solid #33423A;
	border-radius: 3px;
	background: #1B2621;
}

.port__led {
	width: 32%;
	height: 14%;
	border-radius: 1px;
	background: #33423A;
}

.port.is-lit .port__led {
	background: var(--green);
}

.port-panel__legend {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	color: var(--on-dark);
}

.port-panel__legend > span {
	padding-top: 10px;
	border-top: 2px solid var(--green);
}

.port-panel__legend > span > span {
	color: var(--field-border);
}

.brand-strip {
	border-bottom: 1px solid var(--line);
}

.brand-strip__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 56px;
	padding-top: 28px;
	padding-bottom: 28px;
}

.brand-strip__label {
	font-size: 14px;
	color: var(--muted);
}

.brand-strip__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 56px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.brand-strip__item {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--ink);
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
}

.brand-strip__logo {
	width: auto;
	max-height: 36px;
}

.service-card,
.cat-card,
.brand-card,
.mini-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--ink);
	text-decoration: none;
}

.service-card:hover,
.cat-card:hover,
.brand-card:hover,
.mini-card:hover {
	border-color: var(--field-border);
	color: var(--ink);
}

.service-card {
	gap: 12px;
	padding: 32px;
}

.service-card__num {
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--green-deep);
}

.service-card__title {
	margin: 0;
	font-size: 22px;
	line-height: 1.4;
	font-weight: 600;
}

.service-card__desc {
	margin: 0;
	color: var(--muted);
}

.service-card__more {
	margin-top: auto;
	padding-top: 12px;
	font-weight: 600;
	color: var(--green-deep);
}

.service-card:hover .service-card__more {
	color: var(--ink);
}

.cat-card {
	gap: 4px;
	min-height: 132px;
	padding: 24px 20px;
	background: var(--ground);
}

.cat-card__code {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--green-deep);
}

.cat-card__name {
	font-size: 18px;
	line-height: 1.4;
	font-weight: 600;
}

.cat-card__sub {
	margin-top: auto;
	font-size: 14px;
	color: var(--muted);
}

.steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.steps__item {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 20px;
	border-top: 2px solid var(--green);
}

.steps__num {
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--green-light);
}

.steps__title {
	margin: 0;
	font-size: 20px;
	line-height: 1.4;
	font-weight: 600;
	color: #FFFFFF;
}

.steps__desc {
	margin: 0;
	color: var(--on-dark-muted);
}

.post-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	color: var(--ink);
	text-decoration: none;
}

.post-card:hover {
	color: var(--ink);
}

.post-card__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	border-radius: var(--radius);
}

.post-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0 6px;
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--green-deep);
}

.post-card__title {
	font-size: 20px;
	line-height: 1.45;
	font-weight: 600;
}

.post-card:hover .post-card__title {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.post-card__excerpt {
	font-size: 15px;
	color: var(--muted);
}

/* 16. About ------------------------------------------------------------ */

.values {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
	gap: 40px 56px;
}

.values__item {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-top: 24px;
	border-top: 2px solid var(--green);
}

.values__title {
	margin: 0;
	font-size: 26px;
	line-height: 1.4;
	font-weight: 600;
	color: #FFFFFF;
}

.values__text {
	margin: 0;
	color: var(--on-dark-muted);
}

.brand-card {
	gap: 10px;
	padding: 32px;
}

.brand-card__name {
	margin: 0;
	font-size: 24px;
	line-height: 1.4;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.brand-card__logo {
	width: auto;
	max-height: 40px;
}

.brand-card__desc {
	margin: 0;
	color: var(--muted);
}

.profile-list {
	display: flex;
	flex-direction: column;
	margin: 0;
}

.profile-list > div {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 24px;
	padding: 16px 0;
	border-top: 1px solid var(--line);
}

.profile-list > div:last-child {
	border-bottom: 1px solid var(--line);
}

.profile-list dt {
	flex: 0 0 160px;
	color: var(--muted);
}

.profile-list dd {
	flex: 1 1 240px;
	min-width: 0;
	margin: 0;
	font-weight: 500;
}

/* 17. Services --------------------------------------------------------- */

.service-list {
	display: flex;
	flex-direction: column;
	padding-top: 72px;
	padding-bottom: 88px;
}

.service-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
	align-items: center;
	gap: 32px 56px;
	padding: 48px 0;
	border-bottom: 1px solid var(--line);
}

.service-row:last-child {
	border-bottom: 0;
}

.service-row__body {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}

.service-row__title {
	margin: 0;
	font-size: 30px;
	line-height: 1.35;
	font-weight: 700;
}

.service-row__desc {
	margin: 0;
	color: var(--muted);
}

.service-row__btn {
	align-self: flex-start;
}

.tag-list,
.chip-list {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tag-list {
	gap: 8px;
}

.tag-list li {
	padding: 4px 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	font-size: 14px;
}

.chip-list {
	gap: 10px;
}

.chip-list li {
	padding: 8px 16px;
	border-radius: var(--radius-pill);
	background: var(--ground-alt);
}

.page-hero__eyebrow {
	margin-top: 8px;
}

.page-hero--dark .eyebrow {
	color: var(--green-light);
}

.page-hero--dark .page-hero__title {
	max-width: 820px;
	font-size: clamp(32px, 4vw, 50px);
	color: #FFFFFF;
}

.with-sidebar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 56px;
	padding-top: 72px;
	padding-bottom: 88px;
}

.with-sidebar__main {
	flex: 999 1 560px;
	min-width: 0;
}

.with-sidebar__side {
	display: flex;
	flex: 1 1 320px;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
}

.include-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.include-grid__item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.include-grid__item strong {
	font-weight: 600;
}

.include-grid__item span {
	font-size: 15px;
	color: var(--muted);
}

.mini-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
	gap: 16px;
}

.mini-card {
	gap: 4px;
	padding: 20px;
}

.mini-card__brand {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--green-deep);
	text-transform: uppercase;
}

.mini-card__title {
	font-weight: 600;
	overflow-wrap: anywhere;
}

.mini-card__desc {
	font-size: 14px;
	color: var(--muted);
}

.faq {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.faq__title {
	margin-bottom: 12px;
}

.faq__item {
	padding: 16px 0;
	border-top: 1px solid var(--line);
}

.faq__item:last-child {
	border-bottom: 1px solid var(--line);
}

.faq__q {
	min-height: 32px;
	font-size: 18px;
	font-weight: 600;
	cursor: pointer;
}

.faq__a {
	margin-top: 8px;
	color: var(--muted);
}

.faq__a > * {
	margin: 0;
}

.faq__a > * + * {
	margin-top: 12px;
}

.quote-box {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 28px;
	border-top: 4px solid var(--green);
	border-radius: var(--radius);
	background: var(--ground-alt);
}

.quote-box__title {
	margin: 0;
	font-size: 22px;
	line-height: 1.4;
	font-weight: 700;
}

.quote-box__btn {
	min-height: 50px;
}

.side-nav {
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.side-nav__title {
	margin: 0;
	padding: 16px 20px;
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.12em;
	color: var(--green-deep);
}

.side-nav__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.side-nav__link {
	display: block;
	padding: 14px 20px;
	border-top: 1px solid var(--line);
	color: var(--ink);
	text-decoration: none;
}

.side-nav__link:hover {
	color: var(--green-deep);
}

.side-nav__link[aria-current] {
	background: var(--ground-alt);
	font-weight: 600;
	color: var(--ink);
}

/* 18. Articles (Blog, BlogSingle) ------------------------------------- */

.stack-32 {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.no-js .js-only {
	display: none !important;
}

.media-frame--16x9 { aspect-ratio: 16 / 9; }

/* Stripes on the grey band are white and grey, as in the design. */
.band-alt .hatch {
	--hatch-a: #FFFFFF;
}

/* Pill links: category filter in the listing header and the article sidebar. */
.pill-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pill-nav__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	background: var(--ground);
	color: var(--ink);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
}

.pill-nav__link:hover {
	border-color: var(--ink);
	color: var(--ink);
}

.pill-nav__link[aria-current] {
	border-color: var(--ink);
	background: var(--ink);
	color: #FFFFFF;
}

.pill-nav--plain .pill-nav__link {
	padding: 0 16px;
	font-weight: 400;
}

.page-hero--pills .page-hero__inner {
	padding-bottom: 40px;
}

.page-hero__pills {
	padding-top: 16px;
}

/* Listing */
.blog-listing {
	display: flex;
	flex-direction: column;
	gap: 56px;
	padding-top: 64px;
	padding-bottom: 88px;
}

.blog-grid {
	gap: 40px 24px;
}

.post-card__excerpt {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.featured-post {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
	align-items: center;
	gap: 32px 48px;
	color: var(--ink);
	text-decoration: none;
}

.featured-post:hover {
	color: var(--ink);
}

.featured-post__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	border-radius: var(--radius-lg);
}

.featured-post__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.featured-post__body {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}

.featured-post__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0 8px;
	font-family: var(--font-mono);
	font-size: 13px;
	letter-spacing: 0.12em;
	color: var(--green-deep);
}

.featured-post__title {
	margin: 0;
	font-size: 32px;
	line-height: 1.4;
	font-weight: 700;
}

.featured-post:hover .featured-post__title {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}

.featured-post__excerpt {
	display: -webkit-box;
	overflow: hidden;
	margin: 0;
	color: var(--muted);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.featured-post__more {
	font-weight: 600;
	color: var(--green-deep);
}

/* Single: header */
.post-hero {
	border-bottom: 1px solid var(--line);
	background: var(--ground-alt);
}

.post-hero__inner {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding-top: 48px;
	padding-bottom: 56px;
}

.post-hero__cat,
.post-hero__cat:hover {
	color: #FFFFFF;
}

.post-hero__cat {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	min-height: 32px;
	padding: 0 14px;
	border-radius: var(--radius-pill);
	background: var(--ink);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

.post-hero__title {
	max-width: 900px;
	margin: 0;
	font-size: clamp(30px, 3.8vw, 46px);
	line-height: 1.35;
	font-weight: 700;
	text-wrap: balance;
}

.post-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	margin: 0;
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--muted);
}

/* Single: body and sidebar */
.post-layout {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 48px 64px;
	padding-top: 56px;
	padding-bottom: 88px;
}

.post-article {
	display: flex;
	flex: 999 1 560px;
	flex-direction: column;
	gap: 28px;
	min-width: 0;
	max-width: 780px;
	font-size: 18px;
	line-height: 1.9;
}

.post-article__lead {
	margin: 0;
	font-size: 20px;
	font-weight: 500;
}

.post-toc {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 20px 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-size: 16px;
}

.post-toc__title,
.post-side__title {
	margin: 0 0 6px;
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.12em;
	color: var(--green-deep);
}

.post-toc__list {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: toc;
}

.post-toc__list a {
	counter-increment: toc;
}

.post-toc__list a::before {
	content: counter(toc) ". ";
}

/* Article text from the block editor. */
.entry-content {
	min-width: 0;
	overflow-wrap: break-word;
}

.entry-content > * {
	margin-top: 0;
	margin-bottom: 0;
}

.entry-content > * + * {
	margin-top: 28px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	line-height: 1.4;
	font-weight: 700;
	scroll-margin-top: 24px;
}

.entry-content h2 {
	font-size: 28px;
}

.entry-content h3 {
	font-size: 22px;
}

.entry-content h4 {
	font-size: 18px;
}

.entry-content > h2 {
	margin-top: 40px;
}

.entry-content > :first-child {
	margin-top: 0;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
	color: var(--muted);
}

.entry-content ul,
.entry-content ol {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-left: 24px;
}

.entry-content li > ul,
.entry-content li > ol {
	margin-top: 6px;
}

.entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--radius);
}

.entry-content figure {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-inline: 0;
}

.entry-content figcaption,
.entry-content .wp-element-caption {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--muted);
}

.entry-content blockquote {
	margin-inline: 0;
	padding: 24px 28px;
	border-radius: var(--radius);
	background: var(--ink);
	color: #FFFFFF;
	font-size: 22px;
	line-height: 1.6;
	font-weight: 500;
	--focus: var(--green-light);
}

.entry-content blockquote p {
	margin: 0;
	color: inherit;
}

.entry-content blockquote p + p {
	margin-top: 12px;
}

.entry-content blockquote cite {
	display: block;
	margin-top: 12px;
	font-size: 15px;
	font-style: normal;
	color: var(--on-dark-muted);
}

.entry-content blockquote a {
	color: var(--green-light);
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
}

.entry-content th,
.entry-content td {
	padding: 10px 12px;
	border: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.entry-content .wp-block-table {
	overflow-x: auto;
}

/* Products mentioned */
.post-products {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.post-product {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px;
	padding: 20px;
	border: 1px solid var(--line);
	border-top: 4px solid var(--green);
	border-radius: var(--radius);
	font-size: 16px;
	line-height: 1.6;
}

.post-product__media {
	position: relative;
	flex: none;
	overflow: hidden;
	width: 120px;
	aspect-ratio: 1;
	border-radius: var(--radius-sm);
}

.post-product__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-product__body {
	display: flex;
	flex: 1 1 220px;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.post-product__eyebrow {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--green-deep);
	text-transform: uppercase;
}

.post-product__title {
	font-size: 18px;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.post-product__desc {
	font-size: 14px;
	color: var(--muted);
}

.post-product__btn {
	padding: 0 22px;
}

/* Tags and share */
.post-share {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 16px 32px;
	padding: 20px 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	font-size: 15px;
	line-height: 1.5;
}

.post-share__group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.post-share__label {
	color: var(--muted);
}

.post-tags,
.share-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.post-tags__link {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	color: var(--ink);
	text-decoration: none;
}

.post-tags__link:hover {
	border-color: var(--ink);
	color: var(--ink);
}

.share-btn {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid var(--ink);
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--ink);
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.share-btn:hover {
	background: var(--ground-alt);
	color: var(--ink);
}

/* Previous / next */
.post-pager {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
	gap: 16px;
	font-size: 16px;
	line-height: 1.6;
}

.post-pager__link {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--ink);
	text-decoration: none;
}

.post-pager__link:hover {
	border-color: var(--ink);
	color: var(--ink);
}

.post-pager__link--next {
	text-align: right;
}

.post-pager__label {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--green-deep);
}

.post-pager__title {
	font-weight: 600;
}

/* Sidebar */
.post-side {
	display: flex;
	flex: 1 1 280px;
	flex-direction: column;
	gap: 32px;
	min-width: 0;
}

.post-side__block {
	display: flex;
	flex-direction: column;
}

.post-side__block .post-side__title {
	margin-bottom: 12px;
}

.latest-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.latest-list__link {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 14px 0;
	border-top: 1px solid var(--line);
	color: var(--ink);
	text-decoration: none;
}

.latest-list__link:hover {
	color: var(--ink);
}

.latest-list__link:hover .latest-list__title {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.latest-list__meta {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--muted);
}

.latest-list__title {
	font-weight: 600;
	line-height: 1.5;
}

.help-box {
	gap: 12px;
	padding: 24px;
}

.help-box__title {
	margin: 0;
	font-size: 20px;
	line-height: 1.4;
	font-weight: 700;
}

.help-box__text {
	margin: 0;
	font-size: 15px;
	color: var(--muted);
}

/* Related articles */
.related-posts__inner {
	padding-top: 72px;
	padding-bottom: 88px;
}

.related-posts .section-head__title {
	font-size: 30px;
}

/* 19. Forms (ContactForm, FormStates) ---------------------------------- */

.form-card {
	padding: clamp(24px, 4vw, 36px);
	border-top: 4px solid var(--green);
	border-radius: var(--radius);
	background: var(--ground-alt);
	font-size: 16px;
	line-height: 1.7;
}

.jrp-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.form-card__title {
	margin: 0 0 4px;
	font-size: 26px;
	line-height: 1.4;
	font-weight: 700;
}

.form-card__title:focus {
	outline: none;
}

.form-card__alert:empty {
	display: none;
}

.form-alert {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	border: 1px solid var(--error);
	border-radius: var(--radius-sm);
	background: var(--error-bg);
	color: var(--error-text);
	font-size: 15px;
	line-height: 1.6;
}

.form-alert:focus {
	outline: 2px solid var(--error);
	outline-offset: 2px;
}

.form-alert strong {
	font-weight: 600;
}

.form-alert__icon {
	flex: none;
	margin-top: 3px;
	color: var(--error);
}

.form-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
	gap: 16px;
}

.field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.field__label {
	font-size: 14px;
	font-weight: 500;
}

.field__input {
	width: 100%;
	height: 48px;
	padding: 0 12px;
	border: 1px solid var(--field-border);
	border-radius: var(--radius-sm);
	background: #FFFFFF;
	color: var(--ink);
	font: inherit;
	font-size: 16px;
}

textarea.field__input {
	height: auto;
	padding: 10px 12px;
	resize: vertical;
}

.field__input--file {
	height: auto;
	padding: 11px 12px;
	border-style: dashed;
	font-size: 15px;
}

/* 2px red border without moving the text: drop 1px of padding. */
.field.is-invalid .field__input {
	border: 2px solid var(--error);
	padding-left: 11px;
	padding-right: 11px;
}

.field.is-invalid textarea.field__input {
	padding-top: 9px;
	padding-bottom: 9px;
}

.field__error {
	font-size: 13px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--error);
}

.field__error[hidden] {
	display: none;
}

.field__check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	color: var(--muted);
}

.field__check input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 3px 0 0;
	accent-color: var(--green-deep);
}

.field--checkbox.is-invalid .field__check input {
	outline: 2px solid var(--error);
	outline-offset: 1px;
}

.form-card__submit {
	align-self: flex-start;
	min-height: 52px;
	padding: 0 36px;
}

.form-card__submit[aria-disabled="true"] {
	opacity: 0.7;
	cursor: progress;
}

/* Honeypot: out of sight and out of the tab order. */
.hp-field {
	position: absolute !important;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form-done {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	padding: 24px 0;
}

.form-done[hidden],
.jrp-form[hidden] {
	display: none;
}

.form-done__icon {
	color: var(--green-deep);
}

.form-done__text {
	margin: 0;
	color: var(--muted);
}

/* Sidebar variant (service quotation). */
.form-card--compact {
	padding: 28px;
}

.form-card--compact .jrp-form {
	gap: 14px;
}

.form-card--compact .form-card__title {
	margin: 0;
	font-size: 22px;
}

.form-card--compact .field__input:not(textarea):not(.field__input--file) {
	height: 46px;
}

.form-card--compact .field__check {
	font-size: 13px;
}

.form-card--compact .form-card__submit {
	align-self: stretch;
	min-height: 50px;
	padding: 0 24px;
}

/* 20. Contact ---------------------------------------------------------- */

.contact-layout {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
	align-items: start;
	gap: 56px;
	padding-top: 72px;
	padding-bottom: 72px;
}

.contact-channels {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.contact-form {
	min-width: 0;
}

.h2-contact {
	margin: 0;
	font-size: 30px;
	line-height: 1.35;
	font-weight: 700;
}

.channel-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.channel {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 24px;
	padding: 18px 0;
	border-top: 1px solid var(--line);
	color: var(--ink);
	text-decoration: none;
}

a.channel:hover {
	color: var(--ink);
}

a.channel:hover .channel__value {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.channel-list > li:last-child .channel,
.channel-list > li.channel:last-child {
	border-bottom: 1px solid var(--line);
}

.channel__label {
	flex: 0 0 110px;
	color: var(--muted);
}

.channel__value {
	font-family: var(--font-mono);
	font-size: 18px;
	overflow-wrap: anywhere;
}

.channel__value--lg {
	font-size: 22px;
	font-weight: 500;
}

.channel__text {
	flex: 1 1 240px;
}

.contact-map {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-bottom: 88px;
}

.contact-map__frame {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 380px;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
}

.contact-map__frame iframe {
	width: 100%;
	height: 380px;
	border: 0;
}

.contact-map__note {
	margin: 0;
	padding: 0 24px;
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--muted);
	text-align: center;
}

/* 21. Careers ---------------------------------------------------------- */

.careers-hero .page-hero__inner {
	padding-bottom: 72px;
}

.careers-hero__eyebrow {
	margin-top: 8px;
}

.page-hero--dark .btn--primary,
.page-hero--dark .btn--primary:hover {
	color: var(--ink);
}

.careers-hero__btn {
	align-self: flex-start;
	margin-top: 8px;
}

.why-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.why-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 28px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.why-card__num {
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--green-deep);
}

.why-card__title {
	margin: 0;
	font-size: 20px;
	line-height: 1.45;
	font-weight: 600;
}

.why-card__desc {
	margin: 0;
	color: var(--muted);
}

#positions:focus {
	outline: none;
}

.job-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.job-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #FFFFFF;
}

.job-card__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 16px 32px;
	padding: 24px 28px;
}

.job-card__summary {
	display: flex;
	flex: 1 1 320px;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.job-card__dept {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--green-deep);
	text-transform: uppercase;
}

.job-card__title {
	margin: 0;
	font-size: 22px;
	line-height: 1.4;
	font-weight: 600;
}

.job-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 20px;
	margin: 0;
	font-size: 14px;
	color: var(--muted);
}

.job-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.job-card__toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 20px;
	border: 1.5px solid var(--ink);
	border-radius: var(--radius-sm);
	background: #FFFFFF;
	color: var(--ink);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.job-card__toggle svg {
	transition: transform 0.15s ease;
}

.job-card__toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.job-card__apply {
	padding: 0 24px;
}

.job-card__details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
	gap: 24px 40px;
	padding: 24px 28px 28px;
	border-top: 1px solid var(--line);
}

.job-card__details[hidden] {
	display: none;
}

.job-card__block {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.job-card__subtitle {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
}

.job-card__list {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding-left: 20px;
	color: var(--muted);
}

.job-card__facts {
	display: flex;
	flex-direction: column;
	margin: 0;
	font-size: 15px;
}

.job-card__facts > div {
	display: flex;
	gap: 16px;
	padding: 10px 0;
	border-top: 1px solid var(--line);
}

.job-card__facts > div:last-child {
	border-bottom: 1px solid var(--line);
}

.job-card__facts dt {
	flex: 0 0 110px;
	color: var(--muted);
}

.job-card__facts dd {
	margin: 0;
}

.careers-note {
	margin: 0;
	color: var(--muted);
}

.apply-layout {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
	align-items: start;
	gap: 56px;
}

.apply-steps {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.apply-steps__list {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.apply-steps__item {
	display: flex;
	gap: 20px;
	padding: 18px 0;
	border-top: 1px solid var(--line);
}

.apply-steps__item:last-child {
	border-bottom: 1px solid var(--line);
}

.apply-steps__num {
	flex: none;
	padding-top: 4px;
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--green-deep);
}

.apply-steps__title {
	display: block;
	font-weight: 600;
}

.apply-steps__desc {
	display: block;
	color: var(--muted);
}

.apply-form {
	min-width: 0;
}

/* 22. Search form and results (Search) -------------------------------- */

.search-form {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100%;
	max-width: 720px;
}

.search-form__label {
	font-size: 14px;
	color: var(--muted);
}

.search-form__row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.search-form__input {
	flex: 1 1 280px;
	min-width: 0;
	height: 52px;
	padding: 0 14px;
	border: 1px solid var(--field-border);
	border-radius: var(--radius-sm);
	background: #FFFFFF;
	color: var(--ink);
	font: inherit;
	font-size: 16px;
}

.search-form__button {
	min-height: 52px;
	padding: 0 28px;
}

.search-form--dark {
	max-width: 520px;
}

.search-form--dark .search-form__label {
	color: var(--on-dark-muted);
}

.search-form--dark .search-form__input {
	flex-basis: 240px;
}

.search-hero .page-hero__inner {
	gap: 18px;
	padding-bottom: 40px;
}

.search-hero__title {
	font-size: clamp(30px, 3.6vw, 44px);
	overflow-wrap: anywhere;
}

.search-hero__filter {
	padding-top: 8px;
}

.search-hero__filter .pill-nav__link {
	gap: 8px;
}

.pill-nav__count {
	font-family: var(--font-mono);
	font-size: 12px;
}

.search-results {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding-top: 48px;
	padding-bottom: 88px;
}

.search-results__count {
	margin: 0;
	color: var(--muted);
}

.search-results__count strong {
	color: var(--ink);
}

.search-list {
	display: flex;
	flex-direction: column;
	max-width: 900px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.search-result {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
	padding: 24px 0;
	border-top: 1px solid var(--line);
	color: var(--ink);
	text-decoration: none;
}

.search-result:hover {
	color: var(--ink);
}

.search-result:hover .search-result__title {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.search-result__media {
	flex: none;
	width: 120px;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--radius-sm);
}

.search-result__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.search-result__body {
	display: flex;
	flex: 1 1 280px;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.search-result__meta {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--green-deep);
	text-transform: uppercase;
}

.search-result__title {
	font-size: 20px;
	line-height: 1.45;
	font-weight: 600;
}

.search-result__desc {
	font-size: 15px;
	color: var(--muted);
}

.search-result__price {
	font-family: var(--font-mono);
	font-size: 17px;
	font-weight: 500;
}

.search-results .pagination {
	justify-content: flex-start;
}

.search-empty {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	max-width: 720px;
	padding: clamp(24px, 4vw, 40px);
	border-top: 4px solid var(--green);
	border-radius: var(--radius);
	background: var(--ground-alt);
}

.search-empty__title {
	margin: 0;
	font-size: 26px;
	line-height: 1.4;
	font-weight: 700;
}

.search-empty__tips {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding-left: 22px;
	color: var(--muted);
}

.search-empty__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* 23. Page not found (NotFound) ---------------------------------------- */

.not-found {
	background: var(--ink);
	color: var(--on-dark);
	--focus: var(--green-light);
}

.not-found__inner {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
	align-items: center;
	gap: 40px 64px;
	padding-top: clamp(56px, 8vw, 104px);
	padding-bottom: clamp(56px, 8vw, 104px);
}

.not-found__text {
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-width: 0;
}

.not-found__eyebrow {
	font-size: 13px;
	color: var(--green-light);
}

.not-found__title {
	margin: 0;
	font-size: clamp(32px, 4vw, 50px);
	line-height: 1.3;
	font-weight: 700;
	color: #FFFFFF;
}

.not-found__lead {
	max-width: 520px;
	margin: 0;
	font-size: 18px;
	color: var(--on-dark-muted);
}

.not-found__home {
	align-self: flex-start;
	color: var(--green-light);
	font-weight: 600;
}

.not-found__home:hover {
	color: #FFFFFF;
}

.port-panel {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
	padding: 28px;
	border: 1px solid #33423A;
	border-radius: var(--radius-lg);
}

.port-panel__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.1em;
	color: var(--field-border);
}

.port-panel__status {
	color: #F2B8B5;
}

.port-panel__code {
	font-family: var(--font-mono);
	font-size: clamp(88px, 14vw, 168px);
	line-height: 1;
	font-weight: 500;
	letter-spacing: -0.02em;
	color: #FFFFFF;
}

.port-panel__ports {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 8px;
}

.port-panel__port {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	aspect-ratio: 1;
	padding-top: 18%;
	border: 1px solid #33423A;
	border-radius: 3px;
	background: #1B2621;
}

.port-panel__port > span {
	width: 32%;
	height: 14%;
	border-radius: 1px;
	background: #33423A;
}

.port-panel__port.is-down > span {
	background: #F2B8B5;
}

.shortcut-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.shortcut {
	display: flex;
	flex-direction: column;
	gap: 4px;
	height: 100%;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--ink);
	text-decoration: none;
}

.shortcut:hover {
	border-color: var(--ink);
	color: var(--ink);
}

.shortcut__eyebrow {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--green-deep);
}

.shortcut__title {
	font-size: 20px;
	font-weight: 600;
}

.shortcut__desc {
	font-size: 15px;
	color: var(--muted);
}

/* 24. Privacy policy and content pages (Privacy) ---------------------- */

.page-hero__note {
	margin: 0;
	font-family: var(--font-mono);
	font-size: 14px;
	color: var(--muted);
}

.doc-layout {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 40px 64px;
	padding-top: 64px;
	padding-bottom: 96px;
	line-height: 1.8;
}

.doc-toc {
	display: flex;
	flex: 1 1 240px;
	flex-direction: column;
	gap: 2px;
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-size: 15px;
}

.doc-toc__title {
	margin: 0 0 8px;
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.12em;
	color: var(--green-deep);
}

.doc-toc__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.doc-toc__list a {
	display: block;
	padding: 6px 0;
	color: var(--ink);
	text-decoration: none;
}

.doc-toc__list a:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.doc-body {
	display: flex;
	flex: 999 1 560px;
	flex-direction: column;
	gap: 44px;
	min-width: 0;
	max-width: 780px;
}

.doc-content > * + * {
	margin-top: 12px;
}

.doc-content > h2 {
	margin-top: 44px;
}

.doc-content > :first-child {
	margin-top: 0;
}

.doc-content h2 {
	font-size: 26px;
	line-height: 1.4;
}

.doc-content strong {
	color: var(--ink);
	font-weight: 600;
}

.doc-content .wp-block-table {
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.doc-content table {
	min-width: 520px;
	font-size: 15px;
}

.doc-content th,
.doc-content td {
	padding: 12px 16px;
	border: 0;
	text-align: left;
}

.doc-content th {
	background: var(--ground-alt);
	font-weight: 600;
}

.doc-content td {
	border-top: 1px solid var(--line);
	color: var(--muted);
}

.doc-content .cookie-settings-cta .btn {
	color: #FFFFFF;
	text-decoration: none;
}

.doc-callout {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 28px;
	border-top: 4px solid var(--green);
	border-radius: var(--radius);
	background: var(--ground-alt);
	scroll-margin-top: 24px;
}

.doc-callout__title {
	margin: 0;
	font-size: 26px;
	line-height: 1.4;
	font-weight: 700;
}

.doc-callout__intro,
.doc-callout__details {
	margin: 0;
}

.doc-callout__intro {
	color: var(--muted);
}

/* 25. Cookie consent (Cookie) ------------------------------------------ */

.btn--on-dark,
.btn--on-dark:hover {
	border: 1.5px solid var(--on-dark);
	background: transparent;
	color: #FFFFFF;
}

.btn--on-dark:hover {
	background: rgba(255, 255, 255, 0.08);
}

.cookie-banner {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 900;
	border-top: 4px solid var(--green);
	background: var(--ink);
	color: var(--on-dark);
	--focus: var(--green-light);
}

.cookie-banner[hidden] {
	display: none;
}

.cookie-banner__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px 40px;
	padding-top: 24px;
	padding-bottom: 24px;
}

.cookie-banner__text {
	display: flex;
	flex: 1 1 420px;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.cookie-banner__title {
	margin: 0;
	font-size: 20px;
	line-height: 1.4;
	font-weight: 700;
	color: #FFFFFF;
}

.cookie-banner__desc {
	margin: 0;
	font-size: 15px;
	color: var(--on-dark-muted);
}

.cookie-banner__desc a {
	color: var(--green-light);
}

.cookie-banner__desc a:hover {
	color: #FFFFFF;
}

.cookie-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.cookie-banner__actions .btn {
	flex: 1 1 auto;
	padding: 0 20px;
}

.cookie-banner__actions .btn--primary {
	padding: 0 24px;
}

.has-dialog {
	overflow: hidden;
}

.cookie-dialog {
	width: calc(100% - 48px);
	max-width: 640px;
	max-height: calc(100% - 48px);
	margin: auto;
	padding: 0;
	overflow-y: auto;
	border: 0;
	border-top: 4px solid var(--green);
	border-radius: var(--radius-lg);
	background: #FFFFFF;
	color: var(--ink);
	font-size: 16px;
	line-height: 1.7;
}

.cookie-dialog[open] {
	display: flex;
	flex-direction: column;
}

.cookie-dialog::backdrop {
	background: rgba(13, 20, 17, 0.6);
}

.cookie-dialog__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	padding: 28px 28px 12px;
}

.cookie-dialog__intro {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.cookie-dialog__title {
	margin: 0;
	font-size: 24px;
	line-height: 1.4;
	font-weight: 700;
}

.cookie-dialog__desc {
	margin: 0;
	font-size: 15px;
	color: var(--muted);
}

.cookie-dialog__close {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: #FFFFFF;
	color: var(--ink);
	cursor: pointer;
}

.cookie-dialog__close:hover {
	border-color: var(--ink);
}

.cookie-dialog__list {
	margin: 0;
	padding: 0 28px;
	list-style: none;
}

.cookie-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	padding: 18px 0;
	border-top: 1px solid var(--line);
}

.cookie-row__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.cookie-row__title {
	font-weight: 600;
}

.cookie-row__desc {
	font-size: 14px;
	color: var(--muted);
}

.cookie-row__always {
	flex: none;
	font-size: 14px;
	font-weight: 600;
	color: var(--green-deep);
}

.cookie-switch {
	display: flex;
	flex: none;
	align-items: center;
	width: 56px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.cookie-switch__track {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	width: 56px;
	height: 30px;
	padding: 3px;
	border-radius: var(--radius-pill);
	background: #8A9A90;
	transition: background 0.15s ease;
}

.cookie-switch__thumb {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #FFFFFF;
	transition: transform 0.15s ease;
}

.cookie-switch[aria-checked="true"] .cookie-switch__track {
	background: var(--green-deep);
}

.cookie-switch[aria-checked="true"] .cookie-switch__thumb {
	transform: translateX(26px);
}

.cookie-dialog__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
	padding: 20px 28px 28px;
	border-top: 1px solid var(--line);
}

.cookie-dialog__actions .btn {
	flex: 1 1 150px;
	padding: 0 20px;
}

.cookie-toast {
	position: fixed;
	bottom: 24px;
	left: 24px;
	z-index: 900;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	max-width: calc(100% - 48px);
	padding: 12px 12px 12px 20px;
	border-radius: var(--radius);
	background: var(--ink);
	color: #FFFFFF;
	--focus: var(--green-light);
}

.cookie-toast[hidden] {
	display: none;
}

.contact-map__placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 24px;
}

.contact-map__placeholder .contact-map__note {
	padding: 0;
}

@media (max-width: 599px) {
	.cookie-dialog {
		width: calc(100% - 24px);
		max-height: calc(100% - 24px);
	}

	.cookie-dialog__head {
		padding: 20px 20px 8px;
	}

	.cookie-dialog__title {
		font-size: 22px;
	}

	.cookie-dialog__list {
		padding: 0 20px;
	}

	.cookie-row {
		gap: 16px;
		padding: 14px 0;
	}

	.cookie-dialog__actions {
		padding: 16px 20px 20px;
	}

	.cookie-dialog__actions .btn {
		flex-basis: 120px;
		padding: 0 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cookie-switch__track,
	.cookie-switch__thumb {
		transition: none;
	}
}
