/* Shared chrome for Macau dig-road monitor (Pages static site) */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 0.88rem;
  line-height: 1.4;
  margin: 0 0 12px;
  padding: 8px 0;
  border-bottom: 1px solid #dde;
}
.site-nav a {
  color: #0969da;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 6px;
}
.site-nav a:hover { text-decoration: underline; }
.site-nav a[aria-current="page"] {
  font-weight: 600;
  color: #0b3d91;
  background: #e7f3ff;
  text-decoration: none;
}
.site-nav--dark {
  border-bottom-color: #30363d;
  margin-bottom: 10px;
  padding-top: 0;
}
.site-nav--dark a { color: #58a6ff; }
.site-nav--dark a[aria-current="page"] {
  color: #f0f3f6;
  background: #21262d;
}
.site-nav .nav-sep {
  color: #8b949e;
  user-select: none;
}
@media (max-width: 480px) {
  .site-nav { font-size: 0.82rem; gap: 4px 6px; }
  .site-nav a { padding: 6px 8px; min-height: 36px; display: inline-flex; align-items: center; }
}

.btn-primary {
  display: inline-block;
  background: #0969da;
  color: #fff !important;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  margin: 8px 8px 8px 0;
}
.btn-primary:hover { background: #0550ae; text-decoration: none; }
.btn-secondary {
  display: inline-block;
  border: 1px solid #0969da;
  color: #0969da !important;
  padding: 9px 15px;
  border-radius: 8px;
  text-decoration: none;
  margin: 8px 8px 8px 0;
}
.btn-secondary:hover { background: #f0f7ff; text-decoration: none; }

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 12px 0;
}
.table-scroll table { min-width: 520px; }

.home-hero { margin: 0.5rem 0 1.25rem; }
.home-hero p { margin: 0.5rem 0; }
.home-links {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}
.home-links li {
  border: 1px solid #dde;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 10px 0;
  background: #fafbfc;
}
.home-links li a { font-weight: 600; font-size: 1.02rem; }
.home-links .desc {
  display: block;
  font-size: 0.88rem;
  color: #555;
  margin-top: 4px;
  font-weight: normal;
}
.home-meta { font-size: 0.85rem; color: #666; margin-top: 2rem; }

.map-status-banner {
  position: absolute;
  z-index: 800;
  left: 12px;
  right: 12px;
  top: 12px;
  max-width: 420px;
  margin: 0 auto;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.45;
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
  pointer-events: none;
}
.map-status-banner--error {
  background: #3d1f1f;
  border: 1px solid #f85149;
  color: #ffa198;
}
.map-status-banner--empty {
  background: #1c2128;
  border: 1px solid #388bfd66;
  color: #c9d1d9;
}
#map-wrap { position: relative; }
#map-status { pointer-events: auto; }
#map-status a { color: #58a6ff; pointer-events: auto; }

@media (max-width: 720px) {
  .home-hero h1 { font-size: 1.25rem; }
  .presets button { min-height: 36px; padding: 6px 10px !important; }
}
