/* OBS2GO site header (assets/js/site-header.js): sticky top bar + three mega menus.
   Same look as the homepage mockup: indigo bar, white panels, pill buttons. */
:root {
  --sh-indigo: #14147e;
  --sh-ink: #10142e;
  --sh-muted: #5a5f7a;
  --sh-line: #e3e5f0;
  --sh-soft: #eef0ff;
  --sh-hover: #f2f3fa;
  --sh-accent: #1e1eb4;
  --sh-focus: #f28c28;
}

/* anchors land below the sticky header */
[id] { scroll-margin-top: 88px; }

.sh {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--sh-indigo);
  border-bottom: 1px solid rgba(170, 176, 255, 0.18);
  font-family: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #fff;
  font-size: 15px;
  line-height: 1.4;
}
.sh *, .sh *::before, .sh *::after { box-sizing: border-box; }
.sh a:focus-visible, .sh button:focus-visible { outline: 2px solid var(--sh-focus); outline-offset: 2px; }

.sh-bar {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
}
.sh-logo { display: flex; align-items: center; }
.sh-logo img { display: block; height: 28px; width: auto; }

.sh-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; flex: 1 1 auto; }
.sh-btn, .sh-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #e4e6ff;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.sh-btn:hover, .sh-link:hover, .sh-btn[aria-expanded="true"], .sh-link[aria-current="page"] { background: rgba(255, 255, 255, 0.14); color: #fff; }
.sh-chev { transition: transform 0.2s cubic-bezier(.23, 1, .32, 1); }
.sh-btn[aria-expanded="true"] .sh-chev { transform: rotate(180deg); }

.sh-right { display: flex; align-items: center; gap: 12px; }
.sh-lang { display: inline-flex; padding: 2px; border: 1px solid rgba(170, 176, 255, 0.4); border-radius: 999px; font-size: 12px; font-weight: 600; }
.sh-lang a { padding: 4px 10px; border-radius: 999px; color: #e4e6ff; text-decoration: none; }
.sh-lang a[aria-current="true"] { background: #fff; color: var(--sh-indigo); }
.sh-login { color: #e4e6ff; text-decoration: none; }
.sh-login:hover { color: #fff; }
.sh-demo { padding: 10px 18px; border-radius: 999px; background: #fff; color: var(--sh-indigo); font-weight: 600; text-decoration: none; }

/* drop-down panels */
.sh-drop { position: absolute; z-index: 2; top: calc(100% + 8px); left: 0; right: 0; padding-inline: 16px; }
.sh-panel {
  max-width: 1152px;
  max-height: calc(100vh - 110px);
  overflow: auto;
  margin: 0 auto;
  padding: 24px;
  border: 1px solid var(--sh-line);
  border-radius: 18px;
  background: #fff;
  color: var(--sh-ink);
  box-shadow: 0 24px 60px rgba(13, 13, 46, 0.25);
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: sh-in 0.18s cubic-bezier(.23, 1, .32, 1);
}
.sh-panel--split { flex-direction: row; flex-wrap: wrap; gap: 20px; }
.sh-panel--split .sh-cols { flex: 3 1 560px; }
.sh-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 12px 24px; min-width: 0; }
.sh-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sh-group { display: flex; flex-direction: column; gap: 2px; }
.sh-gh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 4px 10px 6px; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sh-muted); }
.sh-gh small { flex-basis: 100%; font-family: 'IBM Plex Sans', system-ui, sans-serif; font-size: 13px; letter-spacing: 0; text-transform: none; color: #4a4f6a; }
.sh-num { color: var(--sh-focus); font-size: 12px; }

.sh-item { display: flex; gap: 12px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; color: var(--sh-ink); text-decoration: none; transition: background-color 0.15s; }
.sh-item:hover { background: var(--sh-hover); }
.sh-ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; background: var(--sh-soft); color: var(--sh-accent); }
.sh-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sh-txt b { font-size: 14px; font-weight: 600; }
.sh-txt small { font-size: 12px; color: var(--sh-muted); }
.sh-check { margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: #fdf0e2; color: #8a4a0b; font-size: 10px; font-style: normal; font-weight: 600; vertical-align: 2px; }

.sh-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid #eef0f6; font-size: 14px; color: #4a4f6a; }
.sh-foot a { color: var(--sh-accent); font-weight: 600; text-decoration: none; }

.sh-card {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: 14px;
  background: var(--sh-indigo) radial-gradient(400px 260px at 0% 0%, #2a2ad0, transparent 70%);
  color: #fff;
  text-decoration: none;
}
.sh-card .sh-k { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #aab0ff; }
.sh-card b { font-size: 18px; line-height: 1.3; }
.sh-card small { font-size: 13px; color: #d6d9ff; }
.sh-card .sh-go { margin-top: auto; font-weight: 600; font-size: 14px; }

.sh-scrim { position: fixed; inset: 0; z-index: 1; background: rgba(13, 13, 46, 0.35); }

@keyframes sh-in { from { opacity: 0; transform: translateY(-6px); } }

/* phones: logo + actions on the first row, the menu scrolls sideways on the second */
@media (max-width: 760px) {
  .sh-bar { padding: 10px 16px; }
  .sh-nav { order: 3; flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .sh-right { margin-left: auto; }
  .sh-login { display: none; }
  .sh-demo { padding: 8px 14px; font-size: 14px; }
  .sh-btn, .sh-link { white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .sh-panel { animation: none; }
  .sh-chev { transition: none; }
}
