/* ==========================================================================
   app.css — Komponen Portal Kabupaten Grobogan
   Bergantung pada tokens.css (dimuat lebih dulu) dan Bootstrap 5.3.
   Urutan: dasar → utilitas → utility bar → header → hero → strip layanan →
   berita & statistik → potensi → peta → konten halaman → footer → bantu.
   ========================================================================== */

/* ============================ 1. DASAR ==================================== */

body {
  background-color: var(--gb-cream);
  font-size: var(--gb-fs-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  letter-spacing: -0.015em;
}

a {
  text-underline-offset: 3px;
}

/* Fokus keyboard yang selalu terlihat — jangan dihapus. */
:focus-visible {
  outline: 3px solid var(--gb-gold-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.gb-skip {
  position: absolute;
  left: 50%;
  top: -100px;
  z-index: 2000;
  transform: translateX(-50%);
  background: var(--gb-gold-500);
  color: var(--gb-green-950);
  font-weight: 700;
  padding: 0.7rem 1.4rem;
  border-radius: 0 0 var(--gb-radius) var(--gb-radius);
  transition: top 0.15s ease-in-out;
}

.gb-skip:focus {
  top: 0;
  text-decoration: none;
}

/* Lebar kolom konten diseragamkan dengan lebar pada desain (1280px). */
@media (min-width: 1200px) {
  .container {
    max-width: var(--gb-container);
  }
}

/* ========================= 2. UTILITAS =================================== */

.gb-section {
  padding-block: clamp(2.25rem, 1.2rem + 2.6vw, 3.5rem);
  position: relative;
}

.gb-section--cream {
  background-color: var(--gb-cream);
}

.gb-section--white {
  background-color: var(--gb-white);
}

.gb-heading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--gb-fs-h2);
  font-weight: 800;
  color: var(--gb-green-900);
  margin-bottom: 0;
  position: relative;
  padding-bottom: 0.55rem;
}

/* Aksen emas kecil di kiri judul + garis emas di bawah judul. */
.gb-heading::before {
  content: "";
  width: 12px;
  height: 22px;
  background: var(--gb-gold-500);
  transform: skewX(-12deg);
  border-radius: 2px;
  flex: 0 0 auto;
}

.gb-heading::after {
  content: "";
  position: absolute;
  left: 2.1rem;
  bottom: 0;
  width: calc(100% - 2.1rem);
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--gb-gold-500) 0%,
    var(--gb-gold-500) 62%,
    transparent 62%
  );
  border-radius: 3px;
}

.gb-heading--plain::before,
.gb-heading--plain::after {
  display: none;
}

.gb-heading--sm {
  font-size: var(--gb-fs-h3);
}

.gb-script {
  font-family: var(--gb-font-script);
  line-height: 1;
}

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

.gb-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: var(--gb-fs-tiny);
  font-weight: 700;
}

.gb-card {
  background: var(--gb-white);
  border: 1px solid var(--gb-line);
  border-radius: var(--gb-radius-lg);
  box-shadow: var(--gb-shadow-sm);
}

.gb-card--pad {
  padding: clamp(1.1rem, 0.7rem + 1vw, 1.6rem);
}

.gb-link-more {
  font-weight: 600;
  font-size: var(--gb-fs-small);
  color: var(--gb-green-700);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.gb-link-more:hover {
  color: var(--gb-gold-600);
}

/* Badge kategori, mis. "Pertanian", "Ekonomi". */
.gb-badge {
  display: inline-block;
  background: var(--gb-gold-500);
  color: var(--gb-green-950);
  font-size: var(--gb-fs-tiny);
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.28rem 0.7rem;
  border-radius: var(--gb-radius-pill);
  line-height: 1.4;
}

.gb-badge--soft {
  background: var(--gb-green-100);
  color: var(--gb-green-800);
}

.gb-badge--outline {
  background: transparent;
  border: 1px solid var(--gb-line);
  color: var(--gb-muted);
}

/* Penanda kejujuran data: situs ini masih memakai data contoh. */
.gb-demo-note {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--gb-fs-tiny);
  font-weight: 700;
  color: var(--gb-gold-700);
  background: var(--gb-gold-100);
  border: 1px dashed var(--gb-gold-500);
  border-radius: var(--gb-radius-pill);
  padding: 0.2rem 0.65rem;
}

.gb-skeleton {
  background: linear-gradient(
    90deg,
    var(--gb-cream-200) 25%,
    var(--gb-cream-300) 37%,
    var(--gb-cream-200) 63%
  );
  background-size: 400% 100%;
  animation: gb-shimmer 1.4s ease infinite;
  border-radius: var(--gb-radius-sm);
}

@keyframes gb-shimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

.gb-state {
  text-align: center;
  padding: 2.25rem 1rem;
  color: var(--gb-muted);
}

.gb-state i {
  font-size: 2rem;
  color: var(--gb-green-300);
  display: block;
  margin-bottom: 0.5rem;
}

/* ====================== 3. UTILITY BAR (atas) ============================= */

.gb-utility {
  background: linear-gradient(90deg, var(--gb-green-950), var(--gb-green-900) 55%, var(--gb-green-950));
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--gb-fs-tiny);
  padding-block: 0.45rem;
}

.gb-utility__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.gb-utility__left,
.gb-utility__right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.gb-utility__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.gb-utility__item i {
  color: var(--gb-gold-500);
}

.gb-utility__sep {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.25);
}

.gb-utility a,
.gb-utility button {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0.1rem 0.15rem;
  font-size: inherit;
  line-height: 1.6;
}

.gb-utility a:hover,
.gb-utility button:hover {
  color: var(--gb-gold-300);
}

.gb-fontsize {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.gb-fontsize button {
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-weight: 700;
}

.gb-fontsize button[aria-pressed="true"] {
  background: var(--gb-gold-500);
  color: var(--gb-green-950);
}

.gb-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

/* ======================== 4. HEADER & NAV ================================ */

.gb-header {
  background: var(--gb-cream);
  border-bottom: 1px solid transparent;
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.gb-header.is-stuck {
  background: rgba(251, 247, 236, 0.97);
  backdrop-filter: saturate(1.1) blur(8px);
  box-shadow: var(--gb-shadow);
  border-bottom-color: var(--gb-line);
}

.gb-header__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--gb-header-h);
  padding-block: 0.5rem;
}

.gb-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex: 0 0 auto;
}

.gb-brand img {
  height: 52px;
  width: auto;
}

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

.gb-brand__kab {
  font-size: var(--gb-fs-tiny);
  font-weight: 600;
  color: var(--gb-muted);
  letter-spacing: 0.03em;
}

.gb-brand__name {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--gb-green-900);
}

.gb-brand__tagline {
  font-size: var(--gb-fs-tiny);
  color: var(--gb-muted);
  letter-spacing: 0.02em;
}

.gb-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.gb-nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gb-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.55rem 0.6rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gb-ink);
  text-decoration: none;
  border-radius: var(--gb-radius-sm);
  white-space: nowrap;
  position: relative;
  background: none;
  border: 0;
}

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

.gb-nav__link.is-active {
  color: var(--gb-green-800);
}

.gb-nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0.15rem;
  height: 3px;
  border-radius: 3px;
  background: var(--gb-gold-500);
}

.gb-nav__link .bi-chevron-down {
  font-size: 0.7rem;
  transition: transform 0.15s ease;
}

.gb-nav__link[aria-expanded="true"] .bi-chevron-down {
  transform: rotate(180deg);
}

/* Mega-menu: 2–3 kolom untuk menu dengan banyak sub-item. */
.gb-megamenu {
  border: 1px solid var(--gb-line);
  border-radius: var(--gb-radius);
  box-shadow: var(--gb-shadow-lg);
  padding: 1rem;
  margin-top: 0.4rem;
  background: var(--gb-white);
  min-width: 15rem;
}

.gb-megamenu--wide {
  min-width: 34rem;
}

.gb-megamenu__cols {
  display: grid;
  grid-template-columns: repeat(var(--gb-cols, 2), minmax(0, 1fr));
  gap: 0.25rem 1.25rem;
}

.gb-megamenu__link {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.5rem 0.6rem;
  border-radius: var(--gb-radius-sm);
  text-decoration: none;
  color: var(--gb-ink);
}

.gb-megamenu__link:hover {
  background: var(--gb-green-50);
}

.gb-megamenu__link i {
  color: var(--gb-green-600);
  font-size: 1rem;
  margin-top: 0.15rem;
}

.gb-megamenu__label {
  font-size: 0.875rem;
  font-weight: 600;
  display: block;
}

.gb-megamenu__desc {
  font-size: var(--gb-fs-tiny);
  color: var(--gb-muted);
  display: block;
}

.gb-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.gb-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--gb-line);
  background: var(--gb-white);
  color: var(--gb-green-800);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.gb-icon-btn:hover {
  background: var(--gb-green-50);
  border-color: var(--gb-green-300);
}

.gb-btn-gold {
  background: var(--gb-gold-500);
  border: 1px solid var(--gb-gold-500);
  color: var(--gb-green-950);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--gb-radius-sm);
  padding: 0.6rem 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.gb-btn-gold:hover {
  background: var(--gb-gold-600);
  border-color: var(--gb-gold-600);
  color: var(--gb-green-950);
}

.gb-btn-outline-light {
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  color: var(--gb-white);
  background: transparent;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--gb-radius-sm);
  padding: 0.6rem 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.gb-btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--gb-white);
  border-color: var(--gb-white);
}

.gb-btn-dark {
  background: var(--gb-green-900);
  color: var(--gb-white);
  border: 1px solid var(--gb-green-900);
  font-weight: 600;
  border-radius: var(--gb-radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  padding: 0.6rem 1.1rem;
}

.gb-btn-dark:hover {
  background: var(--gb-green-800);
  color: var(--gb-white);
}

/* Ticker pengumuman */
.gb-ticker {
  background: var(--gb-gold-100);
  border-bottom: 1px solid var(--gb-gold-300);
  font-size: var(--gb-fs-small);
}

.gb-ticker__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.5rem;
}

.gb-ticker__label {
  background: var(--gb-green-800);
  color: var(--gb-white);
  font-size: var(--gb-fs-tiny);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--gb-radius-pill);
  flex: 0 0 auto;
}

.gb-ticker__track {
  overflow: hidden;
  white-space: nowrap;
  flex: 1 1 auto;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent);
}

.gb-ticker__list {
  display: inline-flex;
  gap: 2.5rem;
  animation: gb-marquee 38s linear infinite;
  padding-left: 0;
  margin: 0;
  list-style: none;
}

.gb-ticker:hover .gb-ticker__list,
.gb-ticker:focus-within .gb-ticker__list {
  animation-play-state: paused;
}

@keyframes gb-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.gb-ticker a {
  color: var(--gb-green-900);
  font-weight: 500;
}

/* Breadcrumb */
.gb-breadcrumb-wrap {
  background: var(--gb-white);
  border-bottom: 1px solid var(--gb-line);
}

.gb-breadcrumb {
  --bs-breadcrumb-divider: "/";
  margin-bottom: 0;
  padding-block: 0.6rem;
  font-size: var(--gb-fs-small);
}

.gb-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: var(--gb-green-300);
}

/* =========================== 5. HERO ==================================== */

.gb-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(360px, 24.5vw, 470px);
  display: flex;
  align-items: center;
  color: var(--gb-white);
  background-color: var(--gb-green-900);
  background-image: url("../img/hero-grobogan.svg");
  background-size: cover;
  background-position: center right;
  overflow: hidden;
}

/* Overlay gelap agar teks di atas foto tetap lolos kontras >= 4.5:1. */
.gb-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      100deg,
      rgba(4, 35, 26, 0.94) 0%,
      rgba(4, 35, 26, 0.82) 34%,
      rgba(4, 35, 26, 0.42) 62%,
      rgba(4, 35, 26, 0.2) 100%
    ),
    linear-gradient(0deg, rgba(4, 35, 26, 0.5), transparent 55%);
}

/* Ornamen batik dekoratif — murni hiasan, tidak boleh menangkap klik. */
.gb-hero__ornament {
  position: absolute;
  pointer-events: none;
  user-select: none;
  opacity: 0.5;
}

.gb-hero__ornament--left {
  left: -40px;
  top: -20px;
  width: 320px;
  height: 320px;
}

.gb-hero__ornament--right {
  right: -30px;
  bottom: -40px;
  width: 260px;
  height: 260px;
  opacity: 0.32;
}

.gb-hero__content {
  position: relative;
  z-index: 1;
  padding-block: clamp(2rem, 1rem + 4vw, 3.75rem);
  max-width: 620px;
}

.gb-hero__eyebrow {
  color: var(--gb-gold-300);
  margin-bottom: 0.6rem;
}

.gb-hero__title {
  font-size: var(--gb-fs-h1);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 0.85rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.gb-hero__title em {
  font-style: normal;
  color: var(--gb-gold-500);
  display: block;
}

.gb-hero__lead {
  font-size: var(--gb-fs-lead);
  color: rgba(255, 255, 255, 0.9);
  max-width: 46ch;
  margin-bottom: 1.5rem;
}

.gb-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.gb-hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--gb-fs-tiny);
  color: rgba(255, 255, 255, 0.8);
}

.gb-hero__scroll i {
  animation: gb-bob 1.8s ease-in-out infinite;
}

@keyframes gb-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

/* Kolom kanan hero: kaligrafi + kutipan */
.gb-hero__aside {
  position: relative;
  z-index: 1;
  text-align: right;
  padding-bottom: 3rem;
}

.gb-hero__script {
  font-family: var(--gb-font-script);
  font-size: clamp(1.5rem, 1rem + 1.5vw, 2.3rem);
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
  margin-bottom: 1.1rem;
}

.gb-hero__quote {
  margin-left: auto;
  max-width: 22ch;
  font-style: italic;
  font-size: var(--gb-fs-lead);
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  border-bottom: 3px solid var(--gb-gold-500);
  padding-bottom: 0.5rem;
  display: inline-block;
}

/* ==================== 6. STRIP LAYANAN CEPAT ============================= */

.gb-quick {
  background: var(--gb-cream);
  border-bottom: 1px solid var(--gb-line);
  position: relative;
  overflow: hidden;
}

.gb-quick__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
}

.gb-quick__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.05rem 0.9rem;
  text-decoration: none;
  color: var(--gb-ink);
  border-left: 1px solid var(--gb-cream-300);
  transition: background-color 0.15s ease;
  min-height: 76px;
}

.gb-quick__item:first-child {
  border-left: 0;
}

.gb-quick__item:hover {
  background: var(--gb-white);
}

.gb-quick__item:hover .gb-quick__title {
  color: var(--gb-green-700);
}

.gb-quick__icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: var(--gb-radius-sm);
  background: var(--gb-green-50);
  color: var(--gb-green-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.gb-quick__title {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25;
  display: block;
}

.gb-quick__desc {
  font-size: var(--gb-fs-tiny);
  color: var(--gb-muted);
  line-height: 1.35;
  display: block;
}

.gb-quick__sign {
  font-family: var(--gb-font-script);
  font-size: 1.6rem;
  color: var(--gb-green-700);
  text-align: right;
  transform: rotate(-4deg);
  padding: 0.5rem 0.5rem 1rem;
  white-space: nowrap;
}

/* ================== 7. BERITA + DATA HARI INI ============================ */

.gb-news-feature {
  border-radius: var(--gb-radius-lg);
  overflow: hidden;
  border: 1px solid var(--gb-line);
  background: var(--gb-white);
  box-shadow: var(--gb-shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.gb-news-feature__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--gb-cream-200);
}

.gb-news-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gb-news-feature__body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1 1 auto;
}

.gb-news-feature__meta,
.gb-news-item__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--gb-fs-tiny);
  color: var(--gb-muted);
}

.gb-news-feature__title {
  font-size: 1.075rem;
  font-weight: 700;
  line-height: 1.32;
  margin: 0;
}

.gb-news-feature__title a,
.gb-news-item__title a {
  color: var(--gb-green-900);
  text-decoration: none;
}

.gb-news-feature__title a:hover,
.gb-news-item__title a:hover {
  color: var(--gb-green-600);
  text-decoration: underline;
}

.gb-news-feature__excerpt {
  font-size: var(--gb-fs-small);
  color: var(--gb-muted);
  margin: 0;
}

.gb-news-item {
  display: flex;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--gb-cream-300);
}

.gb-news-item:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.gb-news-item__media {
  width: 92px;
  height: 68px;
  border-radius: var(--gb-radius-sm);
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--gb-cream-200);
}

.gb-news-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gb-news-item__title {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.34;
  margin: 0.3rem 0 0.35rem;
}

/* --- Kartu Data Hari Ini ------------------------------------------------- */

.gb-data-card {
  background: var(--gb-white);
  border: 1px solid var(--gb-line);
  border-radius: var(--gb-radius-lg);
  box-shadow: var(--gb-shadow-sm);
  padding: 1.1rem;
  height: 100%;
}

.gb-data-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.gb-data-card__source {
  font-size: var(--gb-fs-tiny);
  color: var(--gb-muted);
  text-align: right;
}

.gb-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.gb-stat {
  position: relative;
  border: 1px solid var(--gb-line);
  border-radius: var(--gb-radius);
  padding: 0.8rem 0.85rem 1.9rem;
  background: var(--gb-white);
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.gb-stat__icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex: 0 0 auto;
  background: var(--gb-green-50);
  color: var(--gb-green-600);
}

.gb-stat--blue .gb-stat__icon {
  background: var(--gb-blue-50);
  color: var(--gb-blue);
}

.gb-stat--orange .gb-stat__icon {
  background: var(--gb-orange-50);
  color: var(--gb-orange);
}

.gb-stat--teal .gb-stat__icon {
  background: var(--gb-teal-50);
  color: var(--gb-teal);
}

.gb-stat__value {
  font-size: clamp(1.15rem, 0.95rem + 0.6vw, 1.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--gb-ink);
  letter-spacing: -0.02em;
  display: block;
}

.gb-stat__label {
  font-size: var(--gb-fs-tiny);
  color: var(--gb-muted);
  display: block;
  margin-top: 0.15rem;
}

.gb-stat__delta {
  position: absolute;
  top: 0.6rem;
  right: 0.65rem;
  font-size: var(--gb-fs-tiny);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  color: var(--gb-green-600);
}

.gb-stat__delta.is-bad {
  color: var(--gb-red);
}

.gb-stat__delta.is-neutral {
  color: var(--gb-muted);
}

.gb-stat__spark {
  position: absolute;
  right: 0.5rem;
  bottom: 0.35rem;
  width: 74px;
  height: 28px;
}

.gb-stat__spark svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ====================== 8. KARTU POTENSI ================================= */

.gb-potensi {
  position: relative;
  display: block;
  border-radius: var(--gb-radius);
  overflow: hidden;
  min-height: 158px;
  color: var(--gb-white);
  text-decoration: none;
  box-shadow: var(--gb-shadow-sm);
}

.gb-potensi__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gb-potensi__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(4, 35, 26, 0.92) 0%,
    rgba(4, 35, 26, 0.72) 48%,
    rgba(4, 35, 26, 0.3) 100%
  );
}

.gb-potensi__body {
  position: relative;
  z-index: 1;
  padding: 1rem 1.05rem;
  min-height: 158px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.gb-potensi:hover {
  color: var(--gb-white);
}

.gb-potensi:hover .gb-potensi__arrow {
  background: var(--gb-gold-500);
  color: var(--gb-green-950);
  transform: translateX(3px);
}

.gb-potensi__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: auto;
}

.gb-potensi__title {
  font-size: 0.975rem;
  font-weight: 800;
  margin: 0.75rem 0 0.25rem;
}

.gb-potensi__desc {
  font-size: var(--gb-fs-tiny);
  color: rgba(255, 255, 255, 0.87);
  margin: 0;
  max-width: 30ch;
}

.gb-potensi__arrow {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--gb-green-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

/* ======================== 9. PETA DESA =================================== */

.gb-map-panel {
  position: relative;
  background: var(--gb-green-50);
  border: 1px solid var(--gb-line);
  border-radius: var(--gb-radius-lg);
  overflow: hidden;
  min-height: 170px;
}

.gb-map-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  min-height: 170px;
}

.gb-map-base {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.gb-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  border: 0;
  background: none;
  padding: 0;
  line-height: 1;
  color: var(--gb-green-900);
  font-size: 1.15rem;
  filter: drop-shadow(0 2px 3px rgba(4, 35, 26, 0.35));
}

.gb-pin:hover,
.gb-pin:focus-visible {
  color: var(--gb-gold-600);
  font-size: 1.4rem;
  z-index: 3;
}

.gb-pin.is-active {
  color: var(--gb-gold-500);
  z-index: 3;
}

.gb-map-tooltip {
  position: absolute;
  z-index: 4;
  background: var(--gb-green-900);
  color: var(--gb-white);
  font-size: var(--gb-fs-tiny);
  padding: 0.35rem 0.55rem;
  border-radius: 7px;
  transform: translate(-50%, calc(-100% - 26px));
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.gb-map-tooltip.is-visible {
  opacity: 1;
}

/* Daftar desa di halaman peta */
.gb-desa-list {
  max-height: 340px;
  overflow-y: auto;
}

.gb-desa-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  border: 1px solid var(--gb-line);
  background: var(--gb-white);
  border-radius: var(--gb-radius-sm);
  padding: 0.55rem 0.7rem;
  margin-bottom: 0.4rem;
  font-size: var(--gb-fs-small);
}

.gb-desa-list__item:hover {
  border-color: var(--gb-green-300);
  background: var(--gb-green-50);
}

.gb-desa-list__item.is-active {
  border-color: var(--gb-gold-500);
  background: var(--gb-gold-100);
}

/* ==================== 10. KONTEN HALAMAN UMUM ============================ */

.gb-page-hero {
  background: linear-gradient(120deg, var(--gb-green-900), var(--gb-green-700));
  color: var(--gb-white);
  padding-block: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  position: relative;
  overflow: hidden;
}

.gb-page-hero__ornament {
  position: absolute;
  right: -60px;
  bottom: -70px;
  width: 300px;
  height: 300px;
  opacity: 0.18;
  pointer-events: none;
}

.gb-page-hero h1 {
  font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.15rem);
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.gb-page-hero p {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0;
  max-width: 72ch;
}

.gb-prose {
  font-size: var(--gb-fs-body);
  line-height: 1.75;
}

.gb-prose h2 {
  font-size: var(--gb-fs-h3);
  margin-top: 1.9rem;
  margin-bottom: 0.75rem;
}

.gb-prose h3 {
  font-size: 1rem;
  margin-top: 1.4rem;
  margin-bottom: 0.5rem;
}

.gb-prose ul,
.gb-prose ol {
  padding-left: 1.15rem;
}

.gb-prose li {
  margin-bottom: 0.4rem;
}

.gb-prose table {
  width: 100%;
  font-size: var(--gb-fs-small);
}

.gb-list-icon {
  list-style: none;
  padding-left: 0;
}

.gb-list-icon li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 0.6rem;
}

.gb-list-icon i {
  color: var(--gb-green-600);
  margin-top: 0.2rem;
}

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

.gb-table thead th {
  background: var(--gb-green-50);
  color: var(--gb-green-900);
  font-weight: 700;
  white-space: nowrap;
}

.gb-table td,
.gb-table th {
  vertical-align: middle;
}

.gb-step {
  counter-reset: gb-step;
  list-style: none;
  padding-left: 0;
}

.gb-step li {
  position: relative;
  padding-left: 2.6rem;
  padding-bottom: 1.1rem;
  border-left: 2px dashed var(--gb-cream-300);
  margin-left: 0.9rem;
}

.gb-step li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.gb-step li::before {
  counter-increment: gb-step;
  content: counter(gb-step);
  position: absolute;
  left: -0.95rem;
  top: 0;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--gb-green-700);
  color: var(--gb-white);
  font-size: var(--gb-fs-tiny);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gb-timeline {
  list-style: none;
  padding-left: 0;
}

.gb-timeline li {
  border-left: 2px solid var(--gb-cream-300);
  padding-left: 1.1rem;
  padding-bottom: 1.1rem;
  position: relative;
}

.gb-timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gb-gold-500);
}

/* Berita: filter kategori */
.gb-chip {
  border: 1px solid var(--gb-line);
  background: var(--gb-white);
  color: var(--gb-ink);
  border-radius: var(--gb-radius-pill);
  padding: 0.35rem 0.85rem;
  font-size: var(--gb-fs-small);
  font-weight: 600;
  text-decoration: none;
}

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

.gb-chip.is-active {
  background: var(--gb-green-800);
  border-color: var(--gb-green-800);
  color: var(--gb-white);
}

.gb-article {
  font-size: 1rem;
  line-height: 1.85;
}

.gb-article > p:first-of-type {
  font-size: 1.05rem;
  color: var(--gb-green-900);
  font-weight: 500;
}

.gb-article figure img {
  border-radius: var(--gb-radius);
}

.gb-article blockquote {
  border-left: 4px solid var(--gb-gold-500);
  background: var(--gb-cream);
  padding: 0.85rem 1.1rem;
  border-radius: 0 var(--gb-radius-sm) var(--gb-radius-sm) 0;
  font-style: italic;
}

/* Pencarian */
.gb-search-box {
  position: relative;
}

.gb-search-box .bi-search {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gb-muted);
  pointer-events: none;
}

.gb-search-box .form-control {
  padding-left: 2.4rem;
  min-height: 46px;
}

.gb-autocomplete {
  position: absolute;
  z-index: 20;
  inset-inline: 0;
  top: calc(100% + 4px);
  background: var(--gb-white);
  border: 1px solid var(--gb-line);
  border-radius: var(--gb-radius-sm);
  box-shadow: var(--gb-shadow-lg);
  max-height: 260px;
  overflow-y: auto;
  list-style: none;
  padding: 0.3rem;
  margin: 0;
}

.gb-autocomplete li button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  font-size: var(--gb-fs-small);
}

.gb-autocomplete li button:hover,
.gb-autocomplete li button[aria-selected="true"] {
  background: var(--gb-green-50);
}

/* ========================== 11. FOOTER ================================== */

.gb-footer {
  background: linear-gradient(180deg, var(--gb-green-900), var(--gb-green-950));
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--gb-fs-small);
  position: relative;
  overflow: hidden;
}

.gb-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
  padding-block: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
}

.gb-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.gb-footer a:hover {
  color: var(--gb-gold-300);
  text-decoration: underline;
}

.gb-footer__brand {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.gb-footer__brand img {
  height: 46px;
  width: auto;
  flex: 0 0 auto;
}

.gb-footer__name {
  color: var(--gb-white);
  font-weight: 700;
  font-size: 0.9rem;
  display: block;
}

.gb-footer__script {
  text-align: center;
  font-family: var(--gb-font-script);
  font-size: clamp(1.4rem, 1rem + 1.4vw, 2.05rem);
  color: var(--gb-gold-300);
  line-height: 1.2;
}

.gb-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  justify-content: flex-start;
  margin-top: 0.6rem;
}

.gb-footer__social {
  display: flex;
  gap: 0.45rem;
}

.gb-footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.gb-footer__social a:hover {
  background: var(--gb-gold-500);
  border-color: var(--gb-gold-500);
  color: var(--gb-green-950);
  text-decoration: none;
}

.gb-batik-strip {
  height: 26px;
  background-image: url("../img/batik-strip.svg");
  background-repeat: repeat-x;
  background-size: auto 26px;
  opacity: 0.75;
}

/* ====================== 12. BANTU (bantu) =============================== */

.gb-to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 1040;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gb-green-300);
  background: var(--gb-white);
  color: var(--gb-green-800);
  box-shadow: var(--gb-shadow);
  display: none;
  align-items: center;
  justify-content: center;
}

.gb-to-top.is-visible {
  display: inline-flex;
}

.gb-to-top:hover {
  background: var(--gb-green-800);
  color: var(--gb-white);
}

.gb-cookie {
  position: fixed;
  z-index: 1050;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 620px;
  margin-inline: auto;
  background: var(--gb-white);
  border: 1px solid var(--gb-line);
  border-radius: var(--gb-radius);
  box-shadow: var(--gb-shadow-lg);
  padding: 0.9rem 1rem;
  font-size: var(--gb-fs-small);
}

.gb-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1080;
  background: rgba(4, 35, 26, 0.55);
  display: none;
  padding-top: 12vh;
}

.gb-search-overlay.is-open {
  display: block;
}

.gb-search-overlay__panel {
  background: var(--gb-white);
  border-radius: var(--gb-radius-lg);
  padding: 1.1rem;
  box-shadow: var(--gb-shadow-lg);
  max-width: 720px;
  margin-inline: auto;
}

/* ====================== 13. RESPONSIF =================================== */

@media (max-width: 1199.98px) {
  .gb-quick__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gb-quick__item:nth-child(3n + 1) {
    border-left: 0;
  }

  .gb-quick__item:nth-child(n + 4) {
    border-top: 1px solid var(--gb-cream-300);
  }
}

@media (max-width: 991.98px) {
  :root {
    --gb-header-h: 68px;
  }

  .gb-nav {
    display: none;
  }

  .gb-megamenu {
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 0.5rem 0.75rem;
    margin-top: 0;
    min-width: 0;
  }

  .gb-megamenu--wide {
    min-width: 0;
  }

  .gb-megamenu__cols {
    grid-template-columns: 1fr;
  }

  /* Di mobile, dropdown dibuka sebagai daftar biasa (bukan melayang). */
  #gb-nav-offcanvas .dropdown-menu {
    position: static;
    float: none;
    background: transparent;
  }

  .gb-hero__aside {
    text-align: left;
    padding-bottom: 0;
  }

  .gb-hero__quote {
    margin-left: 0;
    max-width: 100%;
  }

  .gb-footer__grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .gb-footer__script {
    text-align: left;
  }
}

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

  .gb-quick__item {
    border-left: 1px solid var(--gb-cream-300);
    border-top: 1px solid var(--gb-cream-300);
    min-height: 70px;
    padding: 0.85rem 0.6rem;
  }

  .gb-quick__item:nth-child(odd) {
    border-left: 0;
  }

  .gb-quick__item:nth-child(-n + 2) {
    border-top: 0;
  }

  .gb-stat-grid {
    grid-template-columns: 1fr;
  }

  .gb-hero {
    min-height: 0;
    padding-block: 0.25rem;
  }

  .gb-data-card__source {
    text-align: left;
  }
}

/* Strip layanan cepat bisa digeser mendatar di layar sangat kecil. */
@media (max-width: 419.98px) {
  .gb-quick__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .gb-quick__item {
    min-width: 78%;
    scroll-snap-align: start;
    border-left: 0 !important;
    border-top: 0 !important;
  }
}

/* ================= 14. GERAK & CETAK ==================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .gb-ticker__list {
    animation: none;
  }
}

.visually-hidden-focusable:focus {
  position: static !important;
  width: auto !important;
  height: auto !important;
}
