/* Mirror & Metric — dark mega menus adapted from the approved homepage treatment.
   Scoped to the Blueprint navigation; page content and global footer untouched. */
.site-header .mega-panel {
  background: #141d29;
  color: #f0f3f6;
  border: 1px solid rgba(180,200,225,.22);
  border-radius: 12px;
  box-shadow: 0 26px 65px rgba(0,0,0,.48);
  padding: 28px 30px;
  gap: 26px;
  width: min(900px, calc(100vw - 48px));
}
.site-header .mega-intro strong { color: #f4f5f7; }
.site-header .mega-intro span { color: #b7c3d1; }
.site-header .mega-intro a { color: #c6d9f2; }
.site-header .mega-columns { gap: 26px; }
.site-header .mega-group a { color: #ced8e3; transition: color .18s ease; }
.site-header .mega-group a:hover, .site-header .mega-group a:focus-visible,
.site-header .mega-intro a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.site-header .mega-group .division {
  color: #f5f7fa;
  border-bottom: 1px solid rgba(184,203,223,.25);
  padding-bottom: 10px;
  margin-bottom: 2px;
}
/* Keep the wide dropdowns inside the viewport even when their triggers are near an edge. */
@media (min-width:981px) {
  .site-header .primary-nav { position: static; }
  .site-header .header-inner { position: relative; }
  .site-header .mega { position: static; }
  .site-header .mega-panel { top: calc(100% - 1px); left: auto; right: 0; transform: none; }
  .site-header .mega-panel::before { display:none; }
  .site-header .mega[open] > summary { color: #fff; }
}
@media (max-width:980px) {
  .site-header .primary-nav .mega { position: static; }
  .site-header .mega-panel {
    position: static; width: 100%; transform: none; margin: 3px 0 12px;
    padding: 19px; box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
    border-radius: 9px;
  }
  .site-header .mega-panel::before { display:none; }
  .site-header .mega-intro strong { font-size: 26px; }
  .site-header .mega-intro a { margin-top: 9px; }
  .site-header .mega-columns { gap: 20px; margin-top: 21px; }
  .site-header .mega-group a { font-size: 13px; }
}
@media (max-width:650px) {
  .site-header .mega-columns { grid-template-columns: 1fr; }
  .site-header .mega-panel { padding: 17px; }
  .site-header .mega-group { gap: 9px; }
}
