/* Connecting Nusantara — shared styles */
:root {
  --bg: #ffffff; --surface: #ffffff; --surface-2: #f1f6f8; --text: #0f2230; --muted: #546a78;
  --border: #dfe8ed; --accent: #0a6380; --accent-2: #d4612a; --accent-soft: #e2f1f6;
  --seq-0: #cde6ee; --seq-1: #a3d2e0; --seq-2: #6db7cc; --seq-3: #2f93b0; --seq-4: #0a6380; --seq-5: #073f52;
  --na: #e4e3df; --warn: #9a5b00; --shadow: none; --accent-ink: #ffffff;
  --radius: 10px; --maxw: 1140px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1820; --surface: #12222c; --surface-2: #1a2d38; --text: #e5eef3; --muted: #9bb0bc;
    --border: #263c48; --accent: #4fb6d2; --accent-2: #f08a4b; --accent-soft: #123643;
    --seq-0: #12303b; --seq-1: #154657; --seq-2: #1d6178; --seq-3: #2f86a3; --seq-4: #4fb6d2; --seq-5: #a5def0;
    --na: #2a3c47; --warn: #f0b45b; --shadow: none; --accent-ink: #0c1820;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1820; --surface: #12222c; --surface-2: #1a2d38; --text: #e5eef3; --muted: #9bb0bc;
  --border: #263c48; --accent: #4fb6d2; --accent-2: #f08a4b; --accent-soft: #123643;
  --seq-0: #12303b; --seq-1: #154657; --seq-2: #1d6178; --seq-3: #2f86a3; --seq-4: #4fb6d2; --seq-5: #a5def0;
  --na: #2a3c47; --warn: #f0b45b; --shadow: none; --accent-ink: #0c1820;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--font); }
a { color: var(--accent); text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-family: var(--serif); font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-family: var(--serif); font-size: clamp(1.2rem, 1.9vw, 1.4rem); font-weight: 700; letter-spacing: -.015em; }
h3 { font-size: 1.02rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.eyebrow { font-size: .88rem; font-weight: 600; color: var(--accent); margin-bottom: .4em; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; letter-spacing: -.01em; }
.brand-mark { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--seq-3), var(--seq-5)); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px; }
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: .72rem; letter-spacing: .02em; }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--muted); padding: 6px 10px; border-radius: 8px; font-size: .92rem; font-weight: 550; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.theme-btn { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 8px; padding: 5px 9px; cursor: pointer; font: inherit; font-size: .85rem; }
@media (max-width: 760px) { .nav { margin-left: 0; width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; } .nav a { white-space: nowrap; } }

/* layout pieces */
main { padding: 28px 0 56px; }
section { margin: 0 0 48px; }
.hero { padding: 36px 0 12px; }
.hero p.lead { font-size: 1.05rem; color: var(--muted); max-width: 720px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.btn.secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat .value { font-family: var(--serif); font-size: 1.8rem; font-weight: 800; line-height: 1.1; }
.stat .label { color: var(--muted); font-size: .9rem; }
.stat .delta { font-size: .85rem; color: var(--accent); font-weight: 600; }
.tag { display: inline-block; font-size: .75rem; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.tag.warn { background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); }
.note { border-left: 3px solid var(--accent-2); padding: 10px 14px; background: var(--surface-2); border-radius: 0 8px 8px 0; font-size: .92rem; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-weight: 650; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
input[type="search"], select { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; max-width: 100%; }
label.field { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; font-weight: 600; color: var(--muted); min-width: 0; }
.steps { counter-reset: s; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps .card { position: relative; padding-top: 44px; }
.steps .card::before { counter-increment: s; content: counter(s); position: absolute; top: 14px; left: 20px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 700; }

/* footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--muted); font-size: .88rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.site-footer a { color: var(--muted); }

/* articles */
.post-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; text-decoration: none; color: inherit; transition: border-color .15s; }
.post-card:hover { border-color: var(--accent); }
.post-card .thumb { aspect-ratio: 16 / 9; background: var(--accent-soft); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card .ph { height: 100%; display: grid; place-items: end start; padding: 14px 16px; font-weight: 800; font-size: 1.3rem; letter-spacing: -.01em; color: #fff; background: linear-gradient(135deg, var(--seq-3), var(--seq-5)); }
.post-card .post-body { padding: 16px 18px 18px; }
.post-card h3 { margin: 6px 0 6px; font-size: 1.05rem; }
.post-card .cat { color: var(--accent); font-weight: 650; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 18px 0 20px; }
.chip { border: 1px solid var(--border); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.chip.active, .chip:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.post { max-width: 760px; }
.post h1 { margin-top: 6px; }
.post .eyebrow a { color: inherit; text-decoration: none; }
.post-hero { width: 100%; border-radius: var(--radius); margin: 12px 0 24px; max-height: 420px; object-fit: cover; }
.prose { font-size: 1.05rem; }
.prose h2 { font-size: 1.3rem; margin-top: 1.6em; }
.prose h3, .prose h4 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose img { max-width: 100%; height: auto; }
.prose figure { margin: 1.4em 0; }
.prose figure img { border-radius: 8px; border: 1px solid var(--border); background: #fff; }
.prose figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.prose blockquote { margin: 1em 0; padding: 4px 16px; border-left: 3px solid var(--accent); color: var(--muted); }
.post-nav { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--border); padding-top: 18px; margin-top: 28px; font-size: .92rem; }
.post-nav a { max-width: 48%; }
.post-nav a:last-child { text-align: right; }

/* home */
.hero h1 em { font-style: normal; color: var(--accent); }
.pillar { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; }
.pillar:hover { border-color: var(--accent); }
.pillar .links { margin-top: auto; font-size: .9rem; font-weight: 600; color: var(--accent); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.section-head a { font-weight: 600; font-size: .92rem; }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.list-plain li:last-child { border-bottom: 0; }
.project .status { font-size: .75rem; }

.post-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* home: plain-language facts */
.facts .fact { display: flex; flex-direction: column; gap: 14px; }
.fact-head { font-family: var(--serif); font-size: clamp(1.05rem, 1.6vw, 1.15rem); font-weight: 700; letter-spacing: -.01em; line-height: 1.3; margin: 0; }
.fact-note { color: var(--muted); font-size: .92rem; margin: 0; }
.people { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; max-width: 250px; }
.people .pp { aspect-ratio: 1 / 2; border-radius: 999px 999px 6px 6px; background: var(--na); position: relative; }
.people .pp::before { content: ""; position: absolute; left: 22%; right: 22%; top: -38%; aspect-ratio: 1; border-radius: 50%; background: inherit; }
.people { padding-top: 14px; }
.people .pp.on { background: var(--accent); }
.people .pp.part { background: linear-gradient(to right, var(--accent) 28%, var(--na) 28%); }
.people .pp.part::before { background: var(--na); }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(70px, 130px) 1fr 44px; align-items: center; gap: 10px; font-size: .92rem; }
.bar-row .track { height: 14px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar-row .fill { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.bar-row .fill.mid { background: var(--seq-2); }
.bar-row .fill.alt { background: var(--accent-2); }
.bar-row b { text-align: right; font-variant-numeric: tabular-nums; }
.stack { display: flex; height: 22px; border-radius: 999px; overflow: hidden; gap: 2px; }
.stack .s1, .legend .s1 { background: var(--seq-5); }
.stack .s2, .legend .s2 { background: var(--seq-3); }
.stack .s3, .legend .s3 { background: #e0a43a; }
.stack .s4, .legend .s4 { background: var(--accent-2); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .82rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.grid.facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) { .grid.facts { grid-template-columns: minmax(0, 1fr); } }

/* home hero + start row */
.home-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 24px; padding: 20px 0 8px; }
.home-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.08; margin-bottom: .35em; }
.home-hero .lead { font-size: 1.1rem; color: var(--muted); max-width: 30em; }
.home-hero-img { width: 100%; height: auto; display: block; border-radius: 14px; }
:root[data-theme="dark"] .home-hero-img { opacity: .9; }
@media (max-width: 820px) { .home-hero { grid-template-columns: minmax(0, 1fr); } .home-hero-img { order: -1; } }
.section-head a { text-decoration: none; }
.section-head a::after { content: " ›"; }
.grid.post-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 820px) { .grid.post-grid.three { grid-template-columns: minmax(0, 1fr); } }

/* home: entry tiles */
.entry-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 820px) { .entry-tiles { grid-template-columns: minmax(0, 1fr); } }
.entry-tile { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; text-decoration: none; color: #fff; background: var(--seq-5); }
.entry-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.entry-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4,30,42,.96) 0%, rgba(4,30,42,.85) 42%, rgba(4,30,42,.25) 78%, rgba(4,30,42,.05) 100%); }
.entry-tile h3, .entry-tile p { text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.entry-tile-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 18px 20px 20px; }
.entry-tile h3 { color: #fff; font-size: 1.35rem; font-weight: 800; margin: 0 0 4px; }
.entry-tile p { color: rgba(255,255,255,.88); font-size: .93rem; margin: 0 0 14px; }
.entry-tile-btn { display: inline-block; background: #fff; color: #073f52; font-weight: 700; font-size: .88rem; padding: 7px 14px; border-radius: 999px; }
.entry-tile-btn::after { content: " ›"; }
.entry-tile:hover img, .entry-tile:focus-visible img { transform: scale(1.05); }
.entry-tile:hover .entry-tile-btn { background: #e2f1f6; }
.entry-tile:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* kebijakan */
.pol-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 16px; }
.pol-card { border: 1px solid var(--border); border-radius: 12px; padding: 18px 18px 16px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.pol-card h3 { font-size: 1.05rem; margin: 2px 0 0; }
.pol-top { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; }
.pol-cat { color: var(--accent); font-weight: 700; }
.pol-year { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.pol-num { font-size: .85rem; color: var(--muted); margin: 0; }
.pol-status { color: #2e7d4f; font-weight: 600; }
:root[data-theme="dark"] .pol-status { color: #7fd3a1; }
.pol-meaning { font-size: .93rem; margin: 6px 0 0; }
.pol-reviews { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--border); font-size: .88rem; }
.pol-reviews span { font-weight: 700; color: var(--accent-2); }
.pol-reviews ul { margin: 4px 0 0; padding-left: 1.1em; }
.pol-reviews a { font-weight: 600; }
.timeline { position: relative; height: 74px; margin: 20px 18px 8px; border-top: 2px solid var(--border); }
.tl-dot { position: absolute; top: -13px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tl-n { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: .75rem; font-weight: 700; display: grid; place-items: center; }
.tl-y { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .timeline { height: auto; border-top: 0; border-left: 2px solid var(--border); margin: 12px 0 8px 12px; padding-left: 0; display: flex; flex-direction: column; gap: 12px; }
  .tl-dot { position: static; transform: translateX(-13px); flex-direction: row; gap: 10px; left: auto !important; }
}

/* riset */
.proj > p, .proj section > p, .proj ol, .proj ul { max-width: 820px; }
.proj .eyebrow a { color: inherit; text-decoration: none; }
.proj-sub { font-size: 1.1rem; font-weight: 600; color: var(--muted); margin-top: -6px; }
.lead-p { font-size: 1.05rem; max-width: 760px; margin-bottom: 32px; }
.proj section { margin-top: 36px; }
.proj-out { text-decoration: none; color: inherit; }
.proj-out:hover { border-color: var(--accent); }
.proj-out h3::after, .proj-more::after { content: " ›"; color: var(--accent); }
.proj-more { display: inline-block; margin-top: 4px; font-weight: 700; font-size: .9rem; color: var(--accent); }
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; align-items: stretch; margin: 12px 0; }
.flow div { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px; font-size: .88rem; }
.flow div strong { display: block; font-size: .92rem; margin-bottom: 2px; }
ol.findings li { margin-bottom: 8px; }
