/*
 * ATEC v1.3.8 — original full-height desktop navigation treatment.
 * Apply after all earlier template styles; does not target the footer or
 * mobile drawer. The homepage's 150px transparent hero overlay is preserved:
 * its interactive navigation row is 70px tall, not 150px tall.
 */
@media (min-width: 951px) {
  body.atec-template #sp-header.atec-site-header {
    --atec-nav-row-height: 70px;
  }
  body.atec-template #sp-header.atec-site-header.is-scrolled {
    --atec-nav-row-height: var(--atec-sticky-header-height, 70px);
  }

  /* The entire navigation chain must stretch. Previously the UL/LI were
     centered inside the header and active links only colored their own line. */
  body.atec-template #sp-header .atec-header-inner {
    height: var(--atec-nav-row-height) !important;
    min-height: var(--atec-nav-row-height) !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
  }
  body.atec-template #sp-header .atec-header-right {
    display: flex !important;
    align-items: stretch !important;
    align-self: stretch !important;
    height: var(--atec-nav-row-height) !important;
    min-height: 0 !important;
    margin-block: 0 !important;
    padding-block: 0 !important;
  }
  body.atec-template #sp-header .atec-desktop-nav {
    display: flex !important;
    align-items: stretch !important;
    align-self: stretch !important;
    height: 100% !important;
    min-height: 0 !important;
    margin-block: 0 !important;
    padding-block: 0 !important;
  }
  /* Native ATEC navigation and Joomla mod_menu navigation are both supported. */
  body.atec-template #sp-header .atec-desktop-nav > .moduletable,
  body.atec-template #sp-header .atec-desktop-nav > .mod-menu {
    height: 100% !important;
    display: flex !important;
    align-items: stretch !important;
    margin-block: 0 !important;
    padding-block: 0 !important;
  }
  body.atec-template #sp-header .atec-desktop-nav > ul.atec-nav-list,
  body.atec-template #sp-header .atec-desktop-nav ul.mod-menu:not(.atec-submenu),
  body.atec-template #sp-header .atec-desktop-nav > .moduletable > ul {
    display: flex !important;
    align-items: stretch !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding-block: 0 !important;
  }
  body.atec-template #sp-header .atec-desktop-nav > .atec-nav-list > .atec-nav-item,
  body.atec-template #sp-header .atec-desktop-nav ul.mod-menu > li {
    display: flex !important;
    align-items: stretch !important;
    height: 100% !important;
    min-height: 0 !important;
    margin-block: 0 !important;
    padding-block: 0 !important;
    position: relative;
  }
  body.atec-template #sp-header .atec-desktop-nav > .atec-nav-list > .atec-nav-item > a,
  body.atec-template #sp-header .atec-desktop-nav ul.mod-menu > li > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: stretch !important;
    height: 100% !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
    margin-block: 0 !important;
    padding-block: 0 !important;
    line-height: 1.35 !important;
    text-align: center;
    text-decoration: none !important;
    transition: background-color .18s ease, color .18s ease !important;
  }
  /* One solid benchmark-blue rectangle covering the complete header row. */
  body.atec-template #sp-header .atec-desktop-nav > .atec-nav-list > .atec-nav-item.is-active > a,
  body.atec-template #sp-header .atec-desktop-nav > .atec-nav-list > .atec-nav-item:hover > a,
  body.atec-template #sp-header .atec-desktop-nav > .atec-nav-list > .atec-nav-item > a:focus-visible,
  body.atec-template #sp-header .atec-desktop-nav ul.mod-menu > li.active > a,
  body.atec-template #sp-header .atec-desktop-nav ul.mod-menu > li.current > a,
  body.atec-template #sp-header .atec-desktop-nav ul.mod-menu > li > a:hover,
  body.atec-template #sp-header .atec-desktop-nav ul.mod-menu > li > a:focus-visible {
    background: #008ec3 !important;
    color: #fff !important;
    text-shadow: none !important;
  }
  /* Preserve submenu positioning/height independently from top-level items. */
  body.atec-template #sp-header .atec-desktop-nav .atec-submenu,
  body.atec-template #sp-header .atec-desktop-nav ul.mod-menu > li > ul {
    height: auto !important;
    min-height: 0 !important;
  }
}
