:root {
  --bg: #ffffff;
  --surface: #f6f7f9;
  --text: #1c1e21;
  --muted: #5b6270;
  --border: #e3e5e8;
  --accent: #2563eb;
  --accent-soft: #e8efff;
  --radius: 12px;
  --max: 820px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #171a21;
    --text: #e8eaed;
    --muted: #9aa1ad;
    --border: #2a2f39;
    --accent: #6c9cff;
    --accent-soft: #1b2540;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header */
header.site {
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--bg); z-index: 10;
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 60px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px;
}
.brand { font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.brand span { color: var(--accent); }
nav.main { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; }
nav.main a { color: var(--muted); text-decoration: none; }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--text); }
.lang-switch {
  display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden;
}
.lang-switch button {
  border: 0; background: transparent; color: var(--muted);
  padding: 4px 12px; font: inherit; font-size: 13px; cursor: pointer;
}
.lang-switch button.active { background: var(--accent); color: #fff; }

/* Content */
main { padding: 40px 0 64px; }
h1 { font-size: 32px; line-height: 1.25; margin: 0 0 8px; }
h2 { font-size: 21px; margin: 36px 0 8px; padding-top: 8px; }
h3 { font-size: 17px; margin: 24px 0 6px; }
.meta { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.note {
  background: var(--accent-soft); border-radius: var(--radius);
  padding: 14px 16px; margin: 20px 0;
}
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px; margin: 16px 0;
}
table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--surface); }
.table-scroll { overflow-x: auto; }
ol.steps li { margin-bottom: 8px; }
code { background: var(--surface); padding: 1px 6px; border-radius: 6px; font-size: 14px; }

/* Landing */
.hero { padding: 24px 0 8px; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 640px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 20px; }
.grid .card { margin: 0; }
.grid .card h3 { margin-top: 0; }
.btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  padding: 10px 18px; border-radius: 10px; font-weight: 600; margin-top: 12px;
}

/* Footer */
footer.site { border-top: 1px solid var(--border); padding: 24px 0; color: var(--muted); font-size: 14px; }
footer.site .links { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
footer.site a { color: var(--muted); }

/* Bilingual: EN is the default; JS switches html[data-lang] */
html[data-lang="en"] .lang-id { display: none !important; }
html[data-lang="id"] .lang-en { display: none !important; }

@media (max-width: 560px) {
  h1 { font-size: 26px; }
  nav.main { gap: 12px; }
}
