/*
 * Above1 — main stylesheet (mobile-first).
 *
 *  1. Tokens
 *  2. Reset & base
 *  3. Typography
 *  4. Layout — global container (spec §6)
 *  5. Accessibility helpers
 *  6. Header
 *  7. Primary navigation
 *  8. Dropdowns
 *  9. Mobile navigation
 * 10. Footer
 * 11. Content & WordPress core classes
 * 12. Contact Form 7 (spec §13; fields as on the reference Contact page)
 * 13. Slider ([slider] shortcode)
 * 14. Our Clients — homepage logo carousel
 * 15. Page banner (Banner Settings)
 * 16. Announcements ([announcements] shortcode)
 * 17. Team ([team] shortcode: tabs, or a grid of cards)
 * 18. Page submenu and list block styles (Group "Page Submenu", List "Dashes")
 * 19. Tables (Table blocks; Table style "Simple Blue"; stacked on phones)
 * 20. Portfolio (single item, the Related Portfolio thumbnails, the [portfolio] grid and its dropdown,
 *     the [portfolio_categories] cards, the Portfolio Category archive)
 * 21. Stock ([stock_quote] card, [stock_stats] table, [stock_chart] SVG line chart)
 */

/* ==========================================================================
   1. Tokens — brand palette (spec §4) and fonts (spec §5). No other colours.
   ========================================================================== */
:root {
	--c-header-bg: #0064b7;
	--c-header-text: #fff;
	--c-header-hover: #c9e6ff;
	--c-footer-bg: #003e7e;
	--c-footer-text: #fff;
	--c-footer-hover: #0064b7;
	--c-totop: #000810;
	--c-white: #fff;
	--c-button-hover: #6fa7d6; /* every button's hover background, site-wide (user standard 2026-11-10) */
	--c-banner-bg: #000; /* page banner without a BG Color (mockup/page-banner-bg-color.png) */
	--c-banner-subtitle: #b7d3ea; /* page banner SubTitle (same mockup) */
	--c-banner-heading: #a3d6fb; /* Heading 2 in banner Content (mockup/page-banner-bg-image.png) */
	--c-banner-overlay: 0, 100, 185; /* gradient over a BG Image: rgba(…, 0) at 15% → rgba(…, 0.8) */
	/* Tabbed content pages: [announcements] and [team] (mockup/investor.png, mockup/directors.png; values from the reference pages) */
	--c-soft-bg: #f6f6f6; /* page background around the tabs */
	--c-soft-text: #6b7278; /* body text, table text and header */
	--c-tab-text: #888; /* unselected tab text */
	--c-team-designation: #6fa7d6; /* [team] designation (same value as --c-button-hover) */
	/* [announcements] table */
	--c-ann-border: #ececec; /* table cell borders */
	--c-ann-stripe: #fcfcfc; /* header row and every second row */
	--c-ann-rule: #0c9df7; /* 2px line under the table header */
	--c-ann-hover: #eaf7fe; /* row hover */
	/* Contact Form 7 fields (the Contact page; values from the reference page) */
	--c-form-text: #555; /* text typed into fields */
	--c-form-border: #ccc; /* text field and message borders */
	--c-form-button: #333; /* Submit background */
	/* In-page submenu bar (Group style "Page Submenu", §18; value from the reference Our Companies page) */
	--c-page-submenu: #0046a0;
	/* Portfolio items (§20; values from the reference product pages, e.g. /products/mitsubishi/) */
	--c-portfolio-related-bg: #ddd; /* Related Portfolio row */
	--c-portfolio-more: #252525; /* "Learn More" label on a hovered thumbnail */
	--c-portfolio-title: #6fa7d6; /* thumbnail titles (same value as --c-button-hover) */

	--font-heading: "Lato", "Helvetica Neue", Arial, sans-serif;
	--font-body: "Open Sans", "Segoe UI", Arial, sans-serif;

	--header-h: 90px;
	--header-h-shrunk: 68px; /* the header bar once the page is scrolled (≥1024px, §6) */
	--page-submenu-h: 64px; /* the "Page Submenu" bar (§18); 48px at ≤1023px (the "Menu" toggle bar) */
	--gutter: 90px; /* mirrors .container side padding at each breakpoint */
	--admin-bar-h: 0px;
	--transition: 0.2s ease;
}

/* Also on <html> (the class is on <body>), for the page submenu's scroll padding (§18). */
.admin-bar,
html:has(> body.admin-bar) {
	--admin-bar-h: 32px;
}

@media (max-width: 1199px) {
	:root {
		--gutter: 40px;
	}
}

@media (max-width: 1023px) {
	:root {
		--page-submenu-h: 48px;
	}
}

@media (max-width: 782px) {
	.admin-bar,
	html:has(> body.admin-bar) {
		--admin-bar-h: 46px;
	}
}

@media (max-width: 767px) {
	:root {
		--gutter: 20px;
	}
}

@media (max-width: 480px) {
	:root {
		--gutter: 15px;
	}
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: var(--header-h); /* in-page anchors land below the sticky header */
}

body {
	margin: 0;
	background-color: var(--c-white);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

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

a {
	color: var(--c-header-bg);
}

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

/* ==========================================================================
   3. Typography — Lato for titles/headings/menus, Open Sans for body.
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	font-family: var(--font-heading);
	font-weight: 700;
	line-height: 1.25;
}

p {
	margin: 0 0 1em;
}

/* ==========================================================================
   4. Layout — global container (spec §6, verbatim). Do not add other widths.
   ========================================================================== */
.container {
	max-width: 1425px;
	width: 100%;
	margin: 0 auto;
	padding: 0 90px;
}

@media (max-width: 1199px) {
	.container {
		padding-left: 40px;
		padding-right: 40px;
	}
}

@media (max-width: 767px) {
	.container {
		padding-left: 20px;
		padding-right: 20px;
	}
}

@media (max-width: 480px) {
	.container {
		padding-left: 15px;
		padding-right: 15px;
	}
}

/* ==========================================================================
   5. Accessibility helpers
   ========================================================================== */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	border: 0;
	word-wrap: normal !important;
}

.skip-link:focus {
	top: 8px;
	left: 8px;
	z-index: 100000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 12px 18px;
	clip-path: none;
	background-color: var(--c-white);
	color: var(--c-header-bg);
	font-family: var(--font-heading);
	font-size: 0.875rem;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 0 0 2px var(--c-header-bg);
}

/* ==========================================================================
   6. Header — mockup/header.png. Bar 90px (user decision), logo 120×50.
   ========================================================================== */
/*
 * Sticky at every width (as on the reference site dev2new.above1.net/XMHDev/), below the WP admin bar.
 * Shadow = the reference's two layers: darker bottom edge + soft all-round edge; same in both states.
 */
.site-header {
	position: sticky;
	top: var(--admin-bar-h);
	z-index: 100;
	background-color: var(--c-header-bg);
	color: var(--c-header-text);
	box-shadow: 0 10px 10px -10px rgba(0, 0, 0, 0.5), 0 0 3px rgba(0, 0, 0, 0.22);
}

/* Below 601px WordPress lets the admin bar scroll away (position: absolute), so stick to the very top. */
@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}

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

.site-branding {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	padding-left: 3px; /* mockup: logo ink starts at x 330, 3px inside the container edge (327) */
}

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

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

.site-logo:focus-visible {
	outline: 2px solid var(--c-header-hover);
	outline-offset: 4px;
}

@media (max-width: 767px) {
	:root {
		--header-h: 70px;
	}

	.site-logo--header img {
		height: 40px;
	}
}

/*
 * Shrink on scroll, desktop only (the reference keeps its mobile header full size).
 * main.js adds .is-shrunk once the page is scrolled past 5px and removes it only back at the top.
 * Reference: bar 91 → 68px, logo 50 → 44px over ~250ms ease. Our bar is 90px (user decision) → 68px.
 * margin-bottom makes up the 22px, so the header's flow height stays 90px and the page never jumps.
 */
@media (min-width: 1024px) {
	.site-header {
		transition: margin-bottom 0.25s ease;
	}

	.site-header__inner {
		transition: min-height 0.25s ease;
	}

	.site-logo--header img {
		transition: height 0.25s ease;
	}

	.site-header.is-shrunk {
		--header-h: var(--header-h-shrunk);
		margin-bottom: 22px; /* 90 − 68 */
	}

	.site-header.is-shrunk .site-logo--header img {
		height: 44px;
	}
}

/* ==========================================================================
   7. Primary navigation — desktop top level (≥1024px).
   Below 1024px the hamburger panel takes over (section 9).
   ========================================================================== */
.primary-nav .menu,
.primary-nav .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav .submenu-toggle,
.menu-toggle {
	display: none;
}

@media (min-width: 1024px) {
	.primary-nav {
		display: flex;
		align-self: stretch;
	}

	.primary-nav > .menu {
		display: flex;
		align-items: stretch;
	}

	.primary-nav > .menu > li {
		position: relative;
		display: flex;
	}

	.primary-nav > .menu > li > a {
		display: flex;
		align-items: center;
		padding: 0 14px;
		color: var(--c-header-text);
		font-family: var(--font-heading);
		font-size: 15px;
		font-weight: 700;
		line-height: 1.2;
		letter-spacing: 0.5px; /* with the 11px end padding below, every label edge lands within ±2px of the mockup */
		text-decoration: none;
		text-transform: uppercase;
		white-space: nowrap;
		transition: color var(--transition);
	}

	/* Mockup: the last label ends 11px (not 14px) inside the container edge. */
	.primary-nav > .menu > li:last-child > a {
		padding-right: 11px;
	}

	.primary-nav > .menu > li > a:hover,
	.primary-nav > .menu > li:hover > a,
	.primary-nav > .menu > li:focus-within > a,
	.primary-nav > .menu > li.is-open > a,
	.primary-nav > .menu > .current-menu-item > a,
	.primary-nav > .menu > .current-menu-ancestor > a,
	.primary-nav > .menu > .current-page-ancestor > a {
		color: var(--c-header-hover);
	}

	.primary-nav > .menu > li > a:focus-visible {
		outline: 2px solid var(--c-header-hover);
		outline-offset: -4px;
	}

}

/* ==========================================================================
   8. Dropdowns — desktop (≥1024px), mockup/submenu.png.
   Panels 192px wide, rows 41px, flush with the header's bottom edge.
   Open on :hover, :focus-within or .is-open (touch); .is-dismissed (Esc) wins.
   ========================================================================== */
@media (min-width: 1024px) {
	.primary-nav .sub-menu {
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 10;
		width: 192px;
		background-color: var(--c-white);
		box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
		opacity: 0;
		visibility: hidden;
		/* Close: fade, then hide after 150ms so diagonal mouse moves don't drop the panel. */
		transition: opacity 0.15s ease, visibility 0s linear 0.15s;
	}

	/* Level 2+ opens to the right of its parent row, top-aligned. */
	.primary-nav .sub-menu .sub-menu {
		top: 0;
		left: 100%;
	}

	/* Edge flip (added by JS when a panel would leave the viewport). */
	.primary-nav > .menu > li > .sub-menu.sub-menu--flip {
		right: 0;
		left: auto;
	}

	.primary-nav .sub-menu .sub-menu.sub-menu--flip {
		right: 100%;
		left: auto;
	}

	.primary-nav li:hover > .sub-menu,
	.primary-nav li:focus-within > .sub-menu,
	.primary-nav li.is-open > .sub-menu {
		opacity: 1;
		visibility: visible;
		transition: opacity 0.15s ease, visibility 0s linear 0s;
	}

	.primary-nav li.is-dismissed > .sub-menu {
		opacity: 0;
		visibility: hidden;
		transition: none;
	}

	.primary-nav .sub-menu li {
		position: relative;
	}

	.primary-nav .sub-menu a {
		position: relative;
		display: flex;
		align-items: center;
		min-height: 41px;
		padding: 6px 14px;
		color: var(--c-header-bg);
		font-family: var(--font-heading);
		font-size: 11px;
		font-weight: 700;
		line-height: 1.3;
		letter-spacing: 0.6px; /* "MECHPOWER GENERATOR" ≈ 152px as in the mockup */
		text-decoration: none;
		text-transform: uppercase;
		transition: background-color var(--transition);
	}

	.primary-nav .sub-menu .menu-item-has-children > a {
		padding-right: 32px;
	}

	/* "›" indicator for rows that have a deeper level. */
	.primary-nav .sub-menu .menu-item-has-children > a::after {
		content: "";
		position: absolute;
		top: 50%;
		right: 18px;
		width: 5px;
		height: 5px;
		border-top: 1.5px solid currentColor;
		border-right: 1.5px solid currentColor;
		transform: translateY(-50%) rotate(45deg);
	}

	/* Point the indicator left when its panel has been flipped to the left. */
	.primary-nav .sub-menu li:has(> .sub-menu--flip) > a::after {
		transform: translateY(-50%) rotate(-135deg);
	}

	.primary-nav .sub-menu li:hover > a,
	.primary-nav .sub-menu li:focus-within > a,
	.primary-nav .sub-menu li.is-open > a,
	.primary-nav .sub-menu .current-menu-item > a,
	.primary-nav .sub-menu .current-menu-ancestor > a {
		background-color: var(--c-header-hover);
	}

	.primary-nav .sub-menu a:focus-visible {
		outline: 2px solid var(--c-header-bg);
		outline-offset: -2px;
	}
}

/* ==========================================================================
   9. Mobile navigation (≤1023px) — hamburger + accordion panel.
   Kept in its own non-overlapping range so desktop rules (7–8) need no overrides.
   State lives in ARIA: nav.is-open + button[aria-expanded].
   ========================================================================== */
@media (max-width: 1023px) {
	.primary-nav {
		display: flex;
		align-items: center;
	}

	/* Hamburger: 44×44 target, three 24×2 bars → X. */
	.js .menu-toggle {
		position: relative;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		margin-right: -10px; /* bars align with the container edge */
		padding: 0;
		border: 0;
		border-radius: 2px;
		background: transparent;
		color: var(--c-header-text);
		cursor: pointer;
	}

	.menu-toggle__bars,
	.menu-toggle__bars::before,
	.menu-toggle__bars::after {
		display: block;
		width: 24px;
		height: 2px;
		border-radius: 1px;
		background-color: currentColor;
		transition: transform var(--transition), background-color var(--transition);
	}

	.menu-toggle__bars {
		position: relative;
	}

	.menu-toggle__bars::before,
	.menu-toggle__bars::after {
		content: "";
		position: absolute;
		left: 0;
	}

	.menu-toggle__bars::before {
		top: -8px;
	}

	.menu-toggle__bars::after {
		top: 8px;
	}

	.menu-toggle[aria-expanded="true"] .menu-toggle__bars {
		background-color: transparent;
	}

	.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before {
		transform: translateY(8px) rotate(45deg);
	}

	.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after {
		transform: translateY(-8px) rotate(-45deg);
	}

	.menu-toggle:focus-visible {
		outline: 2px solid var(--c-header-hover);
		outline-offset: 0;
	}

	/* Panel: full width directly under the header bar. */
	.primary-nav > .menu {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		z-index: 99;
		max-height: calc(100vh - var(--header-h) - var(--admin-bar-h));
		max-height: calc(100dvh - var(--header-h) - var(--admin-bar-h));
		overflow-y: auto;
		overscroll-behavior: contain;
		border-top: 1px solid rgba(255, 255, 255, 0.15);
		background-color: var(--c-header-bg);
		color: var(--c-header-text);
		box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
	}

	.js .primary-nav > .menu {
		display: none;
	}

	.js .primary-nav.is-open > .menu {
		display: block;
		animation: above1-menu-in 0.2s ease;
	}

	/* Scroll lock; the stable gutter stops a 15px layout jump where scrollbars take space. */
	html.has-menu-open {
		overflow: hidden;
		scrollbar-gutter: stable;
	}

	/* Rows: link + optional toggle on one line, submenu wraps below. */
	.primary-nav li {
		display: flex;
		flex-wrap: wrap;
		align-items: stretch;
	}

	.primary-nav li > a {
		display: flex;
		flex: 1 1 0;
		align-items: center;
		min-width: 0;
		font-family: var(--font-heading);
		font-weight: 700;
		line-height: 1.3;
		letter-spacing: 0.4px;
		text-decoration: none;
		text-transform: uppercase;
		transition: color var(--transition), background-color var(--transition);
	}

	.primary-nav > .menu > li + li {
		border-top: 1px solid rgba(255, 255, 255, 0.15);
	}

	.primary-nav > .menu > li > a {
		min-height: 48px;
		padding: 12px 14px 12px var(--gutter);
		color: var(--c-header-text);
		font-size: 15px;
	}

	.primary-nav > .menu > li > a:hover,
	.primary-nav > .menu > li > a:focus-visible,
	.primary-nav > .menu > .current-menu-item > a,
	.primary-nav > .menu > .current-menu-ancestor > a,
	.primary-nav > .menu > .current-page-ancestor > a {
		color: var(--c-header-hover);
	}

	.primary-nav > .menu > li > a:focus-visible {
		outline: 2px solid var(--c-header-hover);
		outline-offset: -4px;
	}

	/* Submenu toggles: 48×48 targets, chevron rotates when expanded. */
	.js .primary-nav .submenu-toggle {
		display: inline-flex;
		flex: 0 0 48px;
		align-items: center;
		justify-content: center;
		width: 48px;
		min-height: 44px;
		margin-right: max(0px, calc(var(--gutter) - 18px));
		padding: 0;
		border: 0;
		background: transparent;
		color: inherit;
		cursor: pointer;
	}

	.primary-nav .submenu-toggle__icon {
		transition: transform var(--transition);
	}

	.primary-nav .submenu-toggle[aria-expanded="true"] .submenu-toggle__icon {
		transform: rotate(180deg);
	}

	.primary-nav > .menu > li > .submenu-toggle:focus-visible {
		outline: 2px solid var(--c-header-hover);
		outline-offset: -4px;
	}

	.primary-nav .sub-menu .submenu-toggle:focus-visible {
		outline: 2px solid var(--c-header-bg);
		outline-offset: -4px;
	}

	/* Sub-levels reuse the dropdown look: white, brand-blue text, #c9e6ff hover. */
	.primary-nav .sub-menu {
		flex: 1 0 100%;
		background-color: var(--c-white);
		color: var(--c-header-bg);
	}

	.js .primary-nav .sub-menu {
		display: none;
	}

	.js .primary-nav .submenu-toggle[aria-expanded="true"] + .sub-menu {
		display: block;
	}

	.primary-nav .sub-menu > li + li {
		border-top: 1px solid rgba(0, 100, 183, 0.12);
	}

	.primary-nav .sub-menu a {
		min-height: 44px;
		padding: 10px 14px 10px calc(var(--gutter) + 14px);
		color: var(--c-header-bg);
		font-size: 13px;
	}

	.primary-nav .sub-menu .sub-menu a {
		padding-left: calc(var(--gutter) + 28px);
	}

	.primary-nav .sub-menu .sub-menu .sub-menu a {
		padding-left: calc(var(--gutter) + 42px);
	}

	.primary-nav .sub-menu a:hover,
	.primary-nav .sub-menu a:focus-visible,
	.primary-nav .sub-menu .current-menu-item > a,
	.primary-nav .sub-menu .current-menu-ancestor > a {
		background-color: var(--c-header-hover);
	}

	.primary-nav .sub-menu a:focus-visible {
		outline: 2px solid var(--c-header-bg);
		outline-offset: -2px;
	}

	/* No JS: hamburger hidden, full menu shown in-flow and expanded. */
	.no-js .site-header__inner {
		flex-wrap: wrap;
	}

	.no-js .primary-nav {
		flex: 1 0 100%;
	}

	.no-js .primary-nav > .menu {
		position: static;
		width: auto;
		max-height: none;
		margin-right: calc(var(--gutter) * -1); /* bleed to the edges like the JS panel */
		margin-left: calc(var(--gutter) * -1);
	}
}

@keyframes above1-menu-in {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}

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

/* ==========================================================================
   10. Footer — mockup/footer.png
   ≥1200: 4-col grid (gap 25px → 317.5px pitch); cols 1–2 footer menu (2×2 groups),
   col 3 contact, col 4 logo right-aligned. Main area 322px, bottom bar 60px (total 382).
   ========================================================================== */
.site-footer {
	background-color: var(--c-footer-bg);
	color: var(--c-footer-text);
	font-family: var(--font-body);
}

.footer-main {
	padding-top: 45px;
	padding-bottom: 45px;
}

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

/* Group headings (footer menu top level + contact column heading). */
.footer-heading,
.footer-menu > li > a {
	display: block;
	margin: 0;
	color: var(--c-footer-text);
	font-family: var(--font-heading);
	font-size: 14px;
	font-weight: 700;
	line-height: 18px;
	letter-spacing: 1.4px;
	text-decoration: none;
	text-transform: uppercase;
}

/* Footer menu: 2 columns × 2 rows, filled column by column (About, Companies | Products, IR). */
.footer-menu,
.footer-menu .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-menu {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: auto auto;
	grid-auto-flow: column;
	column-gap: 25px;
	row-gap: 31px;
}

.footer-menu > li > .sub-menu {
	margin-top: 8px;
}

.footer-menu .sub-menu a {
	display: inline-block;
	color: var(--c-footer-text);
	font-size: 13px;
	line-height: 32px;
	text-decoration: none;
}

/* Contact column: 24px lines, 20px between address and contact lines. */
.footer-contact__details {
	margin-top: 13px;
	font-size: 13px;
	font-style: normal;
	line-height: 24px;
}

.footer-contact__details p {
	margin: 0;
}

.footer-contact__details p + p {
	margin-top: 20px;
}

.footer-contact__line {
	display: block;
}

.footer-contact a {
	color: var(--c-footer-text);
	text-decoration: none;
}

/* Logo: native 144×60. */
.site-logo--footer img {
	display: block;
	width: 144px;
	height: auto;
}

/* Link states: brand hover colour, no underline (user decision 2026-11-10). Keyboard focus keeps
   the white outline below, because #0064b7 on #003e7e is low contrast. */
.site-footer a {
	transition: color var(--transition);
}

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

.site-footer a:focus-visible {
	outline: 2px solid var(--c-footer-text);
	outline-offset: 2px;
}

.site-footer .site-logo:hover,
.site-footer .site-logo:focus-visible {
	text-decoration: none;
}

/* Bottom bar: full-width 1px rgba(255,255,255,.18) rule (= #2e6195 on #003e7e). */
.footer-bottom {
	padding-top: 24px;
	padding-bottom: 17px;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.copyright {
	margin: 0;
	font-size: 12px;
	line-height: 18px;
}

/* Back to top: 29×29, 15px from the viewport's right edge, 11px from the bottom. */
.back-to-top {
	position: fixed;
	right: 15px;
	bottom: 11px;
	z-index: 90;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 29px;
	height: 29px;
	padding: 0;
	border: 0;
	background-color: var(--c-totop);
	color: var(--c-white);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--transition), visibility 0s linear 0.2s;
}

.back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transition: opacity var(--transition), visibility 0s linear 0s;
}

.back-to-top:hover {
	background-color: var(--c-header-bg);
}

.back-to-top:focus-visible {
	outline: 2px solid var(--c-white);
	outline-offset: 2px;
}

/* Tablet: menu full width, then contact + logo side by side. */
@media (min-width: 768px) {
	.footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 25px;
		row-gap: 40px;
	}

	.footer-nav {
		grid-column: 1 / -1;
	}

	.footer-brand {
		justify-self: end;
	}
}

/* Desktop: exact mockup grid. */
@media (min-width: 1200px) {
	.footer-main {
		padding-top: 55px;
		padding-bottom: 56px;
	}

	.footer-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.footer-nav {
		grid-column: 1 / span 2;
	}
}

/* Phones: keep the copyright clear of the fixed back-to-top button. */
@media (max-width: 767px) {
	.copyright {
		padding-right: 40px;
	}
}

@media (max-width: 480px) {
	/* Single column: back to row flow, or column flow would add an implicit second column. */
	.footer-menu {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: none;
		grid-auto-flow: row;
		row-gap: 24px;
	}
}

/* ==========================================================================
   11. Content & WordPress core classes
   ========================================================================== */
/*
 * flow-root: block margins (e.g. the homepage's first block) never collapse through <main> into the
 * header's shrink margin, so the page can't jump when the sticky header shrinks; floats stay contained.
 */
.site-main {
	display: flow-root;
	padding-top: 40px;
	padding-bottom: 40px;
	/* Query container: 100cqw = <main>'s width without the scrollbar, used by full-width sliders (§13). */
	container-type: inline-size;
}

.site-main--front {
	padding-top: 0;
	padding-bottom: 0;
}

.entry-thumbnail {
	margin: 0 0 1.5em;
}

.alignleft {
	float: left;
	margin: 0 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0 0 1em 1.5em;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption,
.gallery-caption {
	max-width: 100%;
	font-size: 0.875rem;
}

.sticky,
.bypostauthor {
	display: block;
}

/*
 * Editable homepage (front-page.php → template-parts/front-page/content.php).
 * Blocks line up with .container (same width, via --gutter). "Full width" blocks span the screen,
 * and the content inside a full-width Group/Cover lines up with .container again.
 * "Wide width" equals the content width (there is no wider container).
 */
.front-content {
	--front-edge: max(var(--gutter), calc((100% - 1425px) / 2 + var(--gutter)));
}

.front-content > * {
	max-width: calc(min(1425px, 100%) - 2 * var(--gutter));
	margin-left: auto;
	margin-right: auto;
}

.front-content > :first-child:not(.alignfull) {
	margin-top: 40px;
}

.front-content > :last-child:not(.alignfull) {
	margin-bottom: 40px;
}

.front-content > .alignleft {
	margin-left: var(--front-edge);
	margin-right: 1.5em;
}

.front-content > .alignright {
	margin-left: 1.5em;
	margin-right: var(--front-edge);
}

.front-content > .alignfull {
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

/* Side padding comes from the inner container; padding set in the editor (inline style) still wins. */
.front-content > .alignfull:is(.wp-block-group, .wp-block-cover) {
	padding-left: 0;
	padding-right: 0;
}

/* Coloured full-width sections get the same 40px rhythm as .site-main by default. */
.front-content > .alignfull.wp-block-group.has-background {
	padding-top: 40px;
	padding-bottom: 40px;
}

.front-content > .alignfull > :is(.wp-block-group__inner-container, .wp-block-cover__inner-container) {
	max-width: calc(min(1425px, 100%) - 2 * var(--gutter));
	margin-left: auto;
	margin-right: auto;
}

.front-content > .alignfull > :is(.wp-block-group__inner-container, .wp-block-cover__inner-container) > :last-child {
	margin-bottom: 0;
}

/* Columns stack at ≤781px (WP core). A card's centred image (aligncenter, a column-width image on
   desktop) then floats in the middle of a full-width column, so it lines up with the card's
   left-aligned heading, text and button instead (2026-11-13 responsive QA). */
@media (max-width: 781px) {
	.front-content .wp-block-columns:not(.is-not-stacked-on-mobile) .wp-block-column .wp-block-image > .aligncenter {
		margin-left: 0;
		margin-right: 0;
	}
}

/*
 * Page and post content (.container > article > .entry-content), e.g. the Contact page: a "Full
 * width" Group/Cover spans <main> like on the homepage, and its content lines up with .container
 * again. 100cqw is <main>'s width without the scrollbar (query container above); on the homepage
 * the result equals the .front-content rules. A full-width first block meets the page banner and a
 * full-width last block meets the footer. Without container units they stay container-width.
 */
@supports (width: 1cqw) {
	.entry-content > .alignfull {
		max-width: none;
		margin-left: calc(50% - 50cqw);
		margin-right: calc(50% - 50cqw);
	}

	.entry-content > .alignfull:is(.wp-block-group, .wp-block-cover) {
		padding-left: 0;
		padding-right: 0;
	}

	.entry-content > .alignfull > :is(.wp-block-group__inner-container, .wp-block-cover__inner-container) {
		max-width: calc(min(1425px, 100%) - 2 * var(--gutter));
		margin-left: auto;
		margin-right: auto;
	}

	.entry-content > .alignfull > :is(.wp-block-group__inner-container, .wp-block-cover__inner-container) > :last-child {
		margin-bottom: 0;
	}

	.above1-banner-body:has(> .entry-content:first-child > .alignfull:first-child) {
		padding-top: 0;
	}

	.site-main:has(.entry-content > .alignfull:last-child) {
		padding-bottom: 0;
	}
}

/* Embedded maps and videos (Custom HTML iframes) never overflow their column. */
.entry-content iframe {
	max-width: 100%;
}

/* Nested bulleted lists keep the filled disc (the reference site), not the browser's circle. */
.entry-content :is(ul, ol) ul:not([class*="is-style-"]) {
	list-style-type: disc;
}

/* Separator block: a 1px line in the block's colour (the reference site's dividers, e.g. 1px #ddd on
   Xin Ming Hua → Services); core draws a 2px border. The Dots style is left alone. */
.entry-content .wp-block-separator:not(.is-style-dots) {
	height: 1px;
	border: 0;
	background-color: currentColor;
}

/* Bold text in content and banner Content is semi-bold, as on the reference site (Open Sans 600). */
:is(.entry-content, .above1-page-banner__content) :is(strong, b) {
	font-weight: 600;
}

/* Sections that in-page links focus (main.js gives them tabindex="-1") show no focus ring. */
.above1-page-banner[tabindex="-1"]:focus,
.entry-content [tabindex="-1"]:focus {
	outline: none;
}

/*
 * Buttons, site-wide standard (user, 2026-11-10): hover background --c-button-hover (#6fa7d6) over 0.2s.
 * Covers the block editor's Buttons (.wp-block-button__link) and every core element button
 * (.wp-element-button: Buttons, Search, File, comments). The slider's .above1-btn follows it in §13.
 * !important because colours picked in the editor are inline styles on the link.
 */
.wp-element-button,
.wp-block-button__link {
	transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.wp-element-button:hover,
.wp-block-button__link:hover {
	border-color: var(--c-button-hover) !important;
	background-color: var(--c-button-hover) !important;
}

/* ==========================================================================
   12. Contact Form 7 — fields as on the reference Contact page
   (dev2new …/contact/, computed styles at 1920px). Labels take the text colour around the form.
   - 14px between fields. Text fields and the message: 1px #ccc border, transparent, 16px
     padding, 16px #555 text, 56px tall; the message is 254px tall.
   - Department select: white, borderless, 39px tall, 10px padding, 12px text.
   - Submit: 12px white on #333, 16px padding, square; hover is the site-wide --c-button-hover.
   - Focus: a 2px --c-header-bg outline (the reference shows none).
   Do not restyle CF7 validation tips or response output here.
   ========================================================================== */
.wpcf7-form p {
	margin: 0 0 14px;
}

.wpcf7 input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]),
.wpcf7 select,
.wpcf7 textarea {
	width: 100%;
	max-width: 100%;
	margin: 0;
	border-radius: 0;
	color: var(--c-form-text);
	font-family: var(--font-body);
}

.wpcf7 input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]),
.wpcf7 textarea {
	padding: 16px;
	border: 1px solid var(--c-form-border);
	background-color: transparent;
	font-size: 16px;
	line-height: normal;
}

.wpcf7 textarea {
	display: block;
	height: 254px;
	resize: vertical;
}

.wpcf7 select {
	height: 39px;
	padding: 0 10px;
	border: 0;
	background-color: var(--c-white);
	font-size: 12px;
}

.wpcf7 :is(input, select, textarea):focus-visible {
	outline: 2px solid var(--c-header-bg);
	outline-offset: 2px;
}

.wpcf7 input[type="submit"],
.wpcf7 button {
	padding: 16px;
	border: 0;
	border-radius: 0;
	background-color: var(--c-form-button);
	color: var(--c-white);
	font-family: var(--font-body);
	font-size: 12px;
	font-weight: 400;
	line-height: normal;
	cursor: pointer;
	transition: background-color var(--transition);
}

/* Site-wide button standard (§11). */
.wpcf7 input[type="submit"]:hover,
.wpcf7 button:hover {
	background-color: var(--c-button-hover);
}

/* ==========================================================================
   13. Slider — [slider] shortcode (inc/features/slider/slider-shortcode.php, template-parts/slider/).
   No front-end mockup: sizes come from prompt_slide.md Q4. Palette tokens only.
   - Width (prompt_slide.md D21–D24): `--full` is full-bleed (homepage through
     `.alignfull` §11; page/post content breaks out of .container below) and
     its slide content lines up with .container. `--contained` is as wide as
     the page content, with its own side padding.
   - Auto height (Q4b): every slide sits in the same grid cell, and each image is
     drawn at full width with its own aspect ratio, so the tallest one sets the
     height. Shorter images fill it with object-fit: cover (Background Alignment
     sets object-position). Text taller than the image grows the slide.
   - Before the slider script runs (and without JS) only `.is-active` (slide 1)
     shows, and the controls stay hidden until the script adds `.is-ready`.
   - Specificity note: `.above1-slider--has-arrows …` / `--has-dots …` rules sit
     after the base inner/down and `--contained` padding rules so they win on
     equal-or-higher specificity.
   - Controls per [slider] attributes: arrows unless arrows="false", dots only with
     dots="true" (2+ slides); `--has-arrows` / `--has-dots` mark them.
   ========================================================================== */
.above1-slider {
	position: relative;
}

/* Full width in page/post content (.container > article > .entry-content): break out to the edges of
   <main>. 100cqw is <main>'s width (query container, §11), which excludes the scrollbar, unlike 100vw.
   On the homepage this equals the `.front-content > .alignfull` result (margins 0). Without container
   units the slider stays container-width. Nested in a Group/Columns block, it fills that block. */
@supports (width: 1cqw) {
	.entry-content > .above1-slider--full {
		max-width: none;
		margin-left: calc(50% - 50cqw);
		margin-right: calc(50% - 50cqw);
	}
}

/*
 * A page without Banner Settings whose content opens with a full-width slider (e.g. Products &
 * Applications): the slider is the page's banner. It meets the header, and the page title stays as the
 * screen-reader <h1>, as on a banner with an empty Title (§15). A featured image between the title and
 * the content keeps the normal layout.
 */
.site-main:not(.site-main--banner):has(.entry-header + .entry-content > .above1-slider--full:first-child) {
	padding-top: 0;
}

.entry-header:has(+ .entry-content > .above1-slider--full:first-child) {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* In container: the slider spans the page content, so slide content gets its own side padding. */
.above1-slider--contained .above1-slide__inner {
	padding-left: 40px;
	padding-right: 40px;
}

.above1-slider__viewport {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
}

.above1-slide {
	--slide-fg: var(--c-white);
	position: relative;
	display: grid;
	grid-area: 1 / 1;
	grid-template-columns: minmax(0, 1fr);
	color: var(--slide-fg);
}

.above1-slide--dark {
	--slide-fg: var(--c-totop);
}

.above1-slide:not(.is-active) {
	visibility: hidden;
	opacity: 0;
}

.above1-slide__media,
.above1-slide__inner {
	grid-area: 1 / 1;
	min-width: 0;
}

.above1-slide__media {
	position: relative;
}

.above1-slide__media picture {
	display: block;
	height: 100%;
}

/* `maxheight` (the inline --above1-slider-max-h): the image stays full width but is never drawn taller, so
   the slider is at most that tall unless the slide text needs more; cover crops it (Background Alignment). */
.above1-slide__img {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: var(--above1-slider-max-h, none);
	object-fit: cover;
}

/* The <picture> underneath is the poster; the slider script reveals the video once it plays. */
.above1-slide__video {
	position: absolute;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	opacity: 0;
}

/* Texture overlay (D13): a fine CSS dot pattern, no image file. */
.above1-slide--texture .above1-slide__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(0, 8, 16, 0.35) 1px, transparent 1.5px);
	background-size: 4px 4px;
	pointer-events: none;
}

/* Content: lines up with .container; Slide Content Alignment moves the box inside it. */
.above1-slide__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding-top: 40px;
	padding-bottom: 40px;
	text-align: left;
}

.above1-slide--v-top .above1-slide__inner {
	align-items: flex-start;
}

.above1-slide--v-bottom .above1-slide__inner {
	align-items: flex-end;
}

.above1-slide--h-center .above1-slide__inner {
	justify-content: center;
	text-align: center;
}

.above1-slide--h-right .above1-slide__inner {
	justify-content: flex-end;
	text-align: right;
}

.above1-slide--has-down .above1-slide__inner {
	padding-bottom: 92px;
}

.above1-slide__content {
	flex: 0 1 760px;
	min-width: 0;
}

.above1-slide__heading {
	margin: 0 0 0.4em;
	color: inherit;
	font-size: clamp(28px, 4vw, 56px);
	line-height: 1.15;
	overflow-wrap: break-word;
}

.above1-slide__heading:last-child {
	margin-bottom: 0;
}

.above1-slide__caption {
	margin: 0;
	font-size: clamp(16px, 1.3vw, 20px);
	line-height: 1.6;
	overflow-wrap: break-word;
}

/* Caption Background (D13): a semi-transparent panel behind the whole content box (heading, caption,
   buttons). The box shrinks to its content (max 760px) so the panel never runs wider than the text. */
.above1-slide--caption-bg .above1-slide__content {
	flex: 0 1 auto;
	max-width: 760px;
	padding: 24px 32px;
	background-color: rgba(0, 8, 16, 0.65);
}

.above1-slide--dark.above1-slide--caption-bg .above1-slide__content {
	background-color: rgba(255, 255, 255, 0.75);
}

.above1-slide__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 24px;
}

.above1-slide__buttons:first-child {
	margin-top: 0;
}

.above1-slide--h-center .above1-slide__buttons {
	justify-content: center;
}

.above1-slide--h-right .above1-slide__buttons {
	justify-content: flex-end;
}

/* Buttons: Button Style (solid / outline, D9) × Button Color (primary / secondary / white, D10). */
.above1-btn {
	--btn-color: var(--c-header-bg);
	--btn-text: var(--c-white);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 28px;
	border: 2px solid var(--btn-color);
	background-color: var(--btn-color);
	color: var(--btn-text);
	font-family: var(--font-heading);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.above1-btn--secondary {
	--btn-color: var(--c-footer-bg);
}

.above1-btn--white {
	--btn-color: var(--c-white);
	--btn-text: var(--c-header-bg);
}

.above1-btn--outline {
	background-color: transparent;
	color: var(--btn-color);
}

/*
 * Small: the reference's "nectar-button small" (e.g. "Visit Mech-Power Generator" in a company banner,
 * §15): Open Sans 11px/20px, 2px tracking, capitals, 8px × 14px, square, no border. Double class so the
 * phone .above1-btn padding below does not apply.
 */
.above1-btn.above1-btn--small {
	min-height: 0;
	padding: 8px 14px;
	border: 0;
	font-family: var(--font-body);
	font-size: 11px;
	font-weight: 400;
	line-height: 20px;
	letter-spacing: 2px;
	text-transform: uppercase;
}

/* Every style and colour: the site-wide button hover (§11), white text. */
.above1-btn:hover {
	border-color: var(--c-button-hover);
	background-color: var(--c-button-hover);
	color: var(--c-white);
}

.above1-btn:focus-visible,
.above1-slide__down:focus-visible {
	outline: 2px solid var(--slide-fg);
	outline-offset: 3px;
}

/* Full Slide Link (D7): the whole slide is one link. */
.above1-slide__link {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.above1-slide__link:focus-visible {
	outline: 2px solid var(--slide-fg);
	outline-offset: -6px;
}

/* Down arrow: needs the slider script, so it is hidden without JS. */
.above1-slide__down {
	position: absolute;
	bottom: 24px;
	left: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-left: -24px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
	transition: transform var(--transition);
}

.above1-slide__down:hover {
	transform: translateY(4px);
}

html:not(.js) .above1-slide__down {
	display: none;
}

/*
 * Slider script (main.js initSliders) — `.is-ready` once it runs.
 * Fade (Q4c, 600ms): the incoming slide fades in on top; the outgoing one stays
 * opaque underneath and drops out when the fade ends, so nothing shows through.
 */
.above1-slider.is-ready .above1-slide {
	transition: opacity 0s linear 0.6s, visibility 0s linear 0.6s;
}

.above1-slider.is-ready .above1-slide.is-active {
	z-index: 1;
	transition: opacity 0.6s ease, visibility 0s linear 0s;
}

/* Programmatic focus target only (keys move focus here when it was on the outgoing slide). */
.above1-slide:focus {
	outline: 0;
}

.above1-slide__video {
	transition: opacity 0.6s ease;
}

.above1-slide__video.is-playing {
	opacity: 1;
}

/* Swipe: the script handles horizontal moves; vertical scrolling and pinch-zoom stay native. */
.above1-slider.is-ready .above1-slider__viewport {
	touch-action: pan-y;
	touch-action: pan-y pinch-zoom;
}

/* Mouse drag (2+ slides): grab cursor; "grabbing" over everything while a drag is under way. */
.above1-slider--has-nav.is-ready .above1-slider__viewport {
	cursor: grab;
}

.above1-slider.is-dragging .above1-slider__viewport,
.above1-slider.is-dragging .above1-slider__viewport * {
	cursor: grabbing;
}

/* Controls: ‹ and › (round, 44×44 — 25×25 on phones — with a 2px white ring on a transparent background;
   user values 2026-11-12) at the far left and right, vertically centred; the dots (no background, only
   with [slider dots="true"]) at the bottom centre; Pause/Play visually hidden (shown on keyboard focus,
   bottom-left, so autoplay stays pausable — WCAG 2.2.2). The layer covers the slider but only its buttons
   take pointer events. Hidden until the script runs; `--has-arrows` / `--has-dots` reserve room in every
   slide. */
.above1-slider__controls {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: none;
	pointer-events: none;
}

.above1-slider.is-ready .above1-slider__controls {
	display: block;
}

.above1-slider__controls > * {
	pointer-events: auto;
}

.above1-slider__toggle,
.above1-slider__arrow {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 2px solid var(--c-white);
	border-radius: 100px;
	background-color: transparent;
	color: var(--c-white);
	cursor: pointer;
	transition: background-color var(--transition);
}

.above1-slider__toggle svg,
.above1-slider__arrow svg {
	flex: none;
}

.above1-slider__arrow {
	top: 50%;
	transform: translateY(-50%);
}

.above1-slider__arrow--prev {
	left: 20px;
}

.above1-slider__arrow--next {
	right: 20px;
}

.above1-slider__toggle {
	bottom: 20px;
	left: 20px;
}

.above1-slider__toggle:not(:focus-visible) {
	width: 1px;
	height: 1px;
	border-width: 0;
	overflow: hidden;
	clip-path: inset(50%);
}

/* The site-wide button hover (§11), over the --transition 0.2s. */
.above1-slider__toggle:hover,
.above1-slider__arrow:hover {
	background-color: var(--c-button-hover);
}

.above1-slider.is-paused .above1-slider__icon--pause,
.above1-slider:not(.is-paused) .above1-slider__icon--play {
	display: none;
}

.above1-slider__dots {
	position: absolute;
	right: 0;
	bottom: 20px;
	left: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	width: fit-content;
	max-width: calc(100% - 40px);
	min-height: 44px;
	margin: 0 auto;
	padding: 0 10px;
}

.above1-slider__dots button {
	position: relative;
	width: 24px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.above1-slider__dots button::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 12px;
	margin: -6px 0 0 -6px;
	border: 2px solid var(--c-white);
	border-radius: 50%;
	transition: background-color var(--transition), border-color var(--transition);
}

.above1-slider__dots button:hover::before {
	background-color: var(--c-button-hover);
}

.above1-slider__dots button[aria-current="true"]::before {
	border-color: var(--c-header-bg);
	background-color: var(--c-header-bg);
}

.above1-slider__toggle:focus-visible,
.above1-slider__arrow:focus-visible {
	outline: 2px solid var(--c-white);
	outline-offset: 2px;
}

.above1-slider__dots button:focus-visible {
	outline: 2px solid var(--c-white);
	outline-offset: -4px;
}

/* Keep slide content and the down arrow clear of the dots (20px + their height). --above1-dots-h is
   the dots' measured height, set by main.js (initSlider); it grows when they wrap to two rows (many
   slides, narrow screens). 44px = one row, the no-ResizeObserver fallback. Without dots the base
   padding applies. */
.above1-slider--has-dots .above1-slide__inner {
	padding-bottom: calc(var(--above1-dots-h, 44px) + 40px);
}

/* Room for the arrows and dots when a slide has no text (no inner box) and a wide image is short on a
   phone (e.g. the 6:1 Products strip is 60px at 375px): never shorter than 120px. The image covers it. */
.above1-slider--has-nav .above1-slide {
	min-height: 120px;
}

.above1-slider--has-dots .above1-slide--has-down .above1-slide__inner {
	padding-bottom: calc(var(--above1-dots-h, 44px) + 92px);
}

.above1-slider--has-dots .above1-slide__down {
	bottom: calc(var(--above1-dots-h, 44px) + 32px);
}

/* Keep slide content clear of the side arrows (20px inset + 44px arrow): 76px each side (30px
   ≤719.98px with the 25px arrows, below). Full-width slides at ≥1200px already have the container's
   90px. */
@media (max-width: 1199px) {
	.above1-slider--has-arrows .above1-slide__inner {
		padding-left: 76px;
		padding-right: 76px;
	}
}

@media (min-width: 1200px) {
	.above1-slider--contained.above1-slider--has-arrows .above1-slide__inner {
		padding-left: 76px;
		padding-right: 76px;
	}
}

/* Editors only: [slider] matched no published slides. */
.above1-slider-empty {
	padding: 12px 16px;
	border: 1px dashed var(--c-header-bg);
	color: var(--c-header-bg);
	font-size: 0.875rem;
}

/* Mobile switch (D5): below 720px the mobile image (if any) shows; content gets tighter spacing. */
@media (max-width: 719.98px) {
	.above1-slide__inner {
		padding-top: 24px;
		padding-bottom: 24px;
	}

	.above1-slider--contained .above1-slide__inner {
		padding-left: 24px;
		padding-right: 24px;
	}

	.above1-slide--has-down .above1-slide__inner {
		padding-bottom: 80px;
	}

	.above1-slide__buttons {
		margin-top: 20px;
	}

	.above1-slide--caption-bg .above1-slide__content {
		padding: 10px;
	}

	.above1-btn {
		padding: 8px 20px;
		font-size: 0.9375rem;
	}

	.above1-slide__down {
		bottom: 16px;
	}

	.above1-slider__dots {
		bottom: 16px;
	}

	.above1-slider__arrow--prev,
	.above1-slider__toggle {
		left: 2px;
	}

	.above1-slider__arrow--next {
		right: 2px;
	}

	.above1-slider__toggle {
		bottom: 16px;
	}

	/* Phone controls: 25×25 rings (user values 2026-11-12) with smaller icons. */
	.above1-slider__toggle,
	.above1-slider__arrow {
		width: 25px;
		height: 25px;
	}

	.above1-slider__toggle svg,
	.above1-slider__arrow svg {
		width: 13px;
		height: 13px;
	}

	.above1-slider--has-arrows .above1-slide__inner {
		padding-left: 30px;
		padding-right: 30px;
	}

	/* Editor line breaks in the caption (nl2br) are desktop line lengths: on phones they leave
	   two-word orphan lines, so the caption wraps naturally instead (2026-11-13 responsive QA). */
	.above1-slide__caption br {
		display: none;
	}

	.above1-slider--has-dots .above1-slide__inner {
		padding-bottom: calc(var(--above1-dots-h, 44px) + 32px);
	}

	.above1-slider--has-dots .above1-slide--has-down .above1-slide__inner {
		padding-bottom: calc(var(--above1-dots-h, 44px) + 84px);
	}

	.above1-slider--has-dots .above1-slide__down {
		bottom: calc(var(--above1-dots-h, 44px) + 24px);
	}
}

/* ==========================================================================
   14. Our Clients — [clients] shortcode logo carousel (template-parts/clients/clients.php,
   inc/features/clients/clients.php), mockup/clients.png.
   - Full width (`alignfull`): on the homepage `.front-content > .alignfull` (§11) spans
     it with no 40px first/last margin; in other page/post content it breaks out of
     .container below, like a full-width slider (§13).
   - White section, 20px top/bottom padding (measured). One row inside .container:
     6 logos per view (≥1200px), 4 (768–1199px), 2 (≤767px), 20px apart — the same
     steps as the .container gutters.
   - Each 300×180 logo fills its cell, at most 191px wide: its mockup size,
     (1245px − 5 × 20px) / 6. Logos are centred in their cells.
   - main.js (initClients) slides the track one cell to the left every 5s and moves
     the first logo to the end. `safe center` centres the row when every logo fits
     (the script then never moves it) and falls back to start alignment otherwise.
   - Pause/Play is visually hidden and shows only on keyboard focus (WCAG 2.2.2).
   ========================================================================== */
.above1-clients {
	--clients-per-view: 6;
	--clients-gap: 20px;
	position: relative;
	padding: 20px 0;
	background-color: var(--c-white);
}

/* Page/post content (.container > article > .entry-content): break out to the edges of <main> (100cqw,
   §11). On the homepage this equals the `.front-content > .alignfull` result (margins 0). */
@supports (width: 1cqw) {
	.entry-content > .above1-clients {
		max-width: none;
		margin-left: calc(50% - 50cqw);
		margin-right: calc(50% - 50cqw);
	}
}

/* Editors only: [clients] found no published client with a logo. */
.above1-clients-empty {
	padding: 12px 16px;
	border: 1px dashed var(--c-header-bg);
	color: var(--c-header-bg);
	font-size: 0.875rem;
}

@media (max-width: 1199px) {
	.above1-clients {
		--clients-per-view: 4;
	}
}

@media (max-width: 767px) {
	.above1-clients {
		--clients-per-view: 2;
	}
}

.above1-clients__viewport {
	overflow: hidden;
}

/* Swipe (main.js initClients): the script takes horizontal moves; vertical scrolling and pinch-zoom stay native. */
html.js .above1-clients__viewport {
	touch-action: pan-y;
	touch-action: pan-y pinch-zoom;
}

/* Mouse drag (only when the logos overflow; main.js sets the classes). */
.above1-clients.is-draggable .above1-clients__viewport {
	cursor: grab;
}

.above1-clients.is-dragging .above1-clients__viewport,
.above1-clients.is-dragging .above1-clients__viewport * {
	cursor: grabbing;
}

.above1-clients__track {
	display: flex;
	gap: var(--clients-gap);
	justify-content: flex-start;
	justify-content: safe center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.above1-clients__track.is-moving {
	transition: transform 0.6s ease;
}

.above1-clients__item {
	display: flex;
	flex: 0 0 calc((100% - (var(--clients-per-view) - 1) * var(--clients-gap)) / var(--clients-per-view));
	align-items: center;
	justify-content: center;
	min-width: 0;
}

.above1-clients__item > * {
	display: block;
	width: 100%;
	max-width: 191px;
}

.above1-clients__logo {
	height: auto;
}

.above1-clients__link:focus-visible {
	outline: 2px solid var(--c-header-bg);
	outline-offset: -2px;
}

.above1-clients__toggle {
	position: absolute;
	top: 50%;
	left: 8px;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background-color: var(--c-header-bg);
	color: var(--c-white);
	cursor: pointer;
	transform: translateY(-50%);
}

.above1-clients__toggle:focus-visible {
	outline: 2px solid var(--c-header-bg);
	outline-offset: 2px;
}

.above1-clients__toggle:not(:focus-visible) {
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

.above1-clients__toggle[hidden],
html:not(.js) .above1-clients__toggle {
	display: none;
}

.above1-clients.is-paused .above1-clients__icon--pause,
.above1-clients:not(.is-paused) .above1-clients__icon--play {
	display: none;
}

/* ==========================================================================
   15. Page banner — the page's Banner Settings (inc/features/page-banner/page-banner.php, template-parts/page/banner.php).
   mockup/page-banner-bg-color.png (Investor Relations) and mockup/page-banner-bg-image.png (Our
   Companies), both measured at a ~1900px viewport. Full width directly below the header; content
   lines up with .container. The banner holds the page's <h1>.
   ========================================================================== */
.site-main--banner {
	padding-top: 0;
}

/* Banner and nothing else: no empty white strip before the footer. */
.site-main--banner-only {
	padding-bottom: 0;
}

.above1-banner-body {
	padding-top: 40px;
}

/* Title-only banner: 176px at desktop (60 + 40 title + 8 + 24 subtitle + 44). */
.above1-page-banner {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: 60px 0 44px;
	background-color: var(--above1-banner-bg, var(--c-banner-bg));
	color: var(--c-white);
}

/* With Content or a Side Image: 53px above, 75px below (the mockup's 4% of the width). */
.above1-page-banner--content {
	padding: 53px 0 75px;
}

/* BG Image: covers the banner (same crop as the mockup), under the brand gradient. */
.above1-page-banner__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	object-position: 50% 58%;
}

.above1-page-banner--image::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: linear-gradient(to bottom, rgba(var(--c-banner-overlay), 0) 15%, rgba(var(--c-banner-overlay), 0.8) 100%);
	pointer-events: none;
}

/*
 * Side Image: two equal columns, 2.2% apart (609 + 27 + 609 of the 1245px container).
 * A Company banner (below) keeps its Content in the same left column, with or without a Side Image.
 */
.above1-page-banner--side .above1-page-banner__inner,
.above1-page-banner--company .above1-page-banner__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	column-gap: 2.2%;
	align-items: start;
}

/*
 * Company profile banner: Classname "above1-page-banner--company" (e.g. Mech-Power Generator, page 12).
 * As the reference company pages (dev2new …/companies/mechpower-generator/ and …/xin-ming-hua/, 1920px):
 * - Content in the left half (above), the heading 150px below the banner top (the reference's 4% row
 *   padding plus an 8% spacer) and 76px (4%) below the last line, fluid down to 1024px.
 * - The photo is aligned to its top edge, under the reference's lighter gradient: transparent at 25%
 *   to 25% brand blue.
 * Below 1024px it is the standard Content banner.
 */
.above1-page-banner--company .above1-page-banner__bg {
	object-position: 50% 0;
}

.above1-page-banner--company.above1-page-banner--image::before {
	background-image: linear-gradient(to bottom, rgba(var(--c-banner-overlay), 0) 25%, rgba(var(--c-banner-overlay), 0.25) 100%);
}

@media (min-width: 1024px) {
	.above1-page-banner--company.above1-page-banner--content {
		padding-top: clamp(80px, 7.8125vw, 150px);
		padding-bottom: clamp(56px, 3.97vw, 76px);
	}
}

.above1-page-banner__heading {
	margin: 0;
}

/* Title: Lato 900, 45px/40px, 1px letter-spacing, capitals (the reference site's page header). */
.above1-page-banner__title {
	margin: 0;
	color: var(--c-white);
	font-family: var(--font-heading);
	font-size: 45px;
	font-weight: 900;
	line-height: 40px;
	letter-spacing: 1px;
	text-transform: uppercase;
	overflow-wrap: break-word;
}

.above1-page-banner__subtitle {
	margin: 8px 0 0;
	color: var(--c-banner-subtitle);
	font-family: var(--font-heading);
	font-size: 24px;
	font-weight: 900;
	line-height: 24px;
	text-transform: uppercase;
}

.above1-page-banner__heading + .above1-page-banner__content,
.above1-page-banner__subtitle + .above1-page-banner__content {
	margin-top: 24px;
}

/* Content: Open Sans 16px/24px, justified, 14px between paragraphs. */
.above1-page-banner__content {
	font-size: 16px;
	line-height: 24px;
}

.above1-page-banner__content p {
	margin: 0 0 14px;
	text-align: justify;
}

.above1-page-banner__content > :last-child {
	margin-bottom: 0;
}

.above1-page-banner__content :is(h2, h3, h4, h5, h6) {
	margin: 0 0 10px;
	color: inherit;
	font-weight: 900;
	text-transform: uppercase;
}

/* "Heading 2": Lato 900, 40px/54px, -0.5px, light blue (the reference site's #a3d6fb; Our Companies, Mech-Power). */
.above1-page-banner__content h2 {
	color: var(--c-banner-heading);
	font-size: 40px;
	line-height: 54px;
	letter-spacing: -0.5px;
}

.above1-page-banner__content :is(h3, h4, h5, h6) {
	font-size: 20px;
	line-height: 28px;
}

.above1-page-banner__content a {
	color: var(--c-banner-subtitle);
	text-decoration: underline;
}

.above1-page-banner__content a:hover {
	color: var(--c-white);
}

/* A button link in the Content (e.g. .above1-btn--small) keeps its own colours, without the underline. */
.above1-page-banner__content .above1-btn {
	color: var(--btn-text);
	text-decoration: none;
}

.above1-page-banner__content .above1-btn:hover {
	color: var(--c-white);
}

.above1-page-banner__content .above1-btn:focus-visible {
	outline: 2px solid var(--c-white);
	outline-offset: 3px;
}

.above1-page-banner__content :is(ul, ol) {
	margin: 0 0 14px;
	padding-left: 1.25em;
}

.above1-page-banner__side-image {
	display: block;
	width: 100%;
	height: auto;
}

/* Tablet / small laptop (the .container 40px step). */
@media (max-width: 1199px) {
	.above1-page-banner {
		padding: 48px 0 36px;
	}

	.above1-page-banner--content {
		padding: 44px 0 56px;
	}

	.above1-page-banner__title {
		font-size: 38px;
		line-height: 36px;
	}

	.above1-page-banner__subtitle {
		font-size: 20px;
		line-height: 20px;
	}

	.above1-page-banner__content h2 {
		font-size: 34px;
		line-height: 44px;
	}
}

/* Below 1024px the halves get too narrow (a 329px text column at 768): Side Image under the Content. */
@media (max-width: 1023px) {
	.above1-page-banner--side .above1-page-banner__inner,
	.above1-page-banner--company .above1-page-banner__inner {
		display: block;
	}

	.above1-page-banner__side {
		max-width: 609px;
		margin: 32px auto 0;
	}
}

/* Phones: smaller type, left-aligned text. */
@media (max-width: 767px) {
	.above1-page-banner {
		padding: 36px 0 30px;
	}

	.above1-page-banner--content {
		padding: 32px 0 40px;
	}

	.above1-page-banner__side {
		margin-top: 24px;
	}

	.above1-page-banner__title {
		font-size: 30px;
		line-height: 32px;
		letter-spacing: 0.5px;
	}

	.above1-page-banner__subtitle {
		margin-top: 6px;
		font-size: 18px;
		line-height: 20px;
	}

	.above1-page-banner__content p {
		text-align: left;
	}

	.above1-page-banner__content h2 {
		font-size: 28px;
		line-height: 36px;
	}
}

@media (max-width: 480px) {
	.above1-page-banner__title {
		font-size: 26px;
		line-height: 28px;
	}

	.above1-page-banner__subtitle {
		font-size: 16px;
		line-height: 18px;
	}

	.above1-page-banner__content h2 {
		font-size: 24px;
		line-height: 30px;
	}
}

/* ==========================================================================
   16. Announcements — [announcements] shortcode (inc/features/announcements/announcements-shortcode.php,
   template-parts/announcements/announcements.php), mockup/investor.png.
   Values are the reference page's computed styles at a 1920px viewport:
   - The page body turns #f6f6f6 from the banner to the footer, and the text around the shortcode
     (the "Announcements" paragraph) is 16px/24px #6b7278, -0.1px tracking.
   - Year tabs: Lato 700 16px/24px, 8px 15px padding, a 1px divider; the selected year is
     --c-header-bg with white text. 17px below them, the table.
   - Table: full width, white; 13px/24px uppercase Open Sans; 10px cell padding; #ececec borders;
     header bold with a 2px #0c9df7 line; header and every second row #fcfcfc; row hover #eaf7fe.
     Links #0064b7, no underline; on hover they take the text colour (as on the reference).
   - Desktop: label 40px below the banner, tabs 20px below the label, 101px from the table to the
     footer (61px margin + .site-main's 40px).
   - Without JS: no tabs; every year's table shows with its caption as a heading.
   ========================================================================== */
.site-main:has(.above1-announcements) {
	background-color: var(--c-soft-bg);
}

.entry-content:has(> .above1-announcements) {
	color: var(--c-soft-text);
	line-height: 24px;
	letter-spacing: -0.1px;
}

.above1-announcements {
	margin: 20px 0 61px; /* 20px below a paragraph (collapses with its 1em) */
}

.above1-announcements:first-child {
	margin-top: 0;
}

/* Editors only: nothing published yet. */
.above1-announcements-empty {
	padding: 12px 16px;
	border: 1px dashed var(--c-header-bg);
	color: var(--c-header-bg);
	font-size: 0.875rem;
}

/* Year tabs */
.above1-announcements__tabs {
	display: flex;
	flex-wrap: wrap;
	row-gap: 1px;
	margin: 0 0 17px;
}

html:not(.js) .above1-announcements__tabs {
	display: none;
}

.above1-announcements__tab {
	margin: 0;
	padding: 8px 15px;
	border: 0;
	border-right: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 0;
	background-color: rgba(0, 0, 0, 0.043);
	color: var(--c-tab-text);
	font-family: var(--font-heading);
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
	letter-spacing: -0.1px;
	text-align: center;
	cursor: pointer;
	transition: background-color var(--transition), color var(--transition);
}

.above1-announcements__tab:last-child {
	border-right-color: transparent;
}

.above1-announcements__tab:hover {
	background-color: rgba(0, 0, 0, 0.035);
}

.above1-announcements__tab[aria-selected="true"] {
	border-right-color: var(--c-header-bg);
	background-color: var(--c-header-bg);
	color: var(--c-white);
	cursor: default;
}

.above1-announcements__tab:focus-visible {
	position: relative;
	z-index: 1;
	outline: 2px solid var(--c-header-bg);
	outline-offset: 2px;
}

/* Panels: with JS only the selected year shows. */
html.js .above1-announcements__panel:not(.is-active) {
	display: none;
}

html:not(.js) .above1-announcements__panel + .above1-announcements__panel {
	margin-top: 40px;
}

.above1-announcements__panel:focus-visible {
	outline: 2px solid var(--c-header-bg);
	outline-offset: 2px;
}

/* Table */
.above1-announcements__table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	border-spacing: 0;
	background-color: var(--c-white);
	color: var(--c-soft-text);
	font-family: var(--font-body);
	font-size: 13px;
	line-height: 24px;
	letter-spacing: -0.1px;
	text-transform: uppercase;
}

/* The caption is the year heading without JS; with JS the tab names the table, so it is for screen readers only. */
.above1-announcements__caption {
	margin: 0 0 10px;
	color: var(--c-soft-text);
	font-family: var(--font-heading);
	font-size: 18px;
	font-weight: 700;
	line-height: 24px;
	text-align: left;
	text-transform: none;
}

html.js .above1-announcements__caption {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.above1-announcements__table :is(th, td) {
	padding: 10px;
	border: 1px solid var(--c-ann-border);
	text-align: left;
	vertical-align: baseline;
}

.above1-announcements__table th {
	border-bottom: 2px solid var(--c-ann-rule);
	font-weight: 700;
}

.above1-announcements__table thead tr,
.above1-announcements__table tbody tr:nth-child(even) {
	background-color: var(--c-ann-stripe);
}

.above1-announcements__table tbody tr:hover {
	background-color: var(--c-ann-hover);
}

/* Date column: 172px (the mockup), never wrapping. */
.above1-announcements__date {
	width: 172px;
	white-space: nowrap;
}

/* Long words or addresses wrap instead of widening the table. */
.above1-announcements__title {
	overflow-wrap: anywhere;
}

.above1-announcements__table a {
	color: var(--c-header-bg);
	text-decoration: none;
}

.above1-announcements__table a:hover {
	color: inherit;
}

.above1-announcements__table a:focus-visible {
	outline: 2px solid var(--c-header-bg);
	outline-offset: 2px;
}

/* Phones: the year tabs form an even grid; the Date column takes only what it needs. */
@media (max-width: 767px) {
	.above1-announcements__tabs {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
	}

	.above1-announcements__date {
		width: 1%;
	}
}

@media (max-width: 480px) {
	.above1-announcements {
		margin-bottom: 40px;
	}

	.above1-announcements__table :is(th, td) {
		padding: 8px;
	}
}

/* ==========================================================================
   17. Team — [team] shortcode (inc/features/team/team-shortcode.php, template-parts/team/team.php),
   mockup/directors.png. Values are the reference page's computed styles at 1920px:
   - The page body turns --c-soft-bg (as §16). The heading right before the shortcode (the
     page's "Board of Directors") is Lato 900 24px/32px uppercase --c-header-bg, -0.5px,
     20px above the tabs; 40px below the banner.
   - ≥1024px: tabs 20% (249px) | 40px | panel. Tabs: Lato 700 16px/24px, 8px 15px, 40px rows,
     selected --c-header-bg/white. Panel: photo column 31.915% (the 270×340 photo at its
     size) and text column 65.957% (630px), the reference's 4/8 columns.
   - Name: Lato 900 40px/54px uppercase --c-header-bg, -0.5px, 10px gap. Designation: Lato 900
     17px/19px uppercase, 28px gap. Content: Open Sans 16px/24px justified, 14px between
     paragraphs. 80px from the text to the footer (40px + .site-main's 40px).
   - Switching: the newly shown photo, then the text (80ms later), fade in and rise 12px
     over 0.5s; tab colours ease over 0.3s. Not on page load. Reduced motion: instant (§2).
     The panel area keeps the longest member's height at every width, so the footer stays put.
   - ≤1023px: tabs in a wrapping row above the panel; photo beside the text.
     ≤767px: tabs as a full-width list; photo above the text.
   - Without JS: no tabs; every member shows.
   ========================================================================== */
.site-main:has(.above1-team) {
	background-color: var(--c-soft-bg);
}

.entry-content:has(> .above1-team) {
	color: var(--c-soft-text);
	line-height: 24px;
	letter-spacing: -0.1px;
}

.entry-content > :is(h1, h2, h3, h4, h5, h6):has(+ .above1-team) {
	margin: 0 0 20px;
	color: var(--c-header-bg);
	font-family: var(--font-heading);
	font-size: 24px;
	font-weight: 900;
	line-height: 32px;
	letter-spacing: -0.5px;
	text-transform: uppercase;
}

.above1-team {
	display: grid;
	grid-template-columns: 20% minmax(0, 1fr);
	column-gap: 40px;
	align-items: start;
	margin: 0 0 40px;
}

/* Editors only: no published members to show. */
.above1-team-empty {
	padding: 12px 16px;
	border: 1px dashed var(--c-header-bg);
	color: var(--c-header-bg);
	font-size: 0.875rem;
}

/* Tabs */
.above1-team__tabs {
	display: flex;
	flex-direction: column;
}

html:not(.js) .above1-team {
	display: block;
}

html:not(.js) .above1-team__tabs {
	display: none;
}

.above1-team__tab {
	display: block;
	width: 100%;
	margin: 0;
	padding: 8px 15px;
	border: 0;
	border-radius: 0;
	background-color: rgba(0, 0, 0, 0.043);
	color: var(--c-tab-text);
	font-family: var(--font-heading);
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
	letter-spacing: -0.1px;
	text-align: left;
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.above1-team__tab:hover {
	background-color: rgba(0, 0, 0, 0.035);
}

.above1-team__tab[aria-selected="true"] {
	background-color: var(--c-header-bg);
	color: var(--c-white);
	cursor: default;
}

.above1-team__tab:focus-visible {
	position: relative;
	z-index: 1;
	outline: 2px solid var(--c-header-bg);
	outline-offset: 2px;
}

/* Panels: with JS only the selected member shows. Every panel sits in the same grid cell
   and the others are only made invisible, so the panel area is always as tall as the
   longest member and the footer never moves when switching. The browser recomputes that
   height itself on every resize, rotation, font load and image load: no JS measuring.
   visibility: hidden also takes the other panels out of the Tab order, clicks and
   screen readers, as display: none did. */
html.js .above1-team__panels {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
}

html.js .above1-team__panel {
	grid-area: 1 / 1;
}

html.js .above1-team__panel:not(.is-active) {
	visibility: hidden;
}

html:not(.js) .above1-team__panel + .above1-team__panel {
	margin-top: 60px;
}

.above1-team__panel {
	display: grid;
	grid-template-columns: 31.915% 65.957%;
	justify-content: space-between;
	align-items: start;
}

.above1-team__panel--no-photo {
	grid-template-columns: minmax(0, 1fr);
}

.above1-team__panel:focus-visible {
	outline: 2px solid var(--c-header-bg);
	outline-offset: 4px;
}

.above1-team__img {
	display: block;
	max-width: 100%;
	height: auto;
}

.above1-team__body {
	min-width: 0;
}

.above1-team__name {
	margin: 0 0 10px;
	color: var(--c-header-bg);
	font-family: var(--font-heading);
	font-size: 40px;
	font-weight: 900;
	line-height: 54px;
	letter-spacing: -0.5px;
	text-transform: uppercase;
}

.above1-team__designation {
	margin: 0;
	color: var(--c-team-designation);
	font-family: var(--font-heading);
	font-size: 17px;
	font-weight: 900;
	line-height: 19px;
	letter-spacing: -0.5px;
	text-transform: uppercase;
}

.above1-team__content {
	margin-top: 28px;
	color: var(--c-soft-text);
	font-size: 16px;
	line-height: 24px;
	letter-spacing: -0.1px;
}

.above1-team__content p {
	margin: 0 0 14px;
	text-align: justify;
}

.above1-team__content > :last-child {
	margin-bottom: 0;
}

/* Switching members (main.js adds .is-animated on the first change). */
@keyframes above1-team-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}

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

.above1-team.is-animated .above1-team__panel.is-active > * {
	animation: above1-team-in 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.above1-team.is-animated .above1-team__panel.is-active > .above1-team__body {
	animation-delay: 80ms;
}

@media (max-width: 1199px) {
	.above1-team__name {
		font-size: 34px;
		line-height: 44px;
	}
}

/* Tablets: the names become a wrapping row of tabs above the panel. */
@media (max-width: 1023px) {
	.above1-team {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 30px;
	}

	.above1-team__tabs {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 1px;
	}

	.above1-team__tab {
		flex: 1 1 auto;
		width: auto;
		text-align: center;
	}

	.above1-team__panel {
		grid-template-columns: minmax(0, 270px) minmax(0, 1fr);
		column-gap: 40px;
		justify-content: start;
	}
}

/* Phones: a full-width list of names; the photo sits above the text. */
@media (max-width: 767px) {
	.above1-team {
		row-gap: 24px;
	}

	.above1-team__tabs {
		flex-direction: column;
		gap: 0;
	}

	.above1-team__tab {
		flex: none;
		width: 100%;
		text-align: left;
	}

	.above1-team__panel {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 24px;
	}

	.above1-team__name {
		font-size: 28px;
		line-height: 36px;
	}

	.above1-team__content {
		margin-top: 20px;
	}

	.above1-team__content p {
		text-align: left;
	}
}

@media (max-width: 480px) {
	.above1-team__name {
		font-size: 24px;
		line-height: 30px;
	}

	.above1-team__designation {
		font-size: 15px;
		line-height: 18px;
	}
}

/*
 * Grid ([team layout="grid"], template-parts/team/grid.php): the Our Companies page's Board of
 * Directors, as on the reference page (dev2new …/companies/, 1920px): 4 cards per row in the 1245px
 * content (286px columns, 26px apart), the 270×340 photo, the name 15px below it in Lato 900
 * 17px/19px --c-team-designation (0.5px tracking, not uppercase), the designation in Open Sans
 * 16px/24px --c-soft-text; 38px between rows. Every photo fills a 270:340 frame (cover, top), so a
 * square photo cannot push its name out of line; a member without a photo keeps an empty frame.
 */
.above1-team-grid__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 38px 2.1277%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.above1-team-grid__item {
	min-width: 0;
	margin: 0;
}

.above1-team-grid__photo {
	max-width: 270px;
	margin: 0 0 15px;
	overflow: hidden;
	aspect-ratio: 270 / 340;
}

.above1-team-grid__photo--empty {
	background-color: rgba(0, 0, 0, 0.043); /* the tab fill of §16/§17 */
}

.above1-team-grid__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 0;
}

.above1-team-grid__name {
	margin: 0;
	color: var(--c-team-designation);
	font-family: var(--font-heading);
	font-size: 17px;
	font-weight: 900;
	line-height: 19px;
	letter-spacing: 0.5px;
}

.above1-team-grid__designation {
	margin: 0;
	color: var(--c-soft-text);
	font-size: 16px;
	line-height: 24px;
	letter-spacing: -0.1px;
}

/* Tablets: 3 per row. Phones (≤600px, where a column is at most 270px): 2 per row. */
@media (max-width: 1023px) {
	.above1-team-grid__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 34px 20px;
	}
}

@media (max-width: 600px) {
	.above1-team-grid__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 20px;
	}

	.above1-team-grid__photo {
		margin-bottom: 12px;
	}
}

@media (max-width: 480px) {
	.above1-team-grid__list {
		column-gap: 15px;
	}

	.above1-team-grid__name {
		font-size: 15px;
		line-height: 18px;
		letter-spacing: 0.3px;
	}

	.above1-team-grid__designation {
		font-size: 14px;
		line-height: 20px;
	}
}

/* ==========================================================================
   18. Page submenu and list block styles (inc/blocks.php)
   - Group style "Page Submenu" (is-style-above1-page-submenu): the reference Our Companies page's
     submenu bar (dev2new …/companies/, 1920px). A full-width --c-page-submenu bar, 64px tall,
     links centred 25px apart: Lato 700 16px/24px uppercase, -0.1px, white at 0.7 opacity; hover 1.
     It sticks directly below the header (68px once shrunk, ≥1024px; else --header-h) and, while
     stuck, the link of the section in view is at full opacity (aria-current, main.js
     initPageSubmenus). The Group gets role="navigation" in PHP.
     ≤1023px (the reference's mobile page submenu): the bar is 48px tall. main.js adds a centred
     "Menu" toggle (list icon, Open Sans 16px, faint side borders) and the links become a list that
     slides down under the bar (350ms): centred rows, 10px 20px padding, a faint line above each.
     A link click or Escape closes it. Without JS the links stay in one row that scrolls sideways
     when it does not fit (14px, 16px apart, no scrollbar, faded edges, current link kept in view).
   - List style "Dashes" (is-style-above1-dashes): a 14px line before each item instead of a
     bullet, text 38px in, 5px between items (the reference's Values list).
   ========================================================================== */
.is-style-above1-page-submenu {
	position: sticky;
	top: calc(var(--admin-bar-h) + var(--header-h));
	z-index: 50; /* below the header (100) and its dropdowns */
	background-color: var(--c-page-submenu);
	color: var(--c-white);
}

/* Desktop: the header is always shrunk by the time the bar reaches it. */
@media (min-width: 1024px) {
	.is-style-above1-page-submenu {
		top: calc(var(--admin-bar-h) + var(--header-h-shrunk));
	}
}

/* Below 601px the admin bar scrolls away and the header sticks to the very top (§6). */
@media (max-width: 600px) {
	.admin-bar .is-style-above1-page-submenu {
		top: var(--header-h);
	}
}

/* Anchors (#vision in the address, Back/Forward, no JS) land exactly below the bar, as clicks do. */
html:has(.is-style-above1-page-submenu) {
	scroll-padding-top: calc(var(--admin-bar-h) + var(--header-h) + var(--page-submenu-h));
}

@media (min-width: 1024px) {
	html:has(.is-style-above1-page-submenu) {
		scroll-padding-top: calc(var(--admin-bar-h) + var(--header-h-shrunk) + var(--page-submenu-h));
	}
}

@media (max-width: 600px) {
	html:has(.is-style-above1-page-submenu) {
		scroll-padding-top: calc(var(--header-h) + var(--page-submenu-h));
	}
}

.is-style-above1-page-submenu :is(ul, ol) {
	display: flex;
	justify-content: center;
	gap: 0 13px; /* + 2 × 6px link padding = 25px between the words */
	margin: 0;
	padding: 0;
	list-style: none;
}

.is-style-above1-page-submenu li {
	flex: none;
	margin: 0;
}

.is-style-above1-page-submenu a {
	display: block;
	padding: calc((var(--page-submenu-h) - 24px) / 2) 6px;
	color: inherit;
	font-family: var(--font-heading);
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
	letter-spacing: -0.1px;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	opacity: 0.7;
	transition: opacity var(--transition);
}

.is-style-above1-page-submenu a:hover,
.is-style-above1-page-submenu a:focus-visible,
.is-style-above1-page-submenu.is-stuck a[aria-current] {
	opacity: 1;
}

.is-style-above1-page-submenu a:focus-visible {
	outline: 2px solid var(--c-white);
	outline-offset: -4px;
}

/* Tablets and phones: 14px links 16px apart, in one row that scrolls sideways (edge to edge) when it
   does not fit, e.g. at 768px with a desktop scrollbar. */
@media (max-width: 1023px) {
	.is-style-above1-page-submenu a {
		font-size: 14px;
	}

	.is-style-above1-page-submenu :is(ul, ol) {
		gap: 0 4px;
		justify-content: flex-start;
		justify-content: safe center;
		margin: 0 calc(-1 * var(--gutter));
		padding: 0 calc(var(--gutter) - 6px);
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
	}

	.is-style-above1-page-submenu :is(ul, ol)::-webkit-scrollbar {
		display: none;
	}

	.is-style-above1-page-submenu .has-more-start {
		-webkit-mask-image: linear-gradient(to right, transparent, #000 40px);
		mask-image: linear-gradient(to right, transparent, #000 40px);
	}

	.is-style-above1-page-submenu .has-more-end {
		-webkit-mask-image: linear-gradient(to left, transparent, #000 40px);
		mask-image: linear-gradient(to left, transparent, #000 40px);
	}

	.is-style-above1-page-submenu .has-more-start.has-more-end {
		-webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);
		mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);
	}
}

/* The "Menu" toggle (main.js adds it and .has-toggle on the bar); values from the reference's mobile
   page submenu (Salient .mobile-menu-link). Hidden on desktop. */
.above1-page-submenu-toggle {
	display: none;
}

@media (max-width: 1023px) {
	.is-style-above1-page-submenu.has-toggle {
		text-align: center;
	}

	.has-toggle .above1-page-submenu-toggle {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		height: var(--page-submenu-h);
		margin: 0;
		padding: 0 20px;
		border: 0;
		border-right: 1px solid rgba(255, 255, 255, 0.2);
		border-left: 1px solid rgba(255, 255, 255, 0.2);
		border-radius: 0;
		background: none;
		color: inherit;
		font-family: var(--font-body);
		font-size: 16px;
		font-weight: 400;
		line-height: 17px;
		letter-spacing: normal;
		text-transform: none;
		cursor: pointer;
	}

	.above1-page-submenu-toggle svg {
		flex: none;
		width: 16px;
		height: 16px;
		fill: currentColor;
	}

	.above1-page-submenu-toggle:focus-visible {
		outline: 2px solid var(--c-white);
		outline-offset: -4px;
	}

	.is-style-above1-page-submenu.has-toggle :is(ul, ol) {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		max-height: calc(100vh - var(--header-h) - var(--page-submenu-h));
		margin: 0;
		padding: 0;
		overflow-x: hidden;
		overflow-y: auto;
		background-color: var(--c-page-submenu);
		-webkit-mask-image: none;
		mask-image: none;
	}

	.is-style-above1-page-submenu.has-toggle.is-open :is(ul, ol) {
		display: block;
	}

	.is-style-above1-page-submenu.has-toggle li {
		display: block;
	}

	.is-style-above1-page-submenu.has-toggle a {
		padding: 10px 20px;
		border-top: 1px solid rgba(255, 255, 255, 0.2);
		font-size: 16px;
		white-space: normal;
	}
}

/* List style "Dashes". */
.is-style-above1-dashes {
	padding-left: 0;
	list-style: none;
}

.is-style-above1-dashes > li {
	position: relative;
	padding-left: 38px;
}

.is-style-above1-dashes > li + li {
	margin-top: 5px;
}

.is-style-above1-dashes > li::before {
	content: "";
	position: absolute;
	top: 0.75em; /* the middle of the first 24px line */
	left: 0;
	width: 14px;
	border-top: 1px solid;
	opacity: 0.5;
}

/* ==========================================================================
   19. Tables — Table blocks in page content (core/table, or a Custom HTML
   <figure class="wp-block-table"> when cells need lists), as the reference site's tables
   (dev2new …/products-applications/, computed styles at 1920px). Same tokens as the Investor
   Relations announcements table (§16).
   - White table, 1px --c-ann-border cell borders, 10px padding, Open Sans 13px/24px, -0.1px, in the
     surrounding text colour; header row and every second body row --c-ann-stripe. Header cells
     (th) are semi-bold (600, the reference's <strong>).
   - Table style "Simple Blue" (inc/blocks.php, the reference's "simple_blue" table): capitals, a bold
     header with a 2px --c-ann-rule line under it.
   - `above1-table--stack` on the figure (cells with data-label): below 768px every row becomes a
     card and each cell shows its column name (data-label) above its content.
   Wider than the content, a table scrolls inside its figure (core overflow-x), never the page.
   ========================================================================== */
.entry-content .wp-block-table {
	margin-left: 0;
	margin-right: 0;
	overflow-x: auto;
}

.entry-content .wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	background-color: var(--c-white);
	color: inherit;
	font-size: 13px;
	line-height: 24px;
	letter-spacing: -0.1px;
}

.entry-content .wp-block-table .has-fixed-layout {
	table-layout: fixed;
}

.entry-content .wp-block-table thead {
	border-bottom: 0;
}

.entry-content .wp-block-table :is(th, td) {
	padding: 10px;
	border: 1px solid var(--c-ann-border);
	text-align: left;
	vertical-align: baseline;
}

.entry-content .wp-block-table th {
	font-weight: 600;
}

.entry-content .wp-block-table :is(thead tr, tbody tr:nth-child(even)) {
	background-color: var(--c-ann-stripe);
}

/* Lists in cells: bullets in the cell padding, text 10px in (the reference). */
.entry-content .wp-block-table :is(ul, ol) {
	margin: 0;
	padding-left: 10px;
}

/* Table style "Simple Blue". */
.entry-content .wp-block-table.is-style-above1-simple-blue :is(th, td) {
	text-transform: uppercase;
}

.entry-content .wp-block-table.is-style-above1-simple-blue thead th {
	border-bottom: 2px solid var(--c-ann-rule);
	font-weight: 700;
}

/* Stacked on phones (`above1-table--stack`). */
@media (max-width: 767px) {
	.entry-content .above1-table--stack :is(table, tbody, tr, th, td) {
		display: block;
	}

	/* Column names move into each cell (data-label); the header row stays for screen readers. */
	.entry-content .above1-table--stack thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.entry-content .above1-table--stack tbody tr {
		border: 1px solid var(--c-ann-border);
	}

	.entry-content .above1-table--stack tbody tr + tr {
		border-top: 0;
	}

	.entry-content .above1-table--stack :is(th, td) {
		border: 0;
	}

	.entry-content .above1-table--stack :is(th, td) + :is(th, td) {
		padding-top: 0;
	}

	.entry-content .above1-table--stack td[data-label]::before {
		content: attr(data-label);
		display: block;
		font-weight: 600;
	}
}

/* ==========================================================================
   20. Portfolio — single item (single-above1_portfolio.php), as on the reference product pages
       (e.g. /products/mitsubishi/; computed styles at 1920), and the [portfolio] grid, as on the
       reference Products & Brands page (dev2new …/brands/).
       - The content is a full-width block section (built in the block editor, #f9f9f9 inline)
         that meets the header; the Related Portfolio row follows it and meets the footer.
       - Cards (.above1-portfolio-cards > li > template-parts/portfolio/card.php), shared by the
         Related Portfolio row (related.php) and the [portfolio] grid (grid.php): 4 per row, 28px
         apart and 25px between rows (2 per row at ≤1023px, 1 at ≤480px). A card is the
         Thumbnail Image at its natural size (never scaled up, left-aligned) on white, then the
         title on --c-soft-bg, so cards are as tall as their image (MASSON's 236×176 logo is the
         odd one). Hover and keyboard focus show a header-blue veil at 0.9 and a "Learn More"
         label (0.2s).
       - [portfolio_categories] cards (template-parts/portfolio/categories.php), as on the reference
         Products page (dev2new …/products/): 4 per row, 2.1277% apart and 4% of the page width
         between rows (min 25px); 2 per row at ≤1023px, 1 at ≤480px. A card is the category's
         Thumbnail Image at the card's full width, then the name (Lato 900 17px/19px, uppercase,
         --c-portfolio-title) on --c-soft-bg. No hover effect (the reference has none); keyboard
         focus shows the outline.
       - [portfolio] "Sort Products" dropdown: 200px, right-aligned, header blue; the menu opens on
         hover (pointer devices) or with the button (.is-open, main.js initPortfolioGrids).
         Left-aligned at ≤1023px; full width with the menu in the flow at ≤767px. Hidden without
         JavaScript (html.no-js), when every card shows.
   ========================================================================== */
.site-main--portfolio {
	padding-top: 0;
	padding-bottom: 0;
}

.above1-portfolio__body {
	padding-top: 40px;
	padding-bottom: 40px;
}

/* Catalogue links (List blocks in the content, e.g. the PDF lists): header blue without an
   underline; hover takes the text colour (the reference's values). Each item is one link, so the
   list marks them; links in paragraphs keep the theme underline. */
.above1-portfolio .entry-content .wp-block-list a {
	color: var(--c-header-bg);
	text-decoration: none;
	transition: color var(--transition);
}

.above1-portfolio .entry-content .wp-block-list a:hover {
	color: inherit;
}

.above1-portfolio .entry-content .wp-block-list a:focus-visible {
	outline: 2px solid var(--c-header-bg);
	outline-offset: 2px;
}

@supports (width: 1cqw) {
	/* A full-width first block meets the header (or the banner), a full-width last block the
	   Related Portfolio row (or the footer). */
	.above1-portfolio__body:has(> .entry-content > .alignfull:first-child) {
		padding-top: 0;
	}

	.above1-portfolio__body:has(> .entry-content > .alignfull:last-child) {
		padding-bottom: 0;
	}
}

.above1-related-portfolio {
	padding: 38px 0 63px;
	background-color: var(--c-portfolio-related-bg);
}

@supports (width: 1cqw) {
	/* The reference row's padding is 2% of the page width; the last row's 25px gap stays below it. */
	.above1-related-portfolio {
		padding-top: max(20px, 2cqw);
		padding-bottom: calc(max(20px, 2cqw) + 25px);
	}
}

.above1-portfolio-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-items: start;
	gap: 25px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Cards the [portfolio] dropdown filters out. */
.above1-portfolio-cards__item[hidden] {
	display: none;
}

.above1-portfolio-card {
	display: block;
	background-color: var(--c-soft-bg);
	color: inherit;
	text-decoration: none;
}

.above1-portfolio-card:focus-visible {
	outline: 2px solid var(--c-header-bg);
	outline-offset: 2px;
}

.above1-portfolio-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	background-color: var(--c-white);
}

/* No Thumbnail Image: an empty white 5:3 box (the size of the 300×180 logos). */
.above1-portfolio-card__media:not(:has(img)) {
	aspect-ratio: 5 / 3;
}

.above1-portfolio-card__image {
	display: block;
	max-width: 100%;
	height: auto;
}

.above1-portfolio-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background-color: var(--c-header-bg);
	opacity: 0;
	transition: opacity var(--transition);
}

.above1-portfolio-card__more {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	padding: 9px 15px;
	border-radius: 2px;
	background-color: var(--c-portfolio-more);
	color: var(--c-white);
	font-family: var(--font-body);
	font-size: 12px;
	line-height: 17px;
	letter-spacing: -0.1px;
	white-space: nowrap;
	opacity: 0;
	transform: translate(-50%, -50%);
	transition: opacity var(--transition);
}

.above1-portfolio-card:is(:hover, :focus-visible) .above1-portfolio-card__media::after {
	opacity: 0.9;
}

.above1-portfolio-card:is(:hover, :focus-visible) .above1-portfolio-card__more {
	opacity: 1;
}

.above1-portfolio-card__title {
	margin: 0;
	padding: 13px 10% 10px 10px;
	color: var(--c-portfolio-title);
	font-family: var(--font-heading);
	font-size: 14px;
	font-weight: 900;
	line-height: 16px;
	letter-spacing: -1px;
	text-transform: uppercase;
}

/* Portfolio Category archive (taxonomy-above1_portfolio_category.php): the Products & Brands look —
   the grey section from the header to the footer, the section heading style for the <h1>, then the
   shared cards. */
.above1-portfolio-archive {
	padding: 60px 0 80px;
	background-color: var(--c-portfolio-related-bg);
	color: var(--c-soft-text);
}

@supports (width: 1cqw) {
	.above1-portfolio-archive {
		padding-bottom: max(64px, 8cqw);
	}
}

.above1-portfolio-archive__title {
	margin: 0 0 30px;
	color: var(--c-header-bg);
	font-size: 24px;
	font-weight: 900;
	line-height: 32px;
	letter-spacing: -0.5px;
	text-transform: uppercase;
}

.above1-portfolio-archive__description {
	max-width: 760px;
	margin: -14px 0 30px;
	line-height: 1.5;
}

.above1-portfolio-archive__description > :last-child,
.above1-portfolio-archive__empty {
	margin-bottom: 0;
}

.above1-portfolio-archive .pagination {
	margin-top: 30px;
}

/* [portfolio_categories] cards (the reference Products page). */
.above1-category-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-items: start;
	gap: 40px 2.1277%;
	margin: 0;
	padding: 0;
	list-style: none;
}

@supports (width: 1cqw) {
	/* The reference rows are 4% of the page width apart (76.2px at 1920). */
	.above1-category-cards {
		row-gap: max(25px, 4cqw);
	}
}

.above1-category-card {
	display: block;
	background-color: var(--c-soft-bg);
	color: inherit;
	text-decoration: none;
}

.above1-category-card:focus-visible {
	outline: 2px solid var(--c-header-bg);
	outline-offset: 2px;
}

.above1-category-card__image {
	display: block;
	width: 100%;
	height: auto;
}

.above1-category-card__title {
	margin: 0;
	padding: 10px 10px 9px;
	color: var(--c-portfolio-title);
	font-family: var(--font-heading);
	font-size: 17px;
	font-weight: 900;
	line-height: 19px;
	letter-spacing: -0.5px;
	text-transform: uppercase;
}

/* [portfolio] "Sort Products" dropdown (the reference's .portfolio-filters). */
.above1-portfolio-filter {
	position: relative;
	z-index: 10;
	width: 200px;
	margin: 30px 0 24px auto;
}

.no-js .above1-portfolio-filter {
	display: none;
}

.above1-portfolio-filter__toggle {
	position: relative;
	display: block;
	width: 100%;
	padding: 9px 40px 10px 15px;
	border: 0;
	border-radius: 2px;
	background-color: var(--c-header-bg);
	color: var(--c-white);
	font-family: var(--font-body);
	font-size: 12px;
	font-weight: 400;
	line-height: 21px;
	letter-spacing: -0.1px;
	text-align: left;
	cursor: pointer;
}

.above1-portfolio-filter__label {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.above1-portfolio-filter__icon {
	position: absolute;
	top: 13px;
	right: 5px;
}

.above1-portfolio-filter__menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
}

.above1-portfolio-filter__menu,
.above1-portfolio-filter__menu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* On the items too: the nested-list disc rule (.entry-content ul ul, §11) is more specific. */
.above1-portfolio-filter__menu li {
	margin: 0;
	list-style: none;
}

.above1-portfolio-filter.is-open .above1-portfolio-filter__menu {
	display: block;
}

.above1-portfolio-filter.is-open .above1-portfolio-filter__toggle {
	border-radius: 2px 2px 0 0;
}

@media (hover: hover) {
	.above1-portfolio-filter:hover .above1-portfolio-filter__menu {
		display: block;
	}

	.above1-portfolio-filter:hover .above1-portfolio-filter__toggle {
		border-radius: 2px 2px 0 0;
	}
}

/* Options: white at 0.7 on header blue, a dotted line above each; children indent 10px a level. */
.above1-portfolio-filter__option {
	display: block;
	width: 100%;
	padding: 9px 15px 10px calc(15px + var(--depth, 0) * 10px);
	border: 0;
	border-top: 1px dotted rgba(255, 255, 255, 0.3);
	border-radius: 0;
	background-color: var(--c-header-bg);
	color: rgba(255, 255, 255, 0.7);
	font-family: var(--font-body);
	font-size: 12px;
	font-weight: 400;
	line-height: 22px;
	letter-spacing: -0.1px;
	text-align: left;
	cursor: pointer;
	transition: color 0.2s linear;
}

.above1-portfolio-filter__option:hover,
.above1-portfolio-filter__option:focus-visible {
	color: var(--c-white);
}

.above1-portfolio-filter :is(.above1-portfolio-filter__toggle, .above1-portfolio-filter__option):focus-visible {
	outline: 2px solid var(--c-white);
	outline-offset: -4px;
}

@media (max-width: 1023px) {
	.above1-portfolio-cards,
	.above1-category-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.above1-category-cards {
		column-gap: 20px;
	}

	.above1-portfolio-filter {
		margin-top: 10px;
		margin-left: 0;
	}

	/* A right-aligned heading right above the grid (Products & Brands: "Brands sort by products")
	   sits over the filter on desktop; once the filter is left-aligned the heading follows it
	   (2026-11-13 responsive QA). */
	.entry-content h2.has-text-align-right:has(+ .above1-portfolio-grid) {
		text-align: left;
	}
}

@media (max-width: 767px) {
	.above1-portfolio-cards {
		column-gap: 20px;
	}

	.above1-portfolio-filter {
		width: 100%;
		margin-top: 30px;
	}

	.above1-portfolio-filter__menu {
		position: static;
	}
}

@media (max-width: 480px) {
	.above1-portfolio-cards,
	.above1-category-cards {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ==========================================================================
   21. Stock — share price widgets on the Key Company Stats page
   (inc/features/stock/stock-shortcode.php, template-parts/stock/), as on the reference
   dev2new …/key-stats/ page (its "Stock Market Widgets" plugin: a quote card, an
   "Attribute | Value" table and a price chart; the plugin's Yahoo YQL source is gone, so the
   reference only ever shows spinners — the layout here follows its CSS, the data is live).
   - [stock_quote]: a white card, centred text: symbol, company, big last price with the
     change beside it (sign + arrow, no status colours: the palette has none), a muted meta line.
   - [stock_stats]: the content table look (§19 `.wp-block-table`) plus a muted figcaption.
   - [stock_chart]: inline SVG, 2px header-blue line on a recessive grid, the last price
     labelled; a phone drawing (400×260) replaces the desktop one (800×320) at ≤767px. The
     hover crosshair + tooltip come from main.js (initStockCharts). "View data as a table" is a
     <details> under the chart.
   - `.above1-stock-unavailable`: the one-line notice when there is no data at all.
   No new colours: shadows and borders use rgba(0, 8, 16, …) and --c-ann-border.
   ========================================================================== */
.above1-stock-quote {
	max-width: 100%;
	margin: 0 0 1.5em;
	padding: 20px 16px 18px;
	background-color: var(--c-white);
	border-radius: 4px;
	box-shadow: 0 2px 0 0 rgba(0, 8, 16, 0.16), 0 0 0 1px rgba(0, 8, 16, 0.16);
	text-align: center;
	color: var(--c-soft-text);
}

.above1-stock-quote p {
	margin: 0;
}

.above1-stock-quote__symbol {
	font-family: var(--font-heading);
	font-size: 19px;
	line-height: 1.33;
	font-weight: 700;
	color: var(--c-header-bg);
}

.above1-stock-quote__name {
	font-size: 14px;
	line-height: 1.5;
}

.above1-stock-quote__price {
	margin-top: 10px !important;
	font-family: var(--font-heading);
	line-height: 1.2;
}

.above1-stock-quote__last {
	font-size: 34px;
	font-weight: 900;
	letter-spacing: -0.5px;
	color: var(--c-totop);
}

.above1-stock-quote__currency {
	margin-left: 2px;
	font-size: 14px;
	font-weight: 700;
}

.above1-stock-quote__change {
	display: inline-block;
	margin-left: 8px;
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
}

.above1-stock-quote__meta {
	margin-top: 10px !important;
	font-size: 12px;
	line-height: 1.5;
}

.above1-stock-stats {
	margin-top: 0;
}

.above1-stock-stats__value {
	font-variant-numeric: tabular-nums;
}

.above1-stock-stats__note,
.above1-stock-chart__caption,
.above1-stock-unavailable {
	margin: 8px 0 0;
	font-size: 12px;
	line-height: 1.5;
	color: var(--c-soft-text);
}

.above1-stock-unavailable {
	margin: 0 0 1em;
	padding: 12px 16px;
	border: 1px dashed var(--c-ann-border);
	font-size: 0.875rem;
}

.above1-stock__stale,
.above1-stock-chart__split {
	display: block;
}

.above1-stock-chart {
	margin: 0 0 1.5em;
}

.above1-stock-chart__frame {
	position: relative;
}

.above1-stock-chart__svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
	font-family: var(--font-body);
	font-size: 12px;
	color: var(--c-soft-text);
	touch-action: pan-y;
}

.above1-stock-chart__svg--narrow {
	display: none;
}

.above1-stock-chart__grid line {
	stroke: var(--c-ann-border);
	stroke-width: 1;
	shape-rendering: crispEdges;
}

.above1-stock-chart__grid .above1-stock-chart__axis {
	stroke: rgba(0, 8, 16, 0.25);
}

.above1-stock-chart__grid text {
	fill: currentColor;
}

.above1-stock-chart__y-label {
	text-anchor: end;
	dominant-baseline: middle;
}

.above1-stock-chart__x-label {
	text-anchor: middle;
}

.above1-stock-chart__line {
	fill: none;
	stroke: var(--c-header-bg);
	stroke-width: 2;
	stroke-linejoin: round;
	stroke-linecap: round;
	vector-effect: non-scaling-stroke;
}

.above1-stock-chart__last circle {
	fill: var(--c-header-bg);
	stroke: var(--c-white);
	stroke-width: 2;
}

.above1-stock-chart__last text {
	fill: var(--c-totop);
	font-family: var(--font-heading);
	font-weight: 700;
	text-anchor: end;
	paint-order: stroke; /* white halo keeps the label readable where the line passes under it */
	stroke: var(--c-white);
	stroke-width: 3px;
	stroke-linejoin: round;
}

.above1-stock-chart__cursor line {
	stroke: rgba(0, 8, 16, 0.35);
	stroke-width: 1;
	stroke-dasharray: 3 3;
	vector-effect: non-scaling-stroke;
}

.above1-stock-chart__cursor circle {
	fill: var(--c-white);
	stroke: var(--c-header-bg);
	stroke-width: 2;
	vector-effect: non-scaling-stroke;
}

.above1-stock-chart__cursor[hidden] {
	display: none;
}

.above1-stock-chart__hit {
	cursor: crosshair;
}

.above1-stock-chart__tooltip {
	position: absolute;
	z-index: 2;
	padding: 6px 10px;
	border-radius: 3px;
	background-color: var(--c-totop);
	color: var(--c-white);
	font-size: 12px;
	line-height: 1.4;
	white-space: nowrap;
	pointer-events: none;
}

.above1-stock-chart__tooltip[hidden] {
	display: none;
}

.above1-stock-chart__data {
	margin-top: 8px;
	font-size: 13px;
	color: var(--c-soft-text);
}

.above1-stock-chart__data summary {
	cursor: pointer;
	font-size: 12px;
}

.above1-stock-chart__data summary:focus-visible {
	outline: 2px solid var(--c-header-bg);
	outline-offset: 2px;
}

.above1-stock-chart__data table {
	width: auto;
	min-width: 280px;
	margin-top: 8px;
	border-collapse: collapse;
	background-color: var(--c-white);
	line-height: 24px;
}

.above1-stock-chart__data :is(th, td) {
	padding: 4px 10px;
	border: 1px solid var(--c-ann-border);
	text-align: left;
}

.above1-stock-chart__data th {
	font-weight: 600;
	background-color: var(--c-ann-stripe);
}

.above1-stock-chart__data td:last-child {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

@media (max-width: 767px) {
	.above1-stock-chart__svg--wide {
		display: none;
	}

	.above1-stock-chart__svg--narrow {
		display: block;
		font-size: 11px;
	}

	.above1-stock-quote__last {
		font-size: 30px;
	}
}



.grecaptcha-badge{display:none !important;}
