/* The film's transcript under the lesson video (transcript_block() in server/app.php, HTML by
   tools/build.py from source/transcripts/). A closed fold-out by default; open, it reads like a
   quiet book page: chapter headings with a time that plays the film from there, Hebrew in Shlomo
   and every transliteration in Charis SemiBold upright (.tr in course.css). */
details.transcript { margin: -12px 0 30px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--card); }
details.transcript > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline;
  gap: 12px; flex-wrap: wrap; padding: 12px 18px; border-radius: 14px; }
details.transcript > summary::-webkit-details-marker { display: none; }
details.transcript > summary::after { content: ""; margin-left: auto; align-self: center; width: 8px; height: 8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-2px);
  transition: transform .2s; }
details.transcript[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
details.transcript > summary:hover .tx-title { text-decoration: underline; text-underline-offset: 3px; }
details.transcript > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tx-title { color: var(--accent); font-weight: bold; }
.tx-title .fa { margin-right: 4px; }
.tx-sub { color: var(--muted); font-size: 15px; }
details.transcript[open] > summary { border-bottom: 1px solid var(--line); border-radius: 14px 14px 0 0; }

.tx-body { padding: 4px 22px 18px; max-height: 70vh; overflow-y: auto; overscroll-behavior: contain; }
.tx-body .tx-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 26px 0 8px; }
.tx-tools .btn-line { font-size: 15px; padding: 6px 16px; text-decoration: none; background: var(--card); }
.tx-hint { color: var(--muted); font-size: 14px; }
.tx-body section + section { margin-top: 6px; }
/* h2 (after the page's h1, no skipped level); drawn as the small chapter line it always was. */
.tx-body h2 { font-size: 17px; margin: 18px 0 6px; padding-bottom: 0; border-bottom: 0; display: flex; align-items: baseline; gap: 10px; }
.tx-jump { font: inherit; font-size: 13px; font-weight: normal; font-variant-numeric: tabular-nums; cursor: pointer;
  color: var(--accent); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px;
  min-width: 52px; }
.tx-jump:hover { border-color: var(--accent); }
.tx-jump:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tx-body p { margin: 0 0 10px; line-height: 1.7; }
.tx-body .he { font-size: .92em; line-height: var(--he-lh-inline); color: var(--he); }
/* Reading charts to print (chart_block() in server/app.php): a quiet row of pills under the film and its
   transcript, on the lessons that teach the letters, the vowel signs and the accents. */
.lesson-charts { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; margin: -14px 0 30px; }
.lesson-charts .lc-label { color: var(--muted); font-size: 15px; }
.lesson-charts .btn-line { font-size: 15px; padding: 6px 16px; text-decoration: none; background: var(--card);
  display: inline-flex; align-items: center; gap: 8px; }

@media (max-width: 600px) {
  .tx-body { padding: 2px 16px 14px; max-height: 75vh; }
  details.transcript > summary { padding: 12px 14px; }
}
/* A time on a page with no film to play (a paid lesson read by a guest). */
.tx-time { font-size: 13px; font-weight: normal; font-variant-numeric: tabular-nums; color: var(--muted); min-width: 40px; }
