/* ATC 3.6.43 — mobile-first portal navigation, single source of links.
   Do not change capabilities, URLs or underlying membership data. */
@media (max-width:930px) {
  /* Older templates declare display:grid!important on the legacy nav.
     This highly specific selector overrides that rule without touching the desktop sidebar. */
  html body .atc-approved-design .atc-portal-shell .atc-portal-sidebar > nav.atc-portal-nav,
  html body .atc-portal-shell .atc-portal-sidebar > nav.atc-portal-nav,
  html body .atc-approved-design .atc-portal-shell .atc-portal-sidebar > a.atc-profile-edit-shortcut,
  html body .atc-portal-shell .atc-portal-sidebar > a.atc-profile-edit-shortcut {
    display:none!important;visibility:hidden!important;
  }
  /* The modern menu is the only mobile menu; detail pages show a compact switcher. */
  html body .atc-portal-shell nav.atc-mobile-navigation-3642 {display:block!important;margin:8px 0 0!important;}
  html body .atc-portal-shell .atc-mobile-navigation-grid-3642 {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;}
  html body .atc-portal-shell .atc-mobile-navigation-grid-3642 a {min-height:72px!important;box-sizing:border-box!important;padding:12px 10px!important;}
  html body .atc-portal-shell .atc-mobile-navigation-3642 .atc-mobile-more-3642 {margin-top:11px;}
  html body .atc-portal-shell .atc-mobile-navigation-3642 a:focus-visible,
  html body .atc-portal-shell .atc-mobile-navigation-3642 summary:focus-visible {outline:3px solid #3c97cf!important;outline-offset:2px;}
  /* Detail: prioritize real content over large section tiles. */
  html body .atc-portal-shell .atc-mobile-return-3643 {display:flex;align-items:center;justify-content:flex-start;margin:0 0 8px!important;}
  html body .atc-portal-shell .atc-mobile-navigation-3642 a.atc-mobile-overview-link-3643 {display:inline-flex!important;flex-direction:row!important;gap:5px!important;align-items:center!important;justify-content:center!important;min-height:42px!important;padding:9px 14px!important;border-radius:10px!important;background:#fff!important;font-size:14px!important;font-weight:700!important;}
  html body .atc-portal-shell .atc-mobile-switch-3643>summary {display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px;min-height:44px;padding:10px 12px;border:1px solid #d3e3ed;border-radius:10px;background:#eaf4fa;color:#244e6a;font-size:14px;font-weight:700;cursor:pointer;list-style:none;}
  html body .atc-portal-shell .atc-mobile-switch-3643>summary::-webkit-details-marker {display:none;}
  html body .atc-portal-shell .atc-mobile-switch-3643[open]>summary span {transform:rotate(180deg);}
  html body .atc-portal-shell .atc-mobile-switch-3643>.atc-mobile-navigation-grid-3642 {margin-top:11px;}
  /* Keep the profile content near the top even when logged in as an administrator. */
  html body .atc-portal-shell .atc-portal-sidebar {padding-top:12px!important;padding-bottom:12px!important;}
}
@media (max-width:650px) {
  html body .atc-portal-shell .atc-mobile-navigation-grid-3642 {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;}
  html body .atc-portal-shell .atc-mobile-navigation-grid-3642 a {min-height:72px!important;padding:10px 7px!important;}
  html body .atc-portal-shell .atc-mobile-navigation-grid-3642 a span {font-size:13px!important;line-height:1.3!important;}
  html body .atc-portal-shell .atc-mobile-more-links-3642 {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  html body .atc-portal-shell .atc-mobile-more-links-3642 a {min-height:54px!important;}
}
@media (max-width:350px) {
  html body .atc-portal-shell .atc-mobile-navigation-grid-3642 a span {font-size:12px!important;}
  html body .atc-portal-shell .atc-mobile-more-links-3642 {grid-template-columns:1fr!important;}
}
