:root {
  --bg: #f6f9f8; --surface: #fff; --ink: #12302b; --muted: #5b716c; --line: #dfe8e5;
  --brand: #0f766e; --brand-dark: #0b4f4a; --brand-soft: #e3f3f0;
  --warn: #d97706; --wa: #128c4a; --danger: #b42318;
  --radius: 14px; --shadow: 0 1px 2px rgba(16,48,43,.06), 0 6px 20px rgba(16,48,43,.06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font: 16px/1.55 system-ui, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); }
h1, h2, h3 { line-height: 1.2; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -.01em; }
h3 { font-size: 1.05rem; }
a { color: var(--brand); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.sub { color: var(--muted); margin: 6px 0 22px; }
.kepanjangan { margin: -12px 0 22px; font-size: .92rem; color: var(--muted); }
.kecil, .hint { font-size: .85rem; color: var(--muted); }

.pita { background: #fff4d6; color: #7a4b00; text-align: center; font-size: .88rem; padding: 6px 12px; border-bottom: 1px solid #f1dca0; }

/* nav */
.nav { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); line-height: 1.15; }
.brand small { display: block; color: var(--muted); font-size: .8rem; }
.logo { width: 44px; height: 44px; border-radius: 10px; background: #fff; object-fit: contain; border: 1px solid var(--line); flex: none; }
#menu { display: flex; gap: 2px; }
#menu a { text-decoration: none; color: var(--ink); padding: 8px 11px; border-radius: 8px; font-size: .93rem; white-space: nowrap; }
#menu a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.menu-btn { display: none; border: 1px solid var(--line); background: #fff; border-radius: 8px; font-size: 1.2rem; width: 42px; height: 42px; cursor: pointer; }

/* hero */
/* latar hero: nuansa iptek (jalur sirkuit, titik data, cahaya) biru - biru muda */
.hero { color: #fff; padding: 56px 0 64px; position: relative; overflow: hidden; background-color: #0b2a6b;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.13' stroke-width='1.4'%3E%3Cpath d='M0 40h46l20 20h44l20-20h50'/%3E%3Cpath d='M46 180v-46l20-20V84'/%3E%3Cpath d='M130 0v24l-20 20'/%3E%3Cpath d='M110 180v-34l30-30h40'/%3E%3Cpath d='M0 128h22l22 22'/%3E%3Cpath d='M156 60v30'/%3E%3C/g%3E%3Cg fill='%237dd3fc' fill-opacity='.45'%3E%3Ccircle cx='46' cy='40' r='3'/%3E%3Ccircle cx='110' cy='60' r='3'/%3E%3Ccircle cx='66' cy='84' r='3'/%3E%3Ccircle cx='110' cy='44' r='3'/%3E%3Ccircle cx='140' cy='116' r='3'/%3E%3Ccircle cx='44' cy='150' r='3'/%3E%3Ccircle cx='156' cy='90' r='3'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Ccircle cx='1.5' cy='1.5' r='1.2' fill='%23bae6fd' fill-opacity='.18'/%3E%3C/svg%3E"),
    radial-gradient(circle at 82% 30%, rgba(56,189,248,.55), transparent 42%),
    radial-gradient(circle at 8% 95%, rgba(14,165,233,.40), transparent 38%),
    linear-gradient(135deg, #0b2a6b 0%, #1d4ed8 52%, #0ea5e9 100%);
  background-size: 180px 180px, 22px 22px, auto, auto, auto; }
.hero::before { content: ""; position: absolute; right: -140px; top: -140px; width: 520px; height: 520px; border-radius: 50%;
  border: 1px solid rgba(186,230,253,.25); box-shadow: 0 0 0 60px rgba(186,230,253,.05), 0 0 0 130px rgba(186,230,253,.04); pointer-events: none; }
.hero .wrap { position: relative; }
.hero-in { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: center; }
.hero-tiles { margin: 28px 0 0; }
.hero-tiles .tile b { font-size: 1.4rem; }
.hero-foto { margin: 0; justify-self: end; width: 100%; max-width: 380px; position: relative; }
.hero-foto img { display: block; width: 100%; height: auto; aspect-ratio: 959 / 1200; object-fit: cover; border-radius: 20px; border: 4px solid rgba(255,255,255,.9); box-shadow: 0 18px 40px rgba(0,0,0,.28); background: #8a9497; }
.hero-foto figcaption { position: absolute; left: 16px; right: 16px; bottom: -18px; background: #fff; color: var(--ink); border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow); text-align: center; line-height: 1.3; }
.hero-foto figcaption b { display: block; font-size: .95rem; color: #1e3a8a; }
.hero-foto figcaption span { font-size: .82rem; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; opacity: .85; margin: 0 0 10px; }
.lead { font-size: 1.08rem; opacity: .92; max-width: 54ch; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn { display: inline-block; border: 0; cursor: pointer; text-decoration: none; font: inherit; font-weight: 600; padding: 12px 20px; border-radius: 10px; text-align: center; }
.btn.primary { background: var(--brand); color: #fff; }
.hero .btn.primary { background: #fff; color: var(--brand-dark); }
.btn.wa { background: var(--wa); color: #fff; }
.btn.full { width: 100%; }
.btn:hover { filter: brightness(1.07); }
.btn:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #f5b83d; outline-offset: 2px; }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tiles.three { grid-template-columns: repeat(3, 1fr); margin-bottom: 16px; }
.tiles.four { grid-template-columns: repeat(4, 1fr); margin-bottom: 16px; }
.tiles.six { grid-template-columns: repeat(6, 1fr); }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; min-width: 0; }
.tile b { display: block; font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile span { color: var(--muted); font-size: .86rem; }
.hero .tile { background: rgba(255,255,255,.12); border-color: rgba(186,230,253,.35); backdrop-filter: blur(4px); }
.hero .tile span { color: rgba(255,255,255,.85); }

/* sections */
.sec { padding: 56px 0; }
.sec.alt { background: #eef5f3; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 16px; min-width: 0; }
.panel h3 { margin-bottom: 12px; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.panel-head h3 { margin: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid2.gap-lg { gap: 28px; align-items: start; }
.grid2 > * { min-width: 0; }
.chart-box { position: relative; height: 300px; }
.chart-box.tall { height: 360px; }
.legend { font-size: .86rem; color: var(--muted); margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: -8px; }
.sw.ok { background: var(--brand); } .sw.warn { background: var(--warn); }
.garis { display: inline-block; width: 18px; border-top: 2px dashed var(--ink); margin-right: -8px; }
.pilih { font-size: .88rem; color: var(--muted); display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }

/* kegiatan */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.card .meta { display: flex; justify-content: space-between; gap: 8px; font-size: .82rem; color: var(--muted); }
.tag { background: var(--brand-soft); color: var(--brand-dark); border-radius: 99px; padding: 2px 10px; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: .93rem; }
.card .lok { font-size: .85rem; color: var(--ink); }

/* galeri kegiatan */
.galeri { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 34px; }
.galeri-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.galeri-foto { display: block; padding: 0; border: 0; background: #dfe8e5; cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden; }
.galeri-foto img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; transition: transform .3s; }
.galeri-foto:hover img { transform: scale(1.04); }
.galeri-isi { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.galeri-isi .meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; font-size: .8rem; color: var(--muted); }
.galeri-isi h3 { font-size: 1rem; }
.galeri-isi p { margin: 0; color: var(--muted); font-size: .9rem; }
.galeri-isi .lok { font-size: .85rem; }
.galeri-link { font-size: .88rem; font-weight: 600; margin-top: auto; }
.judul-agenda { margin: 0 0 14px; font-size: 1.15rem; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1100px); max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(6,24,22,.85); }
.lightbox img { display: block; max-width: 100%; max-height: 84vh; margin: 0 auto; border-radius: 10px; }
.lightbox p { color: #fff; text-align: center; margin: 10px 0 0; }
.lightbox .tutup { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; }

/* peta */
.peta-grid { display: grid; grid-template-columns: 1fr 300px; gap: 16px; }
#map { height: 560px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); z-index: 1; background: #dfe8e5; }
.peta-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; height: 560px; display: flex; flex-direction: column; }
.peta-list ul { list-style: none; margin: 10px 0 0; padding: 0; overflow: auto; flex: 1; }
.peta-list li button { width: 100%; text-align: left; background: none; border: 0; border-radius: 8px; padding: 9px 10px; cursor: pointer; font: inherit; color: var(--ink); }
.peta-list li button:hover, .peta-list li button.aktif { background: var(--brand-soft); }
.peta-list li small { display: block; color: var(--muted); }
.pin { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--brand); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); display: grid; place-items: center; }
.pin i { transform: rotate(45deg); color: #fff; font-style: normal; font-weight: 700; font-size: .8rem; }
.pin.rs { background: #b42318; }
/* infografis DBD: gambar + angka per fasilitas */
.dbd-info { position: relative; z-index: 2; margin: 0 0 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.dbd-gbr { position: relative; container-type: inline-size; }
.dbd-judul-gbr { position: absolute; left: 2%; top: 1.2%; width: 48%; margin: 0; text-align: center; white-space: pre-line; text-transform: uppercase; pointer-events: none;
  font: 800 3.15cqw/1.38 system-ui, "Segoe UI", Roboto, Arial, sans-serif; color: #0b0f14; text-shadow: 0 0 .5cqw #fff, 0 0 1cqw rgba(255,255,255,.9); }
.dbd-gbr img { display: block; width: 100%; height: auto; background: #e6f1f4; border-radius: var(--radius) var(--radius) 0 0; }
.dbd-angka { --c: #6b8580; position: absolute; transform: translate(-50%, -50%); min-width: 3.6cqw; padding: .2cqw .75cqw; border: .3cqw solid #fff;
  border-radius: 99px; background: var(--c); color: #fff; font: 800 2.7cqw/1.15 system-ui, "Segoe UI", sans-serif; font-variant-numeric: tabular-nums;
  box-shadow: 0 .3cqw .9cqw rgba(0,0,0,.35); cursor: pointer; z-index: 2; transition: transform .12s; }
.dbd-angka.rendah { --c: #c98a00; } .dbd-angka.sedang { --c: #ea580c; } .dbd-angka.tinggi { --c: #c81e1e; }
.dbd-angka:hover, .dbd-angka.aktif { transform: translate(-50%, -50%) scale(1.12); }
.dbd-angka:focus-visible { outline: 3px solid #f5b83d; outline-offset: 2px; }
.dbd-kartu { position: absolute; z-index: 5; width: min(280px, calc(100cqw - 12px)); margin-top: 2.6cqw; background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.28); }
.dbd-kartu.atas { margin-top: 0; transform: translateY(calc(-100% - 2.6cqw)); }
.dbd-kartu .tutup { position: absolute; top: 6px; right: 8px; border: 0; background: none; font-size: 1.3rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px; }
.dbd-ket { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; padding: 16px 20px; background: #8fd8ea; border-radius: 0 0 var(--radius) var(--radius); color: #0d1f24; font-weight: 700; font-size: clamp(1rem, 2.2vw, 1.45rem); }
.dbd-ket i { font-style: normal; margin-right: 8px; }
.dbd-ket b { font-variant-numeric: tabular-nums; }
.dbd-sub { margin: 0 0 12px; }

/* peta DBD */
#map-dbd { height: 560px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); z-index: 1; background: #dfe8e5; }
.dbd { --c: #8aa39e; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--c); color: #fff;
  font-weight: 800; font-size: .9rem; border: 2px solid #fff; box-shadow: 0 2px 7px rgba(0,0,0,.35); font-variant-numeric: tabular-nums; cursor: pointer; }
.dbd.rendah, .dbd-sw.rendah { --c: #e3a008; } .dbd.sedang, .dbd-sw.sedang { --c: #ea580c; } .dbd.tinggi, .dbd-sw.tinggi { --c: #c81e1e; }
.dbd.rs { border-radius: 9px; outline: 2px solid var(--c); outline-offset: 1px; }
.dbd-sw { --c: #8aa39e; display: inline-block; width: 13px; height: 13px; border-radius: 50%; background: var(--c); vertical-align: -2px; margin-right: 5px; }
.dbd-sw.rs { border-radius: 3px; background: #fff; outline: 2px solid #5b716c; outline-offset: -2px; }
.legend-dbd { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 10px 0 0; }
.dbd-judul { font-size: .95rem; margin: 2px 4px 0; }
.peta-list li button.dbd-baris { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; }
.dbd-baris b { font-variant-numeric: tabular-nums; }
.dbd-bar { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.dbd-bar i { display: block; height: 100%; background: #c81e1e; }
.pop-dbd { padding: 14px 16px; }
.pop-dbd .jenis { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.pop-dbd .angka { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 10px; }
.pop-dbd .angka b { font-size: 2rem; line-height: 1; color: #c81e1e; }

.leaflet-popup-content { margin: 0; width: 280px !important; }
.leaflet-popup-content-wrapper { padding: 0; overflow: hidden; border-radius: 12px; }
.pop img { display: block; width: 100%; height: 140px; object-fit: cover; background: var(--brand-soft); }
.pop-body { padding: 12px 14px 14px; font: 14px/1.45 system-ui, "Segoe UI", sans-serif; color: var(--ink); }
.pop-body h4 { margin: 0 0 2px; font-size: 1rem; }
.pop-body .al { color: var(--muted); font-size: .82rem; margin: 0 0 8px; }
.pop-body dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0 0 10px; font-size: .84rem; }
.pop-body dt { color: var(--muted); } .pop-body dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.pop-body .btn { padding: 8px 12px; font-size: .86rem; width: 100%; color: #fff; }

/* forms */
.form label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 12px; }
input, select, textarea { display: block; width: 100%; margin-top: 5px; padding: 10px 12px; font: inherit; color: var(--ink); background: #fff; border: 1px solid #c4d3cf; border-radius: 9px; }
.pilih select { margin: 0; width: auto; max-width: 100%; min-width: 0; flex: 0 1 auto; }
textarea { resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.err { color: var(--danger); font-size: .88rem; margin: 0 0 10px; min-height: 0; }
.err:empty { display: none; }
.hint { margin: 10px 0 0; }

.tabel-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: .82rem; }

/* tabel isian grafik ("Ubah data") */
[hidden] { display: none !important; }
.sw.abu { background: #9db5b0; }
.btn.tipis { padding: 8px 14px; font-size: .88rem; }
.btn.tipis:not(.primary) { background: var(--brand-soft); color: var(--brand-dark); }
.btn:disabled { opacity: .6; cursor: default; }
.ed { margin-top: 14px; }
.ed-bar, .ed-aksi { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ed-status { font-size: .86rem; color: #7a4b00; }
.ed-isi { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 4px; }
.ed-isi .tabel-wrap { max-height: 460px; overflow: auto; margin-bottom: 12px; }
.ed-tabel thead th { position: sticky; top: 0; background: var(--surface); z-index: 1; }
.ed-tabel td { padding: 6px 10px; }
.ed-tabel .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ed-tabel th.num { white-space: normal; min-width: 7.5em; }
.ed-tabel tr.grup td { background: #eef5f3; font-weight: 600; }
.ed-tabel tr.anak td:first-child { padding-left: 28px; }
.ed-in { display: inline-block; width: 7.2em; margin: 0; padding: 6px 8px; text-align: right; }
.ed-in[aria-invalid] { border-color: var(--danger); }

.alur { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; counter-reset: a; }
.alur li { counter-increment: a; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; font-size: .88rem; }
.alur li::before { content: counter(a); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 8px; }
.alur b { display: block; } .alur span { color: var(--muted); }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; padding: 14px 0; }
details p { margin: 0 0 14px; color: var(--muted); }
.kontak p { margin: 0 0 14px; }

footer { background: var(--brand-dark); color: #d6ece8; padding: 26px 0; font-size: .9rem; }
.footer-in { display: flex; align-items: center; gap: 16px; }
.footer-logo { width: 72px; height: 72px; border-radius: 12px; background: #fff; object-fit: contain; flex: none; }
footer p { margin: 2px 0; } footer .kecil { color: #a9cfc9; }
footer a { color: #d6ece8; }

@media (max-width: 980px) {
  .hero-in, .grid2, .peta-grid { grid-template-columns: 1fr; }
  .cards, .galeri { grid-template-columns: repeat(2, 1fr); }
  .hero-foto { justify-self: center; max-width: 300px; order: -1; margin-bottom: 18px; }
  .tiles.six { grid-template-columns: repeat(3, 1fr); }
  .tiles.four { grid-template-columns: repeat(2, 1fr); }
  .peta-list { height: 260px; }
  #map, #map-dbd { height: 440px; }
  .menu-btn { display: block; }
  #menu { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; padding: 8px 16px 14px; }
  #menu.buka { display: flex; }
}
@media (max-width: 600px) {
  .cards, .alur, .row2, .galeri { grid-template-columns: 1fr; }
  .hero-foto { max-width: 240px; }
  .tiles.six, .tiles.three { grid-template-columns: repeat(2, 1fr); }
  .sec { padding: 40px 0; }
  .chart-box, .chart-box.tall { height: 320px; }
  .ed-in { width: 5.4em; padding: 6px; }
  .ed-tabel th.num { min-width: 5.4em; }
  .ed-tabel td, .ed-tabel th { padding-left: 6px; padding-right: 6px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }


/* ===== Latar seluruh halaman: medis + IT + lab + obat, gradasi biru - biru muda ===== */
html { background: #0b2a6b; }
body { background: transparent; position: relative; isolation: isolate; }
body::before { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(circle at 85% 12%, rgba(56,189,248,.45), transparent 40%),
    radial-gradient(circle at 10% 85%, rgba(125,211,252,.35), transparent 42%),
    linear-gradient(160deg, #0b2a6b 0%, #1d4ed8 45%, #0ea5e9 80%, #7dd3fc 100%); }
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.16' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E %3Cpath d='M42 22h12v14h14v12H54v14H42V48H28V36h14z'/%3E %3Cg transform='translate(132 44) rotate(-35)'%3E%3Crect x='-26' y='-10' width='52' height='20' rx='10'/%3E%3Cpath d='M0 -10v20'/%3E%3C/g%3E %3Cpath d='M212 20h20M216 20v20l-16 30a6 6 0 0 0 5 9h34a6 6 0 0 0 5-9l-16-30V20'/%3E%3Cpath d='M206 60h32'/%3E%3Ccircle cx='218' cy='70' r='2'/%3E%3Ccircle cx='228' cy='66' r='1.5'/%3E %3Ccircle cx='292' cy='42' r='13'/%3E%3Cpath d='M283 51l18-18'/%3E %3Cpath d='M30 108v24a18 18 0 0 0 36 0v-24'/%3E%3Cpath d='M48 150v16a20 20 0 0 0 40 0v-10'/%3E%3Ccircle cx='88' cy='148' r='8'/%3E%3Cpath d='M25 108h9M62 108h9'/%3E %3Crect x='126' y='108' width='66' height='44' rx='5'/%3E%3Cpath d='M150 164h18M159 152v12'/%3E%3Cpath d='M146 124l-8 6 8 6M172 124l8 6-8 6M163 120l-8 20'/%3E %3Cpath d='M234 100c24 15 24 30 0 45s-24 30 0 45'/%3E%3Cpath d='M264 100c-24 15-24 30 0 45s24 30 0 45'/%3E%3Cpath d='M240 108h18M241 137h16M240 153h18M241 182h16'/%3E %3Cpath d='M30 205v40a7 7 0 0 0 14 0v-40M54 205v40a7 7 0 0 0 14 0v-40M26 205h22M50 205h22M30 226h14M54 232h14'/%3E %3Cpath d='M96 236h30l8-18 10 34 10-28 6 12h34'/%3E %3Cpath d='M212 254h30l14-14h44M242 254v28h30'/%3E%3Ccircle cx='212' cy='254' r='4'/%3E%3Ccircle cx='300' cy='240' r='4'/%3E%3Ccircle cx='272' cy='282' r='4'/%3E %3Cg transform='translate(142 292) rotate(-18)'%3E%3Crect x='-30' y='-7' width='44' height='14' rx='2'/%3E%3Cpath d='M14 0h22M-30 -11v22M-38 0h8M-20 -7v5M-10 -7v5M0 -7v5'/%3E%3C/g%3E %3Cpath d='M70 292h8v-8h8v8h8v8h-8v8h-8v-8h-8z'/%3E %3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Ccircle cx='1.5' cy='1.5' r='1.2' fill='%23bae6fd' fill-opacity='.16'/%3E%3C/svg%3E");
  background-size: 320px 320px, 22px 22px; background-position: 0 0, 0 0; }

/* hero & section transparan agar latar menyatu di seluruh halaman */
.hero { background: transparent; }
.sec, .sec.alt { background: transparent; }
.sec.alt { background: rgba(255,255,255,.05); border-top: 1px solid rgba(186,230,253,.15); border-bottom: 1px solid rgba(186,230,253,.15); }

/* teks yang langsung berada di atas latar biru: putih */
.sec { --ink: #ffffff; --muted: #d6ecff; color: var(--ink); }
.sec h2 { text-shadow: 0 2px 12px rgba(4,20,60,.35); }
.sec a { color: #bae6fd; }
/* kartu/panel putih tetap gelap teksnya */
.sec :is(.panel, .card, .galeri-item, .tile, .peta-list, details, .alur li, .dbd-info, .dbd-kartu, .leaflet-container) {
  --ink: #12302b; --muted: #5b716c; color: var(--ink); }
.sec :is(.panel, .card, .galeri-item, .tile, .peta-list, details, .dbd-info, .dbd-kartu, .leaflet-container) a { color: var(--brand); }
.sec :is(.panel, .card, .galeri-item, .tile, .peta-list, details, .alur li) { box-shadow: 0 8px 28px rgba(4,20,60,.18); border-color: rgba(255,255,255,.6); }

footer { background: rgba(4,20,60,.72); backdrop-filter: blur(6px); color: #dbeafe; }
footer .kecil { color: #bfdbfe; } footer a { color: #dbeafe; }
.sec :is(input, select, textarea, option) { color: #12302b; }

/* kartu/panel 95% putih: latar halaman terlihat samar di baliknya (ubah --kartu-alpha untuk mengatur) */
:root { --kartu-alpha: .55; }
.sec :is(.panel, .card, .galeri-item, .tile, .peta-list, details, .alur li, .dbd-info) { background-color: rgba(255,255,255,var(--kartu-alpha)); }
/* teks abu di kartu tembus pandang digelapkan agar tetap terbaca */
.sec :is(.panel, .card, .galeri-item, .tile, .peta-list, details, .alur li, .dbd-info) { --muted: #34495e; }
/* huruf di kartu tembus pandang dipertegas */
.sec :is(.panel, .card, .galeri-item, .tile, .peta-list, details, .alur li, .dbd-info) { --ink: #0b1f2a; --muted: #1f3344; }
.sec :is(.card, .galeri-item, details, .alur li) p, .sec .galeri-isi p, .sec .tile span, .sec .legend, .sec .panel .kecil { font-weight: 500; }
/* warna teks di kartu dihitung agar kontras >= 4.5:1 (WCAG AA) pada titik latar tergelap (#0b2a6b) dengan kartu putih 55% */
.sec :is(.panel, .card, .galeri-item, .tile, .peta-list, details, .alur li, .dbd-info) { --ink: #0b1f2a; --muted: #172a3a; }
.sec :is(.panel, .card, .galeri-item, .tile, .peta-list, details, .alur li, .dbd-info) a:not(.btn) { color: #0b3a2f; font-weight: 600; }
.sec .panel .err { color: #5e110b; font-weight: 600; }
.sec .ed-status { color: #3f2700; font-weight: 600; }

/* SATUSEHAT */
#satusehat[hidden], #menu a[hidden] { display: none !important; }
.ss-grup { margin: 14px 0 4px; font-size: .95rem; } .ss-grup small { font-weight: 500; color: var(--muted); }
.ss-tabel th.num, .ss-tabel td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ss-tabel tr.grup th { background: rgba(15,118,110,.12); text-align: left; }
.ss-tabel td { white-space: nowrap; } .ss-tabel td:first-child { font-weight: 600; }

/* ANTREAN LIVE (data dari Puskesmas Quantum) */
.aq-live { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); border-radius: 20px; padding: 2px 10px; font-weight: 700; font-size: .82rem; margin-left: 6px; }
.aq-live i { width: 9px; height: 9px; border-radius: 50%; background: #f87171; animation: aq-dn 1.6s infinite; }
.aq-live.mati i { background: #cbd5e1; animation: none; }
@keyframes aq-dn { 0% { box-shadow: 0 0 0 0 rgba(248,113,113,.7); } 70% { box-shadow: 0 0 0 9px rgba(248,113,113,0); } 100% { box-shadow: 0 0 0 0 rgba(248,113,113,0); } }
.aq-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; } .aq-grid .panel { margin-bottom: 16px; }
.aq-cv { position: relative; height: 320px; } .aq-cv.kecil { height: 250px; }
.aq-sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.aq-tabel th.num, .aq-tabel td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.aq-tabel tr.pkm { cursor: pointer; } .aq-tabel tr.pkm:hover td { background: rgba(15,118,110,.07); } .aq-tabel tr.nol td { opacity: .6; }
.aq-tabel tr.det > td { background: rgba(15,118,110,.06); padding-left: 28px; }
.aq-chip { display: inline-block; border-radius: 8px; padding: 1px 8px; margin: 2px 4px 2px 0; font-size: .8rem; background: rgba(15,118,110,.14); font-weight: 600; white-space: nowrap; }
.aq-chip.kosong { opacity: .55; }
.aq-bar { display: flex; height: 9px; border-radius: 5px; overflow: hidden; background: rgba(11,31,42,.1); min-width: 110px; } .aq-bar i { display: block; }
@media (max-width: 900px) { .aq-grid { grid-template-columns: 1fr; } }
/* menu atas: 13 item muat di layar 981-1360px */
@media (min-width: 981px) and (max-width: 1360px) { #menu { gap: 0; } #menu a { padding: 8px 5px; font-size: .84rem; } .brand small { display: none; } }
@media (min-width: 981px) and (max-width: 1100px) { #menu a { padding: 8px 4px; font-size: .8rem; } }

/* BOR rawat inap puskesmas (live dari Puskesmas Quantum) */
#bor-pq { margin-top: 6px; } .pq-judul { font-size: 1.25rem; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
#bor-pq .aq-tabel tr.total td { font-weight: 700; border-top: 2px solid rgba(11,31,42,.25); }
