/* Website maintenance: keyboard and small-screen access. */
.skip-link { position: fixed; top: 8px; left: 8px; transform: translateY(-200%); z-index: 10000; background: #fff; color: #143e37; padding: 12px 18px; border: 2px solid currentColor; }
.skip-link:focus { transform: translateY(0); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #166cbb; outline-offset: 4px; }
[id] { scroll-margin-top: 110px; }
.restricted-resource { display: block; padding: 10px 12px; border: 1px solid #879a96; border-radius: 6px; color: inherit; font-size: .9em; }
a[href="https://qi-diligence-portal.vercel.app/"] { display: inline-block; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.table-scroll { max-width: 100%; overflow-x: auto; }
.table-scroll:focus-visible { outline: 3px solid #166cbb; outline-offset: 3px; }
@media (max-width: 760px) {
 body > nav { position: relative; }
 [id] { scroll-margin-top: 24px; }
 .main { min-width: 0; max-width: 100%; }
 .metric-row { grid-template-columns: minmax(0, 1fr); }
 .metric-card { min-width: 0; overflow-wrap: anywhere; }
 .risk-grid { grid-template-columns: minmax(0, 1fr) !important; }
 nav .nav-inner, nav .nav-wrap { flex-wrap: wrap; }
 nav .nav-links, .site-nav { display: flex; flex-wrap: wrap; gap: 8px 14px; }
 nav .nav-links a, .site-nav a { padding-block: 8px; }
 .hero-meta, .identity-bar { flex-wrap: wrap; }
 .hero-meta-item, .identity-item { min-width: 0; overflow-wrap: anywhere; }
 .btn-row, .hero-cta { flex-wrap: wrap; }
 .repo-card, .restricted-resource { overflow-wrap: anywhere; }
 .layout > *, .grid > *, .download-body, .download-card { min-width: 0; }
 .download-card { flex-wrap: wrap; align-items: stretch; }
 .download-body, .download-action { max-width: 100%; overflow-wrap: anywhere; }
 .download-action .btn { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto !important; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
