/* Trade Source IRE - MASTER SITE HEADER v32 - 2026-08-08
   One canonical banner for every static page. This file MUST be loaded last. */

html body #tsi-shared-header,
html body header#tsi-shared-header.tsi-site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 2147483000 !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  background: #050505 !important;
  border: 0 !important;
  border-bottom: 1px solid #252525 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 16px !important;
  line-height: 1 !important;
  text-align: left !important;
}
html body #tsi-shared-header,
html body #tsi-shared-header *,
html body #tsi-shared-header *::before,
html body #tsi-shared-header *::after { box-sizing: border-box !important; }

html body #tsi-shared-header .container.header-inner {
  position: relative !important;
  float: none !important;
  clear: both !important;
  margin: 0 auto !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html body #tsi-shared-header .brand-block {
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  background: transparent !important;
  border: 0 !important;
}
html body #tsi-shared-header .logo {
  display: block !important;
  flex: 0 0 auto !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
}
html body #tsi-shared-header .logo img {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
html body #tsi-shared-header .header-tagline {
  min-width: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 3px !important;
  background: transparent !important;
  border-top: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  border-left: 2px solid #ef6c00 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: "Arial Narrow", "Helvetica Neue Condensed", "Roboto Condensed", Arial, Helvetica, sans-serif !important;
  font-style: normal !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}
html body #tsi-shared-header .header-tagline-top,
html body #tsi-shared-header .header-tagline-bottom {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: inherit !important;
  font-style: normal !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}
html body #tsi-shared-header .header-tagline-top {
  color: #d8d8d8 !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: .015em !important;
}
html body #tsi-shared-header .header-tagline-bottom {
  color: #ff6a00 !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: .01em !important;
}

/* Full reset of every old nav variant, including former special blog/showcase classes. */
html body #tsi-shared-header .nav {
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
html body #tsi-shared-header .nav > a,
html body #tsi-shared-header .nav > a.active,
html body #tsi-shared-header .nav > a.blog-feature,
html body #tsi-shared-header .nav > a.showcase-feature,
html body #tsi-shared-header .nav > a[href="/for-contractors.html"],
html body #tsi-shared-header .nav > a:hover,
html body #tsi-shared-header .nav > a:focus,
html body #tsi-shared-header .nav > a:focus-visible {
  position: relative !important;
  float: none !important;
  flex-shrink: 0 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #f2f2f2 !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline-offset: 2px !important;
  font-family: "Arial Narrow", "Helvetica Neue Condensed", "Roboto Condensed", Arial, Helvetica, sans-serif !important;
  font-style: normal !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: .01em !important;
  text-align: center !important;
  text-indent: 0 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  text-shadow: none !important;
  white-space: nowrap !important;
  transform: none !important;
  transition: color .16s ease !important;
}
html body #tsi-shared-header .nav > a::before,
html body #tsi-shared-header .nav > a.blog-feature::before,
html body #tsi-shared-header .nav > a.showcase-feature::before {
  display: none !important;
  content: none !important;
}
html body #tsi-shared-header .nav > a::after {
  content: "" !important;
  position: absolute !important;
  left: 3px !important;
  right: 3px !important;
  width: auto !important;
  height: 2px !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  background: #ff6a00 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: scaleX(.30) !important;
  transform-origin: center !important;
  transition: opacity .16s ease, transform .16s ease !important;
}
html body #tsi-shared-header .nav > a.active,
html body #tsi-shared-header .nav > a:hover,
html body #tsi-shared-header .nav > a:focus-visible {
  color: #ff6a00 !important;
  background: transparent !important;
}
html body #tsi-shared-header .nav > a.active::after,
html body #tsi-shared-header .nav > a:hover::after,
html body #tsi-shared-header .nav > a:focus-visible::after {
  opacity: 1 !important;
  transform: scaleX(1) !important;
}

/* DESKTOP / LAPTOP - exact one-line banner. */
@media (min-width: 1025px) {
  html body #tsi-shared-header .container.header-inner {
    width: min(1580px, calc(100% - 24px)) !important;
    max-width: 1580px !important;
    height: 90px !important;
    min-height: 90px !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: clamp(292px, 26.5vw, 420px) minmax(0, 1fr) !important;
    grid-template-rows: 90px !important;
    grid-template-areas: "brand nav" !important;
    align-items: center !important;
    column-gap: clamp(10px, 1.25vw, 22px) !important;
  }
  html body #tsi-shared-header .brand-block {
    grid-area: brand !important;
    width: 100% !important;
    height: 90px !important;
  }
  html body #tsi-shared-header .logo {
    width: clamp(112px, 9.6vw, 154px) !important;
    max-width: 154px !important;
  }
  html body #tsi-shared-header .header-tagline {
    margin-left: clamp(12px, 1.4vw, 22px) !important;
    padding: 3px 0 3px clamp(12px, 1.4vw, 22px) !important;
  }
  html body #tsi-shared-header .header-tagline-top,
  html body #tsi-shared-header .header-tagline-bottom {
    font-size: clamp(9px, .93vw, 15px) !important;
  }
  html body #tsi-shared-header .nav {
    grid-area: nav !important;
    width: 100% !important;
    height: 90px !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: space-between !important;
    gap: clamp(1px, .45vw, 8px) !important;
  }
  html body #tsi-shared-header .nav > a,
  html body #tsi-shared-header .nav > a.active,
  html body #tsi-shared-header .nav > a.blog-feature,
  html body #tsi-shared-header .nav > a.showcase-feature,
  html body #tsi-shared-header .nav > a[href="/for-contractors.html"],
  html body #tsi-shared-header .nav > a:hover,
  html body #tsi-shared-header .nav > a:focus-visible {
    flex: 0 0 auto !important;
    height: 90px !important;
    min-height: 90px !important;
    padding: 2px clamp(2px, .34vw, 6px) 0 !important;
    font-size: clamp(8px, .69vw, 11.4px) !important;
  }
  html body #tsi-shared-header .nav > a::after { bottom: 13px !important; }
}

/* Wide desktop keeps the proportions in the approved preview. */
@media (min-width: 1440px) {
  html body #tsi-shared-header .container.header-inner {
    grid-template-columns: 420px minmax(0, 1fr) !important;
  }
  html body #tsi-shared-header .logo { width: 154px !important; }
  html body #tsi-shared-header .header-tagline-top,
  html body #tsi-shared-header .header-tagline-bottom { font-size: 15px !important; }
  html body #tsi-shared-header .nav > a,
  html body #tsi-shared-header .nav > a.active,
  html body #tsi-shared-header .nav > a:hover,
  html body #tsi-shared-header .nav > a:focus-visible { font-size: 11.4px !important; }
}

/* TABLET - identical typography/colours sitewide, arranged 3 x 3 so labels never collide. */
@media (min-width: 701px) and (max-width: 1024px) {
  html body #tsi-shared-header { position: relative !important; }
  html body #tsi-shared-header .container.header-inner {
    width: min(920px, calc(100% - 28px)) !important;
    max-width: 920px !important;
    padding: 13px 0 15px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 11px !important;
  }
  html body #tsi-shared-header .brand-block { justify-content: center !important; }
  html body #tsi-shared-header .logo { width: 146px !important; }
  html body #tsi-shared-header .header-tagline { margin-left: 18px !important; padding: 3px 0 3px 18px !important; }
  html body #tsi-shared-header .header-tagline-top,
  html body #tsi-shared-header .header-tagline-bottom { font-size: 14px !important; }
  html body #tsi-shared-header .nav {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0 14px !important;
  }
  html body #tsi-shared-header .nav > a,
  html body #tsi-shared-header .nav > a.active,
  html body #tsi-shared-header .nav > a:hover,
  html body #tsi-shared-header .nav > a:focus-visible {
    width: 100% !important;
    min-height: 44px !important;
    padding: 11px 5px !important;
    font-size: 11.5px !important;
    color: #f2f2f2 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
  }
  html body #tsi-shared-header .nav > a.active,
  html body #tsi-shared-header .nav > a:hover,
  html body #tsi-shared-header .nav > a:focus-visible { color: #ff6a00 !important; }
  html body #tsi-shared-header .nav > a::after { bottom: 5px !important; }
}

/* MOBILE - preserve the previously requested single-column mobile navigation,
   but use the exact same canonical header on every page. */
@media (max-width: 700px) {
  html body #tsi-shared-header { position: relative !important; }
  html body #tsi-shared-header .container.header-inner {
    width: calc(100% - 24px) !important;
    max-width: 430px !important;
    padding: 13px 0 17px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
  }
  html body #tsi-shared-header .brand-block {
    width: 100% !important;
    justify-content: center !important;
  }
  html body #tsi-shared-header .logo { width: 142px !important; }
  html body #tsi-shared-header .header-tagline {
    margin-left: 16px !important;
    padding: 3px 0 3px 16px !important;
  }
  html body #tsi-shared-header .header-tagline-top,
  html body #tsi-shared-header .header-tagline-bottom {
    font-size: clamp(11px, 3.25vw, 14px) !important;
  }
  html body #tsi-shared-header .nav {
    width: 100% !important;
    max-width: 360px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  html body #tsi-shared-header .nav > a,
  html body #tsi-shared-header .nav > a.active,
  html body #tsi-shared-header .nav > a.blog-feature,
  html body #tsi-shared-header .nav > a.showcase-feature,
  html body #tsi-shared-header .nav > a[href="/for-contractors.html"],
  html body #tsi-shared-header .nav > a:hover,
  html body #tsi-shared-header .nav > a:focus-visible {
    width: 100% !important;
    min-height: 42px !important;
    padding: 10px 12px !important;
    color: #fff !important;
    background: rgba(255,255,255,.035) !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    border-radius: 999px !important;
    font-size: 12px !important;
  }
  html body #tsi-shared-header .nav > a.active {
    color: #111 !important;
    background: #ff6a00 !important;
    border-color: #ff6a00 !important;
    box-shadow: 0 9px 22px rgba(255,106,0,.22) !important;
  }
  html body #tsi-shared-header .nav > a:not(.active):hover,
  html body #tsi-shared-header .nav > a:not(.active):focus-visible {
    color: #ff6a00 !important;
    background: rgba(255,106,0,.09) !important;
    border-color: rgba(255,106,0,.55) !important;
  }
  html body #tsi-shared-header .nav > a::after { display: none !important; content: none !important; }
}

/* Desktop sticky navigation. The site's legacy horizontal overflow rule used
   `hidden` on body, which creates a scrolling ancestor and traps a sticky
   header at the top of that ancestor. `clip` keeps the horizontal clipping
   without creating a scrolling ancestor. Tablet/mobile retain their layout. */
@media (min-width: 1025px) {
  html:root,
  html body {
    overflow-x: clip !important;
  }

  html body header#tsi-shared-header.tsi-site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 2147483000 !important;
  }
}
