/* The public site's one stylesheet. Self-contained: no fonts or scripts are
   fetched from anywhere, so the page reads the same on a public host. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #1c1c1e;
  --muted: #5c5f66;
  --accent: #0b5cad;
  --rule: #d9dbe0;
  --code-bg: #f3f4f6;
  --note-bg: #fff6d6;
  --note-fg: #5a4300;
  --note-rule: #e6c95a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131416;
    --fg: #e6e7ea;
    --muted: #9a9ea6;
    --accent: #7fb4ee;
    --rule: #2c2f36;
    --code-bg: #1e2126;
    --note-bg: #2f2a14;
    --note-fg: #f1dc8a;
    --note-rule: #6b5a1a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
code, pre, kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}
code { background: var(--code-bg); padding: 0.1em 0.3em; border-radius: 3px; }
pre {
  background: var(--code-bg);
  padding: 0.8rem 1rem;
  border-radius: 6px;
  overflow-x: auto;
  line-height: 1.45;
}
pre code { background: none; padding: 0; font-size: 0.88em; }

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--rule);
}
.site-header .brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.site-header nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--accent); text-decoration: underline; }

main { max-width: 46rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.site-footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  padding: 1rem;
  font-size: 0.9rem;
  text-align: center;
}
.site-footer a { color: var(--muted); }

h1 { font-size: 1.9rem; line-height: 1.2; margin: 0.4rem 0 1rem; }
h2 { font-size: 1.35rem; margin: 2.2rem 0 0.6rem; padding-top: 0.6rem; border-top: 1px solid var(--rule); }
h3 { font-size: 1.1rem; margin: 1.6rem 0 0.4rem; }
h4, h5, h6 { font-size: 1rem; margin: 1.2rem 0 0.3rem; }
p, ul, ol, table, pre, blockquote { margin: 0 0 1rem; }
li { margin: 0.25rem 0; }
blockquote { border-left: 3px solid var(--rule); margin-left: 0; padding-left: 1rem; color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
img { max-width: 100%; height: auto; }

table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; font-size: 0.93rem; }
th, td { border: 1px solid var(--rule); padding: 0.4rem 0.6rem; text-align: left; vertical-align: top; }
th { background: var(--code-bg); }
.align-right { text-align: right; }
.align-center { text-align: center; }

.lead { font-size: 1.1rem; color: var(--muted); }
.muted { color: var(--muted); font-size: 0.9em; }
.toc { list-style: none; padding: 0; }
.toc li { padding: 0.35rem 0; border-bottom: 1px solid var(--rule); }
dl.facts dt { font-weight: 600; margin-top: 0.8rem; }
dl.facts dd { margin: 0.2rem 0 0; }

.notice {
  background: var(--note-bg);
  color: var(--note-fg);
  border: 1px solid var(--note-rule);
  border-radius: 6px;
  padding: 0.8rem 1rem;
  margin: 0 0 1.5rem;
}
.notice strong { text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.85em; }
.placeholder {
  border: 2px dashed var(--note-rule);
  border-radius: 6px;
  padding: 0.8rem 1rem;
  color: var(--note-fg);
  background: var(--note-bg);
}

.addresses { border-collapse: collapse; width: 100%; margin: 12px 0 20px; font-variant-numeric: tabular-nums; }
.addresses th, .addresses td { text-align: left; vertical-align: top; padding: 6px 10px; border-bottom: 1px solid var(--rule, #d9dce1); }
.addresses code { display: inline-block; margin-right: 8px; white-space: nowrap; }
@media (max-width: 480px) { .addresses code { display: block; margin-right: 0; } }
