.mobile-nav .uk-offcanvas-bar {
  box-sizing: border-box;
  width: min(360px, calc(100% - 36px));
  padding: 64px 20px max(24px, env(safe-area-inset-bottom));
  background: #171717;
}

.mobile-nav .uk-offcanvas-close {
  top: 10px;
  right: 10px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  color: #fff;
}

.mobile-nav .mobile-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  border-bottom: 1px solid #393939;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.mobile-nav details[open] > summary::after {
  transform: rotate(225deg);
}

.mobile-nav nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-nav .mobile-categories {
  padding: 4px 0 10px 12px;
}

.mobile-nav .mobile-categories ul {
  padding-left: 12px;
}

.mobile-nav nav li > a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: #eee;
}

.mobile-nav nav .mobile-quick-links {
  margin-top: 16px;
}

.mobile-nav nav .mobile-utility-links {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid #393939;
}

.mobile-nav .mobile-utility-links li > a {
  color: #bbb;
  font-size: 14px;
}

.mobile-nav :is(a, summary, button):focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
}

@media (max-width: 639px) {
  html:has(.tm-navbar) {
    background-color: #000;
  }

  /* Safari extends a viewport-attached header's color into the top inset. */
  .tm-navbar {
    position: sticky;
    top: 0;
    z-index: 980;
  }

  .big-banner .custom-rectnav {
    flex-wrap: nowrap;
    gap: 6px;
    margin: 4px 0;
  }

  .big-banner .custom-rectnav > li {
    flex: 0 1 32px;
    min-width: 0;
    padding-left: 0;
  }

  .big-banner .custom-rectnav > li > a {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    height: 24px;
    border: 0;
    background: none;
  }

  .big-banner .custom-rectnav > li > a::before {
    content: "";
    width: 100%;
    height: 5px;
    background: #ccc;
  }

  .big-banner .custom-rectnav > .uk-active > a::before {
    background: #000;
  }

  .small-banners .uk-background-secondary .uk-card-title {
    font-size: 16px;
    line-height: 1.3;
  }

  h1.title-custom {
    font-size: 26px;
    line-height: 1.2;
  }

  footer.uk-padding-small {
    padding-bottom: 0 !important;
  }

  footer .bottom-links > div {
    width: 100%;
  }

  footer .bottom-links .uk-subnav {
    gap: 0 18px;
    margin: 0;
  }

  footer .bottom-links .uk-subnav > li {
    padding-left: 0;
  }

  footer .bottom-links .uk-subnav-divider > li::before {
    display: none;
  }

  footer .bottom-links .uk-subnav > li > a {
    display: flex;
    align-items: center;
    min-height: 44px;
    color: #ccc;
  }

  footer .bottom-links .uk-subnav > li > a:is(:hover, :focus-visible) {
    color: #fff;
  }

  /* Give Safari a black viewport-attached edge when the footer reaches the toolbar. */
  footer::after {
    content: "";
    display: block;
    position: sticky;
    bottom: 0;
    height: max(1px, env(safe-area-inset-bottom));
    margin-inline: -15px;
    background-color: #000;
    pointer-events: none;
  }
}
