/* Tutorial tab: sticky-header scroll offset, video-mode switch, caption bar.
   Classes only. No inline styles or scripts.
   Caption-bar copy: CLO-cleared Dec 4, 2026, 9:11 AM CR (see CAPTION_BAR_DRAFT.md). */

/* Sticky .navbar height at each layout width, plus an 8px gap, so in-page
   scroll targets (tab panels and the Setup tutorial heading) clear the
   header instead of sliding under it. Heights measured from the live header. */
:root { --cp-sticky-header: 123px; }              /* 115px + 8, phone */
@media (min-width: 600px) {
  :root { --cp-sticky-header: 268px; }            /* mid widths where the nav wraps */
}
@media (min-width: 768px) {
  :root { --cp-sticky-header: 203px; }            /* 195px + 8 */
}
@media (min-width: 1024px) {
  :root { --cp-sticky-header: 149px; }            /* 141px + 8 */
}

html {
  scroll-padding-top: var(--cp-sticky-header);
}

.tab-panel,
#panel-tutorial,
#panel-tutorial .eyebrow-badge,
#panel-tutorial h2 {
  scroll-margin-top: var(--cp-sticky-header);
}

/* Welcome / Product walkthrough switch (aria-pressed toggle group). */
.tut-video-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  margin: 0 0 10px;
}

.tut-mode-btn {
  background: rgba(6, 9, 19, 0.85);
  color: #E2E8F0;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  box-sizing: border-box;
}

.tut-mode-btn[aria-pressed="true"] {
  background: rgba(16, 185, 129, 0.22);
  color: #6EE7B7;
  border-color: #10B981;
}

.tut-mode-btn:hover {
  border-color: #6EE7B7;
}

.tut-mode-btn:focus-visible {
  outline: 3px solid #FF6A35;
  outline-offset: 2px;
}

/* Static caption-preview line under the player. Plain text; no animation. */
.tut-caption-bar {
  margin: 0 0 10px;
  padding: 8px 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 9px;
  background: #0B1120;
  color: #E2E8F0;
  font-size: 13px;
  line-height: 1.45;
}

.tut-caption-bar p {
  margin: 0;
}
.tut-caption-bar p[hidden] {
  display: none;
}
