/* Supersite shell: the cross-site top bar, Red Team banner and footer injected into every page.
   Everything is prefixed `ss-` so it never collides with the apps' own styles. External file
   only: the public site runs a strict CSP with no inline styles. */

.ss-bar {
  --ss-accent: #5ec98e;
  display: flex;
  align-items: stretch;
  gap: 2px;
  min-height: 38px;
  padding: 0 12px;
  background: #07090e;
  border-bottom: 1px solid #1c2230;
  font: 500 13px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: auto;
  scrollbar-width: thin;
  position: relative;
  z-index: 50;
}

.ss-brand {
  display: flex;
  align-items: center;
  padding: 0 14px 0 2px;
  margin-right: 6px;
  color: #e9edf5;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  border-right: 1px solid #1c2230;
}

.ss-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  color: #9aa4b8;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.ss-tab::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ss-accent);
  opacity: 0.55;
}

.ss-tab:hover,
.ss-tab:focus-visible {
  color: #e9edf5;
  border-bottom-color: var(--ss-accent);
  outline: none;
}

.ss-tab[aria-current="page"] {
  color: #ffffff;
  border-bottom-color: var(--ss-accent);
}

.ss-tab[aria-current="page"]::before { opacity: 1; }

.ss-lock {
  font-size: 11px;
  opacity: 0.8;
}

/* Per-site accents (data attributes, not inline styles, to keep the CSP strict) */
[data-ss-site="ai"] { --ss-accent: #5ec98e; }
[data-ss-site="ai-security"] { --ss-accent: #ff5fd2; }
[data-ss-site="security"] { --ss-accent: #ffb020; }
[data-ss-site="blue-team"] { --ss-accent: #4d9fff; }
[data-ss-site="red-team"] { --ss-accent: #ff4d5e; }
[data-ss-site="cloud-security"] { --ss-accent: #38bdf8; }
[data-ss-site="oscp"],
[data-ss-site="osai"] { --ss-accent: #e23b3b; }

/* ---------- Red Team disclaimer banner ---------- */

.ss-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 16px;
  background: #2a0b10;
  border-bottom: 1px solid #ff4d5e;
  color: #ffd9dd;
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  position: relative;
  z-index: 49;
}

.ss-banner[hidden] { display: none; }

.ss-banner-text { flex: 1; margin: 0; }
.ss-banner strong { color: #ffffff; }

.ss-banner-close {
  flex: none;
  min-width: 32px;
  min-height: 32px;
  border: 1px solid #ff4d5e;
  border-radius: 6px;
  background: transparent;
  color: #ffd9dd;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.ss-banner-close:hover,
.ss-banner-close:focus-visible { background: #ff4d5e; color: #ffffff; outline: none; }

/* ---------- footer ---------- */

.ss-footer {
  padding: 18px 16px 24px;
  border-top: 1px solid #1c2230;
  color: #7d879b;
  font: 12px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-align: center;
}

.ss-footer a { color: #9aa4b8; }
.ss-footer-warn { color: #ff9aa4; }
