/* Shared navigation on every generated page. */
.reference-wrap { width:calc(100% - 112px); max-width:1492px; margin-inline:auto; }
.site-header.reference-header {
  position:sticky; top:0; inset-inline:auto; height:80px; z-index:110; background:linear-gradient(110deg,#001f27,#03172f 73%,#10233e);
  border-bottom:1px solid #7cb2ce22; box-shadow:none; backdrop-filter:none;
}
.reference-header-inner { display:flex; align-items:center; gap:22px; height:80px; }
.reference-brand { display:flex; align-items:center; gap:8px; flex-shrink:0; color:#f5f8ff; }
.reference-brand img { width:50px; height:50px; object-fit:contain; filter:none; }
.reference-brand > span { font-size:35px; font-weight:800; letter-spacing:-1.8px; }
.reference-brand-caption { border-left:1px solid #8ca3bd45; padding-left:23px; color:#d6d7e2; font-size:10px; font-weight:600; letter-spacing:1.7px; text-transform:uppercase; white-space:nowrap; }
.reference-header .reference-nav {
  position:static; flex:1; display:flex; justify-content:center; align-items:center; gap:7px;
  margin:0; padding:0; background:none; border:0; border-radius:0; box-shadow:none; backdrop-filter:none; overflow:visible;
}
.reference-nav > a, .reference-dropdown > summary {
  display:flex; align-items:center; gap:10px; padding:12px 15px; border:0; border-radius:26px;
  font-size:clamp(13px,.96vw,16px); font-weight:650; line-height:1.25; color:#f4f4fd; white-space:nowrap;
}
.reference-header .reference-nav > a[aria-current=page] { background:linear-gradient(130deg,#0087ff,#0063f3); color:white; padding-inline:23px; }
.reference-nav > a:hover, .reference-dropdown > summary:hover { color:white; background:#ffffff0c; }
.reference-dropdown { position:relative; }
.reference-dropdown > summary { list-style:none; cursor:pointer; user-select:none; }
.reference-dropdown > summary::-webkit-details-marker { display:none; }
.reference-dropdown > summary > span { width:7px; height:7px; border-bottom:1.5px solid; border-right:1.5px solid; transform:rotate(45deg) translateY(-2px); }
.reference-dropdown[open] > summary > span { transform:rotate(225deg) translate(-2px,-1px); }
.reference-dropdown-panel { position:absolute; top:calc(100% + 12px); left:0; min-width:240px; padding:8px; border:1px solid #86b1d242; border-radius:12px; background:#0b2439; box-shadow:0 16px 40px #0006; z-index:110; }
.reference-header .reference-dropdown-panel > a { display:block; color:#e4edf7; font-size:14px; padding:12px; border:0; border-radius:6px; line-height:1.6; }
.reference-header .reference-dropdown-panel > a:hover { background:#ffffff0b; color:#63d8f7; }
.reference-contact { display:flex; align-items:center; gap:10px; padding:11px 21px; border:1.5px solid #b8baff; color:#f0f2ff; border-radius:28px; font-size:14px; font-weight:650; white-space:nowrap; box-shadow:inset 0 0 15px #a3b0ff09; }
.reference-contact svg { width:19px; height:19px; color:#c7caff; }
.reference-contact:hover { background:#ffffff0d; }
.reference-header .menu-toggle { display:none; }

.reference-header .reference-dropdown.is-current > summary {
  color:#fff; background:linear-gradient(130deg,#0087ff,#0063f3);
}
.reference-header .reference-dropdown-panel > a[aria-current=page] {
  color:#89dfff; background:#ffffff0d;
}
@media(max-width:1450px) {
  .reference-header-inner { gap:15px; }
  .reference-brand > span { font-size:31px; }
  .reference-brand-caption { padding-left:16px; font-size:9px; letter-spacing:1.3px; }
  .reference-nav > a,.reference-dropdown > summary { padding-inline:12px; }
  .reference-contact { font-size:13px; padding-inline:17px; }
}
@media(max-width:1200px) {
  .reference-brand-caption { display:none; }
}
@media(max-width:1020px) {
  .reference-wrap { width:calc(100% - 64px); }
  .reference-header .menu-toggle { display:flex; margin-left:0; border-radius:8px; width:40px; height:40px; border-color:#7496af66; flex-shrink:0; }
  .reference-contact { margin-left:auto; }
  .reference-header .reference-nav {
    display:none; position:absolute; left:0; right:0; top:80px;
    max-height:calc(100dvh - 80px); overflow:auto; flex-direction:column; align-items:stretch;
    gap:5px; padding:20px 32px; background:#071e34; border-bottom:1px solid #5e87a36b; z-index:110;
  }
  .reference-header .reference-nav.open { display:flex; }
  .reference-header .reference-nav > a,.reference-dropdown > summary { border-radius:8px; padding:13px 16px; font-size:16px; }
  .reference-dropdown-panel { position:static; margin:5px 0 8px 15px; min-width:0; background:#0c2942; box-shadow:none; }
}
@media(max-width:650px) {
  .reference-wrap { width:calc(100% - 36px); }
  .site-header.reference-header,.reference-header-inner { height:74px; }
  .reference-brand { gap:5px; }
  .reference-brand img { width:39px; height:42px; }
  .reference-brand > span { font-size:28px; letter-spacing:-1.5px; }
  .reference-contact { padding:9px 11px; font-size:11px; gap:7px; }
  .reference-contact svg { width:16px; height:16px; }
  .reference-header-inner { gap:13px; }
  .reference-header .menu-toggle { width:36px; height:38px; }
  .reference-header .reference-nav { top:74px; padding:18px; max-height:calc(100dvh - 74px); }
}
@media(max-width:360px) {
  .reference-brand > span { font-size:25px; }
  .reference-brand img { width:33px; }
  .reference-contact { font-size:10px; padding-inline:9px; }
  .reference-contact svg { display:none; }
  .reference-header-inner { gap:10px; }
}
