/* Presenter posts in red and the post that is read aloud right now (package 47, 2026-11-24, Michael). Loaded right after frame-opacity.css, i.e. as one of the last stylesheets.
   1. A post with a ready spoken edition (card data-speech=ready) gets its own frame colour, red, like a game gets blue and an interaction violet. Priority of the special
      posts on one card: shared > interaction > game > presenter (the rule below steps back for every other special post). The glow on hover follows the frame (--frame-glow).
   2. "Which posts? / Beiträge mit News Presenter" is written in the same red as the frame; the play button of the cards and the header switch of the news anchor too.
   3. The post that is being read aloud (its play button is .audio-active, or still being prepared: aria-busy) shows at 100 % opacity like on hover - also when it was seen or
      read - with a red frame and a red glow, whatever the style or the post type. The audio dock scrolls to it when the visitor steps to the next or previous post. */

/* ---- token: a red that fits the theme colours (light: darker, dark: brighter); fixed red hue, not derived from the accent, so it never looks like the amber/orange accent ---- */
:root{--frame-presenter:#d4352b;--frame-presenter-ink:var(--frame-presenter)}
:root[data-theme=dark]{--frame-presenter:#ff5348}
:root[data-theme=light]{--frame-presenter-ink:color-mix(in oklab,var(--frame-presenter) 82%,#000)}
@supports (color:oklch(.5 .1 27)){
 :root{--frame-presenter:oklch(.56 .2 27)}
 :root[data-theme=dark]{--frame-presenter:oklch(.72 .2 27)}
}

/* ---- 1. frame colour of presenter posts (lowest priority of the special posts) ---- */
.news-card[data-speech=ready]:not([data-game=ready],[data-interaction=ready],[data-formats~="interaction"],.shared-article,[data-shared]){--frame-color:var(--frame-presenter);--frame-glow:var(--frame-presenter)}

/* ---- 2. text and icons in the same red ---- */
.format-choice:has(input[data-format=presenter]) label{color:var(--frame-presenter-ink)}
:root,:root[data-theme]{--speech-frame:var(--frame-presenter-ink)}
.news-card[data-speech=ready] .audio-button{color:var(--frame-presenter-ink)}

/* ---- 3. the post that is read aloud right now ---- */
.news-card:has(.audio-button:is(.audio-active,[aria-busy=true])){--card-opacity:1!important;--frame-color:var(--frame-presenter)!important;--frame-glow:var(--frame-presenter)!important}
.news-card:has(.audio-button:is(.audio-active,[aria-busy=true]))>.card-surface{box-shadow:0 0 0 1px var(--frame-presenter),0 0 28px 0 color-mix(in srgb,var(--frame-presenter) 70%,transparent),0 0 60px -6px color-mix(in srgb,var(--frame-presenter) 45%,transparent)!important;transition:box-shadow .25s ease}
.news-card:has(.audio-button:is(.audio-active,[aria-busy=true]))>.card-outline{filter:drop-shadow(0 0 6px var(--frame-presenter))}
@media(forced-colors:active){
 .news-card:has(.audio-button:is(.audio-active,[aria-busy=true]))>.card-surface{box-shadow:none!important;border-width:4px!important}
}
