/* One navigation tree and one toggle for every viewport. */
.academic-header { position:fixed; inset:0 0 auto; z-index:9999; width:100%; background:rgba(5,5,16,.98); border-top:3px solid #8257ff; border-bottom:1px solid #33254e; box-shadow:0 10px 40px #0004; backdrop-filter:blur(22px); }
.academic-header, .academic-header * { box-sizing:border-box; }
.academic-header-spacer { height:99px; flex:0 0 99px; }
.academic-header__inner { min-height:96px; padding:0 24px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.academic-logo { flex:0 0 auto; width:76px; height:76px; display:block; }
.academic-logo__symbol, .academic-logo img { display:block; width:100%; height:100%; object-fit:contain; }
.academic-navigation { position:relative; display:flex; align-items:center; justify-content:flex-end; flex:1; min-width:0; gap:2px; }
.academic-nav-link { position:relative; display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:48px; padding:0 12px; border:0; border-radius:13px; background:transparent; color:#c5cad8; text-decoration:none; white-space:nowrap; font-family:inherit; font-size:14px; font-weight:700; cursor:pointer; }
.academic-nav-link:hover, .academic-nav-link.is-active { color:#fff; background:rgba(139,92,246,.15); }
.academic-nav-link.is-active { box-shadow:inset 0 -2px #8b5cf6; }
.nav-active-indicator { display:none; }
.academic-nav-link svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:2; }
.academic-dropdown { position:relative; }
.academic-dropdown__menu { display:none; position:absolute; top:100%; left:0; min-width:260px; max-width:min(520px,calc(100vw - 32px)); max-height:70vh; overflow:auto; padding:9px; background:#0a0a19; border:1px solid #493365; border-radius:14px; box-shadow:0 22px 55px #0006; }
.academic-dropdown__menu--right { left:auto; right:0; }
.academic-dropdown.is-open > .academic-dropdown__menu { display:block; }
.academic-dropdown.is-open > .academic-dropdown__button svg { transform:rotate(180deg); }
.academic-dropdown__menu a { display:block; padding:12px; color:#c5cad8; text-decoration:none; border-radius:9px; font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.academic-dropdown__menu a:hover, .academic-dropdown__menu a.is-active { background:#6543b8; color:#fff; }
.academic-header__actions, .academic-socials { display:flex; align-items:center; gap:8px; flex:0 0 auto; }
.academic-header__actions { margin-left:18px; }
.academic-header__controls { display:flex; align-items:center; gap:10px; flex:0 0 auto; }
.academic-social-link { width:40px; height:40px; display:grid; place-items:center; color:#d7d9e6; background:#8b5cf614; border:1px solid #8b5cf638; border-radius:12px; }
.academic-social-link svg { width:19px; height:19px; fill:currentColor; }
.academic-menu-toggle { display:none; align-items:center; justify-content:center; gap:10px; flex:0 0 auto; min-width:104px; height:46px; padding:0 16px; border:1px solid #a78bfa; border-radius:24px; background:#171026; color:#fff; font-family:inherit; font-size:15px; font-weight:700; cursor:pointer; }
.academic-menu-toggle span { color:inherit; -webkit-text-fill-color:currentColor; }
.academic-menu-toggle svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:2; }
html[data-theme="light"] .academic-menu-toggle { color:#312e81; background:#f0edff; border-color:#7860c9; }
.academic-header :focus-visible { outline:3px solid #a78bfa; outline-offset:3px; }
.academic-header.is-compact .academic-header__inner { min-height:76px; }
.academic-header.is-compact .academic-logo { width:58px; height:58px; }
.academic-header.is-compact .academic-menu-toggle { display:inline-flex; }
.academic-header.is-compact .academic-navigation { display:none; position:absolute; top:calc(100% + 8px); right:16px; width:min(460px,calc(100vw - 32px)); max-height:calc(100dvh - 100px); overflow:auto; overscroll-behavior:contain; padding:12px; background:#090817; border:1px solid #493365; border-radius:18px; box-shadow:0 24px 60px #0006; }
.academic-header.is-compact .academic-navigation.is-open { display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start; }
.academic-header.is-compact .academic-nav-link { width:100%; flex-shrink:0; justify-content:flex-start; white-space:normal; text-align:start; }
.academic-header.is-compact .academic-dropdown { flex-shrink:0; width:100%; }
.academic-header.is-compact .academic-dropdown__menu { position:static; min-width:0; max-width:none; max-height:none; width:100%; box-shadow:none; margin:4px 0; }
.academic-header.is-compact .academic-header__actions { margin:12px 0 0; padding-top:12px; border-top:1px solid #8b5cf640; flex-wrap:wrap; justify-content:space-between; }
@media (max-width:1700px) {
  .academic-header-spacer { height:80px; flex-basis:80px; }
}
@media (max-width:480px) {
  .academic-header__inner { padding:0 12px; }
  .academic-header.is-compact .academic-navigation { right:8px; width:calc(100vw - 16px); }
}
