/* Shared navigation and accessibility improvements */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-wrap: break-word; }
.site-nav {
  width: min(1180px, calc(100% - 24px)); margin: 12px auto 18px; padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: rgba(255,255,255,.96); border: 1px solid #dbeafe; border-radius: 12px;
  box-shadow: 0 4px 18px rgba(30,58,138,.08); font: 600 14px/1.4 Inter, Arial, sans-serif;
}
.site-nav__links { display: flex; gap: 8px; flex-wrap: wrap; }
.site-nav a { color: #1e3a8a; text-decoration: none; padding: 7px 10px; border-radius: 8px; }
.site-nav a:hover, .site-nav a:focus-visible { background: #eff6ff; color: #1d4ed8; }
.site-nav__brand { font-weight: 800; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #f59e0b; outline-offset: 3px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { touch-action: manipulation; }
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table { min-width: 720px; }
@media (max-width: 640px) {
  .site-nav { align-items: stretch; }
  .site-nav__brand { width: 100%; text-align: center; }
  .site-nav__links { width: 100%; justify-content: center; }
  .site-nav a { min-height: 44px; display: inline-flex; align-items: center; }
  canvas { max-width: 100%; }
}
@media print {
  .site-nav, .auto-scroll-panel, #scrollBtn { display: none !important; }
  body { background: #fff !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
