/* TI-inspired industrial full-width mega menu & single-row primary nav (loaded after site-feedback.css). */
.industrial-header {
  z-index: 40;
  box-shadow: 0 1px 0 rgba(23, 32, 39, 0.06);
}

.primary-bar {
  position: relative;
}

@media (min-width: 971px) {
  .industrial-header .header-tools {
    min-height: 78px;
    padding-block: 10px;
  }

  .industrial-header .site-nav {
    --nav-padding: clamp(11px, 1.55vw, 22px);
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    min-height: 46px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.01em;
  }

  .industrial-header .site-nav > a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 12px var(--nav-padding);
    white-space: nowrap;
    flex-shrink: 0;
  }

  .industrial-header .site-nav > a:first-child {
    margin-left: calc(-1 * var(--nav-padding));
  }

  .industrial-header .site-nav > a[aria-current]::after {
    left: var(--nav-padding);
    right: var(--nav-padding);
    height: 2px;
  }
}

.industrial-header .site-nav .nav-caret {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .78;
  flex-shrink: 0;
  transition: transform 160ms ease, opacity 160ms ease;
}

.industrial-header .site-nav > a.is-mega-open {
  background: #ffffff;
  color: var(--red);
  font-weight: 600;
  box-shadow: inset 0 2px 0 var(--red);
}

.industrial-header .site-nav > a.is-mega-open::after {
  display: none;
}

.industrial-header .site-nav > a.is-mega-open .nav-caret {
  transform: rotate(180deg);
  opacity: 1;
}

.ismc-mega-backdrop {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(14, 22, 30, 0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.ismc-mega-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.ismc-mega-drawer {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 45;
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 50%, #f5f6f8 50%, #f5f6f8 100%);
  border-top: 1px solid #e4e8ec;
  border-bottom: 1px solid #d5dce2;
  box-shadow: 0 26px 56px rgba(14, 22, 30, 0.16);
  color: var(--ink);
}

.ismc-mega-drawer[hidden] {
  display: none;
}

.ismc-mega-inner {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  min-height: 344px;
  max-height: min(72vh, 580px);
  padding-inline: 0;
}

.ismc-mega-rail {
  background: #ffffff;
  border-right: 1px solid #e3e8ec;
  padding: 18px 0 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.ismc-mega-rail-group {
  display: flex;
  flex-direction: column;
}

.ismc-mega-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 20px 9px 22px;
  border: 0;
  border-left: 3px solid transparent;
  background: transparent;
  color: #242e35;
  font: 500 0.78rem/1.45 inherit;
  text-align: left;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}

.ismc-mega-cat:hover,
.ismc-mega-cat:focus-visible {
  background: #f7f9fa;
  color: var(--red);
  outline: none;
}

.ismc-mega-cat.is-active {
  background: #fafbfc;
  color: var(--red);
  font-weight: 650;
  border-left-color: var(--red);
}

.ismc-mega-cat-chevron {
  font-size: 0.95rem;
  line-height: 1;
  color: #8c969e;
  flex-shrink: 0;
}

.ismc-mega-cat.is-active .ismc-mega-cat-chevron,
.ismc-mega-cat:hover .ismc-mega-cat-chevron {
  color: var(--red);
}

.ismc-mega-rail-sep {
  height: 1px;
  background: #e7ebee;
  margin: 12px 20px;
}

.ismc-mega-rail-links {
  display: flex;
  flex-direction: column;
  padding: 0 10px;
  gap: 2px;
}

.ismc-mega-rail-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 3px;
  color: #4a5760;
  font-size: 0.72rem;
  font-weight: 500;
  transition: background 120ms ease, color 120ms ease;
}

.ismc-mega-rail-link:hover {
  background: #f5f7f8;
  color: var(--red);
}

.ismc-mega-stage {
  background: #f5f6f8;
  padding: 22px 30px 28px;
  overflow-y: auto;
  min-width: 0;
}

.ismc-mega-stage-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 18px;
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid #dde3e8;
}

.ismc-mega-stage-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: -.01em;
}

.ismc-mega-stage-title:hover {
  color: var(--red-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ismc-mega-stage-desc {
  margin: 0;
  font-size: 0.7rem;
  color: #5c6870;
}

.ismc-mega-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 22px;
  align-items: start;
}

.ismc-mega-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ismc-mega-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 10px;
  margin: -8px -10px;
  border-radius: 4px;
  color: var(--ink);
  transition: background 120ms ease;
  min-width: 0;
}

.ismc-mega-item:hover {
  background: #ffffff;
}

.ismc-mega-item:hover .ismc-mega-item-title {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ismc-mega-item-icon {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: #7b8790;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ismc-mega-item:hover .ismc-mega-item-icon {
  color: var(--red);
}

.ismc-mega-item-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ismc-mega-item-title {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  color: #1c252c;
  overflow-wrap: anywhere;
}

.ismc-mega-item-sub {
  font-size: 0.68rem;
  line-height: 1.45;
  color: #5c6870;
  overflow-wrap: anywhere;
}

.ismc-mega-item-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  font-size: 0.62rem;
  color: #6b767f;
}

.ismc-mega-pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 3px;
  background: #e8ecef;
  color: #3d4a53;
  font-weight: 600;
}

.ismc-mega-pill--red {
  background: #fae8eb;
  color: var(--red);
}

.ismc-mega-empty {
  padding: 18px 20px;
  border: 1px dashed #cfd7dd;
  border-radius: 4px;
  background: #ffffff;
  color: #56636c;
  font-size: 0.75rem;
  line-height: 1.65;
}

.ismc-mega-empty p {
  margin: 0 0 8px;
}

.ismc-mega-empty a {
  color: var(--red);
  font-weight: 600;
}

.ismc-mega-loading {
  padding: 24px 0;
  color: #63707a;
  font-size: 0.75rem;
}

@media (min-width: 971px) and (max-width: 1180px) {
  .industrial-header .site-nav {
    --nav-padding: 11px;
    font-size: 0.74rem;
  }
  .ismc-mega-inner {
    grid-template-columns: 232px minmax(0, 1fr);
  }
  .ismc-mega-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 970px) {
  .industrial-header .site-nav .nav-caret,
  .ismc-mega-drawer,
  .ismc-mega-backdrop {
    display: none !important;
  }
  .industrial-header .site-nav > a.is-mega-open {
    background: transparent;
    color: #fff;
    box-shadow: none;
  }
}
