/*
 * Page base of the design helmet for the facelift routes: smooth anchors, body, links and the global
 * keyframes. Split from chrome.css so the legacy pages, which load the shared navigation and footer
 * (chrome.css + chrome-legacy.css), keep their own body and link styles.
 */

/* ---------- Page base of the design helmet ---------- */
/* Smooth anchor scrolling on every design page except Homepage, Emissor and Monitor (no rule in their
   helmet); instant when the visitor asks for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
    html:not(:has(> body.wmfl-p-home, > body.wmfl-p-emissor, > body.wmfl-p-monitor)) { scroll-behavior: smooth; }
}
body { margin: 0; background: #fff; overflow-x: hidden; }
/* body overflow-x:hidden still lets focus/scrollIntoView shift the viewport sideways when content
   overflows; clip (no scroll container, sticky keeps working) stops that at the page content. */
#wmfl-main { overflow-x: clip; }
/* Root wrapper of every design page: ink-800 text (Homepage, Emissor and Monitor use --wm-fg). */
body.wmfl { font-family: var(--wm-font-body); color: var(--wm-ink-800); -webkit-font-smoothing: antialiased; }
body.wmfl-p-home, body.wmfl-p-emissor, body.wmfl-p-monitor { color: var(--wm-fg); }
a { color: var(--wm-green-700); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
@keyframes wmMsgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes wmTyping { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes wm-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes wm-row-in { from { max-height: 0; opacity: 0; } to { max-height: 80px; opacity: 1; } }
@keyframes wm-flash { 0% { background-color: rgba(25,197,146,0.26); } 100% { background-color: rgba(25,197,146,0); } }
@keyframes wm-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(25,197,146,0.6); } 50% { box-shadow: 0 0 0 6px rgba(25,197,146,0); } }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation: none !important; transition: none !important; }
}
