/* mobile-nav-v03.css
   Option D: refined drawer for the mobile menu (Foundation off-canvas #offCanvas).
   Paired with /scripts/mobile-nav-v03.js, which adds the .mnav class and extra markup.
   Rules are scoped to #offCanvas.mnav so they override the existing site styles. */

/* Header menu button */
header button.menu-control.mnav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 88px;
  min-height: 44px;
  padding: 0 14px;
  background: #1f2225;
  color: #ffffff;
  border: 0;
  border-radius: 0;
  font-family: Poppins, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}
header button.menu-control.mnav-btn i,
header button.menu-control.mnav-btn svg { color: #ffffff; font-size: 18px; }
header button.menu-control.mnav-btn:focus-visible { outline: 3px solid #CD0202; outline-offset: 2px; }

/* Drawer */
#offCanvas.mnav {
  width: min(340px, 88vw);
  display: flex;
  flex-direction: column;
  background: #1f2225;
  color: #ffffff;
  border-left: 4px solid #CD0202;
  font-family: Poppins, "Segoe UI", sans-serif;
  overflow: hidden;
  z-index: 1001;
}
#offCanvas.mnav.position-right { transform: translateX(100%); }
#offCanvas.mnav.position-right.is-open { transform: none; }
.js-off-canvas-overlay.is-visible { background: rgba(0, 0, 0, 0.6); opacity: 1; z-index: 1000; }

#offCanvas.mnav hr,
#offCanvas.mnav .mnav-hidden { display: none; }
#offCanvas.mnav ul { margin: 0; padding: 0; list-style: none; }
#offCanvas.mnav a { text-decoration: none; }

/* Top row: section label and close button */
#offCanvas.mnav > ul.menu:first-child { flex: none; }
#offCanvas.mnav .close-menu {
  height: 64px;
  box-sizing: border-box;
  padding: 0 12px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #3a3f44;
  text-align: left;
}
#offCanvas.mnav .mnav-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #c9ccce;
}
#offCanvas.mnav .close-menu a {
  min-height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  border: 1px solid #5a6066;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

/* Scrolling list area */
#offCanvas.mnav .mnav-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Top-level rows */
#offCanvas.mnav ul.main-nav > li {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  border-bottom: 1px solid #3a3f44;
}
#offCanvas.mnav ul.main-nav > li > a {
  flex: 1 1 0;
  min-width: 0;
  min-height: 56px;
  box-sizing: border-box;
  margin: 0;
  padding: 0 20px;
  display: flex;
  align-items: center;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  background: transparent;
}
#offCanvas.mnav ul.main-nav > li > a::after { display: none; }

/* Separate chevron button (Foundation accordion submenu toggle) */
#offCanvas.mnav .submenu-toggle {
  position: static;
  flex: none;
  width: 56px;
  height: auto;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-left: 1px solid #3a3f44;
  color: #ffffff;
  cursor: pointer;
}
#offCanvas.mnav .submenu-toggle::after {
  content: "";
  display: block;
  flex: none;
  width: 10px;
  height: 10px;
  margin: 0 0 4px;
  border: 0;
  border-right: 2.5px solid #ffffff;
  border-bottom: 2.5px solid #ffffff;
  transform: rotate(45deg);
  transition: transform 200ms ease;
}
#offCanvas.mnav .submenu-toggle[aria-expanded="true"]::after { transform: rotate(-135deg); margin: 4px 0 0; }
#offCanvas.mnav .submenu-toggle-text {
  position: absolute !important;
  width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Nested pages */
#offCanvas.mnav ul.main-nav ul {
  flex-basis: 100%;
  margin: 0;
  padding: 4px 0 12px;
  background: #262a2e;
}
#offCanvas.mnav ul.main-nav ul a {
  min-height: 46px;
  box-sizing: border-box;
  padding: 0 20px 0 36px;
  display: flex;
  align-items: center;
  color: #e4e6e8;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  background: transparent;
}

/* Current page and its section */
#offCanvas.mnav ul.main-nav li.mnav-within { background: #2b3035; }
#offCanvas.mnav ul.main-nav li.mnav-current > a {
  box-shadow: inset 4px 0 0 #CD0202;
  font-weight: 600;
  color: #ffffff;
}
#offCanvas.mnav ul.main-nav > li.mnav-current > a { background: #2b3035; }
#offCanvas.mnav ul.main-nav ul li.mnav-current > a { background: #353a40; }

/* Division switch row */
#offCanvas.mnav a.mnav-switch {
  min-height: 56px;
  box-sizing: border-box;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #3a3f44;
  color: #c9ccce;
  font-size: 16px;
}

/* Employee and partner logins group (whole row toggles) */
#offCanvas.mnav ul.mnav-logins > li > a {
  font-size: 16px;
  color: #c9ccce;
  justify-content: space-between;
}
#offCanvas.mnav ul.mnav-logins > li > a::after {
  content: "";
  display: block;
  flex: none;
  position: static;
  width: 9px;
  height: 9px;
  margin: 0 0 4px;
  border: 0;
  border-right: 2.5px solid #c9ccce;
  border-bottom: 2.5px solid #c9ccce;
  transform: rotate(45deg);
}
#offCanvas.mnav ul.mnav-logins > li[aria-expanded="true"] > a::after,
#offCanvas.mnav ul.mnav-logins > li > a[aria-expanded="true"]::after { transform: rotate(-135deg); margin: 4px 0 0; }

/* Contact block pinned to the bottom */
#offCanvas.mnav .mnav-contact {
  flex: none;
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid #3a3f44;
}
#offCanvas.mnav .mnav-contact a.mnav-phone {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
}
#offCanvas.mnav .mnav-contact a.mnav-cta {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #CD0202;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
}

/* Keyboard focus */
#offCanvas.mnav a:focus-visible,
#offCanvas.mnav .submenu-toggle:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: -3px;
}

@media (prefers-reduced-motion: reduce) {
  #offCanvas.mnav .submenu-toggle::after { transition: none; }
}

/* Sub-page back bar and "More in" list (phones and tablets only, same breakpoint as the mobile menu) */
html body nav.mnav-crumb,
main section.mnav-more { display: none; }
@media screen and (max-width: 63.9988em) {
  html body nav.mnav-crumb {
    min-height: 48px;
    box-sizing: border-box;
    padding: 0 16px 0 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f2f3f4;
    border-bottom: 1px solid #e3e5e7;
    font-family: Poppins, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.3;
  }
  html body nav.mnav-crumb a,
  html body nav.mnav-crumb a:link,
  html body nav.mnav-crumb a:visited,
  html body nav.mnav-crumb a:hover {
    flex: none;
    min-height: 44px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #1f2225;
    font-weight: 600;
    text-decoration: none;
  }
  html body nav.mnav-crumb .mnav-crumb-sep { color: #6b7075; }
  html body nav.mnav-crumb .mnav-crumb-here {
    min-width: 0;
    color: #4a4f54;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  main section.mnav-more {
    display: block;
    padding: 28px 20px 32px;
    background: #ffffff;
    color: #1f2225;
    font-family: Poppins, "Segoe UI", sans-serif;
  }
  main section.mnav-more h2 {
    margin: 0 0 4px;
    font-family: Poppins, "Segoe UI", sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
    color: #1f2225;
  }
  main section.mnav-more ul { margin: 0; padding: 0; list-style: none; }
  main section.mnav-more li { margin: 0; padding: 0; }
  main section.mnav-more a,
  main section.mnav-more a:link,
  main section.mnav-more a:visited,
  main section.mnav-more a:hover {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #e3e5e7;
    color: #1f2225;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.3;
    text-decoration: none;
  }
  main section.mnav-more a svg { flex: none; color: #5a5f64; }
  html body nav.mnav-crumb a:focus-visible,
  main section.mnav-more a:focus-visible { outline: 3px solid #CD0202; outline-offset: -3px; }
}
