/* SC26 main sections share one 38px navigation bar and one optional sequence bar. */
.super-tabs {
  position: fixed; z-index: 12; inset: 0 0 auto; height: 38px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #061735;
}
.super-tab, .section-tab {
  appearance: none; min-width: 0; border: 0; border-right: 1px solid rgba(255,255,255,.16);
  border-radius: 0; padding: 8px 12px; color: #c7ceda; background: #061735;
  font: 700 12px/1.3 "Segoe UI", sans-serif; cursor: pointer; white-space: nowrap;
}
.super-tab:hover, .section-tab:hover { background: #10244a; }
.super-tab.active, .section-tab.active { background: #0b2e68; box-shadow: inset 0 -2px 0 #83e1ff; color: white; }
.super-tab:focus-visible, .section-tab:focus-visible, .tabs .tab:focus-visible { outline: 2px solid #83e1ff; outline-offset: -3px; }
body.playing { --demo-nav-height: 8px; }
body.playing .tabs, body:not(.playing) .tabs, .section-tabs {
  position: fixed; z-index: 11; top: 38px; left: 0; right: 0; height: 38px;
  margin: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0;
  background: #061735;
}
.section-tabs[data-section-nav="platform"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.section-tabs[data-section-nav="cases"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body .video-shell [data-section-nav][hidden], .slide-pager[hidden] { display: none !important; }
body .tabs .tab { min-height: 38px; padding: 8px; }
body .tabs .tab.active::after { bottom: 0; }
.document-panel { color: #172235; background: #f8f9f7; }
.slide-view { position: absolute; inset: 8px 0 46px; margin: 0; display: grid; place-items: center; overflow: hidden; }
.slide-image {
  display: block; width: 100%; height: 100%; object-fit: contain; min-height: 0;
  transform: translate(var(--pan-x, 0px), var(--pan-y, 0px)) scale(var(--zoom, 1));
  transform-origin: center center;
  transition: transform 90ms ease-out;
  user-select: none;
  -webkit-user-drag: none;
}
.slide-view.is-zoomed { cursor: grab; touch-action: none; }
.slide-view.is-panning { cursor: grabbing; }
.slide-view.is-panning .slide-image { transition: none; }
.slide-toolbar {
  position: absolute; z-index: 4; bottom: 12px; left: 20px; right: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; pointer-events: none;
}
.slide-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; pointer-events: none; }
.slide-toolbar > a, .slide-pager, .slide-zoom { pointer-events: auto; border: 1px solid #d3dce8; background: rgba(255,255,255,.94); border-radius: 6px; box-shadow: 0 2px 12px #06173512; }
.slide-toolbar > a { padding: 7px 10px; color: #234d80; font-size: 11px; text-decoration: none; }
.slide-pager, .slide-zoom { display: flex; align-items: center; gap: 8px; padding: 4px 6px; font: 12px "Segoe UI", sans-serif; }
.slide-pager { gap: 14px; }
.slide-pager button, .slide-zoom button { border: 0; border-radius: 4px; background: #e8eff8; color: #12355e; min-width: 30px; min-height: 28px; font-size: 16px; font-weight: 700; cursor: pointer; }
.slide-zoom [data-zoom-action="reset"] { min-width: 46px; padding: 0 8px; font-size: 11px; font-weight: 600; background: transparent; color: #234d80; font-variant-numeric: tabular-nums; }
.slide-zoom [data-zoom-action="reset"]:hover { background: #e8eff8; }
.slide-pager button:disabled, .slide-zoom button:disabled { opacity: .35; cursor: default; }
@media (max-width: 720px) {
  .super-tab { font-size: 11px; padding: 8px 4px; }
  body.playing .tabs, body:not(.playing) .tabs { grid-template-columns: repeat(8, 165px); overflow-x: auto; }
  .section-tabs[data-section-nav="cases"] { grid-template-columns: repeat(4, 155px); overflow-x: auto; }
  .section-tabs[data-section-nav="platform"] { grid-template-columns: repeat(3, 150px); overflow-x: auto; }
  .section-tab { font-size: 11px; padding: 8px 4px; }
  .slide-toolbar { left: 10px; right: 10px; bottom: 10px; }
}
/* Keep the second navigation row swipeable without consuming its height with scrollbars. */
body .tabs, .section-tabs { overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar, .section-tabs::-webkit-scrollbar { display: none; }

.case-examples { display: flex; pointer-events: auto; gap: 3px; padding: 3px; border: 1px solid #d3dce8; border-radius: 6px; background: rgba(255,255,255,.94); }
.case-examples button { padding: 6px 10px; border: 0; border-radius: 4px; color: #234d80; background: transparent; font: 600 11px "Segoe UI", sans-serif; cursor: pointer; }
.case-examples button.active { color: white; background: #0b2e68; }
.case-examples button:focus-visible { outline: 2px solid #4e9cff; outline-offset: 1px; }
@media (max-width: 520px) {
  .document-panel:has(.case-examples) .slide-view { bottom: 90px; }
  .slide-toolbar:has(.case-examples) { flex-wrap: wrap; row-gap: 8px; }
  .case-examples { order: -1; flex-basis: 100%; justify-content: center; }
}

/* Give embedded apps their own viewport below both SC26 navigation rows. */
body.playing .live-demo-live { top: var(--demo-nav-height); }
/* Nexus video fills the viewport below the navigation rows, trimming top/bottom as needed. */
body.playing [data-panel="nexus"] {
  background: #0b1220;
}
body.playing [data-panel="nexus"] .demo-canvas {
  left: 0;
  top: var(--demo-nav-height);
  width: 100vw;
  height: var(--demo-area-height);
}
body.playing [data-panel="nexus"] .demo-canvas video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #0b1220;
}

/* Activatable video seek/scrubber bar */
.video-scrubber {
  position: absolute;
  left: 16px;
  right: 48px;
  bottom: 40px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border: 1px solid rgba(131,225,255,.45);
  border-radius: 10px;
  background: rgba(4,14,35,.92);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  color: #dcecff;
  font: 700 11px/1 "Segoe UI", sans-serif;
}
.video-scrubber[hidden] { display: none; }
.video-scrubber-range {
  flex: 1 1 auto;
  min-width: 80px;
  height: 6px;
  accent-color: #4e9cff;
  cursor: pointer;
}
.video-scrubber-time {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  color: #c7ceda;
  white-space: nowrap;
}
.video-controls button[data-video-scrubber-toggle][aria-pressed="true"] {
  background: #0b5cff;
  color: white;
}
/* Fold top two-row navigation into an 8px strip; expand on mouse-over or keyboard focus. */
.sc26-nav-dock {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  height: 8px;
  overflow: hidden;
  background: #061735;
  border-bottom: 1px solid rgba(131,225,255,.35);
  transition: height 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.sc26-nav-dock .super-tabs {
  position: relative;
  inset: auto;
}
body.playing .sc26-nav-dock .tabs,
body:not(.playing) .sc26-nav-dock .tabs,
.sc26-nav-dock .section-tabs {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
}
.sc26-nav-dock:hover,
.sc26-nav-dock:focus-within,
.sc26-nav-dock.is-expanded {
  height: 76px;
  border-bottom-color: rgba(131,225,255,.55);
  box-shadow: 0 10px 28px rgba(0,0,0,.38);
}
body[data-section="welcome"] .sc26-nav-dock:hover,
body[data-section="welcome"] .sc26-nav-dock:focus-within,
body[data-section="welcome"] .sc26-nav-dock.is-expanded {
  height: 38px;
}
.sc26-nav-dock:not(:hover):not(:focus-within):not(.is-expanded) button {
  pointer-events: none;
}
.sc26-nav-grip {
  position: absolute;
  left: 50%;
  top: 2px;
  transform: translateX(-50%);
  width: 52px;
  height: 3px;
  border-radius: 999px;
  background: rgba(131,225,255,.55);
  pointer-events: none;
  z-index: 21;
  transition: opacity 120ms ease;
}
.sc26-nav-dock:hover .sc26-nav-grip,
.sc26-nav-dock:focus-within .sc26-nav-grip,
.sc26-nav-dock.is-expanded .sc26-nav-grip {
  opacity: 0;
}
