/* The page of a part shared from the app, /r/<id> (task P; docs/DESIGN.md « La page d'une partie
   partagée »): « Mon interprétation » or « Mon score » and its stars, the song, the falling notes of
   the part on the site's lacquered card, then the call to play it too. Also the page of a part
   that is no longer there. Under web/keyfall/: /r/ itself goes to the API. */

.partage {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px var(--gutter) 72px;
}

.partage-head {
  max-width: 760px;
  margin: 0 auto var(--kf-around, 40px);
  text-align: center;
}

.partage-head .eyebrow {
  margin-bottom: 18px;
}

.partage-head h1 {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 300;
  font-size: clamp(36px, 5.5vw, 56px);
  line-height: 1.1;
}

.partage-head .hands-line {
  margin: 18px auto;
}

/* The stars of a score: gold, lit, as at the end of a game. */
.partage-stars {
  display: inline-block;
  margin-left: 0.15em;
  color: var(--accent);
  font-size: 0.62em;
  letter-spacing: 0.08em;
  vertical-align: 0.14em;
  text-shadow: 0 0 14px rgba(255, 196, 107, 0.45);
  white-space: nowrap;
}

.partage-song {
  margin: 0;
  color: var(--text-secondary);
  font-size: 17px;
}

.partage-song a {
  color: var(--text-primary);
  font-family: var(--font-title);
  font-size: 24px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 196, 107, 0.35);
  transition: border-color 160ms var(--ease);
}

.partage-song a:hover,
.partage-song a:focus-visible {
  border-bottom-color: var(--accent);
}

.partage-song span {
  display: block;
  margin-top: 6px;
}

/* The falling notes in their card: as much space above them as below, down to their caption. */
.partage-stage {
  padding: var(--kf-space, 24px) 16px;
}

.partage-stage .hint {
  margin: var(--kf-space, 24px) 4px 0;
  color: var(--text-secondary);
  font-size: 15px;
}

/* Without the falling notes (no script, a browser that cannot draw them). */
.partage-fallback {
  margin: 0;
  padding: 48px 20px;
  border: 1px dashed var(--stroke-strong);
  border-radius: 14px;
  color: var(--text-secondary);
  text-align: center;
}

.partage-next {
  max-width: 680px;
  margin: 56px auto 0;
  text-align: center;
}

/* Right after the falling notes, as far from them as the head above them. */
.partage-stage + .partage-next {
  margin-top: var(--kf-around, 40px);
}

.partage-next h2 {
  margin: 0 0 12px;
  font-family: var(--font-title);
  font-weight: 300;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
}

.partage-next p,
.partage-lead {
  margin: 0;
  color: var(--text-secondary);
  font-size: 17px;
}

.partage-keys {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 28px 0;
}

.partage-next .partage-note {
  font-size: 14px;
}

.partage-next .partage-note + .partage-note {
  margin-top: 12px;
}

/* The page of a part no longer there: alone in the middle of the night. */
.partage-absente {
  display: flex;
  align-items: center;
  min-height: 62vh;
}

.partage-absente .partage-head {
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .partage {
    padding-top: 28px;
  }

  .partage-stage {
    padding: var(--kf-space, 16px) 10px;
  }

  .partage-keys .key {
    flex: 1 1 100%;
  }
}

/* Published on a guest performer's page (task « Interprètes invités »): their name, under the song. */
.partage-by {
  margin: 14px 0 0;
  color: var(--text-secondary);
  font-size: 16px;
}

.partage-by a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 196, 107, 0.35);
}

.partage-by a:hover,
.partage-by a:focus-visible {
  border-bottom-color: var(--accent);
}

/* An imported piece: its title, not a link (it has no page on the site). */
.partage-song strong {
  color: var(--text-primary);
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 24px;
}
