/* Gaya khusus OJOL HEALTH & TBC (mobile first). */

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --- Kerangka antarmuka driver --------------------------------------- */
.mobile-container {
  max-width: 480px;
}

@media (min-width: 768px) {
  .mobile-bottom-nav {
    max-width: 480px;
    left: 50% !important;
    transform: translateX(-50%);
  }
}

.mobile-bottom-nav .nav-link {
  flex: 1 1 0;
  border: 0;
  background: transparent;
  color: #6c757d;
  text-decoration: none;
}

.mobile-bottom-nav .nav-link[aria-current="page"] {
  color: #0d6efd;
  font-weight: 600;
}

/* --- Kartu ------------------------------------------------------------ */
.card-soft {
  border: 0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

a.card-soft {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.card-soft:hover,
a.card-soft:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.hero-card {
  border-radius: 14px;
}

/* --- Peta ------------------------------------------------------------- */
#population-map {
  height: 520px;
  border-radius: 10px;
  background-color: #e9ecef;
}

@media (max-width: 575.98px) {
  #population-map {
    height: 360px;
  }
}

/* --- Laporan ---------------------------------------------------------- */
.audit-description {
  max-width: 32rem;
  word-break: break-word;
}

/* --- Aksesibilitas ---------------------------------------------------- */
:focus-visible {
  outline: 3px solid #0d6efd;
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1080;
  padding: 0.5rem 1rem;
  background: #0d6efd;
  color: #fff;
}

.skip-link:focus {
  left: 0;
}

/* Sembunyikan konten hanya dari mata, tetap terbaca pembaca layar. */
.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}
