/* NUMIDZIA PRO v1.29.6 — shared public branding.
   Loaded after each page's existing styles. Only the marked header, footer
   and their brand/navigation descendants are affected. */

.np-public-header {
  --np-public-logo-width: 180px;
  --np-public-bar-height: 76px;
  --np-public-inline-padding: clamp(12px, 2vw, 32px);
  --np-public-header-column-gap: clamp(12px, 1.4vw, 28px);
}

.np-public-footer {
  --np-public-logo-width: 150px;
}

/* A continuous rectangular bar, including the scrolled state. Positioning
   remains the responsibility of each page (sticky or absolute). */
.np-public-header,
.np-public-header.is-scrolled {
  box-sizing: border-box;
  display: block;
  width: 100%;
  inline-size: 100%;
  max-width: none;
  max-inline-size: none;
  min-width: 0;
  min-inline-size: 0;
  height: auto;
  min-height: var(--np-public-bar-height);
  margin: 0;
  padding: 0;
  border: 0;
  border-block-end: 1px solid rgba(16, 53, 36, .13);
  border-radius: 0;
  color: #153d2c;
  background: rgba(250, 252, 247, .98);
  box-shadow: none;
  backdrop-filter: blur(14px) saturate(115%);
  overflow: visible;
}

.np-public-header .np-public-header-inner,
.np-public-header.is-scrolled .np-public-header-inner {
  box-sizing: border-box;
  width: 100%;
  inline-size: 100%;
  max-width: none;
  max-inline-size: none;
  min-width: 0;
  min-inline-size: 0;
  height: auto;
  min-height: calc(var(--np-public-bar-height) - 1px);
  margin: 0;
  padding: 7px var(--np-public-inline-padding);
  align-items: center;
  column-gap: var(--np-public-header-column-gap);
  row-gap: 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
}

/* Override the old square icon dimensions and the help-page mobile hiding
   rule. The footer element qualifier also wins over the later footer theme's
   width:max-content. The image keeps its alpha, full 3:1 ratio and orientation. */
.np-public-header .np-public-brand.np-public-brand-header,
footer.np-public-footer .np-public-brand.np-public-brand-footer {
  box-sizing: border-box;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-start;
  width: var(--np-public-logo-width);
  inline-size: var(--np-public-logo-width);
  max-width: 100%;
  max-inline-size: 100%;
  min-width: 0;
  min-inline-size: 0;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  gap: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  direction: ltr;
  unicode-bidi: isolate;
  line-height: 1;
  text-align: left;
  text-decoration: none;
  transform: none;
}

.np-public-header .np-public-brand > img.np-public-brand-logo,
.np-public-footer .np-public-brand > img.np-public-brand-logo {
  box-sizing: border-box;
  display: block;
  flex: 0 0 auto;
  width: 100%;
  inline-size: 100%;
  max-width: 100%;
  max-inline-size: 100%;
  min-width: 0;
  min-inline-size: 0;
  height: auto;
  block-size: auto;
  max-height: none;
  max-block-size: none;
  aspect-ratio: 3 / 1;
  object-fit: contain;
  object-position: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 1;
  visibility: visible;
  direction: ltr;
  transform: none;
}

.np-public-header .np-public-brand-header:focus-visible,
.np-public-footer .np-public-brand-footer:focus-visible {
  outline: 3px solid #b4872d;
  outline-offset: 4px;
}

/* The new wrapper must carry the original flex layout on these two pages. */
.np-public-header.npr-site-header .np-public-header-inner,
.np-public-header.np-est-header .np-public-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Derived headers may wrap whole navigation/action groups. No fixed height
   hides their second row, and their existing language links remain present. */
.np-public-header:not(.site-header):not(.np-path-header) .np-public-header-inner {
  justify-content: space-between;
  flex-wrap: wrap;
}

.np-public-header:not(.site-header) .np-public-header-inner > nav,
.np-public-header .np-contact-spaces,
.np-public-header .np-profile-spaces,
.np-public-header .np-path-header-actions {
  box-sizing: border-box;
  min-width: 0;
  min-inline-size: 0;
  max-width: 100%;
  max-inline-size: 100%;
  flex-wrap: wrap;
}

/* Estimation retains its absolute header and its untouched hero content.
   Its formerly white navigation needs dark text on the new light bar. */
.np-public-header.np-est-header nav a {
  color: #153d2c;
}

.np-public-header.np-est-header .np-est-nav-cta {
  border-color: rgba(7, 82, 57, .28);
  background: #edf4e9;
  backdrop-filter: none;
}

/* A flexible centre column avoids imposing the previous 330px minimum at
   the 1321px desktop transition. Links can form a second readable row. */
.np-public-header.site-header .main-nav,
.np-public-header.np-path-header .np-path-nav {
  min-width: 0;
  min-inline-size: 0;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 0;
}

.np-public-header.site-header .header-actions {
  min-width: 0;
  min-inline-size: 0;
}

.np-public-header.site-header .header-actions > .lang-switch,
.np-public-header.site-header .header-login,
.np-public-header.site-header .header-pathways,
.np-public-header.site-header .menu-button {
  flex-shrink: 0;
}

.np-public-header.np-path-header .np-public-header-inner {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

/* Mobile navigation opens as an extension of the full-width rectangular
   bar. Keep enough viewport room for the top strip before it scrolls away. */
.np-public-header.site-header .mobile-nav {
  box-sizing: border-box;
  top: 100%;
  left: 0;
  right: 0;
  inset-inline: 0;
  width: 100%;
  inline-size: 100%;
  max-width: none;
  max-inline-size: none;
  max-height: calc(100vh - var(--np-public-bar-height) - 60px);
  max-block-size: calc(100dvh - var(--np-public-bar-height) - 60px);
  margin: 0;
  padding: 18px var(--np-public-inline-padding);
  border: 0;
  border-block-end: 1px solid rgba(16, 53, 36, .13);
  border-radius: 0;
  background: rgba(250, 252, 247, .99);
  box-shadow: 0 12px 24px rgba(13, 63, 42, .12);
  overflow: auto;
  overscroll-behavior: contain;
}

.np-public-header.site-header .lang-menu {
  border-radius: 0;
}

@media (min-width: 1321px) {
  .np-public-header.site-header .np-public-header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    row-gap: 0;
  }
}

@media (max-width: 1320px) {
  .np-public-header {
    --np-public-logo-width: 168px;
    --np-public-bar-height: 72px;
    --np-public-header-column-gap: 12px;
  }

  .np-public-footer {
    --np-public-logo-width: 144px;
  }

  .np-public-header.site-header .np-public-header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 0;
  }

  .np-public-header.site-header .np-public-brand-header {
    grid-column: 1;
    grid-row: 1;
  }

  .np-public-header.site-header .header-actions {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    gap: 8px;
  }
}

@media (max-width: 760px) {
  .np-public-header {
    --np-public-logo-width: 144px;
    --np-public-bar-height: 64px;
    --np-public-inline-padding: 12px;
    --np-public-header-column-gap: 8px;
  }

  .np-public-footer {
    --np-public-logo-width: 132px;
  }

  .np-public-header.np-path-header .np-public-header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .np-public-header.np-path-header .np-path-header-actions {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
  }

  .np-public-header.np-est-header nav {
    gap: 8px;
  }
}

@media (max-width: 359px) {
  .np-public-header {
    --np-public-logo-width: 132px;
    --np-public-bar-height: 64px;
  }

  .np-public-footer {
    --np-public-logo-width: 120px;
  }

  /* Five flags cannot fit beside the complete logo at 320px. */
  .np-public-header.np-path-header .np-path-header-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    width: 100%;
    inline-size: 100%;
  }
}
