/* /tutorials (owner, 2026-11-23: "make this page nice"): the episodes are a
   grid of cards, each with its video at 16:9 on top, then the episode, its
   title, what happened and the links. Two across a wide window, one on a
   phone; the whole playlist is one link under the introduction. */
[data-page="tutorials"][data-component="content-article"] [data-slot="playlist"] {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
}

[data-page="tutorials"][data-component="content-article"] [data-slot="episodes"] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 24px;
  margin: 2rem 0 0;
}

[data-page="tutorials"][data-component="content-article"] [data-slot="episode"] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 1px solid var(--cos-border, rgba(255, 255, 255, 0.08));
  border-radius: 14px;
  background: var(--cos-bg-raised, #1b1b1b);
  transition: border-color 0.15s ease;
}

[data-page="tutorials"][data-component="content-article"] [data-slot="episode"]:hover {
  border-color: var(--cos-border-strong, rgba(255, 255, 255, 0.22));
}

[data-page="tutorials"][data-component="content-article"] [data-slot="video"] {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  border-radius: 0;
  background: #000;
}

[data-page="tutorials"][data-component="content-article"] [data-slot="video"] iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

[data-page="tutorials"][data-component="content-article"] [data-slot="episode-body"] {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 22px 20px;
}

[data-page="tutorials"][data-component="content-article"] [data-slot="episode-number"] {
  margin: 0;
  color: var(--cos-text-tertiary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

[data-page="tutorials"][data-component="content-article"] [data-slot="episode"] h2 {
  margin: 6px 0 10px;
  font-size: 1.1875rem;
  line-height: 1.35;
}

[data-page="tutorials"][data-component="content-article"] [data-slot="episode-body"] > p:not([data-slot]) {
  margin: 0;
  color: var(--cos-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* The links sit at the foot of the card, so a row of cards lines them up. */
[data-page="tutorials"][data-component="content-article"] [data-slot="episode-links"] {
  margin: auto 0 0;
  padding-top: 14px;
  font-size: 0.875rem;
  font-weight: 600;
}
