@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root{
  --bg:#F7F9FC;
  --surface:#FFFFFF;
  --surface-alt:#EEF3FA;
  --navy-900:#0B2545;
  --navy-800:#123A66;
  --navy-700:#1B4C82;
  --navy-500:#2E6BB0;
  --navy-100:#DCE6F2;
  --text:#1B2733;
  --text-muted:#5B6B7C;
  --accent:#C9922E;
  --line:#E1E8F1;
  --radius:6px;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:'Inter',sans-serif;
  line-height:1.65;
}
h1,h2,h3{font-family:'Fraunces',serif;font-weight:600;margin:0;color:var(--navy-900);letter-spacing:-0.01em;}
a{color:inherit;}
.mono{font-family:'IBM Plex Mono',monospace;}
.wrap{max-width:1080px;margin:0 auto;padding:0 28px;}
img{max-width:100%;display:block;}

/* ---------- NAV ---------- */
header.site-nav{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,0.92);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.nav-inner{max-width:1080px;margin:0 auto;padding:16px 28px;display:flex;align-items:center;justify-content:space-between;}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;}
.brand svg{width:32px;height:32px;flex-shrink:0;}
.brand-text{display:flex;flex-direction:column;line-height:1.15;}
.brand-text .kel{font-family:'Fraunces',serif;font-size:16px;font-weight:600;color:var(--navy-900);}
.brand-text .loc{font-size:10px;letter-spacing:0.06em;text-transform:uppercase;color:var(--navy-500);}
nav.links{display:flex;gap:26px;}
nav.links a{
  font-size:13.5px;text-decoration:none;color:var(--text-muted);
  position:relative;padding:4px 0;transition:color .2s ease;
}
nav.links a:hover,nav.links a.active{color:var(--navy-900);}
nav.links a.active::after{content:"";position:absolute;left:0;right:0;bottom:-4px;height:2px;background:var(--accent);}
.nav-toggle{display:none;background:none;border:1px solid var(--line);color:var(--navy-900);padding:8px 12px;border-radius:var(--radius);font-size:13px;cursor:pointer;}

@media (max-width:760px){
  nav.links{
    position:fixed;top:65px;left:0;right:0;flex-direction:column;background:var(--surface);
    padding:18px 28px;gap:16px;border-bottom:1px solid var(--line);
    transform:translateY(-130%);transition:transform .25s ease;
  }
  nav.links.open{transform:translateY(0);}
  .nav-toggle{display:block;}
}

/* ---------- PAGE HERO ---------- */
.page-hero{
  padding:56px 0 40px;
  border-bottom:1px solid var(--line);
  background:var(--surface);
  min-height:300px;
  display:flex;
  align-items:center;
}
.page-hero .wrap{width:100%;}
.eyebrow{
  font-family:'IBM Plex Mono',monospace;font-size:12px;letter-spacing:0.12em;text-transform:uppercase;
  color:var(--navy-500);margin-bottom:14px;display:flex;align-items:center;gap:10px;
}

.page-hero h1{font-size:clamp(32px,5vw,48px);margin-bottom:12px;}
.page-hero p{max-width:600px;color:var(--text-muted);font-size:15.5px;}

/* big homepage hero */
.home-hero{padding:88px 0 64px;position:relative;overflow:hidden;border-bottom:1px solid var(--line);background:var(--surface);}
.home-hero .hero-palms{position:absolute;right:-30px;bottom:-20px;width:360px;opacity:0.16;z-index:0;pointer-events:none;}
.home-hero .wrap{position:relative;z-index:1;}
.home-hero h1{font-size:clamp(42px,8vw,76px);line-height:1;margin-bottom:20px;}
.home-hero h1 span{color:var(--navy-500);font-style:italic;}
.home-hero p.lede{max-width:560px;font-size:16.5px;color:var(--text-muted);margin-bottom:40px;}
.stat-row{display:flex;flex-wrap:wrap;border-top:1px solid var(--line);}
.stat{padding:16px 30px 0 0;margin-right:30px;border-right:1px solid var(--line);}
.stat:last-child{border-right:none;}
.stat .num{font-family:'Fraunces',serif;font-size:28px;color:var(--navy-800);font-weight:600;}
.stat .lbl{font-size:11px;letter-spacing:0.05em;text-transform:uppercase;color:var(--text-muted);margin-top:2px;}

/* ---------- SECTION ---------- */
section{padding:64px 0;border-bottom:1px solid var(--line);}
section:last-of-type{border-bottom:none;}
section.alt{background:var(--surface-alt);}
.section-head{display:flex;align-items:baseline;gap:16px;margin-bottom:36px;flex-wrap:wrap;}
.section-num{font-family:'IBM Plex Mono',monospace;color:var(--navy-500);font-size:13px;}
.section-head h2{font-size:clamp(24px,3.6vw,34px);}
.section-sub{color:var(--text-muted);max-width:600px;font-size:14.5px;margin:-20px 0 32px;}

/* ---------- NAV CARDS (beranda) ---------- */
.nav-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;}
.nav-card{
  display:block;padding:26px 24px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  text-decoration:none;transition:border-color .2s ease, transform .2s ease;
}
.nav-card:hover{border-color:var(--navy-500);transform:translateY(-2px);}
.nav-card .nc-num{font-family:'IBM Plex Mono',monospace;font-size:12px;color:var(--accent);}
.nav-card h3{font-size:17px;margin:10px 0 6px;color:var(--navy-900);}
.nav-card p{font-size:13px;color:var(--text-muted);margin:0;}
@media (max-width:820px){.nav-cards{grid-template-columns:1fr 1fr;}}
@media (max-width:560px){.nav-cards{grid-template-columns:1fr;}}

/* ---------- TIMELINE (sejarah) ---------- */
.sejarah-grid{display:grid;grid-template-columns:1.1fr 0.9fr;gap:52px;align-items:start;}
.sejarah-grid p{color:var(--text-muted);font-size:15px;margin-bottom:14px;}
.timeline{border-left:2px solid var(--navy-100);padding-left:22px;display:flex;flex-direction:column;gap:26px;}
.timeline .t-item{position:relative;}
.timeline .t-item::before{content:"";position:absolute;left:-28px;top:4px;width:9px;height:9px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 4px var(--surface);}
.timeline .yr{font-family:'IBM Plex Mono',monospace;color:var(--navy-500);font-size:12.5px;}
.timeline .tt{font-family:'Fraunces',serif;font-size:16.5px;margin:3px 0 2px;color:var(--navy-900);}
.timeline .td{color:var(--text-muted);font-size:13px;}

.origin-card{margin-top:48px;padding:30px;background:var(--surface-alt);border:1px solid var(--line);border-radius:var(--radius);display:flex;gap:24px;align-items:center;}
.origin-card svg{width:66px;height:66px;flex-shrink:0;}
.origin-card h3{color:var(--navy-800);font-size:18px;margin-bottom:6px;}
.origin-card p{color:var(--text-muted);font-size:14px;margin:0;}
@media (max-width:820px){.sejarah-grid{grid-template-columns:1fr;}.origin-card{flex-direction:column;text-align:center;}}

/* ---------- VIDEO EMBED (profil) ---------- */
.video-embed{
  position:relative;
  width:100%;
  max-width:820px;
  aspect-ratio:16/9;
  margin:0 auto;
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid var(--line);
  background:var(--navy-900);
}
.video-embed iframe{
  position:absolute;
  top:0;left:0;
  width:100%;
  height:100%;
  border:0;
}

/* ---------- COMPASS (wilayah) ---------- */
.wilayah-layout{display:grid;grid-template-columns:1fr 1fr;gap:52px;align-items:center;}
.compass{position:relative;width:100%;max-width:340px;aspect-ratio:1/1;margin:0 auto;border:1px solid var(--line);border-radius:50%;background:var(--surface);}
.compass::after{content:"";position:absolute;inset:30px;border:1px dashed var(--navy-100);border-radius:50%;}
.compass .center{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;}
.compass .center .num{font-family:'Fraunces',serif;font-size:24px;color:var(--navy-800);}
.compass .center .lbl{font-size:10px;text-transform:uppercase;letter-spacing:0.05em;color:var(--text-muted);}
.dir{position:absolute;text-align:center;width:120px;}
.dir .d-label{font-family:'IBM Plex Mono',monospace;font-size:10px;letter-spacing:0.1em;color:var(--navy-500);text-transform:uppercase;}
.dir .d-name{font-size:12.5px;color:var(--navy-900);margin-top:2px;}
.dir.n{top:-12px;left:50%;transform:translateX(-50%);}
.dir.s{bottom:-12px;left:50%;transform:translateX(-50%);}
.dir.w{left:-24px;top:50%;transform:translateY(-50%);text-align:right;}
.dir.e{right:-24px;top:50%;transform:translateY(-50%);text-align:left;}
@media (max-width:540px){.dir{width:90px;font-size:11px;}.dir.w{left:-4px;}.dir.e{right:-4px;}}

.wilayah-facts{display:flex;flex-direction:column;gap:16px;}
.fact-line{display:flex;justify-content:space-between;padding:13px 0;border-bottom:1px solid var(--line);}
.fact-line .k{color:var(--text-muted);font-size:14px;}
.fact-line .v{font-family:'IBM Plex Mono',monospace;color:var(--navy-800);font-size:14px;}
.landuse{display:flex;height:9px;border-radius:6px;overflow:hidden;margin-top:6px;}
.landuse .a{background:var(--navy-500);}
.landuse .b{background:var(--accent);}
.landuse-legend{display:flex;gap:20px;margin-top:10px;font-size:12px;color:var(--text-muted);}
.landuse-legend span::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px;}
.landuse-legend .leg-a::before{background:var(--navy-500);}
.landuse-legend .leg-b::before{background:var(--accent);}
@media (max-width:820px){.wilayah-layout{grid-template-columns:1fr;}}

/* ---------- LURAH LIST ---------- */
.lurah-list{display:flex;flex-direction:column;}
.lurah-row{display:grid;grid-template-columns:52px 1fr;gap:20px;padding:20px 0;border-bottom:1px solid var(--line);align-items:center;}
.lurah-row:first-child{padding-top:0;}
.lurah-row .idx{font-family:'Fraunces',serif;font-size:26px;color:var(--navy-100);}
.lurah-row .name{font-size:16px;color:var(--navy-900);font-family:'Fraunces',serif;}
.lurah-row .role{font-size:12px;color:var(--text-muted);margin-top:2px;}
.lurah-row .period{
  font-family:'IBM Plex Mono',monospace;
  font-size:11.5px;
  color:var(--navy-500);
  margin-top:4px;
}

/* ---------- BARS (penduduk) ---------- */
.penduduk-grid{display:grid;grid-template-columns:1fr 1fr;gap:52px;}
.bar-block{margin-bottom:28px;}
.bar-block .bh{display:flex;justify-content:space-between;font-size:13px;color:var(--text-muted);margin-bottom:8px;}
.bar-track{height:13px;background:var(--surface-alt);border-radius:8px;overflow:hidden;display:flex;border:1px solid var(--line);}
.bar-track .seg{height:100%;}
.seg.male{background:var(--navy-500);}
.seg.female{background:var(--accent);}
.bar-legend{display:flex;gap:18px;margin-top:8px;font-size:12px;color:var(--text-muted);}
.bar-legend span::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px;}
.bar-legend .lm::before{background:var(--navy-500);}
.bar-legend .lf::before{background:var(--accent);}
.suku-tags{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px;}
.suku-tags span{padding:8px 16px;border:1px solid var(--navy-100);border-radius:20px;font-size:13px;color:var(--navy-900);background:var(--surface);}
@media (max-width:820px){.penduduk-grid{grid-template-columns:1fr;}}

/* ---------- KOMODITAS CARDS ---------- */
.komoditas-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;}
.komoditas-grid.single-card{grid-template-columns:1fr;}
.komoditas-grid.single-card .kom-photo-card{aspect-ratio:21/8;}
@media (max-width:700px){.komoditas-grid.single-card .kom-photo-card{aspect-ratio:4/3;}}
.kom-card{padding:28px 22px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);text-align:center;}
.kom-card .ic{width:40px;height:40px;margin:0 auto 14px;}
.kom-card h3{font-size:17px;color:var(--navy-800);margin-bottom:6px;}
.kom-card p{font-size:13px;color:var(--text-muted);margin:0;}

/* full-bleed photo/video card with overlaid description */
.kom-photo-card{
  position:relative;
  padding:0;
  aspect-ratio:3/4;
  overflow:hidden;
  display:flex;
  align-items:flex-end;
}
.kom-photo-card .kom-bg-stack{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  z-index:0;
}
.kom-photo-card .kom-bg,
.kom-photo-card .kom-bg-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transition:opacity 1s ease;
}
.kom-photo-card .kom-bg.active,
.kom-photo-card .kom-bg-video.active{
  opacity:1;
}
.kom-photo-card .kom-overlay{
  position:relative;
  z-index:1;
  width:100%;
  padding:60px 22px 24px;
  text-align:left;
  background:linear-gradient(0deg, rgba(11,37,69,.92) 0%, rgba(11,37,69,.78) 45%, rgba(11,37,69,0) 100%);
  -webkit-backdrop-filter:blur(6px);
  backdrop-filter:blur(6px);
  -webkit-mask-image:linear-gradient(0deg, #000 0%, #000 55%, transparent 100%);
  mask-image:linear-gradient(0deg, #000 0%, #000 55%, transparent 100%);
}
.kom-photo-card .ic{margin:0 0 10px;}
.kom-photo-card h3{color:#fff;text-align:left;}
.kom-photo-card p{color:rgba(255,255,255,.88);text-align:left;}
/* video card: video full terlihat, deskripsi di panel terpisah di bawah */
.kom-video-card{
  padding:0;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  text-align:left;
}
.kom-video-wrap{
  position:relative;
  width:100%;
  aspect-ratio:3/1;
  max-height:320px;
  background:var(--navy-900);
}
@media (max-width:700px){
  .kom-video-wrap{aspect-ratio:16/9;max-height:220px;}
}
.kom-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.kom-video-info{
  padding:22px 22px 26px;
  text-align:left;
  background:var(--navy-900);
  color:#fff;
}
.kom-video-info .ic{
  width:32px;height:32px;margin:0 0 10px;color:var(--f-gold,#C9922E);
}
.kom-video-info h3{
  color:#fff;text-align:left;margin-bottom:6px;font-size:17px;
}
.kom-video-info p{
  color:rgba(255,255,255,.85);text-align:left;margin:0;font-size:13px;
}
@media (max-width:700px){.komoditas-grid{grid-template-columns:1fr;}}

/* ---------- FASILITAS GRID ---------- */
.fasilitas-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line);border:1px solid var(--line);}
.fas-card{background:var(--surface);padding:30px 20px;text-align:center;}
.fas-card .num{font-family:'Fraunces',serif;font-size:38px;color:var(--navy-800);}
.fas-card .lbl{font-size:12px;color:var(--text-muted);margin-top:6px;}
@media (max-width:700px){.fasilitas-grid{grid-template-columns:repeat(2,1fr);}}

.empty-box{
  border:1.5px dashed var(--navy-100);border-radius:var(--radius);background:var(--surface);
  padding:30px 26px;display:flex;align-items:flex-start;gap:16px;
}
.empty-box .dot{width:8px;height:8px;border-radius:50%;background:var(--navy-100);margin-top:6px;flex-shrink:0;}
.empty-box .body h3{font-size:15.5px;color:var(--navy-800);margin-bottom:4px;font-family:'Inter',sans-serif;font-weight:600;}
.empty-box .body p{font-size:13px;color:var(--text-muted);margin:0;}
.empty-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
@media (max-width:700px){.empty-grid{grid-template-columns:1fr;}}
.empty-gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;}
.empty-gallery .tile{aspect-ratio:4/3;border:1.5px dashed var(--navy-100);border-radius:var(--radius);display:flex;align-items:center;justify-content:center;color:var(--text-muted);font-size:11.5px;background:var(--surface);text-align:center;padding:8px;}
@media (max-width:700px){.empty-gallery{grid-template-columns:repeat(2,1fr);}}

/* ---------- FOOTER ---------- */
footer{padding:48px 0 36px;background:var(--surface);}
footer .foot-inner{display:flex;justify-content:space-between;flex-wrap:wrap;gap:16px;align-items:center;}
footer .foot-brand{display:flex;align-items:center;gap:12px;}
footer .foot-brand svg{width:24px;height:24px;}
footer .foot-brand .t1{font-family:'Fraunces',serif;font-size:14.5px;color:var(--navy-900);}
footer .foot-brand .t2{font-size:11px;color:var(--text-muted);}
footer .note{font-size:12px;color:var(--text-muted);max-width:340px;text-align:right;}
@media (max-width:700px){footer .note{text-align:left;}}
/* ================================================================
   FESTIVE THEME — opt-in via <body class="theme-festive">
   Tropical coastal palette: teal sea, coral sunset, gold spice, leaf green.
   Only applies where the class is present, so other pages are untouched
   until the class is added to them too.
   ================================================================ */
body.theme-festive{
  --f-teal:#0E8388;
  --f-teal-dark:#095A5F;
  --f-coral:#FF6B4A;
  --f-gold:#FFC145;
  --f-leaf:#3F9142;
  --f-cream:#F5FBFA;
  --f-alt:#E8F4F3;
  background:var(--f-cream);
}

.festive-topbar{height:6px;display:flex;}
.festive-topbar span{flex:1;}
.festive-topbar span:nth-child(1){background:var(--f-teal);}
.festive-topbar span:nth-child(2){background:var(--f-coral);}
.festive-topbar span:nth-child(3){background:var(--f-gold);}
.festive-topbar span:nth-child(4){background:var(--f-leaf);}

body.theme-festive header.site-nav{
  background:rgba(255,248,236,0.94);
  border-bottom:2px solid var(--f-teal);
}
body.theme-festive nav.links a.active::after{background:var(--f-coral);}
body.theme-festive nav.links a:hover{color:var(--f-teal-dark);}

.welcome-badge{
  display:inline-flex;align-items:center;gap:8px;
  background:linear-gradient(90deg,var(--f-teal),var(--f-leaf));
  color:#fff;font-family:'IBM Plex Mono',monospace;font-size:11.5px;letter-spacing:.06em;
  padding:8px 16px;border-radius:999px;margin-bottom:20px;
  box-shadow:0 8px 18px rgba(14,131,136,.32);
}

body.theme-festive .home-hero{
  background:linear-gradient(135deg,var(--f-teal-dark) 0%, var(--f-teal) 45%, #1B4C82 100%);
  border-bottom:none;overflow:visible;position:relative;
  padding-bottom:120px;
}
body.theme-festive .home-hero .eyebrow{color:var(--f-gold);}
body.theme-festive .home-hero h1{color:#fff;}
body.theme-festive .home-hero h1 span{color:var(--f-gold);font-style:italic;}
body.theme-festive .home-hero p.lede{color:rgba(255,255,255,.9);}
body.theme-festive .home-hero .hero-palms{opacity:.2;filter:brightness(0) saturate(100%) invert(1);}

body.theme-festive .stat-row{border-top:1px solid rgba(255,255,255,.28);}
body.theme-festive .stat{border-right:1px solid rgba(255,255,255,.28);position:relative;padding-left:16px;}
body.theme-festive .stat::before{content:"";position:absolute;left:0;top:22px;width:8px;height:8px;border-radius:50%;}
body.theme-festive .stat:nth-child(1)::before{background:var(--f-gold);}
body.theme-festive .stat:nth-child(2)::before{background:var(--f-coral);}
body.theme-festive .stat:nth-child(3)::before{background:#7FE3D0;}
body.theme-festive .stat:nth-child(4)::before{background:var(--f-leaf);}
body.theme-festive .stat .num{color:#fff;}
body.theme-festive .stat .lbl{color:rgba(255,255,255,.78);}

.wave-divider{position:relative;line-height:0;width:100%;}
.wave-divider svg{display:block;width:100%;height:64px;}
.wave-divider.wave-hero{margin-top:-64px;}
.wave-divider.wave-hero svg path{fill:var(--f-cream);}

body.theme-festive section.alt{background:var(--f-alt);}
body.theme-festive .section-head .section-num{color:var(--f-coral);}

body.theme-festive #peta .wrap > div > div:last-child{
  border:none;border-top:4px solid var(--f-teal);
  box-shadow:0 10px 28px rgba(14,131,136,.14);
}

body.theme-festive .nav-card{
  border:none;border-top:4px solid var(--line);
  box-shadow:0 8px 20px rgba(11,37,69,.07);
  transition:transform .25s ease, box-shadow .25s ease;
}
body.theme-festive .nav-card:hover{transform:translateY(-5px);box-shadow:0 16px 30px rgba(11,37,69,.15);}
body.theme-festive .nav-card:nth-child(1){border-top-color:var(--f-teal);}
body.theme-festive .nav-card:nth-child(2){border-top-color:var(--f-coral);}
body.theme-festive .nav-card:nth-child(3){border-top-color:var(--f-gold);}
body.theme-festive .nav-card:nth-child(4){border-top-color:var(--f-leaf);}
body.theme-festive .nav-card:nth-child(5){border-top-color:#1B4C82;}
body.theme-festive .nav-card .nc-num{color:var(--f-coral);}

body.theme-festive footer{
  border-top:6px solid transparent;
  border-image:linear-gradient(90deg,var(--f-teal),var(--f-coral),var(--f-gold),var(--f-leaf)) 1;
}

/* ---------- VISI & MISI (base, used by profil page) ---------- */
.visi-misi-grid{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:start;}
.visi-card,.misi-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:30px;}
.visi-card h3,.misi-card h3{color:var(--navy-800);font-size:18px;margin-bottom:14px;}
.visi-text{font-family:'Fraunces',serif;font-style:italic;font-size:17px;line-height:1.6;color:var(--navy-900);margin:0;}
.misi-list{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:12px;}
.misi-list li{color:var(--text-muted);font-size:14px;line-height:1.6;}
@media (max-width:820px){.visi-misi-grid{grid-template-columns:1fr;}}

/* ---------- FESTIVE: page-hero (inner pages) ---------- */
body.theme-festive .page-hero{
  background:linear-gradient(135deg,var(--f-teal-dark) 0%, var(--f-teal) 45%, #1B4C82 100%);
  border-bottom:none;padding-bottom:72px;
}
body.theme-festive .page-hero .eyebrow{color:var(--f-gold);}
body.theme-festive .page-hero h1{color:#fff;}
body.theme-festive .page-hero p{color:rgba(255,255,255,.88);max-width:600px;}

/* ---------- FESTIVE: video, timeline, origin card, compass, visi/misi ---------- */
body.theme-festive .video-embed{border:none;box-shadow:0 12px 30px rgba(14,131,136,.16);}

body.theme-festive .timeline{border-left:2px solid var(--f-teal);}
body.theme-festive .timeline .t-item::before{background:var(--f-coral);box-shadow:0 0 0 4px var(--f-cream);}
body.theme-festive .timeline .yr{color:var(--f-teal-dark);}

body.theme-festive .origin-card{background:var(--f-alt);border:none;border-left:4px solid var(--f-gold);}

body.theme-festive .compass{border:2px solid var(--f-teal);}
body.theme-festive .compass::after{border-color:var(--f-teal);opacity:.4;}
body.theme-festive .compass .center .num{color:var(--f-teal-dark);}
body.theme-festive .dir .d-label{color:var(--f-coral);}

body.theme-festive .landuse .a{background:var(--f-teal);}
body.theme-festive .landuse .b{background:var(--f-coral);}
body.theme-festive .landuse-legend .leg-a::before{background:var(--f-teal);}
body.theme-festive .landuse-legend .leg-b::before{background:var(--f-coral);}

body.theme-festive .visi-card{border:none;border-top:4px solid var(--f-teal);box-shadow:0 8px 20px rgba(14,131,136,.1);}
body.theme-festive .misi-card{border:none;border-top:4px solid var(--f-coral);box-shadow:0 8px 20px rgba(255,107,74,.1);}
body.theme-festive .visi-text{color:var(--f-teal-dark);}
body.theme-festive .misi-list li::marker{color:var(--f-coral);font-weight:600;}

/* ---------- FESTIVE: daftar lurah / organisasi ---------- */
body.theme-festive .lurah-row{border-bottom:1px solid var(--f-alt);}
body.theme-festive .lurah-row:nth-child(4n+1) .idx{color:var(--f-teal);}
body.theme-festive .lurah-row:nth-child(4n+2) .idx{color:var(--f-coral);}
body.theme-festive .lurah-row:nth-child(4n+3) .idx{color:var(--f-gold);}
body.theme-festive .lurah-row:nth-child(4n+4) .idx{color:var(--f-leaf);}
body.theme-festive .lurah-row .name{color:var(--navy-900);}
body.theme-festive .lurah-row .period{
  color:var(--f-teal-dark);
}

/* ---------- FESTIVE: kependudukan, komoditas, fasilitas ---------- */
body.theme-festive .seg.male{background:var(--f-teal);}
body.theme-festive .seg.female{background:var(--f-coral);}
body.theme-festive .bar-legend .lm::before{background:var(--f-teal);}
body.theme-festive .bar-legend .lf::before{background:var(--f-coral);}
body.theme-festive .bar-track{border:none;background:var(--f-alt);}

body.theme-festive .suku-tags span{
  border:none;background:linear-gradient(90deg,var(--f-teal),var(--f-teal-dark));color:#fff;
}
body.theme-festive .suku-tags span:nth-child(2n){background:linear-gradient(90deg,var(--f-coral),#E8532F);}
body.theme-festive .suku-tags span:nth-child(3n){background:linear-gradient(90deg,var(--f-leaf),#2E6E30);}

body.theme-festive .kom-card{border:none;box-shadow:0 8px 20px rgba(11,37,69,.07);border-top:4px solid var(--f-teal);transition:transform .25s ease;}
body.theme-festive .kom-card:hover{transform:translateY(-4px);}
body.theme-festive .komoditas-grid .kom-card:nth-child(2){border-top-color:var(--f-coral);}
body.theme-festive .komoditas-grid .kom-card:nth-child(3){border-top-color:var(--f-gold);}

body.theme-festive .fasilitas-grid{background:transparent;border:none;gap:14px;}
body.theme-festive .fas-card{border-radius:var(--radius);box-shadow:0 8px 20px rgba(11,37,69,.06);border-top:4px solid var(--f-teal);}
body.theme-festive .fasilitas-grid .fas-card:nth-child(2){border-top-color:var(--f-coral);}
body.theme-festive .fasilitas-grid .fas-card:nth-child(3){border-top-color:var(--f-gold);}
body.theme-festive .fasilitas-grid .fas-card:nth-child(4){border-top-color:var(--f-leaf);}
body.theme-festive .fas-card .num{color:var(--f-teal-dark);}

/* ---------- FESTIVE: galeri (empty state) ---------- */
body.theme-festive .empty-gallery .tile{
  border:2px dashed var(--f-teal);background:var(--f-alt);color:var(--f-teal-dark);font-weight:500;
}
body.theme-festive .empty-gallery .tile:nth-child(4n+2){border-color:var(--f-coral);color:var(--f-coral);}
body.theme-festive .empty-gallery .tile:nth-child(4n+3){border-color:var(--f-gold);color:#C79318;}
body.theme-festive .empty-gallery .tile:nth-child(4n+4){border-color:var(--f-leaf);color:var(--f-leaf);}

/* ---------- PIE CHART (kependudukan) ---------- */
.donut-block{margin-bottom:30px;}
.donut-row{display:flex;align-items:center;gap:24px;flex-wrap:wrap;}
.pie-chart{
  width:112px;height:112px;border-radius:50%;flex-shrink:0;
  --pie-a:var(--navy-500);--pie-b:var(--accent);
  background:conic-gradient(var(--pie-a) 0% var(--p1), var(--pie-b) var(--p1) 100%);
  box-shadow:0 4px 16px rgba(11,37,69,.12);
}
.donut-legend{display:flex;flex-direction:column;gap:10px;font-size:13px;color:var(--text-muted);min-width:150px;}
.donut-legend .dl-item{display:flex;align-items:center;gap:8px;}
.donut-legend .dl-item .dot{width:9px;height:9px;border-radius:50%;flex-shrink:0;background:var(--navy-500);}
.donut-legend .dl-item:nth-child(2) .dot{background:var(--accent);}
.donut-legend .dl-item .val{font-family:'IBM Plex Mono',monospace;color:var(--navy-800);margin-left:auto;font-size:12px;}

body.theme-festive .pie-chart{--pie-a:var(--f-teal);--pie-b:var(--f-coral);}
body.theme-festive .donut-legend .dl-item .dot{background:var(--f-teal);}
body.theme-festive .donut-legend .dl-item:nth-child(2) .dot{background:var(--f-coral);}
