/* ===== Kantor Hukum — gaya publik & admin. Warna utama/aksen bisa diganti dari Pengaturan. ===== */
:root {
  --navy: #1B2F4B;
  --gold: #C6A96B;
  --ink: #1d2430;
  --muted: #5d6675;
  --bg: #F5F3EE;
  --card: #fff;
  --line: #e4e0d6;
  --r: 24px;
  --serif: "Playfair Display", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.65 var(--sans); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.ic { width: 1.2em; height: 1.2em; flex: none; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.sr-only, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
.eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--gold); margin-bottom: .6em; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }

/* Tombol */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: .7em 1.4em; border-radius: 999px; font: 600 .95rem var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #14202f; }
.btn-gold:hover { background: color-mix(in srgb, var(--gold) 85%, #fff); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-sm { min-height: 38px; padding: .45em 1em; font-size: .875rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions.center { justify-content: center; }
.link { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.link:hover { color: var(--gold); }
.badge { display: inline-flex; align-items: center; gap: .4em; padding: .35em .9em; border-radius: 999px; font-size: .8rem; font-weight: 600; background: color-mix(in srgb, var(--gold) 22%, transparent); color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent); margin-bottom: 1rem; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.15rem/1.1 var(--serif); color: var(--navy); }
.brand small { display: block; font: 500 .68rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--navy); color: var(--gold); }
.brand-mark .ic { width: 24px; height: 24px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: .5em .8em; border-radius: 8px; text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink); }
.nav a:not(.btn):hover, .nav a[aria-current] { color: var(--navy); background: color-mix(in srgb, var(--gold) 16%, transparent); }
.nav .btn { margin-left: 8px; color: #14202f; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; place-items: center; color: var(--navy); cursor: pointer; }
@media (max-width: 960px) {
  .nav-toggle { display: grid; }
  .site-head .nav { position: absolute; inset: 72px 0 auto; flex-direction: column; align-items: stretch; padding: 12px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .site-head .nav.open { display: flex; }
  .nav a { padding: .8em; }
  .nav .btn { margin: 8px 0 0; }
}

main section { margin-block: clamp(48px, 7vw, 88px); }

/* Hero */
.hero { position: relative; overflow: hidden; border-radius: var(--r); margin-top: 20px !important; min-height: min(78vh, 680px); display: flex; align-items: flex-end; color: #fff; background: var(--navy); }
.cover-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after, .cta-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, color-mix(in srgb, var(--navy) 94%, transparent) 0%, color-mix(in srgb, var(--navy) 70%, transparent) 50%, color-mix(in srgb, var(--navy) 25%, transparent) 100%); }
.hero-in { position: relative; z-index: 1; padding: clamp(28px, 6vw, 72px); max-width: 760px; }
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255,255,255,.85); }
.hero .eyebrow { color: var(--gold); }
.hero .actions { margin-top: 28px; }

/* Statistik */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--card); border-radius: var(--r); border: 1px solid var(--line); }
.stats div { padding: clamp(20px, 4vw, 40px); text-align: center; }
.stats div + div { border-left: 1px solid var(--line); }
.stats strong { display: block; font: 700 clamp(2rem, 5vw, 3.4rem)/1 var(--serif); color: var(--navy); margin-bottom: 8px; }
.stats span { color: var(--muted); font-size: .95rem; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } .stats div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* Kartu */
.card-dark { background: var(--navy); color: rgba(255,255,255,.82); border-radius: var(--r); padding: clamp(24px, 5vw, 56px); }
.card-dark h2, .card-dark h3 { color: #fff; }
.card-light { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 4vw, 48px); }
.sec-head { margin-bottom: 28px; max-width: 720px; }
.sec-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; max-width: none; flex-wrap: wrap; }
.sec-head.row > div:first-child { max-width: 640px; }
.sec-head h2 { margin: 0; }

/* Daftar layanan bernomor */
.svc-list ol { list-style: none; margin: 0 0 32px; padding: 0; border-top: 1px solid rgba(255,255,255,.14); }
.svc-list li a { display: grid; grid-template-columns: 64px minmax(180px, 1fr) 2fr 40px; gap: 16px; align-items: center; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.14); text-decoration: none; transition: padding .25s, background .25s; }
.svc-list li a:hover { padding-inline: 12px; background: rgba(255,255,255,.04); }
.svc-list .num { font: 600 1.1rem var(--serif); color: var(--gold); }
.svc-list .t { font: 600 1.25rem var(--serif); color: #fff; }
.svc-list .d { font-size: .95rem; }
.svc-list .go { color: var(--gold); justify-self: end; }
@media (max-width: 760px) { .svc-list li a { grid-template-columns: 44px 1fr 24px; } .svc-list .d { grid-column: 2; grid-row: 2; } .svc-list .go { grid-row: 1; grid-column: 3; } }

/* Split: gambar + teks */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.split.top { align-items: start; }
.split > img { border-radius: var(--r); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Grid */
.grid-3, .grid-4 { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }

/* Tim */
.person { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 12px 20px; display: flex; flex-direction: column; }
.person img { border-radius: 16px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; margin-bottom: 16px; }
.person h2, .person h3 { font-size: 1.1rem; margin: 0 8px 4px; }
.person p { margin: 0 8px 6px; font-size: .9rem; color: var(--muted); }
.person .role { color: var(--gold); font-weight: 600; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.person .spec { color: var(--ink); font-weight: 500; }
.person .bio { margin-bottom: 16px; }
.person .btn { margin: auto 8px 0; }

/* Switcher spesialisasi (halaman Tim) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip { min-height: 42px; padding: .5em 1.1em; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 500 .92rem var(--sans); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.person[hidden] { display: none; }
.person.swap { animation: swap-in .45s cubic-bezier(.2,.7,.2,1) both; }
@keyframes swap-in { from { opacity: 0; scale: .96; } }

/* Testimoni */
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: min(440px, 85%); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.carousel::-webkit-scrollbar { display: none; }
.carousel .quote { scroll-snap-align: start; background: var(--bg); }
.quote { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.quote blockquote { margin: 0; font: 500 1.1rem/1.55 var(--serif); color: var(--navy); }
.quote figcaption { display: flex; align-items: center; gap: 12px; font-size: .9rem; color: var(--muted); }
.quote figcaption img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.quote figcaption strong { display: block; color: var(--ink); }
.car-btns { display: flex; gap: 8px; }
.icon-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--navy); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { border-color: var(--gold); color: var(--gold); }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 880px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 0 24px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 32px 20px 0; font-weight: 600; position: relative; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%; font-size: 1.5rem; font-weight: 400; color: var(--gold); transition: rotate .2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details > div { padding-bottom: 20px; color: var(--muted); }

/* CTA */
.cta-banner { position: relative; overflow: hidden; border-radius: var(--r); padding: clamp(40px, 8vw, 96px) clamp(24px, 6vw, 72px); color: #fff; background: var(--navy); text-align: center; }
.cta-banner > :not(img) { position: relative; z-index: 1; }
.cta-banner::after { background: color-mix(in srgb, var(--navy) 72%, transparent); }
.cta-banner h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 3rem); }
.cta-banner p { color: rgba(255,255,255,.85); margin-bottom: 28px; }
.cta-inline { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 32px clamp(24px, 4vw, 48px); border-radius: var(--r); border: 1px solid var(--line); background: var(--card); }
.cta-inline h2 { margin: 0; font-size: 1.6rem; }

/* Kepala halaman dalam */
.page-head { margin-top: 32px !important; margin-bottom: 40px !important; }
.page-head.center { text-align: center; padding-block: 60px; }
.page-head.center .lead { margin-inline: auto; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }

/* Layanan */
.svc-card { display: flex; flex-direction: column; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 32px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.svc-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 16px 40px -24px rgba(27,47,75,.4); }
.svc-card .num { font: 600 1rem var(--serif); color: var(--gold); margin-bottom: 20px; }
.svc-card h2 { font-size: 1.4rem; }
.svc-card p { color: var(--muted); flex: 1; }
.svc-card .link { align-self: flex-start; }
.detail { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.detail > aside { display: grid; gap: 20px; position: sticky; top: 96px; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } .detail > aside { position: static; } }
.side-cta h2 { font-size: 1.5rem; }
.side-cta .btn { width: 100%; }
.ic-line { display: flex; gap: 10px; align-items: center; }
.side-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 8px; display: grid; }
.side-list a { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-radius: 12px; text-decoration: none; font-weight: 500; }
.side-list a:hover, .side-list a[aria-current] { background: var(--bg); color: var(--navy); }
.side-list .ic { color: var(--gold); }
.checks { list-style: none; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ic { color: var(--gold); margin-top: .2em; }

/* Konten artikel/markdown */
.prose { font-size: 1.05rem; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1.2em 0; padding: .4em 1.2em; border-left: 3px solid var(--gold); color: var(--muted); font-style: italic; }
.prose a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.narrow { max-width: 820px; margin-inline: auto; }
.post-cover { border-radius: 16px; margin-bottom: 32px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Kartu artikel */
.post { display: flex; flex-direction: column; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.post:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -24px rgba(27,47,75,.4); }
.post img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post > div { padding: 24px; }
.post h2, .post h3 { font-size: 1.25rem; }
.post p { color: var(--muted); font-size: .95rem; margin: 0; }
.post .meta { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); font-weight: 600; margin-bottom: 10px; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pager a { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--card); text-decoration: none; }
.pager a[aria-current] { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Kontak */
.contact-list p { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact-list .ic { color: var(--gold); width: 24px; height: 24px; margin-top: 2px; }
.contact-list strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact-list a { text-decoration: none; }
.map { width: 100%; height: 100%; min-height: 380px; border: 0; border-radius: var(--r); background: var(--line); }

/* Form */
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: .92rem; }
.form .two, .form .three { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .form .two, .form .three { grid-template-columns: 1fr; } }
input, select, textarea { font: inherit; font-size: 1rem; width: 100%; padding: .7em .9em; border: 1px solid #cfcabd; border-radius: 12px; background: #fff; color: var(--ink); min-height: 46px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--gold) 70%, transparent); outline-offset: 1px; border-color: var(--gold); }
[aria-invalid="true"] { border-color: #b3261e; }
.err { color: #b3261e; font-size: .85rem; font-weight: 500; }
.alert { padding: 12px 16px; border-radius: 12px; font-weight: 500; }
.alert.ok { background: #e6f2ea; color: #1e5a33; }
.alert.err, .err-box { background: #fbe9e7; color: #8c1d18; }
.alert.warn { background: #fdf3dc; color: #6b4c00; }
.form .check { display: flex; align-items: center; gap: 10px; }
.form .check input { width: 20px; min-height: 20px; height: 20px; }
.ok-mark { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: color-mix(in srgb, var(--gold) 25%, transparent); color: var(--navy); margin-bottom: 16px; }
.ok-mark .ic { width: 32px; height: 32px; }

/* Footer */
.site-foot { background: var(--navy); color: rgba(255,255,255,.72); margin-top: 80px; padding-block: 56px 28px; border-radius: var(--r) var(--r) 0 0; }
.foot-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.14); }
.foot-cta h2 { color: #fff; margin: 0; max-width: 560px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; padding-block: 40px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid h3 { font: 600 .78rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.foot-grid a { display: block; text-decoration: none; padding: 4px 0; }
.foot-grid a:hover { color: #fff; }
.foot-brand { font: 600 1.3rem var(--serif); color: #fff; }
.site-foot .muted { color: rgba(255,255,255,.55); }
.copy { font-size: .82rem; color: rgba(255,255,255,.5); border-top: 1px solid rgba(255,255,255,.14); padding-top: 24px; margin: 0; }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #1f9d55; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(0,0,0,.4); }
.wa-float .ic { width: 28px; height: 28px; }

/* Animasi (aktif hanya bila JS menambahkan .js-anim). Pakai `translate`, bukan `transform`,
   agar tidak bentrok dengan efek hover kartu. */
.js-anim .reveal { opacity: 0; translate: 0 28px; transition: opacity .8s ease, translate .8s cubic-bezier(.2,.7,.2,1), transform .2s, box-shadow .2s, border-color .2s, background .25s, padding .25s; }
.js-anim .reveal.in { opacity: 1; translate: 0 0; }
.js-anim .hero .cover-bg { animation: hero-zoom 9s cubic-bezier(.2,.7,.2,1) both; }
.js-anim .hero-in > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.js-anim .hero-in > :nth-child(2) { animation-delay: .1s; }
.js-anim .hero-in > :nth-child(3) { animation-delay: .2s; }
.js-anim .hero-in > :nth-child(4) { animation-delay: .32s; }
.js-anim .hero-in > :nth-child(5) { animation-delay: .44s; }
@keyframes rise { from { opacity: 0; translate: 0 24px; } }
@keyframes hero-zoom { from { transform: scale(1.08); } }

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

/* ===================== ADMIN ===================== */
body.admin { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; background: #f3f4f6; }
.side { background: var(--navy); color: rgba(255,255,255,.8); padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font: 600 1.05rem/1.2 var(--serif); margin: 0 6px 24px; }
.side-brand .ic { color: var(--gold); width: 28px; height: 28px; }
.side-brand small { display: block; font: 500 .72rem var(--sans); color: rgba(255,255,255,.55); }
.side .nav { flex-direction: column; align-items: stretch; gap: 2px; }
.side .nav a, .side .nav button { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; color: rgba(255,255,255,.78); text-decoration: none; font: 500 .93rem var(--sans); background: none; border: 0; width: 100%; text-align: left; cursor: pointer; }
.side .nav a:hover, .side .nav button:hover { background: rgba(255,255,255,.08); color: #fff; }
.side .nav a[aria-current] { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.side .nav form { margin-top: 12px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 12px; }
.side .nav-toggle { color: #fff; border-color: rgba(255,255,255,.25); }
.pill-count { background: var(--gold); color: #14202f; border-radius: 999px; font-size: .75rem; font-weight: 700; padding: 1px 8px; }
.admin-main { padding: clamp(20px, 3vw, 40px); min-width: 0; }
.admin-main h1 { font-size: 1.8rem; }
.panel { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 24px; margin-bottom: 20px; }
.panel h2 { font-size: 1.15rem; }
.form .panel { margin-bottom: 0; display: grid; gap: 18px; }
.form .panel h2 { margin: 0; }
.narrow-form { max-width: 520px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpi { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 20px; text-decoration: none; display: grid; gap: 4px; }
.kpi:hover { border-color: var(--gold); }
.kpi span { color: var(--muted); font-size: .9rem; }
.kpi strong { font: 700 2.2rem/1.1 var(--serif); color: var(--navy); }
.kpi small { color: var(--muted); }
.kpi.hot { background: var(--navy); border-color: var(--navy); }
.kpi.hot span, .kpi.hot strong { color: #fff; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; margin-bottom: 20px; }
.dash-grid .panel { margin: 0; }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; height: 200px; align-items: end; }
.bar { display: grid; grid-template-rows: auto 1fr auto; height: 100%; text-align: center; font-size: .8rem; gap: 4px; }
.bar .b { align-self: end; background: var(--navy); border-radius: 6px 6px 0 0; min-height: 3px; }
.bar:last-child .b { background: var(--gold); }
.bar .v { font-weight: 600; }
.bar .l { color: var(--muted); }
.mini-list { list-style: none; padding: 0; margin: 0 0 16px; }
.mini-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #eee; text-decoration: none; }
.mini-list small { display: block; color: var(--muted); }
.status { display: inline-block; font: 600 .75rem var(--sans); padding: 3px 10px; border-radius: 999px; background: #eef0f3; color: #374151; white-space: nowrap; vertical-align: middle; }
.s-baru { background: #fde9c8; color: #7a4a00; }
.s-dihubungi { background: #dbeafe; color: #1e3a8a; }
.s-terjadwal { background: #ede9fe; color: #4c1d95; }
.s-selesai, .s-terbit { background: #dcfce7; color: #14532d; }
.s-ditolak { background: #fee2e2; color: #7f1d1d; }
.s-draft { background: #eef0f3; color: #374151; }
.table-wrap { overflow-x: auto; padding: 0; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #eee; vertical-align: middle; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #fafafa; }
.nowrap { white-space: nowrap; }
.thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.thumb.lg { width: 160px; height: auto; max-height: 120px; }
.btn-danger { background: none; border: 1px solid #e5b4b0; color: #b3261e; border-radius: 999px; padding: .4em 1em; font: 600 .85rem var(--sans); cursor: pointer; min-height: 38px; }
.btn-danger:hover { background: #fbe9e7; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.filters input, .filters select { width: auto; min-width: 180px; }
.dl { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; margin: 16px 0 24px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; }
.pre { white-space: pre-wrap; }
.inline-form { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; padding: 16px 0; margin: 16px 0; border-block: 1px solid #eee; }
.inline-form label { display: grid; gap: 6px; font-weight: 500; }
.notes { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.notes li { border-left: 3px solid var(--gold); padding: 8px 14px; background: #fafafa; border-radius: 0 10px 10px 0; }
.notes p { margin: 0 0 4px; }
.notes small { color: var(--muted); }
.img-field { display: grid; gap: 8px; justify-items: start; }
.img-field .lbl { font-weight: 500; font-size: .92rem; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: .92rem; }
code { background: #f1f1f1; padding: 1px 5px; border-radius: 4px; font-size: .85em; }
.theme-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #ddd; background: #fff; border-radius: 999px; padding: 6px 14px 6px 8px; cursor: pointer; font: 500 .88rem var(--sans); min-height: 40px; }
.theme-btn i { width: 18px; height: 18px; border-radius: 50%; display: inline-block; }
.theme-btn:hover { border-color: var(--gold); }
.login-page { display: grid; place-items: center; grid-template-columns: 1fr; padding: 16px; background: var(--navy); }
.login-box { width: min(400px, 100%); background: #fff; border-radius: var(--r); padding: 36px; }
.login-box .side-brand { color: var(--navy); margin: 0 0 8px; }
.login-box .side-brand small { color: var(--muted); }
@media (max-width: 860px) {
  body.admin { grid-template-columns: 1fr; }
  .side { position: sticky; height: auto; z-index: 30; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: 12px 16px; }
  .side-brand { margin: 0; }
  .side .nav-toggle { display: grid; }
  .side .nav { display: none; width: 100%; padding-top: 12px; }
  .side .nav.open { display: flex; }
  .dl { grid-template-columns: 1fr; gap: 2px; }
  .dl dd { margin-bottom: 10px; }
}
