/* Generated by scripts/build-docs.mjs. Brand tokens come from src/assets/scss/default/Color.scss. */
:root {
  --chemia-purple: #c300c3;
  --chemia-yellow: #ffe100;
  --chemia-orange: #ffa800;
  --chemia-black: #0a0b0c;
  --chemia-dark-purple: #3a003a;
}

/* Styles for the generated /docs/ pages: static HTML, no JavaScript.
   The brand tokens (--chemia-*) are prepended by scripts/docs/styles.mjs from
   the site's own Color.scss. Everything here is derived from those tokens plus
   white at fixed opacities, on the near-black the rest of the site uses.

   Contrast, measured against --chemia-black (WCAG 2.2 AA needs 4.5 for text):
   body text white, muted text white at 74%, links --chemia-yellow, and the
   skip link and current-page pill dark on light. build-docs.test.mjs recomputes
   these ratios on every run. */

:root {
  color-scheme: dark;
  --docs-bg: var(--chemia-black);
  --docs-ink: #ffffff;
  --docs-ink-muted: rgba(255, 255, 255, 0.74);
  --docs-line: rgba(255, 255, 255, 0.24);
  --docs-surface: rgba(255, 255, 255, 0.06);
  --docs-surface-strong: rgba(255, 255, 255, 0.11);
  --docs-link: var(--chemia-yellow);
  --docs-focus: var(--chemia-yellow);
  --docs-accent: var(--chemia-purple);
  --docs-font: "Archivo", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --docs-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --docs-measure: 46rem;
  --docs-wrap: 64rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--docs-bg);
  color: var(--docs-ink);
  font-family: var(--docs-font);
  font-size: 1.0625rem;
  line-height: 1.65;
}

a {
  color: var(--docs-link);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--docs-focus);
  outline-offset: 2px;
}

.docs-skip {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--chemia-yellow);
  color: var(--chemia-black);
  font-weight: 600;
}

.docs-skip:focus {
  left: 0.75rem;
}

.docs-wrap {
  max-width: var(--docs-wrap);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ---------------------------------------------------------------- header */

.docs-header {
  border-bottom: 1px solid var(--docs-line);
}

.docs-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.docs-brand {
  color: var(--docs-ink);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.docs-brand::before {
  content: "";
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-right: 0.55em;
  background: var(--docs-accent);
  border: 2px solid var(--chemia-yellow);
  border-radius: 2px;
  vertical-align: baseline;
}

.docs-nav,
.docs-subnav ul,
.docs-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  max-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs-nav a {
  color: var(--docs-ink);
  text-decoration: none;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}

.docs-nav a:hover,
.docs-nav a[aria-current] {
  border-bottom-color: var(--chemia-yellow);
}

/* ------------------------------------------------------------ navigation */

.docs-breadcrumb {
  margin: 1.1rem 0 0;
  font-size: 0.9rem;
  color: var(--docs-ink-muted);
}

.docs-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs-breadcrumb li + li::before {
  content: "/";
  padding: 0 0.45rem;
}

.docs-breadcrumb a {
  color: var(--docs-ink-muted);
}

.docs-subnav {
  margin: 1rem 0 0;
}

.docs-subnav ul {
  gap: 0.4rem 0.5rem;
}

.docs-subnav a {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border: 1px solid var(--docs-line);
  border-radius: 999px;
  color: var(--docs-ink);
  font-size: 0.92rem;
  text-decoration: none;
}

.docs-subnav a:hover {
  border-color: var(--chemia-yellow);
}

.docs-subnav a[aria-current="page"] {
  background: var(--docs-ink);
  border-color: var(--docs-ink);
  color: var(--chemia-black);
  font-weight: 700;
}

/* --------------------------------------------------------------- content */

.docs-main {
  padding: 1.5rem 0 3rem;
}

h1 {
  margin: 0.4rem 0 1.1rem;
  font-size: clamp(1.9rem, 4.6vw, 2.6rem);
  line-height: 1.18;
  font-weight: 700;
  overflow-wrap: anywhere;
}

h2 {
  margin: 2.8rem 0 0.8rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--docs-line);
  font-size: 1.5rem;
  line-height: 1.3;
  scroll-margin-top: 1rem;
}

h3 {
  margin: 1.8rem 0 0.5rem;
  font-size: 1.2rem;
  line-height: 1.35;
  scroll-margin-top: 1rem;
  overflow-wrap: anywhere;
}

h4 {
  margin: 1.4rem 0 0.4rem;
  font-size: 1.05rem;
}

p,
ul,
ol,
blockquote {
  max-width: var(--docs-measure);
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.4rem;
}

li {
  margin: 0.35rem 0;
}

blockquote {
  padding: 0.1rem 1rem;
  border-left: 3px solid var(--docs-line);
  color: var(--docs-ink-muted);
}

strong {
  font-weight: 700;
}

code {
  padding: 0.1em 0.35em;
  background: var(--docs-surface-strong);
  border-radius: 4px;
  font-family: var(--docs-mono);
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

.docs-answer {
  max-width: var(--docs-measure);
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--docs-surface);
  border-left: 4px solid var(--docs-accent);
  border-radius: 0 8px 8px 0;
  font-size: 1.2rem;
  line-height: 1.55;
}

/* ---------------------------------------------------------- tables, code */

.docs-scroll {
  margin: 1.25rem 0;
  overflow-x: auto;
  border: 1px solid var(--docs-line);
  border-radius: 8px;
}

.docs-table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.5;
}

.docs-glance {
  min-width: 0;
}

.docs-table caption {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--docs-line);
  text-align: left;
  font-weight: 700;
}

.docs-table th,
.docs-table td {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--docs-line);
  text-align: left;
  vertical-align: top;
}

.docs-table tbody tr:last-child > * {
  border-bottom: 0;
}

.docs-table thead th {
  background: var(--docs-surface-strong);
  font-weight: 700;
}

.docs-table tbody th {
  font-weight: 700;
}

.docs-glance tbody th {
  width: 38%;
}

/* Identifiers in a table cell stay in one piece: the scroll region carries
   any extra width. The glance table is the exception, because its values can
   hold a URL and must fit a phone. */
.docs-table th code,
.docs-table td code {
  white-space: nowrap;
  overflow-wrap: normal;
}

.docs-glance td code {
  white-space: normal;
  overflow-wrap: anywhere;
}

.docs-nowrap {
  white-space: nowrap;
}

/* The last column of a data table holds the prose. Give it a floor, so on a
   narrow screen the table scrolls sideways instead of squeezing the prose into
   a tall, thin column. */
.docs-table:not(.docs-glance) td:last-child {
  min-width: 16rem;
}

.docs-code {
  margin: 1.25rem 0;
}

.docs-code figcaption {
  margin-bottom: 0.4rem;
  color: var(--docs-ink-muted);
  font-size: 0.92rem;
  font-weight: 700;
}

pre {
  margin: 0;
  padding: 1rem 1.1rem;
  overflow: auto;
  background: var(--docs-surface);
  border: 1px solid var(--docs-line);
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.55;
}

pre code {
  padding: 0;
  background: none;
  font-size: inherit;
  white-space: pre;
  overflow-wrap: normal;
}

/* ------------------------------------------------------ page furniture */

.docs-toc {
  max-width: var(--docs-measure);
  margin: 1.5rem 0 0;
  padding: 0.9rem 1.25rem;
  background: var(--docs-surface);
  border: 1px solid var(--docs-line);
  border-radius: 8px;
}

.docs-toc p {
  margin: 0 0 0.35rem;
  font-weight: 700;
}

.docs-toc ul {
  margin: 0;
  padding-left: 1.2rem;
}

.docs-toc li {
  margin: 0.2rem 0;
}

.docs-footer {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--docs-line);
  color: var(--docs-ink-muted);
  font-size: 0.92rem;
}

.docs-footer p {
  max-width: none;
  margin: 0 0 0.75rem;
}

.docs-footer a {
  color: var(--docs-link);
}

.docs-footer-links {
  margin: 0 0 0.9rem;
}

@media (max-width: 40rem) {
  body {
    font-size: 1rem;
  }

  .docs-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .docs-answer {
    font-size: 1.1rem;
  }

  h2 {
    font-size: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
