/* Top nav — carried over from the reference's static/navigation.html:
   the #050707 → #53565a gradient with the #f4d800 accent border. */

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(90deg, #050707 0%, #53565a 100%);
  border-bottom: 2px solid #f4d800;
}

.header-content {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 52px;
}

.brand {
  font-weight: 700;
  letter-spacing: .04em;
  color: #f4d800;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }

.navigation-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1;
}

.navigation-links a {
  color: #e8ecee;
  padding: 7px 11px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
}
.navigation-links a:hover { background: rgba(255, 255, 255, .1); text-decoration: none; }
.navigation-links a.active { background: rgba(244, 216, 0, .16); color: #f4d800; }

/* Nav groups — a tinted pill around the members of each group makes the two
   main clusters (Play, Present) read as a unit rather than a run of links. */
.nav-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 4px;
  border-radius: 8px;
  border: 1px solid transparent;
}
.nav-group-play {
  background: rgba(125, 211, 252, .12);
  border-color: rgba(125, 211, 252, .35);
}
.nav-group-play a.active { background: rgba(125, 211, 252, .28); color: #d3edff; }
.nav-group-present {
  background: rgba(192, 132, 252, .12);
  border-color: rgba(192, 132, 252, .35);
}
.nav-group-present a.active { background: rgba(192, 132, 252, .28); color: #ecdcff; }
.nav-group-library {
  background: rgba(134, 239, 172, .08);
  border-color: rgba(134, 239, 172, .22);
}
.nav-group-drive {
  background: rgba(244, 122, 122, .08);
  border-color: rgba(244, 122, 122, .22);
}
.nav-group-manage {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .12);
}

.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-right select {
  width: auto;
  background: rgba(0, 0, 0, .35);
  border-color: rgba(255, 255, 255, .18);
  color: #e8ecee;
  padding: 6px 8px;
  font-size: 14px;
}
.nav-account { color: #cfd6d9; font-size: 13px; white-space: nowrap; }

/* Unread work, on the link that leads to it: a join request or a contribution
   sitting in a queue nobody thinks to open is the same as no feature at all. */
.nav-badge {
  display: inline-block;
  margin-left: 6px;
  min-width: 17px;
  padding: 1px 5px;
  border-radius: 9px;
  background: #f4d800;
  color: #201d00;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.nav-cta {
  background: #f4d800;
  border: none;
  color: #201d00;
  font-weight: 600;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}
.nav-cta:hover { background: #ffe93a; text-decoration: none; }
.nav-cta:disabled { opacity: .55; cursor: default; }
.nav-cta.ghost {
  background: transparent;
  color: #f4d800;
  border: 1px solid rgba(244, 216, 0, .55);
}
.nav-cta.ghost:hover { background: rgba(244, 216, 0, .14); }

.nav-band-btn {
  background: rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #e8ecee;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-band-btn:hover { background: rgba(255, 255, 255, .12); }

/* Band switcher. A <select> hid the role and the default marker, which are the
   two things you open it to see. */
.nav-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, .55);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 64px 16px;
}
.nav-modal[hidden] { display: none; }
.nav-modal-box {
  background: #14181a;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  width: min(480px, 100%);
  max-height: 70vh;
  overflow: auto;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .5);
}
.nav-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.nav-modal-close {
  background: transparent;
  border: none;
  color: #cfd6d9;
  font-size: 20px;
  cursor: pointer;
  padding: 0 4px;
}
.nav-band-list { list-style: none; margin: 0; padding: 6px 0; }
.nav-band-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
}
.nav-band-list li.here { background: rgba(244, 216, 0, .09); }
.nav-band-list li > a { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.nav-band-list .pill.default { background: rgba(244, 216, 0, .2); color: #f4d800; }
.nav-band-list .linkish {
  background: transparent;
  border: none;
  color: #8ab4d8;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
}
.nav-modal-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.nav-modal-section { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Billing banner. Suppressed entirely on presentation pages — a payment notice
   must never land on a projector screen. */
.nav-notice {
  background: #3a3305;
  border-bottom: 1px solid #f4d800;
  color: #ffeb8a;
  font-size: 14px;
  padding: 8px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
.nav-notice.bad { background: #3a1512; border-color: var(--danger); color: #ffb9b1; }
.nav-notice button {
  background: transparent;
  border: none;
  color: inherit;
  opacity: .7;
  padding: 0 4px;
  font-size: 16px;
  cursor: pointer;
}

/* Hidden in fullscreen and on presentation pages, with a 6px hover strip and Esc
   as the escape hatch so an operator is never trapped. */
body[data-chrome="none"] .header,
body.nav-hidden .header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  transform: translateY(-100%);
  transition: transform .15s ease;
}
body[data-chrome="none"] .header:hover,
body.nav-hidden .header:hover,
body.nav-peek .header { transform: translateY(0); }

body[data-chrome="none"] .nav-notice,
body.nav-hidden .nav-notice { display: none; }

.nav-hover-strip {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 6px;
  z-index: 29;
  display: none;
}
body[data-chrome="none"] .nav-hover-strip,
body.nav-hidden .nav-hover-strip { display: block; }

#navPeekBtn {
  display: none;
  position: fixed;
  top: 10px;
  right: 12px;
  z-index: 31;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 6px;
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity .15s;
  padding: 0;
}
#navPeekBtn:hover,
#navPeekBtn:focus-visible { opacity: 1; }

body[data-chrome="none"] #navPeekBtn,
body.nav-hidden #navPeekBtn { display: flex; align-items: center; justify-content: center; }

body.nav-peek #navPeekBtn { opacity: 0; pointer-events: none; }
