/* Shared site header (homepage look) on all pages */
#site-header.rebranding,
#site-header.mi-site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1100;
  background: #fff;
  border-bottom: 4px solid #f0af13 !important;
  overflow: visible !important;
  min-height: 64px;
  height: auto !important;
  padding-bottom: 0 !important;
}

#site-header .mi-header-inner,
#site-header .container {
  display: flex;
  align-items: center;
  gap: 0;
  width: min(1170px, calc(100% - 30px));
  margin: 0 auto;
  padding: 0 15px;
  min-height: 60px;
  position: relative;
  box-sizing: border-box;
}

/* Official logo-header.svg already draws the white tab — no extra CSS plate */
#site-header .logo {
  position: relative;
  z-index: 5;
  flex: 0 0 86px;
  width: 86px;
  align-self: flex-end;
  margin: 0 0 -34px 0;
  padding: 0;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  line-height: 0;
}

#site-header .logo::before,
#site-header .logo::after {
  display: none !important;
  content: none !important;
}

#site-header .logo a {
  display: block;
  line-height: 0;
  text-decoration: none;
}

#site-header .logo img {
  display: block;
  width: 148px;
  height: 110px;
  max-width: none;
  margin: 0;
  padding: 0;
  position: relative;
  /* Align left edge with homepage search field (Pozícia…) */
  left: -72px;
  top: 0;
  filter: none !important;
}

#site-header .mi-header-nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1 1 auto;
  min-width: 0;
  /* pull job-search + salary links toward the shifted logo */
  margin-left: -8px;
}

#site-header .mi-header-nav > .dropdown:first-child {
  margin-left: 0;
}

#site-header .find-job-link {
  padding-left: 4px !important;
  padding-right: 10px !important;
}

#site-header .paylab-link {
  padding-left: 8px !important;
  padding-right: 10px !important;
}

#site-header .mi-header-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 48px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #2d2d2b;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

#site-header .mi-header-link:hover {
  color: #d2271b;
  text-decoration: none;
}

#site-header .mi-header-link .caret,
#site-header .find-job-link .caret {
  display: inline-flex;
  align-items: center;
  width: 12px;
  height: 12px;
  transition: transform 0.15s ease;
}

#site-header .mi-header-link .caret svg,
#site-header .find-job-link .caret svg {
  width: 12px;
  height: 12px;
  display: block;
}

#site-header .dropdown.open > .mi-header-link .caret,
#site-header .dropdown.open > .find-job-link .caret {
  transform: rotate(180deg);
}

#site-header .mi-nav-divider {
  width: 1px;
  height: 28px;
  background: #e1e1e1;
  margin: 0 4px;
  flex: 0 0 auto;
}

#site-header .mi-header-right {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 8px;
  flex: 0 0 auto;
}

#site-header .mi-tip {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 3px;
  background: #2d2d2b;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  vertical-align: middle;
}

#site-header .btn-default,
#site-header .mi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #d8d8d0;
  border-radius: 4px;
  background: #efefec;
  color: #2d2d2d;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}

#site-header .btn-default:hover,
#site-header .mi-btn:hover {
  background: #e6e6e0;
  text-decoration: none;
  color: #2d2d2d;
}

#site-header .btn-hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 56px;
  width: auto;
  height: 40px;
  padding: 0 10px !important;
}

#site-header .btn-hamburger .icon.hamburger-3 {
  width: 22px;
  height: 22px;
  display: block;
  flex: 0 0 auto;
}

#site-header .btn-hamburger .caret {
  display: inline-flex;
  align-items: center;
  width: 12px;
  height: 12px;
  margin: 0;
  border: 0;
  padding: 0;
  background: none;
  transform: none;
}

#site-header .btn-hamburger .caret svg {
  width: 12px;
  height: 12px;
  fill: #2d2d2b;
  display: block;
}

#site-header .dropdown.open .btn-hamburger .caret {
  transform: rotate(180deg);
}

#site-header .dropdown {
  position: relative;
}

#site-header .firmy-link {
  padding-right: 4px;
}

/* Hide simplified page chrome header when global header is present */
body:has(#site-header) .co-header {
  display: none !important;
}

@media (max-width: 900px) {
  #site-header .mi-hide-sm {
    display: none !important;
  }

  #site-header .logo {
    flex-basis: 70px;
    width: 70px;
    margin-bottom: -26px;
  }

  #site-header .logo img {
    width: 118px;
    height: 88px;
    left: -48px;
  }
}
