/* ==========================================================================
   SC Dinas HTML — 10 BPBD (Badan Penanggulangan Bencana Daerah)
   Konsep: "pusat kendali siaga" — banner peringatan dini, panel situasi,
   label monospace ala konsol, pita hazard sebagai pembatas section.
   Template oleh sharecode.id — MIT License
   ========================================================================== */

/* ---------- Font (self-host) ---------- */
@font-face { font-family: "Rubik"; src: url("../fonts/rubik-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("../fonts/rubik-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("../fonts/rubik-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto Mono"; src: url("../fonts/roboto-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto Mono"; src: url("../fonts/roboto-mono-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- Variabel tema (ubah di sini) ---------- */
:root {
  --or: #d84315;          /* oranye-merah utama */
  --or-600: #bf360c;      /* tautan/tombol hover, kontras tinggi */
  --or-100: #fbe9e7;      /* latar lembut oranye */
  --slate: #263238;       /* slate utama */
  --slate-900: #172024;   /* slate tergelap */
  --slate-700: #37474f;
  --slate-500: #546e7a;
  --slate-300: #90a4ae;
  --bg: #f3f5f6;
  --surface: #ffffff;
  --line: #dde3e6;
  --text: #1f2a2f;
  --muted: #56656c;

  /* level status peringatan */
  --lv-normal: #2e7d32;
  --lv-waspada: #f9a825;
  --lv-siaga: #ef6c00;
  --lv-awas: #c62828;

  --font-head: "Rubik", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-body: "Rubik", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, Consolas, monospace;

  --radius: 4px;
  --shadow: 0 1px 2px rgba(23, 32, 36, .06), 0 8px 24px rgba(23, 32, 36, .08);
  --container: 1240px;
  --header-h: 72px;
}

/* ---------- 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: 16px; line-height: 1.65; color: var(--text); background: var(--bg); }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--or-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--or); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; color: var(--slate-900); font-weight: 700; }
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; font-weight: 500; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 3px solid var(--lv-waspada); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 999; background: var(--or); color: #fff; padding: 10px 16px; font-weight: 500; }
.skip-link:focus { top: 12px; color: #fff; }
.icon { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mono { font-family: var(--font-mono); }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

/* ---------- Pita hazard (pembatas khas) ---------- */
.hazard { height: 10px; background: repeating-linear-gradient(-45deg, var(--or) 0 14px, var(--slate) 14px 28px); }
.hazard--thin { height: 5px; }
.hazard--amber { background: repeating-linear-gradient(-45deg, var(--lv-waspada) 0 14px, var(--slate-900) 14px 28px); }

/* ---------- Banner peringatan dini ---------- */
.alertbar { background: var(--or); color: #fff; font-size: .9rem; position: relative; z-index: 60; }
.alertbar[hidden] { display: none; }
.alertbar__inner { display: flex; align-items: center; gap: 14px; min-height: 42px; }
.alertbar__level { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-weight: 600; letter-spacing: .06em; background: var(--slate-900); padding: 4px 10px; border-radius: 2px; white-space: nowrap; font-size: .78rem; }
.blink { width: 9px; height: 9px; border-radius: 50%; background: var(--lv-waspada); box-shadow: 0 0 0 0 rgba(249, 168, 37, .7); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(249, 168, 37, .7); } 70% { box-shadow: 0 0 0 10px rgba(249, 168, 37, 0); } 100% { box-shadow: 0 0 0 0 rgba(249, 168, 37, 0); } }
.ticker { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker__track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
.ticker__track span { white-space: nowrap; padding-right: 56px; }
.ticker__track b { font-family: var(--font-mono); font-weight: 600; margin-right: 6px; }
@keyframes ticker { to { transform: translateX(-50%); } }
.alertbar__link { color: #fff; font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.alertbar__link .icon { width: 16px; height: 16px; }
.alertbar__link:hover { color: var(--slate-900); }
.alertbar__close { background: none; border: 0; color: #fff; padding: 6px; cursor: pointer; display: grid; place-items: center; }

/* ---------- Utility bar (jam, cuaca, hotline) ---------- */
.utilbar { background: var(--slate-900); color: #cfd8dc; font-family: var(--font-mono); font-size: .78rem; }
.utilbar__inner { display: flex; align-items: center; gap: 22px; min-height: 36px; }
.utilbar__item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.utilbar__item .icon { width: 15px; height: 15px; color: var(--lv-waspada); }
.utilbar__spacer { flex: 1; }
.utilbar a { color: #fff; text-decoration: none; }
.utilbar a:hover { color: var(--lv-waspada); }

/* ---------- Header utama ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.header.is-scrolled { box-shadow: 0 6px 24px rgba(23, 32, 36, .12); }
.header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); transition: height .25s; }
.header.is-scrolled .header__inner { height: 62px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--slate-900); }
.brand img { width: 46px; height: 46px; }
.brand__text { line-height: 1.1; }
.brand__text strong { display: block; font-size: 1.12rem; letter-spacing: .01em; }
.brand__text small { font-family: var(--font-mono); font-size: .68rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.nav { margin-left: auto; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; color: var(--slate-700); text-decoration: none; font-weight: 500; font-size: .95rem; border: 0; background: none; cursor: pointer; position: relative; }
.nav__link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; background: var(--or); transform: scaleX(0); transition: transform .2s; transform-origin: left; }
.nav__link:hover, .nav__item:focus-within > .nav__link { color: var(--slate-900); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--or-600); }
.nav__link .icon { width: 14px; height: 14px; }
.nav__sub { position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--or); box-shadow: var(--shadow); list-style: none; margin: 0; padding: 6px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.nav__item:hover > .nav__sub, .nav__item:focus-within > .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a { display: flex; justify-content: space-between; padding: 9px 12px; color: var(--text); text-decoration: none; font-size: .93rem; }
.nav__sub a::after { content: attr(data-code); font-family: var(--font-mono); font-size: .7rem; color: var(--slate-300); }
.nav__sub a:hover, .nav__sub a.is-active { background: var(--or-100); color: var(--or-600); }
.btn-lapor { display: inline-flex; align-items: center; gap: 9px; background: var(--or); color: #fff; text-decoration: none; font-weight: 500; padding: 11px 16px; border-radius: var(--radius); white-space: nowrap; }
.btn-lapor:hover { background: var(--or-600); color: #fff; }
.btn-lapor .blink { background: #fff; }
.menu-toggle { display: none; margin-left: auto; background: var(--slate); color: #fff; border: 0; width: 44px; height: 44px; border-radius: var(--radius); cursor: pointer; place-items: center; }
.menu-toggle .icon { width: 22px; height: 22px; }

/* Panel menu mobile — sengaja di luar header */
.mnav { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.mnav.is-open { visibility: visible; }
.mnav__backdrop { position: absolute; inset: 0; background: rgba(23, 32, 36, .6); opacity: 0; transition: opacity .25s; }
.mnav.is-open .mnav__backdrop { opacity: 1; }
.mnav__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 360px); background: var(--slate-900); color: #fff; transform: translateX(100%); transition: transform .3s; display: flex; flex-direction: column; overflow-y: auto; }
.mnav.is-open .mnav__panel { transform: none; }
.mnav__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid rgba(255, 255, 255, .1); font-family: var(--font-mono); font-size: .8rem; letter-spacing: .1em; }
.mnav__close { background: none; border: 1px solid rgba(255, 255, 255, .25); color: #fff; width: 40px; height: 40px; border-radius: var(--radius); cursor: pointer; display: grid; place-items: center; }
.mnav__list { list-style: none; margin: 0; padding: 10px 0; }
.mnav__list a { display: flex; align-items: center; gap: 12px; padding: 12px 22px; color: #eceff1; text-decoration: none; }
.mnav__list a span { font-family: var(--font-mono); font-size: .72rem; color: var(--slate-300); width: 22px; }
.mnav__list a:hover, .mnav__list a.is-active { background: rgba(216, 67, 21, .18); color: #fff; box-shadow: inset 3px 0 0 var(--or); }
.mnav__group { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; color: var(--slate-300); padding: 14px 22px 4px; text-transform: uppercase; }
.mnav__foot { margin-top: auto; padding: 20px; border-top: 1px solid rgba(255, 255, 255, .1); }
.mnav__foot .btn-lapor { width: 100%; justify-content: center; }
body.no-scroll { overflow: hidden; }

/* ---------- Tombol ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 20px; border-radius: var(--radius); font-weight: 500; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: .2s; line-height: 1.2; }
.btn .icon { width: 18px; height: 18px; }
.btn--primary { background: var(--or); color: #fff; }
.btn--primary:hover { background: var(--or-600); color: #fff; }
.btn--dark { background: var(--slate); color: #fff; }
.btn--dark:hover { background: var(--slate-900); color: #fff; }
.btn--ghost { border-color: currentColor; color: var(--slate); background: transparent; }
.btn--ghost:hover { background: var(--slate); color: #fff; border-color: var(--slate); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--slate-900); }
.btn--sm { padding: 8px 14px; font-size: .9rem; }
.btn--block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none; }
.link-arrow .icon { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Section & judul ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--white { background: var(--surface); }
.section--dark { background: var(--slate); color: #cfd8dc; }
.section--dark h2, .section--dark h3 { color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--or-600); font-weight: 600; margin-bottom: 12px; }
.eyebrow::before { content: attr(data-no); color: var(--slate-500); }
.section--dark .eyebrow { color: #ff8a65; }
.section--dark .eyebrow::before { color: var(--slate-300); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; max-width: 22ch; }
.sec-head p { margin: 8px 0 0; color: var(--muted); max-width: 60ch; }
.section--dark .sec-head p { color: #b0bec5; }

/* Panel bergaya konsol: braket di sudut */
.panel { position: relative; background: var(--surface); border: 1px solid var(--line); padding: 24px; }
.panel::before, .panel::after { content: ""; position: absolute; width: 14px; height: 14px; border: 3px solid var(--or); pointer-events: none; }
.panel::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.panel::after { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }
.panel__label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; display: flex; justify-content: space-between; gap: 10px; margin-bottom: 14px; }

/* Badge status */
.badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 2px; background: var(--bg); color: var(--slate-700); white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--normal { background: #e8f5e9; color: var(--lv-normal); }
.badge--waspada { background: #fff8e1; color: #9a6700; }
.badge--siaga { background: #fff3e0; color: #b34700; }
.badge--awas { background: #ffebee; color: var(--lv-awas); }
.badge--plain::before { display: none; }

/* ---------- Hero beranda ---------- */
.hero { background: var(--slate-900); color: #cfd8dc; position: relative; overflow: hidden; }
.hero__art { position: absolute; inset: 0 0 0 38%; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--slate-900) 0%, rgba(23, 32, 36, .78) 28%, rgba(23, 32, 36, .05) 65%); }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 100px); }
.hero__meta { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .1em; color: var(--slate-300); display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.hero__meta span { border: 1px solid rgba(255, 255, 255, .18); padding: 5px 10px; }
.hero__meta span b { color: var(--lv-waspada); font-weight: 600; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero h1 em { font-style: normal; color: #ff8a65; }
.hero__lead { font-size: 1.12rem; max-width: 52ch; color: #cfd8dc; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__hotline { display: flex; gap: 26px; margin-top: 38px; flex-wrap: wrap; }
.hero__hotline div { border-left: 3px solid var(--or); padding-left: 12px; }
.hero__hotline small { display: block; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; color: var(--slate-300); text-transform: uppercase; }
.hero__hotline a { color: #fff; font-family: var(--font-mono); font-size: 1.2rem; font-weight: 600; text-decoration: none; }

/* Panel situasi (cuaca/gunung/sungai) */
.situasi { background: rgba(23, 32, 36, .88); border: 1px solid rgba(255, 255, 255, .14); color: #eceff1; position: relative; }
.situasi::before { content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 4px; background: repeating-linear-gradient(-45deg, var(--or) 0 10px, transparent 10px 20px); }
.situasi__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 0; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; color: var(--slate-300); }
.situasi__live { display: inline-flex; align-items: center; gap: 8px; color: #a5d6a7; }
.situasi__live i { width: 8px; height: 8px; border-radius: 50%; background: #66bb6a; animation: pulse 1.6s infinite; }
.tabs--console { display: flex; gap: 4px; padding: 14px 20px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.tabs--console button { background: none; border: 0; color: #b0bec5; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .06em; padding: 10px 12px; cursor: pointer; border-bottom: 3px solid transparent; text-transform: uppercase; }
.tabs--console button[aria-selected="true"] { color: #fff; border-color: var(--or); }
.situasi__body { padding: 20px; }
.situasi select { width: 100%; background: var(--slate-700); color: #fff; border: 1px solid rgba(255, 255, 255, .2); padding: 9px 12px; border-radius: var(--radius); font-size: .9rem; }
.wx-now { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: center; margin: 18px 0; }
.wx-now__icon { grid-row: span 2; width: 64px; height: 64px; color: var(--lv-waspada); }
.wx-now__icon .icon { width: 64px; height: 64px; stroke-width: 1.5; }
.wx-now__temp { font-family: var(--font-mono); font-size: 2.6rem; font-weight: 600; color: #fff; line-height: 1; }
.wx-now__desc { color: #cfd8dc; }
.wx-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, .1); margin-bottom: 16px; }
.wx-stats div { background: var(--slate-900); padding: 10px; font-family: var(--font-mono); font-size: .72rem; color: var(--slate-300); }
.wx-stats b { display: block; color: #fff; font-size: 1rem; font-weight: 600; }
.wx-week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.wx-week div { text-align: center; border: 1px solid rgba(255, 255, 255, .1); padding: 8px 4px; font-family: var(--font-mono); font-size: .72rem; }
.wx-week .icon { margin: 5px auto; width: 22px; height: 22px; color: var(--lv-waspada); }
.wx-week b { color: #fff; display: block; font-weight: 600; }
.gauge-row { display: grid; gap: 14px; }
.gauge { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: .9rem; }
.gauge__bar { grid-column: 1 / -1; height: 10px; background: linear-gradient(90deg, var(--lv-normal) 0 45%, var(--lv-waspada) 45% 65%, var(--lv-siaga) 65% 85%, var(--lv-awas) 85%); position: relative; opacity: .9; }
.gauge__bar i { position: absolute; top: -5px; width: 4px; height: 20px; background: #fff; box-shadow: 0 0 0 2px var(--slate-900); }
.gauge span { font-family: var(--font-mono); font-size: .8rem; color: #fff; }
.volcano-card { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.volcano-card div { border: 1px solid rgba(255, 255, 255, .12); padding: 12px; }
.volcano-card small { display: block; font-family: var(--font-mono); font-size: .7rem; color: var(--slate-300); text-transform: uppercase; letter-spacing: .08em; }
.volcano-card b { color: #fff; font-family: var(--font-mono); font-size: 1.05rem; }
.situasi__foot { padding: 12px 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-family: var(--font-mono); font-size: .7rem; color: var(--slate-300); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.situasi__foot a { color: #ff8a65; }

/* ---------- Strip level status ---------- */
.levels { background: var(--surface); border-bottom: 1px solid var(--line); }
.levels__inner { display: grid; grid-template-columns: 260px repeat(4, 1fr); }
.levels__title { padding: 20px 20px 20px 0; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; display: flex; flex-direction: column; justify-content: center; }
.levels__title strong { font-family: var(--font-head); font-size: 1.05rem; color: var(--slate-900); letter-spacing: 0; text-transform: none; }
.level { padding: 18px 20px; border-left: 1px solid var(--line); position: relative; }
.level::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--c); }
.level b { display: block; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .1em; color: color-mix(in srgb, var(--c) 72%, #000); }
.level span { font-size: .88rem; color: var(--muted); }
.level.is-current { background: color-mix(in srgb, var(--c) 9%, #fff); }
.level.is-current::after { content: "STATUS KINI"; display: table; margin-top: 8px; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; background: var(--slate-900); color: #fff; padding: 2px 6px; }

/* ---------- Layanan cepat (kode konsol) ---------- */
.quick { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--surface); }
.quick__item { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); position: relative; transition: background .2s; }
.quick__item:hover { background: var(--slate-900); color: #cfd8dc; }
.quick__item:hover h3 { color: #fff; }
.quick__code { font-family: var(--font-mono); font-size: .72rem; color: var(--slate-500); letter-spacing: .1em; position: absolute; top: 14px; right: 16px; }
.quick__icon { grid-row: span 2; width: 52px; height: 52px; display: grid; place-items: center; background: var(--or-100); color: var(--or); border-radius: var(--radius); }
.quick__item:hover .quick__icon { background: var(--or); color: #fff; }
.quick__icon .icon { width: 26px; height: 26px; }
.quick__item h3 { margin: 4px 0 0; font-size: 1.08rem; }
.quick__item p { margin: 0; font-size: .92rem; color: var(--muted); }
.quick__item:hover p { color: #b0bec5; }

/* ---------- Log kejadian + statistik ---------- */
.ops { display: grid; grid-template-columns: 1.55fr 1fr; gap: 28px; align-items: start; }
.logtable { width: 100%; font-size: .93rem; }
.logtable th { text-align: left; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 2px solid var(--slate); }
.logtable td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.logtable td:first-child { font-family: var(--font-mono); font-size: .82rem; color: var(--slate-500); white-space: nowrap; }
.logtable tbody tr:hover { background: #fafbfb; }
.logtable td small { display: block; color: var(--muted); font-size: .84rem; }
.table-wrap { overflow-x: auto; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--surface); padding: 22px; }
.stat__num { font-family: var(--font-mono); font-size: 2.2rem; font-weight: 600; color: var(--slate-900); line-height: 1; }
.stat__num small { font-size: 1rem; color: var(--or); margin-left: 2px; }
.stat__label { font-size: .88rem; color: var(--muted); margin-top: 8px; }
.stat--accent { background: var(--or); }
.stat--accent .stat__num, .stat--accent .stat__label, .stat--accent .stat__num small { color: #fff; }

/* ---------- Peta risiko interaktif ---------- */
.riskmap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: stretch; }
.riskmap__map { background: #1d282d; border: 1px solid rgba(255, 255, 255, .1); padding: 18px; position: relative; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 32px 32px; }
.riskmap__map svg { width: 100%; height: auto; }
.riskmap__map .kec { stroke: #172024; stroke-width: 3; cursor: pointer; transition: fill .3s, opacity .2s; outline: none; }
.riskmap__map .kec:hover, .riskmap__map .kec:focus { opacity: .82; stroke: #fff; }
.riskmap__map .kec.is-selected { stroke: #fff; stroke-width: 4; }
.riskmap__map text { font-family: var(--font-mono); font-size: 13px; fill: #fff; pointer-events: none; paint-order: stroke; stroke: rgba(23, 32, 36, .7); stroke-width: 3px; }
.riskmap__compass { position: absolute; top: 18px; right: 18px; font-family: var(--font-mono); font-size: .7rem; color: var(--slate-300); text-align: center; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #cfd8dc; padding: 8px 14px; font-size: .88rem; cursor: pointer; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; }
.chip .icon { width: 16px; height: 16px; }
.chip[aria-pressed="true"] { background: var(--or); border-color: var(--or); color: #fff; }
.chip--light { border-color: var(--line); color: var(--slate-700); background: var(--surface); }
.chip--light[aria-pressed="true"] { background: var(--slate); border-color: var(--slate); color: #fff; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-family: var(--font-mono); font-size: .72rem; color: #b0bec5; margin-top: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; display: inline-block; }
.riskinfo { background: var(--slate-900); border: 1px solid rgba(255, 255, 255, .12); padding: 26px; display: flex; flex-direction: column; }
.riskinfo h3 { font-size: 1.5rem; margin-bottom: 4px; }
.riskinfo dl { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255, 255, 255, .1); margin: 18px 0; }
.riskinfo dl div { background: var(--slate-900); padding: 12px; }
.riskinfo dt { font-family: var(--font-mono); font-size: .68rem; color: var(--slate-300); letter-spacing: .1em; text-transform: uppercase; }
.riskinfo dd { margin: 2px 0 0; color: #fff; font-weight: 500; }
.riskinfo ul { margin: 0 0 18px; padding: 0; list-style: none; }
.riskinfo li { padding: 8px 0; border-bottom: 1px dashed rgba(255, 255, 255, .12); display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; }
.riskinfo .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Tab & panduan ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 2px solid var(--line); margin-bottom: 28px; }
.tabs button { background: none; border: 0; padding: 14px 20px; cursor: pointer; font-weight: 500; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; display: inline-flex; align-items: center; gap: 8px; }
.tabs button .icon { width: 18px; height: 18px; }
.tabs button[aria-selected="true"] { color: var(--slate-900); border-color: var(--or); }
.tabs button:hover { color: var(--slate-900); }
.tabpanel[hidden] { display: none; }
.phase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); background: var(--surface); }
.phase__col { padding: 26px; border-right: 1px solid var(--line); }
.phase__col:last-child { border-right: 0; }
.phase__col h3 { display: flex; align-items: center; gap: 10px; }
.phase__col h3 span { font-family: var(--font-mono); font-size: .72rem; background: var(--slate); color: #fff; padding: 3px 7px; letter-spacing: .08em; }
.phase__col:nth-child(2) h3 span { background: var(--or); }
.phase__col:nth-child(3) h3 span { background: var(--lv-normal); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding: 8px 0 8px 30px; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 11px; width: 18px; height: 18px; border: 2px solid var(--or); border-radius: 2px; }
.checklist li::after { content: ""; position: absolute; left: 6px; top: 14px; width: 5px; height: 9px; border: solid var(--or); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ---------- Sambutan ---------- */
.welcome { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: center; }
.welcome__photo { position: relative; }
.welcome__photo img { width: 100%; border: 1px solid var(--line); }
.welcome__photo figcaption { position: absolute; left: -12px; right: 24px; bottom: -20px; background: var(--slate-900); color: #fff; padding: 14px 16px; }
.welcome__photo figcaption b { display: block; }
.welcome__photo figcaption span { font-family: var(--font-mono); font-size: .72rem; color: #ff8a65; letter-spacing: .08em; }
.welcome blockquote { margin: 0 0 18px; font-size: 1.28rem; line-height: 1.5; color: var(--slate-900); font-weight: 500; border-left: 4px solid var(--or); padding-left: 22px; }

/* ---------- Berita ---------- */
.news-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; }
.card { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__img { aspect-ratio: 16 / 10; overflow: hidden; position: relative; background: var(--slate-700); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card__img img { transform: scale(1.04); }
.card__tag { position: absolute; left: 0; top: 14px; background: var(--or); color: #fff; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; }
.card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card__meta { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); letter-spacing: .04em; display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.card__meta .icon { width: 13px; height: 13px; }
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card h3 a { color: var(--slate-900); text-decoration: none; }
.card h3 a:hover { color: var(--or-600); }
.card p { color: var(--muted); font-size: .93rem; }
.card .link-arrow { margin-top: auto; }
.card--feature h3 { font-size: 1.5rem; }
.card--feature .card__img { aspect-ratio: 16 / 9; }
.news-list { display: grid; gap: 14px; }
.news-row { display: grid; grid-template-columns: 140px 1fr; gap: 16px; background: var(--surface); border: 1px solid var(--line); padding: 12px; align-items: center; }
.news-row img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.news-row h3 { font-size: 1rem; margin: 4px 0 0; }
.news-row h3 a { color: var(--slate-900); text-decoration: none; }
.news-row h3 a:hover { color: var(--or-600); }
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Agenda & pengumuman ---------- */
.agenda { display: grid; gap: 0; border-top: 1px solid var(--line); }
.agenda__item { display: grid; grid-template-columns: 76px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.agenda__date { background: var(--slate); color: #fff; text-align: center; padding: 8px 4px; font-family: var(--font-mono); line-height: 1.1; align-self: start; }
.agenda__date b { display: block; font-size: 1.6rem; }
.agenda__date span { font-size: .7rem; letter-spacing: .1em; color: #ff8a65; }
.agenda__item h3 { font-size: 1rem; margin: 0 0 4px; }
.agenda__item p { margin: 0; font-size: .88rem; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.agenda__item p span { display: inline-flex; gap: 5px; align-items: center; }
.agenda__item .icon { width: 14px; height: 14px; }

/* ---------- Galeri ---------- */
.gal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gal-item { position: relative; overflow: hidden; background: var(--slate-700); border: 0; padding: 0; cursor: zoom-in; aspect-ratio: 4 / 3; display: block; width: 100%; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gal-item:hover img { transform: scale(1.06); }
.gal-item figcaption, .gal-item .gal-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; background: linear-gradient(transparent, rgba(23, 32, 36, .9)); color: #fff; font-size: .85rem; text-align: left; opacity: 0; transform: translateY(8px); transition: .25s; }
.gal-item:hover .gal-cap, .gal-item:focus-visible .gal-cap { opacity: 1; transform: none; }
.gal-cap small { display: block; font-family: var(--font-mono); font-size: .66rem; color: #ff8a65; letter-spacing: .1em; text-transform: uppercase; }
.gal-grid--home .gal-item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gal-item.is-hidden { display: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(12, 17, 19, .94); display: none; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: 1100px; width: 100%; }
.lightbox img { width: 100%; max-height: 76vh; object-fit: contain; }
.lightbox figcaption { color: #eceff1; margin-top: 12px; display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; }
.lightbox figcaption span { font-family: var(--font-mono); color: var(--slate-300); font-size: .8rem; }
.lb-btn { position: absolute; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); color: #fff; width: 48px; height: 48px; cursor: pointer; display: grid; place-items: center; border-radius: var(--radius); }
.lb-btn:hover { background: var(--or); border-color: var(--or); }
.lb-btn .icon { width: 24px; height: 24px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* Video */
.video-card { background: var(--surface); border: 1px solid var(--line); }
.video-thumb { position: relative; display: block; width: 100%; border: 0; padding: 0; cursor: pointer; aspect-ratio: 16 / 9; overflow: hidden; background: var(--slate-900); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.video-thumb:hover img { transform: scale(1.04); }
.video-thumb__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 70px; height: 70px; border-radius: 50%; background: var(--or); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(216, 67, 21, .3); transition: .2s; }
.video-thumb:hover .video-thumb__play { box-shadow: 0 0 0 16px rgba(216, 67, 21, .25); }
.video-thumb__play .icon { width: 28px; height: 28px; fill: #fff; margin-left: 4px; }
.video-thumb__dur { position: absolute; right: 10px; bottom: 10px; background: rgba(23, 32, 36, .85); color: #fff; font-family: var(--font-mono); font-size: .74rem; padding: 2px 7px; }
.video-card__body { padding: 16px 18px; }
.video-card__body h3 { font-size: 1.02rem; margin: 0 0 4px; }
.video-card__body p { margin: 0; font-size: .86rem; color: var(--muted); }
.vmodal { position: fixed; inset: 0; z-index: 300; background: rgba(12, 17, 19, .94); display: none; align-items: center; justify-content: center; padding: 60px 20px; }
.vmodal.is-open { display: flex; }
.vmodal__box { width: min(100%, 1000px); }
.vmodal__frame { aspect-ratio: 16 / 9; background: #000; }
.vmodal__frame iframe { width: 100%; height: 100%; border: 0; }
.vmodal__title { color: #fff; margin-top: 12px; }

/* ---------- Testimoni slider ---------- */
.slider { position: relative; overflow: hidden; }
.slider__track { display: flex; transition: transform .5s ease; }
.slide { min-width: 100%; display: grid; grid-template-columns: 1fr; padding: 4px; }
.quote-card { background: var(--slate-700); border-left: 5px solid var(--or); padding: 34px; color: #eceff1; }
.quote-card p { font-size: 1.2rem; line-height: 1.6; }
.quote-card footer { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.quote-card footer i { width: 48px; height: 48px; display: grid; place-items: center; background: var(--or); color: #fff; font-style: normal; font-weight: 700; font-family: var(--font-mono); }
.quote-card footer b { display: block; color: #fff; }
.quote-card footer span { font-family: var(--font-mono); font-size: .74rem; color: var(--slate-300); }
.slider__nav { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.slider__nav button { width: 44px; height: 44px; background: transparent; border: 1px solid rgba(255, 255, 255, .3); color: #fff; cursor: pointer; display: grid; place-items: center; }
.slider__nav button:hover { background: var(--or); border-color: var(--or); }
.slider__dots { display: flex; gap: 6px; margin-left: 10px; }
.slider__dots button { width: 26px; height: 5px; border: 0; padding: 0; background: rgba(255, 255, 255, .25); }
.slider__dots button[aria-current="true"] { background: var(--or); }
.slider__count { margin-left: auto; font-family: var(--font-mono); font-size: .82rem; color: var(--slate-300); }

/* ---------- CTA nomor darurat ---------- */
.emergency { background: var(--or); color: #fff; position: relative; overflow: hidden; }
.emergency::before { content: ""; position: absolute; right: -60px; top: -60px; width: 360px; height: 360px; border: 50px solid rgba(255, 255, 255, .08); border-radius: 50%; }
.emergency__inner { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: 44px 0; position: relative; }
.emergency h2 { color: #fff; margin: 0 0 6px; }
.emergency p { margin: 0; color: #ffe0d6; }
.emergency__nums { display: flex; gap: 12px; flex-wrap: wrap; }
.emergency__nums a { background: var(--slate-900); color: #fff; text-decoration: none; padding: 14px 18px; min-width: 170px; }
.emergency__nums a:hover { background: #000; }
.emergency__nums small { display: block; font-family: var(--font-mono); font-size: .68rem; color: #ffab91; letter-spacing: .1em; text-transform: uppercase; }
.emergency__nums b { font-family: var(--font-mono); font-size: 1.2rem; }

/* ---------- Page hero (halaman dalam) ---------- */
.page-hero { background: var(--slate-900); color: #cfd8dc; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 38%; background: url("../img/hero-bpbd.svg") center 65% / cover; opacity: .35; clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }
.page-hero__inner { position: relative; z-index: 1; padding: 50px 0 54px; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.8rem); max-width: 22ch; margin-bottom: 10px; }
.page-hero p { max-width: 60ch; margin: 0; color: #b0bec5; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .04em; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--slate-500); }
.crumbs a { color: #ff8a65; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--slate-300); }

/* ---------- Konten umum ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.4em; }
.prose blockquote { margin: 1.5em 0; padding: 18px 22px; border-left: 4px solid var(--or); background: var(--or-100); font-weight: 500; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-family: var(--font-mono); font-size: .76rem; color: var(--muted); margin-top: 8px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.layout-side { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.side-box { background: var(--surface); border: 1px solid var(--line); padding: 22px; margin-bottom: 24px; }
.side-box h3 { font-size: 1rem; font-family: var(--font-mono); letter-spacing: .1em; text-transform: uppercase; border-bottom: 2px solid var(--slate); padding-bottom: 10px; margin-bottom: 14px; }
.side-links { list-style: none; padding: 0; margin: 0; }
.side-links li { border-bottom: 1px solid var(--line); }
.side-links a { display: flex; justify-content: space-between; padding: 10px 0; color: var(--text); text-decoration: none; font-size: .94rem; }
.side-links a:hover { color: var(--or-600); }
.side-links a span { font-family: var(--font-mono); font-size: .76rem; color: var(--muted); }

/* Visi-misi */
.vm { display: grid; grid-template-columns: 1fr 1.4fr; gap: 0; border: 1px solid var(--line); background: var(--surface); }
.vm__visi { background: var(--slate); color: #fff; padding: 36px; position: relative; }
.vm__visi h3 { color: #ff8a65; font-family: var(--font-mono); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; }
.vm__visi p { font-size: 1.45rem; line-height: 1.4; font-weight: 500; margin: 0; }
.vm__misi { padding: 36px; }
.vm__misi h3 { font-family: var(--font-mono); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--or-600); }
.vm__misi ol { list-style: none; padding: 0; margin: 0; counter-reset: m; }
.vm__misi li { counter-increment: m; display: grid; grid-template-columns: 40px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.vm__misi li::before { content: counter(m, decimal-leading-zero); font-family: var(--font-mono); font-weight: 600; color: var(--or); }

/* Akordeon */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); background: var(--surface); }
.acc-btn { width: 100%; display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: none; border: 0; cursor: pointer; text-align: left; font-weight: 500; font-size: 1.02rem; color: var(--slate-900); }
.acc-btn span.mono { font-size: .76rem; color: var(--or-600); }
.acc-btn .icon { margin-left: auto; transition: transform .25s; }
.acc-btn[aria-expanded="true"] .icon { transform: rotate(45deg); }
.acc-btn[aria-expanded="true"] { color: var(--or-600); }
.acc-panel { padding: 0 20px 20px 58px; color: var(--muted); }
.acc-panel[hidden] { display: none; }
.acc-panel ul { margin: 0; }

/* Struktur organisasi */
.org { display: flex; flex-direction: column; align-items: center; gap: 0; overflow-x: auto; padding-bottom: 10px; }
.org__node { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--slate); padding: 12px 16px; text-align: center; min-width: 200px; position: relative; }
.org__node b { display: block; font-size: .95rem; }
.org__node small { font-family: var(--font-mono); font-size: .7rem; color: var(--muted); }
.org__node--top { border-top-color: var(--or); background: var(--slate-900); color: #fff; }
.org__node--top small { color: #ff8a65; }
.org__line { width: 2px; height: 26px; background: var(--slate-300); }
.org__row { display: flex; gap: 18px; position: relative; padding-top: 26px; justify-content: center; }
.org__row::before { content: ""; position: absolute; top: 0; left: calc(100% / var(--n) / 2); right: calc(100% / var(--n) / 2); height: 2px; background: var(--slate-300); }
.org__row > div { display: flex; flex-direction: column; align-items: center; position: relative; flex: 1; }
.org__row > div::before { content: ""; position: absolute; top: -26px; left: 50%; width: 2px; height: 26px; background: var(--slate-300); }
.org__row .org__node { width: 100%; min-width: 180px; }
.org__sub { list-style: none; padding: 0; margin: 10px 0 0; width: 100%; display: grid; gap: 6px; }
.org__sub li { background: var(--bg); border-left: 3px solid var(--or); padding: 7px 10px; font-size: .84rem; }
.org__side { display: flex; justify-content: flex-end; width: 100%; max-width: 900px; margin-top: -10px; }

/* Timeline */
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: repeating-linear-gradient(var(--slate-300) 0 8px, transparent 8px 14px); }
.tl-item { position: relative; padding-bottom: 26px; }
.tl-item::before { content: ""; position: absolute; left: -31px; top: 5px; width: 16px; height: 16px; background: var(--or); border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--or); }
.tl-item b { font-family: var(--font-mono); color: var(--or-600); }
.tl-item h3 { margin: 2px 0 4px; font-size: 1.05rem; }
.tl-item p { margin: 0; color: var(--muted); font-size: .94rem; }

/* Pejabat */
.officer-main { display: grid; grid-template-columns: 340px 1fr; gap: 0; background: var(--surface); border: 1px solid var(--line); }
.officer-main img { width: 100%; height: 100%; object-fit: cover; }
.officer-main__body { padding: 36px; }
.officer-main dl { display: grid; grid-template-columns: 180px 1fr; gap: 0; margin: 20px 0 0; font-size: .94rem; }
.officer-main dt, .officer-main dd { padding: 9px 0; border-bottom: 1px solid var(--line); margin: 0; }
.officer-main dt { font-family: var(--font-mono); font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding-top: 11px; }
.officer { background: var(--surface); border: 1px solid var(--line); text-align: left; }
.officer img { aspect-ratio: 5 / 6; object-fit: cover; width: 100%; }
.officer__body { padding: 16px 18px; border-top: 4px solid var(--or); }
.officer__body h3 { font-size: 1.02rem; margin: 0 0 2px; }
.officer__body p { margin: 0; font-size: .86rem; color: var(--muted); }
.officer__body small { font-family: var(--font-mono); font-size: .7rem; color: var(--slate-500); display: block; margin-top: 8px; }

/* Program */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 26px; background: var(--surface); border: 1px solid var(--line); padding: 14px; }
.search { position: relative; flex: 1; min-width: 220px; }
.search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.search input { width: 100%; padding: 11px 12px 11px 40px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.toolbar select { padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); min-width: 160px; }
.result-info { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); margin: -12px 0 18px; }
.empty-state { text-align: center; padding: 40px; border: 2px dashed var(--line); color: var(--muted); }
.empty-state[hidden] { display: none; }
.program { background: var(--surface); border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.program[hidden] { display: none; }
.program__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.program__code { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }
.program h3 { margin: 4px 0 0; font-size: 1.1rem; }
.program p { margin: 0; color: var(--muted); font-size: .92rem; }
.progress { height: 8px; background: var(--bg); position: relative; overflow: hidden; }
.progress i { position: absolute; left: 0; top: 0; bottom: 0; background: repeating-linear-gradient(-45deg, var(--or) 0 8px, #e65a2a 8px 16px); width: var(--v); }
.progress-meta { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .74rem; color: var(--muted); }
.datatable { background: var(--surface); border: 1px solid var(--line); font-size: .93rem; }
.datatable th { background: var(--slate); color: #fff; text-align: left; padding: 12px 14px; font-weight: 500; font-size: .86rem; }
.datatable td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.datatable tbody tr:nth-child(even) { background: #fafbfb; }
.datatable tfoot td { font-weight: 700; background: var(--or-100); }
.datatable .num { text-align: right; font-family: var(--font-mono); font-size: .86rem; white-space: nowrap; }
.datatable tr[hidden] { display: none; }
.file-ico { display: inline-grid; place-items: center; width: 38px; height: 44px; background: var(--or-100); color: var(--or-600); font-family: var(--font-mono); font-size: .64rem; font-weight: 600; clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%); margin-right: 12px; flex: none; }
.file-cell { display: flex; align-items: center; }
.file-cell small { display: block; color: var(--muted); font-size: .8rem; }

/* Layanan */
.svc-layout { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; }
.svc-tabs { display: grid; gap: 6px; position: sticky; top: 100px; }
.svc-tabs button { text-align: left; background: var(--surface); border: 1px solid var(--line); padding: 14px 16px; cursor: pointer; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; }
.svc-tabs button .mono { grid-row: span 2; font-size: .76rem; color: var(--or-600); }
.svc-tabs button b { font-weight: 500; }
.svc-tabs button small { color: var(--muted); font-size: .8rem; }
.svc-tabs button[aria-selected="true"] { background: var(--slate-900); color: #fff; border-color: var(--slate-900); box-shadow: inset 4px 0 0 var(--or); }
.svc-tabs button[aria-selected="true"] small { color: var(--slate-300); }
.svc-tabs button[aria-selected="true"] .mono { color: #ff8a65; }
.spec { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 20px 0 28px; }
.spec div { background: var(--surface); padding: 14px 16px; }
.spec small { display: block; font-family: var(--font-mono); font-size: .68rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.spec b { font-weight: 500; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 22px 56px; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 38px; height: 38px; display: grid; place-items: center; background: var(--slate); color: #fff; font-family: var(--font-mono); font-size: .82rem; font-weight: 600; }
.steps li::after { content: ""; position: absolute; left: 18px; top: 42px; bottom: 4px; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps li b { display: block; padding-top: 6px; }
.steps li span { color: var(--muted); font-size: .93rem; }
.steps--h { grid-template-columns: repeat(5, 1fr); gap: 16px; }
.steps--h li { padding: 52px 0 0; }
.steps--h li::after { left: 46px; right: -12px; top: 18px; bottom: auto; width: auto; height: 2px; }
.maklumat { background: var(--slate-900); color: #eceff1; padding: 36px; border: 1px solid var(--slate-700); position: relative; }
.maklumat::before { content: ""; position: absolute; inset: 10px; border: 1px dashed rgba(255, 255, 255, .18); pointer-events: none; }
.maklumat h2 { color: #fff; }
.maklumat p { font-size: 1.1rem; }

/* Peringatan dini */
.warn-hero { background: var(--or); color: #fff; padding: 26px; display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; }
.warn-hero__icon { width: 74px; height: 74px; display: grid; place-items: center; background: var(--slate-900); }
.warn-hero__icon .icon { width: 40px; height: 40px; color: var(--lv-waspada); }
.warn-hero h2 { color: #fff; margin: 0 0 4px; font-size: 1.5rem; }
.warn-hero p { margin: 0; color: #fff3e0; }
.warn-hero__time { font-family: var(--font-mono); font-size: .8rem; text-align: right; }
.forecast { width: 100%; }
.forecast td, .forecast th { text-align: center; }
.forecast td:first-child, .forecast th:first-child { text-align: left; }
.forecast .icon { margin: 0 auto 2px; color: var(--or); }
.river { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.river__card { background: var(--surface); border: 1px solid var(--line); padding: 20px; display: grid; grid-template-columns: 54px 1fr; gap: 16px; }
.river__tube { height: 150px; background: var(--bg); border: 2px solid var(--slate); position: relative; overflow: hidden; }
.river__tube i { position: absolute; left: 0; right: 0; bottom: 0; height: var(--v); background: linear-gradient(#4f9fc8, #2c6c93); }
.river__tube::after { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 0; background: repeating-linear-gradient(transparent 0 14px, rgba(38, 50, 56, .25) 14px 15px); }
.river__card h3 { font-size: 1rem; margin: 0; }
.river__card p { margin: 4px 0 8px; font-family: var(--font-mono); font-size: 1.4rem; color: var(--slate-900); font-weight: 600; }
.river__card small { color: var(--muted); font-size: .82rem; display: block; }
.quake { display: grid; gap: 0; }
.quake__item { display: grid; grid-template-columns: 70px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.quake__mag { width: 62px; height: 62px; display: grid; place-items: center; background: var(--slate); color: #fff; font-family: var(--font-mono); font-size: 1.3rem; font-weight: 600; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.quake__mag.is-high { background: var(--or); }
.quake__item b { display: block; }
.quake__item small { color: var(--muted); font-family: var(--font-mono); font-size: .76rem; }

/* Form */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-weight: 500; margin-bottom: 6px; font-size: .94rem; }
.field label .req { color: var(--or-600); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid #c6d0d4; border-radius: var(--radius); background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--slate); box-shadow: 0 0 0 3px rgba(38, 50, 56, .15); }
.field textarea { min-height: 140px; resize: vertical; }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.field .error { display: none; color: var(--lv-awas); font-size: .82rem; margin-top: 5px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--lv-awas); }
.field.has-error .error { display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--or); }
.radio-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.radio-cards label { border: 1px solid #c6d0d4; padding: 14px; cursor: pointer; display: flex; gap: 10px; align-items: center; background: var(--surface); font-weight: 500; margin: 0; }
.radio-cards input { accent-color: var(--or); }
.radio-cards label:has(input:checked) { border-color: var(--or); box-shadow: inset 0 0 0 1px var(--or); background: var(--or-100); }
.ticket { display: none; background: var(--slate-900); color: #eceff1; padding: 28px; border-left: 5px solid var(--lv-normal); }
.ticket.is-show { display: block; }
.ticket h3 { color: #fff; }
.ticket__no { font-family: var(--font-mono); font-size: 1.8rem; color: var(--lv-waspada); font-weight: 600; letter-spacing: .06em; margin: 8px 0 12px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ticket__no button { font-size: .8rem; background: transparent; border: 1px solid rgba(255, 255, 255, .3); color: #fff; padding: 6px 10px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; font-family: var(--font-body); letter-spacing: 0; }
.track-result { margin-top: 16px; display: none; }
.track-result.is-show { display: block; }

/* Kontak */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); background: var(--surface); }
.contact-card { padding: 26px; border-right: 1px solid var(--line); }
.contact-card:last-child { border-right: 0; }
.contact-card .icon { width: 28px; height: 28px; color: var(--or); margin-bottom: 12px; }
.contact-card h3 { font-size: 1rem; margin-bottom: 6px; }
.contact-card p { margin: 0; color: var(--muted); font-size: .93rem; }
.contact-card a { font-family: var(--font-mono); font-size: .92rem; }
.map-frame { border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--surface); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.hours { width: 100%; font-size: .94rem; }
.hours td { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.hours td:last-child { text-align: right; font-family: var(--font-mono); font-size: .86rem; }

/* PPID */
.ppid-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); background: var(--surface); }
.ppid-stats .stat { border-right: 1px solid var(--line); }
.ppid-stats .stat:last-child { border-right: 0; }

/* Pengumuman */
.notice { display: grid; grid-template-columns: 90px 1fr auto; gap: 20px; align-items: center; background: var(--surface); border: 1px solid var(--line); padding: 18px 20px; border-left: 4px solid var(--slate); }
.notice[hidden] { display: none; }
.notice.is-urgent { border-left-color: var(--or); }
.notice__date { font-family: var(--font-mono); text-align: center; line-height: 1.15; color: var(--slate-900); }
.notice__date b { display: block; font-size: 1.6rem; }
.notice__date span { font-size: .72rem; color: var(--muted); letter-spacing: .08em; }
.notice h3 { font-size: 1.05rem; margin: 6px 0 4px; }
.notice p { margin: 0; color: var(--muted); font-size: .92rem; }
.notice-list { display: grid; gap: 12px; }

/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--text); font-family: var(--font-mono); font-size: .86rem; padding: 0 10px; }
.pagination [aria-current] { background: var(--slate); color: #fff; border-color: var(--slate); }
.pagination a:hover { border-color: var(--or); color: var(--or-600); }

/* Artikel detail */
.article-head { margin-bottom: 24px; }
.article-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: #fff; }
.share { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 28px 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share b { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .1em; margin-right: 6px; }
.share a, .share button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--slate); cursor: pointer; }
.share a:hover, .share button:hover { background: var(--slate); color: #fff; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tags a { font-family: var(--font-mono); font-size: .76rem; background: var(--surface); border: 1px solid var(--line); padding: 5px 10px; text-decoration: none; color: var(--slate-700); }
.tags a:hover { border-color: var(--or); color: var(--or-600); }
.infobox { background: var(--slate-900); color: #cfd8dc; padding: 22px; margin: 1.6em 0; }
.infobox b { color: #fff; }
.infobox .mono { color: #ff8a65; font-size: .76rem; letter-spacing: .1em; }

/* 404 */
.notfound { text-align: center; padding: 80px 0; }
.notfound img { width: min(420px, 90%); margin: 0 auto 20px; }
.notfound__code { font-family: var(--font-mono); font-size: .9rem; letter-spacing: .2em; color: var(--or-600); }

/* ---------- Footer ---------- */
.footer { background: var(--slate-900); color: #b0bec5; font-size: .93rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 60px 0 40px; }
.footer h4 { color: #fff; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer .brand small { color: var(--slate-300); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer a { color: #cfd8dc; text-decoration: none; }
.footer a:hover { color: #ff8a65; }
.footer__contact li { display: flex; gap: 10px; }
.footer__contact .icon { color: var(--or); margin-top: 4px; width: 16px; height: 16px; }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .18); }
.socials a:hover { background: var(--or); border-color: var(--or); color: #fff; }
.socials .icon { width: 17px; height: 17px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-family: var(--font-mono); font-size: .76rem; }
.footer__bottom a { color: #ff8a65; }

/* Kembali ke atas & toast */
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 48px; height: 48px; border: 0; background: var(--or); color: #fff; cursor: pointer; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s; box-shadow: var(--shadow); }
.to-top.is-show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--slate); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 400; transform: translate(-50%, 30px); background: var(--slate-900); color: #fff; padding: 14px 20px; border-left: 4px solid var(--lv-normal); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: .3s; max-width: calc(100% - 40px); display: flex; gap: 10px; align-items: center; }
.toast.is-show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast.is-error { border-left-color: var(--lv-awas); }

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

/* ---------- Responsif ---------- */
@media (max-width: 1180px) {
  .nav, .header .btn-lapor { display: none; }
  .menu-toggle { display: grid; }
  .levels__inner { grid-template-columns: repeat(4, 1fr); }
  .levels__title { grid-column: 1 / -1; padding: 16px 0 10px; }
  .level:first-of-type { border-left: 0; }
}
@media (max-width: 1024px) {
  .hero__grid, .ops, .riskmap, .news-layout, .split, .layout-side, .welcome, .svc-layout, .vm, .officer-main { grid-template-columns: 1fr; }
  .hero__art { inset: 0; opacity: .3; }
  .quick, .grid--4, .gal-grid { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .river, .contact-cards, .ppid-stats { grid-template-columns: repeat(2, 1fr); }
  .contact-card:nth-child(2) { border-right: 0; }
  .contact-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .welcome { max-width: 720px; }
  .welcome__photo { max-width: 320px; }
  .svc-tabs { position: static; grid-template-columns: repeat(2, 1fr); }
  .spec { grid-template-columns: repeat(2, 1fr); }
  .steps--h { grid-template-columns: 1fr; gap: 0; }
  .steps--h li { padding: 0 0 22px 56px; }
  .steps--h li::after { left: 18px; top: 42px; bottom: 4px; right: auto; width: 2px; height: auto; }
  .officer-main img { max-height: 420px; }
  .utilbar__hide-md { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .container { width: min(100% - 28px, var(--container)); }
  .quick, .grid--2, .grid--3, .grid--4, .phase, .river, .contact-cards, .footer__grid, .form-row, .radio-cards, .svc-tabs { grid-template-columns: 1fr; }
  .gal-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gal-grid--home .gal-item:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3; }
  .phase__col { border-right: 0; border-bottom: 1px solid var(--line); }
  .contact-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .levels__inner { grid-template-columns: 1fr 1fr; }
  .level { border-top: 1px solid var(--line); }
  .level:nth-of-type(odd) { border-left: 0; }
  .emergency__inner { grid-template-columns: 1fr; }
  .news-row { grid-template-columns: 100px 1fr; }
  .warn-hero { grid-template-columns: 1fr; }
  .warn-hero__time { text-align: left; }
  .notice { grid-template-columns: 64px 1fr; }
  .notice > :last-child { grid-column: 1 / -1; }
  .utilbar__inner { gap: 14px; overflow-x: auto; }
  .utilbar__hide-sm { display: none; }
  .alertbar__link { display: none; }
  .brand__text small { display: none; }
  .brand img { width: 40px; height: 40px; }
  .lightbox { padding: 60px 10px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .officer-main dl { grid-template-columns: 1fr; }
  .officer-main dt { border-bottom: 0; padding-bottom: 0; }
  .ppid-stats .stat:nth-child(2) { border-right: 0; }
  .wx-week { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .quote-card { padding: 24px; }
  .quote-card p { font-size: 1.05rem; }
  .page-hero::after { width: 60%; opacity: .2; }
  .datatable { font-size: .86rem; }
  .table-wrap .datatable, .table-wrap .logtable { min-width: 620px; }
  .toolbar select, .toolbar .filter-chips { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .alertbar, .utilbar, .header, .footer, .to-top, .mnav { display: none !important; }
}
