/* ==========================================
   Meta Design System Tokens for Tulakan Theme
   Based on DESIGN.md — Optimistic VF / Meta
   ========================================== */

:root {
  /* ---- COLORS ---- */
  --primary:          #0064e0;
  --primary-deep:     #0457cb;
  --primary-soft:     #0091ff;
  --on-primary:       #ffffff;
  --ink-button:       #000000;
  --on-ink-button:    #ffffff;
  --fb-blue:          #1876f2;
  --meta-link:        #385898;
  --oculus-purple:    #a121ce;
  --success:          #31a24c;
  --success-bg:       #24e400;
  --attention:        #f2a918;
  --warning:          #f7b928;
  --warning-bg:       #ffe200;
  --critical:         #e41e3f;
  --critical-strong:  #f0284a;
  --canvas:           #ffffff;
  --surface-soft:     #f1f4f7;
  --ink-deep:         #0a1317;
  --ink:              #1c1e21;
  --charcoal:         #444950;
  --slate:            #4b4c4f;
  --steel:            #5d6c7b;
  --stone:            #8595a4;
  --hairline:         #ced0d4;
  --hairline-soft:    #dee3e9;
  --disabled-text:    #bcc0c4;

  --primary-base-color: var(--primary);
  --primary-darken-color: var(--primary-deep);
  --secondary-base-color: var(--ink-button);
  --secondary-darken-color: var(--charcoal);
  --accent-base-color: var(--primary);
  --accent-darken-color: var(--primary-deep);

  /* ---- TYPOGRAPHY SCALE ---- */
  --font-meta: 'Montserrat', 'Helvetica', 'Arial', 'Noto Sans', sans-serif;
  --fs-hero-display: 64px;
  --fs-display-lg: 48px;
  --fs-heading-lg: 36px;
  --fs-heading-md: 28px;
  --fs-heading-sm: 24px;
  --fs-subtitle-lg: 18px;
  --fs-subtitle-md: 18px;
  --fs-body-md: 16px;
  --fs-body-sm: 14px;
  --fs-caption: 12px;
  --fs-button: 14px;

  /* ---- ROUNDED ---- */
  --rounded-xs: 2px;
  --rounded-sm: 4px;
  --rounded-md: 6px;
  --rounded-lg: 8px;
  --rounded-xl: 16px;
  --rounded-xxl: 24px;
  --rounded-xxxl: 32px;
  --rounded-feature: 40px;
  --rounded-full: 100px;
  --rounded-circle: 9999px;

  /* ---- SPACING ---- */
  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 10px;
  --space-md: 12px;
  --space-base: 16px;
  --space-lg: 20px;
  --space-xl: 24px;
  --space-xxl: 32px;
  --space-xxxl: 40px;
  --space-section-sm: 48px;
}

/* ---- DARK MODE ---- */
html.dark-mode {
  --canvas:           #121212;
  --surface-soft:     #1e1e1e;
  --ink-deep:         #ffffff;
  --ink:              #ffffff;
  --charcoal:         #ffffff;
  --slate:            #ffffff;
  --steel:            #ffffff;
  --stone:            #dddddd;
  --hairline:         #3e4042;
  --hairline-soft:    #2e3033;
  --disabled-text:    #4e5052;
  --on-primary:       #ffffff;
  --on-ink-button:    #121212;
}
html.dark-mode .layout-main {
  background: var(--canvas);
}
html.dark-mode .layout-wrap {
  background: var(--surface-soft);
}
html.dark-mode .side-widget,
html.dark-mode .side-card {
  background: var(--canvas);
  border-color: var(--hairline-soft);
}
html.dark-mode .layout-main {
  border: 1px solid var(--hairline-soft);
}
html.dark-mode .side-widget .box-body.content ul li a {
  color: var(--charcoal);
  border-bottom-color: var(--hairline-soft);
}
html.dark-mode .side-widget .box-body.content ul li a:hover {
  color: var(--primary);
}

/* Dark mode nav overrides */
html.dark-mode .meta-nav.scrolled {
  background: rgba(18,18,18,0.95) !important;
  border-bottom-color: var(--hairline-soft) !important;
}
html.dark-mode .meta-nav.scrolled a,
html.dark-mode .meta-nav.scrolled .nav-link,
html.dark-mode .meta-nav.scrolled .brand-name,
html.dark-mode .meta-nav.scrolled .brand-sub {
  color: #ffffff !important;
}
html.dark-mode .meta-nav .search-box {
  background: rgba(255,255,255,0.15) !important;
}
html.dark-mode .meta-nav .search-box:focus-within {
  background: rgba(255,255,255,0.2) !important;
  border-color: rgba(255,255,255,0.3) !important;
}
html.dark-mode .meta-nav .search-box input {
  color: #ffffff !important;
}
html.dark-mode .meta-nav .search-box input::placeholder {
  color: rgba(255,255,255,0.5) !important;
}
html.dark-mode .meta-nav .search-box i {
  color: rgba(255,255,255,0.6) !important;
}

/* Dark mode submenu text — always white */
html.dark-mode .meta-nav-center .dropdown-wrap a,
html.dark-mode .meta-nav-center .dropdown-wrap .sub-menu a,
html.dark-mode .nav-overflow-drop .nav-link,
html.dark-mode .nav-overflow-drop .sub-item a,
html.dark-mode .nav-overflow-drop .sub-item .sub-menu a,
html.dark-mode.meta-nav.scrolled .nav-overflow-drop .sub-item a,
html.dark-mode.meta-nav.scrolled .nav-overflow-drop .sub-item .sub-menu a,
html.dark-mode .meta-nav.scrolled .nav-overflow-drop .sub-item a,
html.dark-mode .meta-nav.scrolled .nav-overflow-drop .sub-item .sub-menu a {
  color: rgba(255,255,255,0.9) !important;
}
html.dark-mode .meta-nav-center .dropdown-wrap a:hover,
html.dark-mode .nav-overflow-drop .nav-link:hover,
html.dark-mode .nav-overflow-drop .sub-item a:hover {
  color: #ffffff !important;
  background: rgba(255,255,255,0.12) !important;
}
html.dark-mode .nav-overflow-drop .dropdown-wrap {
  background: transparent !important;
}

/* Dark mode mobile submenu text */
html.dark-mode .meta-drawer .drawer-link,
html.dark-mode .meta-drawer .drawer-sub a {
  color: #ffffff !important;
}
html.dark-mode .meta-drawer .drawer-link:hover,
html.dark-mode .meta-drawer .drawer-sub a:hover {
  background: rgba(255,255,255,0.08) !important;
}
html.dark-mode .meta-footer {
  background: #0a0a0a !important;
  color: #ffffff !important;
}
html.dark-mode .meta-footer a,
html.dark-mode .meta-footer .brand-name,
html.dark-mode .meta-footer .brand-sub {
  color: #ffffff !important;
}
html.dark-mode .meta-footer-col h4 {
  color: #ffffff !important;
}
html.dark-mode .meta-footer-col p,
html.dark-mode .meta-footer-col ul li a {
  color: rgba(255,255,255,0.75) !important;
}
html.dark-mode .meta-footer-col ul li a:hover {
  color: #ffffff !important;
}
html.dark-mode .meta-footer-bottom {
  color: rgba(255,255,255,0.4) !important;
}
html.dark-mode .meta-footer-bottom a {
  color: rgba(255,255,255,0.5) !important;
}
html.dark-mode .meta-footer-bottom a:hover {
  color: #ffffff !important;
}
html.dark-mode .meta-footer-bottom .social-links a {
  background: rgba(255,255,255,0.06) !important;
  color: rgba(255,255,255,0.6) !important;
}
html.dark-mode .meta-footer-bottom .social-links a:hover {
  background: var(--primary) !important;
  color: #ffffff !important;
}
html.dark-mode .hero-ctas .btn-hero-box {
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.3);
}

html.dark-mode .hero-title {
  color: #ffffff !important;
}
html.dark-mode .hero-marquee {
  color: #ffffff !important;
  background: rgba(10,19,23,0.9) !important;
}
html.dark-mode .hero-band::before {
  background: linear-gradient(
    to bottom,
    rgba(10, 19, 23, 0.45) 0%,
    rgba(10, 19, 23, 0.65) 40%,
    rgba(10, 19, 23, 0.9) 100%
  ) !important;
}

html.dark-mode .meta-mobile-nav {
  background: rgba(18,18,18,0.9) !important;
  backdrop-filter: blur(16px) !important;
  border-bottom-color: var(--hairline-soft) !important;
}
html.dark-mode .meta-mobile-bottom {
  background: rgba(18,18,18,0.9) !important;
  backdrop-filter: blur(16px) !important;
  border-top-color: var(--hairline-soft) !important;
}

/* ---- GLOBAL ---- */
html {
  background-color: var(--surface-soft);
}
body {
  font-family: var(--font-meta);
  color: var(--ink);
  background-color: transparent;
  /* Jadikan body stacking context agar background-nya terlukis
     DI BAWAH body::before (pattern), bukan menutupinya. */
  isolation: isolate;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background layer paling belakang digambar via elemen #bg-ukiran
   berukuran viewport: resolusi gambar tidak ikut membesar saat
   halaman panjang, backdrop-filter tetap bisa mensampelnya, dan
   tidak bisa ditimpa pseudo-element body::before milik partial. */
#bg-ukiran {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url('data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%22140%22%20height=%22140%22%20viewBox=%220%200%20140%20140%22%3E%20%3Cg%20fill=%22none%22%20stroke=%22%235d6c7b%22%20stroke-width=%221.2%22%20stroke-opacity=%220.35%22%3E%20%3Ccircle%20cx=%220%22%20cy=%220%22%20r=%2246%22/%3E%20%3Ccircle%20cx=%22140%22%20cy=%220%22%20r=%2246%22/%3E%20%3Ccircle%20cx=%220%22%20cy=%22140%22%20r=%2246%22/%3E%20%3Ccircle%20cx=%22140%22%20cy=%22140%22%20r=%2246%22/%3E%20%3C/g%3E%20%3Cg%20fill=%22none%22%20stroke=%22%235d6c7b%22%20stroke-width=%220.8%22%20stroke-opacity=%220.25%22%3E%20%3Ccircle%20cx=%220%22%20cy=%220%22%20r=%2233%22/%3E%20%3Ccircle%20cx=%22140%22%20cy=%220%22%20r=%2233%22/%3E%20%3Ccircle%20cx=%220%22%20cy=%22140%22%20r=%2233%22/%3E%20%3Ccircle%20cx=%22140%22%20cy=%22140%22%20r=%2233%22/%3E%20%3C/g%3E%20%3Cg%20fill=%22%235d6c7b%22%20fill-opacity=%220.38%22%3E%20%3Ccircle%20cx=%220%22%20cy=%220%22%20r=%222.2%22/%3E%20%3Ccircle%20cx=%22140%22%20cy=%220%22%20r=%222.2%22/%3E%20%3Ccircle%20cx=%220%22%20cy=%22140%22%20r=%222.2%22/%3E%20%3Ccircle%20cx=%22140%22%20cy=%22140%22%20r=%222.2%22/%3E%20%3Cpath%20d=%22M70%2058L82%2070L70%2082L58%2070Z%22/%3E%20%3Cpath%20d=%22M70%20-8L78%200L70%208L62%200Z%22/%3E%20%3Cpath%20d=%22M70%20132L78%20140L70%20148L62%20140Z%22/%3E%20%3Cpath%20d=%22M-8%2070L0%2078L8%2070L0%2062Z%22/%3E%20%3Cpath%20d=%22M132%2070L140%2078L148%2070L140%2062Z%22/%3E%20%3C/g%3E%20%3C/svg%3E');
  background-repeat: repeat;
  background-size: 140px 140px;
}

/* ---- BACKGROUND PATTERN UKIRAN ----
   Pattern ukiran berada di layer paling belakang (body).
   Pembungkus konten dibuat transparan agar pattern terlihat,
   sedangkan card (.layout-main, .side-card, .side-widget) tetap solid. */
.layout-wrap {
  background: transparent !important;
}
html.dark-mode .layout-wrap {
  background: transparent !important;
}

/* ---- KONTEN ARTIKEL: kaca buram (glassmorphism) ----
   Layer kedua tembus pandang tipis: corak background samar terlihat,
   teks tetap kontras karena selubungnya dominan pekat. */
.layout-main {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(244, 247, 250, 0.32)) !important;
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
}
html.dark-mode .layout-main {
  background: linear-gradient(180deg, rgba(20, 22, 26, 0.42), rgba(12, 13, 15, 0.34)) !important;
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  backdrop-filter: blur(20px) saturate(120%);
}
/* fallback browser tanpa backdrop-filter: selubung lebih pekat agar terbaca */
@supports not ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  .layout-main {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 250, 0.93)) !important;
  }
  html.dark-mode .layout-main {
    background: linear-gradient(180deg, rgba(20, 22, 26, 0.96), rgba(12, 13, 15, 0.94)) !important;
  }
}

/* ---- WIDGET SIDEBAR: kaca buram senada dengan konten artikel ---- */
.side-card,
.side-widget {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(244, 247, 250, 0.32)) !important;
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
}
html.dark-mode .side-card,
html.dark-mode .side-widget {
  background: linear-gradient(180deg, rgba(20, 22, 26, 0.42), rgba(12, 13, 15, 0.34)) !important;
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  backdrop-filter: blur(20px) saturate(120%);
}
@supports not ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  .side-card,
  .side-widget {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 250, 0.93)) !important;
  }
  html.dark-mode .side-card,
  html.dark-mode .side-widget {
    background: linear-gradient(180deg, rgba(20, 22, 26, 0.96), rgba(12, 13, 15, 0.94)) !important;
  }
}

/* ---- Aksen biru widget pencarian (day mode saja) ---- */
html:not(.dark-mode) .side-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(219, 234, 254, 0.4)) !important;
}
html:not(.dark-mode) .side-search {
  background: rgba(0, 100, 224, 0.06) !important;
  border: 1px solid rgba(0, 100, 224, 0.3);
}
html:not(.dark-mode) .side-search::placeholder {
  color: rgba(0, 100, 224, 0.55);
}
html:not(.dark-mode) .side-search:focus {
  background: rgba(255, 255, 255, 0.78) !important;
  box-shadow: 0 0 0 3px rgba(0, 100, 224, 0.16);
}
html:not(.dark-mode) .side-search-icon {
  color: var(--primary);
}

/* ---- Ikon hero: otomatis menyesuaikan jumlah & selalu di tengah ---- */
@media (min-width: 1024px) {
  .hero-ctas {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0 auto;
  }
  .hero-ctas .btn-hero-box {
    width: auto !important;
    min-width: 90px;
    flex: 0 0 auto;
  }
}

/* ---- Drawer hamburger (day mode): kaca gelap senada navigasi header, teks putih ---- */
html:not(.dark-mode) .meta-drawer {
  background: rgba(10, 19, 23, 0.72) !important;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
html:not(.dark-mode) .meta-drawer .drawer-link {
  color: #ffffff !important;
}
html:not(.dark-mode) .meta-drawer .drawer-link:hover {
  background-color: rgba(255, 255, 255, 0.08);
}
html:not(.dark-mode) .meta-drawer .drawer-sub a,
html:not(.dark-mode) .meta-drawer .drawer-sub button {
  color: rgba(255, 255, 255, 0.85) !important;
}
html:not(.dark-mode) .meta-drawer .drawer-sub a:hover,
html:not(.dark-mode) .meta-drawer .drawer-sub button:hover {
  background-color: rgba(255, 255, 255, 0.08);
}
html:not(.dark-mode) .meta-drawer .drawer-search {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff;
}
html:not(.dark-mode) .meta-drawer .drawer-search input {
  background: none;
  border: none;
  outline: none;
  color: #ffffff;
  flex: 1;
}
html:not(.dark-mode) .meta-drawer .drawer-search input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
html:not(.dark-mode) .meta-drawer .drawer-search:focus-within {
  border: none;
  box-shadow: 0 0 0 2px rgba(0, 100, 224, 0.55);
}
html:not(.dark-mode) .meta-drawer .drawer-divider {
  background-color: rgba(255, 255, 255, 0.12);
}

/* ---- Tombol titik-3 tetap putih saat scroll (standby seperti di atas hero) ---- */
.meta-nav.scrolled .nav-overflow-btn {
  background: rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.8) !important;
}
.meta-nav.scrolled .nav-overflow-btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

/* Popup menu titik-3 tetap kaca gelap saat scroll */
.meta-nav.scrolled .nav-overflow-drop {
  background: rgba(30, 30, 35, 0.95) !important;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3) !important;
}

/* ---- HP layar sempit (mis. Oppo Reno 14F) ---- */
/* Ikon layanan: tepat 4 per baris (grid 4 kolom), baris terakhir mengikuti
   jumlah icon; jika 8 icon maka bagus sekali (4 + 4) */
@media (max-width: 480px) {
  .hero-ctas {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    margin: 0 auto;
  }
  .hero-ctas .btn-hero-box {
    width: 100% !important;
    min-height: 58px;
    padding: 4px 6px;
    border-radius: 10px;
    font-size: 8.5px;
    gap: 3px;
  }
  .hero-ctas .btn-hero-box i {
    font-size: 13px;
  }
  .hero-ctas .btn-hero-box .btn-hero-icon-image {
    width: 18px;
    height: 18px;
  }
}
/* HP sangat sempit: tetap 2 kolom, perkecil isi */
@media (max-width: 380px) {
  .hero-ctas {
    gap: 5px;
  }
  .hero-ctas .btn-hero-box {
    min-height: 50px;
    font-size: 7.5px;
    padding: 3px 4px;
  }
  .hero-ctas .btn-hero-box i {
    font-size: 12px;
  }
  .hero-ctas .btn-hero-box .btn-hero-icon-image {
    width: 16px;
    height: 16px;
  }
}
/* Hide search box on mobile (≤639px) */
@media (max-width: 639px) {
  .sidebar-home .side-card:first-child,
  .sidebar .side-card:first-child {
    display: none !important;
  }
  .sidebar-home .side-card,
  .sidebar .side-card {
    display: none !important;
  }
}
/* Tombol WhatsApp melayang lebih kecil lagi */
@media (max-width: 430px) {
  .czm-fixed .czm-button,
  .czm-chat-support-1 .czm-button-person-avatar {
    width: 38px !important;
    height: 38px !important;
  }
  .czm-chat-support-1 .czm-pulse {
    width: 54px !important;
    height: 54px !important;
    left: -8px !important;
    top: -8px !important;
  }
}

/* Lanjutkan background sampai section widget bawah & APBDes:
   pembungkusnya dibuat transparan, card di dalamnya tetap solid. */
.widgets-below-wrap {
  background: transparent !important;
}
.apbdes-footer {
  /* kaca buram: selubung translusen + aksen radial, tanpa dasar opak */
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(0, 100, 224, 0.1), transparent 60%),
    radial-gradient(760px 380px at 96% 12%, rgba(0, 145, 255, 0.08), transparent 58%),
    radial-gradient(640px 360px at 50% 130%, rgba(0, 100, 224, 0.06), transparent 60%),
    linear-gradient(180deg, rgba(241, 244, 247, 0.6), rgba(235, 241, 248, 0.42)) !important;
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}
html.dark-mode .apbdes-footer {
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(0, 100, 224, 0.14), transparent 60%),
    radial-gradient(760px 380px at 96% 12%, rgba(0, 145, 255, 0.11), transparent 58%),
    radial-gradient(640px 360px at 50% 130%, rgba(0, 100, 224, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(10, 19, 23, 0.55), rgba(6, 12, 16, 0.45)) !important;
}
/* card APBDes ikut berkaca-kaca halus (area 4 logo TIDAK — agar tetap jernih) */
.apbdes-card {
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  backdrop-filter: blur(10px) saturate(130%);
}
html.dark-mode .apbdes-card {
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
}
/* fallback browser tanpa backdrop-filter: dasar lebih solid agar tetap terbaca */
@supports not ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  .apbdes-footer {
    background:
      radial-gradient(900px 420px at 8% -8%, rgba(0, 100, 224, 0.1), transparent 60%),
      radial-gradient(760px 380px at 96% 12%, rgba(0, 145, 255, 0.08), transparent 58%),
      radial-gradient(640px 360px at 50% 130%, rgba(0, 100, 224, 0.06), transparent 60%),
      var(--surface-soft) !important;
  }
  html.dark-mode .apbdes-footer {
    background:
      radial-gradient(900px 420px at 8% -8%, rgba(0, 100, 224, 0.14), transparent 60%),
      radial-gradient(760px 380px at 96% 12%, rgba(0, 145, 255, 0.11), transparent 58%),
      radial-gradient(640px 360px at 50% 130%, rgba(0, 100, 224, 0.08), transparent 60%),
      var(--surface-soft) !important;
  }
}

/* Ombak membulat di tepi ATAS section APBDes (perbatasan dengan widget).
   Section dimasking bentuk gelombang halus; efek kaca tetap utuh. */
body .apbdes-footer {
  --ombak-top: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0,64 C240,16 480,16 720,48 C960,80 1200,80 1440,32 L1440,91 L0,91 Z' fill='%23000'/%3E%3C/svg%3E");
  -webkit-mask-image: var(--ombak-top), linear-gradient(#000, #000);
  mask-image: var(--ombak-top), linear-gradient(#000, #000);
  -webkit-mask-size: 100% 88px, 100% calc(100% - 87px);
  mask-size: 100% 88px, 100% calc(100% - 87px);
  -webkit-mask-position: top, bottom;
  mask-position: top, bottom;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  padding-top: 116px;
}
@media (max-width: 639px) {
  body .apbdes-footer {
    padding-top: 96px;
  }
}

/* ---- TYPOGRAPHY UTILITIES ---- */
.meta-hero-display {
  font-family: var(--font-meta);
  font-size: var(--fs-hero-display);
  font-weight: 500;
  line-height: 1.16;
  font-feature-settings: "ss01", "ss02";
}
.meta-display-lg {
  font-family: var(--font-meta);
  font-size: var(--fs-display-lg);
  font-weight: 500;
  line-height: 1.17;
  font-feature-settings: "ss01", "ss02";
}
.meta-heading-lg {
  font-family: var(--font-meta);
  font-size: var(--fs-heading-lg);
  font-weight: 500;
  line-height: 1.28;
  font-feature-settings: "ss01", "ss02";
}
.meta-heading-md {
  font-family: var(--font-meta);
  font-size: var(--fs-heading-md);
  font-weight: 300;
  line-height: 1.21;
  font-feature-settings: "ss01", "ss02";
}
.meta-heading-sm {
  font-family: var(--font-meta);
  font-size: var(--fs-heading-sm);
  font-weight: 500;
  line-height: 1.25;
  font-feature-settings: "ss01", "ss02";
}
.meta-subtitle-lg {
  font-family: var(--font-meta);
  font-size: var(--fs-subtitle-lg);
  font-weight: 700;
  line-height: 1.44;
}
.meta-subtitle-md {
  font-family: var(--font-meta);
  font-size: var(--fs-subtitle-md);
  font-weight: 400;
  line-height: 1.44;
}
.meta-body-md {
  font-family: var(--font-meta);
  font-size: var(--fs-body-md);
  font-weight: 400;
  line-height: 1.50;
  letter-spacing: -0.16px;
}
.meta-body-md-bold {
  font-family: var(--font-meta);
  font-size: var(--fs-body-md);
  font-weight: 700;
  line-height: 1.50;
  letter-spacing: -0.16px;
}
.meta-body-sm {
  font-family: var(--font-meta);
  font-size: var(--fs-body-sm);
  font-weight: 400;
  line-height: 1.43;
  letter-spacing: -0.14px;
}
.meta-body-sm-bold {
  font-family: var(--font-meta);
  font-size: var(--fs-body-sm);
  font-weight: 700;
  line-height: 1.43;
  letter-spacing: -0.14px;
}
.meta-caption-bold {
  font-family: var(--font-meta);
  font-size: var(--fs-caption);
  font-weight: 700;
  line-height: 1.33;
}
.meta-caption {
  font-family: var(--font-meta);
  font-size: var(--fs-caption);
  font-weight: 400;
  line-height: 1.33;
}
.meta-button {
  font-family: var(--font-meta);
  font-size: var(--fs-button);
  font-weight: 700;
  line-height: 1.43;
  letter-spacing: -0.14px;
}
.meta-link {
  font-family: var(--font-meta);
  font-size: var(--fs-body-md);
  font-weight: 700;
  line-height: 1.50;
  letter-spacing: -0.16px;
}

/* ---- BUTTONS ---- */
.btn-meta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--ink-button);
  color: var(--on-ink-button);
  font-family: var(--font-meta);
  font-size: var(--fs-button);
  font-weight: 700;
  line-height: 1.43;
  letter-spacing: -0.14px;
  padding: 14px 30px;
  border-radius: var(--rounded-full);
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
  text-decoration: none;
}
.btn-meta-primary:hover, .btn-meta-primary:active {
  background-color: var(--charcoal);
  color: var(--on-ink-button);
  text-decoration: none;
}
.btn-meta-primary:disabled {
  background-color: var(--disabled-text);
  color: var(--canvas);
  cursor: not-allowed;
}

.btn-meta-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-meta);
  font-size: var(--fs-button);
  font-weight: 700;
  line-height: 1.43;
  letter-spacing: -0.14px;
  padding: 14px 30px;
  border-radius: var(--rounded-full);
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
  text-decoration: none;
}
.btn-meta-buy:hover, .btn-meta-buy:active {
  background-color: var(--primary-deep);
  color: var(--on-primary);
  text-decoration: none;
}

.btn-meta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: transparent;
  color: var(--ink-deep);
  font-family: var(--font-meta);
  font-size: var(--fs-button);
  font-weight: 700;
  line-height: 1.43;
  letter-spacing: -0.14px;
  padding: 12px 28px;
  border-radius: var(--rounded-full);
  border: 2px solid var(--ink-deep);
  cursor: pointer;
  transition: background-color 0.15s ease;
  text-decoration: none;
}
.btn-meta-secondary:hover {
  background-color: rgba(10, 19, 23, 0.06);
  text-decoration: none;
}

.btn-meta-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: transparent;
  color: var(--ink-deep);
  font-family: var(--font-meta);
  font-size: var(--fs-button);
  font-weight: 700;
  line-height: 1.43;
  letter-spacing: -0.14px;
  padding: 10px 22px;
  border-radius: var(--rounded-full);
  border: 2px solid rgba(10, 19, 23, 0.12);
  cursor: pointer;
  transition: background-color 0.15s ease;
  text-decoration: none;
}
.btn-meta-ghost:hover {
  background-color: rgba(10, 19, 23, 0.06);
  text-decoration: none;
}

/* ---- PILL TABS (Category Nav) ---- */
.pill-tab {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background-color: var(--canvas);
  color: var(--ink);
  font-family: var(--font-meta);
  font-size: var(--fs-body-sm);
  font-weight: 700;
  line-height: 1.43;
  letter-spacing: -0.14px;
  border-radius: var(--rounded-full);
  border: 1px solid var(--hairline);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.pill-tab:hover {
  text-decoration: none;
  border-color: var(--ink-deep);
}
.pill-tab.active {
  background-color: var(--ink-deep);
  color: var(--canvas);
  border-color: var(--ink-deep);
  text-decoration: none;
}

/* ---- SEARCH PILL ---- */
.search-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--surface-soft);
  color: var(--steel);
  font-family: var(--font-meta);
  font-size: var(--fs-body-sm);
  line-height: 1.43;
  letter-spacing: -0.14px;
  border-radius: var(--rounded-full);
  padding: 8px 16px;
  height: 40px;
  border: none;
  width: 100%;
  max-width: 240px;
}
.search-pill:focus {
  outline: none;
  border: 2px solid var(--fb-blue);
  background-color: var(--canvas);
}
.search-pill::placeholder {
  color: var(--stone);
}

/* ---- CARDS ---- */
.card-meta-feature {
  background-color: var(--canvas);
  border-radius: var(--rounded-xxxl);
  padding: var(--space-xxl);
  border: 1px solid var(--hairline-soft);
}
.card-meta-photo {
  background-color: var(--canvas);
  border-radius: var(--rounded-xxxl);
  overflow: hidden;
}
.card-meta-icon {
  background-color: var(--canvas);
  border-radius: var(--rounded-xl);
  padding: var(--space-xl);
  border: 1px solid var(--hairline-soft);
}
.card-meta-checkout {
  background-color: var(--canvas);
  border-radius: var(--rounded-xl);
  padding: var(--space-xl);
  border: 1px solid var(--hairline-soft);
  box-shadow: rgba(20, 22, 26, 0.3) 0px 1px 4px 0px;
}

/* ---- BADGES ---- */
.badge-meta-promo {
  display: inline-flex;
  align-items: center;
  background-color: var(--warning);
  color: var(--ink-deep);
  font-family: var(--font-meta);
  font-size: var(--fs-caption);
  font-weight: 700;
  line-height: 1.33;
  border-radius: var(--rounded-full);
  padding: 4px 10px;
}
.badge-meta-success {
  display: inline-flex;
  align-items: center;
  background-color: var(--success);
  color: var(--canvas);
  font-family: var(--font-meta);
  font-size: var(--fs-caption);
  font-weight: 700;
  line-height: 1.33;
  border-radius: var(--rounded-full);
  padding: 4px 10px;
}
.badge-meta-attention {
  display: inline-flex;
  align-items: center;
  background-color: var(--attention);
  color: var(--canvas);
  font-family: var(--font-meta);
  font-size: var(--fs-caption);
  font-weight: 700;
  line-height: 1.33;
  border-radius: var(--rounded-full);
  padding: 4px 10px;
}
.badge-meta-critical {
  display: inline-flex;
  align-items: center;
  background-color: var(--critical);
  color: var(--canvas);
  font-family: var(--font-meta);
  font-size: var(--fs-caption);
  font-weight: 700;
  line-height: 1.33;
  border-radius: var(--rounded-full);
  padding: 4px 10px;
}

/* ---- PROMO BANNER ---- */
.promo-banner {
  background-color: var(--ink-deep);
  color: var(--canvas);
  font-family: var(--font-meta);
  font-size: var(--fs-body-sm);
  font-weight: 700;
  line-height: 1.43;
  letter-spacing: -0.14px;
  padding: var(--space-md) var(--space-xl);
  text-align: center;
}

/* ---- BREADCRUMB ---- */
.breadcrumb-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-meta);
  font-size: var(--fs-body-sm);
  line-height: 1.43;
  letter-spacing: -0.14px;
  overflow-x: auto;
  padding: 4px 0;
}
.breadcrumb-meta a {
  color: var(--steel);
  text-decoration: none;
}
.breadcrumb-meta a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.breadcrumb-meta .separator {
  color: var(--stone);
  margin: 0 4px;
}
.breadcrumb-meta .current {
  color: var(--ink);
  font-weight: 700;
}

/* ---- SIDEBAR WIDGET COMPACT ---- */
.side-widget .box,
.side-widget .box.box-solid,
.side-widget .box.box-primary,
.side-widget .arsip-widget,
.side-widget .agenda-widget,
.side-widget .galeri-widget {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
.side-widget .box-header,
.side-widget .arsip-header,
.side-widget .agenda-header,
.side-widget .galeri-header,
.side-widget .aparatur-header,
.side-widget .stat-header {
  /* Senada dengan header menu (.meta-nav) namun lebih gelap agar judul kontras */
  background: rgba(10, 19, 23, 0.65) !important;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 20px !important;
  display: flex !important;
  align-items: center;
  gap: 10px;
}
.side-widget .box-header .box-title,
.side-widget .arsip-title,
.side-widget .agenda-title,
.side-widget .galeri-title {
  color: var(--canvas) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}
/* Ikon header aparatur desa: lencana biru agar selalu terlihat (juga night mode) */
.side-widget .aparatur-header .icon-wrap {
  background: linear-gradient(135deg, #3b82f6, #0064e0) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 100, 224, 0.45);
}

/* Night mode: judul widget selalu putih agar kontras di header kaca gelap */
html.dark-mode .side-widget .box-header .box-title,
html.dark-mode .side-widget .arsip-title,
html.dark-mode .side-widget .agenda-title,
html.dark-mode .side-widget .galeri-title,
html.dark-mode .side-widget .aparatur-header h3,
html.dark-mode .side-widget .stat-header .stat-title {
  color: #ffffff !important;
}
.side-widget .box-body {
  padding: 16px 20px !important;
  background: transparent !important;
}
.side-widget .box-body.content ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.side-widget .box-body.content ul li a {
  display: block;
  padding: 10px 0;
  color: var(--charcoal);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.15s ease;
  border-bottom: 1px solid var(--hairline-soft);
}
.side-widget .box-body.content ul li:last-child a {
  border-bottom: none;
}
.side-widget .box-body.content ul li a:hover {
  color: var(--primary);
}



/* ---- PAGINATION ---- */
.pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #1f2937;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: all .2s;
}
.pagination .page-link:hover {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #2563eb;
}
.pagination .page-link.active,
.pagination .page-link.bg-primary-100 {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}
#pagination-info {
  color: #6b7280;
}

/* ---- DARK MODE PAGINATION ---- */
html.dark-mode .pagination .page-link {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
html.dark-mode .pagination .page-link:hover {
  background: #334155;
  border-color: #60a5fa;
  color: #93c5fd;
}
html.dark-mode .pagination .page-link.active,
html.dark-mode .pagination .page-link.bg-primary-100 {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}
html.dark-mode #pagination-info {
  color: #94a3b8;
}

/* ---- Z-INDEX FIXES ----
   Header/nav harus selalu jadi lapisan paling atas.
   Leaflet default: .leaflet-top/.leaflet-bottom = z-index: 1000
   ========================================== */

/* Header & nav: lapisan paling atas */
.meta-nav,
.meta-mobile-nav,
.meta-mobile-bottom {
  z-index: 99999 !important;
}

/* Leaflet controls: di bawah header */
.leaflet-top,
.leaflet-bottom {
  z-index: 9997 !important;
}

/* Slider nav buttons: di bawah header */
.slider-nav-prev,
.slider-nav-next {
  z-index: 30 !important;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .meta-hero-display {
    font-size: var(--fs-heading-lg);
  }
  .meta-display-lg {
    font-size: var(--fs-heading-sm);
  }
  .card-meta-feature {
    padding: var(--space-xl);
    border-radius: var(--rounded-xxl);
  }
}
@media (max-width: 480px) {
  .meta-hero-display {
    font-size: var(--fs-heading-sm);
  }
  .meta-display-lg {
    font-size: 20px;
  }
}
