/* ============================================================
   1. TOKENS
   ============================================================ */
:root {
  --green-950: #082c1c;
  --green-900: #0b3d26;
  --green-700: #12643c;
  /* aksi & tautan — 7.2:1 di atas putih */
  --green-600: #17784a;
  --green-100: #dcebe2;
  --green-50: #eef5f1;

  --papan: #13221a;
  /* papan nama kantor — teks putih 15.9:1 */
  --papan-2: #1d3128;
  --papan-line: #34483e;
  --on-papan: #f2f5f3;
  --on-papan-2: #b9c8bf;
  /* 9.0:1 di atas papan */

  --gold-400: #f2b934;
  /* penanda saja; 9.4:1 di atas papan */

  --ink: #1f2a37;
  --ink-2: #4b5563;
  --muted: #5f6875;
  /* 5.6:1 */
  --line: #dfe5e1;
  --line-2: #c9d2cc;
  --bg: #ffffff;
  --bg-alt: #f4f6f4;

  --status: #9a3b17;
  --status-bg: #fbeee7;

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fs-display: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
  --fs-h1: clamp(1.875rem, 1.45rem + 1.7vw, 2.625rem);
  --fs-h2: clamp(1.375rem, 1.2rem + .7vw, 1.75rem);
  --fs-h3: 1.125rem;
  --fs-lead: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  --fs-body: 1rem;
  --fs-sm: .9375rem;
  --fs-xs: .8125rem;

  --gutter: clamp(16px, 3.5vw, 32px);
  --max: 1200px;
  --sp-1: .25rem;
  --sp-2: .5rem;
  --sp-3: .75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 2.75rem;
  --sp-8: 4rem;
  --section: clamp(2.75rem, 2rem + 3vw, 4.5rem);

  --r-sm: 3px;
  --r: 4px;
  --r-lg: 6px;
  --shadow-1: 0 1px 2px rgba(11, 61, 38, .06), 0 4px 14px rgba(11, 61, 38, .06);
  --shadow-2: 0 14px 36px rgba(11, 61, 38, .16), 0 2px 6px rgba(11, 61, 38, .06);
  --focus: 3px solid #0b57d0;
  --header-h: 72px;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img,
svg,
iframe {
  display: block;
  max-width: 100%;
}

a {
  color: var(--green-700);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--green-600);
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  letter-spacing: -.015em;
  color: var(--ink);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

address {
  font-style: normal;
}

table {
  border-collapse: collapse;
  width: 100%;
}

:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

.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;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 300;
  padding: var(--sp-3) var(--sp-4);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================
   3. LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section);
}

.section--alt {
  background: var(--bg-alt);
}

.section--tight {
  padding-block: calc(var(--section) * .6);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.split--rev {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.split--even {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.split>* {
  min-width: 0;
}

/* tabel lebar tidak mendorong kolom keluar layar */
@media (max-width: 900px) {

  .split,
  .split--rev,
  .split--even {
    grid-template-columns: 1fr;
  }
}

/* Judul section */
.sec-title {
  font-size: var(--fs-h2);
  font-weight: 800;
}

.sec-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-2) var(--sp-5);
  margin-bottom: var(--sp-5);
}

.sec-desc {
  margin-top: var(--sp-2);
  color: var(--ink-2);
  max-width: 62ch;
}

.eyebrow {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   4. KOMPONEN DASAR
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 44px;
  padding: .65rem 1.15rem;
  font-weight: 700;
  font-size: var(--fs-sm);
  line-height: 1.2;
  text-decoration: none;
  border-radius: var(--r);
  border: 1.5px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s;
}

.btn--primary {
  background: var(--green-700);
  color: #fff;
}

.btn--primary:hover {
  background: var(--green-600);
  color: #fff;
}

.btn--secondary {
  background: #fff;
  color: var(--green-700);
  border-color: #8a948e;
}

.btn--secondary:hover {
  border-color: var(--green-700);
  background: var(--green-50);
  color: var(--green-700);
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--green-700);
  text-decoration: none;
}

.link-more:hover {
  text-decoration: underline;
}

.link-more .icon {
  width: 1em;
  height: 1em;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--status);
}

.status::before {
  content: '';
  width: .55em;
  height: .55em;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  flex-shrink: 0;
}

.tag {
  display: inline-block;
  padding: .1rem .5rem;
  border-radius: var(--r-sm);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.5;
  background: var(--green-50);
  color: var(--green-700);
}

.source {
  font-size: var(--fs-xs);
  color: var(--muted);
  line-height: 1.55;
}

.source a {
  color: var(--ink-2);
}

.mt-2 {
  margin-top: var(--sp-2);
}

.mt-3 {
  margin-top: var(--sp-3);
}

.mt-4 {
  margin-top: var(--sp-4);
}

.mt-5 {
  margin-top: var(--sp-5);
}

.mt-6 {
  margin-top: var(--sp-6);
}

.mt-7 {
  margin-top: var(--sp-7);
}

/* ============================================================
   5–6. HEADER & NAVIGASI UTAMA (dasar; warna hijau di bagian 21,
        hover, submenu, dan menu mobile di bagian 22)
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand__logo {
  width: 44px;
  height: 44px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -.01em;
}

.brand__sub {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--muted);
}

/* Daftar menu desktop */
.nav__list {
  display: flex;
  align-items: stretch;
  gap: 2px;
}

.nav__item {
  position: relative;
  display: flex;
  align-items: stretch;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  min-height: var(--header-h);
  padding: 0 .8rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 -3px 0 transparent;
  transition: color .15s, box-shadow .15s;
}

.nav__link:hover {
  color: var(--green-700);
}

.nav__link[aria-current="page"],
.nav__item.is-current>.nav__link {
  color: var(--green-700);
  box-shadow: inset 0 -3px 0 var(--green-700);
}

.nav__link .chev {
  width: .9em;
  height: .9em;
  transition: transform .2s;
}

.nav__item.is-open>.nav__link .chev,
.nav__item.is-open>.nav__caret .chev {
  transform: rotate(180deg);
}

.nav__item.is-open>.nav__link {
  color: var(--green-700);
}

/* Daftar Desa: label = tautan, panah = tombol terpisah */
.nav__item--split>.nav__link {
  padding-right: .25rem;
}

.nav__caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  margin-right: .3rem;
  color: var(--ink);
}

.nav__caret:hover {
  color: var(--green-700);
}

.nav__caret span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
}

.nav__caret:hover span,
.nav__item.is-open>.nav__caret span {
  background: var(--green-50);
}

.nav__caret .chev {
  width: 1em;
  height: 1em;
  transition: transform .2s;
}

/* Dropdown sederhana (Profil, Daftar Desa) */
.dropdown {
  position: absolute;
  top: calc(100% - 6px);
  left: 0;
  z-index: 20;
  min-width: 280px;
  padding: var(--sp-1) 0;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold-400);
  border-radius: 0 0 var(--r) var(--r);
  box-shadow: var(--shadow-2);
  display: none;
}

.nav__item.is-open>.dropdown {
  display: block;
}

.dropdown li+li {
  border-top: 1px solid var(--line);
}

.dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: .7rem 1.1rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
}

.dropdown a:hover,
.dropdown a:focus-visible {
  background: var(--green-50);
  color: var(--green-700);
}

.dropdown a[aria-current="page"] {
  color: var(--green-700);
  font-weight: 700;
}

/* Mega-panel (tidak dipakai lagi; Info Publik kini dropdown biasa) */
.nav__item--mega {
  position: static;
}

.mega {
  position: absolute;
  top: calc(100% - 1px);
  left: var(--gutter);
  right: var(--gutter);
  z-index: 20;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold-400);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  box-shadow: var(--shadow-2);
  display: none;
}

.nav__item.is-open>.mega {
  display: block;
}

.mega__grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr;
}

.mega__col {
  padding: var(--sp-5) var(--sp-5) var(--sp-6);
}

.mega__col+.mega__col {
  border-left: 1px solid var(--line);
}

.mega__head {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}

.mega__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--r);
  background: var(--green-50);
  color: var(--green-700);
}

.mega__title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
}

.mega__title a {
  color: inherit;
  text-decoration: none;
}

.mega__title a:hover {
  color: var(--green-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mega__desc {
  margin-top: 2px;
  font-size: var(--fs-xs);
  color: var(--muted);
  line-height: 1.5;
}

.mega__links {
  margin-left: calc(40px + var(--sp-3));
}

.mega__links li+li {
  border-top: 1px solid var(--line);
}

.mega__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: .55rem 0;
  font-size: var(--fs-sm);
  color: var(--ink-2);
  text-decoration: none;
  line-height: 1.4;
}

.mega__links a:hover {
  color: var(--green-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mega__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-2) var(--sp-5);
  padding: var(--sp-3) var(--sp-5);
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  font-size: var(--fs-xs);
  color: var(--muted);
}

.mega__foot a {
  font-weight: 600;
}

/* Tombol menu mobile (disembunyikan di desktop) */
.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: 0 .9rem;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink);
}

.nav-toggle .icon {
  width: 1.2em;
  height: 1.2em;
}

.nav-toggle .i-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .i-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .i-close {
  display: block;
}

/* Tanpa JS: dropdown desktop tetap bisa dibuka lewat hover/fokus */
html:not(.js) .nav__item:hover>.dropdown,
html:not(.js) .nav__item:focus-within>.dropdown,
html:not(.js) .nav__item:hover>.mega,
html:not(.js) .nav__item:focus-within>.mega {
  display: block;
}

/* ---------- Mobile (< 1120px): daftar bertingkat di dalam panel menu ---------- */
@media (max-width: 1119.98px) {
  .header__inner {
    flex-wrap: wrap;
    min-height: 64px;
  }

  .brand__logo {
    width: 38px;
    height: 38px;
  }

  .js .nav-toggle {
    display: inline-flex;
  }

  .nav {
    width: 100%;
  }

  .js .nav {
    display: none;
  }

  .js .nav.is-open {
    display: block;
    max-height: calc(100dvh - 64px - 38px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
    padding-bottom: var(--sp-4);
    border-top: 1px solid var(--line);
  }

  .nav__item {
    flex-wrap: wrap;
    border-bottom: 1px solid var(--line);
  }

  .nav__link {
    flex: 1;
    min-height: 52px;
    padding: 0 var(--sp-1);
    font-size: 1rem;
    justify-content: space-between;
  }

  .nav__link[aria-current="page"],
  .nav__item.is-current>.nav__link {
    box-shadow: inset 4px 0 0 var(--green-700);
    padding-left: var(--sp-4);
  }

  .nav__caret {
    width: 52px;
    margin: 0;
    border-left: 1px solid var(--line);
  }

  .nav__caret span {
    width: 36px;
    height: 36px;
  }

  .nav__item--split>.nav__link {
    padding-right: var(--sp-1);
  }

  .nav__item--mega {
    position: relative;
  }

  .dropdown,
  .mega {
    position: static;
    width: 100%;
    min-width: 0;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    background: var(--bg-alt);
  }

  .dropdown {
    padding: 0;
  }

  .dropdown li+li {
    border-top: 1px solid var(--line);
  }

  .dropdown a {
    padding: .8rem var(--sp-4) .8rem var(--sp-6);
    font-size: var(--fs-sm);
    border-left: 3px solid var(--line-2);
    margin-left: var(--sp-4);
  }

  .mega__grid {
    grid-template-columns: 1fr;
  }

  .mega__col {
    padding: var(--sp-4) var(--sp-4) var(--sp-4) var(--sp-4);
  }

  .mega__col+.mega__col {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .mega__icon {
    width: 34px;
    height: 34px;
  }

  .mega__links {
    margin-left: calc(34px + var(--sp-3));
  }

  .mega__links a {
    padding: .65rem 0;
  }

  .mega__foot {
    border-radius: 0;
  }

  /* Tanpa JS: semua submenu tampil terbuka */
  html:not(.js) .dropdown,
  html:not(.js) .mega {
    display: block;
  }

  html:not(.js) .nav__caret {
    display: none;
  }
}


/* ============================================================
   7. BERANDA — HERO + PANEL "HARI INI" (tampilan akhir hero di bagian 21–22)
   ============================================================ */
.home-hero__photo {
  height: clamp(300px, 46vw, 540px);
  background: var(--line);
  overflow: hidden;
}

.home-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}

.home-hero__body {
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * clamp(110px, 12vw, 170px));
}

.plate {
  width: min(100%, 640px);
  padding: clamp(20px, 2.6vw, 32px) clamp(20px, 2.6vw, 36px) var(--sp-5);
  background: #fff;
  border-top: 4px solid var(--green-700);
}

.plate__eyebrow {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-700);
}

.plate__title {
  margin-top: var(--sp-2);
  font-size: var(--fs-display);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.05;
}

.plate__lead {
  margin-top: var(--sp-3);
  font-size: var(--fs-lead);
  color: var(--ink-2);
  max-width: 48ch;
}

.today {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 4fr);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}

.today__head {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-1) var(--sp-4);
  padding: var(--sp-3) var(--sp-5);
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
}

.today__date {
  font-weight: 700;
}

.today__place {
  color: var(--muted);
}

.today__cell {
  padding: var(--sp-5);
  min-width: 0;
}

.today__cell+.today__cell {
  border-left: 1px solid var(--line);
}

.today__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Cuaca */
.wx__now {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-top: var(--sp-3);
}

.wx__temp {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.wx__icon {
  width: 52px;
  height: 52px;
}

.wx__desc {
  font-weight: 700;
}

.wx__meta {
  margin-top: var(--sp-1);
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

.wx__next {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: var(--sp-4);
  border-top: 1px solid var(--line);
}

.wx__next li {
  padding-top: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--ink-2);
  line-height: 1.4;
}

.wx__next b {
  display: block;
  color: var(--ink);
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
}

.wx__status {
  margin-top: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

/* Jadwal salat */
.pray {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
  column-gap: var(--sp-2);
  margin-top: var(--sp-3);
  border-top: 1px solid var(--line);
}

.pray li {
  padding: var(--sp-3) var(--sp-1) var(--sp-2);
  border-bottom: 3px solid transparent;
}

.pray__name {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--muted);
}

.pray__time {
  display: block;
  margin-top: 2px;
  font-size: 1.375rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

.pray li.is-next {
  border-bottom-color: var(--gold-400);
}

.pray li.is-next .pray__name {
  color: var(--ink);
}

.pray__note {
  margin-top: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

.pray__note b {
  color: var(--ink);
}

/* Kontak — bidang papan */
.today__cell--papan {
  background: var(--papan);
  color: var(--on-papan);
  border-left: 0 !important;
}

.today__cell--papan .today__label {
  color: var(--on-papan-2);
  letter-spacing: .14em;
}

.today__cell--papan a {
  color: #fff;
}

.open-status {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  margin-top: var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.open-status::before {
  content: '';
  width: .6em;
  height: .6em;
  border-radius: 50%;
  background: var(--on-papan-2);
}

.open-status.is-open::before {
  background: #5fd38d;
}

.papan-tel {
  display: block;
  margin-top: var(--sp-2);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -.01em;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.papan-tel:hover {
  text-decoration: underline;
}

.papan-list {
  margin-top: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--on-papan-2);
}

.papan-list li+li {
  margin-top: 2px;
}

.papan-list b {
  color: var(--on-papan);
  font-weight: 600;
}

.papan-links {
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--papan-line);
  font-size: var(--fs-sm);
}

.papan-links li+li {
  margin-top: var(--sp-2);
}

.papan-links a {
  font-weight: 700;
}

.papan-links span {
  display: block;
  font-size: var(--fs-xs);
  color: var(--on-papan-2);
}

.papan-note {
  margin-top: var(--sp-3);
  font-size: .75rem;
  color: var(--on-papan-2);
}

@media (max-width: 1000px) {
  .today {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .today__cell--papan {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .home-hero__body {
    margin-top: -64px;
    padding-inline: 0;
  }

  .plate {
    width: calc(100% - 2 * var(--gutter));
    margin-inline: var(--gutter);
  }

  .today {
    grid-template-columns: 1fr;
    border-inline: 0;
    box-shadow: none;
  }

  .today__cell+.today__cell {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .today__head,
  .today__cell {
    padding-inline: var(--gutter);
  }

  .pray__time {
    font-size: 1.1875rem;
  }
}

/* ============================================================
   8. YANG SERING DICARI — daftar tugas (tautan teks)
   ============================================================ */
.tasks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(16px, 3vw, 40px);
}

.tasks li {
  border-top: 1px solid var(--line-2);
}

.tasks a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px var(--sp-3);
  padding: var(--sp-4) 0 var(--sp-5);
  text-decoration: none;
  color: var(--ink);
}

.tasks__text {
  font-weight: 700;
  line-height: 1.4;
}

.tasks__ket {
  grid-column: 1;
  font-size: var(--fs-xs);
  color: var(--muted);
}

.tasks .icon {
  grid-row: 1;
  grid-column: 2;
  width: 1.1em;
  height: 1.1em;
  margin-top: .2em;
  color: var(--green-700);
  transition: transform .15s;
}

.tasks a:hover .tasks__text {
  color: var(--green-700);
  text-decoration: underline;
}

.tasks a:hover .icon {
  transform: translateX(3px);
}

@media (max-width: 900px) {
  .tasks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .tasks {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   9. BERITA — satu berita utama + daftar
   ============================================================ */
.news-lead {
  padding: clamp(20px, 3vw, 36px);
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--green-700);
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-1) var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--muted);
  font-weight: 600;
}

.news-lead__date {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--green-700);
  font-variant-numeric: tabular-nums;
}

.news-lead__date small {
  display: block;
  margin-top: 4px;
  font-size: var(--fs-xs);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.news-lead__title {
  margin-top: var(--sp-4);
  font-size: clamp(1.375rem, 1.15rem + .9vw, 1.875rem);
  font-weight: 800;
  line-height: 1.25;
}

.news-lead__title a,
.news-row__title a {
  color: var(--ink);
  text-decoration: none;
}

.news-lead__title a:hover,
.news-row__title a:hover {
  color: var(--green-700);
  text-decoration: underline;
}

.news-lead__excerpt {
  margin-top: var(--sp-3);
  color: var(--ink-2);
  max-width: 60ch;
}

.news-lead__src {
  margin-top: var(--sp-4);
}

.news-list li {
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--line);
}

.news-list li:first-child {
  padding-top: 0;
}

.news-row__title {
  margin-top: var(--sp-1);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
}

.news-row__excerpt {
  margin-top: var(--sp-1);
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

/* ============================================================
   10. MENGENAL MOJOLABAN — 15 nama desa sebagai daftar tipografis
   ============================================================ */
.village-names {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-2);
}

.village-names li {
  padding: .55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.0625rem;
  color: var(--ink-2);
}

.village-names a {
  font-weight: 800;
  color: var(--green-700);
}

.village-names li span {
  font-size: var(--fs-xs);
  color: var(--muted);
  margin-left: .4em;
}

@media (max-width: 520px) {
  .village-names {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ============================================================
   11. PETA & LOKASI
   ============================================================ */
.map {
  position: relative;
  min-height: 360px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}

.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0 var(--sp-5);
  border-top: 1px solid var(--line-2);
}

.facts dt,
.facts dd {
  padding-block: var(--sp-3);
  border-bottom: 1px solid var(--line);
}

.facts dt {
  font-size: var(--fs-sm);
  color: var(--muted);
}

.facts dd {
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 460px) {
  .facts {
    grid-template-columns: 1fr;
  }

  .facts dt {
    border-bottom: 0;
    padding-bottom: 0;
  }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

/* ============================================================
   12. KEPALA HALAMAN DALAM — bidang papan + subnavigasi
   ============================================================ */
.page-head {
  background: var(--papan);
  color: var(--on-papan);
}

.page-head__inner {
  padding-block: clamp(1.75rem, 1.3rem + 2vw, 3rem) clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: .2em .5em;
  font-size: var(--fs-xs);
  color: var(--on-papan-2);
}

.crumbs li+li::before {
  content: '/';
  margin-right: .5em;
  color: var(--papan-line);
}

.crumbs a {
  color: var(--on-papan);
}

.page-head__eyebrow {
  margin-top: var(--sp-5);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.page-head__title {
  margin-top: var(--sp-2);
  font-size: var(--fs-h1);
  font-weight: 800;
  color: #fff;
  max-width: 24ch;
}

.page-head__lead {
  margin-top: var(--sp-3);
  font-size: var(--fs-lead);
  color: var(--on-papan-2);
  max-width: 62ch;
}

.subnav {
  border-top: 1px solid var(--papan-line);
}

.subnav ul {
  display: flex;
  gap: var(--sp-1);
  overflow-x: auto;
  scrollbar-width: thin;
}

.subnav a {
  display: block;
  padding: .85rem .9rem;
  white-space: nowrap;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--on-papan-2);
  text-decoration: none;
  box-shadow: inset 0 -3px 0 transparent;
}

.subnav a:hover {
  color: #fff;
}

.subnav a[aria-current="page"] {
  color: #fff;
  box-shadow: inset 0 -3px 0 var(--gold-400);
}

.subnav li:first-child a {
  padding-left: 0;
}

/* ============================================================
   13. TEKS PANJANG, CATATAN, DAFTAR BERNOMOR
   ============================================================ */
.prose {
  max-width: 68ch;
  color: var(--ink-2);
}

.prose p+p {
  margin-top: 1em;
}

.prose strong {
  color: var(--ink);
}

.block+.block {
  margin-top: var(--sp-7);
}

.block__title {
  font-size: var(--fs-h2);
  font-weight: 800;
  margin-bottom: var(--sp-4);
}

.block__sub {
  font-size: var(--fs-h3);
  font-weight: 800;
  margin-bottom: var(--sp-3);
}

.notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: var(--status-bg);
  border-left: 4px solid var(--status);
  font-size: var(--fs-sm);
  color: var(--ink);
}

.notice .icon {
  color: var(--status);
  margin-top: 2px;
}

.notice p+p {
  margin-top: var(--sp-1);
}

.notice--info {
  background: var(--green-50);
  border-left-color: var(--green-700);
}

.notice--info .icon {
  color: var(--green-700);
}

.numlist {
  counter-reset: n;
}

.numlist>li {
  position: relative;
  padding: var(--sp-3) 0 var(--sp-3) 2.75rem;
  border-top: 1px solid var(--line);
}

.numlist>li::before {
  counter-increment: n;
  content: counter(n, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: var(--sp-3);
  font-weight: 800;
  color: var(--green-700);
  font-variant-numeric: tabular-nums;
}

.numlist--2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--sp-6);
}

@media (max-width: 760px) {
  .numlist--2 {
    grid-template-columns: 1fr;
  }
}

.numlist ol {
  margin-top: var(--sp-2);
  padding-left: 1.25rem;
  list-style: lower-alpha;
  color: var(--ink-2);
}

.numlist ol li+li {
  margin-top: var(--sp-1);
}

.visi {
  padding: clamp(20px, 3vw, 36px);
  background: var(--green-50);
  border-left: 6px solid var(--green-700);
}

.visi__text {
  margin-top: var(--sp-3);
  font-size: clamp(1.25rem, 1.05rem + .9vw, 1.75rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  max-width: 40ch;
}

.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure figcaption {
  margin-top: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--muted);
}

/* Angka ringkas dalam satu baris (warna akhir di bagian 19) */
.figures {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line);
}

.figures>div {
  flex: 1 1 140px;
  padding: var(--sp-4) var(--sp-5) var(--sp-4) 0;
}

.figures>div+div {
  padding-left: var(--sp-5);
  border-left: 1px solid var(--line);
}

.figures b {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.figures b small {
  font-size: .5em;
  font-weight: 700;
  color: var(--ink-2);
  margin-left: .15em;
}

.figures span {
  display: block;
  margin-top: 2px;
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

@media (max-width: 560px) {
  .figures>div {
    flex-basis: 50%;
    padding: var(--sp-3) var(--sp-3) var(--sp-3) 0;
  }

  .figures>div+div {
    padding-left: 0;
    border-left: 0;
  }

  .figures>div:nth-child(even) {
    padding-left: var(--sp-3);
    border-left: 1px solid var(--line);
  }
}

/* ============================================================
   14. TABEL DATA, BATANG, DOKUMEN
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: #fff;
}

.table-wrap:focus-visible {
  outline-offset: 0;
}

.table {
  font-size: var(--fs-sm);
}

.table caption {
  text-align: left;
  padding: var(--sp-3) var(--sp-4);
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}

.table th,
.table td {
  padding: .65rem var(--sp-4);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.table thead th {
  background: var(--bg-alt);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}

.table tbody tr:last-child th,
.table tbody tr:last-child td {
  border-bottom: 0;
}

.table tbody th {
  font-weight: 600;
}

.table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.table tfoot td,
.table tfoot th {
  font-weight: 800;
  border-top: 2px solid var(--line-2);
  border-bottom: 0;
}

.table .group th {
  background: var(--green-50);
  color: var(--green-700);
  font-size: var(--fs-xs);
  letter-spacing: .02em;
}

.table--wide {
  min-width: 600px;
}

/* gulir mendatar di dalam .table-wrap pada layar sempit */
.table td.empty {
  color: var(--status);
  font-weight: 600;
}

.bars li {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr) 3.5rem;
  align-items: center;
  gap: var(--sp-3);
  padding: .35rem 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
}

.bars__track {
  height: 10px;
  background: var(--bg-alt);
  border-radius: 2px;
}

.bars__bar {
  display: block;
  height: 100%;
  min-width: 2px;
  background: var(--green-700);
  border-radius: 2px;
}

.bars__val {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.bars li.is-zero .bars__val {
  color: var(--muted);
  font-weight: 500;
}

.bars li.is-focus {
  font-weight: 700;
}

.docs li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-2) var(--sp-5);
  padding-block: var(--sp-3);
  border-bottom: 1px solid var(--line);
}

.docs li:first-child {
  border-top: 1px solid var(--line-2);
}

.docs__title {
  font-weight: 700;
}

.docs__meta {
  font-size: var(--fs-xs);
  color: var(--muted);
}

.docs__link {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-size: var(--fs-sm);
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

.docs__link:hover {
  text-decoration: underline;
}

.docs__link .icon {
  width: 1em;
  height: 1em;
}

@media (max-width: 520px) {
  .docs li {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   15. BAGAN STRUKTUR ORGANISASI
   ============================================================ */
.org {
  --org-line: var(--line-2);
}

.org__node {
  padding: var(--sp-3) var(--sp-4);
  background: #fff;
  border: 1px solid var(--line-2);
  border-top: 3px solid var(--green-700);
}

.org__node--top {
  border-top-color: var(--gold-400);
  background: var(--papan);
  color: var(--on-papan);
  border-color: var(--papan);
}

.org__node--top .org__role {
  color: var(--on-papan-2);
}

.org__node--top .org__name {
  color: #fff;
}

.org__role {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}

.org__name {
  display: block;
  margin-top: 2px;
  font-weight: 700;
  color: var(--ink);
}

.org__top {
  display: flex;
  justify-content: center;
}

.org__top .org__node {
  min-width: 280px;
  text-align: center;
}

.org__mid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
  margin-top: var(--sp-6);
  position: relative;
}

.org__sek {
  grid-column: 2;
}

.org__sek-children {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px dashed var(--org-line);
}

.org__kasi {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--sp-3);
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 2px solid var(--org-line);
}

.org__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-2);
}

@media (max-width: 900px) {
  .org__mid {
    grid-template-columns: 1fr;
  }

  .org__sek {
    grid-column: 1;
  }

  .org__kasi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {

  .org__kasi,
  .org__sek-children {
    grid-template-columns: 1fr;
  }

  .org__top .org__node {
    min-width: 0;
    width: 100%;
  }
}

/* ============================================================
   16. DIREKTORI DESA & HALAMAN DESA
   ============================================================ */
.dir-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--sp-4) var(--sp-6);
  padding-block: var(--sp-4);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  flex: 1 1 240px;
  max-width: 380px;
}

.field label,
.chips legend {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.field input {
  min-height: 44px;
  padding: 0 var(--sp-3);
  border: 1.5px solid #8a948e;
  border-radius: var(--r);
  font: inherit;
  background: #fff;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  border: 0;
}

.chips legend {
  margin-bottom: var(--sp-2);
}

.chip {
  min-height: 38px;
  padding: 0 var(--sp-3);
  border: 1.5px solid var(--line-2);
  border-radius: var(--r);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-2);
  background: #fff;
}

.chip:hover {
  border-color: var(--green-700);
  color: var(--green-700);
}

.chip[aria-pressed="true"] {
  background: var(--green-700);
  border-color: var(--green-700);
  color: #fff;
}

.dir-index__row {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 2fr) 7.5rem minmax(0, 1.5fr);
  align-items: baseline;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-3);
  border-bottom: 1px solid var(--line);
}

.dir-index__row.is-hidden {
  display: none;
}

.dir-index__head {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--bg-alt);
}

.dir-index__code {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.dir-index__name {
  font-weight: 700;
  font-size: 1.0625rem;
}

.dir-index__cat {
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

.dir-index__pop {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.dir-index__page {
  font-size: var(--fs-sm);
  color: var(--muted);
}

.dir-index__row.is-focus {
  background: var(--green-50);
  box-shadow: inset 4px 0 0 var(--green-700);
}

.dir-empty {
  padding-block: var(--sp-5);
  color: var(--ink-2);
}

.link {
  font-weight: 700;
}

@media (max-width: 760px) {
  .dir-index__head {
    display: none;
  }

  .dir-index__row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px var(--sp-4);
  }

  .dir-index__code {
    display: none;
  }

  .dir-index__page {
    grid-column: 1 / -1;
  }

  .dir-index__page.is-none {
    display: none;
  }
}

.focus-villages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-2);
}

.focus-villages a {
  display: block;
  padding: var(--sp-4) var(--sp-5) var(--sp-5) 0;
  text-decoration: none;
  color: var(--ink);
}

.focus-villages li+li a {
  padding-left: var(--sp-5);
  border-left: 1px solid var(--line);
}

.focus-villages__name {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--green-700);
}

.focus-villages__pop {
  display: block;
  margin-top: var(--sp-1);
  font-size: 1.75rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.focus-villages__meta {
  display: block;
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

.focus-villages a:hover .focus-villages__name {
  text-decoration: underline;
}

@media (max-width: 760px) {
  .focus-villages {
    grid-template-columns: 1fr;
  }

  .focus-villages li+li a {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

/* Peringkat penduduk (dirender mojo.js) */
.rank {
  counter-reset: rank;
}

.rank__row {
  display: grid;
  grid-template-columns: 1.5rem 6.5rem minmax(0, 1fr) 3.75rem;
  align-items: center;
  gap: var(--sp-3);
  padding: .32rem 0;
  font-size: var(--fs-sm);
  border-bottom: 1px solid var(--line);
}

.rank__row::before {
  counter-increment: rank;
  content: counter(rank);
  text-align: right;
  color: var(--muted);
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
}

.rank__name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank__track {
  height: 8px;
  background: var(--bg-alt);
  border-radius: 2px;
}

.rank__bar {
  display: block;
  height: 100%;
  min-width: 2px;
  background: #8a948e;
  border-radius: 2px;
}

.rank__val {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}

.rank__row.is-focus {
  font-weight: 700;
}

.rank__row.is-focus .rank__bar {
  background: var(--green-700);
}

.rank__row.is-focus .rank__val {
  color: var(--ink);
}

.rank__legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  margin-top: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--ink-2);
}

.rank__key {
  display: inline-flex;
  align-items: center;
  gap: .45em;
}

.rank__key::before {
  content: '';
  width: 14px;
  height: 8px;
  border-radius: 2px;
  background: #8a948e;
}

.rank__key--focus::before {
  background: var(--green-700);
}

@media (max-width: 420px) {
  .rank__row {
    grid-template-columns: 1.25rem 5.5rem minmax(0, 1fr) 3.25rem;
    gap: var(--sp-2);
  }
}

/* Komposisi L/P */
.splitbar__bar {
  display: flex;
  gap: 2px;
  height: 40px;
}

.splitbar__seg {
  display: flex;
  align-items: center;
  padding: 0 var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.splitbar__seg--l {
  background: var(--green-700);
}

.splitbar__seg--p {
  background: #8f4220;
  justify-content: flex-end;
}

.splitbar__legend {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

.splitbar__legend b {
  color: var(--ink);
}

.village-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line-2);
}

.village-nav a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-block: var(--sp-4);
  text-decoration: none;
  color: var(--ink);
}

.village-nav a+a {
  text-align: right;
  align-items: flex-end;
  border-left: 1px solid var(--line);
}

.village-nav span {
  font-size: var(--fs-xs);
  color: var(--muted);
  font-weight: 600;
}

.village-nav b {
  font-size: 1.125rem;
  color: var(--green-700);
}

.village-nav a:hover b {
  text-decoration: underline;
}

.aside-box {
  padding: var(--sp-5);
  background: var(--bg-alt);
  border-top: 3px solid var(--green-700);
}

.aside-box .facts {
  border-top: 0;
}

.sticky {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-4));
}

@media (max-width: 900px) {
  .sticky {
    position: static;
  }
}

/* ============================================================
   17. FOOTER — bidang papan
   ============================================================ */
.footer {
  background: var(--papan);
  color: var(--on-papan-2);
}

.footer a {
  color: var(--on-papan);
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--sp-6);
  padding-block: var(--sp-7) var(--sp-6);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.footer__brand img {
  width: 44px;
  height: 44px;
}

.footer__brand strong {
  display: block;
  color: #fff;
  font-size: 1.0625rem;
}

.footer__brand span {
  font-size: var(--fs-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.footer__addr {
  margin-top: var(--sp-4);
  font-size: var(--fs-sm);
  line-height: 1.75;
}

.footer__heading {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: var(--sp-3);
}

.footer__list {
  font-size: var(--fs-sm);
}

.footer__list li+li {
  margin-top: var(--sp-2);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-2) var(--sp-5);
  padding-block: var(--sp-4);
  border-top: 1px solid var(--papan-line);
  font-size: var(--fs-xs);
}

@media (max-width: 860px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__grid> :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   18. CETAK & GERAK
   ============================================================ */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }
}

@media print {

  .header,
  .map,
  .subnav,
  .footer {
    display: none !important;
  }

  .page-head {
    background: #fff;
    color: #000;
  }

  .page-head__title {
    color: #000;
  }
}

/* ============================================================
   19. ORNAMEN BATIK & BAGIAN TENGAH HALAMAN
   Motif kawung (bidang) dan parang (pita) digambar dengan SVG; motif Jawa
   umum, bukan motif khas Mojolaban. Semua ornamen hanya dekorasi.
   ============================================================ */
:root {
  --green-soft: #e8f1ec;
  /* teks muted 4.9:1, tautan hijau 6.3:1 */
  --kawung: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%2312643c' stroke-opacity='.13' stroke-width='1.2'%3E%3Cellipse cx='28' cy='15' rx='6.5' ry='11.5'/%3E%3Cellipse cx='28' cy='41' rx='6.5' ry='11.5'/%3E%3Cellipse cx='15' cy='28' rx='11.5' ry='6.5'/%3E%3Cellipse cx='41' cy='28' rx='11.5' ry='6.5'/%3E%3Ccircle cx='28' cy='28' r='2'/%3E%3Ccircle cx='0' cy='0' r='3'/%3E%3Ccircle cx='56' cy='0' r='3'/%3E%3Ccircle cx='0' cy='56' r='3'/%3E%3Ccircle cx='56' cy='56' r='3'/%3E%3C/g%3E%3C/svg%3E");
  --kawung-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.11' stroke-width='1.2'%3E%3Cellipse cx='28' cy='15' rx='6.5' ry='11.5'/%3E%3Cellipse cx='28' cy='41' rx='6.5' ry='11.5'/%3E%3Cellipse cx='15' cy='28' rx='11.5' ry='6.5'/%3E%3Cellipse cx='41' cy='28' rx='11.5' ry='6.5'/%3E%3Ccircle cx='28' cy='28' r='2'/%3E%3Ccircle cx='0' cy='0' r='3'/%3E%3Ccircle cx='56' cy='0' r='3'/%3E%3Ccircle cx='0' cy='56' r='3'/%3E%3Ccircle cx='56' cy='56' r='3'/%3E%3C/g%3E%3C/svg%3E");
  /* satu bunga kawung besar untuk ornamen sudut */
  --kawung-flower: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%2312643c' stroke-width='2'%3E%3Cellipse cx='60' cy='30' rx='14' ry='26'/%3E%3Cellipse cx='60' cy='90' rx='14' ry='26'/%3E%3Cellipse cx='30' cy='60' rx='26' ry='14'/%3E%3Cellipse cx='90' cy='60' rx='26' ry='14'/%3E%3Cellipse cx='60' cy='30' rx='5' ry='12'/%3E%3Cellipse cx='60' cy='90' rx='5' ry='12'/%3E%3Cellipse cx='30' cy='60' rx='12' ry='5'/%3E%3Cellipse cx='90' cy='60' rx='12' ry='5'/%3E%3Ccircle cx='60' cy='60' r='5'/%3E%3C/g%3E%3C/svg%3E");
  --kawung-flower-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cellipse cx='60' cy='30' rx='14' ry='26'/%3E%3Cellipse cx='60' cy='90' rx='14' ry='26'/%3E%3Cellipse cx='30' cy='60' rx='26' ry='14'/%3E%3Cellipse cx='90' cy='60' rx='26' ry='14'/%3E%3Cellipse cx='60' cy='30' rx='5' ry='12'/%3E%3Cellipse cx='60' cy='90' rx='5' ry='12'/%3E%3Cellipse cx='30' cy='60' rx='12' ry='5'/%3E%3Cellipse cx='90' cy='60' rx='12' ry='5'/%3E%3Ccircle cx='60' cy='60' r='5'/%3E%3C/g%3E%3C/svg%3E");
  /* pita parang: lengkung miring berulang di antara dua garis */
  --parang: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='12' viewBox='0 0 20 12'%3E%3Cg fill='none' stroke='%2312643c' stroke-opacity='.45' stroke-width='1.3'%3E%3Cpath d='M0 11 C6 11 4 1 10 1 M10 11 C16 11 14 1 20 1'/%3E%3Cpath d='M0 .5H20M0 11.5H20' stroke-opacity='.3'/%3E%3C/g%3E%3C/svg%3E");
}

/* Bidang hijau lembut bertekstur kawung + pita parang di tepi atas */
.section--alt {
  position: relative;
  background-color: var(--green-soft);
  background-image: var(--parang), var(--kawung);
  background-repeat: repeat-x, repeat;
  background-position: top left, center;
  background-size: 20px 12px, 56px 56px;
}

/* Ornamen sudut: bunga kawung besar yang samar di belakang konten */
.ornament {
  position: relative;
  overflow: clip;
  isolation: isolate;
}

/* clip, bukan hidden, agar elemen sticky tetap berfungsi */
.ornament::after {
  --o: clamp(180px, 24vw, 320px);
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
  width: var(--o);
  aspect-ratio: 1;
  right: calc(var(--o) / -3);
  top: calc(var(--o) / -4);
  background: var(--kawung-flower) center / contain no-repeat;
  opacity: .13;
}

.ornament--bl::after {
  top: auto;
  right: auto;
  bottom: calc(var(--o) / -3);
  left: calc(var(--o) / -3);
}

/* Panel putih di atas bidang hijau */
.panel-white {
  padding: clamp(16px, 2.5vw, 28px);
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--green-700);
  box-shadow: var(--shadow-1);
}

/* Angka ringkas: pita hijau tua */
.figures {
  border: 0;
  border-radius: var(--r);
  padding-inline: var(--sp-5);
  background: var(--green-900) var(--kawung-light) center / 56px 56px;
  color: #fff;
}

.figures>div+div {
  border-left-color: rgba(255, 255, 255, .16);
}

.figures b {
  color: #fff;
}

.figures b small,
.figures span {
  color: #c9d8cf;
}

@media (max-width: 560px) {
  .figures {
    padding-inline: var(--sp-4);
  }

  .figures>div:nth-child(even) {
    border-left-color: rgba(255, 255, 255, .16);
  }
}

/* Visi: bidang hijau dengan bunga kawung di kanan */
.visi {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--green-soft) var(--kawung) center / 56px 56px;
}

.visi::after {
  content: '';
  position: absolute;
  z-index: -1;
  right: -40px;
  top: 50%;
  translate: 0 -50%;
  width: clamp(150px, 20vw, 250px);
  aspect-ratio: 1;
  background: var(--kawung-flower) center / contain no-repeat;
  opacity: .18;
}

/* Daftar bernomor: nomor dalam lingkaran hijau */
.numlist>li {
  padding-left: 3.25rem;
  min-height: 3.25rem;
}

.numlist>li::before {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--green-700);
  color: #fff;
  font-size: .8125rem;
  top: var(--sp-2);
}

/* Lembar fakta / kotak samping: kepala bertekstur hijau tua */
.aside-box {
  position: relative;
  padding-top: calc(var(--sp-5) + 44px);
  background: #fff;
  border: 1px solid var(--line);
  border-top: 0;
}

.aside-box.sticky {
  position: sticky;
}

/* tetap sticky di desktop */
@media (max-width: 900px) {
  .aside-box.sticky {
    position: relative;
    top: auto;
  }
}

.aside-box::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 44px;
  background: var(--green-900) var(--kawung-light) center / 56px 56px;
  border-bottom: 3px solid var(--gold-400);
}

/* Berita utama: bidang hijau lembut dengan ornamen di sudut bawah */
.news-lead {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--green-soft);
  border-color: transparent;
}

.section--alt .news-lead {
  background: #fff;
}

.news-lead::after {
  content: '';
  position: absolute;
  z-index: -1;
  right: -60px;
  bottom: -60px;
  width: 230px;
  aspect-ratio: 1;
  background: var(--kawung-flower) center / contain no-repeat;
  opacity: .13;
}

/* Bingkai peta dengan aksen sudut */
.map {
  outline: 8px solid var(--green-soft);
  margin: 8px;
}

.section--alt .map {
  outline-color: #fff;
}

.map::before,
.map::after {
  content: '';
  position: absolute;
  z-index: 1;
  width: 34px;
  height: 34px;
  pointer-events: none;
  border: 3px solid var(--green-700);
}

.map::before {
  top: -11px;
  left: -11px;
  border-right: 0;
  border-bottom: 0;
}

.map::after {
  bottom: -11px;
  right: -11px;
  border-left: 0;
  border-top: 0;
}

/* Tabel: baris kelompok & kepala lebih tegas */
.table .group th {
  background: var(--green-100);
}

.table-wrap {
  border-top: 3px solid var(--green-700);
}

/* Grafik batang (kesejahteraan sosial) di panel hijau lembut */
[data-kesos] .split>div:first-child {
  padding: var(--sp-5);
  background: var(--green-soft) var(--kawung) center / 56px 56px;
  border-top: 3px solid var(--green-700);
}

[data-kesos] .bars li {
  border-bottom-color: rgba(18, 100, 60, .14);
}

[data-kesos] .bars__track {
  background: #fff;
}

/* Daftar dokumen: penanda berkas di kiri */
.docs li {
  position: relative;
  padding-left: 1.85rem;
}

.docs li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  translate: 0 -50%;
  width: 14px;
  height: 18px;
  border: 2px solid var(--green-700);
  border-radius: 1px 6px 1px 1px;
  background: var(--green-soft);
}

/* Desa fokus (direktori): pita kawung di atas tiap desa */
.focus-villages a {
  position: relative;
  padding-top: calc(var(--sp-4) + 58px);
}

.focus-villages a::before {
  content: '';
  position: absolute;
  top: var(--sp-4);
  left: 0;
  right: var(--sp-5);
  height: 46px;
  background: var(--green-900) var(--kawung-light) center / 56px 56px;
  border-bottom: 3px solid var(--gold-400);
  transition: background-color .15s;
}

.focus-villages li+li a::before {
  left: var(--sp-5);
}

.focus-villages a:hover::before {
  background-color: var(--green-700);
}

@media (max-width: 760px) {
  .focus-villages li+li a::before {
    left: 0;
  }

  .focus-villages a::before {
    right: 0;
  }
}

/* Banner ilustrasi (pengganti foto; dekoratif, bukan foto lokasi) */
.ilus {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(150px, 18vw, 200px);
  padding: var(--sp-5);
  background: var(--green-900) var(--kawung-light) center / 56px 56px;
  color: #fff;
  border-bottom: 4px solid var(--gold-400);
}

.ilus::before {
  /* hamparan sawah bergaya garis lengkung bertingkat */
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 75%;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 18% 125%, transparent 57%, rgba(255, 255, 255, .13) 57.5%, transparent 58.6%),
    radial-gradient(120% 90% at 18% 125%, transparent 67%, rgba(255, 255, 255, .09) 67.5%, transparent 68.6%),
    radial-gradient(130% 100% at 88% 135%, transparent 60%, rgba(255, 255, 255, .12) 60.5%, transparent 61.6%),
    radial-gradient(130% 100% at 88% 135%, transparent 72%, rgba(255, 255, 255, .08) 72.5%, transparent 73.6%);
}

.ilus::after {
  content: '';
  position: absolute;
  z-index: -1;
  right: -50px;
  top: -50px;
  width: 230px;
  aspect-ratio: 1;
  background: var(--kawung-flower-light) center / contain no-repeat;
  opacity: .2;
}

.ilus__name {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
}

.ilus__meta {
  margin-top: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #c9d8cf;
}

/* Foto berbingkai: blok hijau bergeser di belakang foto (keterangan tetap di latar putih) */
.figure--framed {
  padding: 0 0 0 14px;
}

.figure--framed img {
  box-shadow: -14px 14px 0 var(--green-900);
}

.figure--framed figcaption {
  margin-top: calc(var(--sp-2) + 14px);
}

/* Bagan organisasi: latar kawung + garis penghubung */
.org {
  --org-line: #8fae9c;
  padding: clamp(16px, 3vw, 32px);
  background: var(--green-soft) var(--kawung) center / 56px 56px;
  border-top: 3px solid var(--green-700);
}

.org__node {
  position: relative;
}

.org__kasi {
  border-top-color: var(--org-line);
}

.org__sek-children {
  border-top: 2px solid var(--org-line);
}

@media (min-width: 901px) {
  .org__mid {
    margin-top: 0;
    padding-top: var(--sp-6);
  }

  .org__mid::before {
    /* batang vertikal dari Camat */
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--org-line);
    translate: -1px 0;
  }

  .org__mid::after {
    /* cabang ke Sekretaris Kecamatan */
    content: '';
    position: absolute;
    left: 50%;
    top: calc(var(--sp-6) + 30px);
    width: calc(var(--sp-5) / 2);
    height: 2px;
    background: var(--org-line);
  }

  .org__label {
    position: relative;
    margin: 0 !important;
    padding: var(--sp-6) 0 var(--sp-2);
  }

  .org__label::before {
    /* lanjutan batang ke barisan seksi */
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--org-line);
    translate: -1px 0;
  }

  .org__kasi .org__node::before,
  .org__sek-children .org__node::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 2px;
    background: var(--org-line);
    translate: -1px 0;
  }

  .org__kasi .org__node::before {
    top: calc(-1 * var(--sp-5) - 2px);
    height: var(--sp-5);
  }

  .org__sek-children .org__node::before {
    top: calc(-1 * var(--sp-4) - 2px);
    height: var(--sp-4);
  }
}

@media print {

  .section--alt,
  .figures,
  .org,
  .visi,
  .news-lead,
  .ilus,
  .aside-box::before {
    background: #fff !important;
    color: #000;
  }

  .ornament::after,
  .visi::after,
  .news-lead::after,
  .ilus::after,
  .ilus::before {
    display: none;
  }

  .figure--framed img {
    box-shadow: none;
  }
}

/* ============================================================
   20. KETERBACAAN & INTERAKSI
   Latar solid di belakang teks (motif hanya di tepi), animasi muncul, dan
   komponen interaktif: daftar tugas, filter, peramban SOP, grafik, tooltip.
   ============================================================ */

/* ---------- A. Keterbacaan: latar solid ---------- */
.section--alt {
  background-image: var(--parang);
  background-repeat: repeat-x;
  background-position: top left;
  background-size: 20px 12px;
}

.visi,
.org,
[data-kesos] .split>div:first-child {
  background-image: none;
}

.figures {
  background-image: none;
}

.ilus {
  background-image: none;
}

.ilus::before {
  /* motif hanya di sisi kanan, memudar ke arah teks */
  inset: 0 0 0 auto;
  width: 58%;
  height: auto;
  background: var(--kawung-light) center / 56px 56px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 45%);
  mask-image: linear-gradient(to right, transparent, #000 45%);
}

/* ornamen sudut: lebih kecil, di luar kolom teks, hilang di layar sempit */
.ornament::after {
  --o: 170px;
  right: -70px;
  top: -70px;
  opacity: .10;
}

.ornament--bl::after {
  left: -70px;
  bottom: -70px;
}

.visi::after {
  right: -70px;
  opacity: .14;
}

.visi__text {
  max-width: 34ch;
}

.news-lead::after {
  width: 150px;
  right: -50px;
  bottom: auto;
  top: -50px;
  opacity: .12;
}

@media (max-width: 1279.98px) {
  .ornament::after {
    display: none;
  }
}

@media (max-width: 900px) {

  .visi::after,
  .news-lead::after {
    display: none;
  }
}

/* pita motif tipis sebagai aksen di tepi atas blok berlatar solid */
.org,
[data-kesos] .split>div:first-child {
  border-top: 0;
  box-shadow: inset 0 3px 0 var(--green-700);
  position: relative;
}

.org::before,
[data-kesos] .split>div:first-child::before {
  content: '';
  position: absolute;
  inset: 3px 0 auto 0;
  height: 12px;
  background: var(--parang) repeat-x 0 0 / 20px 12px;
  opacity: .7;
  pointer-events: none;
}

/* ---------- B. Animasi muncul (kelas dipasang mojo.js) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .5s ease, transform .5s ease;
  }

  .reveal-ready .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Beranda: daftar tugas interaktif ---------- */
.tasks a {
  position: relative;
  padding-inline: var(--sp-3);
  margin-inline: calc(-1 * var(--sp-3));
  transition: background-color .2s, box-shadow .2s;
}

.tasks a:hover,
.tasks a:focus-visible {
  background: #fff;
  box-shadow: inset 4px 0 0 var(--green-700), var(--shadow-1);
}

.tasks a:hover .tasks__text {
  text-decoration: none;
}

.tasks .icon {
  transition: transform .2s;
}

.tasks a:hover .icon,
.tasks a:focus-visible .icon {
  transform: translateX(4px);
}

/* Berita: baris daftar bisa diklik seluruhnya */
.news-list li {
  position: relative;
  transition: background-color .2s;
}

.news-list li:has(.news-row__title a):hover {
  background: var(--green-soft);
}

.news-row__title a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.news-list li {
  padding-inline: var(--sp-3);
  margin-inline: calc(-1 * var(--sp-3));
}

.news-list li:first-child {
  padding-top: var(--sp-4);
}

/* ---------- Chip/kontrol bersama ---------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-4);
  margin-bottom: var(--sp-5);
}

.toolbar__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.chip .count {
  margin-left: .35em;
  font-weight: 500;
  opacity: .8;
}

.seg {
  display: inline-flex;
  border: 1.5px solid var(--green-700);
  border-radius: var(--r);
  overflow: hidden;
}

.seg button {
  min-height: 38px;
  padding: 0 var(--sp-4);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--green-700);
  background: #fff;
}

.seg button+button {
  border-left: 1.5px solid var(--green-700);
}

.seg button[aria-pressed="true"] {
  background: var(--green-700);
  color: #fff;
}

.btn-text {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--green-700);
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 38px;
}

.btn-text[hidden] {
  display: none;
}

mark {
  background: #fbe39a;
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
}

/* ---------- Pelayanan Umum: peramban SOP ---------- */
.sop-search {
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-5);
  background: var(--green-soft);
  box-shadow: inset 0 3px 0 var(--green-700);
}

.sop-search input {
  min-height: 48px;
  width: 100%;
  padding: 0 var(--sp-4);
  font: inherit;
  border: 1.5px solid #8a948e;
  border-radius: var(--r);
  background: #fff;
}

.sop-search .chips {
  gap: var(--sp-2);
}

.sop-group+.sop-group {
  margin-top: var(--sp-6);
}

.sop-group[hidden] {
  display: none;
}

.sop-group__title {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  font-size: var(--fs-h3);
  font-weight: 800;
  padding-bottom: var(--sp-2);
  border-bottom: 2px solid var(--green-700);
}

.sop-group__title span {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--muted);
}

.sop-item {
  border-bottom: 1px solid var(--line);
}

.sop-item[hidden] {
  display: none;
}

.sop-item summary {
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-2);
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  border-radius: var(--r);
}

.sop-item summary::-webkit-details-marker {
  display: none;
}

.sop-item summary:hover {
  background: var(--green-soft);
}

.sop-item__no {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--green-700);
  color: #fff;
  font-size: .8125rem;
  font-weight: 800;
}

.sop-item__chev {
  width: 1.1em;
  height: 1.1em;
  color: var(--green-700);
  transition: transform .2s;
}

.sop-item[open] .sop-item__chev {
  transform: rotate(180deg);
}

.sop-item[open] summary {
  background: var(--green-soft);
}

.sop-item__body {
  padding: var(--sp-3) var(--sp-2) var(--sp-4) calc(2.1rem + var(--sp-5));
}

.sop-item__body .facts {
  border-top: 0;
}

.sop-empty {
  padding: var(--sp-5) 0;
  color: var(--ink-2);
}

/* ---------- Grafik batang dengan tooltip (halaman desa) ---------- */
.chart {
  margin-top: var(--sp-2);
}

.chart__row {
  display: grid;
  grid-template-columns: minmax(7rem, 11rem) minmax(0, 1fr) 3rem;
  align-items: center;
  gap: var(--sp-3);
  padding: .45rem var(--sp-2);
  border-radius: var(--r);
  cursor: default;
  outline-offset: 0;
}

.chart__row:hover,
.chart__row:focus-visible,
.chart__row.is-active {
  background: var(--green-soft);
}

.chart__label {
  font-size: var(--fs-sm);
  font-weight: 600;
}

.chart__track {
  height: 16px;
  background: var(--bg-alt);
  border-radius: 0 3px 3px 0;
}

.chart__bar {
  display: block;
  height: 100%;
  min-width: 3px;
  background: var(--green-700);
  border-radius: 0 3px 3px 0;
  transition: width .5s ease;
}

.chart__row:hover .chart__bar,
.chart__row:focus-visible .chart__bar {
  background: var(--green-600);
}

.chart__val {
  text-align: right;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.chart-wrap {
  position: relative;
}

.tip {
  position: absolute;
  z-index: 20;
  max-width: min(320px, 90vw);
  padding: var(--sp-3) var(--sp-4);
  background: var(--papan);
  color: var(--on-papan);
  font-size: var(--fs-xs);
  line-height: 1.5;
  border-radius: var(--r);
  box-shadow: var(--shadow-2);
  pointer-events: none;
}

.tip b {
  color: #fff;
  font-size: var(--fs-sm);
}

.tip[hidden] {
  display: none;
}

.view-panel[hidden] {
  display: none;
}

.chart-note {
  margin-top: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--muted);
}

/* Batang komposisi (profil: penggunaan lahan) */
.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-6);
  margin-top: var(--sp-6);
}

.compare__title {
  font-weight: 800;
  margin-bottom: var(--sp-3);
}

.stack {
  display: flex;
  height: 44px;
  gap: 2px;
}

.stack span {
  display: flex;
  align-items: center;
  padding: 0 var(--sp-3);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 700;
  white-space: nowrap;
}

.stack .s1 {
  background: var(--green-700);
}

.stack .s2 {
  background: #6f7f76;
  justify-content: flex-end;
}

.stack-legend {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

.pair .chart__row {
  grid-template-columns: minmax(7rem, 12rem) minmax(0, 1fr) 5rem;
  padding-inline: 0;
}

@media (max-width: 760px) {
  .compare {
    grid-template-columns: 1fr;
  }

  .chart__row {
    grid-template-columns: minmax(5.5rem, 8rem) minmax(0, 1fr) 2.5rem;
  }
}

/* ---------- Struktur: detail jabatan & pohon mobile ---------- */
.org__more {
  margin-top: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--green-700);
  text-decoration: underline;
  text-underline-offset: 2px;
  min-height: 28px;
}

.org__node--top .org__more {
  color: var(--gold-400);
}

.org__detail {
  margin-top: var(--sp-1);
  font-size: var(--fs-xs);
  color: var(--ink-2);
}

.org__node--top .org__detail {
  color: var(--on-papan-2);
}

.org__detail[hidden] {
  display: none;
}

@media (max-width: 900px) {

  .org__mid,
  .org__kasi,
  .org__sek-children {
    margin-left: var(--sp-3);
    padding-left: var(--sp-4);
    border-left: 2px solid var(--org-line);
    border-top: 0 !important;
  }

  .org__kasi {
    padding-top: 0;
  }

  .org__mid {
    margin-top: 0;
    padding-top: var(--sp-4);
  }

  .org__sek-children {
    margin-top: var(--sp-3);
    padding-top: 0;
  }

  .org__kasi .org__node,
  .org__sek .org__node,
  .org__sek-children .org__node {
    position: relative;
  }

  .org__kasi .org__node::after,
  .org__sek>.org__node::after,
  .org__sek-children .org__node::after {
    content: '';
    position: absolute;
    left: calc(-1 * var(--sp-4) - 2px);
    top: 50%;
    width: var(--sp-4);
    height: 2px;
    background: var(--org-line);
  }

  .org__label {
    margin: var(--sp-4) 0 var(--sp-2) var(--sp-3) !important;
  }
}

/* ============================================================
   21. HEADER, HERO & FOOTER — tampilan akhir bagian atas & bawah halaman
   ============================================================ */
:root {
  --gold-500: #e0a91f;
  --hdr-text: #e3ede7;
}

/* Tombol untuk latar gelap (hero & footer) */
.btn--gold {
  background: var(--gold-400);
  color: var(--papan);
  border-color: var(--gold-400);
}

.btn--gold:hover {
  background: #ffd060;
  border-color: #ffd060;
  color: var(--papan);
}

.btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .55);
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, .12);
  border-color: #fff;
  color: #fff;
}

/* ---------- Strip info atas ---------- */
.topstrip {
  background: var(--green-950);
  color: #cfe0d5;
  font-size: var(--fs-xs);
}

.topstrip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-1) var(--sp-5);
  min-height: 36px;
  padding-block: 6px;
}

.topstrip__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-1) var(--sp-5);
}

.topstrip__item {
  display: inline-flex;
  align-items: center;
  gap: .45em;
}

.topstrip__item .icon {
  width: 1.05em;
  height: 1.05em;
  color: var(--gold-400);
}

.topstrip a {
  color: #fff;
  text-decoration: none;
}

.topstrip a:hover {
  text-decoration: underline;
  color: #fff;
}

@media (max-width: 860px) {

  .topstrip__site,
  .topstrip__hours {
    display: none;
  }

  .topstrip__inner {
    justify-content: center;
  }
}

/* ---------- Header hijau ---------- */
.header {
  background: var(--green-900);
  border-bottom: 0;
  box-shadow: inset 0 -3px 0 var(--gold-400);
  transition: box-shadow .2s;
}

.header.is-scrolled {
  box-shadow: inset 0 -3px 0 var(--gold-400), 0 10px 26px rgba(8, 44, 28, .28);
}

.brand {
  color: #fff;
}

.brand:hover {
  color: #fff;
}

.brand__logo {
  width: 46px;
  height: 46px;
  padding: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(242, 185, 52, .6);
  object-fit: contain;
}

.brand__name {
  color: #fff;
  font-size: 1.125rem;
}

.brand__sub {
  color: var(--gold-400);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 700;
}

.nav-toggle {
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, .1);
}

@media (min-width: 1120px) {
  .nav__link {
    color: var(--hdr-text);
  }

  .nav__link:hover,
  .nav__item.is-open>.nav__link {
    color: #fff;
    background: rgba(255, 255, 255, .07);
  }

  .nav__link[aria-current="page"],
  .nav__item.is-current>.nav__link {
    color: #fff;
    box-shadow: inset 0 -3px 0 var(--gold-400);
  }

  .nav__caret {
    color: var(--hdr-text);
  }

  .nav__caret:hover {
    color: #fff;
  }

  .nav__caret:hover span,
  .nav__item.is-open>.nav__caret span {
    background: rgba(255, 255, 255, .12);
  }

  .nav__item--split>.nav__link[aria-current="page"]+.nav__caret,
  .nav__item--split.is-current>.nav__caret {
    box-shadow: inset 0 -3px 0 var(--gold-400);
  }

  .dropdown,
  .mega {
    top: 100%;
  }
}

@media (max-width: 1119.98px) {
  .js .nav.is-open {
    width: calc(100% + 2 * var(--gutter));
    background: #fff;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    box-shadow: 0 14px 24px rgba(8, 44, 28, .25);
  }

  .nav__list {
    border-top: 0;
  }
}

/* ---------- Hero Beranda: foto penuh + overlay + judul besar ---------- */
.home-hero {
  position: relative;
}

.home-hero__photo {
  position: relative;
  height: clamp(500px, 64vw, 660px);
}

.home-hero__photo img {
  object-position: 50% 58%;
}

.home-hero__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 44, 28, .94) 0%, rgba(8, 44, 28, .82) 34%, rgba(8, 44, 28, .38) 62%, rgba(8, 44, 28, .12) 100%),
    linear-gradient(0deg, rgba(8, 44, 28, .55) 0%, transparent 40%);
}

.home-hero__photo::before {
  /* aksen kawung di sisi kanan atas, jauh dari teks */
  content: '';
  position: absolute;
  z-index: 1;
  right: -60px;
  top: -60px;
  width: 320px;
  aspect-ratio: 1;
  background: var(--kawung-flower-light) center / contain no-repeat;
  opacity: .16;
  pointer-events: none;
}

.home-hero__body {
  margin-top: calc(-1 * clamp(380px, 46vw, 470px));
}

.plate {
  width: min(100%, 680px);
  padding: 0 0 clamp(1.75rem, 3vw, 2.75rem);
  background: transparent;
  border-top: 0;
  color: #fff;
}

.plate__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  color: var(--gold-400);
}

.plate__eyebrow::before {
  content: '';
  width: 34px;
  height: 3px;
  background: var(--gold-400);
  border-radius: 2px;
}

.plate__title {
  color: #fff;
  font-size: clamp(2.6rem, 1.6rem + 4.2vw, 4.75rem);
  line-height: 1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .25);
}

.plate__lead {
  color: #dbe7df;
  max-width: 46ch;
}

.plate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

@media (max-width: 640px) {
  .home-hero__photo {
    height: 560px;
  }

  .home-hero__photo::after {
    background: linear-gradient(0deg, rgba(8, 44, 28, .96) 0%, rgba(8, 44, 28, .9) 72%, rgba(8, 44, 28, .45) 100%);
  }

  .home-hero__photo::before {
    display: none;
  }

  .home-hero__body {
    margin-top: -440px;
  }

  .plate {
    width: auto;
    margin-inline: var(--gutter);
  }

  .plate__actions .btn {
    flex: 1 1 auto;
  }
}

/* ---------- Kepala halaman dalam: aksen foto & ornamen ---------- */
.page-head {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(90deg, var(--papan) 0%, var(--papan) 45%, var(--green-900) 100%);
}

.page-head::before {
  /* foto kantor samar di sisi kanan, memudar ke arah teks */
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: 52%;
  background: url("../img/kecm.jpeg") 60% 55% / cover no-repeat;
  opacity: .2;
  filter: grayscale(.35);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 60%);
  mask-image: linear-gradient(to right, transparent 0%, #000 60%);
}

.page-head::after {
  content: '';
  position: absolute;
  z-index: -1;
  right: -70px;
  top: -70px;
  width: 240px;
  aspect-ratio: 1;
  background: var(--kawung-flower-light) center / contain no-repeat;
  opacity: .14;
  pointer-events: none;
}

.page-head__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
}

.page-head__eyebrow::before {
  content: '';
  width: 26px;
  height: 3px;
  background: var(--gold-400);
  border-radius: 2px;
}

@media (max-width: 760px) {
  .page-head::before {
    width: 100%;
    opacity: .12;
  }

  .page-head::after {
    display: none;
  }
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #c3d3c8;
}

.footer::after {
  /* bunga kawung besar di sudut kanan bawah */
  content: '';
  position: absolute;
  z-index: -1;
  right: -110px;
  bottom: -110px;
  width: 380px;
  aspect-ratio: 1;
  background: var(--kawung-flower-light) center / contain no-repeat;
  opacity: .07;
  pointer-events: none;
}

.footer__cta {
  position: relative;
  background: var(--green-700);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.footer__cta::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: 45%;
  background: var(--kawung-light) center / 56px 56px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 60%);
  mask-image: linear-gradient(to right, transparent, #000 60%);
}

.footer__cta::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 12px;
  background: var(--parang) repeat-x 0 0 / 20px 12px;
  opacity: .55;
  filter: brightness(2.4);
}

.footer__cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  padding-block: clamp(1.75rem, 3vw, 2.5rem) clamp(2rem, 3.4vw, 2.75rem);
}

.footer__cta-eyebrow {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.footer__cta-title {
  margin-top: var(--sp-1);
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.footer__cta-text {
  margin-top: var(--sp-1);
  color: #d8e7dd;
  font-size: var(--fs-sm);
}

.footer__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.footer__grid {
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: var(--sp-6) clamp(20px, 3vw, 40px);
  padding-block: clamp(2.5rem, 4vw, 3.5rem) var(--sp-6);
}

.footer__brand img {
  width: 52px;
  height: 52px;
  padding: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(242, 185, 52, .6);
}

.footer__brand strong {
  font-size: 1.25rem;
}

.footer__brand span {
  color: var(--gold-400);
  font-weight: 700;
}

.footer__addr {
  color: #c3d3c8;
}

.footer__hours {
  margin-top: var(--sp-4);
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 2px var(--sp-4);
  font-size: var(--fs-sm);
}

.footer__hours dt {
  color: #9fb5a8;
}

.footer__hours dd {
  color: #fff;
  font-weight: 600;
}

.footer__heading {
  display: flex;
  align-items: center;
  gap: .55em;
}

.footer__heading::before {
  content: '';
  width: 18px;
  height: 3px;
  background: var(--gold-400);
  border-radius: 2px;
}

.footer__list a {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  transition: color .15s, transform .15s;
}

.footer__list a::before {
  content: '›';
  color: var(--gold-400);
  font-weight: 800;
}

.footer__list a:hover {
  transform: translateX(3px);
}

.footer__list .ext::before {
  content: '↗';
}

.footer__note {
  margin-top: var(--sp-1);
  font-size: .75rem;
  color: #9fb5a8;
}

.footer__bottom {
  align-items: center;
  color: #9fb5a8;
}

.footer__totop {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  min-height: 36px;
  padding: 0 var(--sp-3);
  border: 1px solid var(--papan-line);
  border-radius: var(--r);
  color: #fff !important;
  font-weight: 700;
}

.footer__totop:hover {
  background: var(--papan-2);
  text-decoration: none !important;
}

@media (max-width: 960px) {
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__grid> :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__cta-actions .btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 1119.98px) {
  .header .brand__logo {
    width: 38px;
    height: 38px;
  }

  .header .brand__name {
    font-size: 1rem;
  }

  .header .brand__sub {
    font-size: .66rem;
  }

  .header .brand {
    gap: var(--sp-2);
  }

  .nav-toggle {
    padding: 0 .75rem;
  }
}

@media (max-width: 400px) {
  .topstrip__email {
    display: none;
  }

  .nav-toggle {
    padding: 0 .65rem;
  }

  .nav-toggle__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  /* teks disembunyikan tetapi tetap dibaca pembaca layar */
}

@media (min-width: 641px) and (max-width: 1100px) {

  /* tablet: judul melebar, overlay dipekatkan agar teks terbaca */
  .home-hero__photo::after {
    background: linear-gradient(90deg, rgba(8, 44, 28, .94) 0%, rgba(8, 44, 28, .86) 60%, rgba(8, 44, 28, .6) 100%),
      linear-gradient(0deg, rgba(8, 44, 28, .55) 0%, transparent 40%);
  }
}

/* Berita: kolom samping menempel (desktop); .ppid-links tidak dipakai lagi */
@media (min-width: 901px) {
  .news-aside {
    position: sticky;
    top: calc(var(--header-h) + var(--sp-4));
    align-self: start;
  }
}

.ppid-links li {
  border-top: 1px solid var(--line);
}

.ppid-links a {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: .6rem 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
}

.ppid-links a:hover {
  text-decoration: underline;
}

/* Halaman desa: kartu lokasi wisata & daftar tugas perangkat */
.spots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-5);
}

.spot {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--green-700);
}

.spot__img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--green-900);
}

.spot__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spot__img figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 2px 8px;
  font-size: .7rem;
  color: #fff;
  background: rgba(8, 44, 28, .75);
}

.spot__img.is-broken img {
  display: none;
}

.spot__img.is-broken::after {
  content: 'Foto tidak dapat dimuat';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--on-papan-2);
  font-size: var(--fs-xs);
}

.spot__body {
  padding: var(--sp-4);
}

.spot__title {
  font-size: 1.0625rem;
  font-weight: 800;
}

.spot__body p {
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

.spot__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1) var(--sp-4);
  font-weight: 700;
}

.wirun-list {
  list-style: disc;
  padding-left: 1.25rem;
  color: var(--ink-2);
  font-size: var(--fs-sm);
}

.wirun-list li+li {
  margin-top: var(--sp-1);
}

@media (max-width: 640px) {
  .spots {
    grid-template-columns: 1fr;
  }
}

.section>.container>.spots {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1000px) {
  .section>.container>.spots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .section>.container>.spots {
    grid-template-columns: 1fr;
  }
}

/* Daftar Desa: slider kartu desa (berjalan otomatis, lihat bagian 22) */
.vslider {
  position: relative;
}

.vslider__ctrl {
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}

.vslider__btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--green-700);
  border-radius: 50%;
  color: var(--green-700);
  background: #fff;
}

.vslider__btn .icon {
  transform: rotate(90deg);
}

.vslider__btn[data-dir="1"] .icon {
  transform: rotate(-90deg);
}

.vslider__btn:hover {
  background: var(--green-700);
  color: #fff;
}

.vslider__btn:disabled {
  opacity: .35;
  cursor: default;
  background: #fff;
  color: var(--green-700);
}

.focus-villages.vslider__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scroll-behavior: smooth;
}

.vslider__track>li {
  flex: 0 0 calc((100% - 2px) / 3);
  scroll-snap-align: start;
}

.vslider__track .is-soon {
  position: relative;
  display: block;
  padding: calc(var(--sp-4) + 58px) var(--sp-5) var(--sp-5);
  border-left: 1px solid var(--line);
  color: var(--ink);
}

.vslider__track .is-soon::before {
  content: '';
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-5);
  right: var(--sp-5);
  height: 46px;
  background: var(--green-900) var(--kawung-light) center / 56px 56px;
  border-bottom: 3px solid var(--gold-400);
  opacity: .55;
}

.vslider__track .is-soon .focus-villages__name {
  color: var(--ink-2);
}

.vslider__track li:first-child .is-soon {
  border-left: 0;
  padding-left: 0;
}

.vslider__track li:first-child .is-soon::before {
  left: 0;
}

.vslider__track li+li a {
  border-left: 1px solid var(--line);
}

.soon-tag {
  display: inline-block;
  margin-top: var(--sp-2);
  padding: .1rem .5rem;
  border-radius: var(--r-sm);
  font-size: var(--fs-xs);
  font-weight: 700;
  background: var(--status-bg);
  color: var(--status);
}

.dropdown__soon {
  display: block;
  padding: .7rem 1.1rem;
  font-size: var(--fs-sm);
  color: var(--muted);
}

.dropdown__soon .soon-tag {
  display: block;
  width: fit-content;
  margin-top: 2px;
}

.subnav__soon {
  display: block;
  padding: .85rem .9rem;
  white-space: nowrap;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #8ea597;
  cursor: default;
}

@media (max-width: 1119.98px) {
  .dropdown__soon {
    padding: .8rem var(--sp-4) .8rem var(--sp-6);
    margin-left: var(--sp-4);
    border-left: 3px solid var(--line-2);
  }
}

@media (max-width: 900px) {
  .vslider__track>li {
    flex-basis: 70%;
  }
}

@media (max-width: 760px) {
  .vslider__track>li {
    flex-basis: 82%;
  }

  .focus-villages.vslider__track li+li a,
  .vslider__track .is-soon {
    padding-left: var(--sp-5);
    border-left: 1px solid var(--line);
    border-top: 0;
  }

  .vslider__track li+li a::before {
    left: var(--sp-5);
  }

  .vslider__track li:first-child .is-soon {
    padding-left: 0;
    border-left: 0;
  }
}

/* ============================================================
   22. TAMBAHAN TERAKHIR
   Navigasi (hover, submenu, menu mobile), hero Beranda, jam, ornamen
   sudut, slider otomatis, topik & detail berita, direktori desa.
   ============================================================ */
:root {
  /* kawung garis tipis untuk ornamen sudut (dipudarkan dengan mask) */
  --kawung-corner: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%2312643c' stroke-opacity='.26' stroke-width='1'%3E%3Cellipse cx='28' cy='15' rx='6.5' ry='11.5'/%3E%3Cellipse cx='28' cy='41' rx='6.5' ry='11.5'/%3E%3Cellipse cx='15' cy='28' rx='11.5' ry='6.5'/%3E%3Cellipse cx='41' cy='28' rx='11.5' ry='6.5'/%3E%3Ccircle cx='28' cy='28' r='2'/%3E%3Ccircle cx='0' cy='0' r='3'/%3E%3Ccircle cx='56' cy='0' r='3'/%3E%3Ccircle cx='0' cy='56' r='3'/%3E%3Ccircle cx='56' cy='56' r='3'/%3E%3C/g%3E%3C/svg%3E");
  --corner-r: clamp(260px, 38vw, 600px);
  /* jangkauan pudar ornamen dari sudut */
}

/* ---------- Navigasi: submenu bertingkat ---------- */
.dropdown__sub {
  position: relative;
}

.dropdown__chev {
  width: .95em;
  height: .95em;
  color: var(--muted);
  transform: rotate(-90deg);
  transition: transform .2s;
}

.dropdown--sub {
  top: -4px;
  left: 100%;
  min-width: 270px;
  border-radius: 0 var(--r) var(--r) var(--r);
}

@media (min-width: 1120px) {

  /* Dropdown muncul saat hover; klik & keyboard tetap berfungsi */
  .nav__item:hover>.dropdown {
    display: block;
  }

  .nav__item:hover>.nav__link {
    color: #fff;
    background: rgba(255, 255, 255, .07);
  }

  .nav__item:hover>.nav__link .chev,
  .nav__item:hover>.nav__caret .chev {
    transform: rotate(180deg);
  }

  .nav__item--split:hover>.nav__caret span {
    background: rgba(255, 255, 255, .12);
  }

  .dropdown__sub>.dropdown--sub {
    display: none;
  }

  .dropdown__sub:hover>.dropdown--sub,
  .dropdown__sub:focus-within>.dropdown--sub {
    display: block;
  }

  .dropdown__sub:hover>a,
  .dropdown__sub:focus-within>a {
    background: var(--green-50);
    color: var(--green-700);
  }

  .dropdown__sub:hover>a .dropdown__chev {
    color: var(--green-700);
  }
}

/* Layar desktop sempit: submenu dibuka ke kiri agar tidak keluar layar */
@media (min-width: 1120px) and (max-width: 1439.98px) {
  .dropdown--sub {
    left: auto;
    right: 100%;
    border-radius: var(--r) 0 var(--r) var(--r);
  }

  .dropdown__chev {
    transform: rotate(90deg);
  }

  .dropdown__sub>a {
    flex-direction: row-reverse;
    justify-content: flex-end;
  }
}

@media (max-width: 1119.98px) {

  /* Submenu bertingkat selalu terbuka, menjorok lebih dalam */
  .dropdown--sub {
    display: block;
    border-top: 1px solid var(--line);
  }

  .dropdown--sub a {
    margin-left: calc(var(--sp-4) + var(--sp-5));
    font-weight: 500;
    color: var(--muted);
  }

  .dropdown__sub>a {
    font-weight: 600;
    color: var(--ink);
  }

  .dropdown__chev {
    display: none;
  }

  /* Daftar Desa: panah tampil sama dengan menu dropdown lain */
  .nav__item--split>.nav__link {
    padding-right: 0;
  }

  .nav__caret {
    width: auto;
    min-width: 44px;
    padding: 0 var(--sp-1) 0 var(--sp-3);
    border-left: 0;
    justify-content: flex-end;
    color: var(--ink);
  }

  .nav__caret span,
  .nav__caret:hover span,
  .nav__item.is-open>.nav__caret span {
    width: auto;
    height: auto;
    background: none;
  }

  .nav__caret .chev {
    width: .9em;
    height: .9em;
  }

  .nav__item.is-open>.nav__caret {
    color: var(--green-700);
  }
}

/* ---------- Hero Beranda ---------- */
.home-hero {
  overflow: hidden;
  isolation: isolate;
}

.home-hero::before {
  /* motif kawung tipis di kiri bawah foto, memudar ke tengah */
  content: '';
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  width: 60%;
  height: clamp(500px, 64vw, 660px);
  background: var(--kawung-light) 0 0 / 56px 56px;
  pointer-events: none;
  opacity: .8;
  -webkit-mask-image: radial-gradient(circle at 0 100%, #000 0, rgba(0, 0, 0, .35) 45%, transparent 75%);
  mask-image: radial-gradient(circle at 0 100%, #000 0, rgba(0, 0, 0, .35) 45%, transparent 75%);
}

.home-hero__photo::after {
  background:
    linear-gradient(90deg, rgba(8, 44, 28, .95) 0%, rgba(8, 44, 28, .84) 34%, rgba(8, 44, 28, .36) 64%, rgba(8, 44, 28, .08) 100%),
    linear-gradient(0deg, rgba(8, 44, 28, .65) 0%, transparent 45%),
    radial-gradient(60% 80% at 85% 20%, rgba(242, 185, 52, .16), transparent 70%);
}

/* Label lokasi: teks kecil biasa dengan garis emas tipis */
.plate__eyebrow {
  gap: .75em;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: .01em;
  text-transform: none;
  color: #e9d9a8;
}

.plate__eyebrow::before {
  width: 28px;
  height: 2px;
  border-radius: 1px;
}

/* Aksi: satu tombol utama + tautan teks berpanah */
.plate__actions {
  align-items: center;
  gap: var(--sp-3) var(--sp-6);
  margin-top: var(--sp-6);
}

.plate__actions .btn--gold {
  padding-inline: 1.4rem;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  min-height: 44px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.hero-link span {
  padding-bottom: 2px;
  border-bottom: 2px solid rgba(242, 185, 52, .6);
  transition: border-color .15s;
}

.hero-link .icon {
  width: 1.1em;
  height: 1.1em;
  color: var(--gold-400);
  transition: transform .2s;
}

.hero-link:hover {
  color: #fff;
}

.hero-link:hover span {
  border-bottom-color: var(--gold-400);
}

.hero-link:hover .icon {
  transform: translateX(4px);
}

@media (prefers-reduced-motion: no-preference) {
  .home-hero__photo img {
    animation: hero-zoom 22s ease-out both;
  }

  .plate>* {
    animation: hero-up .7s cubic-bezier(.2, .7, .2, 1) both;
  }

  .plate> :nth-child(2) {
    animation-delay: .08s;
  }

  .plate> :nth-child(3) {
    animation-delay: .16s;
  }

  .plate> :nth-child(4) {
    animation-delay: .24s;
  }

  .plate> :nth-child(5),
  .plate> :nth-child(6) {
    animation-delay: .32s;
  }
}

@keyframes hero-zoom {
  from {
    transform: scale(1.1);
  }

  to {
    transform: scale(1);
  }
}

@keyframes hero-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  .home-hero::before {
    width: 100%;
    height: 560px;
  }

  .plate__actions .btn {
    flex: 0 0 auto;
  }
}

/* ---------- Jam saat ini (satu kali, di panel jadwal salat) ---------- */
.today__cellhead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-1) var(--sp-4);
}

.now-clock {
  font-size: 1.625rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.now-clock__tz {
  font-size: .5em;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--muted);
}

@media (max-width: 640px) {
  .now-clock {
    font-size: 1.375rem;
  }
}

/* ---------- Ornamen batik: dua sudut diagonal, memudar ke tengah ----------
   .corner-tlbr = kiri atas + kanan bawah, .corner-trbl = kanan atas + kiri bawah */
.corner-tlbr,
.corner-trbl {
  isolation: isolate;
}

.corner-tlbr::before,
.corner-trbl::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--kawung-corner) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(circle at var(--c1), #000 0, rgba(0, 0, 0, .4) calc(var(--corner-r) * .45), transparent var(--corner-r)),
    radial-gradient(circle at var(--c2), #000 0, rgba(0, 0, 0, .4) calc(var(--corner-r) * .45), transparent var(--corner-r));
  mask-image: radial-gradient(circle at var(--c1), #000 0, rgba(0, 0, 0, .4) calc(var(--corner-r) * .45), transparent var(--corner-r)),
    radial-gradient(circle at var(--c2), #000 0, rgba(0, 0, 0, .4) calc(var(--corner-r) * .45), transparent var(--corner-r));
  -webkit-mask-composite: source-over;
  mask-composite: add;
}

.corner-tlbr {
  --c1: 0% 0%;
  --c2: 100% 100%;
}

.corner-trbl {
  --c1: 100% 0%;
  --c2: 0% 100%;
}

@media (max-width: 640px) {
  :root {
    --corner-r: 240px;
  }
}

@media print {

  .corner-tlbr::before,
  .corner-trbl::before,
  .home-hero::before {
    display: none;
  }
}

/* ---------- Slider desa berjalan otomatis (.is-auto dipasang mojo.js) ----------
   Isi digandakan, jadi geser -50% = satu putaran penuh. */
/* --vs-w: lebar satu kartu = sepertiga lebar kontainer */
.vslider {
  overflow: hidden;
  --vs-w: calc((min(100vw, var(--max) + 2 * var(--gutter)) - 2 * var(--gutter)) / 3);
}

.vslider.is-auto .vslider__track {
  width: max-content;
  overflow: visible;
  scroll-snap-type: none;
  animation: vslide var(--vs-dur, 40s) linear infinite;
}

.vslider.is-auto .vslider__track>li {
  flex: 0 0 var(--vs-w);
  width: var(--vs-w);
}

.vslider.is-auto:hover .vslider__track,
.vslider.is-auto:focus-within .vslider__track {
  animation-play-state: paused;
}

.focus-villages.vslider__track {
  scrollbar-width: none;
}

.focus-villages.vslider__track::-webkit-scrollbar {
  display: none;
}

@keyframes vslide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 900px) {
  .vslider {
    --vs-w: calc((100vw - 2 * var(--gutter)) * .7);
  }
}

@media (max-width: 760px) {
  .vslider {
    --vs-w: calc((100vw - 2 * var(--gutter)) * .82);
  }
}

/* ---------- Berita: topik ---------- */
.topic-list li {
  border-top: 1px solid var(--line);
}

.topic-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.topic-list button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px var(--sp-3);
  width: 100%;
  padding: .65rem var(--sp-2);
  text-align: left;
  border-radius: var(--r);
  transition: background-color .15s;
}

.topic-list button:hover,
.topic-list button[aria-pressed="true"] {
  background: var(--green-soft);
}

.topic-list__name {
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--ink);
}

.topic-list button[aria-pressed="true"] .topic-list__name {
  color: var(--green-700);
}

.topic-list__count {
  grid-row: span 2;
  grid-column: 2;
  grid-row-start: 1;
  display: grid;
  place-items: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 .4rem;
  border-radius: 999px;
  background: var(--green-700);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 800;
}

.topic-list__date {
  font-size: var(--fs-xs);
  color: var(--muted);
}

/* ---------- Struktur organisasi desa (gambar) ---------- */
.org-img {
  margin-top: var(--sp-4);
  padding: var(--sp-3);
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--green-700);
}

.org-img__scroll {
  overflow-x: auto;
}

.org-img img {
  width: 100%;
  min-width: 560px;
  height: auto;
}

.org-img figcaption {
  margin-top: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--muted);
}

/* Hero: blok teks dinaikkan ±32px tanpa menggeser panel "Hari ini" */
.plate {
  padding-bottom: calc(clamp(1.75rem, 3vw, 2.75rem) + 2rem);
}

.home-hero__body {
  margin-top: calc(-1 * clamp(380px, 46vw, 470px) - 2rem);
}

@media (max-width: 640px) {
  .home-hero__body {
    margin-top: calc(-440px - 1.5rem);
  }

  .plate {
    padding-bottom: calc(clamp(1.75rem, 3vw, 2.75rem) + 1.5rem);
  }
}

/* Misi desa: kotak pendamping kotak visi */
.misi {
  padding: clamp(20px, 3vw, 36px);
  background: #fff;
  border: 1px solid var(--line);
  border-left: 6px solid var(--green-700);
}

.misi .numlist>li:first-child {
  border-top: 0;
}

/* ---------- Menu responsif: panel geser dari kanan ---------- */
.nav-drawer__head,
.nav-backdrop {
  display: none;
}

@media (max-width: 1119.98px) {

  .js .nav,
  .js .nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 210;
    width: min(360px, 86vw);
    max-height: none;
    height: 100dvh;
    margin: 0;
    padding: 0;
    background: #fff;
    box-shadow: -18px 0 40px rgba(8, 44, 28, .28);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .28s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .28s;
  }

  .js .nav.is-open {
    transform: none;
    visibility: visible;
    transition: transform .28s cubic-bezier(.2, .7, .2, 1), visibility 0s;
  }

  .nav-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    position: sticky;
    top: 0;
    z-index: 1;
    min-height: 64px;
    padding: 0 var(--sp-4) 0 var(--sp-5);
    background: var(--green-900);
    color: #fff;
    box-shadow: inset 0 -3px 0 var(--gold-400);
  }

  .nav-drawer__title {
    font-weight: 800;
    font-size: 1rem;
  }

  .nav-drawer__close {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 44px;
    padding: 0 .75rem;
    border: 1.5px solid rgba(255, 255, 255, .45);
    border-radius: var(--r-sm);
    color: #fff;
    font-size: var(--fs-sm);
    font-weight: 700;
  }

  .nav-drawer__close:hover {
    background: rgba(255, 255, 255, .1);
  }

  .nav-drawer__close .icon {
    width: 1.1em;
    height: 1.1em;
  }

  .js .nav .nav__list {
    padding: var(--sp-2) var(--sp-4) var(--sp-5);
  }

  /* latar gelap di belakang panel; dipasang mojo.js di dalam header */
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 205;
    background: rgba(8, 44, 28, .5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s, visibility 0s linear .28s;
  }

  .nav-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity .28s, visibility 0s;
  }

  html.nav-locked {
    overflow: hidden;
  }

  /* halaman tidak ikut tergulir saat menu terbuka */
}

@media (max-width: 1119.98px) and (prefers-reduced-motion: reduce) {

  .js .nav,
  .js .nav.is-open,
  .nav-backdrop,
  .nav-backdrop.is-open {
    transition: none;
  }
}

/* Peringkat penduduk di direktori desa: satu warna untuk semua desa */
.rank--plain .rank__bar {
  background: var(--green-700);
}

.rank--plain .rank__val {
  color: var(--ink);
}

/* Direktori desa: ringkasan di kanan kolom pencarian */
.dir-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp-1) var(--sp-4);
  margin-left: auto;
  padding-bottom: .55rem;
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

.dir-summary b {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

.dir-summary>span+span:not(.dir-summary__src)::before {
  content: '·';
  margin-right: var(--sp-4);
  color: var(--muted);
}

.dir-summary__src {
  font-size: var(--fs-xs);
  color: var(--muted);
}

@media (max-width: 640px) {
  .dir-summary {
    margin-left: 0;
    padding-bottom: 0;
  }
}

/* Navigasi: Daftar Desa (tautan + panah) bereaksi sebagai satu kesatuan saat hover */
@media (min-width: 1120px) {
  .nav__item--split {
    border-radius: 0;
    transition: background-color .2s ease;
  }

  .nav__item--split>.nav__link,
  .nav__item--split>.nav__caret {
    transition: color .2s ease;
  }

  .nav__item--split>.nav__caret .chev {
    transition: transform .2s ease;
  }

  .nav__item--split:hover,
  .nav__item--split.is-open,
  .nav__item--split:focus-within {
    background: rgba(255, 255, 255, .07);
  }

  .nav__item--split:hover>.nav__link,
  .nav__item--split:hover>.nav__caret,
  .nav__item--split.is-open>.nav__link,
  .nav__item--split.is-open>.nav__caret {
    color: #fff;
    background: none;
  }

  .nav__item--split>.nav__caret span,
  .nav__item--split>.nav__caret:hover span,
  .nav__item--split:hover>.nav__caret span,
  .nav__item--split.is-open>.nav__caret span {
    background: none;
  }
}

/* Detail berita */
.page-head__title--wide {
  max-width: 32ch;
}

.news-article__photo {
  margin-bottom: var(--sp-5);
}

.news-article__photo img {
  width: 100%;
  height: auto;
  background: var(--bg-alt);
}

/* foto berupa poster kolase, jadi tampil utuh */
.news-article__photo figcaption {
  margin-top: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--muted);
}

.news-article__photo[hidden] {
  display: none;
}

.news-article__body {
  font-size: 1.0625rem;
}

.village-nav span:empty+a {
  text-align: right;
  align-items: flex-end;
  border-left: 1px solid var(--line);
}

.aside-box .news-list li {
  padding-inline: 0;
  margin-inline: 0;
}