/* One navigation component for the landing and every detail page. */
html { --site-nav-height: 78px; scroll-padding-top: var(--site-nav-height); }
body:not(#home) { min-width: 0; padding-top: var(--site-nav-height); font-family: Raleway, Arial, sans-serif; }

.site-nav {
  --nav-bg: #282a36;
  --nav-text: #f8f8f2;
  --nav-line: #44475a;
  --nav-hover: #44475a;
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  height: var(--site-nav-height);
  border-bottom: 1px solid var(--nav-line);
  background: var(--nav-bg);
  color: var(--nav-text);
  font-family: Raleway, Arial, sans-serif;
}
html[data-theme="light"] .site-nav {
  --nav-bg: #f8f8f2;
  --nav-text: #282a36;
  --nav-line: #c6c7d4;
  --nav-hover: #e9e5f0;
}
.site-nav__inner {
  display: flex;
  width: 100%;
  max-width: 1170px;
  height: 100%;
  align-items: center;
  margin: 0 auto;
  padding: 0 15px;
}
.site-nav__brand {
  display: inline-flex;
  flex: none;
  height: 100%;
  align-items: center;
  gap: 9px;
  color: var(--nav-text);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1;
  white-space: nowrap;
}
.site-nav__brand img { display: block; width: 38px; height: 38px; }
.site-nav__brand .brand-logo--light { display: none; }
html[data-theme="light"] .site-nav__brand .brand-logo--dark { display: none; }
html[data-theme="light"] .site-nav__brand .brand-logo--light { display: block; }
.site-nav__brand:hover,
.site-nav__brand:focus { color: var(--nav-text); text-decoration: none; }
.site-nav__links { display: flex; height: 100%; align-items: center; margin-left: auto; }
.site-nav__links a {
  display: flex;
  height: 100%;
  align-items: center;
  padding: 0 17px;
  color: var(--nav-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-nav__links a:hover,
.site-nav__links a:focus { background: var(--nav-hover); color: var(--nav-text); text-decoration: none; }
.site-nav .theme-toggle {
  display: inline-flex;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #ffb86c;
  cursor: pointer;
}
.site-nav .theme-toggle:hover { color: var(--nav-text); }
.site-nav .theme-toggle__icon {
  display: block;
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #f4c95d;
  box-shadow: 0 0 0 4px rgb(244 201 93 / 12%);
  font-size: 0;
}
html[data-theme="light"] .site-nav .theme-toggle__icon {
  background: #2457c5;
  box-shadow: inset -5px -3px 0 rgb(255 255 255 / 36%);
}
.site-nav .theme-toggle__label { display: none; }
.site-nav__menu { display: none; }
.site-nav :focus-visible { outline: 2px solid #ffb86c; outline-offset: 2px; }

.site-footer.site-footer--unified {
  display: flex;
  box-sizing: border-box;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  padding: 28px max(15px, calc((100vw - 1140px) / 2));
  border: 0;
  background: #20212b;
  color: #f8f8f2;
  font-size: 14px;
}
.site-footer.site-footer--unified span:first-child { color: inherit; font-weight: 400; }
.site-footer.site-footer--unified a { margin-left: 0; color: #8be9fd; }
html[data-theme="light"] .site-footer.site-footer--unified { background: #e4e1ec; color: #282a36; }
html[data-theme="light"] .site-footer.site-footer--unified a { color: #0b5d75; }

@media (max-width: 1023px) {
  .site-nav .theme-toggle { align-self: center; margin-left: auto; transform: none; }
  .js .site-nav__menu {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-content: center;
    gap: 4px;
    margin-left: 8px;
    padding: 7px 10px;
    border: 1px solid var(--nav-line);
    border-radius: 0;
    background: transparent;
    color: var(--nav-text);
    cursor: pointer;
  }
  .site-nav__menu span:not(.sr-only) { display: block; width: 20px; height: 2px; background: currentColor; }
  .site-nav__links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: grid;
    height: auto;
    margin: 0;
    padding: 8px 15px 12px;
    border-bottom: 1px solid var(--nav-line);
    background: var(--nav-bg);
  }
  .js .site-nav__links { display: none; }
  .js .site-nav__links.is-open { display: grid; }
  .site-nav__links a { min-height: 44px; padding: 11px 20px; }
}
@media (max-width: 1199px) {
  .site-footer.site-footer--unified a { display: inline-flex; min-height: 44px; align-items: center; }
}

@media (max-width: 767px) {
  html { --site-nav-height: 68px; }
  .site-footer.site-footer--unified { flex-wrap: wrap; gap: 12px 20px; padding: 28px 15px; }
}

@media (min-width: 1280px) {
  html {
    --site-content-width: clamp(1170px, calc(27.34375vw + 820px), 1520px);
    --site-nav-height: clamp(78px, calc(1.40625vw + 60px), 96px);
  }
  .site-nav__inner { max-width: var(--site-content-width); }
  .site-nav__brand { gap: clamp(9px, calc(.234375vw + 6px), 12px); font-size: clamp(24px, calc(.46875vw + 18px), 30px); }
  .site-nav__brand img { width: clamp(38px, calc(.78125vw + 28px), 48px); height: clamp(38px, calc(.78125vw + 28px), 48px); }
  .site-nav__links a { padding: 0 clamp(17px, calc(.390625vw + 12px), 22px); font-size: clamp(14px, calc(.15625vw + 12px), 16px); line-height: clamp(20px, calc(.3125vw + 16px), 24px); }
  .site-nav .theme-toggle { flex-basis: clamp(44px, calc(.625vw + 36px), 52px); width: clamp(44px, calc(.625vw + 36px), 52px); height: clamp(44px, calc(.625vw + 36px), 52px); margin-left: clamp(6px, calc(.3125vw + 2px), 10px); }
  .site-nav .theme-toggle__icon { width: clamp(18px, calc(.3125vw + 14px), 22px); height: clamp(18px, calc(.3125vw + 14px), 22px); }
  .site-footer.site-footer--unified { padding-inline: max(15px, calc((100vw - (var(--site-content-width) - 30px)) / 2)); font-size: clamp(14px, calc(.15625vw + 12px), 16px); }
}
