/* /tutorial hub and the /tutorial/<slug> watch pages */
.tut-hero { padding: 96px 0 32px; background: var(--bg-secondary); text-align: center; }
.tut-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 14px; }
.tut-hero p { color: var(--text-muted); font-size: 1.1rem; max-width: 680px; margin: 0 auto; line-height: 1.6; }
.tut-meta { margin-top: 18px; color: var(--text-muted); font-size: .92rem; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.tut-meta i { color: var(--accent); margin-right: 6px; }
.tut-main { padding: 40px 0 72px; }

/* hub: one card per video */
.tv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 1180px; margin: 0 auto; }
@media (max-width: 680px) { .tv-grid { grid-template-columns: minmax(0, 1fr); } }
.tv-card { display: flex; flex-direction: column; border: 1px solid var(--border-color); border-radius: 14px; overflow: hidden;
    background: var(--bg-secondary); color: var(--text-primary); text-decoration: none; transition: border-color .15s, transform .15s; }
.tv-card:hover, .tv-card:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
.tv-card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
@media (max-width: 760px) { .tv-card.featured { grid-template-columns: minmax(0, 1fr); } }
.tv-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; }
.tv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tv-thumb .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.tv-thumb .play span { width: 64px; height: 64px; border-radius: 50%; background: rgba(10,9,8,.72); border: 2px solid var(--accent);
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.3rem; padding-left: 4px; box-sizing: border-box; }
.tv-thumb .dur { position: absolute; right: 10px; bottom: 10px; background: rgba(10,9,8,.85); color: #fff; font-size: .82rem;
    font-weight: 700; padding: 3px 8px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.tv-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.tv-card.featured .tv-body { justify-content: center; padding: 28px 32px; }
.tv-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.tv-body h2, .tv-body h3 { font-size: 1.2rem; margin: 0; line-height: 1.3; }
.tv-card.featured .tv-body h2 { font-size: 1.6rem; }
.tv-body p { color: var(--text-muted); margin: 0; line-height: 1.6; font-size: .95rem; }
.tv-watch { margin-top: 6px; color: var(--accent); font-weight: 700; font-size: .95rem; }

/* watch page: the video is the page, so on a phone it sits near the top */
.tv-watch-hero { padding-bottom: 24px; }
.tv-watch-hero h1 { font-size: clamp(1.5rem, 4.2vw, 2.4rem); line-height: 1.2; }
@media (max-width: 700px) {
    .tv-watch-hero { padding-top: 84px; padding-bottom: 16px; }
    .tv-watch-hero .tv-sum { display: none; }
    .tv-watch-hero + .tut-main { padding-top: 18px; }
}
.tv-crumbs { font-size: .88rem; color: var(--text-muted); margin-bottom: 14px; }
.tv-crumbs a { color: var(--text-muted); }
.tv-crumbs a:hover { color: var(--accent); }
.tut-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 32px; align-items: start; max-width: 1180px; margin: 0 auto; }
@media (max-width: 900px) { .tut-layout { grid-template-columns: minmax(0,1fr); } }
.tut-player { width: 100%; border-radius: 14px; overflow: hidden; border: 1px solid var(--border-color); background: #000; display: block; }
.tut-embed { position: relative; width: 100%; padding-top: 56.25%; }
.tut-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tv-desc { margin-top: 18px; color: var(--text-muted); line-height: 1.7; }
.tv-desc a { font-weight: 600; }
.tut-chapters { border: 1px solid var(--border-color); border-radius: 14px; padding: 18px 8px 12px; background: var(--bg-secondary); }
.tut-chapters h2 { font-size: 1rem; margin: 0 0 10px 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.tut-chapters ol { list-style: none; margin: 0; padding: 0; max-height: 520px; overflow-y: auto; }
.tut-chapters li { margin: 0; }
.tut-chapters a { display: flex; gap: 12px; align-items: baseline; padding: 9px 14px; border-radius: 8px; color: var(--text-primary);
    text-decoration: none; font-size: .95rem; line-height: 1.35; }
.tut-chapters a:hover, .tut-chapters a:focus-visible { background: rgba(255,255,255,.05); }
.tut-chapters a.active { background: rgba(255,176,32,.14); color: var(--accent); }
.tut-chapters .t { font-variant-numeric: tabular-nums; color: var(--text-muted); min-width: 40px; font-size: .88rem; }
.tut-chapters a.active .t { color: var(--accent); }
.tv-section { max-width: 1180px; margin: 48px auto 0; }
.tv-section > h2 { font-size: 1.5rem; margin-bottom: 14px; }
.tv-transcript { border: 1px solid var(--border-color); border-radius: 14px; background: var(--bg-secondary); }
.tv-transcript summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 10px; }
.tv-transcript summary::-webkit-details-marker { display: none; }
.tv-transcript summary::before { content: "\25B8"; color: var(--accent); transition: transform .15s; }
.tv-transcript[open] summary::before { transform: rotate(90deg); }
.tv-transcript .body { padding: 0 24px 22px; max-width: 820px; }
.tv-transcript h3 { font-size: 1.02rem; margin: 22px 0 6px; }
.tv-transcript h3 a { font-variant-numeric: tabular-nums; margin-right: 8px; font-weight: 600; }
.tv-transcript p { color: var(--text-muted); line-height: 1.7; margin: 0 0 8px; }

.tut-steps { max-width: 820px; margin: 56px auto 0; }
.tut-steps h2 { font-size: 1.6rem; margin-bottom: 8px; }
.tut-steps > p { color: var(--text-muted); margin-bottom: 28px; }
.tut-step { display: flex; gap: 18px; padding: 18px 0; border-top: 1px solid var(--border-color); }
.tut-step-num { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #1a1a1a; font-weight: 700;
    display: flex; align-items: center; justify-content: center; font-size: .95rem; }
.tut-step h3 { margin: 4px 0 6px; font-size: 1.1rem; }
.tut-step p { color: var(--text-muted); margin: 0; line-height: 1.65; }
.tut-cta { text-align: center; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border-color); }
.tut-cta h2 { font-size: 1.5rem; margin-bottom: 10px; }
.tut-cta p { color: var(--text-muted); margin-bottom: 22px; }
