/* The document list uses the same theme and interactions as other header menus. */
.headerDocuments .megaPanel{
  grid-template-columns:minmax(0,1fr);
  min-width:0;
  width:min(390px,calc(100vw - 40px));
}
.headerDocuments .megaLink{white-space:normal}
.headerDocuments .megaLinkTitle,
.headerDocuments .megaLinkSub{overflow-wrap:anywhere}

@media (min-width:769px){
  .windowTop .mainNav:has(.headerDocuments){overflow:visible}
  .headerDocuments .megaPanel{
    position:absolute;
    top:calc(100% + 14px) !important;
    left:auto !important;
    right:0;
  }
}

/* Keep every navigation entry visible alongside a signed-in profile. */
@media (min-width:769px) and (max-width:1100px){
  .windowTop:has(.headerDocuments){
    flex-wrap:wrap;
    height:auto;
    min-height:52px;
    padding-top:8px;
    padding-bottom:8px;
    row-gap:6px;
  }
  .windowTop .mainNav:has(.headerDocuments){
    order:3;
    flex-basis:100%;
    margin-left:0;
    justify-content:center;
    overflow:visible;
  }
}
