/* The PSC bar (PSC Home, Forums, Videos, Collections, Patient simulator) in one row on phones (Claude, 1 Dec 2026; Ahmed 21:51:
   "optimize the most topbar on mobile view"). It wrapped onto two rows (99px); now one row of icon-over-label tabs, about 46px,
   the shield on the left and the tools on the right. Loaded after psc-primary-nav.css and psc-ui-v1.css. */
@media (max-width: 56rem) {
  html body nav.psc-network { display: flex !important; flex-wrap: nowrap !important; align-items: center !important; gap: .2rem !important;
    min-block-size: 0 !important; padding: .2rem max(.35rem, env(safe-area-inset-right)) .2rem max(.35rem, env(safe-area-inset-left)) !important; }
  html body nav.psc-network > .psc-network__brand { display: inline-flex !important; flex: none !important; align-items: center; justify-content: center;
    min-inline-size: 1.9rem !important; min-block-size: 2.5rem; padding: 0 .2rem !important; }
  html body nav.psc-network > .psc-network__sites { display: flex !important; flex: 1 1 auto !important; min-inline-size: 0 !important; max-inline-size: none !important;
    flex-wrap: nowrap !important; justify-content: space-between !important; gap: .1rem !important; overflow-x: auto !important; scrollbar-width: none; margin: 0 !important; }
  html body nav.psc-network > .psc-network__sites::-webkit-scrollbar { display: none; }
  html body nav.psc-network > .psc-network__sites > a { flex: none !important; display: inline-flex !important; flex-direction: column !important;
    align-items: center !important; justify-content: center !important; gap: .12rem !important; min-block-size: 2.6rem !important; min-inline-size: 0 !important;
    padding: .2rem .22rem !important; font-size: .62rem !important; line-height: 1.12 !important; text-align: center !important; border-radius: .65rem !important; }
  html body nav.psc-network > .psc-network__sites > a svg { display: block !important; inline-size: 1.05rem !important; block-size: 1.05rem !important; margin: 0 !important; }
  html body nav.psc-network > .psc-network__sites > a span { white-space: normal !important; overflow-wrap: normal !important; word-break: normal !important; hyphens: none !important; max-inline-size: 4rem; }
  html body nav.psc-network > .psc-network__tools { flex: none !important; display: inline-flex !important; align-items: center; }
}

/* Small phones (360-380px): "PSC Home" and "Patient simulator" take two lines, so the five tabs still fit. */
@media (max-width: 23.75rem) {
  html body nav.psc-network > .psc-network__sites > a span { max-inline-size: 3.3rem; }
  html body nav.psc-network > .psc-network__sites > a { padding: .2rem .18rem !important; }
}

