/* Shared header proportions across the DIGITZ product portals.
 * Keep this file identical in all three sites and load it after product styles.
 */
header.portal-header {
  --portal-header-height: 86px;
  --portal-logo-height: 24px;
  background: #fffffff5;
  border-bottom: 1px solid #dce9e3;
}
header.portal-header nav.wrap {
  width: 100%;
  max-width: var(--site-width);
  height: var(--portal-header-height);
  margin-inline: auto;
  padding: 0 var(--site-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
header.portal-header nav > a:first-child {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 1;
}
header.portal-header .portal-logo {
  display: block;
  width: auto;
  height: var(--portal-logo-height);
  max-width: none;
  object-fit: contain;
}
header.portal-header .navlinks {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  line-height: 1.5;
}
header.portal-header .navlinks > a { white-space: nowrap; }
header.portal-header .navcta {
  min-height: 44px;
  padding: 11px 18px;
  font-size: 13px;
  line-height: 1.5;
  gap: 12px;
}
header.portal-header .mobile-toggle {
  display: none;
  flex-shrink: 0;
  width: 36px;
  height: 44px;
  padding: 0;
  font-size: 23px;
  line-height: 1;
}
@media (max-width: 1200px) {
  header.portal-header {
    --portal-header-height: 78px;
    --portal-logo-height: 22px;
  }
  header.portal-header .mobile-toggle { display: block; }
  header.portal-header .navlinks {
    display: none;
    position: absolute;
    top: var(--portal-header-height);
    left: 0;
    right: 0;
    padding: 24px max(var(--site-gutter), calc((100vw - var(--site-width)) / 2 + var(--site-gutter)));
    background: #fff;
    border-bottom: 1px solid #dce9e3;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    font-size: 14px;
    max-height: calc(100dvh - var(--portal-header-height));
    overflow-y: auto;
  }
  header.portal-header .navlinks.open { display: flex; }
}
@media (max-width: 760px) {
  header.portal-header { --portal-logo-height: 18px; }
  header.portal-header nav.wrap { gap: 10px; }
}

@media (max-width: 360px) {
  header.portal-header { --portal-logo-height: 17px; }
}
