/* ==========================================================================
   Section navigation — Top button + content-menu dropdown
   Everything the plugin renders is namespaced under ._snav, so these styles
   cannot leak onto any other element on the page (e.g. the site header's own
   nav menus) and are less likely to be affected by global CSS.

   NOTE: Bootstrap-driven class names (dropdown, dropdown-toggle,
   dropdown-menu, and the .show open-state) are kept as-is so the page's
   Bootstrap can still open/close the menu — they are simply scoped under
   ._snav here. The plugin also renames its custom icon spans to
   ._snav-hide / ._snav-show to avoid clashing with global .hide/.show utils.
   ========================================================================== */

/* --- Toggle open/closed state -------------------------------------------- */
._snav .dropdown-toggle::after {
  display: none !important;
}

._snav.dropdown.show ._snav-hide,
._snav.dropdown ._snav-show {
  display: none;
}

._snav.dropdown.show ._snav-show,
._snav.dropdown ._snav-hide {
  display: block;
}

/* --- Dropdown toggle button ---------------------------------------------- */
._snav.dropdown .dropdown-toggle {
  width: auto;
  height: 40px;
  border-radius: 4px;
  border: solid 1px #979797;
  background-color: #ffffff;
  text-align: unset;
  text-transform: uppercase;
}

._snav.dropdown.show .dropdown-toggle {
  width: 50px;
  border-radius: 4px 4px 0 0;
  border-bottom: none;
}

._snav.dropdown.show .btn.focus,
._snav .btn:focus {
  box-shadow: unset;
}

/* --- Top button ----------------------------------------------------------- */
._snav button#top {
  width: 83px;
  height: 40px;
  margin: 0 10px;
  border-radius: 4px;
  border: solid 1px #979797;
  background-color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* --- Dropdown menu panel -------------------------------------------------- */
._snav .dropdown-menu.show {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate3d(-305px, 36px, 0px) !important;
  will-change: transform;
  width: 355px;
  border: solid 1px #979797;
  border-top: none;
  border-radius: 4px 0 4px 4px;
  background-color: #ffffff;
}

/* --- Menu items ----------------------------------------------------------- */
._snav .dropdown-menu li {
  padding: 10px 30px;
  font-family: "Roboto", sans-serif;
  font-size: 18px;
  line-height: 24px;
  color: #000;
  cursor: pointer;
}

._snav .dropdown-menu li a {
  display: inline-block;
  width: 100%;
}

/* Divider above the first item. */
._snav .dropdown-menu li:first-child:before {
  content: "";
  position: absolute;
  top: 0;
  width: 86%;
  margin-left: -8%;
  border-bottom: 1px solid #979797;
}

._snav .dropdown-menu li.learnMore a {
  color: #fff !important;
}

/* --- Labels & links ------------------------------------------------------- */
._snav.dropdown label,
._snav .btn-top label {
  cursor: pointer;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 18.75px;
  color: #000;
  margin-bottom: 0 !important;
}

._snav .btn-top label {
  text-transform: uppercase;
}

._snav a {
  color: #000;
}

/* --- Icon positioning ----------------------------------------------------- */
._snav.dropdown svg {
  transform: translate3d(4px, 3px, 0px) !important;
}

._snav.dropdown ._snav-hide svg {
  float: right;
}

._snav .btn-top svg {
  transform: translate3d(5px, 0px, 0px) !important;
}

/* Optional font-awesome icon fallbacks (only used if the markup swaps the
   inline SVGs for these spans). */
._snav span.nav-icon-close::before {
  content: "\f00d";
  font-family: "font-awesome";
  font-size: 24px;
  line-height: 16px;
  text-align: center;
}

._snav span.nav-icon-hamburger::before {
  content: "\f0c9";
  font-family: "font-awesome";
  font-size: 18px;
  float: right;
}

/* --- Focus reset ---------------------------------------------------------- */
._snav .btn:focus,
._snav .btn.focus {
  outline: none;
  box-shadow: none;
}

/* --- Layout --------------------------------------------------------------- */
._snav.pull-right,
._snav .pull-right {
  float: right;
  margin-top: 5px;
}

._snav.dropdown {
  margin: 10px 0;
  text-align: left;
}

a._snav {
  margin-left: auto;
}

/* Smooth in-page scrolling for the jump links (page-level; required for the
   instant scrollTop jump to animate). */
html {
  scroll-behavior: smooth;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media only screen and (max-width: 767.98px) {
  ._snav.dropdown .dropdown-toggle,
  ._snav .btn-top {
    width: 50px;
    padding-bottom: 11px;
  }

  ._snav button#top {
    width: 50px;
  }

  ._snav .dropdown-menu.show {
    transform: translate3d(-241px, 36px, 0px) !important;
    width: 291px;
  }

  ._snav .btn-top svg {
    transform: translate3d(0px, 2px, 0px) !important;
  }

  /* Icon-only on small screens — hide the text labels. */
  ._snav.dropdown label,
  ._snav .btn-top label {
    display: none;
  }

  ._snav .dropdown-menu li {
    font-size: 14.4px;
    line-height: normal;
  }

  ._snav .dropdown-menu li:first-child:before {
    width: 83%;
    margin-left: -10%;
  }

}
