/* Whole Word Music — site styles
 *
 * Night Vigil: deep navy, cool ink, one candle-gold accent. The colors, type
 * families, radii and tap size come from tokens.css, which is the brand's own
 * file copied in by tools/sync-brand.mjs and linked ahead of this one. Never
 * restate a brand token here; change the brand and sync it.
 */

/* ---------- site-local tokens -------------------------------------------- */
/* Only what the brand does not name. --shadow is a color, so each shadow can
   pick its own direction; it is navy, never pure black. --backdrop dims the
   page behind a dialog in the page's own night or day. --danger marks a form
   error: a border, never text, and never near a translation chip. */

:root, .night {
  --shadow:   rgb(9 12 23 / .45);
  --backdrop: rgba(var(--scrim), .72);
  --danger:   #e58a73;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --shadow:   rgb(20 27 45 / .14);
    --backdrop: rgba(var(--scrim), .72);
    --danger:   #b3402e;
  }
}

:root[data-theme="light"] {
  --shadow:   rgb(20 27 45 / .14);
  --backdrop: rgba(var(--scrim), .72);
  --danger:   #b3402e;
}

/* The type scale (BRAND.md section 5): 14 / 16 / 18 / 22 / 28 / 36 / 48 px.
   Nothing on the site is smaller than 14px except the translation chips and
   a one-word caption under an icon (--t12, the iOS tab-bar convention). */

:root {
  --t12: .75rem;
  --t14: .875rem;
  --t16: 1rem;
  --t18: 1.125rem;
  --t22: 1.375rem;
  --t28: 1.75rem;
  --t36: 2.25rem;
  --t48: 3rem;
}

/* ---------- base -------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t16);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: var(--t36); letter-spacing: -.015em; }
h2 { font-size: var(--t22); }
h3 { font-size: var(--t18); }
@media (min-width: 48rem) {
  h1 { font-size: var(--t48); }
  h2 { font-size: var(--t28); }
}

/* Inter 700 is the AI corner's alone; bold in running text is 600. */
strong, b { font-weight: 600; }

p { margin: 0 0 1rem; }
p, li { max-width: var(--measure); }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

.container { width: min(64rem, 100% - 2.5rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px;
  background: var(--accent); color: var(--accent-ink);
  padding: .6rem 1rem; border-radius: 0 0 var(--radius) 0; z-index: 10;
}
.skip-link:focus { left: 0; top: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-sm); }

/* ---------- header / footer --------------------------------------------- */

.site-header { border-bottom: 1px solid var(--rule); background: var(--surface); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; padding: 1rem 0;
}

/* The lockup as the brand draws it (brand/templates/brand.css .brand): the
   mark in gold at 1.48 times the name's size, one notehead's gap, the name in
   Newsreader 600. At 22px the mark is about 33px, over the 24px minimum. */
.wordmark {
  display: inline-flex; align-items: center; gap: .48em;
  font-family: var(--serif); font-size: var(--t22); font-weight: 600; line-height: 1;
  color: var(--ink); text-decoration: none; letter-spacing: -.008em; white-space: nowrap;
}
.wordmark__mark {
  flex: none; width: 1.48em; height: 1.48em; min-width: 24px; min-height: 24px;
  color: var(--accent); overflow: visible;
}
.wordmark:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* Gold is for Play. The page you are on is in ink, underlined. */
.nav { display: flex; gap: 1.4rem; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: var(--t16); }
.nav a:hover { color: var(--ink); }
/* Back, first in the row on every screen but Home. */
.nav a[hidden] { display: none; }
.site-back { white-space: nowrap; }
.nav a[aria-current="page"] {
  color: var(--ink); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px;
}

.site-footer {
  margin-top: 4rem; border-top: 1px solid var(--rule);
  background: var(--surface); color: var(--ink-soft); font-size: var(--t14);
}
.site-footer__inner {
  display: flex; justify-content: space-between; gap: 2rem;
  flex-wrap: wrap; padding: 2rem 0 2.5rem;
}
.site-footer p { margin: 0 0 .25rem; }
.footer-nav { display: flex; flex-direction: column; gap: .35rem; }
.footer-nav a { color: var(--ink-soft); text-decoration: none; }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; }
.stack > * { max-width: 28rem; }

/* ---------- sections ---------------------------------------------------- */

.section { padding: 3rem 0; }
.section--tight { padding: 2rem 0; }
.section--alt { background: var(--surface-alt); border-block: 1px solid var(--rule); }

.hero { padding: 4rem 0 3rem; }
.hero p.lead {
  font-size: var(--t18); color: var(--ink-soft); max-width: 40rem;
}

/* The first screen (BRAND.md section 11.1): the night palette in either
   theme, the tagline, one line, and one big Play for Whole Word Mix. Its
   gold disc is the only gold on the screen; everything under it is quiet. */
.hero.night { background: var(--bg); border-bottom: 1px solid var(--rule); padding: 3rem 0 2.5rem; }
.hero.night .lead { margin-bottom: 1.75rem; }
.big-play {
  display: inline-flex; align-items: center; gap: 1rem;
  padding: .25rem 1.25rem .25rem .25rem; border-radius: var(--radius-pill);
  color: var(--ink); text-decoration: none;
}
.big-play__disc {
  flex: none; display: grid; place-items: center; width: 80px; height: 80px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
}
/* The play shape sits a little right of center, so it looks centered. */
.big-play__disc svg.icon { width: 40px; height: 40px; margin-left: 4px; }
.big-play.playing .big-play__disc svg.icon { margin-left: 0; }
.big-play__text { display: flex; flex-direction: column; line-height: 1.15; }
.big-play__word { font: 600 var(--t28)/1.1 var(--sans); }
.big-play__caption { font-size: var(--t16); color: var(--ink-soft); }
.big-play:hover .big-play__disc { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.big-play:hover .big-play__word { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.big-play:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--radius-pill); }
.hero__more { display: flex; flex-wrap: wrap; gap: .5rem .75rem; margin-top: 2rem; }
@media (max-width: 40rem) {
  .hero.night { padding: 2rem 0 1.75rem; }
  .hero.night .lead { margin-bottom: 1.25rem; }
  .hero__more { margin-top: 1.5rem; }
}

.lede { font-size: var(--t18); color: var(--ink-soft); max-width: 40rem; }

/* ---------- buttons ----------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: .45rem; min-height: var(--tap);
  padding: .6rem 1.1rem; border-radius: var(--radius);
  font: 600 var(--t16)/1.25 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
}
/* Hover moves the gold a step toward the ink: lighter on night, darker on
   day, so the text on it only gains contrast. Browsers without color-mix
   keep the plain gold. */
.btn:hover {
  background: color-mix(in srgb, var(--accent) 86%, var(--ink));
  border-color: color-mix(in srgb, var(--accent) 86%, var(--ink));
}
/* A gold ring on a gold button vanishes; the ring is ink. */
.btn:focus-visible { outline-color: var(--ink); }
/* Gold is for the main action and what is playing. Everything else is a
   quiet button: a rule border and ink, raised a step on hover. */
.btn--quiet, .btn--quiet:hover { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn--quiet:hover { background: var(--surface-alt); }
.btn--quiet:focus-visible { outline-color: var(--accent); }
.btn:disabled, .btn[disabled] { cursor: default; color: var(--ink-faint); background: transparent; border-color: var(--rule); }

/* The drawn icons (play, pause, plus) take the text's color and size. */
svg.icon { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }
.btn-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* ---------- albums ------------------------------------------------------ */

/* One album is one row: a small cover, the reference, a quiet line, and Play
   (album-view.js card()). Sixteen fit in two phone screens. Where there is
   room the same markup is a grid of covers. Favorites and your own lists are
   the same rows at every width (.albums--rows): they have no cover to show. */
.albums { display: flex; flex-direction: column; margin-top: 1.25rem; border-top: 1px solid var(--rule); }
.album { display: flex; align-items: center; gap: .5rem; border-bottom: 1px solid var(--rule); }
/* The cover and the words are one link to the album's screen. */
.album__link {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: .75rem;
  min-height: 4.25rem; padding: .4rem 0; color: inherit; text-decoration: none; border-radius: var(--radius);
}
.album__link:hover .album__title { text-decoration: underline; text-underline-offset: 3px; }
.album__link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* height: auto is what lets aspect-ratio win over the height attribute on the
   tag, which is there so the page does not jump as the covers load. */
.album__cover {
  flex: none; width: 3.25rem; height: auto; aspect-ratio: 1; object-fit: cover;
  border-radius: calc(var(--radius) / 2); border: 1px solid var(--rule); background: var(--surface-alt);
}
.album__placeholder { display: flex; align-items: center; justify-content: center; border-style: dashed; color: var(--ink-soft); }
.album__text { min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.album__title { font-family: var(--serif); font-size: var(--t18); font-weight: 600; line-height: 1.2; }
.album__sub { font-size: var(--t14); line-height: 1.3; color: var(--ink-soft); }
/* Play is a round button with no word in a row, as the bar's own Play is: the
   row has no room for one beside a long reference. Its name is still read
   out, and the word is back where the covers are large. */
.album .album__play { flex: none; align-self: center; justify-content: center; width: var(--tap); padding: 0; border-radius: 50%; }
.album .album__play span {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.albums .chips { display: none; }
/* The album that is on, playing or paused: gold is for what is playing now. */
.album.is-on .album__cover { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (min-width: 48rem) {
  .albums:not(.albums--rows) {
    display: grid; gap: 1.5rem; margin-top: 2rem; border-top: 0;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  }
  .albums:not(.albums--rows) .album { flex-direction: column; align-items: flex-start; gap: .6rem; border-bottom: 0; }
  .albums:not(.albums--rows) .album__link { flex-direction: column; align-items: stretch; gap: .6rem; width: 100%; padding: 0; }
  .albums:not(.albums--rows) .album__cover { width: 100%; border-radius: var(--radius); }
  .albums:not(.albums--rows) .album__text { gap: .3rem; }
  .albums:not(.albums--rows) .album__play { align-self: flex-start; width: auto; padding: .45rem .9rem; border-radius: var(--radius); }
  .albums:not(.albums--rows) .album__play span { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; }
  .albums:not(.albums--rows) .chips { display: flex; align-self: flex-start; margin-top: .3rem; }
  .albums:not(.albums--rows) .album.is-on .album__cover { outline-width: 3px; outline-offset: 3px; }
  .albums--rows { max-width: 32rem; }
}

/* Yours, under the albums on the home page. */
.yours { margin: 2rem 0 0; }
.yours__title { margin: 0; font-size: var(--t18); }
.yours .albums { margin-top: .5rem; }

/* ---------- passage index ----------------------------------------------- */

/* The box stays with the reader down the whole index: fifty-odd passages is
   fourteen phone screens, and the way back to it should not be a long scroll. */
.filter {
  position: sticky; top: 0; z-index: 5; background: var(--bg);
  margin: 1.5rem 0 .5rem; padding: .6rem 0;
}
.filter label { display: block; font-size: var(--t14); color: var(--ink-soft); margin-bottom: .35rem; }
.filter input {
  width: min(24rem, 100%); min-height: var(--tap); padding: .6rem .8rem; font: inherit; font-size: var(--t16);
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--rule); border-radius: var(--radius);
}
.filter__count { margin-top: .5rem; font-size: var(--t14); color: var(--ink-faint); }
.filter .filter__check {
  display: inline-flex; align-items: center; gap: .55rem; min-height: var(--tap);
  margin: .25rem 0 0; padding-right: .5rem; font-size: var(--t16); color: var(--ink); cursor: pointer;
}
.filter input[type="checkbox"] {
  width: 1.25rem; height: 1.25rem; min-height: 0; margin: 0; padding: 0; accent-color: var(--esv-ink);
}

.book { margin-top: 2.5rem; scroll-margin-top: 1rem; }
/* The books with a song, at the top of Find a verse: a tap goes to the book. */
.books { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 0; }
.books a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 .85rem;
  border: 1px solid var(--rule); border-radius: var(--radius-pill);
  color: var(--ink); text-decoration: none; font-size: var(--t14); font-weight: 600; white-space: nowrap;
}
.books a:hover { background: var(--surface-alt); }
.books[hidden] { display: none; }
.linkrow--foot { margin-top: 2.5rem; }
.book__name {
  font-family: var(--serif); font-size: var(--t22); margin: 0 0 .25rem;
  padding-bottom: .4rem; border-bottom: 2px solid var(--rule);
}

.songs { list-style: none; margin: 0; padding: 0; }
/* A passage is the song row every screen draws (album-view.js row()): a tap
   plays it, More holds the rest. Its styles, where it has several, fold
   under it as the same rows. A row arrived at by its link
   (/songs.html#psalm-32) stops short of the box that stays at the top. */
.song { max-width: none; border-bottom: 1px solid var(--rule); scroll-margin-top: 6rem; }
.song > .song-row { border-bottom: 0; }
.song-row--none { cursor: default; padding-left: var(--tap); }

.stream::after { content: "\2197"; font-size: .85em; margin-left: .3em; }

@media (max-width: 40rem) {
  .filter input { width: 100%; }
}

/* The legend for the translation labels, folded away until asked for. */
.legend { padding-block: .3rem; margin: 1rem 0 0; }
.legend summary {
  display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .5rem;
  min-height: var(--tap); cursor: pointer; list-style: none;
}
.legend summary::-webkit-details-marker { display: none; }
.legend summary::after { content: "\25B8"; color: var(--ink-soft); margin-left: auto; }
.legend[open] summary::after { content: "\25BE"; }
.legend[open] summary { margin-bottom: .5rem; }
.legend[open] { padding-bottom: 1.1rem; }

/* ---------- arrangements ------------------------------------------------- */
/* Psalm 32 is one passage in two dozen styles. Listed flat they would bury the
   index, so they fold under the passage's own row: "24 styles", in line with
   the reference, and under it the same song rows, set in a little. */

.takes { margin: -.2rem 0 .4rem; padding-left: calc(var(--tap) + .25rem); }
.takes > summary {
  display: inline-flex; align-items: center; gap: .35rem; min-height: var(--tap); cursor: pointer;
  color: var(--ink-soft); font-size: var(--t14); font-weight: 600; list-style: none;
}
.takes > summary::-webkit-details-marker { display: none; }
.takes > summary::after { content: "\25B8"; font-size: .9em; }
.takes[open] > summary::after { content: "\25BE"; }
.takes > summary:hover { color: var(--ink); text-decoration: underline; }
.takes__list { margin: 0 0 .25rem; }
.takes__list .song-row:last-child { border-bottom: 0; }
.takes__list .song-row__ref { font-size: var(--t16); }
.fav, .add-to-list, a.play { white-space: nowrap; }

/* ---------- translation chips ------------------------------------------ */
/* BRAND.md section 6: a small rounded rectangle, a 1px border in the chip's
   own ink, Inter 600 caps tracked at 0.12em. ESV is always green and KJV
   updated always violet-slate; the text always says which. A translation
   the brand gives no color (Public domain, Original) gets a neutral chip
   with its own name, and the build says so. Chips are the one thing on the
   site under 14px. Gold never sits on or in one. */

.chip, .tag {
  display: inline-flex; align-items: center; flex: none; vertical-align: middle;
  padding: .32em .7em; border: 1px solid currentColor; border-radius: var(--radius-sm);
  font: 600 .75rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  white-space: nowrap;
}
.chip--esv, .tag--esv { color: var(--esv-ink); background: var(--esv-bg); }
.chip--kjv { color: var(--kjv-ink); background: var(--kjv-bg); }
/* The small chip on a list row's second line, beside the song's name. */
.chip--sm { padding: .22em .5em; font-size: .625rem; letter-spacing: .08em; vertical-align: .1em; }
.chip--other, .tag--other, .tag--none { color: var(--ink-soft); background: var(--surface-alt); border-color: var(--rule); }

/* A heading that opens with a chip: the chip and the words are two units, so
   on a narrow phone the words drop below the chip whole instead of leaving
   one word stranded on the second line. */
.chip-head { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; }
.chip-head > span:last-child { text-wrap: balance; }
/* Mixed albums and lists: both chips side by side, ESV first. */
.chips { display: inline-flex; flex-wrap: wrap; gap: .35rem; vertical-align: middle; }
/* On the site ahead of release, and recently: the new material a returning
   visitor came back for. A neutral outline, neither a translation's color
   nor the gold, so it never reads as a claim about the text and never puts
   the accent beside a chip. */
.chip--new, .tag--new { color: var(--ink-soft); background: transparent; border-color: var(--ink-faint); margin-left: .3rem; }
/* .tag is the old name, kept for one release so a page cached before the
   chips still reads. Remove it with the next release. */

/* A track as every list draws it: the reference first, in Newsreader, then
   its chip, then the song's name in the secondary ink. */
.track { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .15rem .5rem; min-width: 0; max-width: 100%; padding: .3rem 0; }
.track__ref { font-family: var(--serif); font-weight: 600; font-size: var(--t18); line-height: 1.25; color: var(--ink); font-variant-numeric: tabular-nums; }
.track__name { color: var(--ink-soft); font-weight: 400; }

/* ---------- callout ----------------------------------------------------- */

.note {
  background: var(--surface-alt); border: 1px solid var(--rule);
  border-left: 4px solid var(--ink-faint);
  border-radius: var(--radius); padding: 1.1rem 1.25rem; margin: 1.75rem 0;
}
.note > :last-child { margin-bottom: 0; }
.note h3 { margin-top: 0; }

.notice {
  font-family: var(--serif); font-size: var(--t16); line-height: 1.7;
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 1.25rem; color: var(--ink-soft);
}
.notice p { max-width: none; }

/* ---------- misc -------------------------------------------------------- */

.muted { color: var(--ink-soft); }
.small { font-size: var(--t14); }
[hidden] { display: none !important; }

/* ---------- player ------------------------------------------------------- */
/* One <audio> for the whole page, in a bar pinned along the bottom; play
   controls are anchors that player.js redirects into it. The bar only exists
   after the first play, so pages without audio never show it. */

a.play {
  display: inline-flex; align-items: center; gap: .35em;
  color: var(--ink); font-weight: 600; text-decoration: none;
}
a.play.playing { color: var(--accent-on-soft); }
a.play:hover span { text-decoration: underline; }


.player {
  position: fixed; inset: auto 0 0 0; z-index: 50;
  background: var(--surface); border-top: 1px solid var(--rule);
  box-shadow: 0 -6px 24px var(--shadow);
  padding: .5rem 0 calc(.5rem + env(safe-area-inset-bottom, 0px));
}
.player__inner { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
/* The album's cover leads what is playing (PLAN.md 7.1), so the bar never
   reads as one more song row. A song with no album shows the list mark. */
.player__head { flex: 3 1 24rem; min-width: 0; display: flex; align-items: center; gap: .75rem; }
.player__cover {
  flex: none; display: grid; place-items: center; width: 56px; height: 56px; padding: 0;
  border: 0; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--surface-alt); color: var(--ink-faint); fill: currentColor; cursor: default;
}
.player__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.player__cover img:not([hidden]) + svg { display: none; }
.player .player__toggle { display: none; }   /* the short phone bar's own Play */
.player .player__skip { display: none; }     /* and its own Next */
.player__toggle svg.icon { width: 28px; height: 28px; }
/* Find, beside what is playing, opens Find a verse. On a phone it is in Now
   Playing, and the short bar has Next in its place. */
.player__find { flex: none; gap: .4rem; padding: 0 .7rem; white-space: nowrap; }
.player__find svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* What is playing, in four short lines: the reference and its chip, the
   song's name and style, its place, and what comes next. Each line is one
   line, cut short at its end if it must be, so the bar never grows. */
.player__now { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.player__title, .player__name, .player__place, .player__upnext {
  min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.player__title { font-size: var(--t18); line-height: 1.25; color: var(--ink); }
/* In the bar the chip stays whole and the reference gives way. */
.player__title .track { display: flex; flex-wrap: nowrap; }
.player__title .track__ref {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.player__name { font-size: var(--t14); color: var(--ink-soft); }
.player__namechip { display: none; }
.player__place { font-size: var(--t14); color: var(--ink-faint); }
.player__upnext { font-size: var(--t14); color: var(--ink-soft); }
.player__upnext strong { color: var(--ink); font-weight: 600; }
.player__nx { display: none; }              /* "Next:", the short phone bar's */
.player__name:empty, .player__place:empty, .player__upnext:empty { display: none; }
.player audio { flex: 2 1 12rem; min-width: 10rem; max-width: 30rem; width: 100%; height: 40px; }
/* Now Playing's own line for where the song is, on a phone (below). */
.player__scrub { display: none; }
.player__time { font-size: var(--t14); color: var(--ink-soft); font-variant-numeric: tabular-nums; min-width: 2.75em; }
.player__time--left { text-align: right; }
.player__seek { width: 100%; height: var(--tap); margin: 0; padding: 0; background: transparent; accent-color: var(--accent); cursor: pointer; }
.player__seek:disabled { opacity: .5; cursor: default; }
.player__buttons { flex: 0 0 auto; display: flex; align-items: center; gap: .15rem; }
.player__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: var(--tap); height: var(--tap); padding: 0 .3rem;
  border: 0; border-radius: var(--radius); background: transparent;
  color: var(--ink); fill: currentColor; font: 600 var(--t14)/1 var(--sans);
  font-variant-numeric: tabular-nums; cursor: pointer;
}
/* The bar's controls are quiet: ink, raised a step on hover. Nothing in the
   bar is gold but Now Playing's Play. */
.player__btn:hover { background: var(--surface-alt); color: var(--ink); }
/* Up next and Favorite say so in a word beside the icon. */
.player__queue, .player__star { gap: .4rem; padding: 0 .7rem; white-space: nowrap; }
.player__btn:disabled { color: var(--ink-faint); background: transparent; cursor: default; opacity: .5; }
.player__btn[aria-expanded="true"] { color: var(--ink); background: var(--surface-alt); box-shadow: inset 0 0 0 1px var(--rule); }
.player button:focus-visible, .player a:focus-visible, .player select:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px;
}
.player.is-full .player__toggle:focus-visible { outline-color: var(--ink); }

/* Up next, and the settings that shape it, open above the bar. */
.player__panel {
  border-bottom: 1px solid var(--rule);
  max-height: min(55vh, 28rem); overflow-y: auto; overscroll-behavior: contain;
  padding: .75rem 0;
}
.player__options { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.player__opt {
  display: inline-flex; align-items: center; gap: .4rem; min-height: var(--tap);
  padding: 0 .85rem; border: 1px solid var(--rule); border-radius: var(--radius-pill);
  background: var(--surface); color: var(--ink); font: 600 var(--t14)/1 var(--sans);
  text-decoration: none; cursor: pointer;
}
/* Pressed is a state, so it is raised and in ink, never gold. */
.player__opt[aria-pressed="true"] { border-color: var(--ink-soft); color: var(--ink); background: var(--surface-alt); }
.player__opt select {
  font: inherit; color: inherit; background: transparent; border: 0; padding: .2rem 0;
}
/* More: Speed, Share this list, My lists and Close the player, folded so
   the row stays Shuffle, Repeat, More. Open, it takes a row of its own. */
.player__more summary { list-style: none; }
.player__more summary::-webkit-details-marker { display: none; }
.player__more summary::after { content: "▾"; font-size: .8em; color: var(--ink-soft); }
.player__more[open] { flex-basis: 100%; }
.player__more[open] summary { border-color: var(--ink-soft); }
.player__menu { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }

/* The album line is a way into the album (Find), but reads as text. */
.player__placebtn {
  padding: 0; border: 0; background: none; color: inherit; font: inherit;
  text-align: left; cursor: pointer; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.player__placebtn:hover { color: var(--ink); text-decoration: underline; }

/* Now Playing's top row exists only when the bar is the whole screen. */
.player__top { display: none; }
html.has-full { overflow: hidden; }
/* A song's words (words.js): in Now Playing under the buttons, and over the
   page from a row's More. The lyric and nothing else. A space between
   sections; a section sung again in quieter ink; a long line's later lines
   set in, as a Bible sets poetry. */
.words__text { font-family: var(--serif); font-size: var(--t18); line-height: 1.5; color: var(--ink); }
.words__part { margin: 0 0 1.15em; max-width: 34em; }
.words__part--again { color: var(--ink-faint); }
.words__line { display: block; padding-left: 1.4em; text-indent: -1.4em; }
.words__notice { margin: 1.5rem 0 0; max-width: 34em; font-size: var(--t12); line-height: 1.45; color: var(--ink-faint); }
.words__notice a { color: var(--ink-soft); }
.words__none { margin: 0; font-size: var(--t14); color: var(--ink-soft); }
.player__words { margin: 1.1rem 0 .5rem; }
.words-dialog { width: min(40rem, calc(100vw - 1.5rem)); max-height: calc(100dvh - 2rem); overflow-y: auto; margin: auto; }
.words-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.words-dialog__head h2 { margin: 0; }
.words-dialog__sub { margin: .35rem 0 0; font-size: var(--t14); color: var(--ink-soft); display: flex; align-items: center; gap: .5rem; }
.player__heading { margin: .9rem 0 .35rem; font-size: var(--t14); color: var(--ink-soft); font-weight: 600; }
.player__list { list-style: none; margin: 0; padding: 0; }
.player__list li { max-width: none; }
/* Where a list ends and Whole Word Mix carries on: a label, not a song. */
.player__list li.player__then {
  margin: .6rem 0 .2rem; padding: .35rem .5rem 0;
  border-top: 1px solid var(--rule); font-size: var(--t14); font-weight: 600; color: var(--ink-soft);
}
/* Up next is the site's song row (album-view.js), a little closer set and
   with no rules between: its number, Play as an icon, two lines, its length.
   The row the queue stands at is tinted, playing or paused. */
.player__list .song-row { padding: .1rem .35rem .1rem 0; border-bottom: 0; border-radius: var(--radius-sm); }
.player__list .song-row:hover { background: var(--surface-alt); }
.player__list .song-row.is-current { background: var(--accent-soft); }
.player__list .song-row.is-current .song-row__ref { color: var(--accent-on-soft); }
.player__list .song-row__ref { font-size: var(--t16); }
.player__list .song-row .play { flex: 0 0 var(--tap); padding: 0; justify-content: center; }
.player__list .song-row .play span { display: none; }

/* ---------- favorites, your lists ---------------------------------------- */
/* Favorite and Add to list sit back in the secondary ink until they are
   wanted. Off, the star is a thin outline with room inside; on, it is solid
   and in full ink, everywhere, the bar included: a set star is a state, and
   gold is for Play and for what is playing. */

.fav, .add-to-list {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  min-width: var(--tap); min-height: var(--tap); padding: 0 .6rem;
  border: 0; border-radius: var(--radius); background: transparent; cursor: pointer;
  color: var(--ink-soft); font: 600 var(--t14)/1 var(--sans);
}
.fav:hover, .add-to-list:hover { color: var(--ink); background: var(--surface-alt); }
.fav:focus-visible, .add-to-list:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.fav svg.star { width: 18px; height: 18px; }

svg.star {
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linejoin: round;
  overflow: visible;
}
.fav[aria-pressed="true"] { color: var(--ink); }
.player__star[aria-pressed="true"] { color: var(--ink); }
.fav[aria-pressed="true"] svg.star, .player__star[aria-pressed="true"] svg.star,
svg.star--on { fill: currentColor; }
svg.star--inline { width: 1em; height: 1em; vertical-align: -.12em; color: var(--ink-soft); }
svg.star--inline.star--on { color: var(--ink); }

/* In the bar the star is one of the controls, the same ink as ⏮ and ⏭,
   until it is set. The player's own .player__btn fill must not fill it. */
.player__star svg.star { fill: none; }
.player__star[aria-pressed="true"] svg.star { fill: currentColor; }
.player__star[aria-pressed="true"]:hover { color: var(--ink); }

.is-popping svg.star { animation: star-pop .18s ease-out; }
@keyframes star-pop {
  50% { transform: scale(1.25); }
}
svg.star { transform-origin: 50% 50%; }
@media (prefers-reduced-motion: reduce) {
  .is-popping svg.star { animation: none; }
}

/* A message that says what just happened: a raised row in the page's own
   palette, not an inverted slab, at reading size. */
.toast {
  position: fixed; left: 50%; z-index: 60; transform: translate(-50%, 1rem);
  width: max-content; max-width: calc(100vw - 2rem);
  padding: .75rem 1rem; border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--surface-alt); color: var(--ink); font-size: var(--t16); line-height: 1.45;
  box-shadow: 0 6px 24px var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
/* With reduced motion the toast only fades; it does not rise. */
@media (prefers-reduced-motion: reduce) {
  .toast, .toast.is-on { transform: translate(-50%, 0); transition: opacity .2s; }
}
.toast a { color: inherit; font-weight: 600; }

/* The rows are quiet buttons and Cancel is quiet: only Add is gold. */
.add-dialog {
  width: min(26rem, calc(100vw - 2rem)); padding: 1.25rem;
  border: 1px solid var(--rule); border-radius: var(--radius-lg);
  background: var(--surface); color: var(--ink);
}
/* Older browsers do not let ::backdrop inherit custom properties; they get
   the night scrim at the same strength. */
.add-dialog::backdrop { background: var(--backdrop, rgb(13 18 32 / .72)); }
.add-dialog h2 { margin: 0 0 .25rem; font-size: var(--t22); }
.add-dialog__track { margin: .4rem 0 0; }
.add-dialog__lists { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: .4rem; }
.add-dialog__lists li { max-width: none; }
.add-dialog__lists .btn { width: 100%; justify-content: space-between; text-align: left; }
.add-dialog__lists .btn .small { font-weight: 400; }
.add-dialog__new { margin: 1rem 0; }
.add-dialog__new label { display: block; font-size: var(--t14); color: var(--ink-soft); margin-bottom: .35rem; }
.add-dialog__row { display: flex; gap: .5rem; }
.add-dialog__row input {
  flex: 1 1 auto; min-width: 0; min-height: var(--tap); padding: .5rem .7rem; font: inherit;
  color: var(--ink); background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius);
}

/* Early listening: draft cards among the albums, the line under them, and the note form. Its Send is
   the form's one gold thing; the tags are quiet until chosen. */
.player__note svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.add-dialog.note { margin: auto; max-height: calc(100dvh - 2rem); overflow-y: auto; }
.early { margin-top: 1.5rem; }
.early p { margin: 0 0 .4rem; }
.early__name { padding: 0; font: inherit; color: var(--ink-soft); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.note__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 0; padding: 0; border: 0; }
.note__tag { display: inline-flex; cursor: pointer; }
.note__tag input { position: absolute; opacity: 0; }
.note__tag span {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: .25rem .8rem; font-size: var(--t14);
  color: var(--ink-soft); border: 1px solid var(--rule); border-radius: var(--radius);
}
.note__tag input:checked + span { color: var(--ink); border-color: var(--ink); background: var(--surface-alt); }

/* Take ratings (rate.js), for the people helping pick takes. Four equal
   buttons, quiet until chosen; the one chosen is raised in ink, never gold
   (PLAN.md section 4, rule 7). Under them, a flaw and the car's question. */
.player__rating { flex: 1 1 100%; }
.player__rating[hidden] { display: none; }
.rate { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .35rem; max-width: 30rem; }
.rate__btn {
  min-height: var(--tap); padding: .25rem .4rem; font: 600 var(--t14)/1.1 var(--sans);
  color: var(--ink-soft); background: transparent; border: 1px solid var(--rule); border-radius: var(--radius); cursor: pointer;
}
.rate__btn:hover { color: var(--ink); background: var(--surface-alt); }
.rate__btn[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); background: var(--surface-alt); }
.rate__more { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.rate__link {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0;
  font: var(--t14)/1.2 var(--sans); color: var(--ink-soft); background: none; border: 0;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.rate-shelf { margin: -.25rem 0 1rem; }
/* All versions (rate.js): every take of a passage, each with its rating,
   so takes are winnowed side by side. The one playing says so in words. */
.versions { list-style: none; margin: 1rem 0; padding: 0; }
.versions__take { padding: .6rem 0; border-top: 1px solid var(--rule); }
.versions__take:last-child { border-bottom: 1px solid var(--rule); }
.versions__head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .35rem; }
.versions__style { font-weight: 600; color: var(--ink); }
.versions__sub { font-size: var(--t14); color: var(--ink-soft); }
.versions__now { display: inline-flex; align-items: center; min-height: var(--tap); font-size: var(--t14); color: var(--ink); }
.note__tag input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.note__label { display: block; margin: 1rem 0 .35rem; font-size: var(--t14); color: var(--ink-soft); }
.note__form textarea, .note__name {
  display: block; width: 100%; min-height: var(--tap); padding: .5rem .7rem; font: inherit;
  color: var(--ink); background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius);
}
.note__problem { margin: .5rem 0 0; font-size: var(--t14); color: var(--danger); }
.note__said { margin: 1rem 0; }
.note__heading { margin: 1.25rem 0 .4rem; font-size: var(--t14); font-weight: 600; }
.note__mine ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.note__mine li { max-width: none; overflow-wrap: anywhere; }
.note__mine .small { display: block; }

.mylist, .shared { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
/* A list someone sent: a plain raised box. Its Play is the one gold thing. */
.shared {
  margin: 0 0 2rem; padding: 1.25rem; border: 1px solid var(--rule);
  border-radius: var(--radius-lg); background: var(--surface);
}
.shared p { margin: 0 0 .25rem; }
.mylist__name, .shared__name { margin: 0; font-family: var(--serif); font-size: var(--t22); }
.mylist__name .small { font-family: var(--sans); font-weight: 400; }
.mylist--favorites { border-top: 0; padding-top: 0; }
.mylists__heading { margin: 2.5rem 0 0; font-family: var(--serif); font-size: var(--t22); }
.mylist__link { margin-top: .75rem; }
.mylist__link label { display: block; font-size: var(--t14); color: var(--ink-soft); }
.mylist__link input {
  display: block; width: 100%; min-height: var(--tap); margin-top: .3rem; padding: .5rem .7rem; font: var(--t14)/1.3 var(--sans);
  color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
}
.mylist__qr { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: .9rem; }
.mylist__qr svg { flex: none; border-radius: var(--radius-sm); }
.mylist__qrtext { flex: 1 1 12rem; }
.mylist__qrtext p { margin: 0 0 .6rem; }
.print-card { display: none; }
/* Printing a list's card: only the card, ink on white, about 4 x 6 in with a
   dashed line to cut along. */
@media print {
  html.is-printing body > *:not(.print-card) { display: none !important; }
  html.is-printing body { padding: 0 !important; background: #fff !important; }
  html.is-printing .print-card {
    display: flex; flex-direction: column; box-sizing: border-box; width: 4in; height: 6in;
    margin: .25in auto; padding: .3in; border: 1px dashed #999; color: #0d1220; background: #fff;
    font-family: var(--sans); -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .print-card__brand { display: flex; align-items: center; gap: .4em; margin: 0; font: 600 10pt/1.2 var(--serif); }
  .print-card__brand svg { width: 16pt; height: 16pt; color: #0d1220; }
  .print-card__name { margin: .18in 0 .1in; font: 600 18pt/1.15 var(--serif); color: #0d1220; }
  .print-card__songs { margin: 0; padding-left: 1.3em; font-size: 9.5pt; line-height: 1.35; }
  .print-card__songs span { color: #444; }
  .print-card__more { margin: .05in 0 0; font-size: 9pt; color: #444; }
  .print-card__foot { display: flex; align-items: center; gap: .18in; margin-top: auto; }
  .print-card__foot svg { flex: none; width: 1.3in; height: 1.3in; }
  .print-card__foot p { margin: 0; font-size: 8.5pt; line-height: 1.4; color: #222; }
}
/* A list's songs are the site's song row (album-view.js). */
.mylist__songs { margin: 1rem 0 0; max-width: 40rem; }

.btn--small { min-height: var(--tap); padding: .45rem .9rem; font-size: var(--t14); align-self: flex-start; }
.btn-row--tight { margin-top: 1rem; }
/* About: Join or Leave, and a line saying which, before the next heading. */
.early-join { align-items: center; margin-bottom: 2rem; }
.early-join__in { flex-basis: 100%; margin: 0; }
/* What is playing is the other gold thing on a screen. */
a.play-list.playing, a.play-list.playing:hover { background: var(--accent-soft); color: var(--accent-on-soft); border-color: var(--accent-on-soft); }
/* The big Play stays a gold disc while it plays; its shape and word say Pause. */
a.big-play.playing, a.big-play.playing:hover { background: transparent; color: var(--ink); border-color: transparent; }

@media (max-width: 40rem) {
  /* Short on a phone: the cover, what is on and what is next, Find and
     Play, in about a hundred pixels, so the page keeps the screen. The
     handle says it opens. Everything is 48px tall. */
  .player { padding-top: .55rem; }
  .player:not(.is-full)::before {
    content: ""; position: absolute; top: .2rem; left: 50%; width: 2.25rem; height: 4px;
    margin-left: -1.125rem; border-radius: 2px; background: var(--rule);
  }
  .player__inner {
    display: grid; align-items: center; gap: 0;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .player__buttons { display: contents; }
  .player__head { grid-column: 1 / -1; grid-row: 1; align-items: center; gap: .6rem; }
  .player__cover { cursor: pointer; width: 48px; height: 48px; }
  .player__now { cursor: pointer; }
  /* The short bar gives the reference the whole line: its chip moves to
     the start of the name line, small, as a row's chip sits (BRAND.md
     section 6), so "Philippians 2:12–18" is never cut to make room for it.
     Now Playing has the room, and there the chip is beside the reference. */
  .player:not(.is-full) .player__title .chip { display: none; }
  .player:not(.is-full) .player__namechip { display: inline-flex; margin-right: .35rem; }
  .player.is-full .player__title { white-space: normal; }
  .player.is-full .player__title .track { flex-wrap: wrap; row-gap: 2px; }
  /* Find says so under its glass on a phone, so it is found without a
     guess. */
  .player__find { flex-direction: column; gap: 1px; min-width: var(--tap); padding: 0 .2rem; font-size: var(--t12); }
  .player .player__toggle { display: inline-flex; flex: none; min-width: var(--tap); }
  /* The short bar ends in Play and Next, what a listener reaches for with a
     song on. Find is one tap up, in Now Playing, and in the header. */
  .player:not(.is-full) .player__skip { display: inline-flex; flex: none; min-width: var(--tap); }
  .player:not(.is-full) .js-find { display: none; }
  /* The short bar says what is on and what is next, in three lines; the
     album, the song's place in it and where the next one comes from are
     Now Playing's (PLAN.md 7.3). */
  .player:not(.is-full) .player__place,
  .player:not(.is-full) .player__src,
  .player:not(.is-full) .player__up { display: none; }
  .player:not(.is-full) .player__nx { display: inline; }
  .player:not(.is-full) audio,
  .player:not(.is-full) .player__buttons > * { display: none; }
  /* Note waits in Now Playing. Beside the words in the short bar it took the
     taps meant to open Now Playing, and a note mostly waits for a stop anyway. */
  .player:not(.is-full) .player__note { display: none; }
  /* Ratings too: in the short bar they would take the taps that open Now
     Playing, and rating waits for a stop anyway. */
  .player:not(.is-full) .player__rating { display: none; }
  .player.is-full .player__rating { grid-column: 1 / -1; grid-row: 6; margin-top: .75rem; }
  /* Up next has no panel of its own on a phone: it is part of Now Playing. */
  .player .player__queue, .player .js-close { display: none; }

  /* Now Playing (PLAN.md 7.4): the same bar grown to the whole screen, the
     one <audio> in it untouched. Close at the top; a large cover; the
     reference and its full credit, never cut short, with Favorite beside
     it; the name, the album and the song's place; the browser's own
     scrubber; Previous, the 15 second skips, a large Play and Next; then
     Shuffle, Repeat and More; then Up next. */
  .player.is-full {
    inset: 0; display: flex; flex-direction: column;
    overflow-y: auto; overscroll-behavior: contain;
    padding: env(safe-area-inset-top, 0px) 0 calc(1.5rem + env(safe-area-inset-bottom, 0px));
    border-top: 0; box-shadow: none; background: var(--bg);
    animation: now-in .22s ease-out;
  }
  .player.is-full .player__top {
    display: flex; align-items: center; justify-content: space-between; order: 0;
    padding-top: .25rem; padding-bottom: .25rem;
  }
  .player__shut { gap: .3rem; padding: 0 .6rem 0 .3rem; margin-left: -.3rem; color: var(--ink-soft); }
  .player__label { font-size: var(--t14); font-weight: 600; color: var(--ink-faint); margin-right: 3.5rem; }
  .player.is-full .player__inner { order: 1; row-gap: .5rem; }
  .player.is-full .player__panel {
    order: 2; max-height: none; overflow: visible; border: 0; padding-top: 1rem;
  }
  .player.is-full .player__head { display: contents; }
  .player.is-full .player__cover {
    grid-column: 1 / -1; grid-row: 1; justify-self: center;
    width: min(78vw, 20rem); height: min(78vw, 20rem); margin: .5rem 0 1rem;
    border-radius: var(--radius-lg); cursor: default;
  }
  .player.is-full .player__now { grid-column: 1 / -1; grid-row: 2; cursor: auto; }
  .player.is-full .player__title { font-size: var(--t22); }
  .player.is-full .player__title .track__ref { white-space: normal; overflow: visible; }
  .player.is-full .player__name, .player.is-full .player__place { white-space: normal; font-size: var(--t16); }
  .player.is-full .player__placebtn { white-space: normal; min-height: var(--tap); }
  .player.is-full .player__upnext { display: none; }
  /* Favorite, in words, on a line of its own under the song: the one screen
     with room for the word gives it the word (BRAND.md section 11.4). */
  .player.is-full .player__star { grid-column: 1 / -1; grid-row: 3; justify-self: start; margin-left: -.7rem; }
  .player.is-full .player__star .player__word {
    position: static; width: auto; height: auto; overflow: visible; clip: auto; clip-path: none;
  }
  /* Find stays a tap away, at the top right; Now Playing comes down for it. */
  .player.is-full .player__find {
    position: absolute; top: calc(env(safe-area-inset-top, 0px) + .25rem); right: 1rem;
  }
  /* Note beside it, where the words Now playing would be. */
  .player.is-full .player__note { right: 4.25rem; }
  .player.is-full.has-note .player__label { display: none; }
  /* One set of controls: the browser's own, with its second Play, is put
     away, and the line for where the song is takes its place. */
  .player.is-full audio { display: none; }
  .player.is-full .player__scrub {
    grid-column: 1 / -1; grid-row: 4; margin: .25rem 0;
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .6rem;
  }
  .player.is-full .js-prev { grid-column: 1; grid-row: 5; }
  .player.is-full .js-back { grid-column: 2; grid-row: 5; }
  .player.is-full .player__toggle {
    grid-column: 3; grid-row: 5; justify-self: center;
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--accent); color: var(--accent-ink);
  }
  .player.is-full .player__toggle:hover { background: var(--accent); color: var(--accent-ink); }
  .player.is-full .player__toggle svg.icon { width: 30px; height: 30px; }
  .player.is-full .js-fwd { grid-column: 4; grid-row: 5; }
  .player.is-full .js-next { grid-column: 5; grid-row: 5; }
  .player.is-full .js-prev, .player.is-full .js-back,
  .player.is-full .js-fwd, .player.is-full .js-next { min-width: 0; height: 56px; font-size: var(--t16); }
  @keyframes now-in { from { opacity: 0; transform: translateY(2rem); } }
  @media (prefers-reduced-motion: reduce) { .player.is-full { animation: none; } }

  /* Navigation and the lone links elsewhere, given the same room. */
  .site-header__inner { gap: .1rem 1rem; padding: .7rem 0 .35rem; }
  .nav a { display: inline-flex; align-items: center; min-height: var(--tap); }
  .footer-nav { gap: 0; }
  .footer-nav a { display: inline-flex; align-items: center; min-height: var(--tap); }
  .album__zip { display: inline-flex; align-items: center; min-height: var(--tap); }
}

/* On the narrowest phones the star gives its word to the reference; its
   accessible name still says Favorite. */
@media (max-width: 24rem) {
  .player__star .player__word {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
  .player__star { min-width: var(--tap); padding: 0; }
}

.album__zip { font-size: var(--t14); color: var(--ink); }

/* ---------- album pages ---------------------------------------------------- */
/* Where a share or a search lands: the cover beside the reference, the
   translation named once, Play album across two thirds with a quiet
   Shuffle beside it, then the songs by number. The same shape as Find's
   album view, at page size. Row Play is ink; the one playing takes the tint. */
.album-page__head { display: flex; align-items: flex-start; gap: 1.5rem; margin-top: .5rem; }
.album-page__cover {
  flex: none; width: min(16rem, 38vw); height: auto; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--rule); background: var(--surface-alt);
}
.album-page__text { min-width: 0; }
.album-page__title { margin: 0; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); line-height: 1.1; }
.album-page__sub { margin: .3rem 0 0; font-family: var(--serif); font-style: italic; font-size: var(--t18); color: var(--ink-soft); }
.album-page__meta { margin: .6rem 0 0; font-size: var(--t14); color: var(--ink-faint); }
.album-page__chips { margin: .6rem 0 0; }
.album-page__sung { margin: .75rem 0 0; color: var(--ink-soft); max-width: var(--measure); }
.album-page__acts { display: grid; grid-template-columns: 2fr 1fr; gap: .5rem; max-width: 24rem; margin: 1.5rem 0 0; }
.album-page__acts .btn { justify-content: center; }
.album-page .linkrow { margin: 1rem 0 1.25rem; }
.tracks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
/* One song row, wherever songs are listed (album-view.js row()). The whole
   row is its Play (player.js); the row that is on says so; everything else
   about the song is under More. It has its own name: .track is the line of
   text the player bar and the lists draw a song with. */
.song-row {
  position: relative; display: flex; align-items: center; gap: .4rem;
  padding: .3rem 0; border-bottom: 1px solid var(--rule); cursor: pointer;
}
.song-row__num { flex: none; width: 1.75rem; text-align: right; color: var(--ink-faint); font-variant-numeric: tabular-nums; font-size: var(--t14); }
.song-row .play { flex: none; min-height: var(--tap); padding: 0 .7rem; color: var(--ink); }
.song-row .play.playing { background: var(--accent-soft); color: var(--accent-on-soft); }
.song-row.is-on .song-row__ref { color: var(--accent-on-soft); }
.song-row__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .1rem; padding: .35rem 0; }
.song-row__ref { font-family: var(--serif); font-weight: 600; line-height: 1.25; font-size: var(--t18); color: var(--ink); font-variant-numeric: tabular-nums; }
.song-row__chip { line-height: 1.2; }
.song-row__chip .chip { vertical-align: 0; }
.song-row__sub { font-size: var(--t14); color: var(--ink-soft); }
.song-row__time { flex: none; color: var(--ink-faint); font-variant-numeric: tabular-nums; font-size: var(--t14); }
/* Starred: a mark at the head of the name's line, in ink. The button is under More. */
.song-row__star { display: none; }
.song-row.is-fav .song-row__star { display: inline; margin-right: .3rem; }
.song-row__star svg.star { width: .8em; height: .8em; vertical-align: -.05em; fill: currentColor; color: var(--ink-soft); }
.song-row__more { flex: none; }
.song-row__more > summary {
  list-style: none; display: inline-flex; align-items: center; gap: .25rem;
  min-height: var(--tap); padding: 0 .6rem; border-radius: var(--radius);
  font: 600 var(--t14)/1 var(--sans); color: var(--ink-soft); cursor: pointer;
}
.song-row__more > summary::-webkit-details-marker { display: none; }
.song-row__more > summary::after { content: "\25BE"; font-size: .8em; }
.song-row__more > summary:hover, .song-row__more[open] > summary { color: var(--ink); background: var(--surface-alt); }
.song-row__more > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
/* The menu hangs under the row, at its right, over the rows below. */
.song-row__menu {
  position: absolute; right: 0; top: 100%; z-index: 5; margin-top: -1px;
  display: flex; flex-direction: column; min-width: 13rem; padding: .25rem;
  background: var(--surface); border: 1px solid var(--ink-faint); border-radius: var(--radius);
  box-shadow: 0 8px 24px rgb(0 0 0 / .35); cursor: default; scroll-margin-bottom: 8rem;
}
.song-row__menu > * { justify-content: flex-start; min-height: var(--tap); padding: 0 .75rem; }
.song-row__dl, .song-row__link, .song-row__tool, .song-row__menu .stream {
  display: inline-flex; align-items: center; border-radius: var(--radius);
  font: 600 var(--t14)/1 var(--sans); color: var(--ink-soft); text-decoration: none;
}
.song-row__dl:hover, .song-row__link:hover, .song-row__tool:hover, .song-row__menu .stream:hover { color: var(--ink); background: var(--surface-alt); }
/* Move up, Move down and Remove, in a list of your own (lists.js). */
.song-row__tool { border: 0; background: transparent; cursor: pointer; text-align: left; }
.song-row__tool:disabled { color: var(--ink-faint); background: transparent; cursor: default; }
@media (max-width: 40rem) {
  .album-page__head { gap: 1rem; }
  .album-page__cover { width: 7.5rem; }
  .album-page__acts { max-width: none; }
  /* A row on a phone: the number, Play as its icon, the song, its length
     and More. Play keeps its accessible name. */
  .song-row { gap: 0 .25rem; }
  .song-row .play { flex: 0 0 var(--tap); padding: 0; justify-content: center; }
  .song-row .play span {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
  .song-row__more > summary { padding: 0 .4rem; }
}

/* ---------- contact form -------------------------------------------------- */

.form { max-width: var(--measure); }
.field { margin: 1.15rem 0; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.field input, .field textarea {
  width: 100%; padding: .55rem .7rem; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.field__hint { font-size: var(--t14); color: var(--ink-faint); margin: .3rem 0 0; }

/* Honeypot: parked far off-canvas rather than display:none, which some bots
   check for. Real people never see it. */
.hp { position: absolute; left: -9999px; top: auto; }

.notice--error { border-color: var(--danger); }

/* ---------- the finder ---------------------------------------------------- */
/* On the songs page the search is the action, so it leads: full width, tall,
   a glass at the left, the ESV toggle on the same row, and a line of quiet
   links underneath instead of a button row above. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.filter--lead { margin-top: .25rem; }
/* The heading, with Search beside it. Folded away, the box leaves the strip
   under the heading to the ESV toggle alone. */
.find-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.find-head h1 { margin: 0; }
.find-head__search { flex: none; }
.find-head__search svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.filter__box[hidden] { display: none; }
.filter__row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.filter__box { position: relative; flex: 1 1 16rem; max-width: 32rem; }
.filter__box svg {
  position: absolute; left: .95rem; top: 50%; width: 22px; height: 22px; transform: translateY(-50%);
  fill: none; stroke: var(--ink-soft); stroke-width: 2; stroke-linecap: round; pointer-events: none;
}
/* The search box, which waits behind Search in the heading (find.js). */
.filter__box input[type="search"] {
  width: 100%; min-height: 3.5rem; padding: .7rem .9rem .7rem 3rem;
  font: inherit; font-size: var(--t18); color: var(--ink);
  background: var(--surface-alt); border: 1px solid var(--rule); border-radius: var(--radius);
}
.filter__box input[type="search"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.filter--lead .filter__check { margin: 0; }
.linkrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.1rem;
  margin: .6rem 0 1.4rem; font-size: var(--t14); color: var(--ink-soft);
}
.linkrow a { color: var(--ink); }
.linkrow .btn {
  min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent;
  font: inherit; color: var(--ink); text-decoration: underline; gap: .3rem;
}
.linkrow .btn:hover { background: transparent; color: var(--accent-on-soft); }
.linkrow .btn svg { width: 14px; height: 14px; }

/* shell.js: a page that is slow to come dims the one it will replace, so the
   tap is seen to have landed. The heading it then focuses is for a screen
   reader to land on, and takes no ring from a tap. */
main[aria-busy="true"] { opacity: .55; transition: opacity .15s; }
main:focus, main [tabindex="-1"]:focus { outline: none; }
