/*******************************
 Mobile Nav
 ******************************/

body:has(dialog.mobile-nav[open]) {
  overflow: hidden;
}

.mobile-nav {
  position: fixed;
  background-color: transparent;

  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  z-index: 2;

  transition: overlay 250ms allow-discrete;
  animation: close 250ms forwards;
}

.mobile-nav .svg{
    filter: brightness(0) invert(1);
}

.mobile-nav::backdrop {
  background-color: transparent;
  opacity: 0;
}

.mobile-nav[open] {
  display: flex;
  flex-direction: column;

  background-color: rgb(var(--light-container-bold));
  color: rgb(var(--light-text-inverse));

  animation: open 250ms forwards;
}

.mobile-nav[open] a,
.mobile-nav[open] a:visited {
  color: rgb(var(--light-text-inverse));
}

.mobile-nav[open] a:hover {
  color: rgb(var(--brand-azure-light));
}

.mobile-nav[open] header {
  background-color: rgb(var(--light-container-bold));
}

@keyframes open {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes close {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.mobile-nav-header {
  padding-block: 0.6rem;
}

.mobile-nav-header a,
.mobile-nav-header a:visited {
  color: rgb(var(--light-text-inverse));
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.mobile-nav-header button {
  height: 100%;
  padding: 1rem;
  outline: none;
}

.mobile-nav-header button:hover {
  color: rgb(var(--brand-azure-light));
}

.mobile-nav-header button .svg {
  width: 1.5rem;
  height: 1.5rem;
}

.mobile-nav-header button:focus-visible .svg {
  outline: auto;
  outline-offset: 0.5rem;
}

.mobile-nav-menu {
  flex: 1;
  width: 100%;
  overflow: hidden;
  overflow-y: auto;
  padding-block-end: 2.5rem;
}

.mobile-nav-menu > ul {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-block-start: 2rem;
}

.mobile-nav-menu .menu-action {
  gap: 1.5rem;
}

.mobile-nav-menu .menu-action-icon .svg {
  width: 2rem;
  height: 2rem;
}

.mobile-nav-menu_details summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-nav-menu_details summary:hover {
  color: rgb(var(--brand-azure-light));
}

.mobile-nav-menu_details summary::marker {
  content: "";
}

.mobile-nav-menu_details summary::-webkit-details-marker {
  display: none;
}

.mobile-nav-menu_details_cta {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.mobile-nav-menu_details_cta .svg {
  width: 2rem;
  height: 2rem;
}

.mobile-nav-menu_details .mobile-nav-menu_details_cta .svg {
  transform-origin: center;
  transform: rotate(0deg);

  transition: transform 250ms ease-in-out;
}

.mobile-nav-menu_details:open .mobile-nav-menu_details_cta .svg {
  transform: rotate(90deg);
}

.mobile-nav-menu .nav-unfurl-menu {
  display: flex;
  flex-direction: column;
}

.mobile-nav-menu .nav-unfurl-menu .svg {
  width: 2.5rem;
  height: 2.5rem;
}

.mobile-nav-menu a.nav-unfurl-menu--item,
.mobile-nav-menu a.nav-unfurl-menu--item:visited {
  color: rgb(var(--light-text-inverse));
}

.mobile-nav-menu a.nav-unfurl-menu--item:hover,
.mobile-nav-menu a.nav-unfurl-menu--item:active {
  color: rgb(var(--brand-azure-light));
}

.mobile-nav-footer {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
}

.mobile-nav-footer .menu-action {
  padding-block: 1.5rem;
}

.mobile-nav-footer .menu-action:hover {
  color: rgb(var(--brand-azure-light));
}

.mobile-nav-menu .menu-action:hover {
  color: rgb(var(--brand-azure-light));
}

@media (max-width: 60rem) {
  .mobile-nav-header {
    padding-block: 1.5rem;
    padding-inline: 2rem 0.5rem;
  }
}

@media (max-width: 32rem) {
  .mobile-nav-header {
    padding-block: 1.5rem;
    padding-inline: 1.5rem 0.5rem;
  }
}