/* ==========================================================================
   SIKEDI — tampilan publik
   Satu keluarga huruf (Plus Jakarta Sans), hijau hutan Landak sebagai warna
   utama, merah logo hanya untuk penanda "hari ini".
   ========================================================================== */

:root {
  --paper: #f5f6f3;
  --surface: #ffffff;
  --ink: #17261f;
  --ink-2: #33433b;
  --muted: #5a6a62;
  --line: #dce1dc;
  --line-soft: #e9ece8;
  --forest: #1e5a46;
  --forest-deep: #143f31;
  --forest-tint: #e6efe9;
  --signal: #c21d2e;
  --signal-tint: #fbeaec;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-lg: 16px;
  --r-md: 10px;
  --r-sm: 6px;

  --wrap: 1180px;
  --gutter: 24px;

  --bs-body-font-family: var(--font);
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--paper);
  --bs-border-color: var(--line);
  --bs-link-color: var(--forest);
  --bs-link-color-rgb: 30, 90, 70;
  --bs-link-hover-color: var(--forest-deep);
  --bs-link-hover-color-rgb: 20, 63, 49;
  --bs-secondary-color: var(--muted);
  --bs-emphasis-color: var(--ink);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  font-family: var(--font);
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

p { color: var(--ink-2); }

a {
  color: var(--forest);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--forest-deep); }

:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 2px;
  border-radius: 4px;
}

.num {
  font-variant-numeric: tabular-nums;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (max-width: 575px) {
  :root { --gutter: 16px; }
}

/* ---------- Tombol ---------- */

.btn {
  --bs-btn-font-family: var(--font);
  --bs-btn-font-weight: 600;
  --bs-btn-font-size: 15px;
  --bs-btn-padding-x: 18px;
  --bs-btn-padding-y: 10px;
  --bs-btn-border-radius: var(--r-sm);
  --bs-btn-focus-box-shadow: 0 0 0 3px rgba(30, 90, 70, .25);
  letter-spacing: -0.005em;
}

.btn-sm {
  --bs-btn-font-size: 14px;
  --bs-btn-padding-x: 12px;
  --bs-btn-padding-y: 6px;
}

.btn-primary,
.btn-danger {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--forest);
  --bs-btn-border-color: var(--forest);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--forest-deep);
  --bs-btn-hover-border-color: var(--forest-deep);
  --bs-btn-active-bg: var(--forest-deep);
  --bs-btn-active-border-color: var(--forest-deep);
  --bs-btn-disabled-bg: var(--forest);
  --bs-btn-disabled-border-color: var(--forest);
}

.btn-quiet,
.btn-outline-secondary,
.btn-outline-danger,
.btn-outline-primary,
.btn-outline-success {
  --bs-btn-color: var(--ink);
  --bs-btn-bg: var(--surface);
  --bs-btn-border-color: var(--line);
  --bs-btn-hover-color: var(--ink);
  --bs-btn-hover-bg: var(--paper);
  --bs-btn-hover-border-color: #c4cbc5;
  --bs-btn-active-color: var(--ink);
  --bs-btn-active-bg: var(--line-soft);
  --bs-btn-active-border-color: #c4cbc5;
}

.btn-link-plain {
  padding: 0;
  border: 0;
  background: none;
  color: var(--forest);
  font-weight: 600;
  text-decoration: none;
}

.btn-link-plain:hover { text-decoration: underline; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: rgba(245, 246, 243, .92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-name {
  display: block;
  font-weight: 750;
  font-size: 17px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.brand-sub {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.2;
}

.site-nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
  background: var(--line-soft);
}

.site-nav a[aria-current="page"] {
  color: var(--forest);
  font-weight: 650;
  box-shadow: inset 0 -2px 0 var(--forest);
  border-radius: 0;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

@media (max-width: 991px) {
  .site-header .wrap { gap: 12px; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    order: 3;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open { display: block; }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 16px;
  }

  .site-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
  }

  .site-nav a[aria-current="page"] { box-shadow: none; }
  .header-cta { order: 2; }
}

@media (max-width: 420px) {
  .brand-sub { display: none; }
}

/* ---------- Kepala halaman (sub-halaman) ---------- */

.page-head {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--line);
}

.page-head .back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.page-head .back:hover { color: var(--ink); }

.page-head h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  max-width: 22ch;
}

.page-head .lead {
  margin: 12px 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 17px;
}

.page-head .context {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.page-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
}

.page-body {
  padding: 40px 0 80px;
}

/* ---------- Bagian ---------- */

.section-block {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.section-block > .wrap > header {
  max-width: 640px;
  margin-bottom: 32px;
}

.section-block h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-block header p {
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 48px;
}

@media (max-width: 991px) {
  .split { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Hero beranda ---------- */

.hero {
  padding: 64px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
  align-items: start;
}

.hero h1 {
  margin: 8px 0 20px;
  font-size: clamp(36px, 5.2vw, 60px);
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 13ch;
}

.hero .intro {
  max-width: 46ch;
  margin: 0 0 28px;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.6;
}

.hero .place {
  margin: 0;
  color: var(--forest);
  font-size: 15px;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 991px) {
  .hero { padding: 40px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Hero dengan ilustrasi (assets/img/hero-sikedi.webp, 1774x887). Sekitar 24% sisi kiri gambar
   kosong (ruang teks pada desain aslinya); bagian itu dipotong agar ilustrasi tidak tertimpa teks. */
.hero-art {
  padding: 48px 0;
  background: linear-gradient(180deg, #eef8f5 0%, #e3f3ee 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-art-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px;
  align-items: center;
}

.hero-copy {
  max-width: 520px;
}

.hero-figure {
  margin: 0 calc(var(--gutter) * -1) 0 0;
}

.hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1348 / 887;
  object-fit: cover;
  object-position: 100% 50%;
  /* semua tepi memudar ke latar agar gambar menyatu dengan hero */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 94%, transparent 100%), linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 94%, transparent 100%), linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-composite: intersect;
}

.hero-agenda {
  padding: 48px 0 8px;
}

.hero-agenda .figures {
  margin-top: 40px;
}

@media (max-width: 991px) {
  .hero-art {
    padding: 40px 0 0;
  }

  .hero-art-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-figure {
    margin: 0 calc(var(--gutter) * -1);
  }

  .hero-figure img {
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%);
    -webkit-mask-composite: source-over;
    mask-image: linear-gradient(180deg, transparent 0, #000 14%);
    mask-composite: add;
  }

  .hero-agenda {
    padding-top: 32px;
  }
}

/* ---------- Papan agenda ---------- */

.agenda {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.agenda-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}

.agenda-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.agenda-head a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.agenda-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.agenda-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line-soft);
}

.agenda-item:last-child { border-bottom: 0; }

.date-block {
  text-align: center;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  padding-top: 2px;
}

.date-block .d {
  display: block;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.date-block .m {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.agenda-item.is-today .date-block .d { color: var(--signal); }

.agenda-item h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.005em;
}

.agenda-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.agenda-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.agenda-org {
  margin: 0 0 6px;
  color: var(--forest);
  font-size: 13.5px;
  font-weight: 600;
}

.tag-today {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--signal-tint);
  color: var(--signal);
  font-size: 12.5px;
  font-weight: 650;
  vertical-align: 2px;
}

.tag-today::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.agenda-empty {
  padding: 40px 24px;
  color: var(--muted);
}

.agenda-empty strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

/* ---------- Angka ---------- */

.figures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.figures li {
  padding: 24px 24px 24px 0;
}

.figures li + li {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.figures .value {
  display: block;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.figures .label {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14.5px;
}

@media (max-width: 767px) {
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures li { padding: 18px 16px 18px 0; }
  .figures li + li { padding-left: 16px; }
  .figures li:nth-child(3) { padding-left: 0; border-left: 0; }
  .figures li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .figures .value { font-size: 28px; }
}

/* ---------- Langkah (urutan) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}

.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 12px;
  color: var(--forest);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.steps h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 650;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

@media (max-width: 767px) {
  .steps { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Panel & tabel ---------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.panel-pad { padding: 24px; }

@media (max-width: 575px) {
  .panel-pad { padding: 16px; }
}

.tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 20px;
  padding: 4px;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  background: var(--line-soft);
  border-radius: var(--r-md);
  list-style: none;
}

.tabs button {
  padding: 8px 16px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--muted);
  font: 600 14.5px/1.2 var(--font);
  white-space: nowrap;
}

.tabs button:hover { color: var(--ink); }

.tabs button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--line);
}

.table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: transparent;
  --bs-table-border-color: var(--line-soft);
  --bs-table-color: var(--ink-2);
  margin-bottom: 0;
  font-size: 15px;
}

.table > thead th {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  border-bottom: 1px solid var(--line) !important;
  white-space: nowrap;
}

.table > :not(caption) > * > * {
  padding: 12px 12px;
  vertical-align: middle;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-bg-type: transparent;
}

.table > tbody > tr:hover > * { background: #fafbf9; }

/* DataTables */
div.dt-container {
  font-size: 14.5px;
  color: var(--muted);
}

div.dt-container .dt-length,
div.dt-container .dt-search,
div.dataTables_wrapper .dataTables_length,
div.dataTables_wrapper .dataTables_filter {
  margin-bottom: 16px;
}

div.dt-container .dt-input,
div.dataTables_wrapper input,
div.dataTables_wrapper select {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

div.dt-container .dt-input:focus,
div.dataTables_wrapper input:focus {
  outline: 2px solid var(--forest);
  outline-offset: 0;
  border-color: var(--forest);
}

div.dt-container .dt-info { padding-top: 16px; }

div.dt-container .dt-paging { padding-top: 12px; }

div.dt-container .dt-paging .dt-paging-button,
.page-link {
  min-width: 36px;
  margin: 0 2px;
  padding: 6px 10px !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--r-sm) !important;
  background: var(--surface) !important;
  color: var(--ink) !important;
  font-weight: 500;
}

div.dt-container .dt-paging .dt-paging-button.current,
.page-item.active .page-link {
  border-color: var(--forest) !important;
  background: var(--forest) !important;
  color: #fff !important;
}

div.dt-container .dt-paging .dt-paging-button.disabled { opacity: .45; }

div.dt-container table.dataTable thead > tr > th,
div.dt-container table.dataTable > tbody > tr > td {
  border-color: var(--line-soft);
}

div.dt-processing > div:last-child > div { background: var(--forest); }

/* ---------- Formulir ---------- */

.form-control,
.form-select {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background-color: var(--surface);
  color: var(--ink);
  font-size: 15px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(30, 90, 70, .18);
}

.form-label {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
}

.ts-control {
  padding: 9px 12px !important;
  border-color: var(--line) !important;
  border-radius: var(--r-sm) !important;
  font-size: 15px !important;
}

.focus .ts-control {
  border-color: var(--forest) !important;
  box-shadow: 0 0 0 3px rgba(30, 90, 70, .18) !important;
}

/* ---------- Pertanyaan umum ---------- */

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "\F64D"; /* bi-plus-lg */
  flex-shrink: 0;
  font-family: "bootstrap-icons";
  color: var(--muted);
  font-size: 16px;
  transition: transform .2s ease;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq .answer {
  max-width: 64ch;
  padding: 0 0 20px;
  color: var(--ink-2);
}

.faq .answer p { margin: 0 0 8px; }
.faq .answer ul { margin: 0; padding-left: 20px; }
.faq .answer li { margin-bottom: 4px; }

/* ---------- Direktori ---------- */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 24px;
}

.search {
  position: relative;
  flex: 1 1 280px;
  max-width: 420px;
}

.search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.search input { padding-left: 38px; }

.segmented {
  display: inline-flex;
  padding: 3px;
  background: var(--line-soft);
  border-radius: var(--r-md);
}

.segmented a {
  padding: 7px 14px;
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
}

.segmented a:hover { color: var(--ink); }

.segmented a[aria-current="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--line);
}

.result-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 14.5px;
}

.dir-table {
  width: 100%;
  border-collapse: collapse;
}

.dir-table th {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.dir-table td {
  padding: 16px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}

.dir-table tr:last-child td { border-bottom: 0; }

.dir-table .n {
  width: 1%;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

.dir-table th.n { text-align: right; }

.dir-table .n a {
  color: var(--ink);
  text-decoration: none;
}

.dir-table .n a:hover { color: var(--forest); text-decoration: underline; }

.dir-table .n.zero,
.dir-table .n.zero a { color: #a3aea8; font-weight: 500; }

.dir-name {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.dir-name:hover { color: var(--forest); text-decoration: underline; }

.dir-code {
  display: block;
  color: var(--muted);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}

.dir-row-link { position: relative; }

@media (max-width: 767px) {
  .dir-table thead { display: none; }
  .dir-table, .dir-table tbody, .dir-table tr, .dir-table td { display: block; width: 100%; }
  .dir-table tr {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 16px;
    border-bottom: 1px solid var(--line-soft);
  }
  .dir-table tr:last-child { border-bottom: 0; }
  .dir-table td { padding: 0; border: 0; }
  .dir-table td:first-child { grid-column: 1 / -1; margin-bottom: 12px; }
  .dir-table .n { width: auto; text-align: left; }
  .dir-table .n::after {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 500;
  }
}

/* Ringkasan OPD */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.stat-strip > * {
  display: block;
  padding: 20px 24px;
  color: inherit;
  text-decoration: none;
}

.stat-strip > * + * { border-left: 1px solid var(--line); }

.stat-strip a:hover { background: #fafbf9; }

.stat-strip .value {
  display: block;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: var(--ink);
}

.stat-strip .label {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14.5px;
}

.stat-strip a .label { color: var(--forest); font-weight: 600; }

@media (max-width: 767px) {
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-strip > :nth-child(3) { border-left: 0; }
  .stat-strip > :nth-child(n+3) { border-top: 1px solid var(--line); }
}

.contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.contact-line span,
.contact-line a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Daftar baris (kegiatan, buku tamu, form) */
.rows {
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.rows > li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line-soft);
}

.rows > li:last-child { border-bottom: 0; }

.rows.no-date > li { grid-template-columns: minmax(0, 1fr) auto; }

.rows h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
}

.rows .desc {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 70ch;
}

.rows .aside {
  color: var(--muted);
  font-size: 14px;
  text-align: right;
  white-space: nowrap;
}

.rows .aside strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.rows li.is-past .date-block .d { color: var(--muted); }
.rows li.is-today .date-block .d { color: var(--signal); }
.rows li[role="button"]:hover { background: #fafbf9; }

@media (max-width: 575px) {
  .rows > li { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .rows.no-date > li { grid-template-columns: minmax(0, 1fr); }
  .rows .aside { grid-column: 2; text-align: left; }
  .rows.no-date .aside { grid-column: 1; }
  .rows .aside strong { display: inline; font-size: 15px; margin-right: 4px; }
  .date-block .d { font-size: 24px; }
}

.status {
  display: inline-block;
  margin-left: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  vertical-align: 1px;
}

.subhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 48px 0 16px;
}

.subhead h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.subhead a {
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
}

.empty {
  padding: 32px 24px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
  color: var(--muted);
}

.empty strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-weight: 600;
}

.pager-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 14.5px;
}

.pager-row .pagination { margin: 0; }

/* ---------- Kalender ---------- */

.cal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

@media (max-width: 991px) {
  .cal-layout { grid-template-columns: 1fr; }
}

.cal-side > * + * { margin-top: 28px; }

.cal-side h2 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
}

.month-summary {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.month-summary li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-2);
}

.month-summary strong {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.month-summary .today strong { color: var(--signal); }

.legend {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14.5px;
  color: var(--ink-2);
}

.legend li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 0;
}

.legend i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.fc {
  --fc-border-color: var(--line-soft);
  --fc-page-bg-color: var(--surface);
  --fc-neutral-bg-color: var(--paper);
  --fc-today-bg-color: #f3f7f4;
  --fc-event-bg-color: var(--forest);
  --fc-event-border-color: var(--forest);
  --fc-list-event-hover-bg-color: var(--paper);
  font-size: 14.5px;
}

.fc .fc-toolbar-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.fc .fc-button,
.fc .fc-button-primary {
  padding: 6px 12px;
  border: 1px solid var(--line) !important;
  border-radius: var(--r-sm);
  background: var(--surface) !important;
  color: var(--ink) !important;
  font-size: 14px;
  font-weight: 600;
  box-shadow: none !important;
}

.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
  background: var(--ink) !important;
  border-color: var(--ink) !important;
  color: #fff !important;
}

.fc .fc-button:disabled { opacity: .45; }

.fc .fc-col-header-cell-cushion {
  padding: 8px 4px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
}

.fc .fc-daygrid-day-number {
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

.fc .fc-day-today .fc-daygrid-day-number {
  color: var(--signal);
  font-weight: 700;
}

.fc .fc-daygrid-event {
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 13px;
}

.fc .fc-daygrid-dot-event .fc-event-title { font-weight: 600; }
.fc .fc-daygrid-event-dot { border-color: var(--forest); }
.fc a { color: var(--ink); }

/* ---------- Modal ---------- */

.modal-content {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 64px rgba(23, 38, 31, .18);
}

.event-sheet {
  padding: 28px;
}

.event-sheet .org {
  margin: 0 0 6px;
  color: var(--forest);
  font-size: 14px;
  font-weight: 600;
}

.event-sheet h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.event-sheet dl {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px 16px;
  margin: 24px 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.event-sheet dt {
  color: var(--muted);
  font-weight: 500;
}

.event-sheet dd { margin: 0; color: var(--ink); }

/* ---------- Tentang & kontak ---------- */

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list i {
  display: block;
  margin-bottom: 12px;
  color: var(--forest);
  font-size: 22px;
}

.feature-list h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 650;
}

.feature-list p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

@media (max-width: 991px) {
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575px) {
  .feature-list { grid-template-columns: 1fr; }
}

.contact-info {
  margin: 0;
}

.contact-info dt {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.contact-info dd {
  margin: 2px 0 18px;
  color: var(--ink);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 56px 0 32px;
  background: var(--forest-deep);
  color: #c9d6cf;
  font-size: 15px;
}

.site-footer a { color: #fff; }

.site-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr);
  gap: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #fff;
  font-weight: 750;
  font-size: 18px;
}

.footer-brand img { width: 32px; height: 32px; object-fit: contain; }

.site-footer p { margin: 0 0 6px; color: #c9d6cf; }

.pse-badge {
  display: block;
  max-width: 320px;
  border-radius: var(--r-md);
  background: #fff;
}

.visits {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 16px;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.visits dt { font-weight: 400; color: #c9d6cf; }
.visits dd { margin: 0; color: #fff; font-weight: 600; text-align: right; }

.online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  color: #9fd3b7;
  font-size: 13px;
  font-weight: 600;
}

.online::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4cc38a;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: #9fb3a9;
  font-size: 14px;
}

@media (max-width: 991px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 575px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Lain-lain ---------- */

.alert {
  border-radius: var(--r-md);
  font-size: 15px;
}

.badge { font-weight: 600; }

/* Netralkan atribut animasi scroll lama bila masih tersisa */
[data-aos] {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
  }
}

@media (max-width: 575px) {
  .agenda-head { padding: 16px; }
  .agenda-item { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .agenda-item .date-block .d { font-size: 26px; }
}

.fc .fc-list-day-cushion a,
.fc .fc-list-event-title a { text-decoration: none; }
.fc .fc-list-day-cushion { background: var(--paper); font-size: 14px; }

@media (max-width: 575px) {
  .fc .fc-header-toolbar { flex-wrap: wrap; gap: 12px; }
  .fc .fc-header-toolbar .fc-toolbar-chunk:nth-child(2) { order: -1; flex-basis: 100%; }
  .fc .fc-toolbar-title { font-size: 18px; }
}
