/* One header implementation for HJEM and every function page. */
.platform-intro { display: none !important; }
.platform-banner.platform-banner {
  position: relative;
  width: min(1480px, calc(100% - 32px));
  margin: 14px auto 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #1a4966;
  background: #04111e;
  box-shadow: none;
}
.platform-banner.platform-banner a,
.platform-banner.platform-banner img { width: 100%; display: block; }
.platform-banner.platform-banner img { height: 307px; object-fit: cover; object-position: center 47%; }
.platform-banner .platform-domain {
  position: absolute;
  left: 20px;
  right: auto;
  bottom: 14px;
  padding: 7px 11px;
  border: 1px solid #3f718b;
  background: #020914e8;
  color: #dff8ff;
  font: 800 13px/1 Inter, Arial, sans-serif;
  letter-spacing: .15em;
}
.site-header.site-header {
  position: relative;
  z-index: 20;
  width: min(1480px, calc(100% - 32px));
  min-height: 64px;
  height: 64px;
  margin: 0 auto 18px;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  border: 1px solid #1a4966;
  border-top: 0;
  border-radius: 0;
  background: #04111e;
  box-shadow: none;
  backdrop-filter: none;
}
.site-header .brand { width: max-content; display: none; align-items: center; gap: 9px; }
.site-header .nav-toggle { display: none; }
.site-header .main-nav {
  min-width: 0;
  height: 64px;
  display: grid;
  grid-template-columns: repeat(12,minmax(0,1fr));
  grid-template-rows: minmax(0,1fr);
  align-items: stretch;
  justify-self: stretch;
  gap: 0;
  padding: 0;
  overflow: visible;
}
.site-header .nav-row { display: contents; }
.site-header .main-nav a {
  position: relative;
  min-width: 0;
  min-height: 63px;
  height: 63px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-right: 1px solid #15384d;
  border-radius: 0;
  overflow: hidden;
  background: linear-gradient(180deg,transparent,rgba(24,184,230,0));
  color: #c2d3df;
  font: 800 clamp(9px, .68vw, 11px)/1 Inter, Arial, sans-serif;
  letter-spacing: .035em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: none;
  transition: color .18s ease,background .18s ease,box-shadow .18s ease,transform .12s ease;
}
.site-header .main-nav a:hover,
.site-header .main-nav a:focus-visible { z-index: 2; background: linear-gradient(180deg,rgba(45,166,255,.18),rgba(24,184,230,.08)); color: #76d9ff; box-shadow: inset 0 0 24px rgba(45,166,255,.13),0 0 18px rgba(24,184,230,.14); outline: 1px solid #2da6ff; outline-offset: -2px; text-shadow: 0 0 13px rgba(45,166,255,.65); }
.site-header .main-nav a:hover { z-index: 2; background: linear-gradient(180deg,rgba(45,166,255,.2),rgba(24,184,230,.075)); color: #eafaff; box-shadow: inset 0 0 26px rgba(45,166,255,.16),0 0 20px rgba(24,184,230,.13); text-shadow: 0 0 12px rgba(45,166,255,.8); transform: translateY(-1px); }
.site-header .main-nav a:active { transform: translateY(1px) scale(.985); background: rgba(45,166,255,.24); }
.site-header .main-nav a.active { background: linear-gradient(180deg,rgba(45,166,255,.25),rgba(24,184,230,.1)); color: #fff; box-shadow: inset 0 0 24px rgba(45,166,255,.18); text-shadow: 0 0 12px rgba(45,166,255,.72); }
.site-header .main-nav a::after { content: ""; position: absolute; left: 16%; right: 16%; bottom: 0; height: 3px; background: transparent; transform: scaleX(0); transition: transform .18s ease,background .18s ease,box-shadow .18s ease; }
.site-header .main-nav a:hover::after { background: rgba(45,166,255,.55); transform: scaleX(.7); }
.site-header .main-nav a.active::after { display: block; background: #2da6ff; box-shadow: 0 0 13px #2da6ff; transform: scaleX(1); }
.site-header .header-actions {
  position: absolute;
  z-index: 25;
  right: 12px;
  bottom: calc(100% + 12px);
  min-width: max-content;
  height: 48px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-left: 0;
  border: 1px solid #2b6688;
  background: rgba(2,9,20,.94);
  box-shadow: 0 8px 24px rgba(0,0,0,.36);
}
.site-header .language-switch { margin: 0; }
.site-header .language-switch button {
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #eff9ff;
  cursor: pointer;
  font: 800 12px/1 Inter, Arial, sans-serif;
  letter-spacing: .05em;
}
.site-header .language-switch .muted { color: #7891a3; }
.site-header .language-switch strong,
.site-header .text-link { color: #18b8e6; }
.site-header .language-switch span { margin-right: 4px; }
.site-header .text-link {
  font: 800 12px/1 Inter, Arial, sans-serif;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.site-header .header-actions .desktop-only { display: block; }
.site-header .profile-link {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #c2d3df;
  font: 800 12px/1 Inter, Arial, sans-serif;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.site-header .profile-link > span:last-child { max-width: 135px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-header .avatar {
  width: 36px;
  height: 36px;
  display: grid;
  flex: 0 0 36px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #1a4966;
  background: #091c2c;
  color: #18b8e6;
  font: 800 17px/1 "Barlow Condensed", Arial, sans-serif;
}
.site-header .avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.site-header .button.button-small {
  min-height: 40px;
  height: 40px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #18b8e6;
  border-radius: 0;
  clip-path: none;
  background: #18b8e6;
  color: #03131d;
  font: 800 12px/1 Inter, Arial, sans-serif;
  letter-spacing: .05em;
  text-transform: uppercase;
  box-shadow: none;
}

.site-header .mobile-account-nav { display: none; }

@media (max-width: 1050px) {
  .site-header.site-header {
    min-height: 64px;
    height: 64px;
    grid-template-columns: 1fr auto auto;
    padding: 0 12px;
  }
  .site-header .brand { display: flex; }
  .site-header .brand-mark { display: none; }
  .site-header .brand-copy strong { color: #eff9ff; background: none; font: 800 22px/1 "Barlow Condensed", Arial, sans-serif; }
  .site-header .brand-copy strong span { color: #18b8e6; }
  .site-header .brand-copy small { display: none; }
  .site-header .nav-toggle { width: 44px; height: 44px; padding: 9px; display: block; align-self: center; order: 2; border: 0; background: transparent; }
  .site-header .nav-toggle span { width: 23px; height: 2px; display: block; margin: 5px auto; background: #eff9ff; }
  .site-header .main-nav {
    position: absolute;
    z-index: 50;
    top: 64px;
    left: -1px;
    right: -1px;
    display: none;
    height: auto;
    max-height: calc(100vh - 90px);
    grid-template-columns: 1fr;
    grid-template-rows: none;
    padding: 8px;
    overflow-y: auto;
    border: 1px solid #1a4966;
    background: #04111e;
  }
  .site-header .nav-row { display: contents; }
  .site-header .main-nav.open { display: grid; }
  .site-header .main-nav a { min-height: 48px; height: 48px; justify-content: flex-start; padding: 0 14px; border-right: 0; border-bottom: 1px solid #15384d; font-size: 13px; text-align: left; }
  .site-header .main-nav a::after { left: 0; right: auto; width: 3px; height: 60%; bottom: 20%; transform: scaleY(0); }
  .site-header .main-nav a:hover::after,.site-header .main-nav a.active::after { transform: scaleY(1); }
  .site-header .mobile-account-nav { display: grid; margin-top: 7px; border-top: 1px solid #2377a5; }
  .site-header .mobile-account-nav a,
  .site-header .mobile-account-nav button { width: 100%; min-height: 50px; display: flex; align-items: center; justify-content: flex-start; gap: 10px; padding: 0 14px; border: 0; border-bottom: 1px solid #15384d; background: #071a2a; color: #eff9ff; font: 800 13px/1 Inter, Arial, sans-serif; letter-spacing: .04em; text-align: left; text-transform: uppercase; cursor: pointer; }
  .site-header .mobile-account-nav .mobile-register-link,
  .site-header .mobile-account-nav button { color: #18b8e6; }
  .site-header .mobile-account-nav form { margin: 0; }
  .site-header .mobile-account-avatar { width: 28px; height: 28px; display: grid; flex: 0 0 28px; place-items: center; overflow: hidden; border: 1px solid #2377a5; border-radius: 50%; background: #0a2940; color: #eff9ff; font-size: 12px; }
  .site-header .mobile-account-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .site-header .header-actions { position: static; min-width: 0; height: 64px; order: 3; padding: 10px 0 10px 10px; border: 0; background: transparent; box-shadow: none; }
  .site-header .header-actions .desktop-only,
  .site-header .header-actions .button-small { display: none; }
}

@media (max-width: 820px) {
  .platform-banner.platform-banner { width: calc(100% - 24px); margin-top: 12px; }
  .platform-banner.platform-banner img { height: 150px; }
  .platform-banner .platform-domain { left: 9px; right: auto; bottom: 8px; padding: 6px 8px; font-size: 10px; }
  .site-header.site-header { width: calc(100% - 24px); }
}

@media (max-width: 560px) {
  .site-header .language-switch { display: block; }
  .site-header .profile-link > span:last-child { display: none; }
}
