/* Shared by the public shell and the independently themed Premium portal. */
.site-header .site-topbar__inner {
  max-width: none;
  height: 74px;
  padding-inline: clamp(16px, 2.5vw, 56px);
  gap: clamp(20px, 2vw, 40px);
}
.site-header .topbar__switcher { display: none; min-width: 0; }
.site-header .topbar__brand-link {
  display: inline-flex; align-items: center; flex: none;
  color: var(--sh-text, var(--text)); text-decoration: none; text-transform: uppercase;
}
.site-header .topbar__brand-link,
.site-header .topbar__switcher-btn {
  height: auto;
  min-width: 0;
  gap: 10px;
  font: 400 clamp(26px, 2vw, 38px)/1 var(--sh-display, var(--font-display));
  letter-spacing: .015em;
}
.site-header .topbar__switcher-btn > span { overflow: hidden; text-overflow: ellipsis; }
.site-header .topbar__switcher-btn::after { display: none; }
.site-header .topbar__brand-link > .topbar__ico,
.site-header .topbar__switcher-btn > .topbar__ico { width: 48px; height: 48px; }
.site-header .site-topbar__links {
  flex: 1;
  gap: clamp(14px, 1.5vw, 30px);
  padding-inline-start: clamp(18px, 2vw, 36px);
  border-inline-start: 1px solid var(--sh-line-strong, var(--line-strong));
}
.site-header .site-topbar__links > a { font-size: .9rem; height: 34px; }
.site-header .site-topbar__links > [aria-current] { display: none; }
.site-header .site-tools { margin-inline-start: auto; gap: 6px; }
.site-header .topbar__icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; width: auto; min-width: 42px; height: 42px; border-radius: 6px;
  color: var(--sh-text-2, var(--text-2));
}
.site-header .topbar__icon-btn:hover { background: var(--sh-surface-2, var(--surface-2)); }
.topbar__locale { font-size: .85rem; font-weight: 700; }
.site-header .site-topbar__sep { height: 24px; margin-inline: 5px; }
.site-header .topbar__login, .site-header .topbar__user-btn { height: 42px; padding-inline: 12px; font-size: .9rem; border-radius: 7px; }
.site-header .topbar__avatar { width: 30px; height: 30px; }
.site-header .site-navbar {
  grid-template-columns: minmax(0, 1fr);
  width: 100%; height: 50px; margin: 0; top: 0;
  padding-inline: max(clamp(16px, 2.5vw, 56px), calc((100% - var(--maxw)) / 2));
  border: 0; border-block-end: 1px solid var(--line-strong); border-radius: 0;
  background: var(--surface);
}
@media (min-width: 769px) and (max-width: 70rem) {
  .site-header .site-topbar__inner { gap: 12px; padding-inline: 14px; }
  .site-header .site-topbar__links { gap: 12px; padding-inline-start: 12px; flex-wrap: wrap; row-gap: 0; }
  .site-header .site-topbar__links > a { height: 29px; }
}
@media (max-width: 768px) {
  .site-header .site-topbar__inner { height: 60px; padding-inline: 12px; gap: 8px; }
  .site-header .topbar__brand-link, .site-header .site-topbar__links { display: none; }
  .site-header .topbar__switcher { display: flex; }
  .site-header .topbar__switcher-btn { gap: 5px; font-size: 24px; }
  .site-header .topbar__switcher-btn > .topbar__ico { width: 34px; height: 38px; }
  .site-header .site-tools { gap: 2px; }
  .site-header .site-navbar { display: none; }
  .site-topbar .nav__toggle { justify-content: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; }
  .site-topbar .nav__toggle .icon { width: 22px; height: 22px; }
  .site-header .nav__lang { position: static; }
  .site-header .nav__lang .menu { inset-inline: 8px; max-width: 24rem; margin-inline: auto; }
  .site-header .nav__lang .menu__panel { min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 8px; }
  .site-header .nav__lang .menu__panel a { white-space: normal; }
}
@media (max-width: 36rem) {
  .site-header .site-topbar__sep, .site-header .topbar__locale { display: none; }
  .site-header .topbar__user-name, .site-header .topbar__login span {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
  }
  .site-header .topbar__user-btn, .site-header .topbar__login { justify-content: center; width: 42px; padding: 0; }
}
