/* =========================================================================
   Denahin — gaya halaman panduan & hukum
   ========================================================================= */
:root{
  --background:0 0% 100%;
  --foreground:240 10% 3.9%;
  --card:0 0% 100%;
  --muted:240 4.8% 95.9%;
  --muted-foreground:240 3.8% 46.1%;
  --border:240 5.9% 90%;
  --primary:240 5.9% 10%;
  --primary-foreground:0 0% 98%;
  --accent:240 4.8% 95.9%;
  --warning:38 92% 44%;
  --ring:240 5% 64.9%;
  --radius:8px;
}
html.dark{
  --background:240 10% 3.9%;
  --foreground:0 0% 98%;
  --card:240 10% 6%;
  --muted:240 3.7% 15.9%;
  --muted-foreground:240 5% 64.9%;
  --border:240 3.7% 17%;
  --primary:0 0% 98%;
  --primary-foreground:240 5.9% 10%;
  --accent:240 3.7% 15.9%;
}
*{box-sizing:border-box;margin:0;padding:0}
body{
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  font-size:15px;line-height:1.65;
  background:hsl(var(--background));color:hsl(var(--foreground));
  -webkit-font-smoothing:antialiased;
}
svg{display:block;flex:none}
a{color:inherit}
:focus-visible{outline:2px solid hsl(var(--ring));outline-offset:2px}

.pagebar{
  position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:10px;
  height:54px;padding:0 18px;background:hsl(var(--card));border-bottom:1px solid hsl(var(--border));
}
.pagebar .brand{display:flex;align-items:center;text-decoration:none}
.brand-logo{display:block;height:24px;width:auto}
.brand-logo-dark{display:none}
html.dark .brand-logo-light{display:none}
html.dark .brand-logo-dark{display:block}
.pagebar .grow{flex:1}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;height:33px;padding:0 12px;
  border:1px solid hsl(var(--border));background:hsl(var(--background));border-radius:calc(var(--radius) - 2px);
  font-size:13px;font-weight:500;cursor:pointer;text-decoration:none;white-space:nowrap;
}
.btn:hover{background:hsl(var(--accent))}
.btn.primary{background:hsl(var(--primary));color:hsl(var(--primary-foreground));border-color:hsl(var(--primary))}
.btn.donate{color:#be123c;border-color:#f5c2cd;background:#fff1f4}
.btn.donate:hover{background:#ffe4e9}

.wrap{max-width:1080px;margin:0 auto;padding:34px 18px 80px;display:grid;
  grid-template-columns:210px minmax(0,1fr);gap:40px;align-items:start}
.toc{position:sticky;top:76px;font-size:13px}
.toc b{display:block;font-size:11px;color:hsl(var(--muted-foreground));margin-bottom:8px;font-weight:600}
.toc a{display:block;padding:4px 9px;border-radius:6px;color:hsl(var(--muted-foreground));
  text-decoration:none;border-left:2px solid transparent}
.toc a:hover{background:hsl(var(--accent));color:hsl(var(--foreground))}

article{max-width:760px}
.lede{font-size:17px;color:hsl(var(--muted-foreground));margin-bottom:8px}
h1{font-size:31px;line-height:1.2;letter-spacing:-.02em;margin-bottom:10px;font-weight:650}
h2{font-size:20px;letter-spacing:-.01em;margin:38px 0 12px;padding-top:14px;
  border-top:1px solid hsl(var(--border));font-weight:620;scroll-margin-top:72px}
h3{font-size:15.5px;margin:22px 0 7px;font-weight:600}
p{margin-bottom:12px}
ul,ol{margin:0 0 13px 20px}
li{margin-bottom:6px}
strong{font-weight:600}
code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.86em;
  background:hsl(var(--muted));padding:2px 6px;border-radius:5px}
.kbd{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;padding:2px 7px;
  border-radius:5px;border:1px solid hsl(var(--border));background:hsl(var(--muted));white-space:nowrap}
table{width:100%;border-collapse:collapse;margin-bottom:16px;font-size:14px}
th,td{text-align:left;padding:8px 10px;border-bottom:1px solid hsl(var(--border));vertical-align:top}
th{font-weight:600;font-size:12.5px;color:hsl(var(--muted-foreground))}
td:first-child{white-space:nowrap}
.note{border:1px solid hsl(var(--border));border-radius:var(--radius);padding:13px 15px;
  margin:0 0 16px;font-size:14px;background:hsl(var(--muted)/.55)}
.note.warn{border-color:hsl(var(--warning)/.45);background:hsl(var(--warning)/.09)}
.note b{display:block;margin-bottom:3px}
.steps{counter-reset:s;margin-left:0;list-style:none}
.steps li{counter-increment:s;position:relative;padding-left:32px;margin-bottom:10px}
.steps li::before{content:counter(s);position:absolute;left:0;top:1px;width:22px;height:22px;
  border-radius:6px;background:hsl(var(--muted));display:grid;place-items:center;
  font-size:12px;font-weight:600;color:hsl(var(--muted-foreground))}
.pagefoot{border-top:1px solid hsl(var(--border));padding:22px 18px 40px;text-align:center;
  font-size:13px;color:hsl(var(--muted-foreground))}
.pagefoot a{color:hsl(var(--foreground))}
.updated{font-size:13px;color:hsl(var(--muted-foreground));margin-bottom:26px}

.assetgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-bottom:14px}
.asset{
  display:flex;flex-direction:column;gap:2px;padding:11px 13px;text-decoration:none;
  border:1px solid hsl(var(--border));border-radius:var(--radius);color:hsl(var(--foreground));
  transition:background .12s,border-color .12s;
}
.asset:hover{background:hsl(var(--accent));border-color:hsl(var(--ring)/.5)}
.asset b{font-size:13.5px;font-weight:600}
.asset span{font-size:12px;color:hsl(var(--muted-foreground))}

@media (max-width:900px){
  .wrap{grid-template-columns:1fr;gap:20px;padding:24px 16px 60px}
  .toc{position:static;border:1px solid hsl(var(--border));border-radius:var(--radius);padding:12px}
  .toc a{display:inline-block;border-left:none}
  h1{font-size:26px}
  .pagebar{padding:0 12px;gap:7px}
  .pagebar .hide-sm{display:none}
  .assetgrid{grid-template-columns:1fr 1fr}
}

/* penanda baris turunan pada penjelasan RAB */
.rab-turunan{
  display:inline-block;padding:0 5px;border-radius:4px;font-size:11px;font-weight:600;
  background:#e7e5e4;color:#57534e;
}
