/* Header and language-selector stylesheet, loaded after the shared styles.
   Keep the flag/code stack even when older CSS or generic link rules are present. */
.language-switch.language-switch {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
  max-width: 100%;
  flex-shrink: 0;
}
.language-switch.language-switch > a {
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 0 0 40px;
  width: 40px;
  height: 54px;
  padding: 6px 0 10px;
  box-sizing: border-box;
  text-align: center;
}
.language-switch.language-switch > a > img {
  display: block;
  flex: none;
  width: 24px;
  height: 16px;
  object-fit: contain;
  margin: 0;
}
.language-switch.language-switch > a > .language-code {
  display: block;
  flex: none;
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: 11px;
  line-height: 12px;
  letter-spacing: .04em;
  text-align: center;
}
.language-switch.language-switch > a[aria-current=page]::after {
  left: 14px;
  right: 14px;
  bottom: 3px;
}

/* Header identity and navigation: keep the selector at the upper right. */
.site-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "identity languages" "navigation navigation";
  align-items: start;
  column-gap: 32px;
  row-gap: 22px;
  padding-block: 24px 28px;
}
.site-header > .brand {
  grid-area: identity;
  inline-size: max-content;
  max-inline-size: 100%;
  gap: 8px;
}
.site-header .brand-name {
  font-size: 28px;
  line-height: 1.15;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: manual;
}
.site-header .brand-sub {
  font-size: 14px;
  line-height: 1.45;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: manual;
}
.site-header > nav {
  grid-area: navigation;
  justify-self: start;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  inline-size: max-content;
  max-inline-size: 100%;
  min-inline-size: 0;
  padding-block-end: 14px;
  border-block-end: 1px solid var(--navy);
  font-size: 15px;
  line-height: 1.5;
  color: var(--navy);
}
.site-header > nav > a {
  white-space: nowrap;
}
.site-header > .language-switch.language-switch {
  grid-area: languages;
  justify-self: end;
  align-self: start;
  gap: 4px;
  margin: 0;
}
.site-header > .language-switch.language-switch > a {
  flex-basis: 32px;
  width: 32px;
  height: 44px;
  gap: 4px;
  padding: 4px 0 7px;
}
.site-header > .language-switch.language-switch > a > img {
  width: 21px;
  height: 14px;
}
.site-header > .language-switch.language-switch > a > .language-code {
  font-size: 10px;
  line-height: 11px;
}
.site-header > .language-switch.language-switch > a[aria-current=page]::after {
  left: 11px;
  right: 11px;
  bottom: 2px;
}
@media (max-width: 640px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "languages" "identity" "navigation";
    row-gap: 14px;
    padding-block: 16px 24px;
  }
  .site-header .brand-name {
    font-size: 24px;
  }
  .site-header .brand-sub {
    font-size: 13px;
  }
  .site-header > nav {
    font-size: 13px;
    column-gap: 14px;
    padding-block-end: 12px;
  }
}
@media (max-width: 640px) {
  /* Balance whole navigation links across rows instead of stranding one item. */
  .site-header > nav {
    display: block;
    text-wrap: balance;
    line-height: calc(1.5em + 12px);
  }
  .site-header > nav > a {
    display: inline-block;
    margin-inline-end: 14px;
    line-height: 1.5;
    vertical-align: baseline;
  }
  .site-header > nav > a:last-child {
    margin-inline-end: 0;
  }
}

/* Uniform black framing; the same complete original raster logo in both areas. */
.site-header{grid-template-columns:minmax(0,1fr);grid-template-areas:"languages" "identity" "navigation";row-gap:14px;padding-block:18px 28px;background:#000;border-bottom-color:#000}
.site-header > .brand{display:block;justify-self:center;inline-size:min(100%,480px);max-inline-size:100%;min-width:0}
.site-header .brand-logo{display:block;width:100%;height:auto;object-fit:contain}
.site-header > nav{justify-self:center;color:#fff;border-bottom-color:#fff;font-size:15px}
.site-header > nav a:hover{color:#e0d3bf}
.site-header a:focus-visible{outline-color:#e0c18b}
.site-header > .language-switch.language-switch > a{flex-basis:28px;width:28px;height:40px;color:#fff}
.site-header > .language-switch.language-switch > a > img{width:18px;height:12px}
.site-header > .language-switch.language-switch > a > .language-code{font-size:9.5px;line-height:11px;color:#fff}
.site-header > .language-switch.language-switch > a[aria-current=page]::after{left:10px;right:10px;background:#e0c18b}
.branded-footer{background:#000;color:#e5e5e5;align-items:center;gap:24px 40px}
.branded-footer .footer-logo{display:block;width:min(100%,260px);max-width:100%;height:auto;object-fit:contain;flex:none}
.branded-footer .footer-details{display:flex;flex:1 1 220px;flex-direction:column;gap:16px;min-width:0}
.branded-footer .footer-links{line-height:1.8;color:#e5e5e5}
.branded-footer a:focus-visible{outline-color:#e0c18b}
@media(max-width:640px){.site-header{padding-block:16px 24px;row-gap:14px}.site-header > nav{font-size:14px}.branded-footer{gap:20px}}

/* Preserve PR18 geometry and typography; only the requested line is unbroken. */
.branded-footer .footer-professional{white-space:nowrap}
.branded-footer .footer-logo{margin-inline:0}
@media(max-width:568px){.branded-footer .footer-logo{margin-inline:auto;transform:translateX(-1.640625%)}}
.site-header .brand-logo{transform:translateX(-1.640625%)}

/* Six complete navigation labels: adapt only the horizontal menu typography. */
.site-header > nav{flex-wrap:nowrap;white-space:nowrap;max-inline-size:calc(100vw - 16px)}
@media(max-width:640px){
  .site-header > nav{display:flex;flex-wrap:nowrap;text-wrap:nowrap;font-size:var(--compact-menu-size,clamp(12.4px,calc(2.285714vw + 5.085715px),14px));gap:var(--compact-menu-gap,clamp(2px,calc(3.571429vw - 9.428573px),14px));max-inline-size:var(--compact-menu-width,calc(100vw - 8px))}
  .site-header > nav > a{margin-inline-end:0;flex:none}
  html:lang(en) .site-header > nav{--compact-menu-size:clamp(12.25px,calc(2.5vw + 4.25px),14px)}
  html:lang(de) .site-header > nav{--compact-menu-size:clamp(10.3px,calc(2.428571vw + 2.528573px),14px)}
  html:lang(nb) .site-header > nav{--compact-menu-size:clamp(10.4px,calc(2.714286vw + 1.714285px),14px)}
  html:lang(nl) .site-header > nav{--compact-menu-size:clamp(9.8px,calc(2.714286vw + 1.114285px),14px)}
  html:lang(ru) .site-header > nav{--compact-menu-size:clamp(9.5px,calc(1.571429vw + 4.471427px),14px);--compact-menu-gap:clamp(1.25px,calc(3.928571vw - 11.321427px),14px);--compact-menu-width:calc(100vw - 2px);letter-spacing:clamp(-.04em,calc(.391429vw - 1.632573px),0px)}
}
@media(min-width:641px) and (max-width:767px){html:lang(ru) .site-header > nav{font-size:14px}}
/* The requested legal separator occupies the existing gap, without moving links. */
.branded-footer .footer-links > a:first-child{position:relative}
.branded-footer .footer-links > a:first-child::after{content:"·";position:absolute;top:0;left:calc(100% + 10px);transform:translateX(-50%);pointer-events:none}

/* Give the six labels more breathing room without changing header geometry. */
.site-header > nav{position:relative;column-gap:28px;max-inline-size:calc(100vw - 2px);border-bottom-color:transparent}
/* Retain the original border's layout space; center the visible rule on the menu. */
.site-header > nav::after{content:"";position:absolute;left:50%;bottom:1px;transform:translateX(-50%);width:94%;height:1px;background:#fff;pointer-events:none}
@media(max-width:640px){
  .site-header > nav{column-gap:calc(var(--compact-menu-gap,clamp(2px,calc(3.571429vw - 9.428573px),14px)) + 1px);max-inline-size:calc(100vw - 2px)}
  .site-header > nav::after{bottom:-1px}
  /* Long Russian labels keep their original font size at the narrowest widths. */
  html:lang(ru) .site-header > nav{letter-spacing:calc(clamp(-.04em,calc(.391429vw - 1.632573px),0px) - .09px)}
}
/* French labels use the existing compact-menu approach; other locales are unchanged. */
@media(max-width:640px){html:lang(fr) .site-header > nav{--compact-menu-size:clamp(11.6px,calc(3.428571vw + .628573px),14px)}}
/* The shared 404 keeps its original 24x16 flags; only their link boxes may shrink. */
.legal-content > .language-switch.language-switch > a{flex:0 1 40px;min-inline-size:24px}
