/* ==========================================================================
   Site header: the Command bar (header.js; header A, the Spec bar, deleted 6 Nov).
   Built on tokens.css. Sets --header-h / --utility-h, which every hero and sticky
   offset on the site already reads.
   ========================================================================== */
html[data-header] { --utility-h: 0px; }
html[data-header="b"] { --header-h: 78px; }   /* 14 inset + 64 bar */
@media (max-width: 1023px) {
  html[data-header="b"] { --header-h: 64px; }   /* 8 inset + 56 bar */
}

/* --- shared ---------------------------------------------------------------- */
.hd { position: sticky; top: 0; z-index: 100; color: var(--cg-white); }
.hd :where(a:not(.btn)), .hd button { color: inherit; }   /* :where keeps this below the link styles; buttons keep black on yellow */
.hd__logo { display: flex; align-items: center; min-height: 44px; flex: none; }
.hd__logo img { display: block; width: auto; height: 36px; }
.hd .icon { width: 18px; height: 18px; flex: none; }
.hd__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; color: rgba(255,255,255,0.72); }
.hd__icon:hover { color: var(--cg-white); }
.hd__burger { display: none; place-items: center; width: 48px; height: 48px; background: none; border: 1px solid rgba(255,255,255,0.3); color: var(--cg-white); }
.hd__burger .icon { width: 22px; height: 22px; }
.hd :focus-visible { outline: 2px solid var(--cg-yellow); outline-offset: 2px; }
.mobile-menu .hd__icon { color: var(--cg-white); }

/* link lists inside menus */
.hd-mega ul li a {
  display: flex; align-items: center; gap: var(--s-3); padding: 14px 0; border-bottom: 1px solid var(--rule-dark);
  font-size: 1rem; font-weight: 500; color: var(--n-100); transition: color var(--dur-fast) var(--ease);
}
.hd-mega ul li a small { margin-left: auto; color: var(--n-400); font-size: 0.8125rem; font-weight: 400; }
.hd-mega ul li a .icon { width: 16px; height: 16px; margin-left: auto; opacity: 0.45; transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast); }
.hd-mega ul li a small + .icon { margin-left: 0; }
.hd-mega ul li a:hover { color: var(--cg-white); }
.hd-mega ul li a:hover .icon { opacity: 1; transform: translateX(3px); }

/* panel open / close */
.hd-mega { opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur); }
.hd-mega.is-open { opacity: 1; visibility: visible; transform: none; }

/* drawings on black */
.hd .dw { --dw-ink: #D9D4C8; --dw-fill: #0E0D0B; --dw-glass: #2A2823; --dw-rod: #8E9295; }
.hd .dw .dw-label, .hd .dw .dw-callout, .hd .dw .dw-dim { display: none; }

/* 3D cylinder card in the Solutions panel (Prototype panel → 'Solutions menu': with 3D card) */
.hd-feature { display: grid; gap: var(--s-2); align-content: start; padding: var(--s-5); background: var(--n-900); border: 1px solid var(--rule-dark); transition: border-color var(--dur-fast); }
.hd-feature:hover { border-color: rgba(255,255,255,0.4); }
.hd-feature__draw { display: block; margin: calc(var(--s-2) * -1) 0 var(--s-3); }
/* 3D stage (5 Nov): a dark bay with a fine engineering grid and a soft floor light. The line
   drawing stays underneath until the WebGL model has loaded (and if WebGL isn't available). */
.hd-feature__stage { position: relative; display: block; aspect-ratio: 16 / 10; margin: calc(var(--s-5) * -1) calc(var(--s-5) * -1) var(--s-3); overflow: hidden; border-bottom: 1px solid var(--rule-dark);
  background:
    radial-gradient(ellipse 60% 45% at 50% 78%, rgba(236, 189, 55, 0.16), transparent 70%),
    radial-gradient(ellipse 80% 70% at 50% 40%, #24221d 0%, #0d0c0a 75%),
    #0d0c0a; }
.hd-feature__stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 22px 22px; -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 55%, #000 30%, transparent 80%); mask-image: radial-gradient(ellipse 70% 70% at 50% 55%, #000 30%, transparent 80%); }
.hd-feature__fallback { position: absolute; inset: 12% 8%; display: grid; place-items: center; transition: opacity var(--dur) var(--ease); }
.hd-feature__fallback svg { width: 100%; height: auto; }
.hd-feature__stage.is-3d .hd-feature__fallback { opacity: 0; }
.hd-feature__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hd-feature__chip { position: absolute; left: 12px; top: 12px; z-index: 1; padding: 4px 8px; border: 1px solid rgba(255,255,255,0.22); background: rgba(0,0,0,0.45); font-family: var(--font-label); font-stretch: var(--label-stretch); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--n-200); }

.hd-feature b { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1.625rem; line-height: 1; }
.hd-feature span:not(.hd-feature__draw) { color: var(--n-400); font-size: 0.9375rem; line-height: 1.5; }
.hd-feature em { display: inline-flex; align-items: center; gap: var(--s-2); margin-top: var(--s-3); font-style: normal; font-weight: 700; font-size: 0.8125rem; letter-spacing: var(--ui-tracking); text-transform: uppercase; }
.hd-feature:hover em .icon { transform: translateX(3px); }
.hd-feature em .icon { transition: transform var(--dur-fast) var(--ease); }

/* ==========================================================================
   B · COMMAND BAR
   ========================================================================== */
.hd--b { padding-top: 14px; pointer-events: none; }
.hd--b .hd__wrap { position: relative; pointer-events: auto; }
.hd--b .hd__bar {
  height: 64px; display: flex; align-items: stretch; background: var(--cg-black);
  border: 1px solid rgba(255,255,255,0.16); box-shadow: 0 22px 48px -24px rgba(0,0,0,0.85);
}
.hd--b .hd__logo { display: flex; align-items: center; padding: 0 var(--s-5); }
.hd--b .hd__logo img { height: 46px; }
.hd--b .hd__nav { display: flex; flex: 1; min-width: 0; border-left: 1px solid var(--rule-dark); }
.hd--b .hd__nav ul { display: flex; padding-left: var(--s-2); }
.hd--b .hd__nav li { display: flex; }
.hd--b .hd__link {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 100%; padding: 0 var(--s-4);
  font-family: var(--font-display); font-weight: 600; font-size: 1.1875rem; letter-spacing: 0.045em; text-transform: uppercase;
  color: var(--n-300); background: none; border: 0; transition: color var(--dur-fast) var(--ease); white-space: nowrap;
}
.hd--b .hd__link .icon { width: 14px; height: 14px; transition: transform var(--dur) var(--ease); }
.hd--b .hd__link[aria-expanded="true"] .icon { transform: rotate(180deg); }
.hd--b .hd__link::after { content: ""; position: absolute; left: var(--s-4); right: var(--s-4); bottom: -1px; height: 3px; background: var(--cg-yellow); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); }
.hd--b .hd__link:hover, .hd--b .hd__link[aria-expanded="true"], .hd--b .hd__link[aria-current="page"] { color: var(--cg-white); }
.hd--b .hd__link:hover::after, .hd--b .hd__link[aria-expanded="true"]::after, .hd--b .hd__link[aria-current="page"]::after { transform: none; }
.hd--b .hd__end { display: flex; align-items: stretch; }
.hd--b .hd__search {
  display: flex; align-items: center; gap: var(--s-3); padding: 0 var(--s-5); background: none; border: 0; border-left: 1px solid var(--rule-dark);
  font-family: var(--font-display); font-weight: 600; font-size: 1.1875rem; letter-spacing: 0.045em; text-transform: uppercase;
  color: var(--n-300); white-space: nowrap; cursor: pointer; transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.hd--b .hd__search:hover, .hd--b .hd__search[aria-expanded="true"] { color: var(--cg-white); background: var(--n-900); }
.hd--b .hd__search .icon { width: 18px; height: 18px; }
.hd kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border: 1px solid rgba(255,255,255,0.28); font: 500 0.6875rem/1 var(--font-mono); letter-spacing: 0; text-transform: none; color: var(--n-400); }
.hd--b .hd__phone { display: flex; align-items: center; gap: var(--s-3); padding: 0 var(--s-5); border-left: 1px solid var(--rule-dark); font-family: var(--font-data); font-weight: 600; font-size: 1.375rem; letter-spacing: 0.01em; white-space: nowrap; }
.hd--b .hd__phone .icon { width: 16px; height: 16px; color: var(--cg-yellow); }
.hd--b .hd__phone:hover span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.hd--b .hd__cta {
  display: flex; align-items: center; gap: var(--s-3); margin: -1px -1px -1px 0; padding: 0 var(--s-6);
  background: var(--cg-yellow); color: var(--cg-black) !important; font-family: var(--font-display); font-weight: 700;
  font-size: 1.1875rem; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; transition: background var(--dur-fast);
}
.hd--b .hd__cta:hover { background: var(--cg-yellow-deep); }
.hd--b .hd__cta .icon { width: 20px; height: 20px; transition: transform var(--dur-fast) var(--ease); }
.hd--b .hd__cta:hover .icon { transform: translateX(3px); }
.hd--b .hd__burger { align-self: center; margin: 0 var(--s-3); border: 0; }

/* Solutions panel: machine tiles attached under the bar; reorder + region in its foot */
.hd--b .hd-mega { position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 6px); background: var(--cg-black); border: 1px solid rgba(255,255,255,0.16); box-shadow: 0 40px 80px -40px rgba(0,0,0,0.9); }
.hd--b .hd-mega__grid { display: grid; grid-template-columns: repeat(4, 1fr) 1.25fr; }
.hd-tile { position: relative; display: grid; align-content: center; gap: 4px; padding: var(--s-6) var(--s-5); border-right: 1px solid var(--rule-dark); transition: background var(--dur-fast); }
.hd-tile:hover { background: var(--n-900); }
.hd-tile__draw { display: grid; place-items: end center; height: 190px; margin-bottom: var(--s-5); }
.hd-tile__draw .dw { max-height: 190px; width: auto; max-width: 100%; }
/* 3D render tiles (5 Nov): a transparent render from tools/tile-studio on a soft studio floor light */
.hd-tile__draw--3d { position: relative; isolation: isolate; }
.hd-tile__draw--3d::before { content: ""; position: absolute; inset: 20% -8% -6%; z-index: -1; background: radial-gradient(ellipse 58% 34% at 50% 84%, rgba(236, 189, 55, 0.13), transparent 72%), radial-gradient(ellipse 70% 60% at 50% 70%, rgba(255, 255, 255, 0.05), transparent 70%); pointer-events: none; }
.hd-tile__draw--3d img { display: block; max-height: 200px; width: auto; max-width: 112%; margin-bottom: -10px; transition: transform var(--dur) var(--ease); }
.hd-tile:hover .hd-tile__draw--3d img { transform: translateY(-3px) scale(1.03); }
.hd-tile__draw--3d img.is-wide { max-width: 118%; margin-bottom: -4px; }   /* side-on machines (the loader stand-in) */
.hd-tile b { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1.625rem; line-height: 1; }
.hd-tile small { font-size: 0.875rem; color: var(--n-400); }
.hd-tile > .icon { position: absolute; right: var(--s-5); bottom: calc(var(--s-6) + 1.6em); width: 18px; height: 18px; opacity: 0.4; transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast); }
.hd-tile:hover > .icon { opacity: 1; transform: translateX(3px); }
.hd-tile:hover .dw .dw-guard { fill: #fff; }
.hd--b .hd-mega__side { padding: var(--s-5) var(--s-6) var(--s-6); }
.hd-mega__h { font-family: var(--font-label); font-stretch: var(--label-stretch); font-weight: var(--label-weight); font-size: var(--t-label); letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--n-400); margin: var(--s-2) 0 var(--s-2); }
.hd-mega__h + ul + .hd-mega__h { margin-top: var(--s-6); }
.hd--b .hd-mega__side ul li a { padding: 10px 0; font-size: 0.9375rem; }
/* Solutions panel (6 Nov): the three lenses as labelled columns. By machine carries the picture
   tiles; By solution and By role are link lists. */
.hd--b .hd-mega__grid.hd-mega__grid--lenses { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
.hd--b .hd-mega__grid.hd-mega__grid--lenses.has-feature { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr); }
.hd-lens { padding: var(--s-5) var(--s-6) var(--s-6); border-right: 1px solid var(--rule-dark); }
.hd-lens:last-child { border-right: 0; }
.hd-lens .hd-mega__h { margin-top: 0; }
.hd-lens__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: var(--s-3) 0 var(--s-2); border: 1px solid var(--rule-dark); }
.hd-lens__tiles .hd-tile { padding: var(--s-5) var(--s-4); }
.hd-lens__tiles .hd-tile:last-child { border-right: 0; }
.hd-lens__tiles .hd-tile__draw { height: 150px; margin-bottom: var(--s-4); }
.hd-lens__tiles .hd-tile__draw--3d img { max-height: 160px; }
.hd-lens__tiles .hd-tile b { font-size: 1.5rem; }
.hd-lens__tiles .hd-tile > .icon { right: var(--s-4); bottom: calc(var(--s-5) + 1.6em); }
.hd-lens ul li a { padding: 12px 0; font-size: 0.9375rem; }
/* Machine photos (6 Nov: Excavators.jpg, Dozers.jpg on black): one box per tile, same size; the
   machine contained at 82% and centred both ways in its box. */
.hd-lens__tiles .hd-tile__draw--photo { display: flex; align-items: center; justify-content: center; width: 100%; height: auto; aspect-ratio: 16 / 10; margin-bottom: var(--s-4); background: #000; overflow: hidden; }
.hd-tile__draw--photo img { display: block; width: 82%; height: 82%; object-fit: contain; object-position: 50% 50%; transition: transform var(--dur) var(--ease); }
.hd-tile:hover .hd-tile__draw--photo img { transform: scale(1.04); transform-origin: 50% 50%; }
.hd-lens__tiles .hd-tile:has(.hd-tile__draw--photo):hover { background: transparent; }
.hd-lens--feature { padding: var(--s-5); }
.hd-lens--feature .hd-feature { height: 100%; }
/* ?menu=3d: the earlier Solutions menu (header A's): lens tabs | links | 3D card, intro in the foot */
.hd--b .hd-mega__grid.hd-mega__grid--routes { grid-template-columns: 4fr 5fr 3fr; gap: var(--s-9); padding: var(--s-7) var(--s-6) var(--s-6); }
.hd-mega__routes { display: grid; align-content: start; }
.hd-route { display: grid; gap: 4px; text-align: left; padding: var(--s-4) 0 var(--s-4) var(--s-5); background: none; border: 0; border-left: 3px solid var(--n-800); color: var(--n-500); transition: color var(--dur-fast), border-color var(--dur-fast); }
.hd-route b { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 2.25rem; line-height: 1; letter-spacing: var(--display-tracking); }
.hd-route small { font-size: 0.875rem; color: var(--n-500); }
.hd-route[aria-selected="true"] { color: var(--cg-white); border-left-color: var(--cg-yellow); }
.hd-route[aria-selected="true"] small { color: var(--n-400); }
.hd-route:hover { color: var(--n-200); }
.hd-mega__links { padding-top: var(--s-2); }
.hd--b .hd-mega__foot p { margin-right: auto; color: var(--n-400); }
@media (max-width: 1365px) { .hd--b .hd-mega__grid.hd-mega__grid--routes { gap: var(--s-7); } .hd-route b { font-size: 1.875rem; } }
@media (max-width: 1365px) { .hd-lens { padding-inline: var(--s-5); } .hd-lens ul li a small { display: none; } }
.hd--b .hd-mega__foot { display: flex; align-items: center; gap: var(--s-6); padding: var(--s-3) var(--s-5); border-top: 1px solid var(--rule-dark); font-size: 0.8125rem; }
.hd--b .hd-mega__foot a { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--n-300); }
.hd--b .hd-mega__foot a:hover { color: var(--cg-white); }
.hd--b .hd-mega__foot .icon { width: 16px; height: 16px; }

/* Search panel: drops from the bar like the Solutions panel */
.hd--b .hd-search { position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 6px); max-height: calc(100svh - var(--header-h) - 24px); overflow-y: auto; background: var(--cg-black); border: 1px solid rgba(255,255,255,0.16); box-shadow: 0 40px 80px -40px rgba(0,0,0,0.9);
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur); }
.hd--b .hd-search.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }   /* visible at once on open, so the field can take focus */
.hd-search__bar { display: flex; align-items: center; gap: var(--s-4); height: 88px; padding: 0 var(--s-6); border-bottom: 1px solid var(--rule-dark); }
.hd-search__bar:focus-within { box-shadow: inset 0 -2px 0 var(--cg-yellow); }
.hd-search__bar > .icon { width: 26px; height: 26px; color: var(--cg-yellow); }
.hd-search__bar input { flex: 1; min-width: 0; height: 100%; padding: 0; background: none; border: 0; outline: none; color: var(--cg-white); font-family: var(--font-display); font-weight: 600; font-size: calc(clamp(1.5rem, 1rem + 1.3vw, 2.25rem) * var(--display-scale)); letter-spacing: 0.01em; }
.hd-search__bar input:focus-visible { outline: none; }   /* the bar's yellow underline shows focus */
.hd-search__bar input::placeholder { color: var(--n-600); }
.hd-search__bar input::-webkit-search-cancel-button { display: none; }
.hd-search__close { display: inline-flex; align-items: center; gap: var(--s-3); height: 40px; padding: 0 var(--s-3); background: none; border: 1px solid var(--rule-dark); color: var(--n-300); cursor: pointer; }
.hd-search__close:hover { color: var(--cg-white); border-color: rgba(255,255,255,0.5); }
.hd-search__close .icon { width: 16px; height: 16px; }
.hd-search__body { padding: var(--s-5) var(--s-6) var(--s-7); }
.hd-search__try { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2) var(--s-5); padding-bottom: var(--s-5); border-bottom: 1px solid var(--rule-dark); }
.hd-search__try p, .hd-sgroup__h { font-family: var(--font-label); font-stretch: var(--label-stretch); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--n-400); }
.hd-search__try button { padding: 0; background: none; border: 0; color: var(--n-100); font-size: 0.9375rem; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.35); text-decoration-thickness: 1px; text-underline-offset: 4px; cursor: pointer; }
.hd-search__try button:hover { color: var(--cg-white); text-decoration-color: var(--cg-yellow); }
.hd-search__results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-8); margin-top: var(--s-5); }
.hd-sgroup__h { margin-bottom: var(--s-2); }
.hd-search ul li a { display: flex; align-items: center; gap: var(--s-3); padding: 12px 0; border-bottom: 1px solid var(--rule-dark); font-size: 1rem; font-weight: 500; color: var(--n-100); transition: color var(--dur-fast) var(--ease); }
.hd-search ul li a small { margin-left: auto; padding-left: var(--s-3); font-size: 0.8125rem; font-weight: 400; color: var(--n-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.hd-search ul li a .icon { width: 16px; height: 16px; margin-left: auto; opacity: 0.45; transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast); }
.hd-search ul li a small + .icon { margin-left: 0; }
.hd-search ul li a:hover, .hd-search ul li a:focus-visible { color: var(--cg-white); }
.hd-search ul li a:hover .icon, .hd-search ul li a:focus-visible .icon { opacity: 1; transform: translateX(3px); }
.hd-search mark { padding: 0 1px; background: var(--cg-yellow); color: var(--cg-black); }
.hd-search__empty { grid-column: 1 / -1; color: var(--n-300); }
.hd-search__empty a { margin-left: var(--s-2); color: var(--cg-white); text-decoration: underline; text-underline-offset: 4px; }
.mobile-menu__region { display: inline-flex; align-items: center; gap: var(--s-2); justify-self: start; margin-top: var(--s-2); font-size: 0.875rem; color: var(--n-300); }
.mobile-menu__region .icon { width: 16px; height: 16px; }

@media (max-width: 1535px) { .hd--b .hd__search span { display: none; } }
@media (max-width: 1439px) {
  .hd--b .hd__search { padding: 0 var(--s-4); }
  .hd--b .hd__search kbd { display: none; }
  .hd--b .hd__link { padding: 0 14px; }
  .hd--b .hd__link::after { left: 14px; right: 14px; }
}
@media (max-width: 1365px) {
  .hd--b .hd__search { padding: 0 var(--s-4); }
  .hd--b .hd__search kbd { display: none; }
  .hd--b .hd__link { padding: 0 var(--s-3); font-size: 1.0625rem; }
  .hd--b .hd__link::after { left: var(--s-3); right: var(--s-3); }
  .hd--b .hd__phone span { display: none; }
  .hd--b .hd__phone { padding: 0 var(--s-4); }
  .hd--b .hd__cta { padding: 0 var(--s-5); font-size: 1.0625rem; }
  .hd--b .hd-mega__grid { grid-template-columns: repeat(4, 1fr); }
  .hd--b .hd-mega__side { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto 1fr; gap: var(--s-5); align-items: start; border-top: 1px solid var(--rule-dark); }
  .hd-mega__h + ul + .hd-mega__h { margin-top: var(--s-2); }
}
@media (max-width: 1199px) {   /* nav moves into the menu before it would crowd search, phone and CTA */
  .hd--b .hd__nav, .hd--b .hd-mega { display: none; }
  .hd--b .hd__end { margin-left: auto; }
  .hd--b .hd__burger { display: inline-grid; margin: 0 var(--s-1); }
}
@media (max-width: 1023px) {
  .hd--b { padding-top: 8px; }
  .hd--b .hd__wrap { padding-inline: 8px; }
  .hd--b .hd__bar { height: 56px; }
  .hd--b .hd__logo { padding: 0 var(--s-4); }
  .hd--b .hd__logo img { height: 36px; }
  .hd--b .hd__nav, .hd--b .hd-mega { display: none; }
  .hd--b .hd__end { margin-left: auto; }
  .hd--b .hd__phone { padding: 0 var(--s-4); }
  .hd--b .hd__cta { padding: 0 var(--s-4); font-size: 1rem; }
  .hd--b .hd__burger { display: inline-grid; margin: 0 var(--s-1); }
  .hd--b .hd-search { left: 8px; right: 8px; max-height: calc(100svh - var(--header-h) - 16px); }
  .hd-search__bar { height: 64px; padding: 0 var(--s-4); gap: var(--s-3); }
  .hd-search__bar > .icon { width: 20px; height: 20px; }
  .hd-search__close kbd { display: none; }
  .hd-search__body { padding: var(--s-4) var(--s-4) var(--s-6); }
  .hd-search__results { grid-template-columns: 1fr; gap: var(--s-5); }
}
@media (max-width: 599px) { .hd--b .hd__cta { display: none; } .hd--b .hd__burger { border-left: 1px solid var(--rule-dark); } }
@media (max-width: 767px) {   /* results: the note sits under the title instead of being cut off */
  .hd-search__bar input { font-size: calc(1.25rem * var(--display-scale)); }
  .hd-search ul li a { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s-3); row-gap: 2px; }
  .hd-search ul li a small { grid-column: 1; grid-row: 2; margin: 0; padding: 0; max-width: none; white-space: normal; }
  .hd-search ul li a .icon { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hd-mega, .hd--b .hd-search { transition: none; }
}
