/* RA9 HACKED ticker, theme 0.4.8. Loaded only where the ticker is (news hub + News posts).
   Look: the settled-sand look of the rest of the site (grain-masked panel, lavender sand outline, grainy red tags, sand red HACKED).
   Motion: pure CSS scroll. ra9-hacked.js adds sand on top (loose grains at the two ends, crisp text in the middle) when sand is on.
   Fixed height everywhere (no layout shift). The links stay real text; the canvas is decoration (aria-hidden, no pointer events). */
.ra9-hk{width:min(1160px,100% - 40px);height:78px;margin:92px auto 0;position:relative;isolation:isolate;display:flex;flex-direction:column;border-radius:12px;overflow:hidden;contain:layout paint}
.ra9-hk + main > .ra9-section:first-child{padding-top:40px !important}
/* panel: dark smoked fill + red edge bar, wearing the sand grain mask; outline = the lavender sand outline cards get once settled */
.ra9-hk::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:12px;background:linear-gradient(90deg,#bd3652 0,#aa2340 3px,transparent 3px),linear-gradient(180deg,rgba(30,24,28,.92),rgba(12,10,14,.92));-webkit-mask-image:var(--gm);mask-image:var(--gm);-webkit-mask-size:var(--gs) var(--gs);mask-size:var(--gs) var(--gs)}
.ra9-hk::after{content:"";position:absolute;inset:0;z-index:3;border-radius:12px;border:1.4px solid #9a8cb6;pointer-events:none;-webkit-mask-image:var(--gm);mask-image:var(--gm);-webkit-mask-size:var(--gs) var(--gs);mask-size:var(--gs) var(--gs)}
.ra9-hk__pause{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.ra9-hk__head{height:36px;flex:none;display:flex;align-items:center;gap:14px;padding:0 14px}
/* HACKED: sand red, settled-sand speckle like the headings */
html body .ra9-hk__word{font:400 1.7rem/1 var(--ra9-kicker);letter-spacing:.14em;color:#E83448;text-decoration:none;padding-top:2px;text-shadow:0 0 2px rgba(232,52,72,.5);-webkit-mask-image:var(--gm);mask-image:var(--gm);-webkit-mask-size:var(--gs) var(--gs);mask-size:var(--gs) var(--gs);transition:opacity .4s}
html body .ra9-hk__word:hover,html body .ra9-hk__word:focus-visible{color:#ff6478}
.ra9-hk--forming .ra9-hk__word{opacity:0}
.ra9-hk__sub{font:500 .62rem/1 var(--ra9-display);letter-spacing:.16em;text-transform:uppercase;color:rgba(255,255,255,.66)}
.ra9-hk__pl{margin-left:auto;position:relative;isolation:isolate;font:500 .62rem/1 var(--ra9-display);letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.82);cursor:pointer;padding:8px 12px}
.ra9-hk__pl::before{content:"";position:absolute;inset:0;z-index:-1;border:1.4px solid #9a8cb6;border-radius:99px;-webkit-mask-image:var(--gm);mask-image:var(--gm);-webkit-mask-size:var(--gs) var(--gs);mask-size:var(--gs) var(--gs)}
.ra9-hk__pl:hover{color:#fff}
.ra9-hk__pause:focus-visible ~ .ra9-hk__head .ra9-hk__pl{outline:2px solid #fff;outline-offset:2px}
.ra9-hk__pl-on{display:none}
.ra9-hk__pause:checked ~ .ra9-hk__head .ra9-hk__pl-on{display:inline}
.ra9-hk__pause:checked ~ .ra9-hk__head .ra9-hk__pl-off{display:none}
html body .ra9-hk__all{font:500 .62rem/1 var(--ra9-display);letter-spacing:.14em;text-transform:uppercase;color:#fff;text-decoration:none;white-space:nowrap}
html body .ra9-hk__all:hover,html body .ra9-hk__all:focus-visible{text-decoration:underline;text-decoration-color:#E83448;text-underline-offset:4px}
.ra9-hk__strip{flex:1;min-height:0;overflow:hidden;position:relative;border-top:1px solid rgba(154,140,182,.28);-webkit-mask-image:linear-gradient(90deg,transparent,#000 28px,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,transparent,#000 28px,#000 calc(100% - 28px),transparent)}
.ra9-hk__track{display:flex;width:max-content;height:100%;animation:ra9-hk var(--dur,100s) linear infinite;will-change:transform}
.ra9-hk__strip:hover .ra9-hk__track,.ra9-hk__strip:focus-within .ra9-hk__track,.ra9-hk__pause:checked ~ .ra9-hk__strip .ra9-hk__track{animation-play-state:paused}
@keyframes ra9-hk{to{transform:translate3d(-50%,0,0)}}
.ra9-hk__list{display:flex;flex:none;list-style:none;margin:0;padding:0;height:100%}
.ra9-hk__list li{display:flex;align-items:center;flex:none;height:100%}
.ra9-hk__list li::after{content:"\25C6" / "";color:#E83448;font-size:.55rem;margin:0 4px}
html body .ra9-hk__list a{display:flex;align-items:center;gap:8px;height:100%;padding:0 16px;white-space:nowrap;text-decoration:none;color:rgba(255,255,255,.88);font:400 .84rem/1 var(--ra9-body)}
html body .ra9-hk__list a:hover,html body .ra9-hk__list a:focus-visible{color:#fff;background:rgba(255,255,255,.05)}
html body .ra9-hk__list a:focus-visible{outline:2px solid #fff;outline-offset:-3px}
.ra9-hk__name{font:600 .72rem/1 var(--ra9-display);letter-spacing:.05em;color:#fff}
.ra9-hk__what{color:rgba(255,255,255,.86)}
.ra9-hk__date{color:rgba(255,255,255,.72);font-size:.8rem}
/* sand on (ra9-hacked.js): text is crisp in the middle and gives way to loose grains at both ends; the grains are drawn on the canvas over the strip.
   The ramp below is the same smoothstep the grain shader uses (24% of the strip width at each end). */
.ra9-hk__sand{position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none}
.ra9-hk--sand .ra9-hk__strip{-webkit-mask-image:linear-gradient(90deg,rgba(0,0,0,0) 0,rgba(0,0,0,.156) 6%,rgba(0,0,0,.5) 12%,rgba(0,0,0,.844) 18%,#000 24%,#000 76%,rgba(0,0,0,.844) 82%,rgba(0,0,0,.5) 88%,rgba(0,0,0,.156) 94%,rgba(0,0,0,0) 100%);mask-image:linear-gradient(90deg,rgba(0,0,0,0) 0,rgba(0,0,0,.156) 6%,rgba(0,0,0,.5) 12%,rgba(0,0,0,.844) 18%,#000 24%,#000 76%,rgba(0,0,0,.844) 82%,rgba(0,0,0,.5) 88%,rgba(0,0,0,.156) 94%,rgba(0,0,0,0) 100%)}
@media (max-width:640px){
  .ra9-hk{width:calc(100% - 24px);height:74px;margin-top:84px}
  .ra9-hk__sub{display:none}
  .ra9-hk__head{gap:10px}
}
/* phones (<700px) and reduced motion: no particles. Settled crisp text with the grain texture; phones keep the slow CSS scroll, reduced motion is static and scrolls by hand. */
@media (prefers-reduced-motion:reduce){
  .ra9-hk__track{animation:none;width:auto;will-change:auto}
  .ra9-hk__list[aria-hidden]{display:none}
  .ra9-hk__strip{overflow-x:auto;-webkit-mask-image:none;mask-image:none;scrollbar-width:thin}
  .ra9-hk__pl{display:none}
  .ra9-hk__all{margin-left:auto}
  .ra9-hk--forming .ra9-hk__word{opacity:1}
}
