/* Site header for the static pages, matched to the homepage's header (src/index.css .broadcast-topbar) */
.sh {
  position: relative; z-index: 20;
  min-height: 46px; padding: 0 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
  background: #090909;
  font-family: system-ui, -apple-system, sans-serif;
}
.sh a { text-decoration: none; }
.sh-brand { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.sh-title { font-size: 15px; font-weight: 700; color: #39ff14; text-shadow: 0 0 8px rgba(57, 255, 20, 0.5); white-space: nowrap; }
.sh-sub { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: #737373; white-space: nowrap; }

.sh-nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 22px; }
.sh-nav > a { font-size: 15px; color: #aaa; transition: color 0.16s ease; }
.sh-nav > a:hover { color: #f0f0f0; }
.sh-nav > a.sh-active { color: #39ff14; }
/* The homepage's close hint on the current section's link */
.sh-close { opacity: 0.6; font-size: 0.85em; }

.sh-search input, .sh-drawer-search input {
  width: 130px; height: 30px; padding: 0 12px;
  border: 0.5px solid rgba(255, 255, 255, 0.3); border-radius: 999px;
  background: transparent; color: #f0f0f0; font: inherit; font-size: 13px;
  transition: width 0.15s, border-color 0.15s;
}
.sh-search input::placeholder, .sh-drawer-search input::placeholder { color: #aaa; }
.sh-search input:focus { outline: none; width: 190px; border-color: #39ff14; }

/* Sign in: a pill that opens Discord / Patreon, like the homepage */
.sh-signin { position: relative; }
.sh-signin summary { list-style: none; }
.sh-signin summary::-webkit-details-marker { display: none; }
.sh-pill {
  min-height: 30px; padding: 0 12px; display: inline-flex; align-items: center; cursor: pointer;
  border: 0.5px solid rgba(255, 255, 255, 0.3); border-radius: 999px;
  color: #aaa; font-size: 13px; font-weight: 600; white-space: nowrap;
}
.sh-pill:hover, .sh-signin[open] .sh-pill { color: #f0f0f0; border-color: rgba(255, 255, 255, 0.5); }
.sh-menu {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 150px; padding: 6px;
  display: grid; gap: 2px; border: 0.5px solid rgba(255, 255, 255, 0.06); border-radius: 10px;
  background: #060606; box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
}
.sh-menu a { padding: 8px 12px; border-radius: 6px; color: #d8d8d8; font-size: 13px; font-weight: 600; }
.sh-menu a:hover { background: rgba(255, 255, 255, 0.03); color: #39ff14; }
.sh-menu a.sh-patreon:hover { color: #ff6b74; }
.sh-user { display: inline-flex; align-items: center; gap: 7px; color: #d8d8d8; font-size: 13px; font-weight: 600; }
.sh-user img { width: 22px; height: 22px; border-radius: 999px; object-fit: cover; }
.sh-user-wrap { display: inline-flex; align-items: center; gap: 7px; }
.sh-logout {
  display: inline-flex; align-items: center; padding: 0; border: 0; background: transparent;
  color: #555; cursor: pointer; opacity: 0.8; transition: color 0.16s ease, opacity 0.16s ease;
}
.sh-logout:hover { color: #f0f0f0; opacity: 1; }
/* The homepage's faint admin gear */
.sh-nav > a.sh-admin { font-size: 12px; opacity: 0.3; transition: opacity 0.16s ease; }
.sh-nav > a.sh-admin:hover { opacity: 0.7; }
.sh [hidden] { display: none !important; }

.sh-mobile { display: none; }

/* Narrower desktops: slightly tighter links so the full row fits on one line, matching the homepage */
@media (min-width: 1201px) and (max-width: 1440px) {
  .sh { gap: 14px; }
  .sh-nav { gap: 16px; }
  .sh-nav > a { font-size: 14px; }
}

/* Hamburger below 1200px, matching the homepage header: the full link row would wrap onto two lines */
@media (max-width: 1200px) {
  .sh { min-height: auto; padding: 10px 20px 12px; gap: 16px; }
  .sh-brand { flex-direction: column; align-items: flex-start; gap: 3px; }
  .sh-title { font-size: 14px; color: #e8e8e8; }
  .sh-sub { font-size: 9px; color: #858585; }
  .sh-nav { display: none; }
  .sh-mobile { display: flex; align-items: center; gap: 12px; }
  .sh-user-dot img { display: block; width: 24px; height: 24px; border-radius: 999px; border: 1.5px solid #39ff14; object-fit: cover; }

  .sh-burger summary {
    list-style: none; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
    color: #9a9a9a; cursor: pointer;
  }
  .sh-burger summary::-webkit-details-marker { display: none; }
  .sh-icon-close, .sh-burger[open] .sh-icon-open { display: none; }
  .sh-burger[open] .sh-icon-close { display: block; }
  .sh-drawer {
    position: absolute; top: 64px; right: 16px; width: min(240px, calc(100vw - 32px)); padding: 10px;
    display: grid; gap: 4px; border: 0.5px solid rgba(255, 255, 255, 0.08); border-radius: 12px;
    background: #060606; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
  }
  .sh-drawer > a { display: block; padding: 10px 12px; border-radius: 8px; text-align: center; color: #d8d8d8; font-size: 14px; }
  .sh-drawer > a:hover, .sh-drawer > a:focus-visible { background: rgba(255, 255, 255, 0.03); }
  .sh-drawer > a.sh-active { color: #39ff14; }
  .sh-drawer-search { padding: 2px 2px 6px; }
  .sh-drawer-search input { width: 100%; height: 36px; font-size: 16px; text-align: center; box-sizing: border-box; }
  .sh-drawer-search input:focus { outline: none; border-color: #39ff14; }
  .sh-drawer > a.sh-drawer-signin { padding: 8px 12px; color: #39ff14; font-size: 13px; font-weight: 600; border-top: 0.5px solid rgba(255, 255, 255, 0.06); border-radius: 0; }
  .sh-drawer > a.sh-drawer-signin.sh-patreon { border-top: 0; color: #ff6b74; }
  .sh-drawer-account {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin-top: 4px; padding: 8px 12px; border-top: 0.5px solid rgba(255, 255, 255, 0.06);
  }
  .sh-drawer-user { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d8d8d8; font-size: 13px; }
  .sh-drawer-account .sh-logout { padding: 4px; color: #aaa; }
}
