aside.side{box-sizing:border-box !important;height:100vh !important;padding-bottom:0 !important}
aside.side .side-nav{
  position:static !important; left:auto !important; right:auto !important;
  top:auto !important; width:100% !important; height:auto !important;
  transform:none !important; display:flex !important;
  flex-direction:column !important; align-items:stretch !important;
  justify-content:flex-start !important; gap:0 !important;
}
aside.side .side-nav a, aside.side a.railitem{
  position:relative !important; width:100% !important;
  justify-content:flex-start !important; left:auto !important;
}
@media (max-width:900px){
  aside.side{height:auto !important;padding-bottom:8px !important}
  aside.side .side-nav a, aside.side a.railitem{justify-content:center !important}
}

/* Rail brand: one baked lockup, in flow so the nav keeps its position. */
aside.side .railbrand{display:block;padding:16px 20px 32px;line-height:0}
aside.side .railbrand img{display:block;width:205px;height:34px}
@media (max-width:900px){aside.side .railbrand{display:none}}

/* Rail fill: true black, seamless with the body. */
aside.side{background:#000;border-right:0;box-shadow:none;background-image:none}
/* Active item: one rule, shared by every page. Same treatment, driven by the URL. */
aside.side a.railitem.active,aside.side a.railitem[aria-current="page"]{background:#1a1a1a;color:#fff}

/* Header brand: the same lockup file as the rail, one copy of the artwork. */
a.hdrbrand{position:relative;display:inline-flex;align-items:flex-end;width:64px;height:11px;text-decoration:none;line-height:0}
a.hdrbrand img{position:absolute;left:0;bottom:0;display:block;width:103px;height:17px}
@media (min-width:901px){body > nav a.hdrbrand{display:none !important}}

/* Authority block: the mark as a circular visual avatar beside the name row. */
.authority-row{display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap}
.authority-face{width:96px;height:96px;border-radius:50%;object-fit:contain;background:#000;
  padding:14px;border:1px solid #1f1f1f;flex:0 0 96px;display:block}
@media (max-width:600px){.authority-face{width:64px;height:64px;flex-basis:64px;padding:10px}}
