:root {
  --vdb-navy: #101828;
  --vdb-blue: #175cd3;
  --vdb-red: #b42318;
  --vdb-amber: #b54708;
  --vdb-green: #067647;
  --vdb-border: #d0d5dd;
}

body { background: #f8fafc; color: #182230; }
.skip-link { position: absolute; left: -10000px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 3000; background: white; padding: .75rem; }
.fleet-topbar { background: #050b14; color: #d0d5dd; padding: 7px 24px; font-size: .82rem; }
.fleet-header { background: var(--vdb-navy); color: white; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.fleet-brand { display: flex; gap: 12px; align-items: center; color: white; text-decoration: none; }
.fleet-brand img { width: 44px; height: 44px; }
.fleet-brand span { display: block; color: #b9c7d8; font-size: .82rem; }
.nav-toggle { display: none; }
.fleet-nav { background: var(--vdb-blue); display: flex; padding-inline: 24px; overflow-x: auto; }
.fleet-nav a { color: white; text-decoration: none; padding: 13px 15px; white-space: nowrap; }
.fleet-nav a.active, .fleet-nav a:hover, .fleet-nav a:focus-visible { background: rgba(255, 255, 255, .18); }
main { min-height: 70vh; padding-block: 24px 60px; }
.limitations-banner { display: flex; gap: 12px; background: #fffaeb; border: 1px solid #fedf89; border-left: 6px solid var(--vdb-amber); padding: 16px; margin-bottom: 24px; }
.limitations-banner i { color: var(--vdb-amber); margin-top: 4px; }
.hero { background: linear-gradient(130deg, #0b284c, #175cd3); color: white; padding: clamp(24px, 5vw, 56px); border-radius: 12px; margin-bottom: 24px; }
.hero h1 { max-width: 820px; }
.hero p { max-width: 900px; color: #dbeafe; font-size: 1.08rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-block: 20px; }
.card { background: white; border: 1px solid var(--vdb-border); border-radius: 9px; padding: 20px; box-shadow: 0 1px 3px rgba(16, 24, 40, .06); margin-bottom: 18px; }
.card h2, .card h3 { margin-top: 0; }
.metric strong { display: block; font-size: 1.8rem; }
.metric span { color: #475467; }
.search-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; }
.search-form label { font-weight: 600; }
.search-form input, .search-form select { display: block; width: 100%; margin-top: 5px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eaecf0; vertical-align: top; }
th { background: #f9fafb; }
tr[data-incident] { cursor: pointer; }
tr[data-incident]:hover { background: #f5f8ff; }
.badge { display: inline-block; border-radius: 999px; padding: 3px 9px; font-size: .78rem; background: #eaecf0; }
.badge.confirmed, .badge.verified { background: #ecfdf3; color: var(--vdb-green); }
.badge.probable, .badge.partially_verified { background: #eff8ff; color: #175cd3; }
.badge.possible, .badge.historical_unverified { background: #fffaeb; color: var(--vdb-amber); }
.badge.speculative, .badge.unverified, .badge.disputed { background: #fef3f2; color: var(--vdb-red); }
.source-list { display: grid; gap: 12px; }
.source { border-left: 3px solid #84adff; padding-left: 12px; }
.school-warning { background: #fef3f2; border-left: 4px solid var(--vdb-red); padding: 12px; }
#map { width: 100%; min-height: 620px; border-radius: 9px; border: 1px solid var(--vdb-border); }
.map-legend { background: white; padding: 10px; border-radius: 5px; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
.limitation-item { border-left: 4px solid var(--vdb-amber); padding-left: 16px; margin-block: 24px; }
.confidence-guide { display: grid; gap: 8px; }
.site-footer { background: var(--vdb-navy); color: #d0d5dd; padding: 30px 24px; }
.site-footer a { color: #84adff; }
.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 2500; display: grid; gap: 10px; }
.toast { max-width: 420px; background: var(--vdb-navy); color: white; padding: 14px 18px; border-radius: 8px; }
.toast.error { background: var(--vdb-red); }
dialog { width: min(900px, calc(100vw - 32px)); max-height: 85vh; border: 0; border-radius: 10px; padding: 0; }
dialog::backdrop { background: rgba(16, 24, 40, .72); }
dialog header, dialog footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #eaecf0; }
dialog footer { justify-content: flex-end; border: 0; border-top: 1px solid #eaecf0; }
#modal-body { padding: 20px; overflow: auto; max-height: 65vh; }
.icon-button { border: 0; background: transparent; cursor: pointer; font-size: 1.2rem; }

@media (max-width: 850px) {
  .search-form { grid-template-columns: 1fr 1fr; }
  .fleet-header { align-items: flex-start; padding-inline: 14px; }
  .fleet-nav { padding-inline: 6px; }
}

@media (max-width: 520px) {
  .search-form { grid-template-columns: 1fr; }
  .fleet-brand span { display: none; }
  .fleet-header .btn { font-size: .8rem; }
  table.responsive thead { display: none; }
  table.responsive tr { display: block; border-bottom: 1px solid var(--vdb-border); padding-block: 8px; }
  table.responsive td { display: grid; grid-template-columns: 42% 58%; border: 0; padding: 5px; }
  table.responsive td::before { content: attr(data-label); font-weight: 700; }
}
