/* Shared navigation, header and footer. */
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 100;
  background: var(--color-text);
  color: white;
  padding: 12px;
}

.skip-link:focus {
  top: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--color-white);
}

.header-inner {
  margin: auto;
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1;
  white-space: nowrap;
  color: var(--color-brand);
}

.brand img {
  object-fit: contain;
}

.site-header .brand {
  color: #000;
}

.desktop-nav {
  display: flex;
  margin: auto;
}

.desktop-nav a {
  position: relative;
  white-space: nowrap;
}

.desktop-nav a:after {
  content: '';
  position: absolute;
  bottom: 17px;
  left: 0;
  right: 100%;
  height: 1px;
  background: var(--color-brand);
  transition: right .3s var(--motion-ease);
}

.desktop-nav a:hover:after,
.desktop-nav a[aria-current="page"]:after {
  right: 0;
}

.desktop-nav a[aria-current] {
  color: var(--color-brand);
}

.header-actions {
  display: flex;
  align-items: center;
}

.text-button {
  background: none;
  border: 0;
  padding: 0;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  padding: 12px;
  flex-shrink: 0;
}

.menu-button span {
  display: block;
  height: 1px;
  background: var(--color-text);
  margin: 5px 0;
}

.mobile-nav {
  padding: 12px 24px 26px;
  border-top: 1px solid var(--color-border);
  background: var(--color-white);
  max-height: calc(100dvh - var(--header-fallback-height,80px));
  overflow-y: auto;
}

.mobile-nav a {
  display: block;
  text-align: left;
  padding: 12px 0;
  font-size: 16px;
}

.mobile-nav a[aria-current] {
  color: var(--color-brand);
}

.site-footer {
  background: var(--color-white);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 45px;
}

.footer-top p {
  margin-top: 20px;
}

.footer-top nav {
  display: grid;
  grid-template-columns: repeat(3,auto);
  gap: 20px 34px;
  align-content: start;
}

.footer-top nav a:hover {
  color: var(--color-brand);
}

.footer-bottom {
  display: flex;
  gap: 25px;
  align-items: center;
  margin-top: 60px;
  padding-top: 22px;
  border-top: 1px solid var(--color-border);
}

.footer-company {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-company:hover {
  color: var(--color-brand);
}

.noscript-note {
  padding: 20px;
  background: var(--color-surface-tinted);
}

@media (min-width:1001px) {
  .mobile-nav {
    display: none!important;
  }
}

@media (max-width:1000px) {
  .desktop-nav,
  .login {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .menu-button {
    display: block;
  }
}

@media (max-width:800px) {
  .footer-top {
    display: block;
  }

  .footer-top nav {
    margin-top: 36px;
    grid-template-columns: 1fr 1fr;
    gap: 19px 24px;
  }

  .footer-bottom {
    flex-wrap: wrap;
    align-items: center;
    gap: 13px;
    margin-top: 42px;
  }

}

.header-inner {
  width: calc(100% - 2 * var(--page-gutter));
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding-inline: 0;
}

.site-header {
  border-bottom: 0;
  background: var(--color-white);
  backdrop-filter: none;
}

.header-inner {
  min-height: 96px;
  gap: 40px;
  border-bottom: 1px solid var(--color-border);
}

.brand {
  font-size: 32px;
}

.brand img {
  width: 54px;
  height: 54px;
}

.desktop-nav {
  font-size: 16px;
  gap: 36px;
}

.desktop-nav a {
  padding: 26px 0;
}

.header-actions {
  gap: 28px;
}

.text-button {
  font-size: 16px;
}

.site-footer {
  padding: 70px 0 80px;
}

.footer-top p,
.footer-top nav {
  font-size: 16px;
}

.footer-bottom,
.footer-bottom small {
  font-size: 14px;
}

@media (max-width:1100px) {
  .header-inner {
    gap: 25px;
  }

  .desktop-nav {
    gap: 25px;
  }
}

@media (max-width:800px) {
  .header-inner {
    min-height: 80px;
  }

  .brand {
    font-size: 29px;
  }

  .brand img {
    width: 48px;
    height: 48px;
  }

  .header-actions {
    gap: 12px;
  }

  .footer-top nav {
    font-size: 15px;
  }
}

@media (max-width:480px) {
  .header-inner {
    gap: 10px;
    min-height: 76px;
  }

  .brand {
    font-size: 27px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .header-actions {
    gap: 9px;
  }

  .site-footer {
    padding-top: 42px;
    padding-bottom: 78px;
  }

  .footer-top p,
  .footer-top nav {
    font-size: 16px;
  }

  .footer-bottom,
  .footer-bottom small {
    font-size: 14px;
  }
}
