/*
 * ENTTEC header redesign (v2). Markup: render/header-v2.php. Behaviour:
 * header-v2.js. Design: _kim/mockups/header-ds-2026-09-30.html.
 *
 * Loaded ONLY while enttec_header_v2_active() is true (shipped dark, #9031).
 * Everything it reads from outside (the header z-index scale) carries a fallback
 * value, so it needs no other header stylesheet beside it. Sizes, spacing, radii and
 * alphas read the design-system tokens (#9031), which print on every front-end page
 * and so are read without a fallback.
 *
 * DESIGN SYSTEM. The language panel's rows and the Log
 * in button ARE design-system components in the markup (.eds-menu, .eds-tag,
 * .eds-btn--ghost; see
 * enttec-design-system.css). This file lays them out and positions them; it does not
 * restate their values. Two things made that safe (#9031, 2026-10-07): the rules
 * below reset the theme's `#navbar a { text-transform:uppercase }` and set links to
 * colour:inherit, and .eds-menu scopes its rows at two classes, so element-level
 * resets cannot strip them. The bar itself (links, icons, search field) has no DS
 * component and keeps its own rules.
 *
 * COLOUR RULE. ENTTEC blue is never darkened, tinted or faded. Blue TEXT only on
 * charcoal (4.76:1). On white, blue is a fill, underline or marker only. Blue fills
 * carry white text (Kim, 2026-10-07). Hover never changes the blue: it changes an edge,
 * a wash, an underline or the lift. The one exception: the Products, About and
 * Support dropdowns copy the live ones as they are, blue text included (2026-11-17).
 *
 * SPECIFICITY. Every rule is scoped under #navbar.enttec-hd, an id
 * plus a class, because the theme styles #navbar descendants by id
 * (main-style.css) and those rules would otherwise win. Keep the class on new
 * rules too: the element resets below are an id, a class and a tag, and a
 * component rule with only the id loses its padding and borders to them.
 *
 * BREAKPOINT. 768px and up is this bar; 767px and below is the live mobile bar and
 * menu (enttec-megamenu-preview.php), which v2 leaves alone. Same line as the live CSS.
 */

/* ---------------------------------------------------------------- shared --- */
/* The element resets below stop at .search_container: the bar mounts the site's
   search component (searchform.php), which brings its own stylesheet (search.css)
   written against the theme's defaults, exactly as in the old header (Kim,
   2026-11-17). Reset inside it, its chips and rows lost their colour and its
   magnifier its display rule. The exclusion is wrapped in :where() so it adds no
   weight: every reset keeps exactly the specificity it had. */
#navbar.enttec-hd {
	--hd-h: 72px;
	--hd-h-compact: 60px;
	/* The header and footer edge, 60px on desktop, shared with the footer so both
	   line up (Kim, 2026-11-17; was the 40px container edge). */
	--hd-pad: var(--eds-edge-pad);
	/* The site container: the bar stays full bleed, its content stops growing at the DS
	   container width, the same cap as the footer (Kim, 2026-11-16). */
	--hd-max: var(--eds-container, 1760px);
	--hd-edge: var(--eds-white-a45);   /* .eds-btn--ghost border */
	--hd-wash: var(--eds-white-a12);   /* .eds-btn--ghost:hover */
	--hd-quiet: var(--eds-white-a78);
	--hd-ring: var(--eds-bw-3) solid var(--enttec-blue, #0ea5df);
	font-family: var(--enttec-font-body, 'Source Sans 3', system-ui, sans-serif);
	font-size: var(--eds-text-body);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

#navbar.enttec-hd :where(:not(.search_container *)),
#navbar.enttec-hd :where(:not(.search_container *))::before,
#navbar.enttec-hd :where(:not(.search_container *))::after {
	box-sizing: border-box;
}
/* Links inherit their colour and never pick up the theme's hover grey or
   underline. The hover and focus half is wrapped in :where() so it adds no
   weight: with it counted, it outranked every component's own colour and
   turned the Log in label white on blue on hover. */
#navbar.enttec-hd a:where(:not(.search_container *)),
#navbar.enttec-hd :where(a:hover, a:focus):where(:not(.search_container *)) {
	color: inherit;
	text-decoration: none;
	text-transform: none;
}
#navbar.enttec-hd button:where(:not(.search_container *)) {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	margin: 0;
	padding: 0;
	cursor: pointer;
	text-transform: none;
}
/* The theme gives every li a 6px bottom margin; the panel rows are 44px targets
   stacked edge to edge, so lists start from zero here. */
#navbar.enttec-hd :is(ul, li, p):where(:not(.search_container *)) {
	list-style: none;
	margin: 0;
	padding: 0;
}
#navbar.enttec-hd svg:where(:not(.search_container *)) {
	display: block;
	flex: none;
}
#navbar.enttec-hd [hidden] {
	display: none !important;
}
.hd-vh {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Focus: the DS ring, keyboard only (a click moving focus must not flash it). */
#navbar.enttec-hd :focus:not(.eds-menu__item):where(:not(.search_container *)) {
	outline: none;
}
#navbar.enttec-hd :focus-visible:not(.eds-menu__item):where(:not(.search_container *)) {
	outline: var(--hd-ring);
	outline-offset: 3px;
}
/* On white, blue alone is 2.81:1, under the 3:1 a focus indicator needs; a 1px
   charcoal ring hugging the element carries the contrast (Kim, 2026-09-30). */
#navbar.enttec-hd .hd-panel :focus-visible:not(.eds-menu__item) {
	box-shadow: 0 0 0 var(--eds-bw-1) var(--enttec-ink, #2f2f2f);
}

/* The logo: white wordmark, the two Ts in ENTTEC blue. */
#navbar.enttec-hd .hd-logo {
	display: flex;
	align-items: center;
	height: 44px;
	flex: none;
}
#navbar.enttec-hd .hd-logo-mark {
	width: auto;
	height: 22px;
	fill: var(--eds-white);
	transition: height var(--eds-dur, .3s) var(--eds-ease, ease);
}
#navbar.enttec-hd .hd-logo-t {
	fill: var(--enttec-blue, #0ea5df);
}

/* Icon buttons on charcoal: 44px targets, the ghost button's wash on hover and
   while their panel is open. No lift: the DS has no icon button, and a bar of
   bobbing icons reads as jitter. */
#navbar.enttec-hd .hd-icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--eds-sp-1);
	min-width: 44px;
	height: 44px;
	padding: 0 var(--eds-sp-2);
	border-radius: var(--eds-radius-2); /* the nav links' shape (Kim, 2026-11-18) */
	/* One type for the whole bar: the nav links' face, size and tracking (Kim, 2026-11-18). */
	font-family: var(--enttec-font-body, 'Source Sans 3', system-ui, sans-serif);
	font-weight: var(--eds-weight-body); /* regular, never bold in the bar (Kim, 2026-11-18) */
	font-size: var(--eds-text-ui);
	line-height: 1;
	letter-spacing: 0;
	color: var(--eds-white);
	transition: background-color var(--eds-dur-fast, .2s) var(--eds-ease, ease);
}
#navbar.enttec-hd .hd-icon:is(:hover, [aria-expanded="true"]) {
	background-color: var(--hd-wash);
}
#navbar.enttec-hd .hd-icon svg {
	width: 20px;
	height: 20px;
}
/* The search trigger keeps .fa-search because the search component's open handler
   looks for it, and Font Awesome paints a private-use glyph into ::before on that
   class: a missing-glyph box beside the icon. search.css removes it only while the
   rebuild is live; the v2 trigger is a button in both modes, so it is removed here. */
#navbar.enttec-hd .search_nav.fa-search::before {
	content: none;
}

/* Cart count: blue fill, white number (Kim, 2026-10-07). */
/* Cart count (Kim, 2026-11-18: smaller and tidier). A 16px pill pinned just right of
   the icon's centre, so 2 and 3 digits ("99+" is the cap) grow away from the icon
   instead of over it, with a 2px cut-out ring in the bar colour so it reads as sitting
   on the icon's corner. */
#navbar.enttec-hd .hd-badge {
	position: absolute;
	top: var(--eds-sp-1);
	left: calc(50% + var(--eds-sp-1));
	min-width: var(--eds-sp-4);
	height: var(--eds-sp-4);
	padding: 0 var(--eds-sp-1);
	/* The number sits in the visual middle of the pill (Kim, 2026-11-18). A block box,
	   because text-box trimming does nothing on a flex container: trimmed to the digits'
	   cap height, then padded equally above and below. Browsers without text-box (Firefox
	   today) centre the plain line box instead. No ring, regular weight. */
	display: block;
	box-sizing: border-box;
	line-height: var(--eds-sp-4);
	text-align: center;
	border-radius: var(--enttec-radius-pill, 100px);
	background: var(--enttec-blue, #0ea5df);
	color: var(--eds-white);
	font-family: var(--enttec-font-body, 'Source Sans 3', system-ui, sans-serif);
	font-size: var(--eds-text-label);
	font-weight: var(--eds-weight-body);
	font-variant-numeric: tabular-nums;
	letter-spacing: 0;
	white-space: nowrap;
	pointer-events: none;
}
@supports (text-box: trim-both cap alphabetic) {
	#navbar.enttec-hd .hd-badge {
		padding-block: calc((var(--eds-sp-4) - 1cap) / 2);
		line-height: 1;
		text-box: trim-both cap alphabetic;
	}
}

/* ------------------------------------------------------------ desktop bar --- */
/* #navbar keeps the theme's position, docking and hide-on-scroll machinery
   (main-style.css and global-script-jquery.js), which every sub-nav and anchor
   offset is built around; this only restyles what is inside it. */
#navbar.enttec-hd {
	display: block;
	width: 100%;
	height: auto;
	color: var(--eds-white);
}
#navbar.enttec-hd.fixed-bg {
	border-bottom: 0;
}
/* The theme's old phone rule (main-style.css, `max-width: 768px`) pins #navbar fixed,
   and its last pixel is v2's first tablet pixel. At exactly 768 the bar sat fixed and
   transparent from load, the dock script never saw it leave the top, and on scroll the
   white logo and links vanished over light sections. Back to the theme's resting
   position until the dock script adds .layout-fixed. */
@media (min-width: 768px) {
	#navbar.enttec-hd:not(.layout-fixed) {
		position: absolute;
	}
}

#navbar.enttec-hd .hd-bar {
	position: relative;
	height: var(--hd-h);
	/* At rest over the hero: no background at all, as the live bar (Kim, 2026-11-16). */
	background: transparent;
	transition: height var(--eds-dur, .3s) var(--eds-ease, ease), box-shadow var(--eds-dur, .3s) var(--eds-ease, ease);
}
/* Solid: a panel is open, the bar has docked, or the page has no dark hero for
   the scrim to sit on (the theme's no-banner and new-look product pages, minus
   the project, start and About pages, which open on their own dark mastheads;
   About joined them on 2026-11-18 so its video hero reads like a product page).
   .enttec-dark-top is the general form of that list: any page that opens on its own
   dark hero adds it to <body> (ELM 2026 since 2026-11-19, enttec-product-pages.php). */
#navbar.enttec-hd:is(.is-solid, .layout-fixed) .hd-bar,
body.noBannerApplied:not(.enttec-project-page):not(.enttec-start-page):not(.enttec-about):not(.enttec-dark-top) #navbar.enttec-hd .hd-bar,
body.newLookEnabled:not(.newLookEnabled--darkVersion):not(.enttec-about):not(.enttec-dark-top) #navbar.enttec-hd .hd-bar {
	background: var(--enttec-dark, #2f2f2f);
}
/* Docked (scrolled past the top): compact and lifted off the page. The bar is out
   of flow, so the height change moves nothing; header-stack.js re-measures it. */
#navbar.enttec-hd.layout-fixed .hd-bar {
	height: var(--hd-h-compact);
	box-shadow: 0 var(--eds-sp-0-5) var(--eds-sp-4) var(--eds-black-a28);
}
#navbar.enttec-hd.layout-fixed .hd-logo-mark {
	height: 20px;
}
/* LIGHT BAR: a page with no dark hero gets dark text. At rest the bar is transparent
   with no bottom line, sitting on the page itself (Kim, 2026-11-23, replacing the white
   bar of 2026-11-16); docked or with a panel open it turns white so the dark text stays
   readable over content, with the docked lift shadow. Hero pages keep the transparent
   bar, docking dark when scrolled. */
:is(body.noBannerApplied:not(.enttec-project-page):not(.enttec-start-page):not(.enttec-about):not(.enttec-dark-top), body.newLookEnabled:not(.newLookEnabled--darkVersion):not(.enttec-about):not(.enttec-dark-top)) #navbar.enttec-hd {
	--hd-edge: var(--eds-ink-a25);
	--hd-wash: var(--eds-ink-a6);
	--hd-quiet: var(--enttec-text-muted, #6B7280);
	color: var(--enttec-heading, #111111);
}
:is(body.noBannerApplied:not(.enttec-project-page):not(.enttec-start-page):not(.enttec-about):not(.enttec-dark-top), body.newLookEnabled:not(.newLookEnabled--darkVersion):not(.enttec-about):not(.enttec-dark-top)) #navbar.enttec-hd .hd-bar {
	background: transparent;
	box-shadow: none;
}
:is(body.noBannerApplied:not(.enttec-project-page):not(.enttec-start-page):not(.enttec-about):not(.enttec-dark-top), body.newLookEnabled:not(.newLookEnabled--darkVersion):not(.enttec-about):not(.enttec-dark-top)) #navbar.enttec-hd:is(.is-solid, .layout-fixed) .hd-bar {
	background: var(--enttec-white, #ffffff);
}
:is(body.noBannerApplied:not(.enttec-project-page):not(.enttec-start-page):not(.enttec-about):not(.enttec-dark-top), body.newLookEnabled:not(.newLookEnabled--darkVersion):not(.enttec-about):not(.enttec-dark-top)) #navbar.enttec-hd.layout-fixed .hd-bar {
	box-shadow: 0 var(--eds-sp-0-5) var(--eds-sp-4) var(--eds-black-a28);
}
:is(body.noBannerApplied:not(.enttec-project-page):not(.enttec-start-page):not(.enttec-about):not(.enttec-dark-top), body.newLookEnabled:not(.newLookEnabled--darkVersion):not(.enttec-about):not(.enttec-dark-top)) #navbar.enttec-hd .hd-logo-mark {
	fill: var(--enttec-heading, #111111);
}
:is(body.noBannerApplied:not(.enttec-project-page):not(.enttec-start-page):not(.enttec-about):not(.enttec-dark-top), body.newLookEnabled:not(.newLookEnabled--darkVersion):not(.enttec-about):not(.enttec-dark-top)) #navbar.enttec-hd :is(.hd-link, .hd-icon, .hd-login) {
	color: var(--enttec-heading, #111111);
}
:is(body.noBannerApplied:not(.enttec-project-page):not(.enttec-start-page):not(.enttec-about):not(.enttec-dark-top), body.newLookEnabled:not(.newLookEnabled--darkVersion):not(.enttec-about):not(.enttec-dark-top)) #navbar.enttec-hd .hd-link:is(:hover, [aria-current], .is-current) {
	background: var(--hd-wash);
}
:is(body.noBannerApplied:not(.enttec-project-page):not(.enttec-start-page):not(.enttec-about):not(.enttec-dark-top), body.newLookEnabled:not(.newLookEnabled--darkVersion):not(.enttec-about):not(.enttec-dark-top)) #navbar.enttec-hd .hd-link[aria-expanded="true"] {
	background: var(--eds-ink-a10);
}
:is(body.noBannerApplied:not(.enttec-project-page):not(.enttec-start-page):not(.enttec-about):not(.enttec-dark-top), body.newLookEnabled:not(.newLookEnabled--darkVersion):not(.enttec-about):not(.enttec-dark-top)) #navbar.enttec-hd .hd-login {
	border-color: var(--hd-edge);
}
:is(body.noBannerApplied:not(.enttec-project-page):not(.enttec-start-page):not(.enttec-about):not(.enttec-dark-top), body.newLookEnabled:not(.newLookEnabled--darkVersion):not(.enttec-about):not(.enttec-dark-top)) #navbar.enttec-hd .hd-login:hover {
	background: var(--hd-wash);
}

/* Three columns, logo | links | utilities, so the links sit in the true page centre
   whatever the logo and utility widths (Kim, 2026-11-17). The side tracks are plain
   1fr, whose minimum is their content: if one side ever outgrows half the leftover
   room, its track widens and the links slide off centre instead of overlapping. */
#navbar.enttec-hd .hd-inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: var(--eds-space-bar-gap);
	height: 100%;
	max-width: var(--hd-max);
	margin: 0 auto;
	padding: 0 var(--hd-pad);
}

/* Start of its track, so the link is only as wide as the wordmark. */
#navbar.enttec-hd .hd-logo {
	justify-self: start;
}
#navbar.enttec-hd .hd-nav {
	display: block;
	min-width: 0;
	height: 100%;
}
#navbar.enttec-hd .hd-nav > ul {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: var(--eds-sp-1);
	height: 100%;
}
#navbar.enttec-hd .hd-item {
	display: flex;
	align-items: center;
	margin: 0;
}
/* 44px tall, centred: a full tap target whose keyboard ring hugs the label. */
#navbar.enttec-hd .hd-link {
	position: relative;
	display: flex;
	align-items: center;
	gap: var(--eds-sp-1);
	height: 44px;
	padding: 0 var(--eds-space-bar-pad);
	border-radius: var(--eds-radius-2);
	/* v4 (#9031): sentence case in the body face. The theme's #navbar a rule
	   uppercases every link, so text-transform is set explicitly. */
	font-family: var(--enttec-font-body, 'Source Sans 3', system-ui, sans-serif);
	font-weight: var(--eds-weight-body); /* regular, never bold in the bar (Kim, 2026-11-18) */
	font-size: var(--eds-text-ui);
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
	white-space: nowrap;
	color: var(--eds-white);
	transition: background var(--eds-dur-fast, .2s) var(--eds-ease, ease);
}
/* Hover: the same wash as the icon buttons, no edge (Kim, 2026-11-16: the blue edge
   was rejected on 2026-10-07 and is gone). */
#navbar.enttec-hd .hd-link:hover {
	background: var(--hd-wash);
}
/* Open and current are a soft wash, not a line (v4, Kim 2026-10-07: the blue
   bar under the open item read as odd). Open is the stronger of the two. */
#navbar.enttec-hd .hd-link:is([aria-current], .is-current) {
	background: var(--eds-white-a8);
}
#navbar.enttec-hd .hd-link[aria-expanded="true"] {
	background: var(--eds-white-a14);
}
#navbar.enttec-hd .hd-caret {
	width: 10px;
	height: 10px;
	transition: transform var(--eds-dur, .3s) var(--eds-ease, ease);
}
#navbar.enttec-hd .hd-link[aria-expanded="true"] .hd-caret {
	transform: rotate(180deg);
}
#navbar.enttec-hd.enttec-hd--zh .hd-link {
	font-size: var(--eds-text-ui);
	letter-spacing: .02em;
}

#navbar.enttec-hd .hd-utils {
	display: flex;
	align-items: center;
	justify-self: end;
	gap: var(--eds-sp-1);
}
/* The search component's container is zero-width (search.css hangs the field and
   panel off its right edge, over the trigger), but as a flex item it still earns a
   gap, which left the panel 4px short of the trigger's right edge. Taking that gap
   back lines the panel up with the icon as on the test site (Kim, 2026-11-17).
   The open state is named so this outranks search.css's margin:0 rather than
   relying on load order. */
#navbar.enttec-hd .hd-utils > .search_container,
#navbar.enttec-hd .hd-utils > .search_container.show-search {
	margin-right: calc(var(--eds-sp-1) * -1);
}

/* Log in / Sign up: .eds-btn--sm geometry as a ghost button (v4). */
/* Log in / Sign up: .eds-btn--ghost.eds-btn--sm in the markup. Only its place in
   the bar is set here. Signed in, the bar shows .hd-account instead: a plain .hd-icon
   link with the visitor's first name (Kim, 2026-11-18: no border, less padding). */
#navbar.enttec-hd .hd-login {
	margin-left: var(--eds-sp-2);
	font-size: var(--eds-text-ui); /* the nav links' size, not the small button's */
	font-weight: var(--eds-weight-body); /* regular, never bold in the bar (Kim, 2026-11-18) */
	white-space: nowrap;
}
#navbar.enttec-hd .hd-login svg {
	display: none;
}
#navbar.enttec-hd .hd-account {
	margin-left: var(--eds-sp-1);
	white-space: nowrap;
}
#navbar.enttec-hd .hd-login-short {
	display: none;
}
/* ----------------------------------------------------------------- panels --- */

#navbar.enttec-hd .hd-panels {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	pointer-events: none;
}
/* Every panel hangs and opens the same way. Search and the language list are DS
   menus (.eds-menu in enttec-design-system.css); Products, About and Support copy
   the live dropdowns and carry their own surface (below). */
#navbar.enttec-hd .hd-panel {
	position: absolute;
	/* Tucked 6px up into the bar, so the menu reads as hanging from its link. */
	top: -6px;
	max-height: calc(100vh - var(--hd-h) - var(--enttec-fixed-h, 0px) - 16px);
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	pointer-events: auto;
	transition: opacity var(--eds-dur, .3s) var(--eds-ease, ease), transform var(--eds-dur, .3s) var(--eds-ease, ease), visibility 0s linear var(--eds-dur, .3s);
}
#navbar.enttec-hd .hd-panel.is-open {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity var(--eds-dur, .3s) var(--eds-ease, ease), transform var(--eds-dur, .3s) var(--eds-ease, ease);
}
#navbar.enttec-hd.layout-fixed .hd-panel {
	max-height: calc(100vh - var(--hd-h-compact) - var(--enttec-fixed-h, 0px) - 16px);
}

/* Products, About and Support copy the live dropdowns (#enttec-mm-preview in
   enttec-megamenu-preview.php) look for look, Kim 2026-11-17: same columns, type,
   colours and spacing, measured from enttec.ae, so turning v2 on changes the bar
   and not menus people already know. Colours are the design system's, not the live
   menu's hand-picked greys (Kim, 2026-11-17): text, muted, panel and line tokens,
   the blue 10% dropdown highlight, the DS NEW tag and the DS menu focus ring. Blue is
   never darkened on hover; links keep their blue and gain an underline (DESIGN.md 3). */
#navbar.enttec-hd :is(.hd-panel--products, .hd-panel--list) {
	background: var(--eds-white);
	border-radius: var(--eds-radius-1);
	box-shadow: var(--eds-shadow-4) var(--eds-black-a20), var(--eds-ring-1) var(--enttec-line);
	overflow: hidden;
	font-family: var(--enttec-font-body);
	font-size: var(--eds-text-ui);
	font-weight: var(--eds-weight-body);
	line-height: var(--eds-lh-body);
	letter-spacing: normal;
	text-align: left;
	color: var(--enttec-text, var(--enttec-ink));
}
#navbar.enttec-hd :is(.hd-panel--products, .hd-panel--list) ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
#navbar.enttec-hd :is(.hd-panel--products, .hd-panel--list) a {
	text-decoration: none;
}
/* The DS menu focus ring (.eds-menu__item): blue, inset so the panel's clipped edge
   cannot crop it, with white and ink rings inside carrying the contrast. */
#navbar.enttec-hd :is(.pp-cat, .pp-rail-link, .pl-item):focus-visible {
	outline: var(--eds-bw-3) solid var(--enttec-blue);
	outline-offset: calc(-1 * var(--eds-bw-3));
	box-shadow: inset 0 0 0 var(--eds-bw-4) var(--eds-white), inset 0 0 0 calc(var(--eds-sp-px) * 5) var(--enttec-ink);
}
/* "You are here": ENTTEC blue and the heavier weight (Kim, 2026-11-18). Blue on white is
   2.8:1 at this size, under WCAG's 4.5:1, so the weight carries the state for anyone the
   colour doesn't reach. */
#navbar.enttec-hd :is(.pp-prod, .pl-item)[aria-current="page"] {
	color: var(--enttec-blue, #0ea5df);
	font-weight: var(--eds-weight-ui);
}

/* Products: the categories rail, then the selected category. 720px wide and a
   180px rail: the live panel's numbers (its comment has the measurements). */
#navbar.enttec-hd .hd-panel--products {
	display: grid;
	grid-template-columns: 180px minmax(0, 1fr);
	width: 720px;
	max-width: calc(100% - 2 * var(--hd-pad));
}
/* Chinese carries the widest rail label, so it gets 20px more, as on live. */
#navbar.enttec-hd--zh .hd-panel--products {
	grid-template-columns: 200px minmax(0, 1fr);
	width: 740px;
}
#navbar.enttec-hd .pp-rail {
	background: var(--enttec-panel);
	padding: var(--eds-sp-3) 0 calc(var(--eds-sp-3) / 2);
	border-right: var(--eds-bw-1) solid var(--enttec-line);
}
#navbar.enttec-hd .pp-eyebrow {
	display: block;
	margin-bottom: var(--eds-sp-2);
	font-size: var(--eds-text-label);
	font-weight: var(--eds-weight-medium);
	letter-spacing: .12em; /* the .eds-eyebrow tracking */
	text-transform: uppercase;
	color: var(--enttec-muted);
}
#navbar.enttec-hd .pp-rail-head {
	margin-bottom: var(--eds-sp-1);
	padding: var(--eds-sp-2) var(--eds-sp-5);
}
#navbar.enttec-hd .pp-cat {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--eds-sp-2) var(--eds-sp-5);
	border-left: var(--eds-bw-2) solid transparent;
	font-size: var(--eds-text-secondary);
	color: var(--enttec-ink);
	transition: background-color var(--eds-dur-fast) var(--eds-ease), color var(--eds-dur-fast) var(--eds-ease);
}
#navbar.enttec-hd .pp-cat:hover {
	background: var(--eds-blue-a10) /* the DS dropdown highlight */;
	color: var(--enttec-text, var(--enttec-ink));
}
#navbar.enttec-hd .pp-cat.is-active {
	background: var(--eds-white);
	border-left-color: var(--enttec-blue);
	font-weight: var(--eds-weight-medium);
	color: var(--enttec-heading, var(--enttec-ink));
}
#navbar.enttec-hd .pp-chev {
	display: block;
	flex: none;
	color: var(--enttec-muted);
	opacity: 0;
	transition: opacity var(--eds-dur-fast) var(--eds-ease), transform var(--eds-dur-fast) var(--eds-ease);
}
#navbar.enttec-hd .pp-cat:hover .pp-chev {
	opacity: .6;
	transform: translateX(2px);
}
#navbar.enttec-hd .pp-cat.is-active .pp-chev {
	opacity: 1;
	color: var(--enttec-blue);
}
/* The catalogue and Legacy links: one quiet group under a divider. */
#navbar.enttec-hd .pp-rail-link {
	display: block;
	margin-top: var(--eds-sp-2);
	padding: var(--eds-sp-3) var(--eds-sp-5) var(--eds-sp-2);
	border-top: var(--eds-bw-1) solid var(--enttec-line);
	font-size: var(--eds-text-small);
	color: var(--enttec-muted);
	transition: background-color var(--eds-dur-fast) var(--eds-ease), color var(--eds-dur-fast) var(--eds-ease);
}
#navbar.enttec-hd .pp-rail-link--legacy {
	margin-top: 0;
	padding-top: var(--eds-sp-2);
	border-top: 0;
}
#navbar.enttec-hd .pp-rail-link:hover {
	background: var(--eds-blue-a10) /* the DS dropdown highlight */;
	color: var(--enttec-text, var(--enttec-ink));
}

/* The selected category: picture, label, title, blurb and compare link, then its
   products. A single product (Neon Flex) drops the list and takes the width. */
#navbar.enttec-hd .pp-view {
	display: grid;
	grid-template-columns: minmax(0, 230px) minmax(0, 1fr);
	gap: var(--eds-sp-6);
	padding: var(--eds-sp-5) var(--eds-sp-6);
}
#navbar.enttec-hd .pp-view[hidden] {
	display: none;
}
#navbar.enttec-hd .pp-view--direct {
	grid-template-columns: minmax(0, 1fr);
}
#navbar.enttec-hd .pp-intro {
	padding-right: var(--eds-sp-5);
	border-right: var(--eds-bw-1) solid var(--enttec-line);
}
#navbar.enttec-hd .pp-view--direct .pp-intro {
	padding-right: 0;
	border-right: 0;
}
#navbar.enttec-hd .pp-banner {
	display: block;
	width: 100%;
	height: 150px;
	margin-bottom: var(--eds-sp-4);
	object-fit: cover;
	border-radius: var(--eds-radius-1);
	background: var(--enttec-ink);
}
#navbar.enttec-hd .pp-view--direct .pp-banner {
	height: 180px;
	margin-bottom: var(--eds-sp-5);
}
#navbar.enttec-hd .pp-title {
	display: block;
	margin-bottom: var(--eds-sp-2);
	font-family: var(--enttec-font-display);
	font-size: var(--eds-h3);
	font-weight: var(--eds-weight-ui);
	color: var(--enttec-heading, var(--enttec-ink));
}
#navbar.enttec-hd .pp-desc {
	margin: 0 0 var(--eds-sp-4);
	font-size: var(--eds-text-secondary);
	line-height: var(--eds-lh-body);
	color: var(--enttec-muted);
}
#navbar.enttec-hd .pp-cta {
	display: inline-flex;
	align-items: center;
	gap: var(--eds-sp-2);
	max-width: 100%;
	font-size: var(--eds-text-label);
	font-weight: var(--eds-weight-medium);
	letter-spacing: .0667em;
	text-transform: uppercase;
	color: var(--enttec-link);
	text-decoration: underline;
	text-decoration-color: transparent;
	text-decoration-thickness: var(--eds-bw-2);
	text-underline-offset: var(--eds-sp-1);
	transition: text-decoration-color var(--eds-dur-fast) var(--eds-ease);
}
/* A DS text link: the same blue, gaining its underline (blue is never darkened). */
#navbar.enttec-hd .pp-cta:hover {
	text-decoration-color: currentColor;
}
#navbar.enttec-hd .pp-cta-arrow {
	flex: none;
	transition: transform var(--eds-dur-fast) var(--eds-ease);
}
#navbar.enttec-hd .pp-cta:hover .pp-cta-arrow {
	transform: translateX(3px);
}
#navbar.enttec-hd .pp-prod {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--eds-sp-3);
	padding: var(--eds-sp-2) 0;
	font-size: var(--eds-text-secondary);
	color: var(--enttec-text, var(--enttec-ink));
}
/* Hover underlines the name in blue, as the DS menu links do; the text stays ink. */
#navbar.enttec-hd .pp-prod-name {
	text-decoration: underline;
	text-decoration-color: transparent;
	text-decoration-thickness: var(--eds-bw-2);
	text-underline-offset: var(--eds-sp-1);
	transition: text-decoration-color var(--eds-dur-fast) var(--eds-ease);
}
#navbar.enttec-hd .pp-prod:hover .pp-prod-name {
	text-decoration-color: var(--enttec-blue);
}
#navbar.enttec-hd .pp-prod-tag {
	display: inline-flex;
	align-items: center;
	flex: none;
	gap: var(--eds-sp-2);
	font-size: var(--eds-text-label);
	text-align: right;
	color: var(--enttec-muted);
}
/* NEW is the DS small tag (.eds-tag--sm), the one NEW used across the site. */
#navbar.enttec-hd .pp-prod-tag .eds-tag {
	flex: none;
}
#navbar.enttec-hd .pp-prod.is-legacy {
	color: var(--enttec-muted);
}

/* About and Support: one link per row, as wide as the longest label. */
#navbar.enttec-hd .hd-panel--list {
	width: max-content;
	min-width: 200px;
	max-width: min(280px, calc(100% - 2 * var(--hd-pad)));
}
/* Three classes, so it outranks the list reset above. */
#navbar.enttec-hd .hd-panel--list .pl-list {
	padding: var(--eds-sp-2) 0;
}
#navbar.enttec-hd .pl-item {
	display: block;
	padding: var(--eds-sp-3) var(--eds-sp-6);
	font-size: var(--eds-text-secondary);
	color: var(--enttec-text, var(--enttec-ink));
	transition: background-color var(--eds-dur-fast) var(--eds-ease);
}
#navbar.enttec-hd .pl-item:hover {
	background: var(--eds-blue-a10) /* the DS dropdown highlight */;
}

/* Language and currency, under the globe: the About/Support list rows with the
   language code on the right and a tick on the current one (Kim, 2026-11-17). */
#navbar.enttec-hd .pl-item--lang {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--eds-sp-6);
}
#navbar.enttec-hd .pl-meta {
	display: inline-flex;
	align-items: center;
	gap: var(--eds-sp-2);
	font-size: var(--eds-text-label);
	color: var(--enttec-muted);
}
#navbar.enttec-hd .pl-item--lang[aria-current="true"] {
	color: var(--enttec-heading, var(--enttec-ink));
	font-weight: var(--eds-weight-ui);
}
#navbar.enttec-hd .pl-tick {
	width: 14px;
	height: 14px;
	color: var(--enttec-blue);
}

/* ------------------------------------------------------------ breakpoints --- */
/* Phones (767px and below) keep the live mobile bar and menu, printed by
   enttec-megamenu-preview.php, so this bar steps aside; the live desktop line is
   768px. Nothing here styles #enttec-mm-topbar: it is the live bar's id, not ours. */
@media (max-width: 767px) {
	#navbar.enttec-hd {
		display: none;
	}
}

/* Search is the icon at every width, opening the site's search component as on the
   test site (Kim, 2026-11-17); its layout is search.css's, not this file's. */

@media (min-width: 1024px) and (max-width: 1279px) {
	#navbar.enttec-hd .hd-link {
		padding: 0 var(--eds-sp-3);
	}
	#navbar.enttec-hd .hd-lang-code {
		display: none;
	}
	#navbar.enttec-hd .hd-login {
		padding: var(--eds-sp-2) var(--eds-sp-4);
	}
}

/* Log in / Sign up does not fit beside the five items, search, globe and cart
   below 1100px, so it drops to "Log in" there (Kim's fallback). The link's
   aria-label keeps the full "Log in / Sign up" for assistive tech at every width,
   and the My Account page it opens carries the sign-up form. */
@media (min-width: 768px) and (max-width: 1099px) {
	#navbar.enttec-hd .hd-login-full {
		display: none;
	}
	#navbar.enttec-hd .hd-login-short {
		display: inline;
	}
}

@media (min-width: 768px) and (max-width: 1023px) {
	#navbar.enttec-hd .hd-inner {
		gap: var(--eds-sp-2);
	}
	#navbar.enttec-hd .hd-logo-mark,
	#navbar.enttec-hd.layout-fixed .hd-logo-mark {
		height: 17px;
	}
	#navbar.enttec-hd .hd-link {
		gap: var(--eds-sp-1);
		padding: 0 var(--eds-sp-2);
	}
	/* The whole bar steps down together, so both groups stay one size. */
	#navbar.enttec-hd :is(.hd-link, .hd-icon, .hd-login) {
		font-size: var(--eds-text-secondary);
	}
	#navbar.enttec-hd .hd-caret {
		width: 9px;
		height: 9px;
	}
	#navbar.enttec-hd .hd-utils {
		gap: 0;
	}
	#navbar.enttec-hd .hd-lang-code,
	#navbar.enttec-hd .hd-login svg {
		display: none;
	}
	#navbar.enttec-hd .hd-login {
		margin-left: var(--eds-sp-1);
		padding: var(--eds-sp-2) var(--eds-sp-3);
	}
	/* As live: a shorter category picture on tablets. */
	#navbar.enttec-hd .pp-banner {
		height: 120px;
	}
}

@media (min-width: 768px) and (max-width: 899px) {
	#navbar.enttec-hd .hd-inner {
		gap: var(--eds-sp-1);
		padding: 0 var(--eds-sp-4);
	}
	#navbar.enttec-hd .hd-link {
		padding: 0 var(--eds-sp-2);
	}
	#navbar.enttec-hd :is(.hd-link, .hd-icon, .hd-login) {
		letter-spacing: .03em;
	}
}

/* Every transition above has a still equivalent: state still shows through the
   underline, the fill, the caret's direction and the open panel itself. */
@media (prefers-reduced-motion: reduce) {
	#navbar.enttec-hd,
	#navbar.enttec-hd *,
	#navbar.enttec-hd *::before,
	#navbar.enttec-hd *::after {
		transition: none !important;
		animation: none !important;
	}
	#navbar.enttec-hd .hd-login:hover {
		transform: none;
	}
}
