/* Hear it read: the line being read lit like a highlighter swipe, and the deck at the foot of the page, a small
   tape-deck row of keys. Nothing moves while it reads except the page turning to the line. */
.element--spoken {
  border-radius: 2px;
  background: linear-gradient(transparent 12%, color-mix(in srgb, #f4d35e 55%, transparent) 12% 88%, transparent 88%);
  box-decoration-break: clone;
}
.scene__heading.element--spoken { background-color: transparent; }

.table-read {
  position: fixed;
  inset: auto 0 1rem;
  z-index: 20;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
  pointer-events: none;
}
.table-read__deck {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  background: var(--chrome);
  color: var(--ink);
  box-shadow: var(--shadow-menu);
  pointer-events: auto;
}
.table-read__key {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.table-read__key svg { width: 1.15rem; height: 1.15rem; }
.table-read__key:hover, .table-read__key:focus-visible { background: rgb(0 0 0 / 0.07); }
.table-read__key--play { background: var(--ink); color: var(--chrome); }
.table-read__key--play:hover { background: color-mix(in srgb, var(--ink) 85%, white); }
.table-read__key--play[aria-pressed="true"] .table-read__play,
.table-read__key--play[aria-pressed="false"] .table-read__pause { display: none; }

.table-read__action { display: flex; align-items: center; gap: 0.3rem; padding: 0 0.4rem; font: 600 0.8rem var(--font-ui); cursor: pointer; }

.table-read__cast { position: relative; }
.table-read__cast > summary { list-style: none; }
.table-read__cast > summary::-webkit-details-marker { display: none; }
.table-read__parts {
  position: absolute;
  right: -3rem;
  bottom: calc(100% + 0.8rem);
  display: grid;
  gap: 0.5rem;
  width: min(22rem, calc(100vw - 2rem));
  max-height: 60vh;
  overflow: auto;
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  background: var(--chrome);
  box-shadow: var(--shadow-menu);
}
.table-read__parts-note { margin: 0; color: var(--pencil); font: 0.8rem var(--font-ui); }
.table-read__part { display: grid; grid-template-columns: 1fr 1.3fr; align-items: center; gap: 0.6rem; font: 600 0.8rem var(--font-typed); }
.table-read__part select { min-width: 0; font: 0.8rem var(--font-ui); }
.table-read__unavailable { position: fixed; bottom: 1rem; left: 50%; translate: -50% 0; z-index: 20; }

@media (max-width: 30rem) {
  .table-read__action { display: none; }
  .table-read__parts { right: -5rem; }
}

.table-read[hidden], .table-read__unavailable[hidden] { display: none; }
.table-read__deck, .table-read__parts { color-scheme: light; }
.table-read__cast > summary { border-radius: 999px; color: var(--ink); }
.table-read__cast > summary:hover, .table-read__cast[open] > summary { background: rgb(0 0 0 / 0.07); }
