/* Simpler · Video tutorials (page and player) */
:root { --azure: #5cc8ff; --azure-deep: #2f9fe0; }

nav a.nav-video { color: var(--azure); }
nav a.nav-video:hover, nav a.nav-video[aria-current] { color: #9fdfff; }

.tut-intro .eyebrow { color: var(--azure); }
.tut-intro .lead { max-width: 46rem; }
/* less space between the intro and the thumbnails */
.intro.tut-intro { padding-bottom: 1.5rem; }
.tut-intro + .section { padding-top: 0; }
.tut-note { color: var(--muted); font-size: .875rem; margin-top: .5rem; }

.tut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
  gap: 1.5rem;
  padding-bottom: 4rem;
}
.tut-card {
  display: flex; flex-direction: column; gap: .75rem;
  padding: 0; margin: 0; text-align: left; color: inherit;
  background: var(--panel); border: .0625rem solid var(--line); border-radius: .5rem;
  overflow: hidden; font: inherit;
}
button.tut-card { cursor: pointer; transition: border-color .2s, transform .2s, box-shadow .2s; }
button.tut-card:hover, button.tut-card:focus-visible {
  border-color: var(--azure); transform: translateY(-.125rem);
  box-shadow: 0 .75rem 2.5rem #0008; outline: none;
}
.tut-thumb {
  position: relative; display: block; aspect-ratio: 16 / 9; background: #0b1622; overflow: hidden;
}
.tut-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
button.tut-card:hover .tut-thumb img { transform: scale(1.03); }
.tut-play {
  position: absolute; left: 50%; top: 50%; width: 3.75rem; height: 3.75rem; margin: -1.875rem 0 0 -1.875rem;
  border-radius: 50%; background: #0c0e10cc; border: .125rem solid var(--azure);
  display: grid; place-items: center; transition: background .2s;
}
.tut-play svg { width: 1.375rem; height: 1.375rem; fill: var(--azure); margin-left: .1875rem; }
button.tut-card:hover .tut-play { background: var(--azure); }
button.tut-card:hover .tut-play svg { fill: #0c0e10; }
.tut-dur {
  position: absolute; right: .5rem; bottom: .5rem; padding: .125rem .5rem; border-radius: .25rem;
  background: #000c; font-size: .75rem; font-weight: 700; letter-spacing: .02em;
}
.tut-thumb.soon {
  display: grid; place-items: center; align-content: center; gap: .25rem;
  background:
    radial-gradient(circle at 30% 20%, #5cc8ff1f, transparent 60%),
    linear-gradient(160deg, #141b22, #0d1116);
}
.tut-bignum { font-size: 3rem; font-weight: 800; letter-spacing: -.05em; color: #ffffff1f; line-height: 1; }
.tut-soon {
  font-size: .6875rem; font-weight: 700; letter-spacing: .15rem; text-transform: uppercase;
  color: var(--muted); border: .0625rem solid var(--line); border-radius: 2rem; padding: .25rem .75rem;
}
.tut-meta { display: flex; gap: .75rem; align-items: baseline; padding: 0 1rem 1rem; }
.tut-num { font-weight: 800; color: var(--azure); font-size: .875rem; min-width: 1.5rem; }
.tut-card.is-soon .tut-num { color: var(--muted); }
.tut-title { font-weight: 700; font-size: .9375rem; line-height: 1.35; }
.tut-card.is-soon .tut-title { color: #c9cdd1; }

/* ---------- modal player ---------- */
body.tut-locked { overflow: hidden; }
.tut-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 2vh 2vw; }
.tut-modal[hidden] { display: none; }
.tut-backdrop { position: absolute; inset: 0; background: #05070acc; backdrop-filter: blur(.375rem); }
.tut-dialog {
  position: relative; width: min(85rem, 96vw); max-height: 96vh; display: flex; flex-direction: column;
  background: #0f1317; border: .0625rem solid var(--line); border-radius: .625rem; overflow: hidden;
  box-shadow: 0 2rem 6rem #000c;
}
.tut-head { display: flex; align-items: center; gap: 1rem; padding: .75rem 1rem .75rem 1.25rem; border-bottom: .0625rem solid var(--line); }
.tut-head h2 { margin: 0; font-size: 1rem; font-weight: 700; flex: 1; }
.tut-head .tut-headnum { color: var(--azure); margin-right: .5rem; }
.tut-x {
  width: 2.25rem; height: 2.25rem; border-radius: 50%; border: .0625rem solid var(--line);
  background: transparent; color: var(--text); display: grid; place-items: center; font-size: 1.25rem; line-height: 1;
}
.tut-x:hover { border-color: var(--azure); color: var(--azure); }

.tut-player { position: relative; background: #000; display: flex; flex-direction: column; }
.tut-player video { display: block; width: 100%; max-height: calc(96vh - 7.5rem); background: #000; cursor: pointer; }
.tut-player:fullscreen { justify-content: center; }
.tut-player:fullscreen video { max-height: none; height: calc(100vh - 3.5rem); }

.tut-bar { display: flex; align-items: center; gap: .5rem; padding: .5rem .75rem; background: #0f1317; }
.tut-btn {
  height: 2.25rem; min-width: 2.25rem; padding: 0 .5rem; border-radius: .375rem;
  border: .0625rem solid transparent; background: transparent; color: var(--text);
  display: inline-grid; place-items: center; font-size: .8125rem; font-weight: 700;
}
.tut-btn:hover, .tut-btn:focus-visible { border-color: var(--line); color: var(--azure); outline: none; }
.tut-btn svg { width: 1.125rem; height: 1.125rem; fill: currentColor; }
.tut-btn[aria-pressed="true"] { color: var(--azure); }
.tut-time { font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 5.75rem; text-align: center; }
.tut-range { -webkit-appearance: none; appearance: none; height: .375rem; border-radius: .25rem; background: #2b3034; cursor: pointer; }
.tut-range::-webkit-slider-thumb { -webkit-appearance: none; width: .875rem; height: .875rem; border-radius: 50%; background: var(--azure); border: 0; }
.tut-range::-moz-range-thumb { width: .875rem; height: .875rem; border-radius: 50%; background: var(--azure); border: 0; }
.tut-seek { flex: 1; }
.tut-vol { width: 5rem; }
.tut-speed { min-width: 3rem; }

/* captions a bit smaller than the browser default */
.tut-player video::cue { font-size: .85em; background: #000a; }

@media (max-width: 40rem) {
  .tut-bar { flex-wrap: wrap; row-gap: .25rem; }
  .tut-seek { order: -1; flex: 1 1 100%; min-width: 0; }
  .tut-vol, .tut-stop { display: none; }
  .tut-time { min-width: 0; margin-right: auto; }
}

/* showcase tutorials (2026-11-21) */
.section.tut-block { padding-top: 0; padding-bottom: 1rem; border-bottom: 0; }
.tut-h2 { margin: 0 0 1rem; font-size: 1.25rem; font-weight: 700; }
.tut-block .tut-grid { padding-bottom: 2.5rem; }
.tut-card.is-showcase { background: #2a1b12; border-color: #4a3122; }
.tut-card.is-showcase:hover, .tut-card.is-showcase:focus-visible { border-color: #c98a5a; }
.tut-card.is-showcase .tut-num { color: #f0a46e; }
.tut-desc { display: block; padding: 0 1rem 1rem; color: #cdbfb4; font-size: .8125rem; line-height: 1.45; }
