/* One episode's show notes, in their window on the desktop: the episode's
   name and details, a play key, and the notes on a sunken notepad page.
   Uses the machine's own tokens (os.css). */

/* where the window opens: left of Sickamp, most of the screen tall */
.dw--notes { --x: 13%; --y: 3%; --w: 44rem; }
@media (max-width: 767px) {
  /* a lot in it: runs to the bottom of the desk, like SlimeWire */
  .dw.dw--notes:not([data-max="true"]) { height: calc(100% - 2 * var(--m) - var(--step) - var(--dock, 0px)); }
}

.ep__title {
  margin: 0 0 0.5rem;
  font-family: var(--sb-font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  font-weight: 900;
  font-style: italic;
  line-height: 1.05;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.ep--wait { font-family: var(--sb-font-pixel); font-size: 0.85rem; }

.ep { padding: 0.9rem 0.75rem 1rem; }
@media (min-width: 768px) { .ep { padding: 1.25rem 1.25rem 1.4rem; } }

.ep__kicker { margin: 0 0 0.35rem; font-size: 1.15rem; font-weight: 700; line-height: 1.25; }
.ep__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0;
  margin: 0 0 1rem;
  font-family: var(--sb-font-pixel);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.ep__meta > * + *::before { content: "·"; margin: 0 0.5em; }

.ep__play { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-bottom: 1rem; }
.ep__play .os-link,
.ep__listen .os-link,
.ep-more .os-link,
.ep-more button.os-link,
.ep-notes .os-link { color: var(--sb-berry-deep); }
.ep__play .os-link { font-family: var(--sb-font-pixel); font-size: 0.8rem; font-weight: 600; }
.ep__listen { margin: 0 -0.75rem; padding-inline: 0.75rem; border-top: 2px solid var(--sb-ink-true); }
@media (min-width: 768px) { .ep__listen { margin-inline: -1.25rem; padding-inline: 1.25rem; } }

.ep-notes { margin-top: 1rem; padding: 1rem 1rem 0.4rem; font-size: 1.02rem; line-height: 1.6; }
@media (min-width: 768px) { .ep-notes { padding: 1.4rem 1.6rem 0.8rem; } }
.ep-notes h2,
.ep-more h2 {
  margin: 0 0 0.6rem;
  font-family: var(--sb-font-pixel);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ep-notes p { margin: 0 0 1em; max-width: 68ch; }
.ep-notes ul { margin: 0 0 1em; padding-left: 1.2em; list-style: square; max-width: 68ch; }
.ep-notes li { margin-bottom: 0.3em; }
.ep-notes__link { overflow-wrap: anywhere; }

.ep-more { display: grid; gap: 1.1rem; margin-top: 1.25rem; }
.ep-more ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.ep-more__pair { display: grid; gap: 0.9rem; }
@media (min-width: 640px) { .ep-more__pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ep-more__link {
  display: block;
  padding: 0.5rem 0.65rem;
  background-color: var(--sb-field);
  box-shadow: var(--os-bevel-in);
  color: var(--sb-ink-true);
  text-decoration: none;
}
.ep-more__link:hover { background-color: var(--sb-acid); }
.ep-more__link:focus-visible { outline: 2px dotted var(--sb-ink-true); outline-offset: 2px; }
.ep-more__name { display: block; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.ep-more__meta { display: block; margin-top: 0.15rem; color: #55575f; font-size: 0.75rem; font-variant-numeric: tabular-nums; }

