/* ═══════════════════════════════════════════════════════════════════════════
 * signitur — TUTORIAL TAB (Sep 21). Pairs with js/tutorials.js.
 * Holds itself to dash-lab.css's rules: the 4/8/12/16/20/24/32 spacing scale,
 * the 8/12/16/20 radius scale, size-specific tracking, depth from a layered
 * shadow plus a hairline rather than a heavy border, and the accent used once
 * per region — it appears on the play control and nowhere else.
 * ═══════════════════════════════════════════════════════════════════════ */

body.dash #viewTutorial { padding-bottom: var(--s7, 32px); }
body.dash .tut-group { margin: 0 0 var(--s7, 32px); }
body.dash .tut-group > h3 {
  margin: 0 0 var(--s1, 4px); font-size: 17px; font-weight: 700;
  letter-spacing: -.02em; color: var(--ink-1, #161110);
}
body.dash .tut-blurb {
  margin: 0 0 var(--s4, 16px); font-size: 13px; color: var(--ink-2, #6B615A); letter-spacing: -.005em;
}
body.dash .tut-grid {
  display: grid; gap: var(--s4, 16px);
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
}

body.dash .tut-card2 {
  background: var(--surface, #fff); border-radius: var(--r-lg, 16px);
  box-shadow: 0 1px 2px rgba(30,18,9,.05), 0 1px 1px rgba(30,18,9,.03);
  outline: 1px solid var(--hairline, rgba(30,18,9,.09)); outline-offset: -1px;
  overflow: hidden; display: flex; flex-direction: column;
}

/* the face: a designed card, NOT a YouTube thumbnail — a thumbnail would be a
 * third-party request from i.ytimg.com on every card at page load, which is
 * the cost this whole approach exists to avoid */
body.dash .tut-face {
  aspect-ratio: 16 / 9; position: relative; display: grid; place-items: center;
  background: linear-gradient(140deg, #F7F5F2 0%, #EFEAE4 100%);
  border-bottom: 1px solid var(--hairline, rgba(30,18,9,.09));
}
body.dash .tut-face.is-live { cursor: pointer; }

/* the real poster, served from our own host (see js/tutorials.js) */
body.dash .tut-poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 320ms cubic-bezier(.32,.72,0,1);
}
body.dash .tut-face.is-live:hover .tut-poster { transform: scale(1.03); }
/* a scrim, so the play control and the client label keep their contrast over
   whatever the frame happens to be — thumbnails are not designed for this */
body.dash .tut-face.is-live::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,8,7,.34) 0%, rgba(10,8,7,.06) 38%, rgba(10,8,7,.30) 100%);
}
body.dash .tut-client {
  position: absolute; top: var(--s3, 12px); left: var(--s3, 12px); z-index: 2;
  font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-3, #9C918A);
}
body.dash .tut-face.is-live .tut-client { color: rgba(255,255,255,.92); text-shadow: 0 1px 2px rgba(0,0,0,.4); }
body.dash .tut-play { z-index: 2; }
body.dash .tut-play {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(92deg, #FB8221, #FA962B); color: #fff;
  box-shadow: 0 2px 6px rgba(251,130,33,.34), 0 8px 22px rgba(251,130,33,.24);
  transition: transform 160ms cubic-bezier(.32,.72,0,1);
  /* no padding nudge here — the optical correction lives in the SVG path, so
     there is exactly one place doing it (see PLAY in js/tutorials.js) */
}
body.dash .tut-face.is-live:hover .tut-play { transform: scale(1.06); }
body.dash .tut-face.is-live:active .tut-play { transform: scale(.96); }
body.dash .tut-face:focus-visible { outline: 2px solid #FB8221; outline-offset: -3px; }
body.dash .tut-nofilm { font-size: 12px; color: var(--ink-3, #9C918A); letter-spacing: -.004em; }

body.dash .tut-body { padding: var(--s4, 16px); display: flex; flex-direction: column; gap: var(--s2, 8px); }
body.dash .tut-body h4 {
  margin: 0; font-size: 14.5px; font-weight: 600; letter-spacing: -.014em; color: var(--ink-1, #161110);
}
body.dash .tut-dev {
  display: inline-flex; align-items: center; gap: 5px; align-self: flex-start;
  font-size: 11px; font-weight: 500; color: var(--ink-2, #6B615A);
  background: rgba(30,18,9,.05); border-radius: var(--r-sm, 8px); padding: 4px 8px;
}
body.dash .tut-soon {
  align-self: flex-start; font-size: 11px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-3, #9C918A);
}
body.dash .tut-note { margin: 0; font-size: 12px; line-height: 1.5; color: var(--ink-2, #6B615A); }
body.dash .tut-steps {
  margin: var(--s1, 4px) 0 0; padding-left: 18px;
  font-size: 12.5px; line-height: 1.7; color: var(--ink-2, #6B615A);
}
body.dash .tut-steps li { margin-bottom: 2px; }
body.dash .tut-steps b { font-weight: 600; color: var(--ink-1, #161110); }
body.dash .tut-steps kbd {
  font: 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 2px 5px;
  border-radius: 5px; background: rgba(30,18,9,.06); color: var(--ink-1, #161110);
}

/* ---- player ---- */
body.dash .tut-player {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center;
  background: rgba(22,17,16,.62); backdrop-filter: blur(6px); padding: var(--s5, 20px);
  animation: tutIn 180ms cubic-bezier(.32,.72,0,1);
}
@keyframes tutIn { from { opacity: 0; } to { opacity: 1; } }
body.dash .tut-player-box { width: min(980px, 100%); position: relative; }
body.dash .tut-frame {
  aspect-ratio: 16 / 9; border-radius: var(--r-lg, 16px); overflow: hidden;
  background: #000; box-shadow: 0 24px 70px rgba(0,0,0,.5);
}
body.dash .tut-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
body.dash .tut-close {
  position: absolute; top: -42px; right: 0; width: 32px; height: 32px; border: 0;
  border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; cursor: pointer;
  font-size: 14px; line-height: 1; display: grid; place-items: center;
}
body.dash .tut-close:hover { background: rgba(255,255,255,.24); }

@media (prefers-reduced-motion: reduce) {
  body.dash .tut-player { animation: none; }
  body.dash .tut-play { transition: none; }
}
@media (max-width: 740px) {
  body.dash .tut-grid { grid-template-columns: 1fr; }
  body.dash .tut-close { top: auto; bottom: -42px; right: 50%; transform: translateX(50%); }
}
