﻿:root {
  --brand-50: #eef9f0;
  --brand-100: #d7f0dd;
  --brand-200: #b2e1bf;
  --brand-300: #7fcc95;
  --brand-400: #48b26f;
  --brand-500: #1f8d4b;
  --brand-600: #18713c;
  --brand-700: #145a31;
  --brand-800: #12492a;
  --brand-900: #103d25;
  --brand-950: #0a2918;
}

* {
  scroll-behavior: smooth;
  box-sizing: border-box;
}

body {
  background: #f5f7f3;
}

body.home-page {
  background: #f4f8f4;
}

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

h1,
h2,
h3,
.font-display {
  font-family: "Lora", serif;
  letter-spacing: -0.022em;
}

.font-display {
  line-height: 1.08;
}

.hero-pattern {
  background-image:
    linear-gradient(90deg, rgba(10, 41, 24, 0.78) 0%, rgba(16, 61, 37, 0.64) 36%, rgba(16, 61, 37, 0.44) 68%, rgba(16, 61, 37, 0.22) 100%),
    url("../images/hero-pkk-group.webp");
  background-position: center;
  background-size: cover;
}

.section-title {
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  width: 4.25rem;
  height: 3px;
  border-radius: 999px;
  background: var(--brand-500);
}

.scroll-header {
  transition:
    background-color 0.45s ease,
    box-shadow 0.45s ease,
    border-color 0.45s ease,
    backdrop-filter 0.45s ease;
}

.scroll-header .header-topbar {
  background: rgba(10, 41, 24, 0.58);
  transition: background-color 0.45s ease;
}

.scroll-header .nav-shell,
.scroll-header .brand-primary,
.scroll-header .brand-secondary,
.scroll-header .nav-link,
.scroll-header .scroll-menu-btn {
  transition:
    color 0.45s ease,
    border-color 0.45s ease,
    background-color 0.45s ease;
}

.scroll-header .brand-primary,
.scroll-header .nav-link,
.scroll-header .scroll-menu-btn,
.scroll-header .brand-secondary {
  color: #ffffff;
}

.scroll-header .brand-secondary {
  color: rgba(255, 255, 255, 0.78);
}

.brand-mark {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.brand-mark img {
  height: 2.75rem;
  width: 2.75rem;
  object-fit: contain;
}

.scroll-header .brand-mark {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.scroll-header .scroll-menu-btn {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.scroll-menu-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 999px;
  flex-shrink: 0;
}

.scroll-menu-btn span {
  position: relative;
  display: block;
  width: 1.125rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  font-size: 0;
  transition:
    background-color 0.28s ease,
    transform 0.28s ease;
}

.scroll-menu-btn span::before,
.scroll-menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.28s ease;
}

.scroll-menu-btn span::before {
  transform: translateY(-0.38rem);
}

.scroll-menu-btn span::after {
  transform: translateY(0.38rem);
}

.scroll-menu-btn[aria-expanded="true"] span {
  background: transparent;
}

.scroll-menu-btn[aria-expanded="true"] span::before {
  transform: rotate(45deg);
}

.scroll-menu-btn[aria-expanded="true"] span::after {
  transform: rotate(-45deg);
}

.scroll-menu-btn:focus-visible {
  outline: 3px solid rgba(31, 141, 75, 0.22);
  outline-offset: 3px;
}

.scroll-header .active-link::after {
  background: rgba(255, 255, 255, 0.92);
}

.scroll-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(196, 228, 205, 0.9);
  box-shadow: 0 8px 24px rgba(16, 61, 37, 0.08);
  backdrop-filter: blur(16px);
}

.scroll-header.is-scrolled .header-topbar {
  background: #145a31;
}

.scroll-header.is-scrolled .brand-mark {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.scroll-header.is-scrolled .brand-primary,
.scroll-header.is-scrolled .nav-link,
.scroll-header.is-scrolled .scroll-menu-btn {
  color: #145a31;
}

.scroll-header.is-scrolled .brand-secondary {
  color: #64748b;
}

.scroll-header.is-scrolled .scroll-menu-btn {
  border-color: #d7f0dd;
  background: rgba(255, 255, 255, 0.75);
}

.scroll-header.is-scrolled .active-link::after {
  background: var(--brand-500);
}

.nav-link {
  color: #145a31;
  font-weight: 600;
  position: relative;
}

.nav-link:hover {
  color: #0f3d25;
}

.active-link {
  color: #0f3d25;
}

.active-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.42rem;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: var(--brand-500);
}

.nav-dropdown-group {
  position: relative;
  margin-block: -0.9rem;
  padding-block: 0.9rem;
}

.nav-dropdown-panel {
  position: absolute;
  left: 0;
  top: calc(100% - 0.18rem);
  z-index: 40;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

.nav-dropdown-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: -0.95rem;
  width: 100%;
  height: 0.95rem;
}

.nav-dropdown-card {
  border-radius: 1rem;
  border: 1px solid #d7eadc;
  background: rgba(255, 255, 255, 0.98);
  padding: 0.5rem;
  box-shadow: 0 10px 24px rgba(16, 61, 37, 0.1);
  backdrop-filter: blur(16px);
}

.nav-dropdown-group:hover .nav-dropdown-panel,
.nav-dropdown-group:focus-within .nav-dropdown-panel {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.42rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.glass-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(214, 233, 217, 0.92);
  box-shadow: 0 8px 22px rgba(16, 61, 37, 0.06);
  backdrop-filter: blur(4px);
}

.program-card,
.official-card,
.news-card,
.download-card,
.metric-card,
.kpi-card,
.focus-card {
  border: 1px solid #d6e9d9;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(16, 61, 37, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  min-width: 0;
}

.program-card:hover,
.official-card:hover,
.news-card:hover,
.download-card:hover,
.metric-card:hover,
.kpi-card:hover,
.focus-card:hover {
  transform: translateY(-2px);
  border-color: #99d4ab;
  box-shadow: 0 12px 26px rgba(20, 90, 49, 0.1);
}

.news-card-link {
  color: inherit;
  text-decoration: none;
}

.news-card-link:focus-visible {
  outline: 3px solid rgba(31, 141, 75, 0.28);
  outline-offset: 4px;
}

.news-card-image {
  display: block;
  width: 100%;
  height: 12.5rem;
  object-fit: cover;
  background: linear-gradient(180deg, #edf8f0 0%, #d7f0dd 100%);
  transition: transform 0.35s ease;
}

.news-card-link:hover .news-card-image,
.news-card-link:focus-visible .news-card-image {
  transform: scale(1.03);
}

.page-kicker {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-600);
}

.hero-surface {
  width: min(100%, 62rem);
  padding-right: 1rem;
}

.hero-status-line {
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(236, 253, 245, 0.82);
}

.hero-meta-grid {
  display: grid;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 1.5rem;
}

.hero-meta-item {
  max-width: 20rem;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  padding-left: 1rem;
}

.hero-meta-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(220, 252, 231, 0.88);
}

.hero-meta-value {
  margin-top: 0.45rem;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.hero-meta-note {
  margin-top: 0.35rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(236, 253, 245, 0.84);
}

.metric-card {
  border-radius: 1.35rem;
  padding: 1.2rem;
}

.metric-value,
[data-countup] {
  font-variant-numeric: tabular-nums;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #e8f8ed;
  color: #145a31;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.62rem;
}

.resource-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.9rem;
  border: 1px solid #bddcc7;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #145a31;
  transition: all 0.2s ease;
}

.resource-link:hover {
  border-color: #48b26f;
  background: #eef9f0;
}

.news-card img,
.gallery-card img,
.map-visual,
.leader-portrait img {
  width: 100%;
  object-fit: cover;
}

.gallery-card img {
  height: 200px;
}

.map-frame {
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid #d6e9d9;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(16, 61, 37, 0.05);
}

.map-visual {
  max-height: 32rem;
  object-fit: contain;
  background: #ffffff;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #d8eadc;
  border-radius: 1rem;
  max-width: 100%;
}

.table-wrap table {
  min-width: 680px;
}

.data-table th,
.data-table td {
  vertical-align: top;
}

.boundary-list li,
.priority-list li,
.mini-list li {
  position: relative;
  padding-left: 1rem;
}

.boundary-list li::before,
.priority-list li::before,
.mini-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  height: 0.38rem;
  width: 0.38rem;
  border-radius: 999px;
  background: var(--brand-500);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(185, 234, 203, 0.28);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.55rem 0.9rem;
  color: #ecfdf3;
  font-size: 0.85rem;
  font-weight: 700;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(185, 234, 203, 0.56);
  background: rgba(255, 255, 255, 0.12);
}

.footer-link {
  color: #d9f8e4;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #ffffff;
}

.input-field {
  width: 100%;
  border: 1px solid #bfdcc8;
  border-radius: 0.8rem;
  padding: 0.75rem 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-field:focus {
  border-color: #1f8d4b;
  box-shadow: 0 0 0 4px rgba(31, 141, 75, 0.15);
}

.infocard {
  border: 1px solid rgba(195, 228, 206, 0.85);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(16, 61, 37, 0.05);
  min-width: 0;
}

.chart-column {
  animation: float-up 0.7s ease both;
  animation-delay: var(--delay, 0ms);
}

.chart-card {
  border: 1px solid #d6e9d9;
  border-radius: 1.4rem;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(16, 61, 37, 0.05);
  min-width: 0;
}

.mini-chart-bar {
  background: linear-gradient(180deg, #48b26f, #18713c);
  border-radius: 12px 12px 0 0;
  transform-origin: bottom;
  animation: chart-grow 0.9s cubic-bezier(0.2, 1, 0.22, 1) both;
  animation-delay: var(--delay, 0ms);
}

.chart-value {
  color: #145a31;
  font-weight: 800;
}

.performance-track {
  position: relative;
  height: 0.55rem;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, #e5f5ea, #f1faf4);
}

.performance-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1f8d4b, #7fcc95);
  transform-origin: left;
  animation: fill-progress 1s cubic-bezier(0.2, 1, 0.22, 1) both;
  animation-delay: var(--delay, 0ms);
}

.filter-btn {
  border: 1px solid #cce6d4;
  background: #ffffff;
  color: #166534;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.87rem;
  transition: all 0.2s ease;
}

.filter-btn.active {
  background: #1f8d4b;
  color: #ffffff;
  border-color: #1f8d4b;
}

.org-tree {
  position: relative;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.org-tree-grid {
  min-width: 760px;
}

.org-tree-line {
  background: linear-gradient(180deg, #b9e7c6, #4ab46f);
}

.org-node {
  position: relative;
  border-radius: 1.4rem;
  border: 1px solid #d6eadb;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(16, 61, 37, 0.06);
}

.org-avatar {
  display: grid;
  height: 4rem;
  width: 4rem;
  place-items: center;
  border-radius: 999px;
}

.org-avatar svg {
  height: 2rem;
  width: 2rem;
}

.org-avatar.female {
  background: linear-gradient(180deg, #fce7f3, #f9a8d4);
  color: #9d174d;
}

.org-avatar.male {
  background: linear-gradient(180deg, #dbeafe, #93c5fd);
  color: #1d4ed8;
}

.org-node[data-gender="female"] .org-role {
  color: #9d174d;
}

.org-node[data-gender="male"] .org-role {
  color: #1d4ed8;
}

.leader-portrait {
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid #d6e9d9;
  background: #f5f8f5;
}

.leader-portrait img {
  height: 100%;
  object-fit: contain;
}

.leader-portrait--feature {
  display: grid;
  align-items: center;
  gap: 1.5rem;
  background:
    radial-gradient(circle at top, rgba(31, 141, 75, 0.12), transparent 54%),
    linear-gradient(180deg, #f7fbf8 0%, #eef6f0 100%);
}

.leader-portrait-copy {
  max-width: 30rem;
}

.leadership-aside {
  display: grid;
  gap: 1rem;
}

.leadership-aside--paired .leader-portrait {
  height: 100%;
}

.leadership-aside--paired .leader-portrait-media,
.leadership-aside--paired .leader-portrait-media--compact {
  min-height: 18rem;
}

.leadership-aside--paired .leader-photo--featured,
.leadership-aside--paired .leader-photo--compact {
  max-height: 18rem;
}

.leader-portrait-media {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 18rem;
}

.leader-photo {
  height: auto;
  max-height: 25rem;
  width: auto;
  opacity: 1;
  transform: none;
  transition:
    opacity 0.3s ease,
    transform 0.25s ease;
}

.leader-photo.is-ready {
  opacity: 1;
  transform: none;
}

.chroma-key-image {
  opacity: 0;
  transform: translateY(10px);
}

.leader-photo--featured {
  max-height: 22rem;
}

.leader-portrait--compact {
  display: grid;
  align-items: center;
  gap: 1.25rem;
  background:
    radial-gradient(circle at top right, rgba(20, 90, 49, 0.12), transparent 52%),
    linear-gradient(180deg, #ffffff 0%, #f4faf5 100%);
}

.leader-portrait-media--compact {
  min-height: 14rem;
}

.leader-photo--compact {
  max-height: 17rem;
}

.official-diagram-frame {
  overflow: hidden;
  border-radius: 1.75rem;
  border: 1px solid #d6e9d9;
  background: #ffffff;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(16, 61, 37, 0.05);
}

.official-diagram-image {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid #edf5ef;
  background: #ffffff;
}

.legend-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #355843;
}

.legend-line {
  width: 5rem;
  height: 0;
  border-top-width: 2px;
  border-top-color: #145a31;
}

.legend-line.tugas {
  border-top-style: solid;
}

.legend-line.koordinasi {
  border-top-style: dotted;
}

.legend-line.konsultasi {
  border-top-style: dashed;
}

.avatar-card-grid {
  display: grid;
  gap: 1rem;
}

.lingkungan-card {
  display: block;
  border: 1px solid #d6e9d9;
  border-radius: 1.25rem;
  background: #ffffff;
  padding: 1rem;
  box-shadow: 0 8px 22px rgba(16, 61, 37, 0.05);
}

.lingkungan-card-name {
  font-size: 1rem;
  font-weight: 800;
  color: #103d25;
}

.lingkungan-card-meta {
  margin-top: 0.18rem;
  font-size: 0.86rem;
  color: #64748b;
}

.flow-stage {
  overflow: hidden;
  border: 1px solid #d6e9d9;
  border-radius: 1.75rem;
  background: linear-gradient(180deg, #ffffff, #f5faf6);
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(16, 61, 37, 0.05);
}

.flow-row,
.flow-pokja-grid {
  display: grid;
  gap: 1rem;
}

.flow-node {
  border: 1px solid #d6e9d9;
  border-radius: 1.25rem;
  background: #ffffff;
  padding: 1rem 1.1rem;
  box-shadow: 0 8px 20px rgba(16, 61, 37, 0.05);
  opacity: 0;
  transform: translateY(16px);
  animation: diagram-pop 0.65s ease forwards;
  animation-delay: var(--delay, 0ms);
}

.flow-node-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #18713c;
}

.flow-node-title {
  margin-top: 0.5rem;
  font-size: 1.08rem;
  font-weight: 800;
  color: #103d25;
}

.flow-node-note {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #64748b;
}

.flow-line {
  height: 0;
  transform-origin: left;
  animation: diagram-draw 0.75s ease forwards;
  animation-delay: var(--delay, 0ms);
}

.flow-line.tugas {
  border-top: 2px solid #145a31;
}

.flow-line.koordinasi {
  border-top: 2px dotted #145a31;
}

.flow-line.konsultasi {
  border-top: 2px dashed #145a31;
}

.doc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.6rem;
  border-radius: 999px;
  background: #103d25;
  color: #ffffff;
  padding: 0.45rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.empty-note {
  border: 1px dashed #b9ddc5;
  border-radius: 1rem;
  background: #f6fbf7;
}

@keyframes chart-grow {
  from {
    opacity: 0.25;
    transform: scaleY(0.06);
  }

  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes fill-progress {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes diagram-pop {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes diagram-draw {
  from {
    opacity: 0.2;
    transform: scaleX(0);
  }

  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@media (max-width: 1023px) {
  .hero-surface {
    padding-right: 0;
  }

  .hero-meta-grid {
    grid-template-columns: 1fr;
  }

  .scroll-header:not(.is-scrolled) {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(196, 228, 205, 0.9);
    backdrop-filter: blur(16px);
  }

  .scroll-header:not(.is-scrolled) .brand-primary,
  .scroll-header:not(.is-scrolled) .nav-link,
  .scroll-header:not(.is-scrolled) .scroll-menu-btn {
    color: #145a31;
  }

  .scroll-header:not(.is-scrolled) .brand-secondary {
    color: #64748b;
  }

  .scroll-header:not(.is-scrolled) .brand-mark {
    background: transparent;
    border-color: transparent;
  }
}

@media (max-width: 767px) {
  .official-card,
  .leader-portrait,
  .map-frame,
  .official-diagram-frame,
  .flow-stage {
    min-width: 0;
  }

  .official-card,
  .leader-portrait,
  .official-diagram-frame,
  .flow-stage {
    border-radius: 1.4rem;
  }

  .map-frame {
    border-radius: 1.25rem;
  }

  .official-diagram-frame {
    padding: 0.75rem;
  }

  .legend-grid {
    gap: 0.75rem 1rem;
  }

  .legend-item {
    font-size: 0.85rem;
  }

  .legend-line {
    width: 3.75rem;
  }

  .flow-stage {
    padding: 1rem;
  }

  .chart-card {
    padding: 1rem;
    border-radius: 1.4rem;
  }

  .chart-card h2 {
    line-height: 1.2;
  }

  .table-wrap--stack-mobile {
    overflow: hidden;
    border-radius: 1.1rem;
    background: transparent;
    border: 0;
  }

  .table-wrap--stack-mobile table {
    min-width: 0;
  }

  .table-wrap--stack-mobile thead {
    display: none;
  }

  .table-wrap--stack-mobile tbody {
    display: grid;
    gap: 0.75rem;
  }

  .table-wrap--stack-mobile tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.35rem 1rem;
    align-items: start;
    border: 1px solid #d8eadc;
    border-radius: 1rem;
    background: #ffffff;
    padding: 0.95rem 1rem;
    box-shadow: 0 6px 16px rgba(16, 61, 37, 0.04);
  }

  .table-wrap--stack-mobile td {
    display: block;
    width: 100%;
    padding: 0 !important;
  }

  .table-wrap--stack-mobile td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.18rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-700);
  }

  .table-wrap--stack-mobile td:last-child {
    font-weight: 800;
    color: #103d25;
  }
}

@media (max-width: 420px) {
  main {
    padding-left: 0.9rem !important;
    padding-right: 0.9rem !important;
  }

  header nav,
  header .mx-auto.max-w-7xl {
    padding-left: 0.9rem !important;
    padding-right: 0.9rem !important;
  }

  .metric-card {
    padding: 1rem;
  }

  .leader-portrait,
  .official-card,
  .chart-card,
  .infocard,
  .flow-stage,
  .lingkungan-card {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .population-summary-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .population-summary-grid > div {
    border-bottom: 1px solid #d8eadc;
    padding-bottom: 0.85rem;
  }

  .population-summary-grid > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .table-wrap--stack-mobile tr {
    grid-template-columns: 1fr;
  }

  .table-wrap--stack-mobile td:last-child {
    text-align: left;
    margin-top: 0.15rem;
  }

  .map-visual {
    max-height: 18rem;
  }

  #population-chart,
  #health-chart,
  #education-chart {
    gap: 0.85rem;
  }

  #worship-chart {
    gap: 0.75rem;
  }
}

@media (min-width: 768px) {
  .avatar-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .leadership-aside {
    grid-template-rows: minmax(0, auto) minmax(0, auto);
  }

  .leadership-aside--paired {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    align-items: stretch;
  }

  .leadership-aside--paired .leader-portrait--feature,
  .leadership-aside--paired .leader-portrait--compact {
    grid-template-columns: minmax(0, 1fr) minmax(13rem, 16rem);
  }

  .leader-portrait--feature {
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 19rem);
  }

  .leader-portrait--compact {
    grid-template-columns: minmax(0, 1fr) minmax(11rem, 14rem);
  }

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

@media (min-width: 1280px) {
  .avatar-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .flow-pokja-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-meta-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

