/* Styling konten markdown. Pakai CSS variabel dari tema (di-inject inline). */
* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
  word-wrap: break-word;
}

.doc h1, .doc h2, .doc h3, .doc h4, .doc h5, .doc h6 {
  margin: 1.6em 0 0.6em;
  line-height: 1.3;
  font-weight: 600;
}
.doc h1 { font-size: 2em; padding-bottom: 0.3em; border-bottom: 1px solid var(--border); }
.doc h2 { font-size: 1.5em; padding-bottom: 0.3em; border-bottom: 1px solid var(--border); }
.doc h3 { font-size: 1.25em; }
.doc h4 { font-size: 1em; }
.doc > :first-child { margin-top: 0; }

.doc p, .doc ul, .doc ol, .doc blockquote, .doc table, .doc pre { margin: 0 0 1em; }

.doc a { color: var(--link); text-decoration: none; }
.doc a:hover { text-decoration: underline; }

.doc ul, .doc ol { padding-left: 1.6em; }
.doc li { margin: 0.25em 0; }
.doc li input[type="checkbox"] { margin-right: 0.5em; }

.doc blockquote {
  margin-left: 0;
  padding: 0.2em 1em;
  color: var(--quote-fg);
  border-left: 4px solid var(--quote-border);
}

.doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--code-bg);
  color: var(--code-fg);
  padding: 0.2em 0.4em;
  border-radius: 6px;
}
.doc pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  overflow-x: auto;
}
.doc pre code { background: none; padding: 0; font-size: 0.85em; }

.doc table {
  border-collapse: collapse;
  width: 100%;
  display: block;
  overflow-x: auto;
}
.doc th, .doc td { border: 1px solid var(--border); padding: 6px 13px; }
.doc th { font-weight: 600; background: var(--code-bg); }

.doc img { max-width: 100%; border-radius: 8px; }

.doc hr { border: none; border-top: 1px solid var(--border); margin: 2em 0; }

.doc kbd {
  font-family: ui-monospace, monospace;
  font-size: 0.85em;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 0.1em 0.4em;
}

.doc-footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.doc-footer a { color: var(--muted); text-decoration: none; font-size: 0.9em; }
.doc-footer a:hover { color: var(--accent); }
