/* Shared site safeguards — navigation, motion, resilience */
html{color-scheme:light}
:root{--soft:#6d6963;--accent-text:#be371b}
img{max-width:100%}
a,button{touch-action:manipulation}
.skip-link{position:fixed;left:16px;top:8px;z-index:1000;background:#0d0d0c;color:#eceae4;padding:9px 12px;font:9px ui-monospace,SFMono-Regular,Menlo,Consolas,'Liberation Mono',monospace;text-transform:uppercase;text-decoration:none;transform:translateY(-180%)}
.skip-link:focus{transform:translateY(0)}
.nav a[aria-current="page"],.topnav a[aria-current="page"]{color:var(--ink,#0d0d0c);text-decoration:underline;text-underline-offset:4px}
.code,.evidence .e-code,.index-row .state,.method .m,.change .state,.fact .accent,.linkcard span,.row .state,.op .state,.row .status,.entry-left .id,.lab,.meta .accent,.finding .tag,.trace-label a,.route .meta,.pending,.method span{color:var(--accent-text)!important}
@media (max-width:980px){
  .top,.topbar{gap:12px}
  .nav,.topnav{
    display:flex!important;
    flex-wrap:nowrap!important;
    overflow-x:auto!important;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-inline:contain;
    scrollbar-width:none;
    max-width:72vw;
    white-space:nowrap;
    padding-block:8px;
  }
  .nav::-webkit-scrollbar,.topnav::-webkit-scrollbar{display:none}
  .nav a,.topnav a{display:inline-block!important;flex:0 0 auto!important}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto!important}
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}