/* NMG sticky header enhancement, 26.11.2026.
   Preserves original header at page top, makes it compact on scroll.
   Does not change the mobile language switch or navigation handlers. */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 900;
  transition: background-color .22s ease, box-shadow .22s ease;
}
.header .nav,
.header .header-brand-image {
  transition: height .22s ease, width .22s ease;
}
.header.nmg-is-scrolled {
  background: rgba(19, 15, 24, .94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 5px 22px rgba(0,0,0,.22);
}
@media (min-width: 701px) {
  .header.nmg-is-scrolled .nav {height: 76px;}
  .header.nmg-is-scrolled .header-brand-image {width: 122px;}
}
@media (max-width: 700px) {
  .header.nmg-is-scrolled .nav {height: 68px;}
  .header.nmg-is-scrolled .header-brand-image {width: 112px;}
  .header.nmg-is-scrolled .nav-links {top: calc(100% - 2px);}
}
/* Allow direct navigation to content anchors without hiding headings. */
html {scroll-padding-top: 104px;}
@media (max-width:700px) {html {scroll-padding-top: 76px;}}
@media (prefers-reduced-motion:reduce) {
  .header, .header .nav, .header .header-brand-image {transition:none;}
}
