/* The music production course's pages (Tools/course/build.py, after /manual/manual.css and /circuits/course.css): the
   course's look with its own part colour, the recorded players (the homepage Listen band's, as /generative/ has them: dark
   in both themes), and the hub's plan (written pages as cards, the rest as plain titles under "Planned"). */
body.part-production { --part: #ff8a5c; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) body.course.part-production { --part: #c2501f; } }
:root[data-theme="light"] body.course.part-production { --part: #c2501f; }
.pr-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ——— A page ——— */
.course .pr-byline { text-decoration: none; }
.course .pr-byline:hover { text-decoration: underline; text-underline-offset: 3px; }
.course .pr-table th, .course .pr-table td { text-align: left; vertical-align: top; }
.course .pr-try ol li, .course .pr-numbers li { margin-bottom: 10px; }
.course .pr-numbers li { color: var(--muted); }
.course .pr-numbers b { color: var(--text); }
.course .pr-end { border-top: 0; }
.course .col code { overflow-wrap: anywhere; }

/* Listen: each sound a player, its caption the line that names it. */
.course ol.pr-listen, .course ul.pr-listen { list-style: none; padding-left: 0; margin: 0 0 18px; display: grid; gap: 12px; max-width: 720px; }
.course .pr-listen li { margin: 0; }
.course .pr-listen-sec .col > p + .song { margin-top: -4px; }
.course .pr-listen-sec .col > .song { margin: 0 0 20px; max-width: 720px; }

/* The player: the homepage's Listen band (index.html .song), at a list's size. */
.song { margin: 0; padding: 14px 16px 14px; border-radius: 16px; background: #0c0d12; border: 1px solid #262a36; color: #eef0f6; }
.song-top { display: flex; align-items: center; gap: 14px; }
.song-play {
  flex: none; width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  color: #fff; background: #e8643a; box-shadow: 0 8px 22px rgba(232, 100, 58, 0.32); transition: transform .15s, filter .15s;
}
.song-play:hover { transform: scale(1.05); filter: brightness(1.1); }
.song-play:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 50%; }
.song-play .pause, .song[data-state="playing"] .song-play .play { display: none; }
.song[data-state="playing"] .song-play .pause { display: block; }
.song[data-state="loading"] .song-play { animation: pr-wait 1s ease-in-out infinite alternate; }
@keyframes pr-wait { from { opacity: 1; } to { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .song[data-state="loading"] .song-play { animation: none; opacity: .7; } }
.song-top figcaption { margin: 0; min-width: 0; flex: 1; font-size: inherit; color: inherit; text-align: left; }   /* (not the Manual's figure captions) */
.song-label { display: block; font-size: 16px; line-height: 1.4; color: #eef0f6; }
.song-label b { color: #fff; }
.song-label code { font: 600 13px/1.3 var(--mono, ui-monospace, Menlo, monospace); color: #ffb08f; background: #1b1d26; border: 1px solid #2a2e3b; border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
.song-label a { color: #8cc0ff; }
.song-label .pr-n { color: #9aa0b2; font-weight: 700; }
.song-time { display: block; color: #9aa0b2; font-size: 13.5px; font-variant-numeric: tabular-nums; margin-top: 4px; }
.song-wave { position: relative; margin-top: 12px; height: 44px; border-radius: 6px; }
.song-wave svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.song-wave .all { fill: #3a3f50; }
.song-wave .done { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--at, 0%)) 0 0); }
.song-wave input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.song-wave input:disabled { cursor: default; }
.song-wave:has(input:focus-visible) { outline: 3px solid #fff; outline-offset: 4px; }
@media (max-width: 600px) { .song { padding: 12px 12px 12px; } .song-top { gap: 12px; } .song-play { width: 44px; height: 44px; } .song-label { font-size: 15px; } }

/* ——— The hub: the whole plan ——— */
.course .pr-feedback { margin: 14px 0 0; color: var(--muted); max-width: 36em; }
.course .pr-feedback a { font-weight: 600; }
.chap ul.pages small.pr-num { display: block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--part); margin-bottom: 4px; }
.pr-planned { margin: 6px 0 0; }
.chap.pr-written .pr-planned { margin-top: 18px; }
.pr-planned h3 { margin: 0 0 6px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pr-planned ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 720px; }
.pr-planned li { padding: 9px 0 9px 16px; border-top: 1px solid var(--line); color: var(--muted); position: relative; line-height: 1.4; }
.pr-planned li:first-child { border-top: 0; }
.pr-planned li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--muted); opacity: .7; }
.pr-tag { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px;
  color: var(--part); border: 1px solid color-mix(in srgb, var(--part) 55%, transparent); border-radius: 999px; padding: 2px 8px; }
.chap.pr-plan h2 { color: var(--text); }
.part-production .hero .lede + p { margin-top: 16px; }
.part-production .hero > p:not(.lede):not(.dates) { max-width: 40em; }
/* (white words on the light theme's darker orange; the dark theme's lighter orange keeps the course's dark words) */
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .part-production .start { color: #fff; } }
:root[data-theme="light"] .part-production .start { color: #fff; }
