/* News ticker in the footer bar (2026-11-24). The ticker is the LEFT part of the fixed footer bar (fixed-footer.css), the footer links sit on the right.
   It no longer owns a bar of its own: --app-ticker-h stays 0, the free edge is the footer bar alone (--app-footer-h, measured by fixed-footer.js).
   Colours come from the theme tokens, so every style and palette works. Hidden (the [hidden] attribute) without 5 matching posts of today or when switched off. */
.footer-ticker{flex:1 1 0;min-width:0;display:flex;align-items:stretch;height:28px;margin:0;overflow:hidden;font-size:12px;line-height:1.2;color:var(--ink)}
.footer-ticker[hidden]{display:none}
.news-ticker-label{flex:none;display:inline-flex;align-items:center;margin-inline-end:10px;padding:0 10px;border-radius:5px;font-size:10px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;white-space:nowrap;color:var(--accent-ink,#fff);background:var(--accent);cursor:help}
.news-ticker-label:focus-visible{outline:2px solid var(--accent-text,var(--accent));outline-offset:2px}
.news-ticker-view{flex:1 1 auto;min-width:0;position:relative;overflow:hidden;-webkit-mask-image:linear-gradient(to right,transparent 0,#000 18px,#000 calc(100% - 18px),transparent 100%);mask-image:linear-gradient(to right,transparent 0,#000 18px,#000 calc(100% - 18px),transparent 100%)}
.news-ticker-track{display:flex;align-items:center;width:max-content;height:100%;animation:news-ticker-run var(--ticker-duration,60s) linear infinite;will-change:transform}
.news-ticker-group{display:flex;align-items:center;flex:none;height:100%}
.news-ticker-item{display:inline-flex;align-items:center;flex:none;height:100%;padding:0 16px;color:inherit;text-decoration:none;white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent}
.news-ticker-item::after{content:'';width:5px;height:5px;margin-inline-start:18px;border-radius:50%;background:var(--accent-text,var(--accent));opacity:.65}
.news-ticker-item.is-winner .news-ticker-text::before{content:'\25B2\00a0';color:var(--accent-text,var(--accent));font-size:.8em}
.news-ticker-text{text-decoration:underline transparent;text-decoration-thickness:1px;text-underline-offset:3px;transition:text-decoration-color .12s}
.news-ticker-item:hover .news-ticker-text,.news-ticker-item:focus-visible .news-ticker-text{text-decoration-color:currentColor}
.news-ticker-item:hover,.news-ticker-item:focus-visible{color:var(--accent-text,var(--ink))}
.news-ticker-item:focus-visible{outline:2px solid var(--accent-text,var(--accent));outline-offset:-3px;border-radius:6px}
/* 2026-11-26 (package 51): the clicked headline is loading */
.news-ticker-item.is-opening{cursor:progress;color:var(--accent-text,var(--ink))}
.news-ticker-item.is-opening .news-ticker-text{text-decoration-color:currentColor;animation:news-ticker-wait .55s ease-in-out infinite alternate}
@keyframes news-ticker-wait{to{opacity:.35}}
@media (prefers-reduced-motion:reduce){.news-ticker-item.is-opening .news-ticker-text{animation:none;opacity:.55}}
.news-ticker-close{flex:none;display:inline-flex;align-items:center;justify-content:center;width:28px;padding:0;border:0;border-radius:5px;background:transparent;color:var(--muted);cursor:pointer}
.news-ticker-close:hover,.news-ticker-close:focus-visible{color:var(--ink);background:var(--surface-3,transparent)}
.news-ticker-close svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
/* The belt stops while the pointer or the focus is on the strip and while a post is read above it. */
.footer-ticker:hover .news-ticker-track,.footer-ticker:focus-within .news-ticker-track,html.pin-reading .news-ticker-track{animation-play-state:paused}
.footer-ticker[dir=rtl] .news-ticker-track{animation-name:news-ticker-run-rtl}
@keyframes news-ticker-run{to{transform:translateX(-50%)}}
@keyframes news-ticker-run-rtl{to{transform:translateX(50%)}}
/* No motion (reduced-motion preference or keyboard focus inside the strip): a plain strip the reader scrolls sideways. */
.footer-ticker.is-static .news-ticker-track{animation:none;transform:none}
.footer-ticker.is-static .news-ticker-view{overflow-x:auto;overflow-y:hidden;-webkit-mask-image:none;mask-image:none;scrollbar-width:thin}
.footer-ticker.is-static .news-ticker-clone{display:none}
@media (prefers-reduced-motion:reduce){
 .news-ticker-track{animation:none;transform:none}
 .news-ticker-view{overflow-x:auto;overflow-y:hidden;-webkit-mask-image:none;mask-image:none;scrollbar-width:thin}
 .news-ticker-clone{display:none}
}
/* Narrow windows: the footer bar wraps, the ticker takes the whole first row and the links the second. */
@media (max-width:900px){.app-footer .footer-ticker{flex-basis:100%}.app-footer .footer-links{margin-inline-start:0;justify-content:flex-start}}
@media (max-width:420px){.news-ticker-label{display:none}}
/* 24 hour ticker (2026-11-24): the publication time in front of every headline */
.news-ticker-time{flex:none;margin-inline-end:.6em;font-size:.88em;font-variant-numeric:tabular-nums;letter-spacing:.02em;opacity:.7;white-space:nowrap}
.news-ticker-item:hover .news-ticker-time,.news-ticker-item:focus-visible .news-ticker-time{opacity:1}
@media print{.footer-ticker{display:none}}
