/* wp-md generated nav styles */
.site-nav {
  font: inherit;
}
.site-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-nav > ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.site-nav li {
  position: relative;
}
.site-nav a {
  color: inherit;
  text-decoration: none;
  padding: 0.25rem 0;
}
.site-nav a:hover,
.site-nav a:focus {
  color: black;
}
.site-nav .nav-toggle {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0.1em 0.4em;
  font: inherit;
  color: inherit;
  line-height: 1;
}
.site-nav li.has-children[aria-expanded="true"] > a > div > svg {
  display: inline-block;
  transform: rotate(90deg);
}
/* nested submenus collapse by default once /nav.js loads.
 * Without JS they stay open (progressive enhancement). */
.site-nav .has-children > ul {
  margin-left: 20px;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}
.site-nav.js-ready .has-children > ul {
  display: none;
}
.site-nav.js-ready .has-children.open > ul {
  display: block;
}
.site-nav .main-nav,
.main-nav {
  padding: 0.5rem 0;
}
.footer-nav {
  margin-bottom: 0.5rem;
}
/* Active item + ancestors. .current is set at build time on the LI whose
 * link matches the current page (and on every ancestor LI on the path
 * to it). aria-current="page" is also emitted on the <a> for SR users. */
.site-nav .current:not(.has-children) > a {
  font-weight: bold;
  text-decoration: none;
}
.site-nav {
  padding: 10px 10px 30px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* ── Mobile nav: select dropdown (≤ 1180px) ─────────────────────────────── */

/* Hide the select on large screens; show the tree. */
.nav-select-wrapper {
  display: none;
}
.site-nav ul.nav-tree {
  display: block;
}

@media screen and (max-width: 1180px) {
  /* Hide the full tree; show the compact select instead. */
  .site-nav ul.nav-tree {
    display: none;
  }

  .nav-select-wrapper {
    display: block;
    margin: 0.5rem 0;
  }

  .nav-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font: inherit;
    font-size: 0.95rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    background-color: #fff;
    color: inherit;
    cursor: pointer;
    appearance: auto;
  }

  .nav-select:focus {
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
  }

  .site-nav {
    padding: 0;
    border-bottom: unset;
  }
}
