/* Znavika shared public header v1. Load after legacy site styles. */
.zn-site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 90;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #e2e9f2;
  background: #fff;
  color: #172942;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  isolation: isolate;
}
.zn-site-header,
.zn-site-header * { box-sizing: border-box; }
.zn-site-header .zn-shell-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 40px));
  min-height: 68px;
  margin: 0 auto;
  padding: 8px 0;
}
.zn-site-header a {
  color: inherit;
  text-decoration: none;
  text-shadow: none;
  overflow-wrap: normal;
}
.zn-site-header a:focus-visible,
.zn-site-header summary:focus-visible {
  outline: 3px solid #155cca;
  outline-offset: 4px;
}
.zn-site-header .zn-shell-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: #172942;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.7px;
  white-space: nowrap;
}
.zn-site-header .zn-shell-mark {
  display: grid;
  flex: 0 0 32px;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: #fff;
  background: #155cca;
  font-size: 21px;
  line-height: 1;
  letter-spacing: -1px;
}
.zn-site-header .zn-shell-desktop {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 0 0 auto;
  padding: 0;
}
.zn-site-header .zn-shell-desktop a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  border-radius: 4px;
  color: #415169;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.zn-site-header .zn-shell-desktop a:hover,
.zn-site-header .zn-shell-desktop a[aria-current="page"] {
  color: #155cca;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.zn-site-header .zn-shell-login {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 19px;
  border: 1px solid #155cca;
  border-radius: 11px;
  color: #fff;
  background: #155cca;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}
.zn-site-header .zn-shell-login:hover { background: #104da9; border-color: #104da9; }
.zn-site-header .zn-shell-menu {
  position: relative;
  display: none;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.zn-site-header .zn-shell-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid #dce5ef;
  border-radius: 11px;
  color: #263d5c;
  background: #fff;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  list-style: none;
  white-space: nowrap;
  cursor: pointer;
}
.zn-site-header .zn-shell-toggle::-webkit-details-marker { display: none; }
.zn-site-header .zn-shell-toggle::marker { content: ""; }
.zn-site-header .zn-shell-toggle:hover,
.zn-site-header .zn-shell-menu[open] .zn-shell-toggle { background: #edf4ff; border-color: #bed0ed; }
.zn-site-header .zn-shell-menu-icon { display: block; flex: 0 0 18px; }
.zn-site-header .zn-shell-menu:not([open]) .zn-shell-panel { display: none; }
.zn-site-header .zn-shell-panel {
  position: absolute;
  inset-block-start: calc(100% + 10px);
  inset-inline-end: 0;
  z-index: 1;
  display: grid;
  gap: 4px;
  width: min(280px, calc(100vw - 32px));
  margin: 0;
  padding: 8px;
  border: 1px solid #dce5ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(23, 41, 66, 0.14);
}
.zn-site-header .zn-shell-panel a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #263d5c;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}
.zn-site-header .zn-shell-panel a:hover,
.zn-site-header .zn-shell-panel a[aria-current="page"] { color: #155cca; background: #edf4ff; }
html:has(.zn-site-header) { scroll-padding-top: 88px; }
@media (max-width: 870px) {
  .zn-site-header .zn-shell-inner { min-height: 64px; gap: 10px; padding-block: 7px; }
  .zn-site-header .zn-shell-desktop { display: none; }
  .zn-site-header .zn-shell-login { margin-left: auto; padding-inline: 15px; }
  .zn-site-header .zn-shell-menu { display: block; }
}
@media (max-width: 380px) {
  .zn-site-header .zn-shell-inner { width: calc(100% - 24px); gap: 7px; }
  .zn-site-header .zn-shell-brand { font-size: 18px; gap: 6px; }
  .zn-site-header .zn-shell-mark { width: 30px; height: 30px; flex-basis: 30px; font-size: 20px; }
  .zn-site-header .zn-shell-login { padding-inline: 11px; }
  .zn-site-header .zn-shell-toggle { gap: 5px; padding-inline: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.zn-site-header) { scroll-behavior: auto; }
  .zn-site-header *, .zn-site-header *::before, .zn-site-header *::after {
    animation: none !important;
    transition: none !important;
  }
}
