/*
 * Above1 — main stylesheet
 * Mobile-first. Desktop navigation styles apply at >= 64em (1024px) unless the
 * header is marked .is-compact by main.js (menu too wide to fit on one line).
 *
 * Breakpoints: 48em (768px) tablet · 64em (1024px) desktop · 75em (1200px) wide
 */

/* ---------------------------------------------------------------------------
 * 1. Fonts (self-hosted Open Sans variable, weights 400–700)
 * ------------------------------------------------------------------------- */
@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 400 700;
	font-stretch: 100%;
	font-display: swap;
	src: url("../fonts/open-sans-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 400 700;
	font-stretch: 100%;
	font-display: swap;
	src: url("../fonts/open-sans-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------------------
 * 2. Design tokens
 * ------------------------------------------------------------------------- */
:root {
	--a1-primary: #0e66b4;      /* header bar (tablet+), dropdowns, buttons */
	--a1-navy: #06407c;         /* footer, mobile header, mobile drawer */
	--a1-link: #307fc7;         /* links and headings */
	--a1-text: #616161;         /* body copy */
	--a1-muted: #989898;        /* nav hover */
	--a1-divider: #1b5fa5;      /* footer rules */
	--a1-white: #fff;

	--a1-font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--a1-container: 1170px;
	--a1-gutter: 15px;
	--a1-header-min: 72px;
	--a1-header-h: 72px;        /* real height, kept in sync by main.js */
	--a1-nav-top: 72px;         /* top edge of the mobile drawer, set by main.js */
	--a1-drawer-w: min(320px, 86vw);

	--a1-ease: cubic-bezier(.2, .7, .2, 1);
	--a1-speed: .3s;
}

@media (min-width: 48em) {
	:root {
		--a1-header-min: 80px;
	}
}

@media (min-width: 64em) {
	:root {
		--a1-header-min: 90px;
	}
}

/* ---------------------------------------------------------------------------
 * 3. Base
 * ------------------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--a1-header-h) + 16px);
}

body {
	margin: 0;
	font-family: var(--a1-font);
	font-size: .875rem;              /* 14px */
	line-height: 1.5;
	color: var(--a1-text);
	background: var(--a1-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}

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

img {
	display: block;
	border: 0;
}

a {
	color: var(--a1-link);
	text-decoration: none;
	transition: color var(--a1-speed) var(--a1-ease);
}

a:hover {
	text-decoration: underline;
}

p {
	margin: 0 0 25px;
	line-height: 30px;
	letter-spacing: 2px;
}

h1,
h2,
h3,
h4 {
	margin: 0 0 30px;
	color: var(--a1-link);
	font-weight: 700;
	letter-spacing: 2px;
	line-height: 1.2;
}

h1,
h2 {
	font-size: 1.75rem;              /* 28px */
}

h3 {
	font-size: 1.125rem;             /* 18px */
	margin-bottom: 20px;
}

h4 {
	font-size: 1rem;                 /* 16px */
	margin-bottom: 0;
	letter-spacing: 1px;
}

@media (max-width: 47.99em) {
	h2 {
		margin-bottom: 20px;
	}
}

button {
	font: inherit;
}

:focus-visible {
	outline: 2px solid var(--a1-link);
	outline-offset: 2px;
}

.container {
	width: min(100% - (var(--a1-gutter) * 2), var(--a1-container));
	margin-inline: auto;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	top: 8px;
	left: 8px;
	z-index: 100000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 12px 20px;
	clip-path: none;
	background: var(--a1-white);
	color: var(--a1-navy);
	font-weight: 700;
	box-shadow: 0 4px 16px rgb(0 0 0 / .25);
}

.site-content {
	min-height: 40vh;
}

/* Main area: 30px under the header on phones, 80px from tablet up (reference spacing) */
.site-main {
	padding-block: 30px;
}

@media (min-width: 48em) {
	.site-main {
		padding-block: 80px 0;
	}
}

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

/* ---------------------------------------------------------------------------
 * 4. Header
 * ------------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 999;
	background: var(--a1-navy);
	color: var(--a1-white);
}

/* soft 10px shadow under the bar (same as the reference bg_header.png) */
.site-header::after {
	content: "";
	position: absolute;
	inset: 100% 0 auto;
	height: 10px;
	pointer-events: none;
	background: linear-gradient(to bottom, rgb(0 0 0 / .43), rgb(0 0 0 / .11) 50%, rgb(0 0 0 / 0));
}

@media (min-width: 48em) {
	.site-header {
		background: var(--a1-primary);
	}
}

/* WordPress admin bar offsets for the sticky header */
.admin-bar .site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: var(--a1-header-min);
}

.site-branding {
	flex: 0 1 auto;
	min-width: 0;
	margin: 0;
	line-height: 0;
}

.site-branding a {
	display: inline-block;
	line-height: 0;
}

.site-branding a:hover {
	text-decoration: none;
}

.site-branding img {
	width: auto;
	height: auto;
	max-width: min(224px, 52vw);
	max-height: 91px;
}

.site-branding__text {
	display: inline-block;
	color: var(--a1-white);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 1px;
}

/* Burger (mobile / compact) */
.menu-toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	margin-right: -7px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--a1-white);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.menu-toggle:focus-visible {
	outline-color: var(--a1-white);
}

.menu-toggle__box {
	position: relative;
	display: block;
	width: 30px;
	height: 30px;
}

.menu-toggle__bar {
	position: absolute;
	left: 0;
	display: block;
	width: 100%;
	height: 5px;
	background: currentColor;
	transition: transform .25s var(--a1-ease), opacity .25s var(--a1-ease), top .25s var(--a1-ease), left .25s var(--a1-ease);
}

.menu-toggle__bar:nth-child(1) {
	top: 0;
}

.menu-toggle__bar:nth-child(2) {
	top: calc(50% - 2.5px);
}

.menu-toggle__bar:nth-child(3) {
	top: calc(100% - 5px);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
	top: calc(50% - 2.5px);
	transform: rotate(135deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
	opacity: 0;
	left: -40px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
	top: calc(50% - 2.5px);
	transform: rotate(-135deg);
}

/* ---------------------------------------------------------------------------
 * 5. Navigation — mobile drawer (default, and desktop when .is-compact)
 * ------------------------------------------------------------------------- */
.main-navigation {
	position: fixed;
	top: var(--a1-nav-top);
	right: 0;
	bottom: 0;
	z-index: 998;
	width: var(--a1-drawer-w);
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--a1-navy);
	box-shadow: -12px 0 32px rgb(0 0 0 / .25);
	transform: translateX(105%);
	visibility: hidden;
	transition: transform .45s var(--a1-ease), visibility 0s linear .45s;
}

.main-navigation.is-open {
	transform: none;
	visibility: visible;
	transition: transform .45s var(--a1-ease), visibility 0s;
}

.nav-backdrop {
	position: fixed;
	top: var(--a1-nav-top);
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 997;
	background: rgb(3 22 43 / .55);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	opacity: 0;
	transition: opacity .35s var(--a1-ease);
}

.nav-backdrop[hidden] {
	display: none;
}

.nav-backdrop.is-visible {
	opacity: 1;
}

html.a1-nav-open {
	overflow: hidden;
}

.main-menu,
.main-menu .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-menu {
	padding: 12px 10px 24px;
}

.main-menu li {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.main-menu > li + li {
	border-top: 1px solid rgb(0 0 0 / .22);
}

.main-menu a {
	flex: 1 1 0;
	min-width: 0;
	display: block;
	padding: 14px 16px;
	color: var(--a1-white);
	font-size: .875rem;
	font-weight: 600;
	letter-spacing: 1px;
	line-height: 1.4;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.main-menu a:hover,
.main-menu a:focus-visible {
	color: var(--a1-muted);
	text-decoration: none;
}

.main-menu a:focus-visible,
.submenu-toggle:focus-visible {
	outline: 2px solid var(--a1-white);
	outline-offset: -2px;
}

.submenu-toggle {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--a1-white);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.submenu-toggle__icon {
	display: block;
	width: 9px;
	height: 9px;
	margin-top: -5px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform var(--a1-speed) var(--a1-ease), margin var(--a1-speed) var(--a1-ease);
}

.menu-item.is-open > .submenu-toggle .submenu-toggle__icon {
	margin-top: 4px;
	transform: rotate(-135deg);
}

.main-menu .sub-menu {
	display: none;
	flex: 0 0 100%;
	padding: 0 0 10px 15px;
}

.main-menu .menu-item.is-open > .sub-menu {
	display: block;
	animation: a1-reveal .3s var(--a1-ease);
}

.main-menu .sub-menu a {
	padding-block: 10px;
	font-size: .75rem;               /* 12px */
}

@keyframes a1-reveal {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

/* No-JS fallback: show the menu as a plain list under the header */
html:not(.js) .menu-toggle {
	display: none;
}

html:not(.js) .site-header__inner {
	flex-wrap: wrap;
}

html:not(.js) .main-navigation {
	position: static;
	flex: 0 0 100%;
	width: 100%;
	transform: none;
	visibility: visible;
	box-shadow: none;
	background: transparent;
}

html:not(.js) .main-menu .sub-menu {
	display: block;
}

/* ---------------------------------------------------------------------------
 * 6. Navigation — desktop (>= 1024px, not compact)
 * ------------------------------------------------------------------------- */
/* main.js toggles .is-compact while measuring; never animate that switch */
.a1-measuring,
.a1-measuring * {
	transition: none !important;
}

@media (min-width: 64em) {
	.site-header:not(.is-compact) .menu-toggle {
		display: none;
	}

	.site-header:not(.is-compact) .site-header__inner {
		align-items: stretch;
	}

	.site-header:not(.is-compact) .site-branding {
		display: flex;
		flex: 0 0 auto;
		align-items: center;
	}

	.site-header:not(.is-compact) .main-navigation {
		position: static;
		display: flex;
		flex: 1 1 auto;
		justify-content: flex-end;
		width: auto;
		min-width: 0;
		overflow: visible;
		background: transparent;
		box-shadow: none;
		transform: none;
		visibility: visible;
		transition: none;
	}

	.site-header:not(.is-compact) .main-menu {
		display: flex;
		flex-wrap: nowrap;
		align-items: stretch;
		padding: 0;
	}

	.site-header:not(.is-compact) .main-menu > li {
		flex-wrap: nowrap;
		align-items: center;
		border: 0;
	}

	.site-header:not(.is-compact) .main-menu a {
		flex: 0 0 auto;
		padding: 9px 12px;
		font-size: .875rem;
		text-transform: none;
		white-space: nowrap;
		overflow-wrap: normal;
	}

	.site-header:not(.is-compact) .main-menu > .menu-item-has-children > a {
		padding-right: 0;
	}

	.site-header:not(.is-compact) .main-menu a:focus-visible,
	.site-header:not(.is-compact) .submenu-toggle:focus-visible {
		outline-offset: 0;
		border-radius: 3px;
	}

	.site-header:not(.is-compact) .submenu-toggle {
		width: 22px;
		height: 30px;
		margin-right: 4px;
		justify-content: flex-start;
		padding-left: 4px;
	}

	.site-header:not(.is-compact) .submenu-toggle__icon {
		width: 9px;
		height: 9px;
	}

	.site-header:not(.is-compact) .menu-item-has-children:hover > .submenu-toggle,
	.site-header:not(.is-compact) .menu-item-has-children:hover > a {
		color: var(--a1-muted);
	}

	/* dropdown panel */
	.site-header:not(.is-compact) .main-menu .sub-menu {
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 1000;
		display: block;
		min-width: 10rem;
		width: max-content;
		max-width: 300px;
		padding: 10px 0;
		background: var(--a1-primary);
		box-shadow: 0 14px 28px rgb(0 0 0 / .18);
		opacity: 0;
		visibility: hidden;
		transform: translateY(8px);
		transition: opacity .2s var(--a1-ease), transform .2s var(--a1-ease), visibility 0s linear .2s;
		animation: none;
	}

	.site-header:not(.is-compact) .main-menu .menu-item-has-children:hover > .sub-menu,
	.site-header:not(.is-compact) .main-menu .menu-item-has-children:focus-within > .sub-menu,
	.site-header:not(.is-compact) .main-menu .menu-item-has-children.is-open > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: opacity .2s var(--a1-ease), transform .2s var(--a1-ease), visibility 0s;
	}

	/* Esc / outside click closes a dropdown even while hovered or focused */
	.site-header:not(.is-compact) .main-menu .menu-item-has-children.is-closed > .sub-menu {
		opacity: 0;
		visibility: hidden;
		transform: translateY(8px);
	}

	.site-header:not(.is-compact) .main-menu .sub-menu.is-flipped {
		left: auto;
		right: 0;
	}

	.site-header:not(.is-compact) .main-menu .sub-menu li {
		align-items: center;
	}

	.site-header:not(.is-compact) .main-menu .sub-menu a {
		flex: 1 1 auto;
		padding: 9px 20px;
		font-size: .875rem;
		white-space: normal;
		line-height: 1.45;
	}

	/* third level flies out to the side */
	.site-header:not(.is-compact) .main-menu .sub-menu .sub-menu {
		top: -10px;
		left: 100%;
	}

	.site-header:not(.is-compact) .main-menu .sub-menu .sub-menu.is-flipped {
		left: auto;
		right: 100%;
	}

	.site-header:not(.is-compact) .main-menu .sub-menu .submenu-toggle {
		width: 30px;
		margin-right: 8px;
		justify-content: center;
		padding-left: 0;
	}

	.site-header:not(.is-compact) .main-menu .sub-menu .submenu-toggle__icon {
		margin-top: 0;
		margin-left: -4px;
		transform: rotate(-45deg);
	}

	.site-header:not(.is-compact) .main-menu .sub-menu .submenu-toggle:has(+ .sub-menu.is-flipped) .submenu-toggle__icon {
		margin-left: 4px;
		transform: rotate(135deg);
	}

	.site-header:not(.is-compact) .main-menu > .menu-item.is-open > .submenu-toggle .submenu-toggle__icon {
		margin-top: -5px;
		transform: rotate(45deg);
	}

	.nav-backdrop {
		display: none;
	}
}

/* Wider screens: the reference spacing (20px each side) */
@media (min-width: 75em) {
	.site-header:not(.is-compact) .main-menu a {
		padding-inline: 20px;
	}

	.site-header:not(.is-compact) .main-menu > .menu-item-has-children > a {
		padding-right: 0;
	}

	.site-header:not(.is-compact) .submenu-toggle {
		margin-right: 0;
	}
}

/* ---------------------------------------------------------------------------
 * 7. Footer
 * ------------------------------------------------------------------------- */
.site-footer {
	margin-top: 30px;
	color: var(--a1-white);
	background: var(--a1-navy);
	font-size: .8125rem;             /* 13px */
	letter-spacing: 1px;
}

@media (min-width: 48em) {
	.site-footer {
		margin-top: 60px;
	}
}

.site-footer a {
	color: var(--a1-white);
}

.site-footer a:hover,
.site-footer a:focus-visible {
	color: var(--a1-muted);
	text-decoration: none;
}

.site-footer a:focus-visible {
	outline-color: var(--a1-white);
}

.footer-top {
	padding-block: 30px;
}

@media (min-width: 48em) {
	.footer-top {
		padding-block: 60px;
	}
}

.footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	row-gap: 28px;
}

.footer-col {
	min-width: 0;
}

.footer-col--brand {
	display: flex;
	align-items: center;
	justify-content: center;
}

.footer-logo {
	display: inline-block;
	line-height: 0;
}

.footer-logo img {
	width: auto;
	max-width: min(293px, 100%);
	height: auto;
}

.footer-title {
	margin: 0 0 20px;
	color: var(--a1-white);
	font-size: .875rem;              /* 14px */
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 1px;
	text-transform: uppercase;
}

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

.footer-menu li {
	padding-block: 5px;
	line-height: 20px;
}

.footer-menu li:first-child {
	padding-top: 0;
}

.footer-menu a {
	font-size: .8125rem;
}

.footer-text {
	overflow-wrap: anywhere;
}

.footer-text p {
	margin: 0 0 13px;
	line-height: 1.4;
	letter-spacing: 1px;
}

.footer-text > *:last-child {
	margin-bottom: 0;
}

.footer-text ul,
.footer-text ol {
	margin: 0 0 13px;
	padding-left: 18px;
	line-height: 1.6;
}

.footer-bottom {
	border-top: 1px solid var(--a1-divider);
	font-size: .75rem;               /* 12px */
}

.footer-bottom .container {
	padding-block: 8px;
}

.footer-copyright {
	margin: 0;
	line-height: 30px;
	letter-spacing: 2px;
}

/* Tablet: 2 x 2 */
@media (min-width: 48em) {
	.footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin-inline: calc(var(--a1-gutter) * -1);
		row-gap: 30px;
	}

	.footer-col {
		padding-inline: var(--a1-gutter);
	}

	.footer-col--brand {
		justify-content: flex-start;
		border-right: 1px solid var(--a1-divider);
		padding-right: 30px;
	}

	.footer-col--menu {
		padding-left: calc(var(--a1-gutter) + 30px);
	}
}

/* Desktop: 28 / 20 / 25 / 27 like the reference */
@media (min-width: 64em) {
	.footer-grid {
		grid-template-columns: 28% 20% 25% 27%;
		row-gap: 0;
	}

	.footer-col--brand {
		padding-right: 30px;
	}
}

/* Back to top */
.back-to-top {
	position: fixed;
	right: max(16px, 5%);
	bottom: max(16px, 5%);
	z-index: 990;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	color: var(--a1-primary);
	background: var(--a1-white);
	box-shadow: 0 6px 18px rgb(6 64 124 / .28);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity var(--a1-speed) var(--a1-ease), transform var(--a1-speed) var(--a1-ease), visibility 0s linear var(--a1-speed), color var(--a1-speed);
}

.back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity var(--a1-speed) var(--a1-ease), transform var(--a1-speed) var(--a1-ease), visibility 0s, color var(--a1-speed);
}

.back-to-top:hover,
.back-to-top:focus-visible {
	color: var(--a1-navy);
	text-decoration: none;
}

.back-to-top svg {
	width: 42px;
	height: 42px;
}

html:not(.js) .back-to-top {
	display: none;
}

/* ---------------------------------------------------------------------------
 * 8. Buttons (reference .btn: solid blue, outline on hover, arrow icon)
 * ------------------------------------------------------------------------- */
.a1-btn,
.entry-content .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: min(240px, 100%);
	padding: 10px;
	border: 2px solid var(--a1-primary);
	border-radius: 0;
	background: var(--a1-primary);
	color: var(--a1-white);
	font-size: .875rem;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 1px;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	overflow-wrap: anywhere;
	transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}

/* A core Button sits in a shrink-to-fit flex item (.wp-block-button), where a
   percentage min-width resolves to 0: use the fixed reference minimum there,
   capped at the available width. */
.entry-content .wp-block-button__link {
	min-width: 240px;
	max-width: 100%;
}

.a1-btn::after,
.entry-content .wp-block-button__link::after {
	content: "";
	flex: 0 0 12px;
	width: 12px;
	height: 12px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 6h9M6.5 2.5 10 6 6.5 9.5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 6h9M6.5 2.5 10 6 6.5 9.5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform .3s var(--a1-ease);
}

.a1-btn:hover,
.a1-btn:focus-visible,
.entry-content .wp-block-button__link:hover,
.entry-content .wp-block-button__link:focus-visible {
	background: transparent;
	color: var(--a1-primary);
	border-color: var(--a1-primary);
	text-decoration: none;
}

.a1-btn:hover::after,
.entry-content .wp-block-button__link:hover::after {
	transform: translateX(3px);
}

/* ---------------------------------------------------------------------------
 * 9. Page content (Gutenberg)
 * ------------------------------------------------------------------------- */
.entry-header {
	margin-bottom: 30px;
}

.entry-title {
	margin-bottom: 0;
}

.entry-content > .alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-inline: calc(50% - 50vw);
}

/* Page banner: featured image + title box at the middle-left (inner pages) */
.page-banner {
	position: relative;
	margin: 0 0 80px;
}

.page-banner__img {
	width: 100%;
	height: auto;
}

.page-banner__box {
	position: absolute;
	top: 50%;
	left: 0;
	max-width: 100%;
	padding: 0 10px 10px;
	background: rgb(255 255 255 / .9);
	transform: translateY(-50%);
}

.page-banner__title {
	position: relative;
	margin: 0;
	padding: 10px 0;
	color: #2c81c4;
	font-size: 1.875rem;             /* 30px on phones (reference) */
}

.page-banner__title::after {
	content: "";
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 60px;
	height: 2px;
	background: var(--a1-link);
}

@media (min-width: 48em) {
	.page-banner__box {
		min-width: 400px;
		padding: 12px 30px 30px;
	}

	.page-banner__title {
		font-size: 1.75rem;          /* 28px */
	}
}

/* Lists: 17px indent, 35px lines, 25px apart. Kept before the section rules
   below, which must win on margins (same specificity). */
.entry-content :where(ul, ol) {
	margin: 0 0 25px;
	padding-left: 17px;
}

.entry-content li {
	margin-bottom: 25px;
	padding-left: 2px;
	line-height: 35px;
	letter-spacing: 2px;
}

.entry-content li > :where(ul, ol) {
	margin: 25px 0 0;
}

/* Every top-level block is a section, 60px apart (80px after the slider,
   30px under a section title) */
.entry-content--sections > * {
	margin-block: 0;
}

.entry-content--sections > * + * {
	margin-block-start: 60px;
}

.entry-content--sections > .a1-slider + * {
	margin-block-start: 80px;
}

.entry-content--sections > .is-style-section-title + * {
	margin-block-start: 30px;
}

.entry-content--sections > .is-style-subtitle + * {
	margin-block-start: 50px;
}

/* An h2 section title keeps the reference h2 margin: 20px below 768px */
@media (max-width: 47.99em) {
	.entry-content--sections > h2.is-style-section-title + * {
		margin-block-start: 20px;
	}
}

/* Block style: Heading → Section title */
.entry-content .is-style-section-title {
	font-size: 1.125rem;             /* 18px */
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
}

/* Block style: Paragraph → Subtitle (centred; next section 50px under it) */
.entry-content .is-style-subtitle {
	text-align: center;
}

/* An empty subtitle (reference service pages with a blank sub-title) takes no
   space, but the next section still sits 50px under the title */
.entry-content .is-style-subtitle:empty {
	display: none;
}

/* Justified text (core ships no rule for this alignment class) */
.has-text-align-justify {
	text-align: justify;
}

/* Block styles: Gallery → Captions below / Blue cards / Two columns.
   2 columns (20px apart, 10px between rows), from 992px 3 or 4 columns
   (40px apart, 20px between rows); Two columns overrides below. The row space
   sits under each item, as on the reference, so the last row keeps it too. */
.entry-content .wp-block-gallery:is(.is-style-captions-below, .is-style-blue-cards, .is-style-two-columns) {
	--a1-grid-col: 20px;
	--a1-grid-row: 10px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 var(--a1-grid-col);
	align-items: stretch;
}

.entry-content .wp-block-gallery:is(.is-style-captions-below, .is-style-blue-cards, .is-style-two-columns) > .blocks-gallery-caption {
	grid-column: 1 / -1;
}

.entry-content .wp-block-gallery:is(.is-style-captions-below, .is-style-blue-cards, .is-style-two-columns) figure.wp-block-image {
	display: block;
	width: auto !important;
	margin: 0 0 var(--a1-grid-row) !important;
}

.entry-content .wp-block-gallery:is(.is-style-captions-below, .is-style-blue-cards, .is-style-two-columns) figure.wp-block-image::before {
	content: none;
}

.entry-content .wp-block-gallery:is(.is-style-captions-below, .is-style-blue-cards, .is-style-two-columns) figure.wp-block-image img {
	width: 100%;
	height: auto;
}

.entry-content .wp-block-gallery:is(.is-style-captions-below, .is-style-blue-cards, .is-style-two-columns) figure.wp-block-image figcaption {
	position: static;
	max-height: none;
	margin: 20px 0 14px;
	padding: 0;
	overflow: visible;
	background: none;
	color: var(--a1-text);
	font-size: .875rem;              /* 14px */
	line-height: 25px;
	letter-spacing: 2px;
	text-align: left;
	text-shadow: none;
	will-change: auto;
}

.entry-content .wp-block-gallery.is-style-blue-cards figure.wp-block-image {
	background: var(--a1-primary);
}

.entry-content .wp-block-gallery.is-style-blue-cards figure.wp-block-image figcaption {
	margin: 0;
	padding: 20px;
	color: var(--a1-white);
}

@media (min-width: 62em) {
	.entry-content .wp-block-gallery:is(.is-style-captions-below, .is-style-blue-cards, .is-style-two-columns) {
		--a1-grid-col: 40px;
		--a1-grid-row: 20px;
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.entry-content .wp-block-gallery.is-style-blue-cards {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Block style: Gallery → Two columns (reference Milestones): 1 column, items
   14px apart (the caption margin); from 992px 2 columns 60px apart, 44px
   between rows */
.entry-content .wp-block-gallery.is-style-two-columns {
	--a1-grid-row: 0px;
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 62em) {
	.entry-content .wp-block-gallery.is-style-two-columns {
		--a1-grid-col: 60px;
		--a1-grid-row: 30px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Block style: Gallery → Photo row (reference service photos): images up to
   450px wide, centred side by side 96px apart; once the row no longer fits
   (below ~1000px of content) they stack, centred, 30px apart. Reference
   spacing: on phones 30px above the row (its line of spaces before the first
   photo); from 768px 25px under it (the photo paragraph's margin, so a
   service page ends 85px above the footer). */
.entry-content .wp-block-gallery.is-style-photo-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 30px 96px;
	padding-top: 30px;
}

@media (min-width: 48em) {
	.entry-content .wp-block-gallery.is-style-photo-row {
		padding-top: 0;
		padding-bottom: 25px;
	}
}

.entry-content .wp-block-gallery.is-style-photo-row figure.wp-block-image {
	flex: 0 1 450px;
	width: auto !important;
	margin: 0 !important;
}

.entry-content .wp-block-gallery.is-style-photo-row figure.wp-block-image img {
	width: 100%;
	height: auto;
}

/* Block style: Group → Service body (reference service page content): from
   768px 25px under the group, the reference's last-paragraph margin, so the
   page ends 85px above the footer */
@media (min-width: 48em) {
	.entry-content .wp-block-group.is-style-service-body {
		padding-bottom: 25px;
	}
}

/* Group = one section: its first and last blocks add no outer space */
.entry-content--sections > .wp-block-group > :first-child {
	margin-block-start: 0;
}

.entry-content--sections > .wp-block-group > :last-child {
	margin-block-end: 0;
}

/* Block style: Group → Card grid (reference Customers). Each inner block is a
   card with a grey border; a heading at its top becomes a 70px blue title bar.
   2 columns, from 992px all cards in one row; 20px apart, 10px above and
   below the grid (reference card margins). */
.entry-content .wp-block-group.is-style-card-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	padding-block: 10px;
}

@media (min-width: 62em) {
	.entry-content .wp-block-group.is-style-card-grid {
		grid-template-columns: none;
		grid-auto-columns: minmax(0, 1fr);
		grid-auto-flow: column;
	}
}

.entry-content .wp-block-group.is-style-card-grid > * {
	margin: 0;
	border: 1px solid #d8d8d8;
}

.entry-content .is-style-card-grid > * > .wp-block-heading:first-child {
	display: grid;
	align-content: center;
	min-height: 70px;
	margin: 0 0 30px;
	padding: 0;
	background: var(--a1-primary);
	color: var(--a1-white);
	font-size: 1.125rem;             /* 18px */
	line-height: 1.2;
	letter-spacing: 1px;
	text-align: center;
	text-transform: uppercase;
}

.entry-content .is-style-card-grid > * > p {
	line-height: 35px;
}

/* Block style: Group → Product cards (reference Products page). Each inner
   block is a card: full-width image, uppercase heading 20px under it, then
   blocks 30px apart (the button). Stacked 30px apart (they touch on the
   reference); from 768px two per row, 30px apart, with 15px above and below
   the row (reference card margins). */
.entry-content .wp-block-group.is-style-product-cards {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 30px;
}

@media (min-width: 48em) {
	.entry-content .wp-block-group.is-style-product-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding-block: 15px;
	}
}

.entry-content .is-style-product-cards > *,
.entry-content .is-style-product-cards > * > * {
	margin-block: 0;
}

.entry-content .is-style-product-cards > * > * + * {
	margin-block-start: 30px;
}

.entry-content .is-style-product-cards > * > .wp-block-image + * {
	margin-block-start: 20px;
}

.entry-content .is-style-product-cards .wp-block-image img {
	width: 100%;
}

.entry-content .is-style-product-cards .wp-block-heading {
	text-transform: uppercase;
}

/* Block style: Buttons → Service tiles (reference Services list). Full-width
   118px tiles 10px apart; from 992px quarter-width tiles (any count) 20px
   apart, centred, with 10px above and below the row. The space under the last
   tile matches the reference item margin. Up to 4 lines fit in 118px (8px
   vertical padding); longer text grows the row, and tiles in a row share its
   height. The bottom border stays light blue on hover. */
.entry-content .wp-block-buttons.is-style-service-tiles {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: stretch;
	gap: 10px;
	padding-bottom: 10px;
}

@media (min-width: 62em) {
	.entry-content .wp-block-buttons.is-style-service-tiles {
		grid-template-columns: repeat(auto-fit, calc((100% - 60px) / 4));
		justify-content: center;
		gap: 20px;
		padding-top: 10px;
	}
}

.entry-content .is-style-service-tiles > .wp-block-button {
	display: flex;
	width: auto;
	margin: 0;
}

.entry-content .is-style-service-tiles .wp-block-button__link {
	display: flex;
	width: 100%;
	min-width: 0;
	min-height: 118px;
	padding-block: 8px;
	border-bottom-width: 4px;
	border-bottom-color: #5893c6;
	font-size: 1rem;                 /* 16px */
	line-height: 1.5;
}

.entry-content .is-style-service-tiles .wp-block-button__link::after {
	content: none;
}

/* Block style: Image → Soft shadow */
.wp-block-image.is-style-soft-shadow img {
	box-shadow: 0 0 10px rgb(0 0 0 / .1);
}

/* Block style: Gallery → Logo grid (logos at natural size, centred, 1000px max) */
.entry-content .wp-block-gallery.is-style-logo-grid {
	--wp--style--unstable-gallery-gap: 16px;
	gap: 16px;
	max-width: 1000px;
	margin-inline: auto;
}

.entry-content .wp-block-gallery.is-style-logo-grid figure.wp-block-image {
	align-items: center;
	justify-content: center;
}

.entry-content .wp-block-gallery.is-style-logo-grid figure.wp-block-image img {
	flex: 0 0 auto !important;
	width: auto !important;
	height: auto !important;
	max-width: 100% !important;
	object-fit: contain !important;
}

.entry-content .wp-block-gallery.is-style-logo-grid figure.wp-block-image figcaption {
	position: static;
	padding: 6px 0 0;
	background: none;
	color: var(--a1-text);
	text-align: center;
}

/* ---------------------------------------------------------------------------
 * 10. Slider ([above1_slider])
 * ------------------------------------------------------------------------- */
.a1-slider {
	--a1-ratio: 2.2931;
	position: relative;
	overflow: hidden;
	container-type: inline-size;
	background: #a5a5a5;
}

.a1-slider__track {
	display: grid;
	touch-action: pan-y;
}

.a1-slide {
	position: relative;
	grid-area: 1 / 1;
	display: flex;
	flex-direction: column;
	opacity: 0;
	visibility: hidden;
	background: #585858;
}

.a1-slide.is-active {
	z-index: 1;
	opacity: 1;
	visibility: visible;
}

.a1-slider.is-ready .a1-slide {
	transition: opacity .6s ease, visibility 0s linear .6s;
}

.a1-slider.is-ready .a1-slide.is-active {
	transition: opacity .6s ease, visibility 0s;
}

.a1-slide__media {
	aspect-ratio: var(--a1-ratio);
	overflow: hidden;
}

.a1-slide__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Caption: stacked under the image below 992px (reference) */
.a1-slide__caption {
	flex: 1 1 auto;
	display: flex;
}

.a1-slide__box {
	flex: 1 1 auto;
	padding: 40px 30px;
	background: rgb(255 255 255 / .8);
	text-align: left;
}

.a1-slide__title {
	margin: 0;
	color: var(--a1-link);
	font-size: 1.5rem;               /* 24px */
	letter-spacing: 2px;
	line-height: 1.2;
	text-wrap: pretty;
}

.a1-slide__text {
	margin: 10px 0 0;
	font-size: 1rem;
	line-height: 1.5;
}

.a1-slide__btn {
	margin-top: 20px;
}

@media (min-width: 48em) {
	.a1-slide__title {
		font-size: 2.25rem;          /* 36px */
	}
}

/* Caption box over the image, middle-left (reference) */
@media (min-width: 62em) {
	.a1-slide {
		background: none;
	}

	.a1-slide__caption {
		position: absolute;
		inset: 0;
		z-index: 2;
		align-items: center;
		pointer-events: none;
	}

	.a1-slide__box {
		flex: 0 1 auto;
		max-width: 80%;
		pointer-events: auto;
	}

	.a1-slide__text {
		margin-top: 20px;
		font-size: 1.25rem;          /* 20px */
	}
}

@media (min-width: 75em) {
	.a1-slide__box {
		max-width: 50%;
	}
}

/* Arrows: hidden off-edge, slide in on hover (reference); always shown on touch / small screens */
.a1-slider__arrow {
	position: absolute;
	top: calc(50cqi / var(--a1-ratio));
	z-index: 3;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--a1-white);
	cursor: pointer;
	opacity: 0;
	translate: 0 -50%;
	filter: drop-shadow(0 1px 2px rgb(0 0 0 / .3));
	transition: opacity .3s ease, left .3s ease, right .3s ease, color .2s ease;
	-webkit-tap-highlight-color: transparent;
}

.a1-slider__arrow svg {
	width: 42px;
	height: 42px;
}

.a1-slider__arrow--prev {
	left: -50px;
}

.a1-slider__arrow--next {
	right: -50px;
}

.a1-slider:hover .a1-slider__arrow,
.a1-slider:focus-within .a1-slider__arrow {
	opacity: .7;
}

.a1-slider:hover .a1-slider__arrow--prev,
.a1-slider:focus-within .a1-slider__arrow--prev {
	left: 10px;
}

.a1-slider:hover .a1-slider__arrow--next,
.a1-slider:focus-within .a1-slider__arrow--next {
	right: 10px;
}

.a1-slider__arrow:hover,
.a1-slider__arrow:focus-visible {
	opacity: 1 !important;
	color: var(--a1-primary);
}

.a1-slider__arrow:focus-visible {
	outline: 2px solid var(--a1-white);
	outline-offset: 2px;
}

@media (hover: none), (max-width: 53.75em) {
	.a1-slider .a1-slider__arrow {
		opacity: 1;
	}

	.a1-slider .a1-slider__arrow--prev {
		left: 10px;
	}

	.a1-slider .a1-slider__arrow--next {
		right: 10px;
	}
}

/* Dots: 7px squares, bottom centre */
.a1-slider__dots {
	position: absolute;
	right: 0;
	bottom: 14px;
	left: 0;
	z-index: 3;
	display: flex;
	justify-content: center;
	gap: 4px;
}

.a1-slider__dot {
	position: relative;
	width: 7px;
	height: 7px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #eaeaea;
	cursor: pointer;
	transition: background-color .2s ease;
}

.a1-slider__dot::before {
	content: "";
	position: absolute;
	inset: -9px -2px;
}

.a1-slider__dot:hover,
.a1-slider__dot[aria-current="true"] {
	background: #2c81c4;
}

.a1-slider__dot:focus-visible {
	outline: 2px solid var(--a1-primary);
	outline-offset: 3px;
}

.a1-slider-empty {
	padding: 16px 20px;
	border: 1px dashed var(--a1-muted);
	color: var(--a1-text);
	letter-spacing: 0;
}

/* ---------------------------------------------------------------------------
 * 11. Forms — Contact Form 7
 * Forms keep the reference's Bootstrap class names (row, col-sm-6, form-group,
 * form-control, text-center, text-danger, btn). The theme has no Bootstrap,
 * so they are styled here, only inside .wpcf7. Fields are styled by type, so
 * a field without class:form-control (the tel field) looks the same.
 * ------------------------------------------------------------------------- */
.wpcf7 .row {
	display: flex;
	flex-wrap: wrap;
	column-gap: 30px;
}

.wpcf7 .row > * {
	flex: 1 1 100%;
	min-width: 0;
}

@media (min-width: 36em) {           /* 576px: Bootstrap "sm" */
	.wpcf7 .row > .col-sm-6 {
		flex-basis: calc(50% - 15px);
	}
}

.wpcf7 .form-group {
	margin-bottom: 23px;
}

/* Field rows: 23px + the 2px the reference's inline inputs add (rows 99px apart) */
.wpcf7 .row .form-group {
	margin-bottom: 25px;
}

/* CF7 wraps each field in <p> and adds <br> after the label */
.wpcf7 :is(.form-group, .form-action) > p {
	margin: 0;
	letter-spacing: normal;
}

.wpcf7 label + br {
	display: none;
}

.wpcf7 label {
	display: block;
	margin-bottom: 10px;
	font-size: .875rem;              /* 14px */
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: normal;
}

.wpcf7 .text-center {
	text-align: center;
}

.wpcf7 .text-danger {
	color: #dc3545;
}

.wpcf7 .wpcf7-form-control-wrap {
	display: block;
}

.wpcf7 :is(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="date"], select, textarea) {
	display: block;
	width: 100%;
	height: 43px;
	margin: 0;
	padding: 0 10px;
	border: 1px solid #dadada;
	border-radius: 0;
	background: var(--a1-white);
	color: #495057;
	font: inherit;
	font-size: 1rem;                 /* 16px (also stops iOS zoom on focus) */
	line-height: 1.5;
	letter-spacing: normal;
	transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

/* Height from the rows attribute (10 rows → 282px, as on the reference) */
.wpcf7 .wpcf7-form-control-wrap textarea {
	height: auto;
	min-height: 120px;
	padding: 20px 10px;
	resize: vertical;
}

.wpcf7 :is(input, select, textarea):focus {
	border-color: #80bdff;
	outline: 0;
	box-shadow: 0 0 0 2px rgb(0 123 255 / .25);
}

.wpcf7 :is(input, select, textarea).wpcf7-not-valid {
	border-color: #dc3232;
}

/* Submit: the theme button (solid blue, outline on hover), centred */
.wpcf7 .wpcf7-submit {
	min-width: min(240px, 100%);
	margin: 0;
	padding: 10px;
	border: 2px solid var(--a1-primary);
	border-radius: 0;
	background: var(--a1-primary);
	color: var(--a1-white);
	font: inherit;
	font-size: .875rem;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 1px;
	text-transform: uppercase;
	cursor: pointer;
	transition: color .15s ease-in-out, background-color .15s ease-in-out;
}

.wpcf7 .wpcf7-submit:hover,
.wpcf7 .wpcf7-submit:focus-visible {
	background: transparent;
	color: var(--a1-primary);
}

.wpcf7 .wpcf7-submit:disabled {
	opacity: .65;
	cursor: progress;
}

/* Spinner beside the button without pushing it off-centre */
.wpcf7 .form-action .wpcf7-spinner {
	position: absolute;
	margin: 10px 0 0 12px;
}

.wpcf7 form.wpcf7-form .wpcf7-response-output {
	margin: 20px 0 0;
	letter-spacing: normal;
}

/* ---------------------------------------------------------------------------
 * 12. Product listing (product category archive)
 *     taxonomy-above1_product_cat.php: banner → filter form → product table
 * ------------------------------------------------------------------------- */
/* Footer 30px (phones) / 60px under the last block: its top margin only;
   the table box adds 10px below (reference table margin) */
.site-main--products {
	padding-block-end: 0;
}

/* Filter form: stacked 5px apart; from 576px name and brand fields a quarter
   of the row each, 10px apart, with the Search button beside them */
.product-filter {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 5px;
	margin: 0 0 20px;
	padding-block: 2.5px;
}

.product-filter__field {
	align-self: stretch;
}

@media (min-width: 36em) {
	.product-filter {
		flex-direction: row;
		align-items: center;
		gap: 10px;
	}

	.product-filter__field {
		flex: 0 0 calc((100% - 30px) / 4);
		min-width: 0;
	}
}

.product-filter :is(input[type="text"], select) {
	display: block;
	width: 100%;
	height: 43px;
	margin: 0;
	padding: 0 10px;
	border: 1px solid #dadada;
	border-radius: 0;
	background-color: var(--a1-white);
	color: #495057;
	font: inherit;
	font-size: 1rem;                 /* 16px (also stops iOS zoom on focus) */
	line-height: 1.5;
	letter-spacing: normal;
	transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.product-filter input::placeholder {
	color: #6c757d;
	opacity: 1;
}

.product-filter :is(input, select):focus {
	border-color: #80bdff;
	outline: 0;
	box-shadow: 0 0 0 2px rgb(0 123 255 / .25);
}

.product-filter .a1-btn {
	flex: 0 0 auto;
	cursor: pointer;
}

/* Table: blue uppercase header, centred cells, grey rules; scrolls sideways
   inside its box rather than widening the page if a cell cannot wrap */
.product-table-wrap {
	padding-bottom: 10px;            /* padding: a margin would collapse into the footer's */
	overflow-x: auto;
}

.product-table {
	width: 100%;
	border-collapse: collapse;
}

.product-table :is(th, td) {
	padding: 10px 7.5px;
	border-top: 1px solid #dee2e6;
	line-height: 1.5;
	text-align: center;
	vertical-align: middle;
}

.product-table thead th {
	position: relative;
	background: var(--a1-primary);
	color: var(--a1-white);
	font-size: 1rem;                 /* 16px below 768px */
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
}

@media (min-width: 48em) {
	.product-table thead th {
		font-size: 1.125rem;         /* 18px */
	}
}

.product-table thead th + th {
	border-left: 1px solid var(--a1-white);
}

/* Columns 25% · 50% · 25% (the reference's widths); narrow screens grow a
   column to fit its longest word */
.product-table thead th:is(:first-child, :last-child) {
	width: 25%;
}

.product-table tbody :is(th, td) {
	border-left: 1px solid #d8d8d8;
	color: var(--a1-text);
	font-size: .875rem;
	font-weight: 400;
	letter-spacing: normal;
}

.product-table tbody :is(th, td):last-child {
	border-right: 1px solid #d8d8d8;
}

.product-table tbody {
	border-bottom: 1px solid #d8d8d8;
}

/* Sort link: arrow at the cell's right edge, vertically centred (the reference
   pins it 20px from the top, off-centre once the heading wraps); the cell keeps
   room for it so the arrow never overlaps the label on narrow columns */
.product-table thead .product-table__model {
	padding-inline: 20px;
}

/* Below 576px: 1px heading tracking and arrow room on the right only, so the
   three columns fit 290px (320px screens) without sideways scrolling */
@media (max-width: 35.99em) {
	.product-table thead th {
		letter-spacing: 1px;
	}

	.product-table thead .product-table__model {
		padding-inline: 7.5px 20px;
	}
}

.product-table__sort,
.product-table__sort:hover {
	color: inherit;
	text-decoration: none;
}

.product-table__sort:focus-visible {
	outline-color: var(--a1-white);
}

.product-table__sort::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 5px;
	border-inline: 5px solid transparent;
	border-top: 5px solid currentColor;
	transform: translateY(-50%);
}

.product-table__sort.is-desc::after {
	border-top: 0;
	border-bottom: 5px solid currentColor;
}

/* "Edit" under a product name — only printed for users who can edit it */
.product-table__edit {
	display: block;
	width: fit-content;
	margin: -1px auto -3px;          /* sits 2px under the name; padding = 24px+ tap target */
	padding: 3px 4px;
	font-size: .75rem;               /* 12px */
	line-height: 1.5;
}

/* "No products found." (reference h4) */
.product-table-empty {
	margin: 0;
	color: var(--a1-link);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 1px;
}

/* ---------------------------------------------------------------------------
 * 13. Motion preferences
 * ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}
