/* view: version ---------------------------------------------------------
 * A version word's covers (2026-10-20, listen/version.js): light, the
 * listener's side, as the song page (wide.md rule 8). A cover is its still
 * (rule 7). Tokens are listen.css's; nothing here defines a colour of its
 * own. At 900px and wider the head is a 400px column held in view beside the
 * rows, as on the song page — the block at the end.
 */

.ver-head {
  padding: 10px var(--gutter) 0;
}

/* Whose songs: a line over the word, the originator's name a door. */
.ver-by {
  font-size: var(--t-meta);
  line-height: 1.35;
  color: var(--fg-muted);
}

.ver-by a,
.ver-fell a {
  color: var(--fg);
  font-weight: 600;
  /* a tap tall without moving the line: an inline box's vertical padding
     grows the hit area, not the line (as room.css .room-by a) */
  padding-block: 14px;
}

/* The word, as large as its longest piece allows (version.js WORD_PHONE /
   WORD_WIDE): never broken inside a word. */
.ver-word {
  margin-top: 4px;
  font-size: var(--word-phone, 40px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.ver-sentence {
  margin-top: 10px;
  font-size: var(--t-body);
  line-height: 1.4;
  color: var(--body-ink);
  text-wrap: pretty;
}

/* A scoped list that fell back to every song's says so, once. */
.ver-fell {
  margin-top: 8px;
  font-size: var(--t-meta);
  line-height: 1.45;
  color: var(--fg-muted);
  text-wrap: pretty;
}

/* The one control that widens to every song's, and the playlist line:
   one link line each, the tap floor tall. */
.ver-widen,
.ver-youtube {
  margin-top: 2px;
  font: 600 var(--t-meta) / 1.35 var(--sans);
}

.ver-widen a,
.ver-youtube a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--accent);
}

/* The verb, as the song page's: filled while it plays, an outline while it
   queues. */
.ver-play {
  margin-top: 10px;
  border-color: var(--accent);
  color: var(--accent);
  font-size: var(--t-small);
  padding: 0 14px;
}

.ver-play.is-play {
  background: var(--accent);
  color: var(--on-accent);
}

.ver-line,
.ver-order {
  margin-top: 6px;
  font-size: var(--t-meta);
  line-height: 1.35;
  color: var(--fg-muted);
  text-wrap: pretty;
}

.ver-rows {
  margin-top: 12px;
}

/* A row: the still (a play), what it is, + Queue. */
.ver-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: var(--row-min);
  padding: 10px var(--gutter);
  border-top: 1px solid var(--line);
}

.ver-still {
  position: relative;
  width: 100%;
  min-height: var(--tap);
  border-radius: 6px;
}

.ver-what {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

/* The song's title wraps; it is never cut. */
.ver-song {
  font-size: var(--t-field);
  line-height: 1.15;
  color: var(--fg);
  overflow-wrap: anywhere;
}

.ver-who,
.ver-version,
.ver-meta {
  font-size: 11.5px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.ver-who {
  color: var(--fg-muted);
}

/* The song's door, a tap tall: its hit area grows up into the row's
   padding and down under the "sung by" line, which stands above it. */
.ver-song a.noun {
  padding-block: 16px 10px;
}

/* The name is the cover's door, as on the song page, a tap tall: its hit
   area grows down over the version line, whose words stand above it
   (listen.css a.version-word), and the date. */
.ver-name {
  position: relative;
  padding-block: 4px 26px;
  color: var(--fg);
  font-weight: 600;
}

.ver-arrow {
  color: var(--accent);
}

.ver-version {
  color: var(--fg);
  font-weight: 600;
}

.ver-meta {
  color: var(--fg-muted);
}

/* Fifty more, under the rows. */
.ver-more {
  display: block;
  margin: 16px var(--gutter) 0;
  border-color: var(--accent);
  color: var(--accent);
  font-size: var(--t-small);
  padding: 0 16px;
}

@media (min-width: 561px) {
  .ver-row {
    grid-template-columns: 120px minmax(0, 1fr) auto;
  }
}

/* ---- the wide screen (≥ 900px) ---------------------------------------
   Two columns, as the song page: the head at the left, 400px, held in view
   while the rows scroll at the right (--hold-top, set by render from
   hold.js); 80px between them. The rows gain a 128px still. */
@media (min-width: 900px) {
  .ver {
    --gutter: 0px;
    display: grid;
    grid-template-columns: 400px minmax(0, 1fr);
    column-gap: 80px;
    align-items: start;
    padding: 36px 40px 60px;
  }

  .ver-head {
    position: sticky;
    top: var(--hold-top, 24px);
    padding: 0;
  }

  .ver-word {
    margin-top: 12px;
    font-size: var(--word-wide, 64px);
    line-height: 0.98;
  }

  .ver-sentence {
    margin-top: 16px;
    font-size: 16px;
  }

  .ver-rows {
    margin-top: 0;
  }

  .ver-row:first-child {
    border-top: 0;
  }

  .ver-row {
    grid-template-columns: 128px minmax(0, 1fr) auto;
    column-gap: 18px;
    min-height: 92px;
  }

  .ver-song {
    font-size: 22px;
    line-height: 1.1;
  }

  .ver-who,
  .ver-version,
  .ver-meta {
    font-size: var(--t-small);
  }
}
