html:has(#ficha) { background: #161619 }
body:has(> #ficha) { min-height: 100vh }
.rack-return {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem;
  font-size: .95rem; color: #e4e7dc;
}
.rack-return span { font-size: 1.6em; color: #e3f599 }
.rack-return:is(:hover, :focus-visible) { color: #effab5 }
.rack-return:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: 2px }
@media (prefers-reduced-motion: no-preference) {
  .rack-return { transition: color 140ms ease-out }
  .rack-return span { transition: transform 140ms ease-out }
  .rack-return:is(:hover, :focus-visible) span { transform: translateX(-2px) }
}
.mast-inner:has(> .rack-return) { flex-wrap: nowrap }
.dossier {
  --tint: #d7c9f4;
  max-width: 84rem; margin-block: clamp(.6rem,2.4vw,2.75rem);
  padding: clamp(1.85rem,4.7vw,5.3rem);
}
.dossier[data-format="Audiovisual"] { --tint: #d7e8b4 }
.dossier[data-format="Streaming"] { --tint: #f4c8b0 }
.dossier-body {
  display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
  gap: clamp(2rem,5vw,5.5rem); align-items: center;
}
.dossier-credit, .byline dt, .jury figcaption {
  font: .84rem/1.5 var(--mono); color: var(--tint);
}
.dossier-credit { margin: 0 }
.dossier h1 {
  margin: .18em 0 .25em; color: #faf9f1;
  font: 800 clamp(3.4rem,6.4vw,6.5rem)/.94 var(--display);
  letter-spacing: -.026em; text-wrap: balance;
}
.lede { max-width: 36ch; margin: 0; color: #edece5; font-size: clamp(1.08rem,1.6vw,1.35rem); line-height: 1.45 }
.byline { margin: 1.65rem 0 0 }
.byline dd { margin: .15rem 0 0; font-size: 1.02rem }
.dossier-print {
  overflow: hidden; padding: clamp(.35rem,.7vw,.6rem); border: 1px solid #17181a;
  border-radius: 5px; background: linear-gradient(150deg,#45464a,#17181b 85%);
  box-shadow: inset 0 1px #ffffff36,0 1px 0 #ffffff24,0 4px 12px #14141666;
}
.dossier-print img {
  width: 100%; height: auto; max-height: 32rem; object-fit: contain;
  background: #161719; border-radius: 1px;
}
.dossier-source, .audience, .jury {
  border-top: 1px solid #535457; padding-top: clamp(1rem,2vw,1.85rem);
  margin: clamp(1.5rem,3vw,2.6rem) 0 0;
}
.dossier-source p { max-width: 66ch; line-height: 1.55; margin: 0; color: #dfdfd7 }
.source-links { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: .55rem }
.source-links .ink-link { color: #f4f5e9; margin: 0; border-color: var(--tint) }
.source-links a::after { content: "↗" / ""; margin-left: .24em; color: var(--tint) }
.audience h2 { font: 800 clamp(1.65rem,2.6vw,2.3rem)/1.15 var(--display) }
.audience dl { display: flex; flex-wrap: wrap; gap: 1rem 2.6rem; margin: 1rem 0 }
.audience dl div { display: flex; flex-direction: column-reverse }
.audience dt { color: #dbdcd4; font-size: .9rem }
.audience dd { margin: 0; color: var(--tint); font: 800 clamp(2rem,3.7vw,3.5rem)/1.15 var(--display) }
.audience p { margin: 0; color: #c4c5bf; font-size: .83rem }
.jury blockquote { margin: 0 0 .45rem; font: 800 clamp(1.8rem,3.5vw,3.2rem)/1.08 var(--display) }
@media (max-width: 44rem) {
  .dossier { padding: 2rem clamp(1rem,4.8vw,2rem) 1.65rem }
  .dossier-body { grid-template-columns: minmax(0,1fr); gap: 1.25rem }
  .byline { margin-top: .95rem }
  .dossier-print img { max-height: 24rem }
}

/* The rack stays mounted beneath the reading panel. Only the panel scrolls. */
.dossier-link[aria-busy="true"] { opacity: .7; cursor: progress }
html:has(.piece-reader[open]) { overflow: hidden; scrollbar-gutter: stable }
.piece-reader {
  width: min(64rem, calc(100% - 3rem)); max-width: none;
  max-height: calc(100dvh - 5rem); margin: auto; padding: 0;
  overflow: auto; overscroll-behavior: contain;
  color: #f4f3eb; background: #25262a; border: 1px solid #5b5c60; border-radius: 7px;
  box-shadow: 0 0 0 2px #161619, 0 20px 64px #08090a80;
}
.piece-reader::backdrop { background: rgb(11 12 14 / .66) }
.reader-bar {
  position: sticky; top: 0; z-index: 1; padding-inline: clamp(1rem,3vw,2.25rem);
  display: flex; justify-content: flex-end; border-bottom: 1px solid #111214;
  background: linear-gradient(#343539,#28292c); box-shadow: inset 0 1px #ffffff18;
}
.reader-bar button { background: transparent; border: 0; padding: 0; cursor: pointer }
.piece-reader .dossier { width: 100%; margin: 0; border: 0; border-radius: 0; box-shadow: none; padding: clamp(1.5rem,4vw,3.25rem) }
.piece-reader .dossier h1 { font-size: clamp(3rem,5.6vw,5.2rem) }
@media (max-width: 44rem) {
  .piece-reader { width: calc(100% - 1rem); max-height: calc(100dvh - 1.5rem) }
  .piece-reader .dossier { padding: 1.75rem 1rem 1.4rem }
}
@media (prefers-reduced-motion: no-preference) {
  .piece-reader {
    opacity: 0; transform: translateY(.7rem);
    transition: opacity 140ms ease-out, transform 210ms cubic-bezier(.2,.8,.25,1),
      display 210ms allow-discrete, overlay 210ms allow-discrete;
  }
  .piece-reader[open] { opacity: 1; transform: none }
  .piece-reader::backdrop {
    background: transparent;
    transition: background-color 180ms, display 210ms allow-discrete, overlay 210ms allow-discrete;
  }
  .piece-reader[open]::backdrop { background: rgb(11 12 14 / .66) }
  @starting-style {
    .piece-reader[open] { opacity: 0; transform: translateY(.7rem) }
    .piece-reader[open]::backdrop { background: transparent }
  }
}
