/* All public pages share this header, independent of their page-level glass styles. */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

body.site-has-header { animation: none !important; transform: none !important; filter: none !important; }
#site-header {
  box-sizing: border-box;
  --header-text: #eef3fa;
  --header-line: rgba(220, 228, 240, .22);
  --header-surface: linear-gradient(160deg, rgba(42, 51, 63, .88), rgba(17, 24, 32, .94));
  position: relative;
  z-index: 1000;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(1432px, calc(100% - 48px));
  min-height: 56px;
  margin: 14px auto 0;
  padding: 6px;
  border: 1px solid rgba(220, 228, 240, .12);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(28, 37, 46, .84), rgba(12, 18, 24, .88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
  color: var(--header-text);
  font: 700 12px/1.4 'Manrope', sans-serif;
  text-align: left;
  letter-spacing: 0;
}
#site-header[data-theme='light'] {
  --header-text: #243258;
  --header-line: rgba(78, 101, 125, .22);
  --header-surface: linear-gradient(160deg, rgba(255,255,255,.88), rgba(226,235,244,.92));
  background: linear-gradient(135deg, rgba(242,247,251,.9), rgba(228,238,245,.92));
}
#site-header *, #site-header *::before, #site-header *::after { box-sizing: border-box; }
#site-header span { color: inherit; }
#site-header a, #site-header button {
  margin: 0;
  font: inherit;
  color: var(--header-text);
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#site-header .site-brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  border: 0;
  padding: 0 6px 0 0;
  background: none;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}
#site-header .site-brand img { display: block; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 13px; }
#site-header .site-navigation { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-left: auto; }
#site-header .site-link, #site-header .site-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--header-line);
  border-radius: 999px;
  background: var(--header-surface);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  white-space: nowrap;
  transition: border-color .18s ease, background-color .18s ease;
}
#site-header .site-link:hover, #site-header .site-control:hover { border-color: rgba(151, 180, 213, .65); }
#site-header .site-link[aria-current='page'] { border-color: #7b98bd; background: linear-gradient(160deg, rgba(77,94,119,.75), rgba(31,41,54,.94)); }
#site-header[data-theme='light'] .site-link[aria-current='page'] { background: #dce8f2; border-color: #8ba7c5; }
#site-header :focus-visible { outline: 2px solid #79cfc9; outline-offset: 3px; }
#site-header .site-tools { display: flex; align-items: center; gap: 6px; margin-left: -10px; }
#site-header .site-language { position: relative; }
#site-header .site-locale { min-width: 44px; }
#site-header .site-burger { display: none; }
#site-header #site-languages {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 3;
  width: 200px;
  max-height: calc(100dvh - 100px);
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--header-line);
  border-radius: 20px;
  background: #151e28;
  box-shadow: 0 16px 40px rgba(0,0,0,.26);
}
#site-header #site-languages[hidden], #site-menu-backdrop[hidden] { display: none; }
#site-header #site-languages button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  text-align: left;
}
#site-header #site-languages button span { opacity: .6; font-size: 10px; }
#site-header #site-languages button:hover, #site-header #site-languages button[aria-pressed='true'] { background: rgba(137, 175, 190, .16); }
#site-header[data-theme='light'] #site-languages { background: #edf3f8; }
#site-menu-backdrop { position: fixed; inset: 0; z-index: 999; background: rgba(3, 8, 13, .65); }

@media (max-width: 1240px) {
  #site-header .site-tools { margin-left: auto; }
  #site-header .site-burger { display: flex; flex-direction: column; width: 40px; height: 40px; gap: 5px; padding: 10px; }
  #site-header .site-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .18s ease; }
  #site-header.menu-open .site-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg) !important; }
  #site-header.menu-open .site-burger span:nth-child(2) { opacity: 0 !important; }
  #site-header.menu-open .site-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg) !important; }
  #site-header .site-navigation {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    max-height: calc(100dvh - 104px);
    overflow-y: auto;
    overscroll-behavior: contain;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--header-line);
    border-radius: 24px;
    background: #121b24;
    box-shadow: 0 18px 50px rgba(0,0,0,.28);
  }
  #site-header.menu-open .site-navigation { display: grid; }
  #site-header .site-navigation .site-link, #site-header .site-theme { min-height: 44px; white-space: normal; text-align: center; font-size: 12px; }
  #site-header .site-theme { grid-column: 1 / -1; }
  #site-header[data-theme='light'] .site-navigation { background: #edf3f8; }
}
@media (max-width: 600px) {
  #site-header { width: calc(100% - 24px); min-height: 54px; margin-top: 12px; gap: 8px; }
  #site-header .site-brand { gap: 8px; padding: 0; font-size: clamp(10px, 3.25vw, 14px); }
  #site-header .site-brand img { width: 32px; height: 32px; flex-basis: 32px; border-radius: 10px; }
  #site-header .site-tools { gap: 4px; }
  #site-header .site-locale { min-width: 38px; padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  #site-header *, #site-header *::before, #site-header *::after { transition: none !important; }
}
