/* One small stylesheet for the legal site: readable column, system fonts, light and dark. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #1d1d1f;
  --muted: #5c5c60;
  --rule: #d9d9de;
  --link: #017f55;            /* the app's primary green */
  --code-bg: #f2f2f4;
  --todo-bg: #ffe14d;
  --todo-fg: #1d1d1f;
  --notice-bg: #fff8d6;
  --notice-border: #e8c53a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121214;
    --fg: #e8e8ea;
    --muted: #a0a0a6;
    --rule: #333338;
    --link: #3fc48f;          /* lighter green for contrast on dark */
    --code-bg: #202024;
    --todo-bg: #ffd633;
    --todo-fg: #1d1d1f;
    --notice-bg: #2c2a14;
    --notice-border: #a58b16;
  }
}
html { background: var(--bg); color: var(--fg); }
body {
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  max-width: 44rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}
a { color: var(--link); }
a:hover, a:focus { text-decoration-thickness: 2px; }
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}
.site-name { font-weight: 700; color: inherit; text-decoration: none; }
.language-switch a { font-size: 0.9375rem; }
.site-footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
  color: var(--muted);
}
h1 { font-size: 1.75rem; line-height: 1.25; margin: 1.5rem 0 1rem; }
h2 { font-size: 1.3125rem; line-height: 1.3; margin: 2rem 0 0.75rem; }
h3 { font-size: 1.125rem; margin: 1.5rem 0 0.5rem; }
p, ul, ol, table, blockquote { margin: 0 0 1rem; }
li { margin: 0.25rem 0; }
blockquote {
  padding: 0 0 0 1rem;
  border-left: 3px solid var(--rule);
  color: var(--muted);
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9375em;
  background: var(--code-bg);
  padding: 0.1em 0.3em;
  border-radius: 3px;
}
table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
th, td { text-align: left; vertical-align: top; padding: 0.4rem 0.6rem; border: 1px solid var(--rule); }
th { background: var(--code-bg); }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
.documents { padding-left: 1.25rem; }
.document-meta { color: var(--muted); font-size: 0.9375rem; margin: -0.5rem 0 1.5rem; }
.draft-notice {
  padding: 0.75rem 1rem;
  border: 1px solid var(--notice-border);
  background: var(--notice-bg);
  border-radius: 4px;
}
/* Unresolved TODO(...) markers from the drafts: impossible to miss. */
mark.todo {
  background: var(--todo-bg);
  color: var(--todo-fg);
  padding: 0.1em 0.3em;
  border-radius: 3px;
  font-weight: 600;
}
@media (max-width: 40rem) {
  body { font-size: 1rem; padding: 0 1rem 2rem; }
  table { display: block; overflow-x: auto; }
}
