/* Match the main site's navigation without importing its page and form styles. */
.site-header {
  position: relative;
  z-index: 20;
  min-height: 72px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 12px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid rgba(255, 255, 255, .13);
  background: rgba(9, 13, 15, .87);
  backdrop-filter: blur(18px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.site-header .brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; }
.site-header .brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid rgba(41, 212, 167, .5);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(41, 212, 167, .28), rgba(224, 178, 77, .28));
  color: #fff;
}
.site-header .nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  min-width: 0;
  flex: none;
  flex-wrap: wrap;
  order: initial;
  padding: 0;
}
.site-header .header-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; }
.site-header .nav a, .site-header .header-data-link, .site-header .header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid rgba(41, 212, 167, .86);
  border-radius: 8px;
  padding: 0 11px;
  background: linear-gradient(180deg, #2ee6bd 0%, #1d95bc 100%);
  color: #041713;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.site-header .nav a:hover, .site-header .nav a.active,
.site-header .header-data-link:hover, .site-header .header-cta:hover {
  border-color: #75ffdf;
  background: linear-gradient(180deg, #6dffe2 0%, #29d4a7 48%, #1b87b9 100%);
  color: #02110e;
}
@media (max-width: 980px) {
  .site-header { grid-template-columns: minmax(0, 1fr) auto; }
  .site-header .header-actions { grid-column: 2; grid-row: 1; }
  .site-header .nav { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; }
}
@media (max-width: 640px) {
  .site-header { min-height: 64px; grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; padding: 10px 8px; }
  .site-header .brand span:last-child { display: none; }
  .site-header .brand-mark { width: 38px; height: 38px; }
  .site-header .header-data-link, .site-header .header-cta { min-height: 34px; padding: 0 10px; font-size: 12px; }
  .site-header .nav { grid-row: 2; width: 100%; gap: 6px; overflow-y: hidden; padding-bottom: 2px; scrollbar-width: none; }
  .site-header .nav::-webkit-scrollbar { display: none; }
  .site-header .nav a { min-height: 34px; padding: 0 12px; font-size: 12px; }
}
