/* Public masthead layout. The spacer reserves the expanded height while scrolling. */
:root { --header-utility-height: 0px; }
body .site-header .utility-bar { display: none; }
body .site-header-space { display: none; }
body .site-header-adaptive.header-is-fixed + .site-header-space {
  display: block;
  height: var(--header-expanded-height);
}
body .site-header-adaptive {
  position: sticky; top: 0; width: 100%; height: auto;
  background: linear-gradient(115deg,light-dark(#fff,#111e30) 25%,light-dark(#f0f5fc,#182a43) 100%);
  box-shadow: 0 6px 24px light-dark(#163c6812,#0004);
}
body .site-header-adaptive.header-is-fixed { position: fixed; inset: 0 0 auto; }
body .site-header-adaptive .header-main { min-height: 0; background: transparent; border: 0; }
body .site-header-adaptive .header-main-inner {
  width: calc(100% - clamp(24px, 4vw, 56px));
  min-height: 80px;
  padding-block: 10px;
  gap: 16px;
}
body .site-header-adaptive .brand-mark { width: 64px; height: 64px; }
body .site-header-adaptive .brand-designation { color: light-dark(#58718e,#a9bed8); font-size: 13px; font-weight: 600; letter-spacing: .12em; margin-bottom: 5px; }
body .site-header-adaptive .brand-designation::before { content: ''; display: inline-block; width: 22px; height: 2px; margin: 0 8px 4px 0; background: #c7a344; }
body .site-header-adaptive .brand-mark { filter: drop-shadow(0 3px 5px #102f5315); }
body .site-header-adaptive .header-actions { gap: 4px; }
body .site-header-adaptive .header-actions > :is(a,button),
body .site-header-adaptive .header-main .language-toggle {
  --action-surface: light-dark(#ffffffc9,#1c304b); --action-border: light-dark(#ccdaeb,#405773);
  --action-ink: light-dark(#315375,#c8daf1);
  --action-hover-surface: light-dark(#e9f1fc,#294563); --action-hover-border: light-dark(#a5bfdf,#6584aa);
  --action-hover-ink: light-dark(#174b89,#f2f7ff);
  height: 44px; min-height: 44px; border: 1px solid var(--action-border); border-radius: 9px;
  background: var(--action-surface); color: var(--action-ink); font-size: 15px; font-weight: 500; line-height: 1.2;
  box-shadow: inset 0 1px 0 light-dark(#fff9,#ffffff09),0 2px 5px #12376107;
}
body .site-header-adaptive .header-actions .cabinet-header-link {
  --action-surface: light-dark(#e9f1fc,#233c5b); --action-ink: light-dark(#204e86,#d4e5ff);
}
body .site-header-adaptive .header-actions > :is(a,button):hover,
body .site-header-adaptive .header-main .language-toggle:is(:hover,[aria-expanded="true"]) {
  background: var(--action-hover-surface); border-color: var(--action-hover-border); color: var(--action-hover-ink);
}
body .site-header-adaptive .language-code { font-size: 14px; font-weight: 600; letter-spacing: .025em; }
body .site-header-adaptive .brand-compact-name { display: none; }
body .site-header-adaptive .brand-mark { transition: none; }
body .site-header-adaptive.is-scrolled { border-bottom: 1px solid var(--header-line); }
body .site-header-adaptive.is-scrolled .header-main-inner { min-height: 60px; padding-block: 8px; flex-wrap: nowrap; gap: 12px; }
body .site-header-adaptive.is-scrolled .brand { flex: 1 1 auto; min-width: 0; align-items: center; gap: 8px; }
body .site-header-adaptive.is-scrolled .brand-mark { width: 36px; height: 36px; }
body .site-header-adaptive.is-scrolled .brand-designation,
body .site-header-adaptive.is-scrolled .brand-copy > strong { display: none; }
body .site-header-adaptive.is-scrolled .brand-compact-name {
  display: block; color: light-dark(var(--header-ink),var(--theme-ink));
  font-size: 16px; font-weight: 550; line-height: 1.2; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
body .site-header-adaptive.is-scrolled .header-actions { flex: 0 0 auto; width: auto; padding: 0; border: 0; gap: 4px; }
body .site-header-adaptive.is-scrolled .header-actions > :is(a,button),
body .site-header-adaptive.is-scrolled .header-main .language-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; gap: 0;
}
body .site-header-adaptive.is-scrolled .header-actions .cabinet-header-link > span,
body .site-header-adaptive.is-scrolled .search-trigger .search-trigger-label,
body .site-header-adaptive.is-scrolled .language-code { display: none; }
@media (min-width: 600px) {
  body .site-header-adaptive .header-actions .cabinet-header-link { width: auto; padding-inline: 10px; }
  body .site-header-adaptive .header-actions .cabinet-header-link > span { display: inline; }
}
@media (min-width: 768px) {
  body .site-header-adaptive.is-scrolled .header-actions .cabinet-header-link {
    width: auto;
    padding-inline: 8px;
    gap: 5px;
    font-size: 14px;
  }
  body .site-header-adaptive.is-scrolled .header-actions .cabinet-header-link > span { display: inline; }
}
body .site-header-adaptive .header-actions :is(a,button):focus-visible { outline: 2px solid var(--focus-ink); outline-offset: 2px; }

@media (min-width: 1025px) {
  body .site-header-adaptive .brand { gap: 18px; }
  body .site-header-adaptive .brand-copy > strong { font-size: clamp(21px,1.3vw,24px); font-weight: 500; line-height: 1.25; letter-spacing: -.018em; }
}

@media (min-width: 1440px) {
  body .site-header-adaptive {
    --nav-font-expanded: 17px; --nav-font-compact: 15.5px; --nav-font-current: var(--nav-font-expanded);
    --nav-icon-expanded: 22px; --nav-icon-compact: 20px; --nav-icon-current: var(--nav-icon-expanded);
  }
  body .site-header-adaptive.is-scrolled { --nav-font-current: var(--nav-font-compact); --nav-icon-current: var(--nav-icon-compact); }
  body .site-header-adaptive .header-main-inner { width: calc(100% - 40px); }
  body .site-header-adaptive .header-nav-row {
    position: static;
    height: auto;
    padding: 4px 0;
    background: transparent;
    border: 0;
  }
  body .site-header-adaptive .desktop-nav {
    width: calc(100% - 32px);
    min-height: 64px;
    height: auto;
    justify-content: center;
    gap: clamp(2px,calc((100vw - 1440px) * .026),14px);
    padding: 4px 8px;
    border-radius: 11px;
    background: linear-gradient(110deg,#12335b,#1d4c83);
    box-shadow: inset 0 1px 0 #ffffff17,0 5px 12px #183e721c;
  }
  body .site-header-adaptive .header-nav-row .nav-group { flex: 0 1 auto; min-width: 0; }
  body .site-header-adaptive .header-nav-row .nav-main-link {
    flex: 1 1 auto; min-width: 0; min-height: 56px; padding: 4px 4px; gap: 5px;
    font-size: var(--nav-font-current); font-weight: 500; letter-spacing: -.01em; white-space: nowrap; color: #f2f6fc;
  }
  body .site-header-adaptive .header-nav-row .nav-link-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body .site-header-adaptive .header-nav-row .nav-icon-tile {
    display: grid; flex: 0 0 var(--nav-icon-current); width: var(--nav-icon-current); height: var(--nav-icon-current);
    border: 0; border-radius: 5px; background: #ffffff0a; color: #aacdfb;
  }
  body .site-header-adaptive .header-nav-row .nav-icon-tile svg { width: calc(var(--nav-icon-current) - 2px); height: calc(var(--nav-icon-current) - 2px); }
  body .site-header-adaptive .header-nav-row .nav-home-group { --home-label-gap: 5px; }
  body .site-header-adaptive .header-nav-row .nav-home-group .nav-link-text { display: block; }
  body .site-header-adaptive .header-nav-row .nav-home-group .nav-main-link { position: relative; min-width: 44px; justify-content: center; gap: var(--home-label-gap); }
  body .site-header-adaptive.is-scrolled .header-nav-row .nav-home-group .nav-link-text { display: none; }
  body .site-header-adaptive.is-scrolled .header-nav-row .nav-home-group .nav-main-link { gap: 0; }
  body .site-header-adaptive .header-nav-row .nav-group > button { width: 24px; min-width: 24px; height: 100%; min-height: 56px; padding: 0; color: #b0c8e7; }
  body .site-header-adaptive.is-scrolled .header-nav-row .nav-main-link,
  body .site-header-adaptive.is-scrolled .header-nav-row .nav-group > button { min-height: 44px; }
  body .site-header-adaptive .header-nav-row .nav-home-group .nav-icon-tile { background: transparent; }
  body .site-header-adaptive .header-nav-row .nav-group > button svg { transform: none; }
  body .site-header-adaptive .header-nav-row .nav-group > button[aria-expanded="true"] svg { transform: rotate(180deg); }
  body .site-header-adaptive.is-scrolled {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
  }
  body .site-header-adaptive.is-scrolled :is(.header-main,.header-main-inner) { display: contents; }
  body .site-header-adaptive.is-scrolled .brand { grid-column: 1; grid-row: 1; }
  body .site-header-adaptive.is-scrolled .brand-copy { display: none; }
  body .site-header-adaptive.is-scrolled .header-actions { grid-column: 3; grid-row: 1; }
  body .site-header-adaptive.is-scrolled .header-actions .menu-button { display: none; }
  body .site-header-adaptive.is-scrolled .header-nav-row { grid-column: 2; grid-row: 1; min-width: 0; padding: 0; }
  body .site-header-adaptive.is-scrolled .desktop-nav { width: 100%; min-height: 52px; }
  body .site-header-adaptive .nav-mega {
    position: absolute; top: 100%;
    left: 16px; right: 16px; width: auto; padding: 0;
    border-color: var(--header-line); border-top-color: #d2b25c; border-radius: 0 0 11px 11px;
    box-shadow: 0 16px 36px #132c4826,0 3px 8px #132c480a;
    max-height: max(0px,calc(100dvh - var(--header-height) - 12px));
    transform-origin: top center;
  }
  body .site-header-adaptive .nav-mega-intro { padding: 14px 16px; gap: 4px 16px; box-shadow: none; }
  body .site-header-adaptive .nav-mega-links { padding: 12px 16px 16px; gap: 8px; }
  body .site-header-adaptive .nav-mega-links > a { border-radius: 9px; }
  body .site-header-adaptive .nav-mega-links > a:focus-visible,
  body .site-header-adaptive .nav-mega-intro > a:focus-visible { outline: 2px solid var(--focus-ink); outline-offset: 2px; }
  body .site-header-adaptive .nav-mega-links > a[aria-current="page"] {
    border-color: light-dark(#b9cfea,var(--theme-border)); background: light-dark(#e6eef9,var(--theme-raised));
    box-shadow: inset 3px 0 0 #2458a6; color: light-dark(#163f73,var(--theme-link));
  }
  body .site-header-adaptive .nav-mega-links > a[aria-current="page"] > .navigation-icon { background: #2458a6; border-color: #2458a6; color: #fff; }
  body .site-header-adaptive .nav-mega-links > a:active { box-shadow: inset 0 0 0 1px light-dark(#b9cfea,var(--theme-border)); }
  body .site-header-adaptive .nav-mega-links > a[aria-current="page"]:active { box-shadow: inset 3px 0 0 #2458a6,inset 0 0 0 1px light-dark(#b9cfea,var(--theme-border)); }
}
@media (min-width: 1440px) and (max-width: 1599px) {
  body .site-header-adaptive { --nav-font-expanded: 16px; --nav-font-compact: 14.5px; --nav-icon-compact: 18px; }
  body .site-header-adaptive.is-scrolled .desktop-nav { gap: 2px; padding-inline: 4px; }
  body .site-header-adaptive .header-nav-row .nav-home-group { --home-label-gap: 4px; }
  body .site-header-adaptive .header-nav-row .nav-main-link { padding-inline: 2px; gap: 4px; }
  body .site-header-adaptive .header-nav-row .nav-group > button { width: 20px; min-width: 20px; }
}
@media (min-width: 1800px) {
  body .site-header-adaptive { --nav-font-expanded: 18px; --nav-font-compact: 16px; }
}
@media (min-width: 1920px) {
  body .site-header-adaptive.is-scrolled .brand-copy { display: block; }
}
@media (width < 1440px) {
  body .site-header-adaptive .header-nav-row { display: none; }
  body .site-header-adaptive .header-main .menu-button { display: inline-grid; }
}
@media (max-width: 1024px) {
  body .site-header-adaptive .header-main-inner { flex-wrap: wrap; gap: 10px; }
  body .site-header-adaptive .brand { flex-basis: 100%; gap: 16px; }
  body .site-header-adaptive .brand-copy > strong { font-size: 22px; }
  body .site-header-adaptive .header-actions { width: 100%; justify-content: flex-end; padding: 0; border: 0; }
}
@media (max-width: 599px) {
  body .site-header-adaptive :is(.language-options,.language-load-error) { left: 0; right: auto; }
  body .site-header-adaptive .header-actions .cabinet-header-link { display: inline-flex; }
  body .site-header-adaptive .header-actions > :is(a,button),
  body .site-header-adaptive .header-main .language-toggle {
    width: 44px; min-width: 44px; padding: 0; gap: 0;
  }
  body .site-header-adaptive .header-actions .cabinet-header-link > span,
  body .site-header-adaptive .header-actions .search-trigger .search-trigger-label,
  body .site-header-adaptive .language-code { display: none; }
  body .site-header-adaptive .header-main .language-toggle { justify-content: center; }
  body .site-header-adaptive.is-scrolled .header-main-inner { gap: 8px; }
  body .site-header-adaptive.is-scrolled .brand { flex: 0 0 auto; }
  body .site-header-adaptive.is-scrolled .brand-mark { width: 32px; height: 32px; }
  body .site-header-adaptive.is-scrolled .brand-copy { display: none; }
  body .site-header-adaptive.is-scrolled .header-actions { margin-left: auto; }
}
@media (min-width: 460px) and (max-width: 599px) {
  body .site-header-adaptive:not(.is-scrolled) .header-actions .cabinet-header-link {
    width: auto; gap: 5px; padding-inline: 8px;
  }
  body .site-header-adaptive:not(.is-scrolled) .header-actions .cabinet-header-link > span { display: inline; }
}
@media (max-width: 480px) {
  body .site-header-adaptive .brand { align-items: flex-start; gap: 12px; }
  body .site-header-adaptive .brand-mark { width: 48px; height: 48px; border-radius: 5px; }
  body .site-header-adaptive .brand-designation { margin-bottom: 3px; letter-spacing: .035em; }
  body .site-header-adaptive .brand-copy > strong { font-size: 18px; line-height: 1.3; text-wrap: pretty; }
}
body .mobile-panel { --focus-ink: light-dark(#1756d1,#9bbfff); }
body .mobile-panel .mobile-nav-heading > :is(a,button):focus-visible,
body .mobile-panel .mobile-subnav > a:focus-visible { outline: 2px solid var(--focus-ink); outline-offset: -2px; }
body .mobile-panel .mobile-nav-heading > :is(a,button):active,
body .mobile-panel .mobile-subnav > a:active { background: light-dark(#dce7f6,#ffffff14); }

@media (prefers-reduced-motion: reduce) {
  body .site-header-adaptive, body .site-header-adaptive * { transition: none; }
}
@media print {
  body .site-header-adaptive.header-is-fixed { position: static; display: block; }
  body .site-header-adaptive.header-is-fixed + .site-header-space { display: none; }
}

/* Light menu surfaces share the approved footer blue. */
@media (min-width: 1440px) {
  :root:not([data-theme="dark"]) body .site-header-adaptive .desktop-nav {
    background: var(--brand-blue, #1756d1);
    border-color: var(--brand-blue, #1756d1);
  }
  :root:not([data-theme="dark"]) body .site-header-adaptive .header-nav-row .nav-group:not(.is-current-section) .nav-icon-tile {
    color: #edf3ff;
  }
}
:root:not([data-theme="dark"]) body .mobile-panel {
  --brand-ink: #fff;
  --brand-muted: #edf3ff;
  --brand-link: #fff;
  --brand-line: #ffffff40;
  --brand-pale: var(--brand-blue, #1756d1);
  --brand-tint: #ffffff1c;
  --focus-ink: #fff;
  background: var(--brand-blue, #1756d1);
  color: #fff;
}
:root:not([data-theme="dark"]) body .mobile-panel .panel-top {
  background: var(--brand-blue, #1756d1);
}
:root:not([data-theme="dark"]) body .mobile-panel :is(.icon-button,.mobile-nav-heading > button):hover {
  background: #ffffff1c;
  color: #fff;
  border-color: #ffffff70;
}
:root:not([data-theme="dark"]) body .mobile-panel .mobile-nav-heading > :is(a,button):active,
:root:not([data-theme="dark"]) body .mobile-panel .mobile-subnav > a:active {
  background: #ffffff1c;
  color: #fff;
}

/* Shared category underline follows the Home navigation treatment. */
@media (min-width: 1440px) {
  body .site-header.site-header-adaptive .header-nav-row .nav-group:is(:hover,:focus-within,.is-open,.is-current-section) {
    background: transparent;
    box-shadow: none;
  }
  body .site-header.site-header-adaptive .header-nav-row .nav-group:is(:hover,:focus-within,.is-open,.is-current-section) > :is(.nav-main-link,button) {
    color: #fff;
  }
  body .site-header.site-header-adaptive .header-nav-row .nav-group:is(:hover,:focus-within,.is-open,.is-current-section) .nav-icon-tile {
    background: transparent;
    color: #fff;
  }
  body .site-header.site-header-adaptive .header-nav-row .nav-group > :is(a,button):active,
  body .site-header.site-header-adaptive .header-nav-row .nav-group > button:hover {
    background: transparent;
    box-shadow: none;
    color: #fff;
  }
  body .site-header.site-header-adaptive .header-nav-row .nav-group .nav-main-link {
    position: relative;
  }
  body .site-header.site-header-adaptive .header-nav-row .nav-group .nav-main-link::after {
    content: '';
    display: block;
    position: absolute;
    inset: auto 9px auto;
    top: calc(50% + max(.6em, calc(var(--nav-icon-current, 22px) / 2)) + 3px);
    width: auto;
    height: 3px;
    border-radius: 2px;
    background: #d2b25c;
    opacity: 0;
    transform: none;
    pointer-events: none;
  }
  body .site-header.site-header-adaptive .header-nav-row .nav-group:is(:hover,:focus-within,.is-open,.is-current-section) .nav-main-link::after {
    opacity: 1;
  }
  body .site-header.site-header-adaptive .header-nav-row .nav-group > :is(a,button):focus-visible {
    outline: 2px solid #efcf75;
    outline-offset: -2px;
  }
}

/* Mobile category underline matches the desktop navigation. */
body .mobile-panel#mobile-navigation .mobile-nav :is(.mobile-nav-group,.mobile-nav-heading),
body .mobile-panel#mobile-navigation .mobile-nav .mobile-nav-heading > :is(a,button),
body .mobile-panel#mobile-navigation .mobile-nav .mobile-subnav > a {
  background: transparent;
  box-shadow: none;
}
body .mobile-panel#mobile-navigation .mobile-nav .mobile-nav-heading > button {
  border-color: transparent;
}
body .mobile-panel#mobile-navigation .mobile-nav .mobile-nav-heading > a,
body .mobile-panel#mobile-navigation .mobile-nav .mobile-subnav > a {
  text-decoration-line: none;
  text-decoration-color: #d2b25c;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
  text-decoration-skip-ink: auto;
}
body .mobile-panel#mobile-navigation .mobile-nav .mobile-nav-group:is(.is-current-section,.is-open,:hover,:focus-within) > .mobile-nav-heading > a,
body .mobile-panel#mobile-navigation .mobile-nav .mobile-nav-heading > a:is([aria-current="page"],[aria-current="location"],:active),
body .mobile-panel#mobile-navigation .mobile-nav .mobile-subnav > a:is([aria-current="page"],[aria-current="location"],:hover,:focus-visible,:active) {
  text-decoration-line: underline;
}
body .mobile-panel#mobile-navigation .mobile-nav .mobile-nav-heading > :is(a,button):focus-visible,
body .mobile-panel#mobile-navigation .mobile-nav .mobile-subnav > a:focus-visible {
  outline-color: #efcf75;
}

/* Mobile drawer closes with the institute signature. */
body .mobile-panel#mobile-navigation .panel-foot-brand {
  margin-top: 14px;
  padding: 16px 0 0;
}
body .mobile-panel#mobile-navigation .mobile-institute-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 48px;
  color: #fff;
  text-decoration: none;
}
body .mobile-panel#mobile-navigation .mobile-institute-mark {
  display: block;
  flex: 0 0 44px;
  width: 44px;
  height: 42px;
  object-fit: contain;
  border-radius: 3px;
}
body .mobile-panel#mobile-navigation .mobile-institute-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  line-height: 1.2;
}
body .mobile-panel#mobile-navigation .mobile-institute-copy > span {
  color: #edf3ff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
}
body .mobile-panel#mobile-navigation .mobile-institute-copy > strong {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
}
body .mobile-panel#mobile-navigation .mobile-institute-brand:focus-visible {
  outline: 2px solid #efcf75;
  outline-offset: 5px;
  border-radius: 3px;
}
