/* Minimal help theme for AsciiDoctor standalone HTML */
:root {
  color-scheme: light dark;
  --help-bg: #fafafa;
  --help-fg: #1a1a1a;
  --help-link: #0b5cab;
  --help-border: #d8d8d8;
  --help-code-bg: #f0f0f0;
  --help-quote-bg: #f5f5f5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --help-bg: #141414;
    --help-fg: #e8e8e8;
    --help-link: #6eb3ff;
    --help-border: #3a3a3a;
    --help-code-bg: #222;
    --help-quote-bg: #1c1c1c;
  }
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  background: var(--help-bg);
  color: var(--help-fg);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  line-height: 1.6;
}

#header,
#content,
#footer {
  max-width: 52rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

#header {
  padding-top: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--help-border);
}

h1,
#content h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

#content h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

#content h3 {
  margin-top: 1.5rem;
  font-size: 1.15rem;
}

a {
  color: var(--help-link);
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
}

th,
td {
  border: 1px solid var(--help-border);
  padding: 0.5rem 0.75rem;
  text-align: start;
  vertical-align: top;
}

th {
  background: var(--help-code-bg);
}

pre,
code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.9em;
}

pre {
  background: var(--help-code-bg);
  border: 1px solid var(--help-border);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  overflow-x: auto;
}

:not(pre) > code {
  background: var(--help-code-bg);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

blockquote {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-inline-start: 4px solid var(--help-border);
  background: var(--help-quote-bg);
}

#toc {
  margin: 1.5rem 0;
  padding: 1rem;
  border: 1px solid var(--help-border);
  border-radius: 4px;
  background: var(--help-quote-bg);
}

#toc .sectlevel1 > a {
  font-weight: 600;
}

#footer {
  padding-block: 2rem;
  color: color-mix(in srgb, var(--help-fg) 65%, transparent);
  font-size: 0.875rem;
}
