/* ==========================================================================
   Site header, 2026 rebuild. Scoped to .ms-hdr so the legacy stylesheet's
   header/nav rules do not leak in. Desktop ≥ 960px, drawer below.
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");
.ms-hdr {
  --hdr-red: #cc0000;
  --hdr-red-dark: #a80000;
  --hdr-ink: #2d2d2d;
  --hdr-ink-2: #1f1f1f;
  --hdr-text: #333;
  --hdr-muted: #6a6a6a;
  --hdr-line: #e4e4e4;
  --hdr-wrap: 1000px;   /* matches the page content column (legacy section{width:1000px}) */
  --hdr-focus: 0 0 0 3px rgba(204, 0, 0, .35);
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;     /* legacy body{text-align:justify} */
  color: var(--hdr-text);
  position: relative;
  z-index: 50;
  width: 100%;
  height: auto;            /* legacy header{height:175px} */
  background: #fff;
}
header.ms-hdr.sticky { height: auto; margin: 0; padding: 0; border: 0; } /* legacy scroll script */
.ms-hdr *, .ms-hdr *::before, .ms-hdr *::after { box-sizing: border-box; }
.ms-hdr a { color: inherit; text-decoration: none; }
.ms-hdr button { font: inherit; color: inherit; background: none; border: 0; margin: 0; cursor: pointer; box-shadow: none; }
.ms-hdr ul { list-style: none; margin: 0; padding: 0; }
.ms-hdr p { margin: 0; }
.ms-hdr svg { display: block; }
.ms-hdr :focus-visible { outline: none; box-shadow: var(--hdr-focus); border-radius: 4px; }
.ms-hdr__wrap { max-width: var(--hdr-wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 1032px) { .ms-hdr__wrap { padding: 0; } }

/* ── Top band: logo, ribbon, contact ─────────────────────────────────── */
.ms-hdr__top { position: relative; z-index: 3; background: #fff; }
.ms-hdr__top .ms-hdr__wrap { display: flex; align-items: stretch; justify-content: space-between; gap: 16px; min-height: 64px; }
.ms-hdr__logo { display: flex; align-items: center; padding: 8px 0; }
.ms-hdr__logo img { display: block; height: 44px; width: auto; }

.ms-hdr__right { display: none; flex-direction: column; align-items: flex-end; }
.ms-hdr__ribbonrow { display: flex; align-items: flex-start; }
.ms-hdr__ribbon {
  position: relative; display: flex; align-items: center; gap: 6px;
  color: #fff; background: var(--hdr-red); padding: 0 12px 0 14px; height: 30px;
  border-bottom-left-radius: 10px; border-bottom-right-radius: 5px;
}
/* concave fillet joining the ribbon to the red page border (the curve on the old header) */
.ms-hdr__ribbon::before { content: ""; position: absolute; right: 100%; top: 0; width: 14px; height: 14px; background: radial-gradient(circle at 0 100%, transparent 13.5px, var(--hdr-red) 14px); }
.ms-hdr__util { display: flex; align-items: center; }
.ms-hdr__util a { font-size: 13px; padding: 0 8px; line-height: 30px; white-space: nowrap; position: relative; }
.ms-hdr__util a + a::before { content: ""; position: absolute; left: 0; top: 9px; height: 12px; width: 1px; background: rgba(255, 255, 255, .55); }
.ms-hdr__util a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ms-hdr__iconbtn { display: inline-flex; align-items: center; justify-content: center; padding: 0; width: 32px; height: 30px; border-radius: 4px; color: #fff; }
.ms-hdr__iconbtn svg { width: 18px; height: 18px; }
.ms-hdr__iconbtn:hover, .ms-hdr__iconbtn[aria-expanded="true"] { background: rgba(0, 0, 0, .18); }
.ms-hdr__iconbtn--dark { color: var(--hdr-ink); width: 40px; height: 40px; }
.ms-hdr__iconbtn--dark:hover, .ms-hdr__iconbtn--dark[aria-expanded="true"] { background: #f1f1f1; }

/* legacy language control: globe opening the jQuery UI "Language Select" dialog */
.ms-skip { position: absolute; left: -9999px; top: 8px; z-index: 10000; background: #fff; color: #d00202; padding: 8px 14px; border-radius: 6px; font-family: "Poppins", Arial, sans-serif; font-weight: 600; text-decoration: none; }
.ms-skip:focus { left: 8px; outline: 2px solid #d00202; }
.ms-hdr .ms-hdr__globe { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-left: 4px; color: #fff; opacity: .92; }
.ms-hdr .ms-hdr__globe:hover, .ms-hdr .ms-hdr__globe:focus-visible { opacity: 1; background: rgba(255, 255, 255, .14); border-radius: 6px; outline: none; }
.ms-hdr .ms-hdr__globe svg { width: 17px; height: 17px; }
.ms-hdr .ms-nav__langbtn { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; font-size: 14px; color: #fff; }
.ms-hdr .ms-nav__langbtn svg { width: 18px; height: 18px; }
/* legacy language dialog on small screens: jQuery UI fixes it at 600x480, which overflows phones */
@media (max-width: 640px) {
  .ui-dialog[aria-describedby="lang"] { width: calc(100vw - 16px) !important; left: 8px !important; top: 72px !important; }
  .ui-dialog[aria-describedby="lang"] #lang { height: auto !important; max-height: calc(100vh - 220px) !important; }
  #lang .flex { flex-wrap: wrap; }
  #lang .region { flex: 1 1 100%; padding: 10px 8px 0; }
}
#lang .region-title { font-size: 16px; font-weight: bold; color: #868686; line-height: 1.2; text-transform: uppercase; margin: 0; }
/* row under the ribbon: contact details + open search field */
.ms-hdr__bar { flex: 1 1 auto; align-self: stretch; display: flex; align-items: center; justify-content: flex-end; gap: 22px; padding: 8px 0 6px; }
.ms-hdr__contact { flex: 0 0 auto; display: flex; align-items: center; gap: 20px; color: var(--hdr-muted); font-size: 13px; white-space: nowrap; }
.ms-hdr__contact a { display: inline-flex; align-items: center; gap: 8px; }
.ms-hdr__contact a:hover { color: var(--hdr-red); }
.ms-hdr__contact svg { width: 19px; height: 19px; color: var(--hdr-muted); }
/* open search field (desktop); the form is moved here from #ms-search by the script */
.ms-hdr__search { position: relative; flex: 0 0 auto; }
/* collapsed by default (icon + button); the input slides open to the left on focus/click */
.ms-hdr__search:not(.is-expanded) .ms-search__field { cursor: pointer; }
.ms-hdr__search:empty { display: none; }
.ms-hdr__search .ms-search__form { max-width: none; margin: 0; }
.ms-hdr__search .ms-search__label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ms-hdr__search .ms-search__hint, .ms-hdr__search .ms-search__close { display: none; }
.ms-hdr__search .ms-search__field { gap: 6px; border: 1.5px solid #c9c9c9; border-radius: 999px; padding: 3px 3px 3px 12px; overflow: hidden; }
.ms-hdr__search .ms-search__field:hover { border-color: #9b9b9b; }
.ms-hdr__search .ms-search__field:focus-within { border-color: var(--hdr-red); box-shadow: var(--hdr-focus); }
.ms-hdr__search .ms-search__field > svg { width: 17px; height: 17px; }
.ms-hdr .ms-hdr__search .ms-search__input, .ms-hdr .ms-hdr__search .ms-search__input:focus { height: 32px; font-size: 14px; flex: 0 0 auto; width: 0; transition: width .28s ease; } /* width, not flex-basis: Safari sizes the pill from the input's width, so a flex-basis transition pushed the button out of the pill on iPad */
.ms-hdr .ms-hdr__search.is-expanded .ms-search__input, .ms-hdr .ms-hdr__search.is-expanded .ms-search__input:focus { width: 172px; }
.ms-hdr .ms-hdr__search .ms-search__input::placeholder { color: transparent; transition: color .15s ease; }
.ms-hdr .ms-hdr__search.is-expanded .ms-search__input::placeholder { color: #8a8a8a; transition-delay: .15s; }
.ms-hdr .ms-hdr__search .ms-search__submit { height: 30px; padding: 0 14px; border-radius: 999px; font-size: 13px; }
.ms-hdr__search .ms-search__results { display: none; position: absolute; right: 0; top: calc(100% + 8px); width: 440px; max-width: calc(100vw - 32px); margin: 0; padding: 8px; background: #fff; border-radius: 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, .22); z-index: 6; max-height: calc(100vh - 170px); overflow-y: auto; }
.ms-hdr__search.is-open .ms-search__results:not(:empty) { display: block; }
.ms-hdr__search .ms-search__results::before { content: ""; position: absolute; right: 22px; top: -6px; width: 12px; height: 12px; background: #fff; transform: rotate(45deg); }

/* language pill */
.ms-lang { position: relative; margin-left: 4px; }
.ms-lang__btn { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px 0 6px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 999px; color: #fff; font-size: 12px; line-height: 1; }
.ms-lang__btn svg { width: 14px; height: 14px; }
.ms-lang__btn .ms-lang__chev { width: 10px; height: 10px; opacity: .85; }
.ms-lang__code { font-weight: 600; letter-spacing: .04em; }
.ms-lang__name { display: none; }
.ms-lang__btn:hover, .ms-lang__btn[aria-expanded="true"] { background: #fff; color: var(--hdr-red); border-color: #fff; }
.ms-lang__menu { position: absolute; right: 0; top: calc(100% + 10px); background: #fff; color: var(--hdr-text); border-radius: 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, .22); min-width: 260px; padding: 8px; z-index: 5; }
.ms-lang__menu::before { content: ""; position: absolute; right: 18px; top: -6px; width: 12px; height: 12px; background: #fff; transform: rotate(45deg); }
.ms-lang__head { margin: 6px 10px 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--hdr-muted); font-weight: 600; }
.ms-lang__menu li a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 10px; border-radius: 8px; font-size: 14px; }
.ms-lang__menu li a:hover { background: #f3f3f4; }
.ms-lang__menu li a.is-current { background: #fdecee; color: var(--hdr-red); font-weight: 600; }
.ms-lang__menu li a svg { width: 16px; height: 16px; flex: none; }
.ms-lang__label small { display: block; font-size: 12px; font-weight: 400; color: var(--hdr-muted); }
.ms-lang__menu li a.is-current small { color: var(--hdr-red); opacity: .8; }
.ms-lang__foot { margin: 6px 10px 4px; font-size: 12px; color: var(--hdr-muted); }
.ms-lang__foot a { color: var(--hdr-red); text-decoration: underline; text-underline-offset: 2px; }

/* mobile actions */
.ms-hdr__mobile-actions { display: flex; align-items: center; gap: 4px; }
.ms-hdr__burger { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px 0 8px; border-radius: 6px; color: var(--hdr-ink); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.ms-hdr__burger:hover { background: #f1f1f1; }
.ms-hdr__burger-lines { display: block; width: 22px; height: 16px; position: relative; }
.ms-hdr__burger-lines i { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s ease, opacity .2s ease, top .25s ease; }
.ms-hdr__burger-lines i:nth-child(1) { top: 0; } .ms-hdr__burger-lines i:nth-child(2) { top: 7px; } .ms-hdr__burger-lines i:nth-child(3) { top: 14px; }
.ms-hdr__burger[aria-expanded="true"] .ms-hdr__burger-lines i:nth-child(1) { top: 7px; transform: rotate(45deg); }
.ms-hdr__burger[aria-expanded="true"] .ms-hdr__burger-lines i:nth-child(2) { opacity: 0; }
.ms-hdr__burger[aria-expanded="true"] .ms-hdr__burger-lines i:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* ── Product navigation: drawer (mobile) ─────────────────────────────── */
.ms-nav { background: var(--hdr-ink); color: #fff; }
.ms-nav__wrap { padding: 0; }
.ms-nav__list { display: block; }
.ms-hdr .ms-nav__top { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 16px; font-size: 14px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; border-bottom: 1px solid rgba(255, 255, 255, .1); text-align: left; }
.ms-nav__chev { width: 14px; height: 14px; transition: transform .2s ease; flex: none; }
.ms-nav__top[aria-expanded="true"] .ms-nav__chev { transform: rotate(180deg); }
.ms-nav__top[aria-expanded="true"] { background: var(--hdr-ink-2); }
.ms-nav__panel { background: #fff; color: var(--hdr-text); }
.ms-nav__grid { display: grid; grid-template-columns: 1fr; gap: 18px 28px; padding: 18px 16px 22px; }
.ms-nav__heading { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: var(--hdr-text); margin-bottom: 8px; }
.ms-nav__heading img { width: 32px; height: 32px; object-fit: contain; }
a.ms-nav__heading:hover { color: var(--hdr-red); }
/* legacy style2015 sets section{width:1000px}; the mega-menu groups are <section>s */
.ms-hdr section.ms-nav__group { width: auto; min-width: 0; margin: 0; }
.ms-nav__group ul { padding-left: 42px; }
.ms-nav__group li a { display: block; padding: 6px 0; color: #444; font-size: 14px; }
.ms-nav__group li a:hover { color: var(--hdr-red); text-decoration: underline; text-underline-offset: 3px; }
.ms-nav__extra { padding: 18px 16px 28px; border-top: 1px solid rgba(255, 255, 255, .12); display: grid; gap: 18px; }
.ms-nav__util { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ms-nav__util a { font-size: 14px; color: rgba(255, 255, 255, .9); padding: 4px 0; }
.ms-nav__contact { display: flex; flex-direction: column; gap: 6px; }
.ms-nav__contact a { color: #fff; font-size: 15px; }
.ms-nav__lang .ms-lang__head { color: rgba(255, 255, 255, .6); margin: 0 0 8px; }
.ms-nav__lang a { display: inline-block; margin: 0 8px 8px 0; padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; font-size: 13px; color: #fff; }
.ms-nav__lang a.is-current { background: #fff; color: var(--hdr-ink); border-color: #fff; font-weight: 600; }

@media (max-width: 959.98px) {
  .ms-hdr__top { position: sticky; top: 0; box-shadow: 0 1px 0 var(--hdr-line); }
  .ms-nav { position: fixed; inset: var(--ms-top, 64px) 0 0 0; overflow-y: auto; -webkit-overflow-scrolling: touch; transform: translateX(100%); transition: transform .28s ease; z-index: 2; }
  .ms-nav.is-open { transform: none; }
  .ms-hdr__scrim { display: none; }
  body.ms-nav-open { overflow: hidden; }
}

/* ── Product navigation: bar + mega menu (desktop) ───────────────────── */
@media (min-width: 960px) {
  .ms-hdr__top .ms-hdr__wrap { min-height: 112px; }
  .ms-hdr__logo img { height: 61px; }
  .ms-hdr__right { display: flex; }
  .ms-hdr__mobile-actions { display: none; }

  .ms-nav { position: sticky; top: 0; z-index: 2; border-bottom: 2px solid #fff; box-shadow: 0 2px 0 rgba(0, 0, 0, .06); }
  .ms-nav__wrap { padding: 0 16px; position: relative; }
  .ms-nav__list { display: flex; justify-content: space-between; }
  .ms-nav__item { flex: 1 1 0; }
  .ms-hdr .ms-nav__top { justify-content: center; gap: 6px; min-height: 80px; padding: 10px 6px; border: 0; font-size: 15px; letter-spacing: .03em; line-height: 1.4; position: relative; text-align: center; }
  .ms-nav__top > span { display: block; }
  .ms-nav__top > span > span { display: block; }   /* two centred lines: "Traffic" / "Equipment" */
  .ms-nav__top::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 0; height: 3px; background: var(--hdr-red); transition: width .2s ease, left .2s ease; }
  .ms-nav__top:hover::after, .ms-nav__top[aria-expanded="true"]::after { left: 10px; width: calc(100% - 20px); }
  .ms-nav__top[aria-expanded="true"] { background: transparent; }
  .ms-nav__chev { width: 12px; height: 12px; opacity: .7; }
  .ms-nav__panel { position: absolute; left: 0; right: 0; top: 100%; border-top: 1px solid var(--hdr-line); box-shadow: 0 24px 40px rgba(0, 0, 0, .18); max-height: calc(100vh - 90px); overflow-y: auto; }
  .ms-nav__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 32px; padding: 26px 28px 30px; }
  .ms-nav__heading { font-size: 18px; margin-bottom: 12px; }
  .ms-nav__heading img { width: 36px; height: 36px; }
  .ms-nav__group ul { padding-left: 0; }
  .ms-nav__group li a { padding: 5px 0; }
  .ms-nav__extra { display: none; }
  .ms-hdr__scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .35); opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 1; }
  .ms-hdr.is-mega-open .ms-hdr__scrim { opacity: 1; pointer-events: auto; }
}
@media (min-width: 1032px) { .ms-lang__name { display: inline; } .ms-hdr__util a { padding: 0 10px; } .ms-nav__wrap { padding: 0; } }

/* ── Search panel ────────────────────────────────────────────────────── */
.ms-search { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--hdr-line); box-shadow: 0 24px 40px rgba(0, 0, 0, .18); z-index: 4; }
.ms-search .ms-hdr__wrap { padding-top: 18px; padding-bottom: 18px; }
.ms-search__form { max-width: 820px; margin: 0 auto; }
.ms-search__label { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--hdr-muted); font-weight: 600; margin-bottom: 8px; }
.ms-search__field { display: flex; align-items: center; gap: 8px; border: 2px solid var(--hdr-ink); border-radius: 12px; padding: 4px 6px 4px 12px; background: #fff; }
.ms-search__field:focus-within { border-color: var(--hdr-red); box-shadow: var(--hdr-focus); }
.ms-search__field > svg { width: 20px; height: 20px; color: var(--hdr-muted); flex: none; }
.ms-hdr .ms-search__input, .ms-hdr .ms-search__input:focus { flex: 1 1 auto; min-width: 0; height: 44px; width: auto; margin: 0; padding: 0 4px; border: 0; border-radius: 0; background: transparent; box-shadow: none; font: inherit; font-size: 17px; color: var(--hdr-text); outline: none; -webkit-appearance: none; appearance: none; }
.ms-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.ms-hdr .ms-search__submit { height: 40px; padding: 0 16px; border-radius: 8px; background: var(--hdr-red); color: #fff; font-weight: 600; font-size: 14px; }
.ms-hdr .ms-search__submit:hover { background: var(--hdr-red-dark); }
.ms-search__close { display: inline-flex; align-items: center; justify-content: center; padding: 0; width: 40px; height: 40px; border-radius: 8px; color: var(--hdr-muted); }
.ms-search__close:hover { background: #f1f1f1; color: var(--hdr-text); }
.ms-search__close svg { width: 20px; height: 20px; }
.ms-search__hint { margin-top: 8px; font-size: 12px; color: var(--hdr-muted); }
.ms-search__results { max-width: 820px; margin: 10px auto 0; }
.ms-search__results:empty { display: none; }
.ms-search__results ul { display: grid; gap: 4px; }
.ms-search__results li a { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: center; padding: 8px 10px; border-radius: 10px; }
.ms-search__results li a > span:last-child { min-width: 0; }
.ms-search__results li a:hover, .ms-search__results li a[aria-selected="true"] { background: #f3f3f4; }
.ms-search__results li a[aria-selected="true"] { box-shadow: inset 0 0 0 2px var(--hdr-red); }
.ms-search__thumb { width: 56px; height: 56px; border-radius: 8px; background: #f3f3f4; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ms-search__thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ms-search__thumb svg { width: 24px; height: 24px; color: #b5b5b5; }
.ms-search__name { display: block; font-weight: 600; font-size: 15px; color: var(--hdr-text); }
.ms-search__name mark { background: #ffe9a8; color: inherit; padding: 0 1px; border-radius: 2px; }
.ms-search__meta { display: block; font-size: 12px; color: var(--hdr-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-search__more, .ms-search__empty { display: block; margin-top: 8px; padding: 10px; font-size: 14px; color: var(--hdr-muted); text-align: center; }
.ms-hdr .ms-search__more { color: var(--hdr-red); font-weight: 600; text-decoration: none; }
.ms-search__more:hover { text-decoration: underline; }
@media (max-width: 959.98px) {
  .ms-search { position: fixed; inset: var(--ms-top, 64px) 0 0 0; overflow-y: auto; border-top: 0; box-shadow: none; }
  .ms-hdr .ms-search__submit { display: none; }
  .ms-search__results li a { grid-template-columns: 48px minmax(0, 1fr); }
  .ms-search__thumb { width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) { .ms-hdr * { transition: none !important; } }
