/* ===============================
   DATA DESA (CLEAN)
================================ */
html {
  scroll-behavior: smooth;
}

/* biar anchor gak ketutup header sticky */
#ringkasan,
#identitas,
#wilayah,
#pendidikan,
#agama,
#kewarganegaraan,
#dokumen {
  scroll-margin-top: 90px;
}

/* ===============================
   HERO
================================ */
.data-hero {
  position: relative;
  height: 220px;
  background: url("../img/contoh1.png") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.data-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 107, 69, 0.68);
}
.data-hero .inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 0 18px;
}
.data-hero h1 {
  margin: 0 0 8px;
  font-size: 42px;
  font-weight: 900;
}
.data-hero p {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  opacity: 0.95;
}

/* ===============================
   SECTION BASE
================================ */
.data-section {
  padding: 46px 0;
}
.data-wrap {
  max-width: 1100px;
  margin: auto;
  padding: 0 24px;
}

.data-title {
  font-size: 28px;
  font-weight: 900;
  color: #0b6b45;
  margin: 0 0 10px;
}
.data-muted {
  color: #555;
  font-size: 15px;
  margin: 0;
  font-weight: 600;
}

/* ===============================
   RINGKASAN HEAD (judul + dropdown)
================================ */
.ringkasan-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

/* dropdown wrapper */
.data-subnav-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 0;
}
.data-subnav-select {
  width: 320px;
  max-width: 100%;
}
.data-subnav-select select {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  padding: 0 12px;
  font-weight: 900;
  color: #0b6b45;
  border: 1px solid rgba(11, 107, 69, 0.25);
  background: rgba(11, 107, 69, 0.06);
  outline: none;
}

/* label hidden (aksesibilitas) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===============================
   RINGKASAN CARDS
================================ */
.data-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.data-card {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}
.data-card .label {
  font-size: 13px;
  font-weight: 800;
  color: #444;
  opacity: 0.9;
}
.data-card .value {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 950;
  color: #0b6b45;
  line-height: 1.1;
}
.data-card .note {
  margin-top: 6px;
  font-size: 12px;
  color: #666;
  font-weight: 650;
}

/* ===============================
   BOX + GRID
================================ */
.data-box {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}
.data-box--table {
  padding: 18px;
}

.data-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ===============================
   SECTION HEADER (judul + badge)
================================ */
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.section-title {
  margin: 0;
  font-size: 26px;
  font-weight: 950;
  color: #0b6b45;
}
.section-subtitle {
  margin: 8px 0 0;
  color: #58646b;
  font-size: 14px;
  font-weight: 650;
}
.section-badge {
  background: rgba(11, 107, 69, 0.12);
  border: 1px solid rgba(11, 107, 69, 0.22);
  color: #0b6b45;
  font-weight: 900;
  font-size: 12px;
  padding: 10px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ===============================
   TABLE (Pretty)
================================ */
.table-wrap {
  overflow-x: auto;
}
.table-wrap--pretty {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* tabel utama */
.tbl {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.tbl th,
.tbl td {
  padding: 10px 10px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  text-align: left;
  vertical-align: top;
}
.tbl th {
  background: rgba(11, 107, 69, 0.08);
  color: #0b6b45;
  font-weight: 900;
  border-bottom: 1px solid rgba(11, 107, 69, 0.18);
}

/* thead sticky (kalau ganggu, ubah top jadi 78px) */
.tbl thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(11, 107, 69, 0.1);
  border-bottom: 1px solid rgba(11, 107, 69, 0.2);
}

.tbl tbody tr:nth-child(odd) {
  background: rgba(0, 0, 0, 0.015);
}
.tbl tbody tr:hover {
  background: rgba(11, 107, 69, 0.08);
}

.right {
  text-align: right !important;
}
.center {
  text-align: center !important;
}

.tbl td.total-cell {
  font-weight: 900;
  color: #0b6b45;
}

.tbl tfoot td {
  font-weight: 950;
  background: rgba(11, 107, 69, 0.08);
  color: #0b6b45;
  border-top: 1px solid rgba(11, 107, 69, 0.18);
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 900px) {
  .data-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .ringkasan-head {
    flex-direction: column;
    align-items: stretch;
  }
  .data-subnav-select {
    width: 100%;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .data-hero h1 {
    font-size: 28px;
  }
  .data-cards {
    grid-template-columns: 1fr;
  }
}
