/* ==========================================================================
   SC Dinas HTML — 06 PUPR (Dinas Pekerjaan Umum dan Penataan Ruang)
   Konsep: "lembar gambar teknik" — grid blueprint, garis dimensi, title block,
   strip hazard. Template oleh sharecode.id — Lisensi MIT.
   ========================================================================== */

/* ---------- Font (self-host, OFL) ---------- */
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Variabel desain (ganti di sini) ---------- */
:root {
  --orange: #ef6c00;        /* aksen utama */
  --orange-600: #c75600;    /* aksen gelap untuk teks kecil (kontras AA) */
  --orange-100: #fff1e3;
  --charcoal: #263238;      /* warna dasar gelap */
  --charcoal-2: #37474f;
  --charcoal-3: #455a64;
  --steel: #78909c;
  --line: #d9dde0;
  --paper: #f4f2ed;         /* latar "kertas beton" */
  --white: #ffffff;
  --text: #263238;
  --muted: #5b6b73;
  --ok: #2e7d32;
  --warn: #f9a825;
  --bad: #c62828;

  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Barlow", system-ui, sans-serif;
  --font-cond: "Barlow Condensed", "Barlow", Arial Narrow, sans-serif;

  --container: 1240px;
  --radius: 2px;
  --header-h: 78px;
  --shadow: 0 1px 2px rgba(38, 50, 56, .06), 0 8px 24px rgba(38, 50, 56, .08);
  --hazard: repeating-linear-gradient(-45deg, var(--orange) 0 14px, var(--charcoal) 14px 28px);
  --grid-dark: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px) 0 0 / 28px 28px,
               linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px) 0 0 / 28px 28px;
  --grid-light: linear-gradient(rgba(38,50,56,.06) 1px, transparent 1px) 0 0 / 28px 28px,
                linear-gradient(90deg, rgba(38,50,56,.06) 1px, transparent 1px) 0 0 / 28px 28px;
}

/* ---------- Reset ringan ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--charcoal); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--charcoal); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: -60px; z-index: 200; background: var(--orange); color: #fff; padding: .6rem 1rem; font-weight: 700; }
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Tombol ---------- */
.btn { --c: var(--charcoal); display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .78rem 1.35rem; border: 2px solid transparent; border-radius: var(--radius); font-weight: 700; font-size: .95rem; letter-spacing: .03em; text-transform: uppercase; text-decoration: none; line-height: 1.2; transition: background .2s, color .2s, border-color .2s, transform .2s; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: #d85f00; color: #fff; }
.btn-dark { background: var(--charcoal); color: #fff; }
.btn-dark:hover { background: #111a1e; color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--charcoal); }
.btn-outline { border-color: var(--charcoal); color: var(--charcoal); background: transparent; }
.btn-outline:hover { background: var(--charcoal); color: #fff; }
.btn-sm { padding: .45rem .8rem; font-size: .8rem; }
.btn-lg { padding: 1rem 1.8rem; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; color: var(--charcoal); text-decoration: none; border-bottom: 2px solid var(--orange); padding-bottom: .2rem; }
.link-arrow:hover { color: var(--orange-600); }
.link-arrow .ic { transition: transform .2s; }
.link-arrow:hover .ic { transform: translateX(4px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--charcoal); color: #cfd8dc; font-size: .85rem; position: relative; }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--hazard); }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .5rem 0 .75rem; }
.topbar ul { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; }
.topbar li { display: flex; align-items: center; gap: .4rem; }
.topbar a { color: #eceff1; text-decoration: none; }
.topbar a:hover { color: var(--orange); }
.topbar .ic { color: var(--orange); }
.tb-alert { white-space: nowrap; display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: #ffb74d !important; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 90; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.header.is-stuck { box-shadow: 0 6px 24px rgba(38,50,56,.12); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--charcoal); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--font-cond); font-size: 1.75rem; letter-spacing: .04em; }
.brand-text small { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: .25rem; }
.brand-light { color: #fff; }
.brand-light .brand-text small { color: #b0bec5; }
.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav-list { list-style: none; display: flex; align-items: center; gap: .15rem; }
.nav-list > li { position: relative; }
.nav-link { display: flex; align-items: center; gap: .3rem; padding: .6rem .8rem; font-family: var(--font-cond); font-size: 1.08rem; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; color: var(--charcoal); background: none; border: 0; position: relative; }
.nav-link::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .15rem; height: 3px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav-list > li:hover > .nav-link::after, .nav-list > li.is-active > .nav-link::after { transform: scaleX(1); }
.nav-list > li.is-active > .nav-link { color: var(--orange-600); }
.caret { width: .9em; height: .9em; transition: transform .2s; }
.sub { list-style: none; position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--charcoal); padding: .5rem 0; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; border-top: 3px solid var(--orange); }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.is-open .sub { opacity: 1; visibility: visible; transform: none; }
.has-sub:hover .caret, .has-sub.is-open .caret { transform: rotate(180deg); }
.sub a { display: block; padding: .55rem 1.1rem; color: #eceff1; text-decoration: none; font-weight: 500; }
.sub a:hover, .sub a[aria-current] { background: rgba(255,255,255,.07); color: var(--orange); }
.sub a[aria-current]::before { content: "▸ "; }
.nav-cta { padding: .65rem 1.05rem; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 2px solid var(--charcoal); background: #fff; padding: 0 10px; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; height: 2.5px; background: var(--charcoal); transition: .25s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.nav-backdrop { position: fixed; inset: 0; background: rgba(15,22,25,.55); z-index: 94; }

/* ---------- Section umum ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; position: relative; }
.section-paper { background: var(--paper); }
.section-paper::before { content: ""; position: absolute; inset: 0; background: var(--grid-light); pointer-events: none; opacity: .7; }
.section-paper > .container { position: relative; }
.section-dark { background: var(--charcoal); color: #cfd8dc; }
.section-dark::before { content: ""; position: absolute; inset: 0; background: var(--grid-dark); pointer-events: none; }
.section-dark > .container { position: relative; }
.section-dark h2, .section-dark h3 { color: #fff; }
.sec-head { margin-bottom: 2.4rem; }
.sec-tag { display: flex; align-items: center; gap: .8rem; font-family: var(--font-cond); text-transform: uppercase; letter-spacing: .14em; font-size: .92rem; color: var(--muted); margin-bottom: .9rem; }
.sec-tag.light { color: #b0bec5; }
.sec-no { color: var(--orange-600); font-weight: 700; }
.sec-tag.light .sec-no { color: var(--orange); }
.sec-line { width: 64px; height: 1px; background: currentColor; position: relative; opacity: .7; }
.sec-line::before, .sec-line::after { content: ""; position: absolute; top: -5px; width: 1px; height: 11px; background: currentColor; }
.sec-line::before { left: 0; } .sec-line::after { right: 0; }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 800; max-width: 22ch; margin: 0; }
.sec-head p { color: var(--muted); max-width: 60ch; margin: .8rem 0 0; }
.section-dark .sec-head p { color: #b0bec5; }
.lead { font-size: 1.2rem; color: var(--charcoal); font-weight: 500; }
.h-sm { font-size: 1.25rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 1rem; }
.badge { display: inline-block; padding: .18rem .55rem; background: var(--charcoal); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.badge-soft { background: var(--orange-100); color: #8a3a00; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; font-size: .85rem; color: var(--muted); }
.meta span { display: inline-flex; align-items: center; gap: .35rem; }
.dot { width: 4px; height: 4px; background: var(--orange); display: inline-block; vertical-align: middle; margin: 0 .3rem; }

/* ---------- Hero beranda ---------- */
.hero { position: relative; background: var(--charcoal); color: #eceff1; overflow: hidden; padding: 3rem 0 0; }
.hero-grid-bg { position: absolute; inset: 0; background: var(--grid-dark); }
.hero-grid-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 75% 40%, rgba(239,108,0,.18), transparent 70%); }
.hero-in { position: relative; }
.slider { position: relative; }
.slides { display: grid; }
.slide { grid-area: 1 / 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 2rem; align-items: center; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide-copy { padding: 1.5rem 0 5.5rem; }
.kicker { display: inline-flex; align-items: center; gap: .7rem; font-family: var(--font-cond); text-transform: uppercase; letter-spacing: .16em; color: #ffb74d; margin-bottom: 1.2rem; }
.kicker-no { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border: 1.5px solid var(--orange); color: #fff; letter-spacing: 0; }
.hero-title { font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 800; line-height: 1.02; color: #fff; letter-spacing: -.02em; margin-bottom: 1.2rem; max-width: 15ch; }
.hero-title em { font-style: normal; color: var(--orange); position: relative; white-space: nowrap; }
.hero-title em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .1em; background: repeating-linear-gradient(90deg, var(--orange) 0 8px, transparent 8px 12px); }
.hero-lead { font-size: 1.15rem; color: #cfd8dc; max-width: 52ch; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.slide-art { position: relative; }
.slide-art::before { content: ""; position: absolute; inset: 6% 4%; border: 1px dashed rgba(255,183,77,.35); }
.slide-art img { position: relative; width: 100%; max-height: 470px; object-fit: contain; }
.slide.is-active .slide-art img { animation: draw-in 1.2s ease both; }
@keyframes draw-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.slider-ctrl { position: absolute; left: 0; bottom: .3rem; display: flex; align-items: center; gap: .7rem; }
.slider-ctrl > button { width: 40px; height: 40px; display: grid; place-items: center; background: transparent; border: 1.5px solid rgba(255,255,255,.4); color: #fff; }
.slider-ctrl > button:hover { background: var(--orange); border-color: var(--orange); }
.sl-dots { display: flex; gap: .4rem; }
.sl-dots button { width: 44px; height: 40px; padding: 0; background: none; border: 0; display: grid; align-items: center; }
.sl-dots button span { display: block; height: 3px; background: rgba(255,255,255,.3); position: relative; overflow: hidden; }
.sl-dots button.is-active span::after { content: ""; position: absolute; inset: 0; background: var(--orange); transform-origin: left; animation: sl-prog var(--sl-dur, 7s) linear both; }
.slider.is-paused .sl-dots button.is-active span::after { animation-play-state: paused; }
@keyframes sl-prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.sl-count { font-family: var(--font-cond); letter-spacing: .1em; color: #b0bec5; margin-left: .4rem; }
.sl-count b { color: #fff; font-size: 1.2rem; }

/* title block statistik di bawah hero */
.hero-block { position: relative; display: grid; grid-template-columns: repeat(4, 1fr) .8fr; margin: 2rem 0 0; background: #fff; color: var(--charcoal); border: 2px solid var(--charcoal); border-bottom: 0; box-shadow: 0 -10px 40px rgba(0,0,0,.2); }
.hero-block > div { padding: 1.2rem 1.4rem; border-right: 1px solid var(--line); }
.hero-block > div:last-child { border-right: 0; }
.hero-block dt { display: flex; align-items: center; gap: .45rem; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.hero-block dt .ic { color: var(--orange); }
.hero-block dd { margin: .35rem 0 0; font-family: var(--font-cond); font-size: 2.6rem; line-height: 1; color: var(--charcoal); }
.hero-block dd small { font-family: var(--font-body); font-size: .95rem; font-weight: 600; color: var(--muted); }
.hb-note { background: var(--orange); }
.hb-note dt { color: #fff; }
.hb-note dd { color: #fff; font-size: 1.7rem; }

/* ticker info pekerjaan */
.hazard-ticker { background: var(--charcoal); color: #fff; border-top: 6px solid transparent; border-image: var(--hazard) 6; }
.ticker-in { display: flex; align-items: center; gap: 1rem; padding: .7rem 0; overflow: hidden; }
.ticker-label { flex: none; display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-cond); text-transform: uppercase; letter-spacing: .1em; color: #ffb74d; padding-right: 1rem; border-right: 1px solid rgba(255,255,255,.2); }
.ticker-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.ticker-move { display: flex; gap: 3rem; width: max-content; animation: ticker 50s linear infinite; }
.ticker-move span { white-space: nowrap; font-size: .95rem; }
.ticker-move span::before { content: "■"; color: var(--orange); margin-right: .7rem; font-size: .7em; vertical-align: .15em; }
.hazard-ticker:hover .ticker-move { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Layanan (spec list) ---------- */
.services-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3.5rem; align-items: start; }
.services-intro { position: sticky; top: calc(var(--header-h) + 2rem); }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); margin-bottom: 1.6rem; }
.mini-stats div { padding: 1rem 1.2rem; }
.mini-stats div + div { border-left: 1px solid var(--line); }
.mini-stats strong { display: block; font-family: var(--font-cond); font-size: 2.3rem; line-height: 1; color: var(--orange-600); }
.mini-stats span { font-size: .85rem; color: var(--muted); }
.spec-list { list-style: none; border-top: 2px solid var(--charcoal); counter-reset: s; }
.spec-list li { border-bottom: 1px solid var(--line); }
.spec-list a { display: grid; grid-template-columns: 3rem 3.2rem 1fr auto 2rem; align-items: center; gap: 1rem; padding: 1.25rem .6rem; text-decoration: none; color: var(--charcoal); position: relative; transition: background .25s, padding .25s; }
.spec-list a::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--orange); transition: width .25s; }
.spec-list a:hover { background: var(--paper); padding-left: 1.2rem; }
.spec-list a:hover::before { width: 4px; }
.spec-no { font-family: var(--font-cond); font-size: 1.5rem; color: var(--steel); }
.spec-ic { width: 3.2rem; height: 3.2rem; display: grid; place-items: center; background: var(--charcoal); color: var(--orange); clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%); }
.spec-ic .ic { width: 1.5rem; height: 1.5rem; }
.spec-text strong { display: block; font-size: 1.12rem; }
.spec-text small { display: block; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.spec-time { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--charcoal-3); background: var(--orange-100); padding: .3rem .6rem; white-space: nowrap; }
.spec-go { color: var(--orange-600); transition: transform .25s; }
.spec-list a:hover .spec-go { transform: translateX(5px); }

/* ---------- Kondisi jalan ---------- */
.roads-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; }
.map-card { margin: 0; background: #fff; border: 1px solid var(--line); padding: 1rem; position: relative; }
.map-card::before, .map-card::after { content: ""; position: absolute; width: 22px; height: 22px; border: 3px solid var(--orange); }
.map-card::before { top: -6px; left: -6px; border-right: 0; border-bottom: 0; }
.map-card::after { bottom: -6px; right: -6px; border-left: 0; border-top: 0; }
.map-card figcaption { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; padding: .9rem .3rem 0; font-size: .88rem; color: var(--muted); }
.map-card figcaption span { display: inline-flex; align-items: center; gap: .45rem; }
.lg { display: inline-block; width: 22px; height: 5px; }
.lg-road { background: var(--charcoal-2); } .lg-work { background: repeating-linear-gradient(90deg, var(--orange) 0 4px, transparent 4px 7px); } .lg-river { background: #5d8aa8; }
.cond-card { background: #fff; border: 1px solid var(--line); padding: 1.6rem; }
.donut-row { display: flex; align-items: center; gap: 1.8rem; padding-bottom: 1.4rem; border-bottom: 1px dashed var(--line); margin-bottom: 1.2rem; }
.donut { --b: 50; --s: 25; --r: 15; width: 150px; aspect-ratio: 1; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--ok) 0 calc(var(--b) * 1%), #7cb342 0 calc((var(--b) + var(--s)) * 1%), var(--warn) 0 calc((var(--b) + var(--s) + var(--r)) * 1%), var(--bad) 0 100%); }
.donut-hole { width: 64%; aspect-ratio: 1; border-radius: 50%; background: #fff; display: grid; place-content: center; text-align: center; }
.donut-hole strong { font-family: var(--font-cond); font-size: 1.7rem; line-height: 1; }
.donut-hole span { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.legend { list-style: none; display: grid; gap: .45rem; font-size: .95rem; }
.legend li { display: flex; align-items: center; gap: .55rem; }
.legend b { margin-left: auto; padding-left: 1rem; font-family: var(--font-cond); font-size: 1.1rem; }
.legend i, .stack span { display: inline-block; }
.legend i { width: 14px; height: 14px; }
.c-b { background: var(--ok); } .c-s { background: #7cb342; } .c-r { background: var(--warn); } .c-rb { background: var(--bad); }
.stack-list { list-style: none; display: grid; gap: .75rem; }
.stack-label { display: flex; justify-content: space-between; font-size: .9rem; font-weight: 600; margin-bottom: .25rem; }
.stack-label small { color: var(--muted); font-weight: 500; }
.stack { display: flex; height: 12px; background: var(--paper); overflow: hidden; }
.stack span { height: 100%; transform-origin: left; transition: transform 1s ease; }
.reveal:not(.is-visible) .stack span { transform: scaleX(0); }

/* ---------- Proyek ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.chip { padding: .55rem 1.1rem; border: 1.5px solid var(--charcoal); background: transparent; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--charcoal); transition: .2s; }
.chip:hover { background: var(--orange-100); }
.chip.is-active { background: var(--charcoal); color: #fff; box-shadow: 4px 4px 0 var(--orange); }
.proj-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.proj-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--charcoal); padding: 1.3rem; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s; }
.proj-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-top-color: var(--orange); }
.proj-card header { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .8rem; }
.proj-bidang { font-family: var(--font-cond); text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; color: var(--orange-600); }
.proj-card h3 { font-size: 1.12rem; line-height: 1.3; margin-bottom: 1rem; }
.proj-meta { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem .8rem; margin: 0 0 1.2rem; font-size: .85rem; }
.proj-meta dt { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.proj-meta dd { margin: 0; font-weight: 600; line-height: 1.3; }
.progress { margin-top: auto; }
.progress-top { display: flex; justify-content: space-between; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .35rem; }
.progress-top strong { font-family: var(--font-cond); font-size: 1.2rem; color: var(--charcoal); letter-spacing: 0; }
.bar { height: 8px; background: var(--paper); position: relative; overflow: hidden; }
.bar span { position: absolute; inset: 0 auto 0 0; width: var(--w); background: repeating-linear-gradient(-45deg, var(--orange) 0 6px, #f57c00 6px 12px); transition: width 1.2s ease; }
.reveal:not(.is-visible) .bar span, [data-filter-scope] .proj-card:not(.is-visible) .bar span { width: 0; }
.status { display: inline-block; padding: .15rem .5rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border: 1.5px solid; white-space: nowrap; }
.status-run { color: #8a3a00; border-color: var(--orange); background: var(--orange-100); }
.status-test { color: #1e4a6b; border-color: #5d8aa8; background: #e6f0f6; }
.status-done { color: #1b5e20; border-color: #43a047; background: #e8f5e9; }

/* ---------- Kepala dinas ---------- */
.kadis-grid { display: grid; grid-template-columns: 380px 1fr; gap: 4rem; align-items: center; }
.kadis-photo { margin: 0; position: relative; padding: 0 0 2.5rem 2.5rem; }
.kadis-photo::before { content: ""; position: absolute; left: 0; bottom: 0; width: 75%; height: 75%; background: var(--hazard); opacity: .9; }
.kadis-photo img { position: relative; width: 100%; border: 6px solid #fff; box-shadow: var(--shadow); }
.kadis-photo figcaption { position: absolute; right: -1.5rem; bottom: 1rem; background: var(--charcoal); color: #fff; padding: .9rem 1.2rem; max-width: 80%; }
.kadis-photo figcaption strong { display: block; font-size: 1rem; }
.kadis-photo figcaption span { font-size: .8rem; color: #b0bec5; }
.kadis-text blockquote { margin: 0 0 1.4rem; padding-left: 1.4rem; border-left: 4px solid var(--orange); }
.kadis-text blockquote p { font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.35; font-weight: 600; color: var(--charcoal); margin: 0; }
.kadis-text > p { color: var(--muted); margin-bottom: 1.6rem; }

/* ---------- Berita ---------- */
.news-home-grid { display: grid; grid-template-columns: 1.25fr 1fr .9fr; gap: 1.6rem; }
.news-card { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.news-img { display: block; overflow: hidden; aspect-ratio: 16 / 10; position: relative; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.news-card:hover .news-img img { transform: scale(1.05); }
.news-body { padding: 1.25rem 1.3rem 1.4rem; }
.news-body .meta { margin-bottom: .6rem; }
.news-body h3 { font-size: 1.18rem; line-height: 1.3; margin-bottom: .5rem; }
.news-body h3 a, .news-row h3 a { color: var(--charcoal); text-decoration: none; background: linear-gradient(var(--orange), var(--orange)) 0 100% / 0 2px no-repeat; transition: background-size .3s; }
.news-body h3 a:hover, .news-row h3 a:hover { background-size: 100% 2px; }
.news-body p { color: var(--muted); font-size: .95rem; margin: 0; }
.news-card.is-feature h3 { font-size: 1.55rem; }
.news-side { display: grid; gap: 1rem; align-content: start; }
.news-row { display: grid; grid-template-columns: 130px 1fr; gap: 1rem; background: #fff; border: 1px solid var(--line); padding: .7rem; }
.news-row-img { aspect-ratio: 4 / 3; overflow: hidden; }
.news-row-img img { width: 100%; height: 100%; object-fit: cover; }
.news-row .meta { font-size: .78rem; margin-bottom: .35rem; }
.news-row h3 { font-size: 1rem; line-height: 1.3; margin: 0; }
.board { background: var(--charcoal); color: #eceff1; display: flex; flex-direction: column; position: relative; }
.board::before { content: ""; height: 8px; background: var(--hazard); }
.board-head { padding: 1.1rem 1.3rem .4rem; }
.board-head h3 { color: #fff; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .06em; display: flex; align-items: center; gap: .5rem; margin: 0; }
.board-head .ic { color: var(--orange); }
.board-list { list-style: none; padding: 0 1.3rem; flex: 1; }
.board-list li { padding: .95rem 0; border-bottom: 1px dashed rgba(255,255,255,.18); display: grid; gap: .35rem; }
.board-list a { color: #fff; text-decoration: none; font-weight: 600; line-height: 1.35; }
.board-list a:hover { color: #ffb74d; }
.board-list time { font-size: .8rem; color: #90a4ae; }
.board-more { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.3rem; color: #fff; background: rgba(255,255,255,.06); text-decoration: none; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.board-more:hover { background: var(--orange); color: #fff; }
.tag { justify-self: start; display: inline-block; padding: .12rem .5rem; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tag-lelang { background: var(--orange); color: #fff; }
.tag-pengumuman { background: #eceff1; color: var(--charcoal); }
.tag-hasil { background: #43a047; color: #fff; }
.tag-undangan { background: #5d8aa8; color: #fff; }

/* ---------- Agenda & mosaik ---------- */
.agenda-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.agenda-list { list-style: none; display: grid; gap: 0; border-left: 2px solid var(--charcoal); margin-left: 1.7rem; }
.agenda-list li { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; padding: 0 0 1.5rem 0; margin-left: -1.75rem; }
.date-chip { width: 3.5rem; text-align: center; background: var(--charcoal); color: #fff; border: 3px solid #fff; outline: 2px solid var(--charcoal); flex: none; }
.date-chip b { display: block; font-family: var(--font-cond); font-size: 1.5rem; line-height: 1.1; padding-top: .2rem; }
.date-chip span { display: block; background: var(--orange); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.agenda-list h3 { font-size: 1.08rem; margin: .2rem 0 .3rem; }
.agenda-list p { font-size: .88rem; color: var(--muted); margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.agenda-list p .ic { color: var(--orange-600); }
.agenda-list.compact { margin-left: 1.6rem; }
.agenda-list.compact h3 { font-size: .98rem; }
.agenda-list.compact p { display: block; }
.mosaic { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 150px 150px 150px; gap: .8rem; }
.mosaic a { position: relative; overflow: hidden; display: block; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.mosaic a:hover img { transform: scale(1.06); }
.mosaic .m1 { grid-row: span 2; }
.mosaic .m4 { grid-column: 1 / -1; }
.play-badge { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; display: grid; place-items: center; background: var(--orange); color: #fff; clip-path: polygon(0 0, 100% 0, 100% 75%, 75% 100%, 0 100%); }
.play-badge .ic { width: 1.5rem; height: 1.5rem; fill: currentColor; }

/* ---------- CTA band & footer ---------- */
.cta-band { background: var(--orange); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(0,0,0,.06) 0 20px, transparent 20px 40px); }
.cta-in { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; padding: 2.4rem 0; }
.cta-sign { width: 72px; height: 72px; display: grid; place-items: center; background: var(--charcoal); color: #ffb74d; transform: rotate(45deg); }
.cta-sign .ic { width: 2rem; height: 2rem; transform: rotate(-45deg); }
.cta-text h2 { color: #fff; font-size: clamp(1.3rem, 2.4vw, 1.75rem); margin-bottom: .3rem; }
.cta-text p { margin: 0; color: #fff3e0; }
.cta-act { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.cta-phone { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-family: var(--font-cond); font-size: 1.5rem; line-height: 1.1; }
.cta-phone small { display: block; font-family: var(--font-body); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.cta-phone .ic { width: 1.8rem; height: 1.8rem; }
.cta-phone:hover { color: var(--charcoal); }
.footer { background: #1c252a; color: #b0bec5; padding-top: 4rem; position: relative; }
.footer::before { content: ""; position: absolute; inset: 0; background: var(--grid-dark); opacity: .6; pointer-events: none; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.4fr; gap: 2.5rem; padding-bottom: 3rem; }
.f-brand p { margin: 1.2rem 0; font-size: .95rem; }
.f-title { color: #fff; font-family: var(--font-cond); text-transform: uppercase; letter-spacing: .12em; font-size: 1.1rem; margin-bottom: 1.1rem; padding-bottom: .6rem; border-bottom: 1px solid rgba(255,255,255,.12); position: relative; }
.f-title::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 36px; height: 3px; background: var(--orange); }
.f-links, .f-contact, .socials { list-style: none; }
.f-links li { margin-bottom: .55rem; }
.f-links a, .f-contact a { color: #cfd8dc; text-decoration: none; }
.f-links a:hover, .f-contact a:hover { color: var(--orange); }
.f-links a::before { content: "— "; color: var(--orange); }
.f-contact li { display: flex; gap: .7rem; margin-bottom: .8rem; font-size: .95rem; }
.f-contact .ic { color: var(--orange); margin-top: .25rem; }
.socials { display: flex; gap: .5rem; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); color: #fff; transition: .2s; }
.socials a:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.footer-block { position: relative; border-top: 1px solid rgba(255,255,255,.1); background: #151c20; font-size: .88rem; }
.fb-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; padding: 1.1rem 0; }
.footer-block a { color: #ffb74d; }
.to-top { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 80; width: 48px; height: 48px; display: grid; place-items: center; background: var(--charcoal); color: #fff; border: 2px solid var(--orange); opacity: 0; visibility: hidden; transform: translateY(12px); transition: .3s; }
.to-top.is-show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--orange); }
.toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 300; transform: translate(-50%, 150%); background: var(--charcoal); color: #fff; padding: .95rem 1.3rem; border-left: 5px solid var(--orange); box-shadow: var(--shadow); max-width: min(92vw, 520px); transition: transform .35s, visibility .35s; visibility: hidden; }
.toast.is-show { transform: translate(-50%, 0); visibility: visible; }
.toast.is-error { border-left-color: var(--bad); }

/* ---------- Page hero (halaman dalam) ---------- */
.page-hero { background: var(--charcoal); color: #cfd8dc; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: var(--grid-dark); }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px; border: 1px dashed rgba(255,183,77,.3); border-radius: 50%; box-shadow: 0 0 0 60px rgba(255,255,255,.02); }
.page-hero-in { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; padding: 3.2rem 0 2.6rem; }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; margin-bottom: .5rem; }
.page-hero p { max-width: 62ch; margin: 0; color: #b0bec5; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; font-size: .85rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.crumbs li + li::before { content: "/"; margin-right: .3rem; color: var(--orange); }
.crumbs a { color: #cfd8dc; text-decoration: none; }
.crumbs a:hover { color: var(--orange); }
.crumbs [aria-current] { color: #ffb74d; }
.title-block { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; border: 1.5px solid rgba(255,255,255,.4); flex: none; min-width: 260px; font-size: .78rem; }
.title-block div { padding: .45rem .7rem; border-right: 1px solid rgba(255,255,255,.25); border-bottom: 1px solid rgba(255,255,255,.25); }
.title-block div:nth-child(2n) { border-right: 0; }
.title-block div:nth-last-child(-n+2) { border-bottom: 0; }
.title-block dt { text-transform: uppercase; letter-spacing: .1em; color: #90a4ae; font-size: .68rem; }
.title-block dd { margin: 0; font-family: var(--font-cond); font-size: 1.1rem; color: #fff; letter-spacing: .04em; }
.title-block div:first-child dd { color: var(--orange); }
.page-hero + .section { border-top: 6px solid transparent; border-image: var(--hazard) 6; }

/* ---------- Profil ---------- */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: start; }
.timeline ol { list-style: none; position: relative; border-left: 2px dashed var(--steel); margin-left: .5rem; }
.timeline li { position: relative; padding: 0 0 1.6rem 1.8rem; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: .35rem; width: 16px; height: 16px; background: #fff; border: 3px solid var(--orange); transform: rotate(45deg); }
.timeline b { display: block; font-family: var(--font-cond); font-size: 1.8rem; line-height: 1; color: var(--charcoal); }
.timeline span { color: var(--muted); }
.vm-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; }
.visi { font-size: clamp(1.5rem, 2.8vw, 2.2rem); font-weight: 700; line-height: 1.3; color: #fff; }
.misi { list-style: none; counter-reset: m; display: grid; gap: .8rem; }
.misi li { counter-increment: m; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: start; padding: .9rem 1rem; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); color: #eceff1; }
.misi li::before { content: counter(m, decimal-leading-zero); font-family: var(--font-cond); font-size: 1.6rem; color: var(--orange); line-height: 1; }
.tabs .tab-list { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 2px solid var(--charcoal); margin-bottom: 1.6rem; }
.tab-list [role="tab"] { padding: .8rem 1.2rem; background: none; border: 0; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .9rem; color: var(--muted); position: relative; }
.tab-list [role="tab"]:hover { color: var(--charcoal); }
.tab-list [role="tab"][aria-selected="true"] { background: var(--charcoal); color: #fff; }
.tab-list [role="tab"][aria-selected="true"]::after { content: ""; position: absolute; left: 50%; bottom: -8px; margin-left: -7px; border: 7px solid transparent; border-bottom: 0; border-top-color: var(--charcoal); }
.tab-panel { animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tp-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; background: #fff; border: 1px solid var(--line); padding: 2rem; }
.tp-grid h3 { font-size: 1.6rem; }
.tp-grid p { color: var(--muted); }
.check-list { list-style: none; display: grid; gap: .7rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; }
.check-list .ic { color: #fff; background: var(--orange); padding: 3px; width: 1.4rem; height: 1.4rem; margin-top: .1rem; }
.org { display: grid; gap: 1.6rem; justify-items: center; }
.org-node { background: #fff; border: 1.5px solid var(--charcoal); padding: .9rem 1.1rem; text-align: center; position: relative; min-width: 210px; }
.org-node small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--orange-600); font-weight: 700; }
.org-node strong { display: block; font-size: .98rem; line-height: 1.3; }
.org-node.lead { background: var(--charcoal); color: #fff; padding: 1.1rem 1.8rem; }
.org-node.lead small { color: #ffb74d; }
.org-node.side { border-style: dashed; background: transparent; max-width: 260px; }
.org-node.alt { background: var(--orange-100); }
.org-sub { list-style: none; margin-top: .6rem; padding-top: .6rem; border-top: 1px dashed var(--line); font-size: .82rem; color: var(--muted); }
.org-top, .org-mid, .org-row, .org-uptd { position: relative; width: 100%; display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.org-top::after, .org-mid::after { content: ""; position: absolute; left: 50%; bottom: -1.6rem; height: 1.6rem; border-left: 2px solid var(--charcoal); }
.org-mid { justify-content: center; gap: 3rem; }
.org-row { padding-top: 1rem; border-top: 2px solid var(--charcoal); width: auto; }
.org-row .org-node { flex: 1 1 180px; max-width: 220px; }
.org-row .org-node::before { content: ""; position: absolute; left: 50%; top: calc(-1rem - 2px); height: 1rem; border-left: 2px solid var(--charcoal); }
.org-uptd { gap: 1rem; }
.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 2px solid var(--charcoal); border-left: 1px solid var(--line); }
.fact-grid div { padding: 1.1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact-grid dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.fact-grid dd { margin: .3rem 0 0; font-family: var(--font-cond); font-size: 1.55rem; line-height: 1.1; }

/* ---------- Akordeon ---------- */
.accordion { border-top: 2px solid var(--charcoal); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item h3, .acc-item h4 { margin: 0; font-size: 1.05rem; }
.acc-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; text-align: left; padding: 1.1rem .2rem; background: none; border: 0; font-weight: 700; color: var(--charcoal); }
.acc-btn:hover { color: var(--orange-600); }
.acc-btn .ic { transition: transform .25s; color: var(--orange-600); }
.acc-btn[aria-expanded="true"] .ic { transform: rotate(180deg); }
.acc-panel { padding: 0 .2rem 1.1rem; color: var(--muted); }
.acc-panel p { margin: 0; }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: start; }
.section-paper .accordion { background: #fff; padding: 0 1.4rem; border-top-width: 4px; }

/* ---------- Pejabat ---------- */
.lead-official { display: grid; grid-template-columns: 300px 1fr; gap: 3rem; align-items: center; background: var(--paper); padding: 2rem; margin-bottom: 4rem; position: relative; border-left: 6px solid var(--orange); }
.lead-official img { border: 5px solid #fff; box-shadow: var(--shadow); }
.lead-official h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.lead-official p { color: var(--muted); }
.kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem 1.5rem; margin: 1rem 0 1.4rem; }
.kv dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.official-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.official { background: #fff; border: 1px solid var(--line); transition: .25s; }
.official:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.official-img { aspect-ratio: 5 / 6; overflow: hidden; position: relative; }
.official-img img { width: 100%; height: 100%; object-fit: cover; }
.official-img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--hazard); }
.official-body { padding: 1.1rem 1.2rem 1.3rem; }
.official-jab { display: block; font-family: var(--font-cond); color: var(--orange-600); text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; margin-bottom: .2rem; }
.official h3 { font-size: 1.1rem; margin-bottom: .7rem; }
.official dl { margin: 0; font-size: .85rem; display: grid; gap: .3rem; }
.official dl div { display: flex; justify-content: space-between; gap: .5rem; border-top: 1px dashed var(--line); padding-top: .3rem; }
.official dt { color: var(--muted); }
.official dd { margin: 0; text-align: right; font-weight: 600; }
.search-mini { display: flex; align-items: center; gap: .5rem; border: 1.5px solid var(--charcoal); padding: 0 .8rem; background: #fff; }
.search-mini input { border: 0; padding: .65rem 0; outline: none; min-width: 220px; background: transparent; }
.search-mini:focus-within { box-shadow: 4px 4px 0 var(--orange); }
.note { display: flex; gap: 1rem; align-items: flex-start; background: var(--orange-100); border-left: 4px solid var(--orange); padding: 1rem 1.2rem; margin-top: 2rem; }
.note .ic { color: var(--orange-600); margin-top: .25rem; }
.note p { margin: 0; font-size: .95rem; }
.empty { padding: 2rem; text-align: center; color: var(--muted); border: 1.5px dashed var(--line); margin-top: 1rem; }

/* ---------- Toolbar, tabel ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-bottom: 1.6rem; }
.search-field { flex: 1 1 320px; display: flex; align-items: center; gap: .6rem; background: #fff; border: 1.5px solid var(--charcoal); padding: 0 1rem; }
.search-field:focus-within, .select-field:focus-within { box-shadow: 4px 4px 0 var(--orange); }
.search-field input { flex: 1; border: 0; padding: .85rem 0; outline: none; background: transparent; min-width: 0; }
.select-field select { appearance: none; border: 1.5px solid var(--charcoal); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23263238' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .8rem center / 16px; padding: .85rem 2.6rem .85rem 1rem; outline: none; border-radius: 0; }
.result-count { margin-left: auto; font-size: .85rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: .9rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table thead th { background: var(--charcoal); color: #fff; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.table tbody tr:hover { background: #fbfaf7; }
.table td[data-label="Nilai"], .table td[data-label="Progres"] { white-space: nowrap; }
.table-kv th { width: 34%; background: var(--paper); font-weight: 700; color: var(--charcoal); }
.mini-bar { width: 90px; height: 6px; background: var(--paper); display: inline-block; vertical-align: middle; margin-right: .5rem; position: relative; }
.mini-bar span { position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--orange); }
.doc-name { display: flex; gap: .7rem; align-items: flex-start; font-weight: 600; }
.doc-name .ic { color: var(--orange-600); width: 1.4rem; height: 1.4rem; margin-top: .1rem; }
.doc-name small { display: block; color: var(--muted); font-weight: 500; font-size: .8rem; }
.fmt { display: inline-block; font-family: var(--font-cond); font-size: .9rem; padding: .05rem .45rem; border: 1.5px solid; letter-spacing: .06em; }
.fmt-pdf { color: var(--bad); } .fmt-xlsx { color: var(--ok); } .fmt-docx { color: #1e5b8c; }
.doc-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: .8rem; margin-bottom: 2rem; }
.doc-stat { background: var(--paper); border: 1px solid var(--line); padding: 1rem; text-align: left; transition: .2s; border-bottom: 3px solid var(--charcoal); }
.doc-stat:hover, .doc-stat.is-active { border-bottom-color: var(--orange); background: #fff; box-shadow: var(--shadow); }
.doc-stat strong { display: block; font-family: var(--font-cond); font-size: 2rem; line-height: 1; }
.doc-stat span { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }

/* ---------- Program ---------- */
.budget-grid { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; align-items: start; }
.hbars { list-style: none; display: grid; gap: 1.1rem; }
.hbars li { display: grid; gap: .4rem; }
.hb-label strong { display: block; font-size: 1.02rem; }
.hb-label small { color: var(--muted); font-size: .85rem; }
.hb-bar { display: flex; align-items: center; gap: .8rem; }
.hb-bar span { height: 22px; width: var(--w); min-width: 6px; background: linear-gradient(90deg, var(--charcoal), var(--charcoal-3)); position: relative; transition: width 1.2s ease; }
.hb-bar span::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 6px; background: var(--orange); }
.reveal:not(.is-visible) .hb-bar span { width: 0; }
.hb-bar b { font-family: var(--font-cond); font-size: 1.15rem; white-space: nowrap; }
.budget-sum { background: var(--charcoal); color: #cfd8dc; padding: 1.6rem; display: grid; gap: 1.2rem; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.budget-sum::before { content: ""; height: 6px; margin: -1.6rem -1.6rem 0; background: var(--hazard); }
.bs-item span { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.bs-item strong { font-family: var(--font-cond); font-size: 2rem; color: #fff; line-height: 1.1; display: block; margin-bottom: .3rem; }
.budget-sum .bar { background: rgba(255,255,255,.12); }
.budget-sum .link-arrow { color: #fff; }
.routine-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); }
.routine { padding: 1.8rem 1.5rem; border-right: 1px solid var(--line); position: relative; transition: background .25s; }
.routine:last-child { border-right: 0; }
.routine:hover { background: var(--paper); }
.routine-ic { width: 3.2rem; height: 3.2rem; display: grid; place-items: center; border: 2px solid var(--orange); color: var(--orange-600); margin-bottom: 1rem; }
.routine-ic .ic { width: 1.5rem; height: 1.5rem; }
.routine h3 { font-size: 1.15rem; }
.routine p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Layanan ---------- */
.svc-tabs { display: grid; grid-template-columns: 320px 1fr; gap: 2rem; align-items: start; }
.svc-tabs .tab-list.vertical { flex-direction: column; border-bottom: 0; border-left: 2px solid var(--charcoal); margin: 0; }
.svc-tabs .tab-list [role="tab"] { display: flex; align-items: center; gap: .8rem; text-align: left; padding: 1rem 1.1rem; text-transform: none; letter-spacing: 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
.svc-tabs .tab-list [role="tab"] .ic { color: var(--orange-600); width: 1.4rem; height: 1.4rem; }
.svc-tabs .tab-list [role="tab"][aria-selected="true"] .ic { color: var(--orange); }
.svc-tabs .tab-list [role="tab"][aria-selected="true"]::after { left: auto; right: -8px; bottom: auto; top: 50%; margin: -7px 0 0; border: 7px solid transparent; border-right: 0; border-left-color: var(--charcoal); }
.svc-panel { background: #fff; border: 1px solid var(--line); padding: 2rem; position: relative; }
.svc-panel::before { content: ""; position: absolute; top: -1px; right: -1px; width: 48px; height: 48px; background: linear-gradient(225deg, var(--orange) 50%, transparent 50%); }
.svc-panel h3 { font-size: 1.7rem; padding-right: 3rem; }
.svc-panel h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin: 1.6rem 0 .8rem; }
.svc-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 1rem 0 0; border: 1px solid var(--line); }
.svc-facts div { padding: 1rem; border-right: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 0 .6rem; align-items: start; }
.svc-facts div:last-child { border-right: 0; }
.svc-facts .ic { grid-row: span 2; color: var(--orange-600); width: 1.4rem; height: 1.4rem; margin-top: .2rem; }
.svc-facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.svc-facts dd { margin: 0; font-weight: 700; line-height: 1.35; }
.req-list { list-style: none; counter-reset: r; display: grid; gap: .55rem; }
.req-list li { counter-increment: r; display: grid; grid-template-columns: 2.2rem 1fr; gap: .6rem; align-items: start; }
.req-list li::before { content: counter(r, decimal-leading-zero); font-family: var(--font-cond); font-size: 1.05rem; color: #fff; background: var(--charcoal); text-align: center; line-height: 1.6; }
.svc-act { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.flow { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.flow::before { content: ""; position: absolute; left: 4%; right: 4%; top: 2.1rem; border-top: 2px dashed rgba(255,183,77,.5); }
.flow li { position: relative; padding: 0 1rem; text-align: center; }
.flow-no { position: absolute; top: -.3rem; right: 1.2rem; font-family: var(--font-cond); font-size: 2.6rem; color: rgba(255,255,255,.08); line-height: 1; }
.flow-ic { width: 4.2rem; height: 4.2rem; margin: 0 auto 1rem; display: grid; place-items: center; background: var(--orange); color: #fff; transform: rotate(45deg); position: relative; }
.flow-ic .ic { transform: rotate(-45deg); width: 1.6rem; height: 1.6rem; }
.flow h3 { font-size: 1.15rem; margin-top: 1.4rem; }
.flow p { font-size: .92rem; color: #b0bec5; margin: 0; }
.std-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
.maklumat { background: var(--paper); border: 2px solid var(--charcoal); padding: 2.2rem 1.8rem 1.8rem; position: relative; margin-top: 4.5rem; }
.maklumat-label { position: absolute; top: -1rem; left: 1.5rem; background: var(--orange); color: #fff; font-family: var(--font-cond); text-transform: uppercase; letter-spacing: .12em; padding: .3rem .9rem; }
.maklumat p { font-size: 1.15rem; font-weight: 500; font-style: italic; color: var(--charcoal); }
.maklumat strong { font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Pengumuman ---------- */
.ann-grid, .article-grid, .complaint-grid { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; }
.ann-list { list-style: none; display: grid; gap: .9rem; }
.ann { display: grid; grid-template-columns: 130px 1fr auto; gap: 1.2rem; align-items: center; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--charcoal); padding: 1.1rem 1.2rem; transition: .2s; }
.ann:hover { border-left-color: var(--orange); box-shadow: var(--shadow); }
.ann-date { display: flex; align-items: center; gap: .45rem; font-family: var(--font-cond); font-size: 1.05rem; color: var(--charcoal-3); }
.ann-date .ic { color: var(--orange-600); }
.ann-meta { display: flex; align-items: center; gap: .7rem; font-size: .8rem; color: var(--muted); margin-bottom: .3rem; }
.ann h3 { font-size: 1.08rem; margin: 0; line-height: 1.35; }

/* ---------- Sidebar & widget ---------- */
.sidebar { display: grid; gap: 1.5rem; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.widget { background: #fff; border: 1px solid var(--line); padding: 1.4rem; }
.widget-title { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; padding-bottom: .7rem; margin-bottom: 1rem; border-bottom: 2px solid var(--charcoal); display: flex; align-items: center; gap: .5rem; }
.widget-title .ic { color: var(--orange-600); }
.widget-dark { background: var(--charcoal); color: #cfd8dc; border: 0; position: relative; overflow: hidden; }
.widget-dark::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--hazard); }
.widget-dark .widget-title { color: #fff; border-color: rgba(255,255,255,.2); }
.widget-dark .f-contact a { color: #fff; }
.search-form { display: flex; border: 1.5px solid var(--charcoal); }
.search-form input { flex: 1; border: 0; padding: .7rem .8rem; outline: none; min-width: 0; }
.search-form button { border: 0; background: var(--charcoal); color: #fff; width: 46px; }
.mini-news { list-style: none; display: grid; gap: .9rem; }
.mini-news a { display: grid; grid-template-columns: 84px 1fr; gap: .8rem; text-decoration: none; color: var(--charcoal); }
.mini-news img { aspect-ratio: 1; object-fit: cover; width: 84px; height: 84px; }
.mini-news strong { display: block; font-size: .92rem; line-height: 1.3; }
.mini-news small { color: var(--muted); }
.mini-news a:hover strong { color: var(--orange-600); }
.cat-list { list-style: none; }
.cat-list a { display: flex; justify-content: space-between; padding: .55rem 0; border-bottom: 1px dashed var(--line); text-decoration: none; color: var(--charcoal); font-weight: 600; }
.cat-list a:hover { color: var(--orange-600); }
.cat-list span { font-family: var(--font-cond); background: var(--paper); padding: 0 .5rem; }

/* ---------- Artikel ---------- */
.article-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; margin: .8rem 0 1rem; }
.article-fig { margin: 1.8rem 0; }
.article-fig figcaption { font-size: .85rem; color: var(--muted); padding: .6rem 0; border-bottom: 1px solid var(--line); }
.prose { font-size: 1.1rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; padding-left: .9rem; border-left: 4px solid var(--orange); }
.prose ul { padding-left: 1.3rem; margin-bottom: 1.2rem; }
.prose li { margin-bottom: .35rem; }
.prose li::marker { color: var(--orange); }
.prose blockquote { margin: 1.8rem 0; padding: 1.4rem 1.6rem; background: var(--paper); border-left: 5px solid var(--charcoal); font-size: 1.2rem; font-weight: 500; color: var(--charcoal); }
.article-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1.4rem 0; border-top: 2px solid var(--charcoal); border-bottom: 1px solid var(--line); margin-top: 2rem; }
.tags, .share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-weight: 600; }
.tags a { padding: .25rem .7rem; background: var(--paper); color: var(--charcoal); text-decoration: none; font-size: .88rem; }
.tags a:hover { background: var(--orange); color: #fff; }
.share a, .share button { width: 38px; height: 38px; display: grid; place-items: center; border: 1.5px solid var(--charcoal); background: #fff; color: var(--charcoal); }
.share a:hover, .share button:hover { background: var(--charcoal); color: #fff; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.6rem; }
.post-nav a { padding: 1rem 1.2rem; border: 1px solid var(--line); text-decoration: none; color: var(--charcoal); font-weight: 700; line-height: 1.35; }
.post-nav a:last-child { text-align: right; }
.post-nav small { display: flex; align-items: center; gap: .3rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--orange-600); margin-bottom: .3rem; }
.post-nav a:last-child small { justify-content: flex-end; }
.post-nav a:hover { border-color: var(--orange); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 2.5rem; }
.pagination a { min-width: 44px; height: 44px; display: grid; place-items: center; border: 1.5px solid var(--charcoal); text-decoration: none; color: var(--charcoal); font-weight: 700; }
.pagination a:hover, .pagination [aria-current] { background: var(--charcoal); color: #fff; }

/* ---------- PPID ---------- */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--charcoal); margin-top: 1.5rem; }
.stat-row div { padding: 1rem 0; }
.stat-row strong { display: block; font-family: var(--font-cond); font-size: 2.4rem; line-height: 1; color: var(--orange-600); }
.stat-row span { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.steps { list-style: none; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem; padding-bottom: 1.3rem; position: relative; }
.steps li:not(:last-child)::before { content: ""; position: absolute; left: 1.25rem; top: 2.6rem; bottom: 0; border-left: 2px dashed var(--steel); }
.steps b { width: 2.6rem; height: 2.6rem; display: grid; place-items: center; background: var(--charcoal); color: #fff; font-family: var(--font-cond); font-size: 1.2rem; }
.steps strong { display: block; }
.steps span { color: var(--muted); font-size: .95rem; }
.steps.small li { grid-template-columns: 2rem 1fr; gap: .8rem; padding-bottom: 1rem; }
.steps.small b { width: 2rem; height: 2rem; font-size: 1rem; }
.steps.small li:not(:last-child)::before { left: 1rem; top: 2rem; }
.info-list { list-style: none; background: #fff; border: 1px solid var(--line); }
.info-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1.2rem; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list span { display: flex; align-items: center; gap: .6rem; font-weight: 600; }
.info-list .ic { color: var(--orange-600); }
.info-list em { font-size: .8rem; color: var(--bad); font-style: normal; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }

/* ---------- Form ---------- */
.form-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: start; }
.card-form { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--charcoal); padding: 2rem; display: grid; gap: 1.1rem; }
.form-head h2 { font-size: 1.6rem; margin: .2rem 0 0; }
.form-step { font-family: var(--font-cond); text-transform: uppercase; letter-spacing: .14em; color: var(--orange-600); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .35rem; }
.field > label, fieldset legend { font-weight: 700; font-size: .92rem; }
.req { color: var(--bad); }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea { width: 100%; border: 1.5px solid #b8c2c7; background: #fff; padding: .75rem .9rem; border-radius: 0; outline: none; transition: border-color .2s, box-shadow .2s; }
.field select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23263238' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .8rem center / 16px; padding-right: 2.4rem; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--charcoal); box-shadow: 4px 4px 0 var(--orange); }
.field input[type="file"] { padding: .55rem; background: var(--paper); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--bad); }
.hint { color: var(--muted); font-size: .82rem; }
.err { color: var(--bad); font-size: .85rem; font-weight: 600; min-height: 0; }
.err:empty { display: none; }
.check-field label { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; }
.check-field input { width: 1.15rem; height: 1.15rem; margin-top: .25rem; accent-color: var(--orange); flex: none; }
fieldset { border: 0; padding: 0; margin: 0; }
fieldset legend { margin-bottom: .5rem; padding: 0; }
.pick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; inset: 0; }
.pick span { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: 1rem .5rem; border: 1.5px solid #b8c2c7; text-align: center; font-weight: 600; font-size: .9rem; cursor: pointer; transition: .2s; height: 100%; }
.pick span .ic { width: 1.6rem; height: 1.6rem; color: var(--charcoal-3); }
.pick input:hover + span { border-color: var(--charcoal); }
.pick input:checked + span { border-color: var(--orange); background: var(--orange-100); box-shadow: inset 0 -4px 0 var(--orange); }
.pick input:checked + span .ic { color: var(--orange-600); }
.pick input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.ticket { background: #fff; border: 2px solid var(--charcoal); padding: 2rem; position: relative; }
.ticket::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--hazard); }
.ticket-head { display: flex; gap: 1rem; align-items: center; margin: .5rem 0 1.4rem; }
.ticket-head > .ic { width: 3rem; height: 3rem; padding: .6rem; background: var(--ok); color: #fff; }
.ticket-head strong { display: block; font-size: 1.4rem; }
.ticket-head span { color: var(--muted); }
.ticket-no { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--charcoal); color: #fff; padding: 1rem 1.3rem; font-family: var(--font-cond); font-size: clamp(1.6rem, 4vw, 2.4rem); letter-spacing: .08em; }
.ticket-no button { background: transparent; border: 1.5px solid rgba(255,255,255,.4); color: #fff; width: 44px; height: 44px; display: grid; place-items: center; }
.ticket-no button:hover { background: var(--orange); border-color: var(--orange); }
.ticket-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.2rem 0 1.5rem; }
.ticket-meta dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ticket-meta dd { margin: 0; font-weight: 700; }
.track-form { display: flex; gap: .5rem; }
.track-form input { flex: 1; min-width: 0; border: 1.5px solid var(--charcoal); padding: .7rem .8rem; text-transform: uppercase; }
.track-result { margin: 1rem 0 .4rem; padding: 1rem; background: var(--paper); border-left: 4px solid var(--orange); font-size: .92rem; }
.track-result strong { display: block; }

/* ---------- Galeri ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; grid-auto-flow: dense; }
.g-item { margin: 0; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.g-item.g-wide { grid-column: span 2; grid-row: span 2; }
.g-item.g-wide .g-open { flex: 1; aspect-ratio: auto; min-height: 220px; }
.g-open { display: block; width: 100%; padding: 0; border: 0; background: none; position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.g-open img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.g-open:hover img { transform: scale(1.06); }
.g-zoom { position: absolute; right: .8rem; bottom: .8rem; width: 44px; height: 44px; display: grid; place-items: center; background: var(--orange); color: #fff; opacity: 0; transform: translateY(8px); transition: .25s; }
.g-open:hover .g-zoom, .g-open:focus-visible .g-zoom { opacity: 1; transform: none; }
.g-item figcaption { padding: .8rem 1rem; font-weight: 600; font-size: .95rem; line-height: 1.35; }
.g-item figcaption span { display: block; font-family: var(--font-cond); text-transform: uppercase; letter-spacing: .1em; color: var(--orange-600); font-size: .82rem; font-weight: 700; }
.is-hidden { display: none !important; }
.lightbox { position: fixed; inset: 0; z-index: 250; background: rgba(15,22,25,.94); display: grid; place-items: center; padding: 4rem 5rem; }
.lb-figure { margin: 0; max-width: 1100px; width: 100%; }
.lb-figure img { width: 100%; max-height: 76vh; object-fit: contain; background: #fff; border: 4px solid #fff; }
.lb-figure figcaption { color: #fff; text-align: center; padding-top: .9rem; font-weight: 600; }
.lightbox button { position: absolute; width: 52px; height: 52px; display: grid; place-items: center; background: var(--charcoal); color: #fff; border: 2px solid rgba(255,255,255,.3); }
.lightbox button:hover { background: var(--orange); border-color: var(--orange); }
.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 1.6rem; left: 1.5rem; color: #b0bec5; font-family: var(--font-cond); letter-spacing: .1em; font-size: 1.1rem; }
.video-feature { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: center; margin-bottom: 4rem; background: var(--charcoal); color: #cfd8dc; padding: 1.5rem; }
.video-feature h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.video-feature .sec-tag { color: #b0bec5; }
.video-feature .sec-no { color: var(--orange); }
.video-feature .meta { color: #b0bec5; }
.video-card { display: block; width: 100%; padding: 0; border: 0; background: var(--charcoal); position: relative; overflow: hidden; aspect-ratio: 16 / 9; }
.video-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, opacity .3s; }
.video-card:hover img { transform: scale(1.05); opacity: .85; }
.play { position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; display: grid; place-items: center; background: var(--orange); color: #fff; clip-path: polygon(0 0, 100% 0, 100% 75%, 75% 100%, 0 100%); transition: transform .25s; }
.video-card.big .play { width: 88px; height: 88px; }
.play .ic { width: 1.8rem; height: 1.8rem; fill: currentColor; margin-left: 4px; }
.video-card:hover .play { transform: scale(1.1); }
.duration { position: absolute; right: .6rem; bottom: .6rem; background: rgba(0,0,0,.75); color: #fff; font-size: .8rem; padding: .1rem .45rem; font-weight: 600; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.video-item .badge { margin: .9rem 0 .4rem; }
.video-item h3 { font-size: 1.12rem; }
.video-note { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--muted); margin-top: 2rem; }
.vmodal { position: fixed; inset: 0; z-index: 250; background: rgba(15,22,25,.92); display: grid; place-items: center; padding: 1.5rem; }
.vmodal-box { width: min(100%, 1000px); position: relative; }
.vm-frame { aspect-ratio: 16 / 9; background: #000; }
.vm-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.vm-close { position: absolute; top: -56px; right: 0; width: 46px; height: 46px; display: grid; place-items: center; background: var(--orange); color: #fff; border: 0; }

/* ---------- Kontak ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-bottom: 2.5rem; }
.contact-card { border: 1px solid var(--line); padding: 1.5rem; position: relative; background: #fff; }
.contact-card::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 40%; background: var(--orange); transition: width .3s; }
.contact-card:hover::after { width: 100%; }
.cc-ic { width: 3rem; height: 3rem; display: grid; place-items: center; background: var(--charcoal); color: var(--orange); margin-bottom: 1rem; }
.cc-ic .ic { width: 1.4rem; height: 1.4rem; }
.contact-card h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.map-wrap { min-height: 420px; border: 2px solid var(--charcoal); position: relative; background: var(--paper); }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.unit-contacts .table-wrap { margin-top: .5rem; }

/* ---------- 404 ---------- */
.notfound { background: var(--paper); }
.nf-in { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.nf-in .nf-code { font-family: var(--font-cond); font-size: clamp(5rem, 14vw, 9rem); line-height: .9; color: var(--orange); margin: 0; -webkit-text-stroke: 2px var(--charcoal); }
.nf-in h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.nf-in p { color: var(--muted); }

/* ---------- Animasi muncul ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   Responsif
   ========================================================================== */
@media (max-width: 1200px) {
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .official-grid { grid-template-columns: repeat(3, 1fr); }
  .news-home-grid { grid-template-columns: 1fr 1fr; }
  .board { grid-column: span 2; }
  .nav-link { padding: .6rem .55rem; }
  .nav-link::after { left: .55rem; right: .55rem; }
}
@media (max-width: 1080px) {
  :root { --header-h: 70px; }
  .nav-toggle { display: flex; }
  .nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(88vw, 360px); background: var(--charcoal); flex-direction: column; align-items: stretch; gap: 1rem; padding: 5rem 1.2rem 2rem; z-index: 95; transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; visibility: hidden; }
  .nav-open .nav { transform: none; visibility: visible; }
  .nav-open .nav-toggle { position: fixed; top: 12px; right: 1.2rem; z-index: 96; border-color: #fff; background: var(--charcoal); }
  .nav-open .nav-toggle span { background: #fff; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav-link { width: 100%; justify-content: space-between; color: #fff; padding: .95rem .3rem; font-size: 1.2rem; }
  .nav-link::after { display: none; }
  .nav-list > li.is-active > .nav-link { color: var(--orange); }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: rgba(0,0,0,.2); display: none; margin-bottom: .6rem; }
  .has-sub:hover .sub, .has-sub:focus-within .sub { display: none; }
  .has-sub.is-open .sub { display: block; }
  .has-sub:hover .caret { transform: none; }
  .has-sub.is-open .caret { transform: rotate(180deg); }
  .slide { grid-template-columns: 1fr; gap: 0; }
  .slide-art { order: -1; max-width: 520px; margin: 0 auto; width: 100%; }
  .slide-art img { max-height: 300px; }
  .slide-copy { padding-bottom: 4.5rem; }
  .hero-block { grid-template-columns: repeat(2, 1fr); }
  .hero-block > div { border-bottom: 1px solid var(--line); }
  .hero-block .hb-note { grid-column: span 2; display: flex; justify-content: space-between; align-items: center; }
  .hb-note dd { margin: 0; }
  .services-grid, .roads-grid, .kadis-grid, .agenda-grid, .about-grid, .vm-grid, .std-grid, .faq-grid, .form-grid, .budget-grid, .contact-grid, .nf-in { grid-template-columns: 1fr; gap: 2.5rem; }
  .services-intro, .budget-sum, .sidebar { position: static; }
  .kadis-grid { max-width: 680px; }
  .kadis-photo { max-width: 380px; }
  .ann-grid, .article-grid, .complaint-grid { grid-template-columns: 1fr; }
  .svc-tabs { grid-template-columns: 1fr; }
  .svc-tabs .tab-list.vertical { flex-direction: row; overflow-x: auto; border-left: 0; border-bottom: 2px solid var(--charcoal); flex-wrap: nowrap; }
  .svc-tabs .tab-list [role="tab"] { flex: none; border-bottom: 0; }
  .svc-tabs .tab-list [role="tab"][aria-selected="true"]::after { display: none; }
  .flow { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 0; }
  .flow::before { display: none; }
  .routine-grid { grid-template-columns: repeat(2, 1fr); }
  .routine:nth-child(2) { border-right: 0; }
  .routine:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .doc-stats { grid-template-columns: repeat(3, 1fr); }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-in { grid-template-columns: auto 1fr; }
  .cta-act { grid-column: 1 / -1; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .video-feature { grid-template-columns: 1fr; }
  .lead-official { grid-template-columns: 240px 1fr; gap: 2rem; }
}
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .topbar-links li:not(:last-child), .topbar .hide-sm { display: none; }
  .topbar-info li:nth-child(2) { display: none; }
  .page-hero-in { flex-direction: column; align-items: flex-start; }
  .title-block { min-width: 0; width: 100%; grid-template-columns: repeat(4, 1fr); }
  .title-block div { border-bottom: 0; }
  .title-block div:nth-child(2n) { border-right: 1px solid rgba(255,255,255,.25); }
  .title-block div:last-child { border-right: 0; }
  .spec-list a { grid-template-columns: 3rem 1fr 1.5rem; gap: .5rem .9rem; }
  .spec-no { display: none; }
  .spec-time { grid-column: 2; grid-row: 2; justify-self: start; }
  .spec-go { grid-column: 3; grid-row: 1 / span 2; }
  .donut-row { flex-direction: column; align-items: flex-start; }
  .legend { width: 100%; }
  .proj-grid, .news-grid, .video-grid, .official-grid { grid-template-columns: 1fr 1fr; }
  .news-home-grid { grid-template-columns: 1fr; }
  .board { grid-column: auto; }
  .form-row, .tp-grid, .post-nav { grid-template-columns: 1fr; }
  .post-nav a:last-child { text-align: left; }
  .post-nav a:last-child small { justify-content: flex-start; }
  .fact-grid { grid-template-columns: 1fr 1fr; }
  .svc-facts { grid-template-columns: 1fr; }
  .svc-facts div { border-right: 0; border-bottom: 1px solid var(--line); }
  .svc-facts div:last-child { border-bottom: 0; }
  .ann { grid-template-columns: 1fr; gap: .5rem; }
  .ann .btn { justify-self: start; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .lightbox { padding: 4rem .8rem 5.5rem; }
  .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; }
  .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); }
  .lead-official { grid-template-columns: 1fr; padding: 1.4rem; }
  .lead-official img { max-width: 260px; }
  .kv { grid-template-columns: 1fr; }
  .ticket-meta { grid-template-columns: 1fr; }
  .org-mid { flex-direction: column; align-items: center; gap: 1rem; }
  .org-row { border-top: 0; padding-top: 0; flex-direction: column; align-items: stretch; width: 100%; }
  .org-row .org-node { max-width: none; flex: auto; }
  .org-row .org-node::before { display: none; }
  .org-top::after, .org-mid::after { display: none; }
  .org-node { width: 100%; }
  /* tabel menjadi kartu */
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table:not(.table-kv) tr { display: block; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
  .table:not(.table-kv) td { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border: 0; text-align: right; }
  .table:not(.table-kv) td::before { content: attr(data-label); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-align: left; flex: none; }
  .table:not(.table-kv) td:not([data-label]) { justify-content: flex-end; }
  .doc-name { text-align: left; }
  .table-kv th, .table-kv td { display: block; width: 100%; }
  .table-kv th { border-bottom: 0; padding-bottom: .2rem; }
  .result-count { margin-left: 0; width: 100%; }
  .select-field { flex: 1 1 45%; }
  .select-field select { width: 100%; }
}
@media (max-width: 560px) {
  .container { width: min(100% - 2rem, var(--container)); }
  .hero { padding-top: 1.5rem; }
  .hero-title { font-size: 2.3rem; }
  .hero-block dd { font-size: 2rem; }
  .hero-block > div { padding: 1rem; }
  .proj-grid, .news-grid, .video-grid, .official-grid, .contact-cards, .footer-grid, .routine-grid { grid-template-columns: 1fr; }
  .routine { border-right: 0; border-bottom: 1px solid var(--line); }
  .pick-grid { grid-template-columns: 1fr 1fr; }
  .doc-stats { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .g-item.g-wide { grid-column: auto; grid-row: auto; }
  .g-item.g-wide .g-open { aspect-ratio: 16 / 10; min-height: 0; }
  .flow { grid-template-columns: 1fr; }
  .mosaic { grid-template-rows: 110px 110px 140px; }
  .news-row { grid-template-columns: 100px 1fr; }
  .cta-in { grid-template-columns: 1fr; }
  .cta-sign { width: 56px; height: 56px; }
  .kadis-photo figcaption { right: 0; }
  .card-form, .svc-panel, .ticket { padding: 1.3rem; }
  .stat-row strong { font-size: 1.9rem; }
  .title-block { grid-template-columns: repeat(2, 1fr); }
  .title-block div:nth-child(2n) { border-right: 0; }
  .title-block div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.25); }
  .tab-list [role="tab"] { padding: .7rem .8rem; font-size: .82rem; }
  .fb-in { flex-direction: column; }
}

/* ---------- Kurangi gerak ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .ticker-move { animation: none !important; }
  .ticker-track { overflow-x: auto; mask-image: none; }
  .ticker-move span[aria-hidden] { display: none; }
}

/* ---------- Cetak ---------- */
@media print {
  .topbar, .header, .cta-band, .footer, .to-top, .toast, .sidebar { display: none !important; }
  .reveal { opacity: 1; transform: none; }
}
