/* DSU brand (dsu.edu/marketing/brand): DSU Blue #004165, Trojan Blue #00A9E0,
   light gray #F4F4F4, dark gray #4D4F53; Roboto is the brand's web typeface.
   The site header shared by every page lives here too. */
@import url(/static/fonts/roboto.css);
:root { --dsu-blue: #004165; --trojan-blue: #00a9e0; --dsu-light-gray: #f4f4f4; --dsu-dark-gray: #4d4f53; }
.site-nav { display: flex; align-items: center; gap: 18px; padding: 0 16px; height: 48px; flex: none;
  background: var(--dsu-blue); color: #fff; border-bottom: 3px solid var(--trojan-blue); font-family: Roboto, system-ui, sans-serif; }
.site-nav .brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: .01em; margin-right: 8px; }
.site-nav .brand img { width: 34px; height: 34px; object-fit: contain; }
.site-nav .brand b { color: var(--trojan-blue); font-weight: 700; }
.site-nav .nav-link { color: #cfe3ef; text-decoration: none; font-size: 14px; font-weight: 500; padding: 13px 2px 11px; border-bottom: 3px solid transparent; margin-bottom: -3px; }
.site-nav .nav-link:hover { color: #fff; }
.site-nav .nav-link.on { color: #fff; border-bottom-color: #fff; }
/* Phones: logo, name and the signed-in user on the first row, the page links
   on a row of their own below, so nothing runs off the side of the screen. */
@media (max-width: 700px) {
  .site-nav { flex-wrap: wrap; height: auto; gap: 0 14px; padding: 6px 12px 0; }
  .site-nav .brand { order: 0; font-size: 17px; gap: 8px; }
  .site-nav .brand img { width: 30px; height: 30px; }
  .site-nav .nav-user { order: 1; }
  .site-nav::before { content: ""; order: 2; flex-basis: 100%; height: 2px; }
  .site-nav .nav-link { order: 3; white-space: nowrap; padding: 6px 2px 7px; }
}
/* The health bar under the menu (health.js), the same on light and dark pages. */
.health-bar { display: flex; align-items: flex-start; gap: 10px; padding: 8px 16px; flex: none; font: 14px/1.4 Roboto, system-ui, sans-serif;
  background: #fff4d6; color: #4a3500; border-bottom: 1px solid #e8c766; }
.health-bar[hidden] { display: none; }  /* display: flex above would otherwise keep an empty bar */
.health-bar.critical { background: #fde2df; color: #6b0f08; border-bottom-color: #f2a39b; }
.health-bar .hb-text { flex: 1; }
.health-bar a { color: inherit; font-weight: 600; white-space: nowrap; }
.health-bar button { font: inherit; font-size: 13px; padding: 2px 10px; border-radius: 6px; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; }
/* Signed-in user, at the right of the menu (nav.js). */
.site-nav .nav-user { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; font-size: 13px; }
.site-nav .nav-user a { color: #fff; text-decoration: none; font-weight: 500; }
.site-nav .nav-user a span { color: #cfe3ef; font-weight: 400; margin-left: 4px; }
.site-nav .nav-user button { font: inherit; padding: 3px 10px; border-radius: 6px; border: 1px solid #5f8fae; background: transparent; color: #fff; cursor: pointer; }
@media (max-width: 500px) { .site-nav .nav-user a span { display: none; } .site-nav .nav-user a { white-space: nowrap; } }
/* Controls the signed-in role can't use. */
body.auth:not(.can-tag) [data-needs~="tag"],
body.auth:not(.can-export) [data-needs~="export"],
body.auth:not(.can-record) [data-needs~="record"],
body.auth:not(.can-import) [data-needs~="import"],
body.auth:not(.can-admin) [data-needs~="admin"] { display: none !important; }
