/* =========================================================================
   One Team Conference: navigation styles
   -------------------------------------------------------------------------
   Styles for the event navigation bar built by otcnav.js: the event name
   followed by the page links, sitting below the Autodesk top bar.
   Below 992px the links fold into a menu panel under the bar.
   ========================================================================= */

/* ------- Base ------- */
otc-nav {
  display: block;
  position: relative;
  z-index: 999;
  font-family: "Artifakt Element", "ArtifaktElement", Arial, sans-serif;
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
  /* Keep the platform's link colours from tinting nav links */
  --rf-comp-link-color: #ffffff;
  --rf-comp-link-hover-color: #ffffff;
  --rf-comp-link-visited-color: #ffffff;
}

otc-nav *,
otc-nav *::before,
otc-nav *::after {
  box-sizing: border-box;
}

otc-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

otc-nav button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  margin: 0;
  cursor: pointer;
}

otc-nav .otc-nav__inner a,
otc-nav .otc-nav__inner a:hover,
otc-nav .otc-nav__inner a:focus,
otc-nav .otc-nav__inner a:visited {
  color: #ffffff;
  text-decoration: none;
}

otc-nav a:focus-visible,
otc-nav button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: -2px;
}

/* ------- Bar: event name and page links ------- */
otc-nav .otc-nav__bar {
  height: 40px;
  background: #0a0a0a;
}

/* Same content width as the rest of the page, so the event name lines up
   with the Autodesk logo above it */
otc-nav .otc-nav__inner {
  display: flex;
  align-items: center;
  height: 100%;
  width: 95%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

otc-nav .otc-nav__brand {
  flex: none;
  margin-right: 15px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

otc-nav .otc-nav__list {
  display: flex;
  height: 100%;
}

otc-nav .otc-nav__item {
  position: relative;
  display: flex;
  padding: 0 12px;
}

otc-nav .otc-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  padding: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  white-space: nowrap;
}

/* White underline along the bottom of the bar, the width of the link text,
   shown on hover and on the page you are on */
otc-nav .otc-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #ffffff;
  opacity: 0;
}

otc-nav .otc-nav__link:hover::after,
otc-nav .otc-nav__link.is-current::after,
otc-nav .otc-nav__menu-toggle[aria-expanded="true"]::after {
  opacity: 1;
}

/* ------- Drop-down menus ------- */
otc-nav .otc-nav__chevron {
  transition: transform 0.15s ease;
}

otc-nav [aria-expanded="true"] .otc-nav__chevron {
  transform: rotate(180deg);
}

otc-nav .otc-nav__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: 8px 0;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

otc-nav [aria-expanded="true"] + .otc-nav__menu {
  display: block;
}

otc-nav .otc-nav__menu-link {
  display: block;
  padding: 8px 16px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

otc-nav .otc-nav__menu-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

otc-nav .otc-nav__menu-link.is-current {
  box-shadow: inset 2px 0 0 #ffffff;
}

/* ------- Menu button (small screens only) ------- */
otc-nav .otc-nav__burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  margin-right: -8px;
}

otc-nav .otc-nav__burger svg + svg,
otc-nav .otc-nav__burger[aria-expanded="true"] svg:first-child {
  display: none;
}

otc-nav .otc-nav__burger[aria-expanded="true"] svg + svg {
  display: block;
}

/* ------- Buttons at the end of the bar (e.g. Register now) ------- */
otc-nav .otc-nav__actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

otc-nav .otc-nav__inner a.otc-nav__cta,
otc-nav .otc-nav__inner a.otc-nav__cta:visited,
otc-nav .otc-nav__inner a.otc-nav__cta:focus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 16px;
  background: #FFFF00;
  border: 1px solid #FFFF00;
  border-radius: 8px;
  font-size: 14px;
  line-height: 18px;
  font-weight: 700;
  color: #000000;
  white-space: nowrap;
}

otc-nav .otc-nav__inner a.otc-nav__cta:hover {
  background: #E6E600;
  color: #000000;
}

/* Copy of the buttons inside the menu list, used on small screens only */
otc-nav .otc-nav__item--action {
  display: none;
}

/* ------- Small screens ------- */
@media (max-width: 991px) {
  otc-nav .otc-nav__inner {
    width: 100%;
  }

  otc-nav .otc-nav__burger {
    display: inline-flex;
  }

  otc-nav .otc-nav__list {
    display: none;
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    flex-direction: column;
    height: auto;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    margin-left: 0;
    padding: 8px 0 16px;
    background: #0a0a0a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  otc-nav.is-open .otc-nav__list {
    display: flex;
  }

  otc-nav .otc-nav__item {
    flex-direction: column;
    padding: 0;
  }

  otc-nav .otc-nav__link {
    width: 100%;
    height: auto;
    padding: 10px 20px;
    justify-content: space-between;
  }

  /* In the menu panel the underline becomes a bar down the left edge */
  otc-nav .otc-nav__link::after {
    top: 0;
    right: auto;
    width: 2px;
    height: auto;
  }

  otc-nav .otc-nav__link:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  otc-nav .otc-nav__item--menu .otc-nav__menu {
    position: static;
    min-width: 0;
    padding: 0 0 8px;
    border: 0;
    border-radius: 0;
  }

  otc-nav .otc-nav__item--menu .otc-nav__menu-link {
    padding-left: 36px;
  }
}

/* ------- Small screens: buttons move into the menu panel ------- */
@media (max-width: 991px) {
  otc-nav .otc-nav__actions {
    display: none;
  }

  otc-nav .otc-nav__item--action {
    display: flex;
    padding: 12px 20px 0;
  }

  otc-nav .otc-nav__inner a.otc-nav__cta {
    width: 100%;
    height: 40px;
  }
}

