/* Current AATAM editorial artwork. Load after desk.css.
   Collection selection mirrors the website's collectionImage() contract.
   Local copies and their source records are in docs/editorial-art.json. */
:root,
[data-mark="breathing"],
[data-mark="plain"],
.breathe,
.primersheet {
  --session-art: url('/images/editorial/dopamine-boost.webp');
}

/* Legacy marks remain meaningful while old passes retain their identity. */
[data-mark="group"] { --session-art: url('/images/editorial/collections/keeping-everyone-happy.webp'); }
[data-mark="gap"] { --session-art: url('/images/editorial/collections/avoiding-the-hard-conversation.webp'); }
[data-mark="alone"] { --session-art: url('/images/editorial/collections/carrying-it-alone.webp'); }
[data-mark="rings"] { --session-art: url('/images/editorial/collections/watching-for-what-could-go-wrong.webp'); }

/* A canonical collection takes precedence over its shared line-art mark. */
[data-collection="keeping-everyone-happy"],
[data-collection="keeping-everyone-happy"] [data-mark] {
  --session-art: url('/images/editorial/collections/keeping-everyone-happy.webp');
}
[data-collection="avoiding-the-hard-conversation"],
[data-collection="avoiding-the-hard-conversation"] [data-mark] {
  --session-art: url('/images/editorial/collections/avoiding-the-hard-conversation.webp');
}
[data-collection="carrying-it-alone"],
[data-collection="carrying-it-alone"] [data-mark] {
  --session-art: url('/images/editorial/collections/carrying-it-alone.webp');
}
[data-collection="always-comparing"],
[data-collection="always-comparing"] [data-mark] {
  --session-art: url('/images/editorial/collections/always-comparing.webp');
}
[data-collection="feeling-too-late-to-start"],
[data-collection="feeling-too-late-to-start"] [data-mark] {
  --session-art: url('/images/editorial/collections/feeling-too-late-to-start.webp');
}
[data-collection="waiting-until-its-perfect"],
[data-collection="waiting-until-its-perfect"] [data-mark] {
  --session-art: url('/images/editorial/collections/waiting-until-its-perfect.webp');
}
[data-collection="holding-on-too-tight"],
[data-collection="holding-on-too-tight"] [data-mark] {
  --session-art: url('/images/editorial/collections/holding-on-too-tight.webp');
}
[data-collection="watching-for-what-could-go-wrong"],
[data-collection="watching-for-what-could-go-wrong"] [data-mark] {
  --session-art: url('/images/editorial/collections/watching-for-what-could-go-wrong.webp');
}
[data-collection="keeping-options-open"],
[data-collection="keeping-options-open"] [data-mark] {
  --session-art: url('/images/editorial/collections/keeping-options-open.webp');
}

/* The first sitting is the boost, even on the older rings-marked threshold. */
.firstpage .firstfield {
  --session-art: url('/images/editorial/dopamine-boost.webp');
}
[data-piece="39454416-c82a-4cac-a8be-6e0c71237dba"],
[data-piece="39454416-c82a-4cac-a8be-6e0c71237dba"] [data-mark] {
  --session-art: url('/images/editorial/dopamine-boost.webp');
}
[data-piece="cd58ff25-c098-40cb-a6b5-831283209bb5"],
[data-piece="cd58ff25-c098-40cb-a6b5-831283209bb5"] [data-mark] {
  --session-art: url('/images/editorial/box-breathing.webp');
}

/* Replace the three older direct lake URLs as well as variable-based scenes. */
.studio-card::before,
.primersheet .helpsheet-card::before {
  background: var(--session-art) center / cover;
}
.firstfield::before {
  background: linear-gradient(180deg, rgba(0,0,0,.56) 0%, rgba(0,0,0,.12) 24%, rgba(0,0,0,.08) 46%, rgba(0,0,0,.56) 70%, rgba(0,0,0,.90) 100%), var(--session-art) center / cover;
}

/* Light stone artwork keeps the room's white instructions readable. */
.stage::before {
  background: linear-gradient(180deg, rgba(0,0,0,.74) 0%, rgba(0,0,0,.56) 26%, rgba(0,0,0,.64) 52%, rgba(0,0,0,.92) 76%, #000000 100%), var(--session-art) center 40% / cover;
}
