/* id8 tutorial overlay (assets/js/lib/tutorial-overlay.js): a "how it works" video over a tool page.
   Colours from id8-ui.css tokens only (ADR-018). */
.id8-tut { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; color: var(--id8-ink); font-family: var(--id8-font); }
.id8-tut::backdrop { background: var(--id8-backdrop); }
.id8-tut__inner {
    box-sizing: border-box; width: min(420px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto;
    background: var(--id8-surface); border-radius: var(--id8-radius-card); padding: 16px;
    display: flex; flex-direction: column; gap: 12px;
}
.id8-tut__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.id8-tut__head h2 { margin: 0; font-size: 22px; line-height: 1.2; }
.id8-tut__close {
    width: 44px; height: 44px; flex-shrink: 0; border: 0; border-radius: 50%; cursor: pointer;
    background: var(--id8-surface-sunken); color: var(--id8-ink); font-size: 26px; line-height: 1;
}
.id8-tut__close:hover { background: var(--id8-border); }
.id8-tut__lead { margin: 0; font-size: 17px; line-height: 1.4; color: var(--id8-ink-muted); }
.id8-tut__video {
    display: block; align-self: center; width: auto; max-width: 100%; height: auto; max-height: calc(100vh - 300px); min-height: 180px;
    border-radius: var(--id8-radius-control); background: var(--id8-ink);
}
.id8-tut__note { margin: 0; font-size: 14px; line-height: 1.45; color: var(--id8-ink-muted); }
.id8-tut__start { min-height: 48px; }
/* The button on the page that opens it again. */
.id8-tut-btn {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; cursor: pointer;
    border: 1px solid var(--id8-border-control); border-radius: var(--id8-radius-pill); background: var(--id8-surface);
    color: var(--id8-ink); font: inherit; font-size: 16px; font-weight: 700;
}
.id8-tut-btn:hover { border-color: var(--id8-ink); }
.id8-tut-btn[hidden] { display: none; }
