/* Melvin docs: one static stylesheet. No fonts, images or imports are loaded (CSP: style-src 'self'; img-src 'self'). */
:root {
  --bg: #fbfbfa;
  --text: #1d1d1f;
  --muted: #5c5c63;
  --line: #dedee3;
  --accent: #3b4fc4;
  --mark-bg: #fff1c2;
  --mark-text: #4a3b00;
  --cell: #f2f2f5;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17171a;
    --text: #ececf0;
    --muted: #a3a3ad;
    --line: #34343b;
    --accent: #9aa8ff;
    --mark-bg: #4a3b00;
    --mark-text: #ffe9a3;
    --cell: #212126;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}
header, main, footer { max-width: 46rem; margin: 0 auto; padding: 0 1rem; }
header { padding-top: 1rem; }
nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin: 0; padding: 0; font-size: 0.95rem; }
nav [aria-current] { font-weight: 600; }
h1 { font-size: 2.2rem; line-height: 1.2; margin: 1.5rem 0 1rem; }
h2 { font-size: 1.4rem; line-height: 1.3; margin: 2.5rem 0 0.75rem; padding-top: 1rem; border-top: 1px solid var(--line); }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
p, ul, blockquote { margin: 0 0 1rem; }
ul ul { margin: 0.25rem 0 0; }
li { margin: 0.2rem 0; }
a { color: var(--accent); text-underline-offset: 0.15em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
code { font: 0.92em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--cell); padding: 0.1em 0.3em; border-radius: 4px; overflow-wrap: anywhere; }
blockquote { border-left: 3px solid var(--line); padding: 0.25rem 0 0.25rem 1rem; color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.table { overflow-x: auto; margin: 0 0 1rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--line); }
th { background: var(--cell); font-weight: 600; }
mark.open-point { background: var(--mark-bg); color: var(--mark-text); padding: 0 0.2em; border-radius: 3px; }
footer { margin-top: 3rem; padding-bottom: 2rem; color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--line); }
footer p { margin: 0.75rem 0 0; }
@media (max-width: 30rem) {
  body { font-size: 16px; }
  h1 { font-size: 1.8rem; }
  th, td { padding: 0.4rem; }
}
