/* The sleeve supplies two printing inks. The darker third swatch is for annotations on paper. */
.release-gallery, .record[data-rank="1"], :is(.release-gallery,.mobile-jump)[data-score="1"] {
  --score-paper:#eac47b; --score-ink:#40241d; --score-annotation:#863f27;
}
.record[data-rank="2"], :is(.release-gallery,.mobile-jump)[data-score="2"] {
  --score-paper:#d6b967; --score-ink:#382c18; --score-annotation:#70511d;
}
.record[data-rank="3"], :is(.release-gallery,.mobile-jump)[data-score="3"] {
  --score-paper:#40134c; --score-ink:#ffd9f1; --score-annotation:#7a3785;
}
.record[data-rank="4"], :is(.release-gallery,.mobile-jump)[data-score="4"] {
  --score-paper:#ad1d2b; --score-ink:#fff1dd; --score-annotation:#9d2431;
}
.record[data-rank="5"], :is(.release-gallery,.mobile-jump)[data-score="5"] {
  --score-paper:#252b2c; --score-ink:#dce8e5; --score-annotation:#3a4b4b;
}
.record[data-rank="6"], :is(.release-gallery,.mobile-jump)[data-score="6"] {
  --score-paper:#c2beb7; --score-ink:#262627; --score-annotation:#555145;
}
.record[data-rank="7"], :is(.release-gallery,.mobile-jump)[data-score="7"] {
  --score-paper:#184e3d; --score-ink:#e7ead3; --score-annotation:#255a45;
}
.record[data-rank="8"], :is(.release-gallery,.mobile-jump)[data-score="8"] {
  --score-paper:#f8c6c1; --score-ink:#7b1826; --score-annotation:#a32434;
}
.record[data-rank="9"], :is(.release-gallery,.mobile-jump)[data-score="9"] {
  --score-paper:#edc18a; --score-ink:#502b1e; --score-annotation:#834427;
}
.record[data-rank="10"], :is(.release-gallery,.mobile-jump)[data-score="10"] {
  --score-paper:#f04a57; --score-ink:#1d1014; --score-annotation:#a12337;
}

.release-gallery {
  --score-gutter:clamp(13px, 1.7vw, 25px);
  container-type:inline-size;
  display:grid;
  grid-template-columns:clamp(86px, 7.7vw, 115px) minmax(0, 1fr);
  grid-template-areas:"folio art" "caption caption" "actions actions";
  gap:0 var(--score-gutter);
  padding:var(--score-gutter);
  background:var(--score-paper);
  color:var(--score-ink);
}
.release-gallery figure { display:contents; }
.release-gallery .art-square { grid-area:art; background:transparent; }
.release-gallery .cover-fallback { color:inherit; font-size:clamp(18px, 7cqw, 37px); }
.release-gallery .cover-bar {
  grid-area:folio;
  display:flex; flex-direction:column;
  justify-content:space-between; align-items:stretch;
  margin:0; padding:0; border:0;
}
.release-gallery .cover-bar > span {
  font:580 13px/1.18 var(--sans);
  letter-spacing:-.015em;
}
.release-gallery #featured-rank {
  display:block;
  width:max-content; margin:9px 0 3px -.042em;
  font:480 clamp(52px, 17.5cqw, 113px)/.85 var(--sans);
  font-variation-settings:"opsz" 78,"wdth" 83;
  letter-spacing:-.055em; color:inherit;
  font-variant-numeric:lining-nums tabular-nums;
}
.release-gallery .outof { color:inherit; }
.release-gallery .turns { display:flex; align-self:start; border-block:1px solid currentColor; }
.release-gallery .turns button {
  width:44px; height:44px; font:23px/1 Arial,sans-serif;
  background:none; border:0; color:inherit;
}
.release-gallery .turns button + button { border-left:1px solid color-mix(in srgb,currentColor 55%,transparent); }
.release-gallery .turns button:hover, .release-gallery .turns button:active {
  background:var(--score-ink); color:var(--score-paper);
}
.release-gallery figcaption {
  grid-area:caption; display:block; min-width:0;
  margin:clamp(13px, 2.7cqw, 21px) 0 10px;
}
.release-gallery #featured-artist {
  margin:0 0 4px;
  color:inherit; font:665 clamp(14px, 3.7cqw, 20px)/1.13 var(--sans);
  letter-spacing:-.025em;
}
.release-gallery #featured-note {
  color:inherit; display:block; text-align:left;
  font:italic 400 clamp(27px, 8.25cqw, 49px)/.95 var(--italic);
  letter-spacing:-.025em; text-wrap:pretty;
}
.release-gallery .release-strip {
  grid-area:actions; border-top:1px solid currentColor;
  margin:2px 0 0; padding:3px 0 0; min-width:0;
}
.release-gallery :is(button,a):focus-visible { outline-color:currentColor; }
.record[data-rank] { --blue:var(--score-annotation); }
.record[data-rank] .numeral { color:var(--score-annotation); }
.record[data-rank] .listen-note { border-color:var(--score-annotation); }
.record[data-rank] .listen-note h3 { color:var(--score-annotation); }

@media(min-width:900px) and (max-height:650px) {
  .release-gallery { --score-gutter:13px; width:min(100%, max(310px, 81dvh)); }
  .release-gallery figcaption { margin:9px 0 6px; }
  .release-gallery #featured-note { font-size:clamp(24px, 7.8cqw, 37px); }
}
@media(max-width:899px) {
  .release-gallery { --score-gutter:clamp(12px, 3.5vw, 20px); grid-template-columns:88px minmax(0,1fr); }
}
@media(max-width:899px) {
  .case-edition:has(.release-gallery[data-ready=true]) .mobile-jump[data-score] {
    background:var(--score-paper); color:var(--score-ink);
    border-color:color-mix(in srgb,var(--score-ink) 70%,var(--score-paper));
  }
  .mobile-jump[data-score] select {
    background-color:var(--score-paper); color:var(--score-ink); outline-color:var(--score-ink);
  }
  .mobile-jump[data-dark="true"] select { color-scheme:dark; }
}
@media(max-width:360px) {
  .release-gallery { grid-template-columns:79px minmax(0,1fr); column-gap:10px; }
  .release-gallery .turns { flex-direction:column; border-block:0; border-left:1px solid currentColor; }
  .release-gallery .turns button + button { border-left:0; border-top:1px solid color-mix(in srgb,currentColor 55%,transparent); }
}
@media(prefers-reduced-motion:no-preference) {
  .release-gallery[data-blend="true"] { transition:background-color 170ms ease-out, color 170ms ease-out; }
}

.entry-sleeve, .cover-browser-toggle, .release-gallery[hidden] { display:none; }
@media screen and (max-width:899px) {
  .cover-browser-toggle:not([hidden]) {
    display:flex; align-items:center; justify-content:space-between;
    width:100%; min-height:48px; padding:5px 1px;
    border:0; border-block:1px solid var(--ink); background:none; color:var(--ink);
    text-align:left; font:620 15px/1.2 var(--sans); cursor:pointer;
  }
  .cover-browser-toggle[aria-expanded="true"] { border-bottom:0; }
  .cover-browser-sign { position:relative; width:15px; height:15px; margin-right:6px; }
  .cover-browser-sign::before, .cover-browser-sign::after {
    content:""; position:absolute; top:7px; left:0; width:15px; height:1px; background:currentColor;
  }
  .cover-browser-toggle[aria-expanded="false"] .cover-browser-sign::after { transform:rotate(90deg); }
  .record .entry-sleeve {
    display:grid; grid-template-columns:clamp(86px, 26vw, 143px) minmax(0, 1fr);
    align-items:center; column-gap:clamp(11px, 3.5vw, 22px);
    margin:18px 0 20px;
  }
  .entry-jacket {
    display:grid; place-items:center; aspect-ratio:1; width:100%; overflow:hidden;
    background:var(--score-paper); color:var(--score-ink);
  }
  .entry-jacket img { display:block; width:100%; height:100%; object-fit:contain; }
  .entry-art-error { text-align:center; padding:5px; font:540 13px/1.2 var(--sans); }
  .entry-caption { min-width:0; color:var(--score-annotation); }
  .entry-release {
    font:italic 400 clamp(21px, 5.5vw, 32px)/1.05 var(--italic);
    letter-spacing:-.015em; text-wrap:pretty;
  }
  .entry-sleeve[data-size="large"] {
    grid-template-columns:1fr; gap:14px; padding:clamp(15px, 4.5vw, 28px);
    background:var(--score-paper); color:var(--score-ink);
  }
  .entry-sleeve[data-size="large"] .entry-jacket { width:min(100%, 355px); margin:auto; }
  .entry-sleeve[data-size="large"] .entry-caption {
    display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
    gap:0 13px; color:inherit; border-top:1px solid currentColor; padding-top:6px;
  }
  .entry-sleeve[data-size="large"] .entry-release { font-size:clamp(23px, 6.3vw, 35px); }
}
@media screen and (min-width:580px) and (max-width:899px) {
  .entry-sleeve[data-size="large"] { grid-template-columns:minmax(0, 1.45fr) minmax(0, 1fr); align-items:end; }
  .entry-sleeve[data-size="large"] .entry-caption { display:block; padding-top:11px; }
}
