/* ============================================================
   RiseUp — site-wide craft layer (loaded on every page, last).
   Low-specificity, additive polish only: signature selection,
   scrollbar, typographic wrapping, press/focus states, numerals.
   ============================================================ */

/* signature text selection */
::selection{background:#F95437;color:#fff}
.quote-sec ::selection,.cs-cta ::selection,.cta ::selection{background:#0D3A4F;color:#F3F1EB}

/* refined scrollbar (WebKit + Firefox) */
@media(min-width:900px){
  html{scrollbar-color:#19435D #ece8df}
  ::-webkit-scrollbar{width:11px;height:11px}
  ::-webkit-scrollbar-track{background:#ece8df}
  ::-webkit-scrollbar-thumb{background:#19435D;border-radius:8px;border:3px solid #ece8df}
  ::-webkit-scrollbar-thumb:hover{background:#F95437}
}

/* editorial line-wrapping (progressive enhancement) */
h1,h2,h3{text-wrap:balance}
.hero h1{text-wrap:auto}                     /* rotating word — keep width stable */
.sec-head p,.ps-stand,.cs-stand,.ind-stand,.cr-stand,.aw-card p{text-wrap:pretty}

/* button press feedback (hovers already lift −2px per page) */
.btn:active{transform:translateY(-1px) scale(.97)}
.nav-cta:active,.foot-c-cta:active{transform:translateY(0) scale(.97)}

/* consistent keyboard focus — visible, on-brand, keyboard-only */
a:focus-visible,button:focus-visible,summary:focus-visible,
input:focus-visible,select:focus-visible,textarea:focus-visible,
[role="slider"]:focus-visible,[tabindex]:focus-visible{
  outline:2px solid #F95437;outline-offset:3px;border-radius:4px}

/* anchor targets never hide under the sticky nav */
[id]{scroll-margin-top:calc(var(--nav,78px) + 24px)}

/* stat numerals: tabular so count-ups never wobble */
[data-count],.metric-row b,.cs-stat b,.ind-stat b,.wy-stat dt,
.cs-line-after,.cs-line-before,.rg .r b,.aw-t b{
  font-variant-numeric:tabular-nums lining-nums}

/* respect reduced motion for everything above */
@media(prefers-reduced-motion:reduce){
  .btn:active,.nav-cta:active,.foot-c-cta:active{transform:none}
}
