.site-header,
.site-footer {
  --site-strong-text: #000;
  --site-muted-text: rgb(25, 31, 31);
  --site-logo-fill: #444;
  --site-header-button-bg: rgb(255, 255, 255);
  --site-header-button-text: rgb(25, 31, 31);
  --site-header-button-border: rgba(0, 0, 0, 0.15);
  --site-header-button-shadow: 5px 4px 16px 0 rgba(0, 0, 0, 0.04);
  --site-header-primary-button-bg: #000;
  --site-header-primary-button-text: #fff;
  --site-header-active-border: #000;
  --site-badge-bg: rgba(176, 176, 176, 0.2);
  --site-badge-border: rgba(143, 139, 136, 0.25);
  --site-badge-icon: #333;
  --site-badge-label-bg: rgb(224 224 224 / 45%);
  --site-badge-label-border: rgb(143 139 136 / 25%);
  --site-badge-label-text: #000;
  --site-footer-link: #666;
  --site-footer-heading: #000;
  --site-footer-copy: #666;
}

.site-header--dark,
.site-footer--dark {
  --site-strong-text: #f3f4f6;
  --site-muted-text: #e5e7eb;
  --site-logo-fill: #fff;
  --site-header-button-bg: rgb(255 255 255 / 0.06);
  --site-header-button-text: #f3f4f6;
  --site-header-button-border: rgb(255 255 255 / 0.18);
  --site-header-button-shadow: 0 0 0 1px rgb(255 255 255 / 0.02);
  --site-header-primary-button-bg: #f9fafb;
  --site-header-primary-button-text: #111827;
  --site-header-active-border: #f3f4f6;
  --site-badge-bg: rgb(255 255 255 / 0.08);
  --site-badge-border: rgb(255 255 255 / 0.14);
  --site-badge-icon: #f3f4f6;
  --site-badge-label-bg: rgb(17 24 39 / 0.92);
  --site-badge-label-border: rgb(255 255 255 / 0.12);
  --site-badge-label-text: #f9fafb;
  --site-footer-link: #c5cad3;
  --site-footer-heading: #f3f4f6;
  --site-footer-copy: #c5cad3;
}

#header {
  position: relative;
  width: 100%;
  padding: 20px 0;
}

#header #header-inner {
  max-width: 1220px;
  max-width: calc(1220px + 4rem);
  padding: 0 2rem;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

#header #logo h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
}

#header #logo h1 a {
  color: var(--site-strong-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#logo svg {
  width: 140px;
  height: auto;
  vertical-align: bottom;
}

#logo svg * {
  fill: var(--site-logo-fill);
}

.site-header-menu {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}

.mobile-only-nav-item {
  display: none;
}

.site-header-menu-toggle {
  display: none;
  margin-left: auto;
  padding: 0;
  width: 43px;
  height: 28px;
  border: 1px solid var(--site-header-button-border);
  border-radius: 7px;
  background: var(--site-header-button-bg);
  box-shadow: var(--site-header-button-shadow);
  color: var(--site-header-button-text);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.site-header-menu-toggle span {
  display: block;
  width: 25px;
  height: 1px;
  border-radius: 999px;
  background: currentColor;
  flex-shrink: 0;
}

#header #navigation {
  margin-left: 40px;
}

#header #navigation a {
  color: var(--site-muted-text);
}

#header #navigation ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

#header #navigation ul li {
  margin: 0 15px;
}

#header #navigation ul li:last-child {
  margin-right: 0;
}

#header #navigation ul li a {
  color: var(--site-muted-text);
  padding: 0.25rem 0;
  display: inline-block;
  border-radius: 99999px;
  margin: 0;
  text-decoration: none;
}

#header #navigation ul li a.active {
  color: var(--site-strong-text);
  border-bottom: 2px solid var(--site-header-active-border);
  border-radius: 0;
}

#header #ctas {
  margin-left: auto;
}

#header #ctas .cta-button {
  background-color: var(--site-header-button-bg);
  color: var(--site-header-button-text);
  font-size: 16px;
  padding: 9.5px 25px;
  border: 1px solid var(--site-header-button-border);
  border-radius: 16px;
  box-shadow: var(--site-header-button-shadow);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

#header #ctas .cta-button.black {
  background-color: var(--site-header-primary-button-bg);
  color: var(--site-header-primary-button-text);
}

#header #ctas .cta-button svg {
  width: 1.25rem;
}

#header #ctas-inner {
  display: flex;
  gap: 16px;
}

.user-badge-link {
  text-decoration: none;
}

.user-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background-color: var(--site-badge-bg);
  border: 1px solid var(--site-badge-border);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 0 0 1px rgba(0, 0, 0, 0.01);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background-color 0.2s ease-in-out;
  position: relative;
}

.user-badge svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: var(--site-badge-icon);
}

.user-badge-label {
  display: none;
}

#footer {
  position: relative;
  width: 100%;
  margin-top: 110px;
  margin-bottom: 40px;
  padding-top: 56px;
  font-size: 1.3rem;
}

#footer a {
  color: var(--site-footer-link);
  text-decoration: none;
}

#footer-container {
  max-width: 1220px;
  max-width: calc(1220px + 4rem);
  padding: 0 2rem;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

#footer-inner {
  width: 100%;
}

#footer-logo {
  width: 100%;
  margin-top: 11svh;
}

#footer-logo a {
  display: block;
}

#footer-logo svg {
  max-width: 100%;
  height: auto;
}

.site-footer--dark #footer-logo svg * {
  fill: #1b1b1b;
}

#footer-navigations {
  display: flex;
  gap: 60px;
  justify-content: space-between;
}

.footer-navigation-container > p {
  font-size: 88%;
  margin-bottom: 12px;
  font-weight: 500;
  color: var(--site-footer-heading);
}

#footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#footer ul li a {
  font-size: 80%;
  padding: 3px 0;
  display: inline-block;
}

#footer ul li a:hover {
  text-decoration: underline;
}

#footer ul li:not(:last-child) {
  margin-bottom: 10px;
}

#footer-copyright {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

#footer-copyright p {
  color: var(--site-footer-copy);
  margin: 0;
  font-size: 80%;
}

span.copyright-unicode {
  position: relative;
  bottom: -4px;
}

@media (pointer: coarse) {
  .user-badge-link:active .user-badge {
    background-color: rgb(0, 235, 96);
  }
}

@media (pointer: fine) {
  .user-badge-label {
    display: block;
    position: absolute;
    pointer-events: none;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    background: var(--site-badge-label-bg);
    border: 1px solid var(--site-badge-label-border);
    font-size: 14px;
    color: var(--site-badge-label-text);
    padding: 4px 8px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .user-badge-link:hover .user-badge-label {
    opacity: 1;
    transform: translate(-50%, 12px);
  }
}

@media screen and (min-width: 769px) {
  #header #header-inner {
    min-height: 41px;
  }
}

@media screen and (max-width: 768px) {
  #footer {
    font-size: 1rem;
    margin-top: 70px;
  }

  #footer-navigations {
    flex-direction: column;
  }

  #footer-copyright {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    text-align: center;
  }

  #footer-container {
    padding-left: 1.4rem !important;
    padding-right: 1.4rem !important;
  }

  #header #header-inner {
    padding: 0 1.4rem;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .site-header-menu-toggle {
    display: inline-flex;
  }

  #logo svg {
    width: 110px;
  }

  #header {
    padding-top: 16px;
  }

  .mobile-only-nav-item {
    display: list-item;
  }

  .user-badge-link {
    display: none;
  }

  .site-header-menu {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 0 4px;
  }

  .site-header[data-mobile-menu-open="true"] .site-header-menu {
    display: flex;
  }

  .site-header[data-mobile-menu-open="true"] {
    border-bottom: 1px solid var(--site-header-button-border);
    padding-bottom: 16px;
  }

  #header #navigation {
    margin-left: 0;
    width: 100%;
  }

  #header #navigation ul {
    flex-direction: column;
    gap: 0;
  }

  #header #navigation ul li,
  #header #navigation ul li:last-child {
    margin: 0;
  }

  #header #navigation ul li a {
    display: block;
    padding: 10px 0;
    font-size: 15px;
  }

  #header #ctas {
    width: 100%;
    margin-top: 12px;
  }

  #header #ctas:not(:has(.cta-button)) {
    display: none;
  }

  #header #ctas-inner {
    flex-direction: column;
    gap: 10px;
  }

  #header #ctas .cta-button {
    padding: 10px 16px;
    font-size: 15px;
    justify-content: center;
  }

  #header #ctas .cta-button svg {
    width: 1rem;
    height: 1rem;
  }
}
