/* Rescue's own pieces on otramusic.com's system. site.css, theme-score.css, footer.css and nav.css are
   byte-for-byte copies of apps/site/public (DESIGN.md); everything Rescue adds lives here. */

/* the header names the tool beside the logo */
header.top .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
header.top .brand b {
  font: 800 1.5rem / 1 var(--display);
  letter-spacing: -0.01em;
  text-transform: lowercase;
  translate: 0 0.1em;
}

/* a visitor whose browser asks for another language is offered it above the header */
.language-note {
  margin: 0;
  padding: 0.7rem var(--pad);
  background: var(--tint);
  font-size: 0.95rem;
}
.language-note a {
  font-weight: 600;
  text-decoration: underline;
}

/* the hero's staff carries the two bars a real .enc file holds: 4/4, C D E F, then G, and its lyric */
.t-score .staff .ts {
  font-family: var(--display);
  font-weight: 800;
  fill: var(--fg);
  text-anchor: middle;
}
.t-score .staff .ly {
  font-family: var(--text);
  fill: var(--soft);
  text-anchor: middle;
}
.t-score .staff .whole.q .o {
  fill: var(--accent);
}
.head .cap {
  position: absolute;
  z-index: 2;
  top: calc(var(--st) - 2rem);
  left: var(--pad);
  margin: 0;
  font-size: 0.95rem;
  color: var(--soft);
}
.head > .fine {
  position: relative;
  z-index: 2;
}
@media (max-width: 600px) {
  .head .cap {
    font-size: 0.86rem;
    top: calc(var(--st) - 1.7rem);
  }
}

/* the two plans as the site's plan bars: the price stands in the bar's right column */
.t-score .blk > .plans {
  grid-column: 1 / -1;
  margin-top: 1rem;
}
.t-score .plans li {
  grid-template-columns: minmax(0, 1fr) auto;
}
.t-score .plans .amount {
  grid-column: 2;
  grid-row: 1 / 5;
  align-self: center;
  display: grid;
  justify-items: end;
  gap: 0.2rem;
  max-width: none;
  text-align: right;
  font-weight: 600;
}
.t-score .plans .now {
  display: grid;
  justify-items: end;
}
.t-score .plans .now b {
  font: 800 clamp(3.2rem, 7.4vw, 7.4rem) / 0.9 var(--display);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.t-score .plans .was {
  font-size: 1.05rem;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  opacity: 0.75;
}
.t-score .plans .rescue-price-list {
  grid-column: 1;
  display: grid;
  gap: 0.3rem;
  margin-top: 0.5rem;
  max-width: 36em;
}
.t-score .plans .rescue-price-list li {
  all: unset;
  display: block;
  position: relative;
  padding-left: 1.5rem;
}
.t-score .plans .rescue-price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(0.5lh - 0.3rem);
  width: 0.86rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--lilac);
  rotate: -20deg;
}
.t-score .plans li:nth-child(2) .rescue-price-list li::before {
  background: var(--bg);
}
@media (max-width: 860px) {
  .t-score .plans .amount {
    grid-column: 1;
    grid-row: auto;
    justify-items: start;
    text-align: left;
  }
  .t-score .plans .now {
    justify-items: start;
  }
}

/* the editor's waiting list in the site's form shapes: a pill field, an ink button that a playhead turns violet */
.signup-form {
  display: grid;
  gap: 1rem;
  max-width: 34rem;
  margin-top: 1.8rem;
}
.signup-form label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.95rem;
  font-weight: 600;
}
.signup-form input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0 1.2rem;
  border: 1.5px solid var(--fg);
  border-radius: 99px;
  background: transparent;
}
.signup-form .buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.signup-form button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 3.25rem;
  padding: 0 1.5rem;
  border: 1.5px solid var(--fg);
  border-radius: 99px;
  background: transparent;
  color: var(--fg);
  font-weight: 600;
  transition:
    color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    translate 0.35s var(--ease);
}
.signup-form button.primary {
  background: var(--fg);
  color: var(--bg);
}
.signup-form button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  transform: translateX(-101%);
  transition: transform 0.55s cubic-bezier(0.45, 0, 0.25, 1);
}
.signup-form button:hover {
  color: var(--on-accent);
  border-color: var(--accent);
  translate: 0 -2px;
}
.signup-form button:hover::before {
  transform: none;
}
.signup-form button svg {
  width: 1.05em;
  height: 1.05em;
  flex: none;
}
.signup-form [role="alert"] {
  color: #a32924;
  font-weight: 600;
}
.signup-form [role="status"] {
  font-weight: 600;
}
@media (prefers-reduced-motion: reduce) {
  .signup-form button,
  .signup-form button::before {
    transition: none;
  }
}

/* a phone keeps the logo, the tool's name, the converter and the menu on one line */
header.top .btn.mini {
  white-space: nowrap;
}
@media (max-width: 600px) {
  header.top {
    gap: 0.6rem;
  }
  header.top .logo {
    width: 4.4rem;
  }
  header.top .brand {
    gap: 0.35rem;
  }
  header.top .brand b {
    font-size: 1.05rem;
  }
  header.top .btn.mini {
    padding: 0 0.9rem;
  }
  /* the drawing takes the staff's middle: the clef and the time signature stay, the caption goes */
  .head .cap {
    display: none;
  }
  .p-home .head .staff > .cl {
    clip-path: inset(0 81% 0 0);
  }
}

/* the guides' numbered steps have no titles: the number, then the sentence */
.t-score .steps.plain li {
  grid-template-columns: 3rem minmax(0, 1fr);
}
.t-score .steps.plain li p {
  grid-column: 2;
  color: var(--fg);
}
.blk .body > .after {
  margin-top: 1.6rem;
  max-width: 36em;
}

/* at rest, a violet playhead reads the two bars over and over (the site's home phrase does the same) */
.t-score .staff path.ph {
  stroke: var(--accent);
  stroke-width: calc(var(--lw) * 2.2);
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .t-score .staff path.ph {
    animation: read 9s linear 1.2s infinite;
  }
  @keyframes read {
    0% {
      translate: 0 0;
      opacity: 0;
    }
    4% {
      opacity: 1;
    }
    84% {
      opacity: 1;
    }
    92%,
    100% {
      translate: 16.2px 0;
      opacity: 0;
    }
  }
}

/* where the files open: one ruled row per app, its name in display type, a tag saying how far we check it */
.t-score .opens {
  border-top: 1.5px solid var(--fg);
}
.t-score .opens li {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) auto;
  gap: 0.4rem 1.6rem;
  align-items: baseline;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
}
.t-score .opens b {
  font: 800 clamp(1.6rem, 2.4vw, 2.4rem) / 1.05 var(--display);
  letter-spacing: -0.012em;
  text-transform: lowercase;
}
.t-score .opens p {
  color: var(--soft);
}
.t-score .opens .tag {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.9rem;
  border: 1.5px solid var(--fg);
  border-radius: 99px;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.t-score .opens .tag.on {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}
.t-score .opens a.tag {
  min-height: 2.75rem;
  transition:
    background 0.3s var(--ease),
    translate 0.35s var(--ease);
}
.t-score .opens a.tag:hover {
  background: var(--fg);
  border-color: var(--fg);
  translate: 0 -2px;
}
@media (max-width: 600px) {
  .t-score .opens li {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .t-score .opens p {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* round 2 (blind critic, 7.0) */
/* the struck price reads at full strength on the violet bar */
.t-score .plans .was {
  opacity: 1;
}
/* the headline keeps clear of the drawing whatever the language's line lengths */
@media (min-width: 1260px) {
  .p-home .head h1 {
    max-width: calc(100% - var(--g) * 26);
  }
}
/* German keeps its capitals: nouns carry meaning there */
html[lang="de"] .t-score main :is(h1, h2, .opens b) {
  text-transform: none;
}
/* a phone: the guides' headlines at the home's size, actions on one line, three format drops in a row */
@media (max-width: 600px) {
  .t-score:is(.p-mac, .p-xml) main h1[style*="--n"] {
    font-size: clamp(2.2rem, 10.5vw, 3rem);
  }
  .head .btn {
    white-space: nowrap;
  }
  .t-score .chips {
    gap: 0.6rem;
  }
  .t-score .chips li {
    width: 6.2rem;
    height: 7.6rem;
  }
  .t-score .chips b {
    font-size: 1.45rem;
  }
  .t-score .opens li {
    grid-template-columns: minmax(0, 1fr);
  }
  .t-score .opens .tag {
    justify-self: start;
    grid-row: 3;
  }
  .t-score .opens p {
    grid-row: 2;
  }
}
/* round 3 (blind critic, 7.65) */
/* the steps: the title leads, the sentence reads at body weight */
.t-score .beats h3 {
  font-size: 1.25rem;
  font-weight: 700;
}
.t-score .beats p {
  font-weight: 400;
}

/* the hero file's report, as Rescue writes it */
.t-score .report {
  margin: 1.8rem 0 1.6rem;
  padding: 1.4rem 1.6rem 1.2rem;
  border-radius: calc(1.6rem * var(--rk));
  background: var(--tint);
}
.t-score .report .file {
  font: 800 clamp(1.3rem, 1.8vw, 1.6rem) / 1.1 var(--display);
  letter-spacing: -0.01em;
}
.t-score .report .count {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  margin-top: 0.8rem;
  padding: 0 0.85rem;
  border-radius: 99px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.9rem;
  font-weight: 600;
}
.t-score .report .line {
  position: relative;
  margin-top: 0.9rem;
  padding-left: 1.6rem;
  font-weight: 600;
}
.t-score .report .line::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(0.5lh - 0.3rem);
  width: 0.92rem;
  height: 0.64rem;
  border-radius: 50%;
  background: var(--accent);
  rotate: -20deg;
}
.t-score .report figcaption {
  margin-top: 1rem;
  font-size: 0.86rem;
  color: var(--soft);
}

/* where the files open: one staff across the page, a bar per app; its note says how far we check it
   (filled violet: checked; hollow: not yet), rising a line each bar */
@media (min-width: 861px) {
  .t-score .opens {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-top: 0.6rem;
    border-top: 0;
  }
  .t-score .opens li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    padding: calc(33px + 1.6rem) 1.4rem 0;
    border-bottom: 0;
    background:
      linear-gradient(var(--fg), var(--fg)) 0 0 / 100% 1px no-repeat,
      linear-gradient(var(--fg), var(--fg)) 0 8px / 100% 1px no-repeat,
      linear-gradient(var(--fg), var(--fg)) 0 16px / 100% 1px no-repeat,
      linear-gradient(var(--fg), var(--fg)) 0 24px / 100% 1px no-repeat,
      linear-gradient(var(--fg), var(--fg)) 0 32px / 100% 1px no-repeat,
      linear-gradient(var(--fg), var(--fg)) 100% 0 / 1.5px 33px no-repeat;
  }
  .t-score .opens li::before {
    content: "";
    position: absolute;
    left: 1.4rem;
    top: 19px;
    width: 14px;
    height: 10px;
    box-sizing: border-box;
    border: 2px solid var(--accent);
    border-radius: 50%;
    background: var(--bg);
    rotate: -20deg;
  }
  .t-score .opens li.on::before {
    background: var(--accent);
  }
  .t-score .opens li:nth-child(2)::before {
    top: 15px;
  }
  .t-score .opens li:nth-child(3)::before {
    top: 11px;
  }
  .t-score .opens li:nth-child(4)::before {
    top: 7px;
  }
  .t-score .opens li:nth-child(5)::before {
    top: 3px;
  }
  .t-score .opens li:last-child {
    background-size:
      100% 1px,
      100% 1px,
      100% 1px,
      100% 1px,
      100% 1px,
      4px 33px;
  }
  .t-score .opens b {
    font-size: clamp(1.4rem, 2vw, 2.1rem);
  }
  .t-score .opens .tag {
    justify-self: auto;
    margin-top: auto;
  }
  #opens .body > .after {
    max-width: 46em;
  }
}
@media (min-width: 601px) and (max-width: 860px) {
  .t-score .opens li {
    grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) 13rem;
  }
}

/* the two plans side by side: each bar holds its name, price, list and action, with no empty middle */
@media (min-width: 861px) {
  .t-score .blk > .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
  .t-score .blk > .plans > li {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    row-gap: 0.6rem;
  }
  .t-score .plans .amount {
    grid-column: 1;
    grid-row: auto;
    justify-items: start;
    text-align: left;
  }
  .t-score .plans .now {
    justify-items: start;
  }
  .t-score .plans .rescue-price-list {
    margin-top: 0.2rem;
  }
}

/* a phone: the hero keeps its first bar, the spine ends on a final barline, and a staff opens each section */
@media (max-width: 600px) {
  .p-home .head .staff > .cl {
    clip-path: inset(0 50% 0 0);
  }
}
@media (max-width: 480px) {
  .t-score .head::after {
    content: "";
    position: absolute;
    right: var(--pad);
    bottom: 0;
    width: calc(var(--g) * 4);
    height: calc(var(--g) * 0.95);
    border-top: var(--lw) solid var(--fg);
    border-bottom: calc(var(--g) * 0.45) solid var(--fg);
    pointer-events: none;
  }
  .t-score .blk:has(> .bend)::before {
    content: "";
    display: block;
    grid-column: 1 / -1;
    height: 21px;
    margin-bottom: 0.6rem;
    background: repeating-linear-gradient(to bottom, var(--fg) 0 1px, transparent 1px 5px);
    pointer-events: none;
  }
}

/* the 404's rows: the words sit inside the tint, not on its edge */
.p-404 .hub a {
  padding-inline: clamp(1.25rem, 2.2vw, 2rem);
}

/* round 4 (blind critic, 7.55) */
/* the home headline is the poster: larger, still clear of the drawing */
@media (min-width: 861px) {
  .t-score.p-home main h1 {
    font-size: min(10.6vw, 7.6rem);
  }
}
@media (min-width: 1260px) {
  .t-score.p-home main h1 {
    font-size: min(8.4vw, 7.6rem);
  }
}
/* the apps' names are trademarks: their own capitals in every language; every tag the same height */
.t-score .opens b {
  text-transform: none;
}
.t-score .opens .tag,
.t-score .opens a.tag {
  min-height: 2.4rem;
}
/* privacy is one line set large across the page, a pause between the lists */
.t-score main .private h2 {
  font-size: clamp(2.6rem, 7vw, 6.4rem);
  line-height: 0.98;
}
.t-score .private .body > p {
  max-width: 32em;
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  font-weight: 500;
}
/* the format drops keep their distance from the words under them */
.t-score .chips {
  margin-bottom: 2.6rem;
}
/* round 5 (blind critic, 7.55) */
/* the guides' four steps: four rising bars */
.t-score .beats.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.t-score .beats.four li:nth-child(4)::before {
  top: -0.5px;
}
.t-score .beats.four p {
  font-weight: 400;
}
@media (max-width: 860px) {
  .t-score .beats.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .t-score .beats.four {
    grid-template-columns: 1fr;
  }
}
/* the home headline keeps two lines in every language: the column reaches the drawing, longer languages set smaller */
@media (min-width: 1260px) {
  .t-score.p-home .head h1 {
    max-width: calc(100% - var(--g) * 19);
  }
  html:not([lang="en"]) .t-score.p-home main h1 {
    font-size: min(5vw, 5.6rem);
  }
}
/* Japanese breaks lines at phrases and never starts one with a small kana */
html[lang="ja"] .t-score :is(h1, h2, h3, .foot .sign) {
  line-break: strict;
  word-break: auto-phrase;
}
/* accented capitals need room above them */
.t-score main .private h2 {
  line-height: 1.04;
}
/* the converted page: one frame (the tint), cropped to the title and the voice line it opens on */
.rescue-score img,
.p-mac .shot img {
  border: 0;
  aspect-ratio: 1600 / 520;
  object-fit: cover;
  object-position: 50% 0;
  -webkit-mask-image: none;
  mask-image: none;
}
/* the editor: its score and palette, not the status line under them */
#editor .shot img {
  aspect-ratio: 1800 / 1060;
  object-fit: cover;
  object-position: 0 0;
}
/* a phone: the hero's first bar stops before the drawing's strings, the lyric reads, sections sit closer */
@media (max-width: 600px) {
  .p-home .head .staff > .cl {
    clip-path: inset(0 59% 0 0);
  }
  .t-score .staff .ly {
    font-size: 1.45px;
  }
  .rescue-score img,
  .p-mac .shot img {
    aspect-ratio: 1 / 1;
    object-position: 0 0;
  }
}
@media (max-width: 480px) {
  .t-score .blk:has(> .bend) {
    padding-top: 1.2rem;
  }
}

/* round 6 (blind critic, 7.55) */
/* the converted page in one frame: the tint, no outline; cut below the voice line's dynamics and lyrics */
.t-score .rescue-score img,
.t-score.p-mac .shot img {
  border: 0;
  border-radius: calc(0.8rem * var(--rk));
  aspect-ratio: 1600 / 560;
}
/* the playhead is a lilac band behind the notes */
.t-score .staff path.ph {
  stroke: var(--lilac);
  stroke-width: 8px;
}
/* as the playhead finishes the two bars, the files it makes answer: MusicXML, then MIDI */
@media (prefers-reduced-motion: no-preference) {
  .p-home .staff .cn :is(.pur, .lil) {
    transform-box: fill-box;
    transform-origin: center;
    animation: made 9s var(--ease) 1.2s infinite;
  }
  .p-home .staff .cn .lil {
    animation-delay: 1.45s;
  }
  @keyframes made {
    0%,
    80%,
    100% {
      scale: 1;
    }
    86% {
      scale: 1.12;
    }
    92% {
      scale: 1;
    }
  }
}
/* how far we check each app: a label with a note head, filled when checked, hollow when not yet */
.t-score .opens .state {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 1.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft);
}
.t-score .opens .state::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.9rem;
  height: 0.62rem;
  margin-top: -0.31rem;
  box-sizing: border-box;
  border: 2px solid var(--accent);
  border-radius: 50%;
  rotate: -20deg;
}
.t-score .opens .state.on {
  color: var(--accent);
}
.t-score .opens .state.on::before {
  background: var(--accent);
}
@media (min-width: 861px) {
  .t-score .opens .state {
    margin-top: auto;
    min-height: 2.4rem;
  }
}
/* the free plan is written on the paper; only Rescue is a filled bar */
.t-score .plans li.rescue-free {
  background: transparent;
  color: var(--fg);
  padding-left: 0;
}
.t-score .plans li.rescue-free .rescue-price-list li::before {
  background: var(--accent);
}
.t-score .plans li.rescue-free .go {
  background: var(--fg);
  color: var(--bg);
}
.t-score .plans li.rescue-free .go:hover {
  background: var(--accent);
  color: var(--on-accent);
}
/* every language keeps the poster size; Japanese and German keep their own capitals */
@media (min-width: 1260px) {
  html:not([lang="en"]) .t-score.p-home main h1 {
    font-size: min(8.4vw, 7.6rem);
  }
}
html[lang="ja"] .t-score main :is(h1, h2, .opens b) {
  text-transform: none;
}
html[lang="ja"] body {
  line-break: strict;
  word-break: auto-phrase;
}
/* the plan's action stays on one line on a phone */
@media (max-width: 600px) {
  .t-score .plans .go {
    white-space: nowrap;
    font-size: 0.92rem;
  }
}
/* the pager lifts like every other main link */
.pager a {
  transition:
    color 0.3s var(--ease),
    background-color 0.3s var(--ease),
    translate 0.35s var(--ease);
}
.pager a:hover {
  translate: 0 -2px;
}

/* round 7, the structural change (owner, 2026-12-01): the first screen shows the conversion. The .enc capsule is the
   start of the staff, the five lines run out of it, the playhead reads the two bars, and the staff drops .musicxml and
   .mid at its end. The paper block hides the staff left of the file: the music begins in it. */
.t-score .staff .cl .pap {
  fill: var(--bg);
  stroke: none;
}
.t-score .staff .cl .ink {
  fill: var(--fg);
  stroke: none;
}
.t-score .staff .cl text.lab {
  font-family: var(--display);
  text-anchor: middle;
  fill: var(--bg);
}
@media (max-width: 600px) {
  .p-home .head .staff > .cl {
    clip-path: inset(-50% 64% -50% -10%);
  }
  .t-score .staff .cl text.lab[font-size^="."] {
    display: none;
  }
}
/* the caption sits over the notes it names, after the file */
.p-home .head .cap {
  left: calc(var(--pad) + var(--g) * 7.6);
}
@media (max-width: 600px) {
  .p-home .head .staff > .cl {
    clip-path: inset(-50% 66% -50% -10%);
  }
}

/* round 8 (blind critic, 7.35) */
/* a phone: each app's name, then what it opens, then how far we check it, one line each */
@media (max-width: 600px) {
  .t-score .opens li {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0.35rem;
  }
  .t-score .opens .state {
    white-space: nowrap;
  }
}
/* the hero's drops hang lower and larger at the end of the staff, filling the corner beside the headline */
@media (min-width: 1260px) {
  .p-home .t-score .staff .cn,
  .t-score.p-home .staff .cn {
    width: calc(var(--g) * 26);
    height: calc(var(--g) * 31.8);
    top: calc(var(--g) * -2.2);
  }
  .t-score.p-home .head h1 {
    max-width: calc(100% - var(--g) * 26);
  }
}
/* a phone keeps the signature: every note and the playhead, with the two drops smaller at the staff's end */
@media (max-width: 600px) {
  .t-score.p-home .head .staff > .cl {
    clip-path: none;
  }
  .t-score.p-home .staff .cn {
    right: calc(var(--pad) + var(--g) * 4.7);
    width: calc(var(--g) * 20);
    height: calc(var(--g) * 24.4);
    top: calc(var(--g) * -0.55);
  }
  .t-score.p-home .head:has(.cn) {
    padding-top: calc(var(--st) + var(--g) * 25);
  }
}
/* privacy: a tinted band across the page, the line set large inside it */
.t-score .blk.private {
  position: relative;
}
.t-score .blk.private::after {
  content: "";
  position: absolute;
  inset: calc(var(--g) * 6) 0 0;
  z-index: -1;
  background: var(--tint);
}
.t-score .blk.private {
  padding-bottom: calc(var(--blk) * 0.9);
}
/* the plans sit in the right column, level with their intro */
.t-score .blk .body > .plans {
  margin-top: 1.6rem;
}
@media (min-width: 861px) {
  .t-score .blk .body > .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .t-score .blk .body > .plans > li {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    row-gap: 0.6rem;
  }
}
/* the words under a headline wait for it to settle, so the lines never print over them */
@media (prefers-reduced-motion: no-preference) {
  .t-score .head :is(.deck, .acts, .cap),
  .t-score .head > .fine {
    animation: after-head 0.5s var(--ease) 0.3s both;
  }
  html.vt-in .t-score .head :is(.deck, .acts, .cap),
  html.vt-in .t-score .head > .fine {
    animation-delay: 0.85s;
  }
  @keyframes after-head {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
}
/* the pager's words sit on the content edge; the pill opens outside it */
@media (min-width: 601px) {
  .t-score .pager a:first-child {
    margin-left: calc(clamp(1.25rem, 2.2vw, 2rem) * -1);
  }
  .t-score .pager a + a {
    margin-right: calc(clamp(1.25rem, 2.2vw, 2rem) * -1);
  }
}

/* round 9 (blind critic, 7.65) */
/* every language's headline holds two lines beside the drawing: each set by its longest line */
@media (min-width: 1260px) {
  html[lang="de"] .t-score.p-home main h1 {
    font-size: min(6.2vw, 7.6rem);
  }
  html[lang="fr"] .t-score.p-home main h1 {
    font-size: min(5vw, 7.6rem);
  }
  html[lang="es"] .t-score.p-home main h1 {
    font-size: min(5.2vw, 7.6rem);
  }
  html[lang="ja"] .t-score.p-home main h1 {
    font-size: min(6vw, 7.6rem);
  }
}
/* Rescue's own render of the hero's file, on paper inside the tint */
.t-score .rescue-score.morning img {
  aspect-ratio: auto;
  object-fit: contain;
  background: #fff;
  border-radius: calc(0.8rem * var(--rk));
}
@media (max-width: 600px) {
  .t-score .rescue-score.morning img {
    aspect-ratio: auto;
  }
}
/* a phone's staff ends on a real final barline: the lines stop at the thin line, the thick line closes them */
@media (max-width: 480px) {
  .t-score .head::after {
    background: var(--bg);
  }
}
/* the wide statement keeps its small print small */
.t-score .private .body > p.fine {
  font-size: 0.86rem;
  font-weight: 400;
}

/* round 10 (blind critic, 7.7) */
/* the staff's ends read as barlines: paper between the thin and the thick line, the bands stop at the staff */
.t-score main::after {
  background: var(--bg);
}
.t-score .blk.private::after {
  right: calc(var(--pad) + var(--g) * 4);
}
/* no dead band under the hero or under the steps */
.t-score.p-home .head {
  padding-bottom: calc(var(--blk) * 0.55);
}
.t-score.p-home #how {
  padding-bottom: calc(var(--blk) * 0.35);
}
/* the MusicXML guide's price: the words on the left, the Rescue bar beside them */
@media (min-width: 861px) {
  .t-score.p-xml .private .body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
    column-gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
  }
  .t-score.p-xml .private .body > :not(.plans) {
    grid-column: 1;
  }
  .t-score.p-xml .private .body > .plans {
    grid-column: 2;
    grid-row: 1 / span 3;
    margin-top: 0;
  }
}
.t-score .plans.side {
  display: grid;
  margin-top: 1.6rem;
}
.t-score .plans.side > li {
  grid-template-columns: minmax(0, 1fr);
  row-gap: 0.6rem;
}
.t-score .plans.side .amount {
  grid-column: 1;
  grid-row: auto;
  justify-items: start;
  text-align: left;
}
.t-score .plans.side .now {
  justify-items: start;
}
/* a phone: the editor shot shows its score, not the whole window */
@media (max-width: 600px) {
  #editor .shot img {
    aspect-ratio: 1 / 1;
    object-position: 50% 45%;
  }
}
.t-score .blk .body > .plans.side {
  grid-template-columns: minmax(0, 1fr);
}
.t-score .plans.side > li {
  background: var(--accent);
  color: var(--on-accent);
}
.t-score .plans.side .rescue-price-list li::before {
  background: var(--bg);
}

/* round 11 (blind critic, 7.65) */
/* a narrow screen's tinted band runs to the edge, so its words never hang outside it */
@media (max-width: 860px) {
  .t-score .blk.private::after {
    right: 0;
  }
}
/* the tick lists are two even columns: every row starts on the same line */
@media (min-width: 601px) {
  .t-score .ticks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem 1.6rem;
  }
}
/* the Mac guide's long list reads in two columns across the page, its render beside the next section */
@media (min-width: 861px) {
  .t-score .across .body > p {
    columns: 2;
    column-gap: clamp(2rem, 4vw, 4rem);
    max-width: none;
  }
}
/* the editor shot whole: no crop through its score */
#editor .shot img {
  aspect-ratio: auto;
  object-fit: contain;
}
/* each app's check label starts on one line with its neighbours, however many lines it takes */
@media (min-width: 861px) {
  .t-score .opens .state {
    margin-top: 0.2rem;
    align-items: flex-start;
    min-height: 2.6em;
  }
  .t-score .opens .state::before {
    top: 0.55em;
  }
}
/* a phone: long-language headlines keep two words a line */
@media (max-width: 480px) {
  html:is([lang="de"], [lang="fr"], [lang="es"]) .t-score.p-home main h1[style*="--n"] {
    font-size: 10vw;
  }
}

/* round 12 (blind critic, 7.7) */
/* the editor: its words and form beside its picture, under one heading */
@media (min-width: 861px) {
  .t-score .blk.wide.editor {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }
  .t-score .blk.wide.editor > h2 {
    grid-column: 1 / -1;
  }
  .t-score .blk.wide.editor > .body {
    grid-column: 1;
  }
  .t-score .blk.wide.editor > figure.shot {
    grid-column: 2;
    margin: 0;
  }
}
/* a phone keeps the staff: its spine runs down the right edge and every section's divider bends into it, as on a desk */
@media (max-width: 480px) {
  .t-score .head {
    clip-path: none;
  }
  .t-score .head::after {
    content: none;
  }
  .t-score .blk {
    padding-right: calc(var(--pad) + var(--g) * 5);
  }
  .t-score .blk > .bend {
    display: block;
  }
  .t-score .blk:has(> .bend) {
    padding-top: calc(var(--g) * 7.5);
  }
  .t-score .blk:has(> .bend)::before {
    content: none;
  }
  .t-score main::after {
    display: block;
  }
}
/* a button fills with a violet staff: five faint lines ride inside the colour that writes in */
.btn::before,
.signup-form button::before {
  background:
    linear-gradient(rgb(245 246 241 / 0.32), rgb(245 246 241 / 0.32)) 0 18% / 100% 1px no-repeat,
    linear-gradient(rgb(245 246 241 / 0.32), rgb(245 246 241 / 0.32)) 0 34% / 100% 1px no-repeat,
    linear-gradient(rgb(245 246 241 / 0.32), rgb(245 246 241 / 0.32)) 0 50% / 100% 1px no-repeat,
    linear-gradient(rgb(245 246 241 / 0.32), rgb(245 246 241 / 0.32)) 0 66% / 100% 1px no-repeat,
    linear-gradient(rgb(245 246 241 / 0.32), rgb(245 246 241 / 0.32)) 0 82% / 100% 1px no-repeat,
    var(--btn-hover, var(--accent));
}
/* reading lines stay a comfortable length */
.t-score #opens .body > .after,
.t-score .across .body > p {
  max-width: 62ch;
  columns: auto;
}
/* a phone: the editor shot shows its score, large */
@media (max-width: 600px) {
  #editor .shot img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: 50% 45%;
  }
}
/* a price's words keep their distance from its big number */
.t-score .plans .now {
  row-gap: 0.6rem;
}

/* round 13 (blind critic, 7.55) */
/* the piece lands: after the last section the rail turns left into one closing staff with a whole
   note on it, as otramusic.com's home ends, instead of stopping at a barline above the footer */
.t-score main::after {
  content: none;
}
.t-score .coda {
  position: relative;
  height: calc(var(--g) * 8);
  overflow: clip;
}
.t-score .coda svg {
  position: absolute;
  overflow: visible;
}
/* its top sits one staff space above the coda, so the turn starts exactly where main clips the rail */
.t-score .coda .turn {
  top: calc(var(--g) * -1);
  right: calc(var(--pad) - var(--g));
  width: calc(var(--g) * 10);
  height: calc(var(--g) * 10);
}
.t-score .coda path {
  fill: none;
  stroke: var(--fg);
  stroke-width: var(--lw);
  vector-effect: non-scaling-stroke;
}
.t-score .coda .nt {
  left: 38%;
  top: calc(var(--g) * 2);
  width: calc(var(--g) * 2);
  height: calc(var(--g) * 2);
}
/* a divider says what kind of change comes: a double barline before the price, a repeat sign
   (play it again) before the editor */
.t-score #price::before,
.t-score #editor::before {
  content: "";
  position: absolute;
  left: var(--pad);
  top: calc(var(--g) * 2);
  height: calc(var(--g) * 4);
  margin: 0;
  background: none;
  pointer-events: none;
}
.t-score #price::before {
  width: calc(var(--g) * 0.6);
  border-inline: var(--lw) solid var(--fg);
}
.t-score #editor::before {
  width: calc(var(--g) * 2.1);
  background:
    linear-gradient(var(--fg), var(--fg)) 0 0 / calc(var(--g) * 0.45) 100% no-repeat,
    linear-gradient(var(--fg), var(--fg)) calc(var(--g) * 0.85) 0 / var(--lw) 100% no-repeat,
    radial-gradient(
      circle,
      var(--fg) 0 calc(var(--g) * 0.2),
      transparent calc(var(--g) * 0.2 + 0.6px)
    )
    calc(var(--g) * 1.1) var(--g) / var(--g) var(--g) no-repeat,
    radial-gradient(
      circle,
      var(--fg) 0 calc(var(--g) * 0.2),
      transparent calc(var(--g) * 0.2 + 0.6px)
    )
    calc(var(--g) * 1.1) calc(var(--g) * 2) / var(--g) var(--g) no-repeat;
}
/* the formats sit beside their words, not in a corner of an empty row */
@media (min-width: 861px) {
  .t-score .formats {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0 clamp(2rem, 4vw, 4rem);
    align-items: center;
  }
  .t-score .formats .chips {
    flex-wrap: nowrap;
    margin: 0;
  }
}
/* a phone keeps the three formats on one row */
@media (max-width: 600px) {
  .t-score .formats .chips {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }
  .t-score .formats .chips li {
    flex: 1 1 0;
    width: auto;
    height: 7.6rem;
  }
}
/* a band with no divider above it starts the tint at its own top, its words inside */
.t-score .blk.private:not(:has(> .bend)) {
  padding-top: calc(var(--blk) * 0.8);
}
.t-score .blk.private:not(:has(> .bend))::after {
  top: 0;
}
/* a phone: the lyric can't fit between notes seven pixels apart, so it waits for a wider screen (the
   caption still names the song), and the drawing's file names fill their discs */
@media (max-width: 480px) {
  .p-home .head .staff .ly {
    display: none;
  }
  .p-home .head .staff .cn text[font-size="1.15"] {
    font-size: 1.3px;
  }
  .p-home .head .staff .cn text[font-size="1.75"] {
    font-size: 2.1px;
  }
}

/* the open menu (nav.css is the site's copy; Rescue's items are longer, owner 2026-12-01):
   rows grow with their words, so a wrapped item pushes the rows below it down and keeps the
   page's right margin; the type scales a little smaller; the current page lines up with the
   rest; its note head is violet, while the pointer and keyboard fill a head lilac */
:root {
  --nav-word: clamp(1.75rem, min(6.4vw, 8.2vh), 5.2rem);
}
:is(header.top, nav.nav)[data-open] ul > li:not(.trial, .cart-link) {
  display: flex;
  align-items: flex-end;
  height: auto;
  min-height: var(--nav-line);
  padding-top: calc(var(--nav-word) * 0.32);
  padding-bottom: calc(var(--nav-word) * 0.2);
}
:is(header.top, nav.nav)[data-open] ul > li:not(.trial, .cart-link) a {
  position: relative;
  bottom: auto;
  max-width: 100%;
  line-height: 1.04;
  text-wrap: balance;
  border-radius: 0.3em;
}
:is(header.top, nav.nav)[data-open] ul > li:not(.trial, .cart-link) a:focus-visible {
  outline-offset: 0.16em;
}
:is(header.top, nav.nav)[data-open]
  ul
  > li:not(.trial, .cart-link)
  a:is(:hover, :focus-visible)::after {
  border-color: var(--nav-accent);
  background: var(--k-lilac, #c9b8ff);
}
:is(header.top, nav.nav)[data-open] ul > li:not(.trial, .cart-link) a[aria-current] {
  color: var(--nav-accent);
}
:is(header.top, nav.nav)[data-open] ul > li:not(.trial, .cart-link) a[aria-current]::after {
  border-color: var(--nav-accent);
  background: var(--nav-accent);
}
