/* First-party glue for the self-hosted static export. */
[id^="freemium-ad-"],
.widget-cookie-banner,
.widget-messaging,
.widget-popup,
[data-ux="Membership"],
[data-selfhosted-hidden] {
  display: none !important;
}

[data-ux="NavigationDrawer"][hidden] {
  display: none !important;
}

.site-header {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 16px clamp(18px, 4vw, 52px);
  background: #141018;
  color: #fffafd;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header *,
.site-header *::before,
.site-header *::after {
  box-sizing: border-box;
}

.brand {
  color: inherit;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px 16px;
  min-width: 0;
}

.site-nav a {
  color: inherit;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-family: "Source Sans Pro", "Avenir Next", "Segoe UI", Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  text-decoration: underline;
}

.site-nav a[aria-current="page"] {
  color: #f5e9ff;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.site-header + [id^="layout"] [data-stickynav-wrapper="true"],
.site-header + [id^="layout"] [data-ux="NavigationDrawer"] {
  display: none !important;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px 18px;
  }

  .brand {
    white-space: normal;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 4px 14px;
  }
}
