.site-header { position: relative; z-index: 20; background: var(--blue); padding: 20px 32px 0; }
.header-shell { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1216px; min-height: 82px; margin-inline: auto; padding: 14px 18px 14px 22px; border: 1px solid #fff; border-radius: 18px; background: #fff; box-shadow: 0 5px 20px #123ba018; }
.header-brand { min-width: 0; display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.header-brand img { display: block; width: 42px; height: 42px; border-radius: 12px; }
.header-wordmark { font-size: 17px; line-height: 1.15; letter-spacing: -.5px; font-weight: 700; color: #152746; white-space: nowrap; }
.header-wordmark sup { margin-left: 2px; font-size: 9px; vertical-align: super; }
.header-nav { display: flex; align-items: center; justify-content: center; gap: 3px; min-width: 0; flex: 1; }
.header-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 13px; border-radius: 9px; color: #435775; font-size: 14px; line-height: 1.5; font-weight: 600; white-space: normal; text-align: center; overflow-wrap: anywhere; transition: color .16s ease, background .16s ease; }
.header-nav a:hover, .header-nav a:focus-visible { color: #214bc7; background: #edf3ff; }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-cta { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 48px; padding: 9px 10px 9px 19px; border: 1px solid #13294d; border-radius: 11px; background: #13294d; color: #fff; font-size: 15px; line-height: 1.4; font-weight: 600; white-space: nowrap; transition: background .16s ease; }
.header-cta:hover { background: #224575; }
.header-cta-arrow { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #ffffff40; border-radius: 7px; font-size: 18px; font-weight: 400; }
.header-cta-mobile, .header-menu { display: none; }
.header-menu summary { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #dbe4f1; border-radius: 10px; background: #f4f7fc; color: #203759; cursor: pointer; list-style: none; }
.header-menu summary::-webkit-details-marker { display: none; }
.header-menu summary:hover, .header-menu[open] summary { background: #e6eeff; border-color: #c0d0f6; }
.menu-glyph { position: relative; display: block; width: 18px; height: 16px; }
.menu-glyph::before, .menu-glyph::after { content: ''; position: absolute; left: 0; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .16s ease; }
.menu-glyph::before { top: 4px; }
.menu-glyph::after { top: 11px; }
.header-menu[open] .menu-glyph::before { transform: translateY(3.5px) rotate(45deg); }
.header-menu[open] .menu-glyph::after { transform: translateY(-3.5px) rotate(-45deg); }
.header-menu-panel { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; width: min(390px,100%); max-height: min(560px, calc(100svh - 180px)); overflow-y: auto; overscroll-behavior: contain; padding: 22px; border: 1px solid #dfe7f4; border-radius: 18px; background: #fff; box-shadow: 0 22px 60px #0a205f55; }
.header-menu-panel>p { margin-bottom: 12px; color: #647794; font-size: 11px; letter-spacing: 1.1px; font-weight: 700; }
.header-menu-panel nav { display: grid; gap: 4px; }
.header-menu-panel nav a { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 53px; padding: 12px; border-radius: 9px; font-size: 17px; font-weight: 600; color: #183054; }
.header-menu-panel nav a:hover, .header-menu-panel nav a:focus-visible { color: var(--blue); background: #edf3ff; }
.header-menu-panel nav a>span:last-child { color: #7186aa; font-weight: 400; }
.header-menu-footer { display: grid; gap: 5px; margin-top: 14px; padding: 17px 12px 0; border-top: 1px solid #e3eaf5; font-size: 14px; line-height: 1.5; color: #5a6f8c; }
.header-menu-footer a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--blue); font-weight: 600; }
@media (max-width: 1279px) {
  .header-nav { display: none; }
  .header-menu { display: block; }
}
@media (max-width: 780px) {
  .site-header { padding: 16px 20px 0; }
  .header-shell { min-height: 76px; gap: 12px; padding: 12px 14px; border-radius: 15px; }
}
@media (max-width: 600px) {
  .site-header { padding: 12px 14px 0; }
  .header-shell { min-height: 70px; padding: 11px 12px; gap: 8px; }
  .header-brand { gap: 8px; }
  .header-brand img { width: 34px; height: 34px; border-radius: 10px; }
  .header-wordmark { font-size: 15px; line-height: 1.2; letter-spacing: -.35px; }
  .header-wordmark>span { display: block; }
  .header-actions { gap: 7px; }
  .header-cta { min-height: 44px; padding: 10px 12px; border-radius: 9px; font-size: 13px; }
  .header-cta-desktop, .header-cta-arrow { display: none; }
  .header-cta-mobile { display: inline; }
  .header-menu-panel { width: 100%; padding: 17px; max-height: calc(100svh - 170px); }
}
@media (prefers-reduced-motion: reduce) {
  .header-nav a, .header-cta, .menu-glyph::before, .menu-glyph::after { transition: none; }
}

/* Language links remain usable without JavaScript and fit above the main nav. */
.language-bar { display: flex; justify-content: flex-end; max-width: 1216px; margin: -8px auto 8px; }
.language-selector { position: relative; }
.language-selector summary { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; color: #fff; font-size: 14px; cursor: pointer; list-style: none; border-radius: 8px; }
.language-selector summary::-webkit-details-marker { display: none; }
.language-selector summary:hover { background: #ffffff18; }
.language-selector summary>span:first-child { font-weight: 700; }
.language-options { position: absolute; z-index: 30; inset-inline-end: 0; top: calc(100% + 6px); width: min(340px, calc(100vw - 28px)); max-height: min(65svh, 560px); overflow-y: auto; overscroll-behavior: contain; padding: 8px; border: 1px solid #dfe7f4; border-radius: 14px; background: white; box-shadow: 0 16px 45px #10245140; }
.language-options a { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; padding: 10px 14px; border-radius: 8px; color: #183054; font-size: 17px; line-height: 1.5; }
.language-options a:hover,.language-options a:focus-visible,.language-options a[aria-current] { background: #edf3ff; color: #214bc7; }
@media (max-width: 520px) {
  .language-bar { margin-top: -4px; margin-bottom: 4px; }
  .language-selector summary { font-size: 13px; }
}

.header-wordmark { direction: ltr; unicode-bidi: isolate; }
.header-menu-panel a { overflow-wrap: anywhere; }
.header-menu summary:focus-visible,.language-selector summary:focus-visible { outline: 3px solid #2556e8; outline-offset: 3px; }

/* Keep the full brand and Support visible; show downloads only with a text label. */
@media (max-width: 780px) {
  .header-shell { display: flex; flex-wrap: nowrap; gap: 10px; }
  .header-brand { flex-shrink: 0; }
  .header-actions { display: flex; flex-wrap: nowrap; gap: 7px; min-width: 0; }
  .header-menu-panel { max-height: min(560px, calc(100svh - 170px)); }
  .header-actions > .header-login { display: inline-flex; min-height: 44px; min-width: 0; max-width: 130px; padding: 10px 13px; font-size: 14px; line-height: 1.3; text-align: center; overflow-wrap: anywhere; }
  .header-actions > .header-cta { display: inline-flex; border-color: #c4d3ed; background: #f3f6fd; color: #244a9d; }
  .header-actions > .header-cta:hover { background: #e6edfc; }
  .header-actions > .header-login:focus-visible,
  .header-actions > .header-cta:focus-visible { outline: 3px solid #f5b844; outline-offset: 3px; }
}
@media (max-width: 600px) {
  .header-actions > .header-cta { display: none; }
  .header-actions > .header-login { max-width: 110px; padding-inline: 11px; }
}
@media (max-width: 420px) {
  .site-header { padding-inline: 10px; }
  .header-shell { padding-inline: 10px; gap: 6px; }
  .header-brand { gap: 6px; }
  .header-brand img { width: 30px; height: 30px; }
  .header-brand .header-wordmark { display: block; font-size: 13px; }
  .header-actions { flex: 0 1 auto; gap: 4px; }
  .header-actions > .header-login { flex: 0 1 auto; max-width: 96px; padding-inline: 8px; font-size: 13px; }
}
