/* Markets menu — beat #gh-navigation.sotkn-navigation.is-open .gh-navigation-menu .nav a */

/* Mobile drawer: Markets header */
#gh-navigation.sotkn-navigation.is-open .gh-navigation-menu .nav > .sotkn-nav-group {
  list-style: none;
  margin: 0.5rem 0 0.25rem;
  padding: 0;
  width: 100%;
}

#gh-navigation.sotkn-navigation.is-open .gh-navigation-menu .nav > .sotkn-nav-group > .sotkn-nav-group-label {
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 12px 16px !important;
  font-size: 1.8rem !important;
  font-weight: 700 !important;
  line-height: 1.3;
  color: var(--sotkn-ink, #182238);
  background: var(--sotkn-soft-paper, #f5f7fa);
  text-decoration: none;
  border-top: 2px solid var(--sotkn-accent, #1f3f8f);
}

#gh-navigation.sotkn-navigation.is-open .gh-navigation-menu .nav .sotkn-markets-submenu {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  background: var(--sotkn-paper, #fff);
  border: none;
  box-shadow: none;
}

#gh-navigation.sotkn-navigation.is-open .gh-navigation-menu .nav .sotkn-markets-submenu > li {
  border-bottom: 1px solid var(--sotkn-rule, #d8dee9);
  opacity: 1 !important;
  transform: none !important;
}

#gh-navigation.sotkn-navigation.is-open .gh-navigation-menu .nav .sotkn-markets-submenu > li:last-child {
  border-bottom: none;
}

/* Sub-items — must win over is-open .nav a { padding: 12px 0; font-size: 1.8rem } */
#gh-navigation.sotkn-navigation.is-open .gh-navigation-menu .nav .sotkn-markets-submenu a {
  display: flex !important;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  height: auto;
  padding: 12px 16px 12px 40px !important;
  font-size: 1.15rem !important;
  font-weight: 450 !important;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--sotkn-muted, #667085) !important;
  text-decoration: none;
  text-transform: none;
}

#gh-navigation.sotkn-navigation.is-open .gh-navigation-menu .nav .sotkn-markets-submenu a:hover,
#gh-navigation.sotkn-navigation.is-open .gh-navigation-menu .nav .sotkn-markets-submenu a:focus,
#gh-navigation.sotkn-navigation.is-open .gh-navigation-menu .nav .sotkn-markets-submenu a:active {
  background: var(--sotkn-soft-paper, #f5f7fa);
  color: var(--sotkn-accent, #1f3f8f) !important;
  outline: none;
}

#gh-navigation.sotkn-navigation.is-open .gh-navigation-menu .nav .sotkn-markets-submenu a::after {
  display: none !important;
}

/* Desktop desk bar / footer hover panel */
@media (min-width: 768px) {
  .sotkn-nav-has-sub {
    position: relative;
  }

  .sotkn-desk-bar .sotkn-markets-submenu,
  .gh-foot .sotkn-markets-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 11rem;
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    z-index: 50;
    background: var(--sotkn-paper, #fff);
    border: 1px solid var(--sotkn-rule, #d8dee9);
    border-top: 2px solid var(--sotkn-accent, #1f3f8f);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 24px rgba(24, 34, 56, 0.1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .sotkn-desk-bar .sotkn-nav-has-sub:hover > .sotkn-markets-submenu,
  .sotkn-desk-bar .sotkn-nav-has-sub:focus-within > .sotkn-markets-submenu,
  .gh-foot .sotkn-nav-has-sub:hover > .sotkn-markets-submenu,
  .gh-foot .sotkn-nav-has-sub:focus-within > .sotkn-markets-submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .sotkn-desk-bar-nav,
  .sotkn-desk-bar .sotkn-nav-has-sub,
  .gh-foot .sotkn-nav-has-sub {
    position: relative;
  }

  .sotkn-desk-bar .sotkn-markets-submenu > li,
  .gh-foot .sotkn-markets-submenu > li {
    border-bottom: 1px solid var(--sotkn-rule, #d8dee9);
  }

  .sotkn-desk-bar .sotkn-markets-submenu > li:last-child,
  .gh-foot .sotkn-markets-submenu > li:last-child {
    border-bottom: none;
  }

  .sotkn-desk-bar .sotkn-markets-submenu a,
  .gh-foot .sotkn-markets-submenu a {
    display: block;
    padding: 0.7rem 1rem 0.7rem 1.25rem;
    min-height: 44px;
    box-sizing: border-box;
    font-size: 0.95rem !important;
    font-weight: 450 !important;
    color: var(--sotkn-muted, #667085);
    text-decoration: none;
    white-space: nowrap;
  }

  .sotkn-desk-bar .sotkn-markets-submenu a:hover,
  .gh-foot .sotkn-markets-submenu a:hover {
    background: var(--sotkn-soft-paper, #f5f7fa);
    color: var(--sotkn-accent, #1f3f8f);
  }
}

@media (max-width: 767px) {
  .sotkn-desk-bar .sotkn-markets-submenu {
    display: none;
  }
}


/* Homepage focus layers: HBM/CoWoS sit under Semiconductors */
.sotkn-layer-index > .sotkn-layer-child a {
  display: block;
  padding-left: 1.75rem;
  font-size: 0.95em;
  font-weight: 450;
  color: var(--sotkn-muted, #667085);
}
.sotkn-layer-index > .sotkn-layer-child a:hover {
  color: var(--sotkn-accent, #1f3f8f);
}

/* Layers submenu: HBM / CoWoS indented under Semiconductors */
#gh-navigation.sotkn-navigation.is-open .gh-navigation-menu .nav .sotkn-layers-submenu > .sotkn-layer-child a {
  padding-left: 56px !important;
  font-size: 1.05rem !important;
}

@media (min-width: 768px) {
  .sotkn-desk-bar .sotkn-layers-submenu > .sotkn-layer-child a,
  .gh-foot .sotkn-layers-submenu > .sotkn-layer-child a {
    padding-left: 1.75rem;
    font-size: 0.9rem !important;
  }
}
