/* Tampilan versi F - Pengelolaan Lingkungan PLN Indonesia Power UBP Bali
   Palet mengikuti Laporan Capaian Kinerja UBP Bali */
:root {
  --navy: #0B2447;
  --blue: #1259B5;
  --gold: #F2B705;
  --ink: #13294B;
  --muted: #5B6B82;
  --line: #DCE3EC;
  --soft-line: #EEF1F5;
  --bg: #EEF2F7;
  --white: #FFFFFF;
  --blue-soft: #E8F0FB;
  --green: #17803D;
  --green-soft: #E3F6E9;
  --amber: #8A6100;
  --amber-soft: #FFF3D6;
  --red: #B42323;
  --red-soft: #FDE4E4;
  --gray-soft: #EEF1F5;
  --band-text: #C7D3E6;
  --radius: 18px;
  --shadow: 0 6px 20px rgba(11, 36, 71, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}
a { color: var(--blue); }
a:hover { color: var(--navy); }
img { max-width: 100%; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; width: 100%; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 16px; }
.brand img { height: 32px; width: auto; display: block; }
.brand .sep { width: 1px; height: 30px; background: var(--line); }
.main-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.main-nav a { padding: 10px 18px; border-radius: 999px; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 600; }
.main-nav a:hover { background: var(--blue-soft); color: var(--navy); }
.main-nav a.active { background: var(--navy); color: var(--white); }

/* Band (judul halaman) */
.band { background: var(--navy); color: var(--white); }
.band .wrap { padding-top: 32px; padding-bottom: 84px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.band .titles { display: flex; flex-direction: column; gap: 10px; flex: 1 1 420px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.18em; color: var(--gold); text-transform: uppercase; }
.band h1 { margin: 0; font-size: 36px; line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; }
.band p { margin: 0; font-size: 15px; color: var(--band-text); }
.crumbs { font-size: 13px; color: var(--band-text); display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: var(--band-text); text-decoration: none; }
.crumbs a:hover { color: var(--white); }
.crumbs .here { color: var(--gold); }
.band-stats { display: flex; flex-wrap: wrap; gap: 12px; }
.band-stat { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 14px; padding: 14px 18px; min-width: 150px; }
.band-stat.light { background: var(--white); color: var(--ink); border-color: var(--white); }
.band-stat small { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--band-text); }
.band-stat.light small { color: var(--muted); }
.band-stat b { font-size: 30px; font-weight: 800; }
.band-stat span { font-size: 13px; color: var(--band-text); }
.band-stat.light span { color: var(--muted); }

/* Hero (Home) */
.hero .wrap { padding-top: 48px; padding-bottom: 100px; align-items: center; gap: 40px; }
.hero h1 { font-size: 46px; line-height: 1.1; letter-spacing: -0.02em; }
.hero p { font-size: 16px; line-height: 1.7; max-width: 520px; }
.hero img { flex: 1 1 420px; min-width: 0; width: 100%; height: 300px; object-fit: cover; border-radius: var(--radius); border: 4px solid rgba(255, 255, 255, 0.12); display: block; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.btn { padding: 13px 22px; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: 14px; display: inline-block; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #FFC933; color: var(--navy); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.4); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); }

/* Isi */
.content { flex: 1; margin-top: -56px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 20px; }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 24px 26px; }
.section-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 14px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.section-title::before { content: ''; width: 4px; height: 18px; background: var(--gold); border-radius: 2px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 22px; }
.stat { border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.stat b { font-size: 32px; font-weight: 800; }
.stat span { font-size: 13px; font-weight: 600; }
.stat.blue { background: var(--blue-soft); } .stat.blue b { color: var(--blue); }
.stat.green { background: var(--green-soft); } .stat.green b { color: var(--green); }
.stat.amber { background: var(--amber-soft); } .stat.amber b { color: var(--amber); }
.stat.gray { background: var(--gray-soft); } .stat.gray b { color: var(--navy); }

.link-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.link-card { padding: 24px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px; transition: transform .15s ease, box-shadow .15s ease; }
.link-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(11, 36, 71, 0.12); color: var(--ink); }
.link-card .tag { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; }
.link-card .title { font-size: 18px; font-weight: 800; }
.link-card .desc { font-size: 14px; color: var(--muted); }
.link-card .go { margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--blue); }

/* Aspek */
.aspek-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.aspek-card { padding: 22px; min-height: 170px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 14px; transition: transform .15s ease, box-shadow .15s ease; }
.aspek-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(11, 36, 71, 0.12); color: var(--ink); }
.aspek-card.highlight { outline: 2px solid var(--gold); }
.aspek-card .top { display: flex; justify-content: space-between; align-items: center; }
.icon-box { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.icon-box svg { width: 22px; height: 22px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ib-blue { background: var(--blue-soft); } .ib-blue svg { stroke: var(--blue); }
.ib-green { background: var(--green-soft); } .ib-green svg { stroke: var(--green); }
.ib-amber { background: var(--amber-soft); } .ib-amber svg { stroke: var(--amber); }
.ib-red { background: var(--red-soft); } .ib-red svg { stroke: var(--red); }
.ib-gray { background: var(--gray-soft); } .ib-gray svg { stroke: var(--navy); }
.aspek-card .name { font-weight: 800; font-size: 16px; line-height: 1.35; }
.aspek-card .go { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--blue); }

.pill { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; display: inline-block; white-space: nowrap; }
.pill-green { color: var(--green); background: var(--green-soft); }
.pill-amber { color: var(--amber); background: var(--amber-soft); }
.pill-blue { color: var(--blue); background: var(--blue-soft); }

/* Tabel */
.table-box { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { padding: 10px 8px; border-bottom: 2px solid var(--navy); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); text-align: left; text-transform: uppercase; vertical-align: bottom; }
.data-table td { padding: 14px 8px; border-bottom: 1px solid var(--soft-line); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table .num { text-align: right; }
.data-table .center { text-align: center; }
.data-table .strong { font-weight: 800; color: var(--blue); }
.data-table .belum { color: var(--muted); font-style: italic; font-size: 12px; background: #F7F9FC; }
.data-table a.row-link { color: var(--ink); text-decoration: none; font-weight: 700; }
.data-table a.row-link:hover { color: var(--blue); }
.note { margin: 12px 0 0; font-size: 12px; color: var(--muted); }

/* Tab */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 18px; border-bottom: 1px solid var(--soft-line); }
.tabs button { font: inherit; font-size: 14px; font-weight: 700; border: 0; padding: 10px 16px; border-radius: 999px; cursor: pointer; background: var(--gray-soft); color: var(--ink); }
.tabs button:hover { background: var(--blue-soft); }
.tabs button[aria-selected="true"] { background: var(--navy); color: var(--white); }
.tab-panel { padding: 24px 26px; max-height: 460px; overflow-y: auto; }
.tab-panel[hidden] { display: none; }
.prose { max-width: 880px; font-size: 15px; line-height: 1.8; color: #2B3D5A; }
.prose p { margin: 0 0 14px; text-align: justify; }
.prose ul { margin: 0 0 14px; padding-left: 22px; }
.info-list { margin: 0; display: grid; grid-template-columns: 140px minmax(0, 1fr); row-gap: 16px; column-gap: 20px; font-size: 15px; line-height: 1.6; max-width: 880px; }
.info-list dt { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); padding-top: 3px; text-transform: uppercase; }
.info-list dd { margin: 0; }

/* Grafik batang sederhana */
.split { display: flex; flex-wrap: wrap; gap: 32px; }
.split > * { flex: 1 1 360px; min-width: 0; }
.chart-title { font-size: 14px; font-weight: 700; margin: 0 0 10px; }
.bars { height: 230px; display: flex; align-items: flex-end; gap: 18px; border-bottom: 1px solid #C9D3E0; padding: 0 6px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; justify-content: flex-end; height: 100%; }
.bar .val { font-size: 13px; font-weight: 700; }
.bar .fill { width: 100%; background: var(--blue); border-radius: 6px 6px 0 0; }
.bar .fill.prev { background: #8FB0DD; }
.bar .empty { font-size: 11px; color: var(--muted); text-align: center; padding-bottom: 8px; }
.bar-labels { display: flex; gap: 18px; padding: 0 6px; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.bar-labels span { flex: 1; text-align: center; }

/* Galeri */
.filter { display: flex; flex-wrap: wrap; gap: 8px; }
.filter button { font: inherit; font-size: 13px; font-weight: 700; padding: 10px 16px; border-radius: 999px; cursor: pointer; background: transparent; color: var(--white); border: 1px solid rgba(255, 255, 255, 0.4); }
.filter button[aria-pressed="true"] { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.photo { margin: 0; overflow: hidden; }
.photo img { width: 100%; height: 200px; object-fit: cover; display: block; border-radius: var(--radius) var(--radius) 0 0; }
.photo figcaption { padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; }
.photo .tag { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--blue); }
.photo .cap { font-size: 14px; font-weight: 700; }
.photo[hidden] { display: none; }
.photo-grid.small img { height: 170px; border-radius: 12px; }
.photo-grid.small .photo { box-shadow: none; }

/* Contact */
.contact-row { display: flex; gap: 16px; align-items: flex-start; }
.contact-row .icon-box { flex: 0 0 44px; height: 44px; }
.contact-row small { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); }
.contact-row div { font-size: 15px; line-height: 1.6; font-weight: 600; }
.placeholder { border-radius: 12px; background: var(--blue-soft); display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--muted); min-height: 320px; }

/* Footer */
.site-footer { background: var(--navy); color: var(--band-text); }
.site-footer .wrap { padding-top: 16px; padding-bottom: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12px; }
.site-footer a { color: var(--band-text); }

/* Layar kecil */
@media (max-width: 960px) {
  .aspek-grid, .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .link-grid, .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .aspek-grid, .link-grid, .photo-grid { grid-template-columns: 1fr; }
  .band h1 { font-size: 28px; }
  .hero h1 { font-size: 32px; }
  .brand img { height: 26px; }
  .info-list { grid-template-columns: 1fr; row-gap: 4px; }
  .info-list dd { margin-bottom: 12px; }
  .tab-panel { max-height: none; }
}

/* Penghargaan (carousel) */
.awards-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 24px 0 26px; }
.awards-head .left { display: flex; flex-direction: column; gap: 12px; flex: 1 1 360px; }
.awards-head .kicker { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase; }
.awards-head .kicker::before { content: ''; width: 44px; height: 4px; border-radius: 2px; background: var(--gold); }
.awards-head h2 { margin: 0; font-size: 42px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); }
.awards-head .desc { flex: 1 1 380px; max-width: 560px; margin: 0; font-size: 15px; line-height: 1.75; color: var(--muted); }
.awards-head .nav-btns { display: flex; gap: 12px; }
.round-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--navy); font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(11, 36, 71, 0.08); }
.round-btn:hover { background: var(--blue-soft); }
.round-btn:disabled { opacity: 0.4; cursor: default; box-shadow: none; }
.award-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 20px) / 3); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 1px 8px; scrollbar-width: none; }
.award-track::-webkit-scrollbar { display: none; }
.award-card { scroll-snap-align: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; display: flex; gap: 18px; align-items: flex-start; min-height: 200px; }
.award-icon { flex: 0 0 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.award-icon svg { width: 28px; height: 28px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.award-icon.gold { background: radial-gradient(circle at 35% 30%, #FBE7A1, #E3B23C 60%, #C8922A); box-shadow: inset 0 0 0 3px #F6D57A; }
.award-icon.gold svg { stroke: #7A4E00; }
.award-icon.silver { background: radial-gradient(circle at 35% 30%, #F4F6F8, #C9CFD6 60%, #A9B1BA); box-shadow: inset 0 0 0 3px #E3E7EB; }
.award-icon.silver svg { stroke: #3D4652; }
.award-icon.soft { background: var(--amber-soft); }
.award-icon.soft svg { stroke: #C8922A; }
.award-card .cat { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--blue); text-transform: uppercase; margin-bottom: 10px; }
.award-card h3 { margin: 0 0 10px; font-size: 18px; line-height: 1.35; font-weight: 800; color: var(--navy); }
.award-card p { margin: 0; font-size: 14px; line-height: 1.75; color: var(--muted); }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0; background: #C9D3E0; cursor: pointer; transition: width .2s ease; }
.dots button[aria-current="true"] { width: 34px; background: var(--blue); }
@media (max-width: 960px) { .award-track { grid-auto-columns: calc((100% - 20px) / 2); } .awards-head h2 { font-size: 32px; } }
@media (max-width: 600px) { .award-track { grid-auto-columns: 86%; } }

/* Halaman hasil migrasi */
.prog-card .num { font-size: 13px; font-weight: 800; color: var(--muted); }
.notice { background: var(--amber-soft); color: #5C4300; border-radius: 12px; padding: 16px 18px; font-size: 14px; line-height: 1.6; }
.lead-note { background: var(--blue-soft); border-radius: 10px; padding: 12px 16px; text-align: left !important; }
.prose.wide { max-width: none; }
.prose h4 { color: var(--navy); }
.old-table { min-width: 560px; }
.old-table td, .old-table th { border: 1px solid var(--line); padding: 10px 10px; text-align: center; font-size: 13px; line-height: 1.5; }
.old-table tr:first-child td, .old-table tr:first-child th { background: var(--navy); color: var(--white); font-weight: 700; border-color: var(--navy); }
.old-table tr:last-child td { border-bottom: 1px solid var(--line); }

/* Daftar program (klik untuk detail) */
.prog-list { display: flex; flex-direction: column; gap: 12px; }
.prog-row { display: flex; align-items: center; gap: 18px; padding: 18px 22px; text-decoration: none; color: var(--ink); border: 1px solid transparent; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.prog-row:hover, .prog-row:focus-visible { border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(11, 36, 71, 0.12); color: var(--ink); }
.prog-no { font-size: 13px; font-weight: 800; color: var(--muted); width: 22px; }
.prog-row .icon-box { flex: 0 0 46px; }
.prog-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.prog-name { font-size: 17px; font-weight: 800; color: var(--navy); }
.prog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.prog-stat { flex: 0 0 130px; text-align: right; }
.prog-stat small { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; margin-bottom: 2px; }
.prog-stat b { font-size: 18px; font-weight: 800; color: var(--blue); }
.prog-stat span { font-size: 12px; color: var(--muted); }
.prog-cta { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 13px; font-weight: 700; white-space: nowrap; }
.prog-cta span { font-size: 18px; line-height: 1; }
.prog-row:hover .prog-cta { background: var(--navy); color: var(--white); }
@media (max-width: 900px) {
  .prog-row { flex-wrap: wrap; }
  .prog-main { flex: 1 1 calc(100% - 110px); }
  .prog-stat { flex: 1 1 40%; text-align: left; }
  .prog-cta { flex: 1 1 100%; justify-content: center; }
  .prog-no { display: none; }
}

/* Sistem manajemen (IMS) */
.ims-head { display: flex; gap: 28px; align-items: center; }
.ims-badge { flex: 0 0 120px; height: 120px; border-radius: 50%; background: var(--navy); color: var(--white); display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 0 0 6px var(--blue-soft); }
.ims-badge b { font-size: 30px; font-weight: 800; line-height: 1; }
.ims-badge span { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; margin-top: 4px; }
.sys-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sys-card { display: flex; align-items: center; gap: 14px; padding: 18px; border-left: 5px solid var(--c); }
.sys-icon { flex: 0 0 52px; height: 52px; border-radius: 50%; background: var(--c); display: flex; align-items: center; justify-content: center; }
.sys-icon svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sys-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sys-code { align-self: flex-start; font-size: 13px; font-weight: 800; color: var(--c); background: var(--bg); padding: 4px 10px; border-radius: 999px; }
.sys-name { font-size: 15px; font-weight: 700; color: var(--navy); }
.tick-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.tick-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.tick-list li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: 0 0 8px; }
@media (max-width: 960px) { .sys-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .sys-grid { grid-template-columns: 1fr; } .ims-head { flex-direction: column; align-items: flex-start; } }
