.home-tutorial { width: 100%; max-width: 1120px; margin: 1.5rem auto 2rem; padding: 0 1rem; box-sizing: border-box; }
.home-tutorial-heading { margin-bottom: 1rem; text-align: left; }
.tutorial-eyebrow { display: block; margin-bottom: .4rem; color: #617185; font: 600 .75rem/1.6 Raleway, sans-serif; }
.home-tutorial-heading h2 { margin: 0 0 .5rem; text-align: left; color: #0066cc; font: 400 clamp(1.6rem, 3vw, 2.25rem)/1.4 Anton, sans-serif; }
.home-tutorial-heading p { margin: 0; color: #596575; font: .875rem/1.7 Raleway, sans-serif; }
.home-tutorial-player { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid #dce4ed; border-radius: 14px; background: #102c4c; box-shadow: 0 3px 8px #19314e1a, 0 10px 24px #19314e1a; }
.home-tutorial-player video { display: block; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; border: 0; object-fit: contain; }
.home-tutorial .tutorial-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2; display: inline-flex; justify-content: center; align-items: center; gap: .5rem; min-height: 52px; max-width: calc(100% - 2rem); padding: .75rem 1rem; border: 1px solid #ffffffcc; border-radius: 30px; background: #fff; color: #0054aa; box-shadow: 0 4px 20px #102c4c40; font: 700 .875rem/1.5 Raleway, sans-serif; white-space: nowrap; cursor: pointer; transition: background .2s ease; }
.home-tutorial .tutorial-play:hover { background: #eaf3ff; }
.home-tutorial .tutorial-play[hidden] { display: none; }
.home-tutorial .tutorial-play:disabled { cursor: wait; }
.home-tutorial .tutorial-admin-controls { position: absolute; top: .65rem; right: .65rem; z-index: 3; display: flex; gap: .5rem; }
.home-tutorial .tutorial-admin-controls .edit-button { width: 44px; height: 44px; border: 0; }
.tutorial-player-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; margin-top: .85rem; color: #617185; font: .75rem/1.7 Raleway, sans-serif; }
.tutorial-sound-note { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
#homeTutorialStatus { margin: .75rem 0 0; color: #a72d3a; font: .85rem/1.7 Raleway, sans-serif; }
@media (min-width: 700px) { .home-tutorial { margin-block: 2.5rem; padding-inline: 1.5rem; } .home-tutorial .tutorial-play { min-height: 60px; padding: .85rem 1.5rem; font-size: 1rem; } }

/* Preserve the intentionally full-browser-width tutorial player. */
.home-tutorial { max-width: none; width: 100%; padding-inline: 0; }
.home-tutorial .home-tutorial-player { width: 100%; border-radius: 0; border-inline: 0; }
.home-tutorial-heading, .tutorial-player-footer, #homeTutorialStatus { box-sizing: border-box; width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 700px) {
    .home-tutorial { max-width: none; padding-inline: 0; }
    .home-tutorial-heading, .tutorial-player-footer, #homeTutorialStatus { padding-inline: 1.5rem; }
}

/* Put the tutorial introduction on the video, without an extra white band. */
.home-tutorial { margin-top: 0; }
.home-tutorial .home-tutorial-heading { position: absolute; inset: 0 0 auto; z-index: 1; width: 100%; max-width: none; margin: 0; padding: 1rem 4rem 2rem 1rem; box-sizing: border-box; background: linear-gradient(to bottom, rgba(7,25,46,.85), rgba(7,25,46,.55) 65%, transparent); color: white; pointer-events: none; transition: opacity .2s ease; }
.home-tutorial .tutorial-eyebrow { color: #e2edf8; font-size: .7rem; }
.home-tutorial .home-tutorial-heading h2 { color: white; font-size: clamp(1.15rem, 2.5vw, 2rem); margin-bottom: .25rem; }
.home-tutorial .home-tutorial-heading p { color: #e2edf8; font-size: .8rem; }
.home-tutorial-player.is-playing .home-tutorial-heading { opacity: 0; visibility: hidden; }
@media (max-width: 599px) {
    .home-tutorial .tutorial-eyebrow, .home-tutorial .home-tutorial-heading p { display: none; }
    .home-tutorial .home-tutorial-heading { padding-top: .75rem; padding-bottom: 1.5rem; }
}
@media (min-width: 700px) {
    .home-tutorial { margin-top: 0; }
    .home-tutorial .home-tutorial-heading { padding: 1.5rem 5rem 3rem 1.5rem; }
}

/* Keep playback guidance inside the picture, above native video controls. */
.home-tutorial .tutorial-player-footer { position: absolute; inset: auto 0 3.25rem; z-index: 1; max-width: none; margin: 0; padding: 1.25rem 1rem .5rem; color: #e2edf8; background: linear-gradient(to top, rgba(7,25,46,.72), transparent); pointer-events: none; transition: opacity .2s ease; }
.home-tutorial-player.is-playing .tutorial-player-footer { opacity: 0; visibility: hidden; }
@media (max-width: 599px) {
    .home-tutorial .tutorial-player-footer { bottom: 2.75rem; font-size: .65rem; padding-top: .75rem; }
    .home-tutorial .tutorial-sound-note { display: none; }
}
@media (min-width: 700px) { .home-tutorial .tutorial-player-footer { padding-inline: 1.5rem; } }

/* Keep the initial hint clear of the browser's playback toolbar. */
.home-tutorial .home-tutorial-player { border: 0; }
.home-tutorial .tutorial-player-footer { inset: auto 0 5.5rem; display: block; padding: 0 1rem; background: none; text-align: center; color: #fff; text-shadow: 0 1px 5px #07192e; font-size: .75rem; }
.home-tutorial-player.has-started .tutorial-player-footer { display: none; }
@media (max-width: 599px) { .home-tutorial .tutorial-player-footer { display: none; } }
