/* Apple-style global header */
html body {
  --tzp-header-bg: rgba(255, 255, 255, 0.82);
  --tzp-header-border: rgba(0, 0, 0, 0.08);
  --tzp-header-text: #1d1d1f;
  --tzp-header-muted: #6e6e73;
  --tzp-header-link: #0066cc;
}

html body .compliance-notice {
  position: relative;
  z-index: 2001;
  padding: 6px 14px;
  border-bottom: 0;
  background: #f5f5f7;
  color: var(--tzp-header-muted);
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
}

html body .compliance-notice small {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
}

html body .compliance-notice strong {
  color: #111;
}

html body .compliance-notice a {
  color: var(--tzp-header-text);
  text-underline-offset: 3px;
}

html body .site-header.tzp-global-header {
  position: sticky;
  top: 0;
  z-index: 2000;
  border-bottom: 0;
  background: var(--tzp-header-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

html body .tzp-header-inner {
  width: min(100%, 1100px);
  min-height: 56px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  box-sizing: border-box;
}

html body .tzp-header-branding {
  min-width: 0;
}

html body .tzp-global-header .site-title {
  margin: 0;
}

html body .tzp-global-header .site-title a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 240px;
  overflow: hidden;
  color: var(--tzp-header-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}

html body .tzp-site-logo {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  object-fit: contain;
}

html body .tzp-global-header .site-title span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

html body .tzp-global-header .site-description {
  display: none;
}

html body .tzp-primary-nav-desktop {
  min-width: 0;
}

html body .tzp-primary-nav-desktop .primary-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
  white-space: nowrap;
}

html body .tzp-primary-nav-desktop .primary-menu::-webkit-scrollbar {
  display: none;
}

html body .tzp-primary-nav-desktop li {
  flex: 0 0 auto;
}

html body .tzp-primary-nav-desktop a,
html body .tzp-primary-nav-desktop a:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #e5e5ea;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--tzp-header-text);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-decoration: none;
  opacity: 0.82;
  transition: opacity 0.24s ease, color 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

html body .tzp-primary-nav-desktop a:hover {
  border-color: rgba(0, 102, 204, 0.28);
  background: #fff;
  color: #000;
  opacity: 1;
}

html body .tzp-global-header .tzp-primary-nav,
html body .tzp-global-header .tzp-menu-toggle {
  display: none;
}

@media (max-width: 900px) {
  html body .tzp-header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand toggle"
      "nav nav";
    gap: 0 12px;
    padding: 0 14px;
  }

  html body .tzp-header-branding {
    grid-area: brand;
  }

  html body .tzp-global-header .site-title a {
    max-width: 100%;
    font-size: 14px;
  }

  html body .tzp-primary-nav-desktop {
    display: none;
  }

  html body .tzp-global-header .tzp-menu-toggle {
    grid-area: toggle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid #d2d2d7;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--tzp-header-text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
  }

  html body .tzp-global-header .tzp-primary-nav {
    grid-area: nav;
    display: none;
    width: 100%;
    margin: 8px 0 12px;
    padding: 8px;
    border: 1px solid #e5e5ea;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    box-sizing: border-box;
  }

  html body .tzp-global-header .tzp-primary-nav.is-open {
    display: block;
  }

  html body .tzp-global-header .tzp-primary-nav .primary-menu {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  html body .tzp-global-header .tzp-primary-nav .primary-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--tzp-header-text);
    font-size: 14px;
    line-height: 1.35;
    text-decoration: none;
  }

  html body .tzp-global-header .tzp-primary-nav .primary-menu a:hover {
    background: #f5f5f7;
  }
}
