/* Geometry is independent of the central identity palette. Physical X motion is intentional in every language. */
.news-ticker{display:flex;align-items:center;gap:8px;min-height:38px;max-width:100%;overflow:hidden;padding:2px clamp(10px,3vw,32px);background:var(--brand-sage);color:var(--brand-navy);border-bottom:1px solid var(--brand-gold-outline);font-size:.875rem;direction:rtl}
.news-label{font-weight:700;white-space:nowrap;color:var(--brand-green)}
.news-viewport{position:relative;overflow:hidden;flex:1;min-width:0;height:34px;direction:ltr}
.news-track{position:absolute;left:0;top:0;display:flex;gap:40px;width:max-content;max-width:none;height:34px;align-items:center;animation:news-crawl var(--news-duration,120s) linear infinite;will-change:transform;direction:ltr}
.news-headline{font:inherit;color:inherit;background:none;border:0;padding:4px 0;white-space:nowrap;cursor:pointer;line-height:1.5}
.news-headline::before{content:'✦';color:var(--brand-gold-text);margin-inline-end:14px}
.news-ticker button:focus-visible{outline:2px solid var(--brand-focus);outline-offset:-2px}
.news-ticker.is-paused .news-track,.news-viewport:hover .news-track,.news-viewport:focus-within .news-track{animation-play-state:paused}
.news-control{flex:none;min-width:32px;min-height:32px;border:1px solid var(--brand-control-border);border-radius:50%;font:inherit;color:var(--brand-navy);background:var(--brand-ivory);cursor:pointer}
.news-all{width:32px;overflow:hidden;font-size:0}.news-all::after{content:'≡';font-size:1.25rem}
@keyframes news-crawl{from{transform:translateX(var(--news-start,100vw))}to{transform:translateX(var(--news-end,-2000px))}}
#dlg-news{max-width:min(760px,calc(100vw - 24px));max-height:85dvh}#news-dialog-list article{padding:16px 0;border-bottom:1px solid var(--brand-gold-outline)}#news-dialog-list p{line-height:1.9}#news-dialog-list a{overflow-wrap:anywhere}
.news-admin-group{border-inline-start:3px solid var(--brand-gold);padding-inline-start:16px;margin-block:24px}.news-admin-item{padding:16px;border:1px solid var(--brand-border);border-radius:14px;margin-block:14px}.news-admin-item p{white-space:pre-wrap}.news-admin-item a{overflow-wrap:anywhere}.news-admin-form{display:grid;gap:12px;max-width:800px}.news-admin-form label{display:grid;gap:6px}.news-admin-form input,.news-admin-form textarea,.news-admin-form select{max-width:100%;width:100%;font:inherit;padding:8px}.news-admin-form .check{display:flex;align-items:start}.news-admin-form .check input{width:auto}.news-admin-form textarea{min-height:110px}
@media(prefers-reduced-motion:reduce){.news-viewport{overflow-x:auto}.news-track{position:relative;animation:none;transform:none;will-change:auto}.news-control#news-pause{display:none}}

/* Keep the slim strip clear of the retained floating help/listening controls. */
.news-ticker{height:38px;min-height:38px;box-sizing:border-box}.news-headline{min-height:0;height:32px;line-height:1.4}.news-control{height:30px;min-height:30px;line-height:1}
body.has-news[data-view="home"] .quick-tools{top:calc(var(--bar) + 68px)}

/* The news strip sticks directly below the measured, responsive page header. */
.news-ticker{position:sticky;top:calc(env(safe-area-inset-top,0px) + var(--site-header-height,var(--bar)));z-index:59}
html{scroll-padding-top:calc(env(safe-area-inset-top,0px) + var(--site-header-height,var(--bar)) + var(--site-news-height,0px) + 12px)}
body.has-news .quran-sec{--app-h:calc(100dvh - env(safe-area-inset-top,0px) - var(--site-header-height,var(--bar)) - var(--site-news-height,38px) - var(--tab-h,0px) - var(--player-h,0px))}
body.has-news[data-view="home"] .quick-tools{top:calc(env(safe-area-inset-top,0px) + var(--site-header-height,var(--bar)) + var(--site-news-height,38px) + 28px)}
