/* GENERATED by internal/docsite (make docs-site). Do not edit by hand. */
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('brand-font.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --sq-border: #e6d9ff;
  --sq-link: #6d28d9;
  --sq-page: #ffffff;
  --sq-secondary: #4b5563;
  --sq-surface: #f5f0ff;
  --sq-text: #141a33;
}

@media (prefers-color-scheme: dark) {
  :root {
    --sq-border: #2a3052;
    --sq-link: #af88fc;
    --sq-page: #00020f;
    --sq-secondary: #8b93b5;
    --sq-surface: #141a33;
    --sq-text: #e8ebf7;
  }
}

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

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

body {
  margin: 0;
  background: var(--sq-page);
  color: var(--sq-text);
  font-family: 'Atkinson Hyperlegible Next', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a { color: var(--sq-link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

/* Skip link: visible only once focused, so a keyboard reader can jump the header on every page. */
.skip { position: absolute; left: -9999px; top: 0; padding: 0.6rem 1rem; }
.skip:focus {
  left: 0;
  background: var(--sq-surface);
  color: var(--sq-text);
  border: 1px solid var(--sq-border);
  z-index: 2;
}

header.site {
  border-bottom: 1px solid var(--sq-border);
  padding: 0.9rem 1.25rem;
}
.bar { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; max-width: 62rem; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; font-size: 1.1rem; }
.brand img { width: 32px; height: 32px; }
.brand a { color: var(--sq-text); text-decoration: none; }
nav.site ul { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
nav.site a[aria-current="page"] { font-weight: 600; }

main { max-width: 62rem; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }

h1 { font-size: 2rem; line-height: 1.2; margin: 1.2rem 0 0.8rem; }
h2 { font-size: 1.5rem; line-height: 1.25; margin: 2.2rem 0 0.7rem;
     padding-top: 0.6rem; border-top: 1px solid var(--sq-border); }
h3 { font-size: 1.2rem; margin: 1.8rem 0 0.5rem; }
h4, h5, h6 { font-size: 1.02rem; margin: 1.4rem 0 0.4rem; }

hr { border: 0; border-top: 1px solid var(--sq-border); margin: 2rem 0; }

code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }
code { background: var(--sq-surface); padding: 0.12em 0.35em; border-radius: 4px; }
pre {
  background: var(--sq-surface);
  border: 1px solid var(--sq-border);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  overflow-x: auto;
}
pre code { background: none; padding: 0; }

/* Tables are the reference's main body and are frequently wider than a phone: the wrapper scrolls,
   the page never does. */
.table-wrap { overflow-x: auto; margin: 1rem 0; }
table { border-collapse: collapse; width: 100%; font-size: 0.94rem; }
th, td { border: 1px solid var(--sq-border); padding: 0.45rem 0.6rem; text-align: left; vertical-align: top; }
th { background: var(--sq-surface); }
td.num, th.num { text-align: right; }

ul { padding-left: 1.3rem; }
li { margin: 0.3rem 0; }

/* The publication notice. It is painted from the SURFACE/TEXT pair, with the accent carried by a
   border rather than by coloured text: an amber or teal warning tone is exactly the AA defect BUG
   #833 and #834 were, and a border has no contrast duty at all. */
.notice {
  background: var(--sq-surface);
  border: 1px solid var(--sq-border);
  border-left: 4px solid var(--sq-link);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  margin: 0 0 2rem;
}
.notice p { margin: 0.4rem 0 0; }
.notice p:first-of-type { margin: 0; }
.notice strong { display: block; }
.notice .why { color: var(--sq-secondary); font-size: 0.94rem; }

footer.site {
  border-top: 1px solid var(--sq-border);
  color: var(--sq-secondary);
  font-size: 0.92rem;
  padding: 1.5rem 1.25rem 3rem;
}
footer.site div { max-width: 62rem; margin: 0 auto; }
footer.site p { margin: 0.35rem 0; }

@media (max-width: 34rem) {
  body { font-size: 16px; }
  h1 { font-size: 1.6rem; }
}
