/* Stable site header and a plain link opening the shared native search dialog.
   Mirrored in scss/_header.scss; no Sass build is required. */
.site-header.site-header--stable {
  position: sticky;
  top: 0;
  z-index: 99;
  min-height: 76px;
  padding: 12px 16px;
  margin-bottom: 24px;
  box-sizing: border-box;
  gap: 20px;
  background: #f6f8f9;
  overflow: visible;
}
.site-header--stable .column { min-width: 0; gap: 16px; }
.site-header--stable .column-1 { flex: 1 1 auto; }
.site-header--stable .column-2 { flex: 0 0 auto; }
.site-header--stable .site-header__logo {
  flex: 0 0 126px;
  width: 126px;
  height: 37px;
  margin-right: 16px;
  overflow: hidden;
}
.site-header--stable .site-header__logo svg { display: block; width: 126px; height: 37px; }
.site-header--stable .main-navigation ul li { margin-left: clamp(12px, 1.7vw, 24px); }
.site-header--stable .main-navigation ul li:first-child { margin-left: 0; }
.site-header--stable .main-navigation a { white-space: nowrap; }
.site-header--stable .head-noties { flex: 0 0 44px; width: 44px; height: 44px; margin: 0; }
.site-header--stable .profile-user { min-width: 0; max-width: 200px; flex-shrink: 0; }
.site-header--stable .profile-user__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-header--stable .login-form { white-space: nowrap; flex-shrink: 0; }
.site-header--stable .header-search__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 8px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  box-sizing: border-box;
  border: 0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 4px rgb(0 0 0 / 5%);
  color: #252728;
  font: inherit;
  font-size: 14px;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.site-header--stable .header-search__toggle svg { flex-shrink: 0; }
.site-header--stable .header-search__toggle:hover { color: var(--main-color-text, #ba4a00); }
.site-header--stable .header-search__toggle:focus-visible { outline: 2px solid var(--main-color-text, #ba4a00); outline-offset: 3px; }
/* Keep the full desktop navigation clear of the account/search controls. */
@media (min-width: 777px) and (max-width: 1400px) {
  .site-header.site-header--stable { gap: 12px; }
  .site-header--stable .column { gap: 12px; }
  .site-header--stable .site-header__logo { flex-basis: 112px; width: 112px; margin-right: 0; }
  .site-header--stable .site-header__logo svg { width: 112px; height: 37px; }
  .site-header--stable .main-navigation a { font-size: 14px; line-height: 20px; }
  .site-header--stable .main-navigation ul li { margin-left: 12px; }
  .site-header--stable .main-navigation ul li:first-child { margin-left: 0; }
  .site-header--stable .header-search__toggle { width: 44px; padding: 0; }
  .site-header--stable .login-form { padding: 14px 14px 14px 44px; background-position: 14px center; font-size: 14px; }
  .site-header--stable .profile-user { max-width: 160px; }
}
@media (max-width: 1200px) {
  .site-header.site-header--stable { gap: 12px; }
  .site-header--stable .column { gap: 12px; }
  .site-header--stable .site-header__logo { margin-right: 0; }
}
@media (max-width: 776px) {
  .site-header.site-header--stable { min-height: 68px; padding: 12px; gap: 8px; }
  .site-header--stable .column { gap: 8px; }
  .site-header--stable .column-2 > .login-form { display: none; }
  .site-header--stable .header-search__toggle { width: 44px; padding: 0; }
}

/* WordPress keeps its toolbar fixed above 600px and in normal scrolling below. */
.admin-bar .site-header.site-header--stable { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .site-header.site-header--stable { top: 46px; }
}
@media (max-width: 600px) {
  .admin-bar .site-header.site-header--stable { top: 0; }
}
/* The statistics dashboard already owns its sticky section navigation. */
.admin-bar.post-type-archive-stat-dtp .site-header.site-header--stable,
.admin-bar.single-stat-dtp .site-header.site-header--stable { top: auto; }
