/* The /tutorials page: one player, a playlist, and the shared static chrome from
   content-pages.css. The thumbnails are CSS (brand blue, a step number, a small
   screenshot), so only the screenshots are image files. */

.tut-wide {
  max-width: 70rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}
.tut-spacer { flex: 1 1 auto; }
.tut-hdr-link {
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.tut-hdr-btn {
  padding: 0.625rem 1.125rem;
  border-radius: 9999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s;
}
.tut-hdr-btn:hover { background: #44403c; }
@media (max-width: 40rem) { .tut-hdr-link { display: none; } }

.static-footer-inner { max-width: 70rem; padding: 0 0.5rem; box-sizing: border-box; }

.tut-main {
  position: relative;
  z-index: 10;
  max-width: 70rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}
.tut-hero { padding-top: 1.75rem; }
.tut-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.875rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.tut-hero p {
  margin: 0.875rem 0 0;
  max-width: 38.75rem;
  font-size: 1.125rem;
  line-height: 1.55;
}

.tut-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22.5rem;
  gap: 2.5rem;
  align-items: start;
  margin-top: 2.25rem;
}
.tut-stage { min-width: 0; }

/* Player */
.tut-player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  overflow: hidden;
  background: #146499;
  box-shadow: 0 20px 44px -18px rgba(28, 27, 26, 0.45);
}
.tut-player video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0a3652;
}
.tut-playbtn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 4.75rem;
  height: 4.75rem;
  border-radius: 50%;
  border: 0;
  background: var(--ink);
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s;
}
.tut-playbtn:hover { transform: translate(-50%, -50%) scale(1.05); }
.tut-playbtn[hidden] { display: none; }
.tut-dur {
  position: absolute;
  right: 0.875rem;
  bottom: 0.875rem;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  background: rgba(28, 27, 26, 0.85);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  pointer-events: none;
}
/* Muted, looping preview: no play button, a "Tap for sound" pill instead */
.tut-sound {
  position: absolute;
  left: 0.875rem;
  bottom: 0.875rem;
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem 0.5rem 0.625rem;
  border-radius: 9999px;
  border: 0;
  background: rgba(28, 27, 26, 0.88);
  color: #fff;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s;
}
.tut-sound:hover { background: var(--ink); }
.tut-player.is-preview .tut-sound { display: inline-flex; }
.tut-player.is-preview video { cursor: pointer; }
.tut-player.is-preview .tut-playbtn,
.tut-player.is-preview .tut-dur,
.tut-player.is-started .tut-playbtn,
.tut-player.is-started .tut-dur { display: none; }

/* Under the player */
.tut-count { margin: 1.5rem 0 0; font-size: 0.875rem; color: var(--muted); }
.tut-video h2 {
  margin: 0.375rem 0 0;
  font-family: var(--font-display);
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.tut-blurb { margin: 0.625rem 0 0; font-size: 1rem; line-height: 1.6; max-width: 40rem; }
.tut-actions { margin-top: 1.25rem; display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.tut-next {
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s;
}
.tut-next:hover { background: #44403c; }
.tut-toggle {
  background: none;
  border: 0;
  padding: 0.75rem 0.875rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: #d6d3d1;
  cursor: pointer;
}
.tut-toggle[hidden] { display: none; }
.tut-tx {
  margin-top: 1.75rem;
  border: 1px solid var(--border);
  background: var(--card-bg);
  border-radius: 1rem;
  padding: 1.375rem 1.5rem;
}
.tut-tx[hidden] { display: none; }
.tut-tx h3 {
  margin: 0 0 0.625rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
}
.tut-tx p { margin: 0; font-size: 0.9375rem; line-height: 1.7; }

/* Playlist */
.tut-list {
  position: sticky;
  top: 1rem;
  border: 1px solid var(--border);
  background: var(--card-bg);
  border-radius: 1.25rem;
  padding: 0.625rem 0.625rem 0.75rem;
}
.tut-list-head { margin: 0; padding: 0.625rem 0.625rem 0.25rem; font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.tut-group { margin: 0; padding: 0.75rem 0.625rem 0.375rem; font-size: 0.8125rem; color: var(--muted); }
.tut-item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.5rem;
  border-radius: 0.75rem;
  text-decoration: none;
  color: inherit;
}
.tut-item:hover { background: #f7f3ec; }
.tut-item.is-active { background: #f3eee5; }
.tut-thumb {
  position: relative;
  flex: none;
  width: 8rem;
  height: 4.5rem;
  border-radius: 0.625rem;
  overflow: hidden;
  background: radial-gradient(ellipse 90% 110% at 30% 40%, #1a76ad 0%, #146499 45%, #0a3652 100%);
}
.tut-num {
  position: absolute;
  left: 0.75rem;
  top: 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 2.5rem;
  color: #fff;
}
.tut-inset {
  position: absolute;
  left: 2.75rem;
  top: 0.875rem;
  width: 6.25rem;
  height: 3.5rem;
  object-fit: cover;
  border-radius: 0.375rem;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
}
.tut-item-text { min-width: 0; display: flex; flex-direction: column; gap: 0.1875rem; }
.tut-item-title { font-size: 0.9375rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.tut-sub { font-size: 0.8125rem; color: var(--muted); }
.tut-item.is-active .tut-sub { color: #047857; }
.tut-item.is-active .tut-sub::before { content: "Now playing \00b7  "; }

/* Overviews and the closing call to action */
.tut-overview { margin-top: 4rem; }
.tut-overview h2 { margin: 0 0 1.125rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.tut-overview-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.tut-overview-card {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  border: 1px solid var(--border);
  background: var(--card-bg);
  border-radius: 1.25rem;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
}
.tut-overview-card:hover { border-color: var(--faint); }
.tut-overview-card strong { display: block; font-family: var(--font-display); font-size: 1.125rem; font-weight: 800; color: var(--ink); }
.tut-overview-card span span { display: block; margin-top: 0.25rem; font-size: 0.875rem; line-height: 1.5; }
.tut-overview-thumb {
  flex: none;
  width: 11rem;
  height: 6.1875rem;
  border-radius: 0.75rem;
  background: radial-gradient(ellipse 90% 110% at 30% 40%, #1a76ad 0%, #146499 45%, #0a3652 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tut-overview-thumb img { width: 4rem; height: 4rem; border-radius: 0.875rem; object-fit: cover; display: block; }

.tut-cta {
  margin-top: 3.5rem;
  border-radius: 1.75rem;
  background: var(--ink);
  color: #fff;
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.tut-cta > div { flex: 1 1 16rem; }
.tut-cta h2 { margin: 0; font-family: var(--font-display); font-size: 1.875rem; font-weight: 800; letter-spacing: -0.01em; color: #fff; }
.tut-cta p { margin: 0.5rem 0 0; color: #d6d3d1; }
.tut-cta-primary,
.tut-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s;
}
.tut-cta-primary { background: #fff; color: var(--ink); }
.tut-cta-primary:hover { background: #f5f5f4; }
.tut-cta-secondary { border: 1px solid #57534e; color: #fff; }
.tut-cta-secondary:hover { border-color: #a8a29e; }

/* Narrow screens: the playlist drops under the player */
@media (max-width: 60rem) {
  .tut-layout { grid-template-columns: 1fr; gap: 1.75rem; }
  .tut-list { position: static; }
}
@media (max-width: 40rem) {
  .tut-wide, .tut-main { padding-left: 1rem; padding-right: 1rem; }
  .static-header-inner { gap: 0.625rem; }
  .static-header-title { font-size: 1rem; white-space: nowrap; }
  .tut-hdr-btn { white-space: nowrap; padding: 0.5625rem 0.875rem; font-size: 0.8125rem; }
  .tut-hero h1 { font-size: 2rem; }
  .tut-hero p { font-size: 1rem; }
  .tut-playbtn { width: 4rem; height: 4rem; }
  .tut-video h2 { font-size: 1.5rem; }
  .tut-next { display: flex; justify-content: center; width: 100%; box-sizing: border-box; padding: 0.875rem 1.25rem; }
  .tut-toggle { width: 100%; text-align: center; }
  .tut-tx { padding: 1.125rem 1.125rem; }
  .tut-overview-row { grid-template-columns: 1fr; gap: 0.75rem; }
  .tut-overview-thumb { width: 7.5rem; height: 4.25rem; }
  .tut-overview-thumb img { width: 2.75rem; height: 2.75rem; border-radius: 0.625rem; }
  .tut-cta { padding: 1.75rem 1.375rem; }
  .tut-cta h2 { font-size: 1.5rem; }
  .tut-cta-primary, .tut-cta-secondary { width: 100%; box-sizing: border-box; }
}
