/* Огоньки по рамке (js/news-stroke.js): два мягких свечения бегут друг напротив друга. Где горят — решает новость
   (news_line.json → app.py news_line): строка новости на главной и то, на что новость указывает в разделе (mark).
   Цвет — --news-stroke у карточки. Размеры и длину рамки ставит news-stroke.js — скорость одна по всей рамке. */
.news-stroke { position: relative; }
.news-stroke__svg {
    position: absolute; left: 0; top: 0; width: 100%; height: 100%;
    overflow: visible; pointer-events: none;
    filter: drop-shadow(0 0 2.5px var(--news-stroke));
}
.news-stroke__svg rect {
    fill: none; stroke: var(--news-stroke); stroke-linecap: round;
    animation: news-stroke-run var(--news-dur, 4s) linear infinite;
}
@keyframes news-stroke-run {
    from { stroke-dashoffset: var(--news-from, 0); }
    to   { stroke-dashoffset: var(--news-to, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .news-stroke { border-color: var(--news-stroke); }
    .news-stroke__svg { display: none; }
}
