/*! chromokit 0.1.0 · MIT · https://github.com/js2264/chromokit · generated by scripts/build.mjs — do not edit; put local changes in your own stylesheet */
/* Tokens. Light and dark palettes from chromosomix (70e566a), syntax colours
   from Vitesse, page measures from chromokit. Every name is `--cx-<name>`. */

:root {
  --cx-rem: 1rem;
  --cx-sans: system-ui, -apple-system, "Segoe UI", Inter, Roboto, sans-serif;
  --cx-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --cx-radius: 6px;
  --cx-step--2: calc(0.72 * var(--cx-rem));
  --cx-step--1: calc(0.78 * var(--cx-rem));
  --cx-step-0: calc(0.875 * var(--cx-rem));
  --cx-step-1: calc(1 * var(--cx-rem));
  --cx-step-2: calc(1.25 * var(--cx-rem));
  --cx-step-3: calc(1.6 * var(--cx-rem));
  --cx-label: calc(0.6875 * var(--cx-rem));
  --cx-header-h: 53px;
  --cx-sidebar-w: 300px;
  --cx-toc-w: 300px;
  --cx-content-w: 720px;
  --cx-pad-x: 36px;
  --cx-grain: 10px;
  --cx-prose-size: calc(1 * var(--cx-rem));
  --cx-prose-line: 1.75;
  --cx-prose-h1: calc(1.8125 * var(--cx-rem));
  --cx-prose-h2: calc(1.5 * var(--cx-rem));
  --cx-prose-h3: calc(1.25 * var(--cx-rem));
  --cx-prose-h4: calc(1.0625 * var(--cx-rem));
  --cx-prose-h5: calc(0.9375 * var(--cx-rem));
  --cx-icon-chevron: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  --cx-icon-link: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/><path d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/></svg>");
  --cx-terminal-dots: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 16'><circle cx='8' cy='8' r='8'/><circle cx='30' cy='8' r='8'/><circle cx='52' cy='8' r='8'/></svg>");
}

:root,
::backdrop,
.cx-light,
.cx-paper,
:root[data-theme='light'],
body[data-theme='light'],
[data-md-color-scheme='default'],
:root[data-bs-theme='light'],
body.quarto-light {
  color-scheme: light;
  --cx-bg: #ffffff;
  --cx-bg-sunken: #f5f6f8;
  --cx-bg-raised: #ffffff;
  --cx-bg-muted: #e9eaec;
  --cx-border: #d2d3d6;
  --cx-border-strong: #8d8f93;
  --cx-text: #17181a;
  --cx-text-dim: #54565a;
  --cx-text-faint: #68696d;
  --cx-accent: #1f5fa9;
  --cx-accent-soft: #dce8f7;
  --cx-on-accent: #ffffff;
  --cx-danger: #a32020;
  --cx-danger-soft: #fbe2e2;
  --cx-ok: #1d6b3f;
  --cx-warn: #8a5200;
  --cx-warn-soft: #fbeeda;
  --cx-tab-rest: #eaebed;
  --cx-shadow-1: 0 1px 2px #18181a12, 0 1px 1px #18181a0a;
  --cx-shadow-2: 0 6px 18px -10px #18181a4d, 0 2px 5px -3px #18181a29;
  --cx-shadow-up: 0 -6px 18px -10px #18181a4d, 0 -2px 5px -3px #18181a29;
  --cx-code-bg: #ffffff;
  --cx-code-fg: #393a34;
  --cx-code-dots: #4e4f4738;
  --cx-hl-comment: #6f7a6f;
  --cx-hl-keyword: #1e754f;
  --cx-hl-string: #9c5a4c;
  --cx-hl-function: #4b7231;
  --cx-hl-constant: #995728;
  --cx-hl-number: #2b6f7e;
  --cx-hl-variable: #8f6136;
  --cx-hl-operator: #9a4d4d;
  --cx-hl-punctuation: #6e6e6e;
  --cx-hl-special: #995728;
  --cx-series-1: #1f5fa9;
  --cx-series-2: #e44a72;
  --cx-series-3: #2c6e5c;
  --cx-series-4: #898329;
  --cx-series-5: #a953e3;
  --cx-series-6: #4a5704;
  --cx-series-7: #7c1870;
  --cx-family-reads: #2c6e5c;
  --cx-family-alignments: #34469d;
  --cx-family-genome: #898329;
  --cx-family-index: #594722;
  --cx-family-fragments: #7c1870;
  --cx-family-pairs: #712d46;
  --cx-family-track: #007999;
  --cx-family-peaks: #e44a72;
  --cx-family-value: #4a5704;
  --cx-family-report: #a953e3;
  --cx-state-running: #7108dc;
  --cx-state-done: var(--cx-ok);
  --cx-state-cached: var(--cx-ok);
  --cx-state-stale: var(--cx-warn);
  --cx-state-failed: var(--cx-danger);
  --cx-state-queued: var(--cx-text-dim);
  --cx-state-never: var(--cx-border-strong);
  --cx-state-bypassed: var(--cx-text-faint);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']):not([data-bs-theme='light']),
  :root:not([data-theme='light']):not([data-bs-theme='light']) ::backdrop {
    color-scheme: dark;
    --cx-bg: #191a1c;
    --cx-bg-sunken: #131416;
    --cx-bg-raised: #232529;
    --cx-bg-muted: #161719;
    --cx-border: #3e4044;
    --cx-border-strong: #727478;
    --cx-text: #eeeff1;
    --cx-text-dim: #b3b5b9;
    --cx-text-faint: #8a8c90;
    --cx-accent: #6ba4e8;
    --cx-accent-soft: #203657;
    --cx-on-accent: #131416;
    --cx-danger: #ef8a8a;
    --cx-danger-soft: #3b2020;
    --cx-ok: #6cc48f;
    --cx-warn: #e3a857;
    --cx-warn-soft: #3b2d15;
    --cx-tab-rest: #2a2b2e;
    --cx-shadow-1: 0 1px 2px #00000066, 0 1px 1px #00000047;
    --cx-shadow-2: 0 8px 22px -10px #000000a8, 0 2px 6px -3px #00000070;
    --cx-shadow-up: 0 -8px 22px -10px #000000a8, 0 -2px 6px -3px #00000070;
    --cx-code-bg: #121212;
    --cx-code-fg: #dbd7caee;
    --cx-code-dots: #bfbaaa2e;
    --cx-hl-comment: #869686;
    --cx-hl-keyword: #5ea38a;
    --cx-hl-string: #c98a7d;
    --cx-hl-function: #80a665;
    --cx-hl-constant: #c99076;
    --cx-hl-number: #4c9a91;
    --cx-hl-variable: #bd976a;
    --cx-hl-operator: #cb7676;
    --cx-hl-punctuation: #8a8a8a;
    --cx-hl-special: #c99076;
    --cx-series-1: #6ba4e8;
    --cx-series-2: #fe7ca1;
    --cx-series-3: #4ccdc7;
    --cx-series-4: #e4e482;
    --cx-series-5: #b067fa;
    --cx-series-6: #879304;
    --cx-series-7: #d26fb7;
    --cx-family-reads: #4ccdc7;
    --cx-family-alignments: #a39be9;
    --cx-family-genome: #e4e482;
    --cx-family-index: #f8d795;
    --cx-family-fragments: #d26fb7;
    --cx-family-pairs: #f5c2dd;
    --cx-family-track: #0e9fc3;
    --cx-family-peaks: #fe7ca1;
    --cx-family-value: #879304;
    --cx-family-report: #b067fa;
    --cx-state-running: #9575e2;
    --cx-state-done: var(--cx-ok);
    --cx-state-cached: var(--cx-ok);
    --cx-state-stale: var(--cx-warn);
    --cx-state-failed: var(--cx-danger);
    --cx-state-queued: var(--cx-text-dim);
    --cx-state-never: var(--cx-border-strong);
    --cx-state-bypassed: var(--cx-text-faint);
  }
}

:root[data-theme='dark'],
:root[data-theme='dark'] ::backdrop,
body[data-theme='dark'],
.cx-dark,
[data-md-color-scheme='slate'],
:root[data-bs-theme='dark'],
body.quarto-dark {
  color-scheme: dark;
  --cx-bg: #191a1c;
  --cx-bg-sunken: #131416;
  --cx-bg-raised: #232529;
  --cx-bg-muted: #161719;
  --cx-border: #3e4044;
  --cx-border-strong: #727478;
  --cx-text: #eeeff1;
  --cx-text-dim: #b3b5b9;
  --cx-text-faint: #8a8c90;
  --cx-accent: #6ba4e8;
  --cx-accent-soft: #203657;
  --cx-on-accent: #131416;
  --cx-danger: #ef8a8a;
  --cx-danger-soft: #3b2020;
  --cx-ok: #6cc48f;
  --cx-warn: #e3a857;
  --cx-warn-soft: #3b2d15;
  --cx-tab-rest: #2a2b2e;
  --cx-shadow-1: 0 1px 2px #00000066, 0 1px 1px #00000047;
  --cx-shadow-2: 0 8px 22px -10px #000000a8, 0 2px 6px -3px #00000070;
  --cx-shadow-up: 0 -8px 22px -10px #000000a8, 0 -2px 6px -3px #00000070;
  --cx-code-bg: #121212;
  --cx-code-fg: #dbd7caee;
  --cx-code-dots: #bfbaaa2e;
  --cx-hl-comment: #869686;
  --cx-hl-keyword: #5ea38a;
  --cx-hl-string: #c98a7d;
  --cx-hl-function: #80a665;
  --cx-hl-constant: #c99076;
  --cx-hl-number: #4c9a91;
  --cx-hl-variable: #bd976a;
  --cx-hl-operator: #cb7676;
  --cx-hl-punctuation: #8a8a8a;
  --cx-hl-special: #c99076;
  --cx-series-1: #6ba4e8;
  --cx-series-2: #fe7ca1;
  --cx-series-3: #4ccdc7;
  --cx-series-4: #e4e482;
  --cx-series-5: #b067fa;
  --cx-series-6: #879304;
  --cx-series-7: #d26fb7;
  --cx-family-reads: #4ccdc7;
  --cx-family-alignments: #a39be9;
  --cx-family-genome: #e4e482;
  --cx-family-index: #f8d795;
  --cx-family-fragments: #d26fb7;
  --cx-family-pairs: #f5c2dd;
  --cx-family-track: #0e9fc3;
  --cx-family-peaks: #fe7ca1;
  --cx-family-value: #879304;
  --cx-family-report: #b067fa;
  --cx-state-running: #9575e2;
  --cx-state-done: var(--cx-ok);
  --cx-state-cached: var(--cx-ok);
  --cx-state-stale: var(--cx-warn);
  --cx-state-failed: var(--cx-danger);
  --cx-state-queued: var(--cx-text-dim);
  --cx-state-never: var(--cx-border-strong);
  --cx-state-bypassed: var(--cx-text-faint);
}

.cx-light,
.cx-paper {
  color-scheme: light;
  --cx-bg: #ffffff;
  --cx-bg-sunken: #f5f6f8;
  --cx-bg-raised: #ffffff;
  --cx-bg-muted: #e9eaec;
  --cx-border: #d2d3d6;
  --cx-border-strong: #8d8f93;
  --cx-text: #17181a;
  --cx-text-dim: #54565a;
  --cx-text-faint: #68696d;
  --cx-accent: #1f5fa9;
  --cx-accent-soft: #dce8f7;
  --cx-on-accent: #ffffff;
  --cx-danger: #a32020;
  --cx-danger-soft: #fbe2e2;
  --cx-ok: #1d6b3f;
  --cx-warn: #8a5200;
  --cx-warn-soft: #fbeeda;
  --cx-tab-rest: #eaebed;
  --cx-shadow-1: 0 1px 2px #18181a12, 0 1px 1px #18181a0a;
  --cx-shadow-2: 0 6px 18px -10px #18181a4d, 0 2px 5px -3px #18181a29;
  --cx-shadow-up: 0 -6px 18px -10px #18181a4d, 0 -2px 5px -3px #18181a29;
  --cx-code-bg: #ffffff;
  --cx-code-fg: #393a34;
  --cx-code-dots: #4e4f4738;
  --cx-hl-comment: #6f7a6f;
  --cx-hl-keyword: #1e754f;
  --cx-hl-string: #9c5a4c;
  --cx-hl-function: #4b7231;
  --cx-hl-constant: #995728;
  --cx-hl-number: #2b6f7e;
  --cx-hl-variable: #8f6136;
  --cx-hl-operator: #9a4d4d;
  --cx-hl-punctuation: #6e6e6e;
  --cx-hl-special: #995728;
  --cx-series-1: #1f5fa9;
  --cx-series-2: #e44a72;
  --cx-series-3: #2c6e5c;
  --cx-series-4: #898329;
  --cx-series-5: #a953e3;
  --cx-series-6: #4a5704;
  --cx-series-7: #7c1870;
  --cx-family-reads: #2c6e5c;
  --cx-family-alignments: #34469d;
  --cx-family-genome: #898329;
  --cx-family-index: #594722;
  --cx-family-fragments: #7c1870;
  --cx-family-pairs: #712d46;
  --cx-family-track: #007999;
  --cx-family-peaks: #e44a72;
  --cx-family-value: #4a5704;
  --cx-family-report: #a953e3;
  --cx-state-running: #7108dc;
  --cx-state-done: var(--cx-ok);
  --cx-state-cached: var(--cx-ok);
  --cx-state-stale: var(--cx-warn);
  --cx-state-failed: var(--cx-danger);
  --cx-state-queued: var(--cx-text-dim);
  --cx-state-never: var(--cx-border-strong);
  --cx-state-bypassed: var(--cx-text-faint);
}

/*
 * chromokit for Zensical (and Material for MkDocs): zensical's "modern" theme
 * restyled as doc.chromosomix.app, as metacooler's documentation first did.
 *
 * Neutral greys, one blue accent, a dotted-grid page, a solid full-height
 * sidebar with uppercase group labels, framed code with a terminal bar,
 * callouts and tables on the raised surface, and the in-column footer with
 * previous/next cards (overrides/partials/cx-page-footer.html).
 *
 * zensical sizes its own UI in rem against a 20px root (html{font-size:125%}),
 * so this file sizes in px, and sets --cx-rem to 16px for the core components.
 */

:root {
  --cx-rem: 0.8rem;
}

/* zensical's own variables, re-pointed at the tokens. Set on the same
   attribute selector the theme's palette uses, so these win by source order. */
[data-md-color-scheme] {
  --md-default-bg-color: var(--cx-bg);
  --md-default-bg-color--light: color-mix(in srgb, var(--cx-bg) 72%, transparent);
  --md-default-bg-color--lighter: color-mix(in srgb, var(--cx-bg) 30%, transparent);
  --md-default-bg-color--lightest: color-mix(in srgb, var(--cx-bg) 12%, transparent);
  --md-default-fg-color: var(--cx-text);
  --md-default-fg-color--light: var(--cx-text-dim);
  --md-default-fg-color--lighter: var(--cx-text-faint);
  --md-default-fg-color--lightest: color-mix(in srgb, var(--cx-border) 70%, transparent);

  --md-primary-fg-color: var(--cx-accent);
  --md-primary-fg-color--light: var(--cx-accent);
  --md-primary-fg-color--dark: var(--cx-accent);
  --md-primary-bg-color: var(--cx-on-accent);
  --md-primary-bg-color--light: color-mix(in srgb, var(--cx-on-accent) 70%, transparent);
  --md-accent-fg-color: var(--cx-accent);
  --md-accent-fg-color--transparent: var(--cx-accent-soft);
  --md-accent-bg-color: var(--cx-on-accent);
  --md-accent-bg-color--light: color-mix(in srgb, var(--cx-on-accent) 70%, transparent);

  --md-typeset-color: var(--cx-text);
  --md-typeset-a-color: var(--cx-accent);
  --md-typeset-mark-color: color-mix(in srgb, var(--cx-warn) 28%, transparent);
  --md-typeset-table-color: var(--cx-border);
  --md-typeset-table-color--light: color-mix(in srgb, var(--cx-bg-sunken) 60%, transparent);
  --md-typeset-kbd-color: var(--cx-bg-raised);
  --md-typeset-kbd-accent-color: var(--cx-bg-raised);
  --md-typeset-kbd-border-color: var(--cx-border-strong);

  --md-code-bg-color: var(--cx-bg-sunken);
  --md-code-fg-color: var(--cx-text);
  --md-code-hl-color: var(--cx-accent);
  --md-code-hl-color--light: color-mix(in srgb, var(--cx-accent) 14%, transparent);
  --md-code-hl-comment-color: var(--cx-hl-comment);
  --md-code-hl-keyword-color: var(--cx-hl-keyword);
  --md-code-hl-string-color: var(--cx-hl-string);
  --md-code-hl-function-color: var(--cx-hl-function);
  --md-code-hl-constant-color: var(--cx-hl-constant);
  --md-code-hl-number-color: var(--cx-hl-number);
  --md-code-hl-name-color: var(--cx-code-fg);
  --md-code-hl-variable-color: var(--cx-hl-variable);
  --md-code-hl-operator-color: var(--cx-hl-operator);
  --md-code-hl-punctuation-color: var(--cx-hl-punctuation);
  --md-code-hl-special-color: var(--cx-hl-special);
  --md-code-hl-generic-color: var(--cx-code-fg);

  --md-admonition-fg-color: var(--cx-text);
  --md-admonition-bg-color: var(--cx-bg-raised);
  --md-shadow-z1: var(--cx-shadow-1);
  --md-shadow-z2: var(--cx-shadow-2);
  --md-shadow-z3: var(--cx-shadow-2);
}

/* ------------------------------------------------------------------------ */
/* Base                                                                      */
/* ------------------------------------------------------------------------ */

/* Keep zensical's 20px rem at every width: the reference does not scale up
   on large screens. */
html {
  font-size: 125%;
}

body {
  --md-text-font-family: var(--cx-sans);
  --md-code-font-family: var(--cx-mono);
  background-color: var(--cx-bg);
  color: var(--cx-text);
}

/* The dotted grid behind the content, as on chromosomix */
.md-container {
  background-image: radial-gradient(
    circle,
    color-mix(in srgb, var(--cx-border) 50%, transparent) 0.8px,
    transparent 1px
  );
  background-size: 10px 10px;
}

::selection {
  background: color-mix(in srgb, var(--cx-accent) 26%, transparent);
}

/* ------------------------------------------------------------------------ */
/* Header                                                                    */
/* ------------------------------------------------------------------------ */

.md-header.cx-header {
  height: var(--cx-header-h);
  color: var(--cx-text);
  background-color: var(--cx-bg-raised);
  border-bottom: 1px solid var(--cx-border);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.cx-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  max-width: none;
  padding: 0 16px;
}

.cx-header__brand,
.cx-header__actions {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  min-width: 0;
}

.cx-header__brand {
  gap: 10px;
}

.cx-header__actions {
  justify-content: flex-end;
  gap: 6px;
}

.cx-header__search {
  flex: 0 1 352px;
  min-width: 0;
}

.cx-header__title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--cx-text);
  white-space: nowrap;
  transition: color 0.12s;
}

.cx-header__title:hover {
  color: var(--cx-accent);
}

.cx-header__title img {
  display: block;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 0.22em;
}

.cx-header__kicker {
  font: 600 11px / 1.2 var(--cx-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cx-accent);
}

.cx-header__version {
  padding: 4px 7px;
  font: 11.5px / 16px var(--cx-mono);
  color: var(--cx-text-dim);
  white-space: nowrap;
  background: var(--cx-bg-raised);
  border: 1px solid var(--cx-border-strong);
  border-radius: var(--cx-radius);
}

@media screen and (max-width: 59.984375em) {
  .cx-header__kicker,
  .cx-header__version,
  .cx-header__search {
    display: none;
  }

  .cx-header__inner {
    gap: 12px;
  }

  .cx-header__brand {
    flex: 1 1 auto;
  }

  .cx-header__actions {
    flex: none;
  }
}

/* Search: a sunken field with its shortcut, no icon */
.cx-header .md-search {
  padding: 0;
}

.cx-header .md-search__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  height: auto;
  padding: 5px 8px 5px 11px;
  font: 400 12.5px / 1.45 var(--cx-sans);
  color: var(--cx-text-dim);
  text-align: left;
  background: var(--cx-bg-sunken);
  border: 1px solid var(--cx-border-strong);
  border-radius: var(--cx-radius);
  transition: border-color 0.12s, color 0.12s;
}

.cx-header .md-search__button:hover,
.cx-header .md-search__button:focus {
  color: var(--cx-text);
  background: var(--cx-bg-sunken);
  border-color: var(--cx-accent);
}

.cx-header .md-search__button::before {
  display: none;
}

.cx-header .md-search__button::after {
  position: static;
  padding: 1px 6px;
  font: 11.5px / 1.45 var(--cx-mono);
  color: var(--cx-text-dim);
  background: var(--cx-bg-raised);
  border: 1px solid var(--cx-border-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
}

/* Header buttons: GitHub, the theme toggle and (narrow screens) search */
.cx-header__icon-button,
.cx-header__actions .md-header__button.md-icon {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  margin: 0;
  padding: 0 10px;
  color: var(--cx-text);
  cursor: pointer;
  background: var(--cx-bg-raised);
  border: 1px solid var(--cx-border-strong);
  border-radius: var(--cx-radius);
  opacity: 1;
  transition: border-color 0.12s, color 0.12s, box-shadow 0.12s, transform 0.12s;
}

.cx-header__actions .md-header__button.md-icon[hidden] {
  display: none;
}

/* The search field takes over from the search button once there is room */
@media screen and (min-width: 60em) {
  .cx-header__actions .cx-header__search-toggle {
    display: none;
  }
}

.cx-header__icon-button:hover,
.cx-header__actions .md-header__button.md-icon:hover {
  color: var(--cx-accent);
  border-color: var(--cx-accent);
  box-shadow: var(--cx-shadow-2);
  opacity: 1;
  transform: translateY(-1px);
}

.cx-header__icon-button svg,
.cx-header .md-header__button.md-icon svg {
  width: 16px;
  height: 16px;
}

.cx-header__icon-button svg {
  fill: currentcolor;
}

.cx-header__menu.md-header__button {
  margin: 0 -4px 0 -8px;
  padding: 8px;
}

/* ------------------------------------------------------------------------ */
/* Layout                                                                    */
/* ------------------------------------------------------------------------ */

.md-main__inner.md-grid {
  max-width: none;
  margin: 0;
}

.md-content__inner {
  margin: 0;
  padding: 32px 16px 40px;
}

.md-content__inner::before {
  display: none;
}

.md-sidebar {
  padding: 0;
}

@media screen and (min-width: 60em) {
  .md-sidebar {
    top: var(--cx-header-h);
  }
}

.md-typeset :target {
  --md-scroll-margin: calc(var(--cx-header-h) + 24px);
}

@media screen and (min-width: 45em) {
  .md-content__inner {
    padding: 32px var(--cx-pad-x) 48px;
  }
}

/* Content and TOC, sidebar folded away (tablets) */
@media screen and (min-width: 60em) {
  .md-content__inner {
    max-width: calc(var(--cx-content-w) + 2 * var(--cx-pad-x));
  }

  .md-sidebar--secondary {
    flex: 0 0 240px;
    width: 240px;
  }
}

/* Full layout: sidebar | content | TOC. As in Starlight, the slack beyond
   their natural widths is split evenly between the content pane (whose
   column hugs the TOC) and the TOC pane. */
@media screen and (min-width: 76.25em) {
  /* The sidebar's band is painted on .md-main, which always reaches the
     bottom of the window, so it does not stop short on a short page. */
  .md-main:has(> .md-main__inner > .md-sidebar--primary:not([hidden])) {
    background-image: linear-gradient(
      to right,
      var(--cx-bg-raised) calc(var(--cx-sidebar-w) - 1px),
      var(--cx-border) calc(var(--cx-sidebar-w) - 1px),
      var(--cx-border) var(--cx-sidebar-w),
      transparent var(--cx-sidebar-w)
    );
  }

  .md-sidebar--primary {
    flex: 0 0 var(--cx-sidebar-w);
    width: var(--cx-sidebar-w);
  }

  .md-sidebar--secondary {
    flex: 1 1 var(--cx-toc-w);
    width: auto;
    min-width: 0;
  }

  .md-sidebar--primary:not([hidden]) ~ .md-sidebar--secondary:not([hidden]) ~ .md-content {
    flex: 0 1
      calc(
        var(--cx-content-w) + 2 * var(--cx-pad-x) +
          (100% - var(--cx-sidebar-w) - var(--cx-content-w) - 2 * var(--cx-pad-x) - var(--cx-toc-w)) / 2
      );
  }

  .md-sidebar--primary:not([hidden]) ~ .md-sidebar--secondary:not([hidden]) ~ .md-content > .md-content__inner {
    margin-left: auto;
  }

  [dir="ltr"] .md-sidebar--primary:not([hidden]) ~ .md-content > .md-content__inner,
  [dir="ltr"] .md-sidebar--secondary:not([hidden]) ~ .md-content > .md-content__inner {
    margin-right: 0;
  }

  [dir="ltr"] .md-sidebar--primary:not([hidden]) ~ .md-content > .md-content__inner {
    margin-left: auto;
  }
}

/* Sidebar scroll areas */
.md-sidebar__scrollwrap {
  scrollbar-color: var(--cx-border) transparent;
}

@supports selector(::-webkit-scrollbar) {
  [dir="ltr"] .md-sidebar__inner {
    padding-right: 0;
  }
}

/* ------------------------------------------------------------------------ */
/* Primary navigation (left sidebar)                                         */
/* ------------------------------------------------------------------------ */

.md-nav {
  font-size: 13.8px;
  line-height: 1.4;
}

.md-nav--primary .md-nav__list {
  gap: 0;
}

.md-nav__link {
  border-radius: 0;
}

/* Code in page titles reads as plain monospace in the navigation */
.md-nav code {
  padding: 0;
  font-size: 0.94em;
  color: inherit;
  background: none;
  border: 0;
}

.md-nav--primary .md-nav__link {
  margin: 0;
  padding: 5px 8px;
  color: var(--cx-text-dim);
  border-radius: 0;
  transition: color 0.12s;
}

.md-nav--primary .md-nav__item .md-nav__link--active,
.md-nav--primary .md-nav__item .md-nav__link--active code {
  color: var(--cx-text);
  font-weight: 600;
  background: none;
}

.md-nav--primary .md-nav__link[for]:hover:not(.md-nav__link--active),
.md-nav--primary .md-nav__link[for]:focus:not(.md-nav__link--active),
.md-nav--primary .md-nav__link[href]:hover:not(.md-nav__link--active),
.md-nav--primary .md-nav__link[href]:focus:not(.md-nav__link--active) {
  color: var(--cx-text);
  background: none;
}

@media screen and (min-width: 76.25em) {
  .md-sidebar--primary .md-sidebar__inner {
    padding: 22px 16px 32px 18px;
  }

  .md-nav--primary,
  .md-nav--primary .md-nav__item--section {
    margin: 0;
  }

  /* Groups: an uppercase accent label with a chevron, collapsible */
  .md-nav--primary .md-nav__item--section {
    margin-top: 14px;
  }

  .md-nav--primary > .md-nav__list > .md-nav__item--section:first-child {
    margin-top: 0;
  }

  .md-nav--primary .md-nav__item--section > .md-nav__link {
    gap: 9px;
    align-items: center;
    padding: 6px 8px 6px 4px;
    font: 600 11px / 1.2 var(--cx-sans);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cx-accent);
    pointer-events: auto;
  }

  .md-nav--primary .md-nav__item--section > .md-nav__link:hover {
    color: var(--cx-accent) !important;
  }

  .md-nav--primary .md-nav__item--section > .md-nav__link::before {
    flex: none;
    order: -1;
    width: 13px;
    height: 13px;
    content: "";
    background-color: var(--cx-text-dim);
    -webkit-mask: var(--cx-icon-chevron) center / contain no-repeat;
    mask: var(--cx-icon-chevron) center / contain no-repeat;
    transition: transform 0.15s;
  }

  /* navigation.expand opens groups as "indeterminate"; a group is closed only
     once it has been clicked shut. */
  .md-nav--primary .md-nav__item--section > .md-nav__toggle:not(:checked, :indeterminate) ~ .md-nav__link::before {
    transform: rotate(-90deg);
  }

  .md-nav--primary .md-nav__item--section > .md-nav {
    display: grid;
  }

  .md-nav--primary .md-nav__item--section > .md-nav__toggle:not(:checked, :indeterminate) ~ .md-nav {
    grid-template-rows: minmax(0, 0fr);
    visibility: collapse;
    opacity: 0;
  }

  /* Items of a group hang off a hairline; the current one marks it */
  .md-nav--primary .md-nav__item--section > .md-nav > .md-nav__list {
    margin: 2px 0 2px 10px;
    border-left: 1px solid var(--cx-border);
  }

  .md-nav--primary .md-nav__item--section > .md-nav > .md-nav__list > .md-nav__item > .md-nav__link {
    margin-left: -1px;
    padding-left: 18px;
    border-left: 1px solid transparent;
  }

  .md-nav--primary .md-nav__item--section > .md-nav > .md-nav__list > .md-nav__item > .md-nav__link--active {
    border-left-color: var(--cx-accent);
  }

  /* A group inside a group (Python API): a plain row with a chevron */
  .md-nav--primary .md-nav__item--nested:not(.md-nav__item--section) > .md-nav > .md-nav__list {
    margin: 0 0 2px 18px;
    border-left: 1px solid var(--cx-border);
  }

  .md-nav--primary .md-nav__item--nested:not(.md-nav__item--section) > .md-nav > .md-nav__list > .md-nav__item > .md-nav__link {
    margin-left: -1px;
    padding-left: 14px;
    border-left: 1px solid transparent;
  }

  .md-nav--primary .md-nav__item--nested:not(.md-nav__item--section) > .md-nav > .md-nav__list > .md-nav__item > .md-nav__link--active {
    border-left-color: var(--cx-accent);
  }

  /* Ungrouped top-level pages line up with the group labels */
  .md-nav--primary > .md-nav__list > .md-nav__item:not(.md-nav__item--section) > .md-nav__link {
    padding-left: 4px;
  }

  .md-nav--primary > .md-nav__list > .md-nav__item:not(.md-nav__item--section) {
    margin-top: 2px;
  }

  .md-nav--primary > .md-nav__list > .md-nav__item--section + .md-nav__item:not(.md-nav__item--section) {
    margin-top: 14px;
  }
}

/* ------------------------------------------------------------------------ */
/* Table of contents (right sidebar)                                         */
/* ------------------------------------------------------------------------ */

@media screen and (min-width: 60em) {
  .md-sidebar--secondary .md-sidebar__inner {
    padding: 30px 16px 32px;
  }

  .md-nav--secondary .md-nav__title {
    position: static;
    display: block;
    margin: 0 0 12px;
    padding: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--cx-text);
    background: none;
    box-shadow: none;
  }

  .md-nav--secondary > .md-nav__list {
    gap: 0;
    border-left: 1px solid var(--cx-border);
  }

  .md-nav--secondary .md-nav__list {
    gap: 0;
  }

  .md-nav--secondary .md-nav__link {
    margin: 0 0 0 -1px;
    padding: 3px 0 3px 14px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--cx-text-dim);
    border-left: 1px solid transparent;
  }

  .md-nav--secondary .md-nav__link .md-typeset {
    font-size: inherit;
    line-height: inherit;
  }

  .md-nav--secondary .md-nav .md-nav__link {
    padding-left: 26px;
  }

  .md-nav--secondary .md-nav .md-nav .md-nav__link {
    padding-left: 38px;
  }

  .md-nav--secondary .md-nav {
    margin-top: 0;
  }

  .md-nav--secondary .md-nav__link[href]:hover,
  .md-nav--secondary .md-nav__link[href]:focus {
    color: var(--cx-text);
  }

  .md-nav--secondary .md-nav__link--active,
  .md-nav--secondary .md-nav__link--active:hover {
    color: var(--cx-accent);
    font-weight: 400;
    border-left-color: var(--cx-accent);
  }
}

/* ------------------------------------------------------------------------ */
/* Typography                                                                */
/* ------------------------------------------------------------------------ */

.md-typeset {
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: normal;
  color: color-mix(in srgb, var(--cx-text) 86%, var(--cx-text-dim));
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.md-typeset h5,
.md-typeset h6 {
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--cx-text);
}

.md-typeset h1 {
  margin: 0 0 24px;
  font-size: 29px;
  line-height: 1.2;
}

.md-typeset h2 {
  margin: 44px 0 14px;
  font-size: 24px;
  line-height: 1.25;
}

.md-typeset h3 {
  margin: 32px 0 10px;
  font-size: 20px;
  line-height: 1.3;
}

.md-typeset h2 + h3 {
  margin-top: 16px;
}

.md-typeset h4 {
  margin: 26px 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.md-typeset h5,
.md-typeset h6 {
  margin: 22px 0 8px;
  font-size: 15px;
  text-transform: none;
}

.md-typeset p,
.md-typeset ul,
.md-typeset ol,
.md-typeset dl,
.md-typeset blockquote {
  margin-top: 16px;
  margin-bottom: 16px;
}

.md-typeset a {
  color: var(--cx-accent);
  text-underline-offset: 0.2em;
}

.md-typeset a:hover,
.md-typeset a:focus {
  color: color-mix(in srgb, var(--cx-accent) 78%, var(--cx-text));
}

.md-typeset strong {
  color: var(--cx-text);
  font-weight: 600;
}

.md-typeset hr {
  margin: 32px 0;
  border-bottom: 1px solid var(--cx-border);
}

.md-typeset blockquote {
  color: var(--cx-text-dim);
  border-left: 3px solid var(--cx-border);
}

/* Heading anchors: a link glyph on hover rather than a pilcrow */
.md-typeset .headerlink {
  width: 16px;
  height: 16px;
  margin-left: 8px;
  font-size: 0;
  vertical-align: middle;
  color: var(--cx-text-faint);
}

.md-typeset .headerlink::before {
  display: block;
  width: 16px;
  height: 16px;
  content: "";
  background-color: currentcolor;
  -webkit-mask: var(--cx-icon-link) center / contain no-repeat;
  mask: var(--cx-icon-link) center / contain no-repeat;
}

/* Inline code and keys */
.md-typeset code {
  padding: 0.05em 0.3em;
  font-size: 0.85em;
  color: var(--cx-text);
  background-color: var(--cx-bg-sunken);
  border: 1px solid var(--cx-border);
  border-radius: 4px;
}

.md-typeset a code {
  color: inherit;
}

.md-typeset kbd {
  padding: 0.16em 0.42em;
  font: 500 0.78em / 1 var(--cx-mono);
  color: var(--cx-text);
  white-space: nowrap;
  background: var(--cx-bg-raised);
  border: 1px solid var(--cx-border-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  box-shadow: none;
}

/* ------------------------------------------------------------------------ */
/* Code blocks: a framed pane; shell blocks get a terminal title bar         */
/* ------------------------------------------------------------------------ */

.md-typeset .highlight {
  position: relative;
  margin: 16px 0;
  overflow: hidden;
  color: var(--cx-code-fg);
  background: var(--cx-code-bg);
  border: 1px solid var(--cx-border);
  border-radius: 8px;
  box-shadow: var(--cx-shadow-1);
}

.md-typeset .highlight pre {
  margin: 0;
  line-height: 1.65;
}

.md-typeset pre > code,
.md-typeset .highlight pre > code {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--cx-code-fg);
  background: transparent;
  border: 0;
  border-radius: 0;
}

.md-typeset .highlight :is(.language-bash, .language-console, .language-sh, .language-shell, .language-zsh),
.md-typeset :is(.language-bash, .language-console, .language-sh, .language-shell, .language-zsh).highlight {
  padding-top: 34px;
}

.md-typeset :is(.language-bash, .language-console, .language-sh, .language-shell, .language-zsh).highlight::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 34px;
  content: "";
  border-bottom: 1px solid color-mix(in srgb, var(--cx-border) 55%, transparent);
}

.md-typeset :is(.language-bash, .language-console, .language-sh, .language-shell, .language-zsh).highlight::after {
  position: absolute;
  top: 12.5px;
  left: 16px;
  width: 34px;
  height: 9px;
  content: "";
  background-color: var(--cx-code-dots);
  -webkit-mask: var(--cx-terminal-dots) left center / contain no-repeat;
  mask: var(--cx-terminal-dots) left center / contain no-repeat;
}

/* A bare <pre> outside a highlight wrapper */
.md-typeset pre:not(.highlight pre) {
  background: var(--cx-code-bg);
  border: 1px solid var(--cx-border);
  border-radius: 8px;
}

/* Copy button: shown on hover, in the title bar of a terminal frame */
.md-typeset .md-code__nav {
  top: 6px;
  right: 6px;
  padding: 0;
  background: none;
  opacity: 0;
  transition: opacity 0.15s;
}

.md-typeset .highlight:hover .md-code__nav,
.md-typeset .md-code__nav:focus-within {
  background: none;
  opacity: 1;
}

.md-typeset :is(.language-bash, .language-console, .language-sh, .language-shell, .language-zsh).highlight .md-code__nav {
  top: -31px;
}

.md-typeset .md-code__button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--cx-text-faint);
  background: var(--cx-code-bg);
  border: 1px solid var(--cx-border);
  border-radius: 4px;
}

.md-typeset .md-code__button::after {
  width: 15px;
  height: 15px;
}

.md-typeset .md-code__button:hover,
.md-typeset .md-code__button.focus-visible {
  color: var(--cx-text);
  border-color: var(--cx-border-strong);
}

/* Filenames on code blocks (title="…") */
.md-typeset .highlight span.filename {
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--cx-text-dim);
  background: var(--cx-code-bg);
  border-bottom: 1px solid var(--cx-border);
}

@media screen and (max-width: 44.984375em) {
  .md-content__inner > .highlight {
    margin: 16px 0;
  }

  .md-content__inner > .highlight > pre > code {
    border-radius: 0;
  }
}

/* ------------------------------------------------------------------------ */
/* Tables                                                                    */
/* ------------------------------------------------------------------------ */

.md-typeset__scrollwrap {
  margin: 20px -3px;
  padding: 1px 3px 3px;
}

.md-typeset__table {
  display: block;
  padding: 0;
  margin: 0;
}

.md-typeset table:not([class]) {
  display: table;
  width: 100%;
  font-size: 13.6px;
  line-height: 1.6;
  background: var(--cx-bg-raised);
  border: 1px solid var(--cx-border);
  border-radius: var(--cx-radius);
  box-shadow: var(--cx-shadow-1);
  border-collapse: separate;
  border-spacing: 0;
}

.md-typeset table:not([class]) th {
  min-width: 0;
  padding: 8px 11px;
  font: 600 11px / 1.4 var(--cx-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cx-text-dim);
  background: var(--cx-bg-sunken);
  border-bottom: 1px solid var(--cx-border);
}

.md-typeset table:not([class]) td {
  padding: 7px 11px;
  border-top: 0;
  border-bottom: 1px solid var(--cx-border);
}

/* Names and options in a first column stay on one line */
.md-typeset table:not([class]) td:first-child code {
  white-space: nowrap;
}

.md-typeset table:not([class]) tbody tr:last-child td {
  border-bottom: 0;
}

.md-typeset table:not([class]) tbody tr:hover {
  background: color-mix(in srgb, var(--cx-bg-sunken) 70%, transparent);
  box-shadow: none;
}

/* ------------------------------------------------------------------------ */
/* Asides (admonitions)                                                      */
/* ------------------------------------------------------------------------ */

.md-typeset .admonition[class],
.md-typeset details[class] {
  --cx-aside: var(--cx-accent);
  margin: 24px 0;
  padding: 0 16px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--cx-text);
  background: color-mix(in srgb, var(--cx-aside) 8%, var(--cx-bg-raised));
  border: 1px solid var(--cx-border);
  border-left: 3px solid var(--cx-aside);
  border-radius: var(--cx-radius);
  box-shadow: none;
}

.md-typeset :is(.admonition, details):is(.success, .check, .done) {
  --cx-aside: var(--cx-ok);
}

.md-typeset :is(.admonition, details):is(.warning, .caution, .attention, .important) {
  --cx-aside: var(--cx-warn);
}

.md-typeset :is(.admonition, details):is(.danger, .error, .failure, .fail, .missing, .bug) {
  --cx-aside: var(--cx-danger);
}

.md-typeset :is(.admonition, details) > :is(.admonition-title, summary) {
  margin: 12px 0 4px;
  padding-left: 26px;
  font-size: 15px;
  font-weight: 600;
  color: var(--cx-aside);
  background: none;
}

.md-typeset :is(.admonition, details) > :is(.admonition-title, summary)::before {
  top: 0.18em;
  width: 18px;
  height: 18px;
  background-color: var(--cx-aside);
}

.md-typeset :is(.admonition, details) > :is(.admonition-title, summary)::after {
  color: var(--cx-aside);
}

html .md-typeset :is(.admonition, details) > :last-child {
  margin-bottom: 12px;
}

.md-typeset :is(.admonition, details) code {
  color: var(--cx-text);
  background: color-mix(in srgb, var(--cx-bg-raised) 60%, transparent);
}

.md-typeset :is(.admonition, details) .highlight {
  margin: 12px 0;
}

/* ------------------------------------------------------------------------ */
/* Tabs, cards, figures                                                      */
/* ------------------------------------------------------------------------ */

.md-typeset .tabbed-labels {
  box-shadow: 0 -1px var(--cx-border) inset;
}

.md-typeset .tabbed-labels > label {
  padding: 8px 16px 7px;
  font-size: 14px;
  color: var(--cx-text-dim);
}

.md-typeset .tabbed-set > input:checked + label,
.md-typeset .tabbed-labels > label:hover {
  color: var(--cx-text);
}

.js .md-typeset .tabbed-labels::before {
  height: 2px;
  background: var(--cx-accent);
}

.md-typeset .grid {
  gap: 9px;
}

.md-typeset .grid.cards > ul > li,
.md-typeset .grid.cards > ol > li,
.md-typeset .grid > .card {
  padding: 14px 16px;
  font-size: 15px;
  background: var(--cx-bg-raised);
  border: 1px solid var(--cx-border);
  border-radius: var(--cx-radius);
  box-shadow: var(--cx-shadow-1);
  transition: border-color 0.12s, box-shadow 0.12s;
}

.md-typeset .grid.cards > ul > li:hover,
.md-typeset .grid.cards > ul > li:focus-within,
.md-typeset .grid.cards > ol > li:hover,
.md-typeset .grid > .card:hover {
  border-color: var(--cx-border-strong);
  box-shadow: var(--cx-shadow-2);
}

.md-typeset .grid.cards .twemoji {
  color: var(--cx-accent);
}

.md-typeset img {
  border-radius: 4px;
}

/* ------------------------------------------------------------------------ */
/* Python API pages (mkdocstrings)                                           */
/* ------------------------------------------------------------------------ */

.md-typeset .doc-heading code {
  padding: 0;
  font-size: 0.92em;
  background: none;
  border: 0;
}

.md-typeset .doc-signature,
.md-typeset .doc-signature + .highlight {
  font-size: 13.5px;
}

.md-typeset .doc-contents {
  padding-left: 0;
}

.md-typeset code.doc-symbol {
  padding: 0.05em 0.4em;
  font-weight: 600;
  border: 1px solid currentcolor;
  border-radius: 4px;
  background: transparent;
}

/* ------------------------------------------------------------------------ */
/* Odds and ends                                                             */
/* ------------------------------------------------------------------------ */

.md-top {
  padding: 6px 14px 6px 10px;
  font-size: 12.5px;
  color: var(--cx-text-dim);
  background: var(--cx-bg-raised);
  border: 1px solid var(--cx-border-strong);
  border-radius: 999px;
  box-shadow: var(--cx-shadow-2);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.md-top:hover,
.md-top:focus {
  color: var(--cx-accent);
  background: var(--cx-bg-raised);
  border-color: var(--cx-accent);
}

.md-top svg {
  width: 16px;
  height: 16px;
}

.md-tooltip2,
.md-tooltip {
  background: var(--cx-bg-raised);
  border: 1px solid var(--cx-border);
  border-radius: var(--cx-radius);
  box-shadow: var(--cx-shadow-2);
}

/* ------------------------------------------------------------------------ */
/* Narrow screens: the sidebar becomes a full-height drawer                  */
/* ------------------------------------------------------------------------ */

@media screen and (max-width: 76.234375em) {
  [dir="ltr"] .md-sidebar--primary {
    left: calc(-1 * var(--cx-sidebar-w));
  }

  .md-sidebar--primary {
    top: 0;
    width: var(--cx-sidebar-w);
    max-width: 85vw;
    height: 100%;
    background-color: var(--cx-bg-raised);
    border-right: 1px solid var(--cx-border);
    border-radius: 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  [data-md-toggle="drawer"]:checked ~ .md-container .md-sidebar--primary {
    transform: translateX(var(--cx-sidebar-w));
  }

  .md-nav--primary .md-nav__title[for="__drawer"] {
    font-size: 16px;
    font-weight: 650;
    color: var(--cx-text);
    border-bottom: 1px solid var(--cx-border);
  }

  .md-nav__source {
    font-size: 13px;
    border-color: var(--cx-border);
  }

  .md-nav--primary .md-nav__item--section > .md-nav__link,
  .md-nav--primary > .md-nav__list > .md-nav__item--nested > .md-nav__link {
    font: 600 11px / 1.2 var(--cx-sans);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cx-accent);
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .md-overlay {
    background-color: color-mix(in srgb, var(--cx-bg-sunken) 60%, transparent);
  }
}

@media screen and (max-width: 59.984375em) {
  .md-sidebar--secondary .md-sidebar__inner {
    background: var(--cx-bg-raised);
    border: 1px solid var(--cx-border);
    border-radius: var(--cx-radius);
  }

  .md-sidebar--secondary .md-sidebar-button {
    color: var(--cx-text-dim);
    background: var(--cx-bg-raised);
    border: 1px solid var(--cx-border-strong);
  }
}

/* ------------------------------------------------------------------------ */
/* chromokit components inside zensical's typeset column                     */
/* ------------------------------------------------------------------------ */

/* `.md-typeset p`, `h1` and `a` carry an element in their selector, so they
   outrank a bare class: the components restate what zensical would change. */
.md-typeset .cx-kicker {
  margin: 48px 0 10px;
}

.md-typeset .cx-tagline {
  margin: 18px auto 0;
  font-size: 19px;
}

.md-typeset .cx-lede {
  margin: 10px auto 0;
  font-size: 15.5px;
}

.md-typeset .cx-masthead {
  margin: 0;
  font-size: clamp(32px, 8vw, 58px);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.03em;
}

.md-typeset .cx-masthead .headerlink {
  display: none;
}

.md-typeset .cx-actions > p {
  margin: 0;
}

.md-typeset .cx-actions {
  margin-top: 24px;
}

.md-typeset .cx-badges {
  margin-top: 22px;
}

.md-typeset .cx-badges img {
  border-radius: 0;
}

.md-typeset .cx-tiles > p {
  margin: 0;
}

.md-typeset .cx-tile .twemoji svg,
.md-typeset .cx-glyph .twemoji,
.md-typeset .cx-glyph svg {
  width: 18px;
  height: 18px;
  max-height: none;
}

.md-typeset .cx-button .twemoji svg {
  width: 15px;
  height: 15px;
}

.md-typeset .cx-build {
  margin: 28px 0 0;
}

.md-typeset .cx-badge,
.md-typeset .cx-chip,
.md-typeset .cx-callout {
  margin-top: 0;
}

/* The home page: no column, the landing's own width, the build line centred. */
.md-content:has(.cx-landing) {
  flex: 1 1 auto;
}

.md-content__inner:has(.cx-landing) {
  max-width: none;
  margin: 0;
  padding: 0 16px;
}

.md-content__inner:has(.cx-landing) .cx-build {
  max-width: 832px;
  margin: 0 auto 32px;
  text-align: center;
}

.md-content__inner:has(.cx-landing) .cx-page-footer {
  margin-top: 0;
}

.md-header.cx-header {
  display: block;
  padding: 0;
}

/*
 * Surfaces and helpers.
 *
 * Nothing in the core styles a bare element: every rule is on a `cx-` class,
 * so the core can be dropped into any framework (Zensical, Starlight, pkgdown,
 * Quarto) without touching what the framework draws. Element defaults for a
 * page with no framework at all are in `page.css`.
 */

/* The ground: a sub-pixel dot every 10px, behind content and never behind
   furniture. The furniture (header, sidebars, status bar) is solid. */
.cx-ground {
  background-image: radial-gradient(circle, color-mix(in srgb, var(--cx-border) 50%, transparent) 0.8px, transparent 1px);
  background-size: var(--cx-grain) var(--cx-grain);
}

/* The same grain inside a sunken well, for a picture sitting on the ground. */
.cx-well {
  background-color: var(--cx-bg-sunken);
  background-image: radial-gradient(circle, color-mix(in srgb, var(--cx-border-strong) 45%, transparent) 0.8px, transparent 1px);
  background-size: var(--cx-grain) var(--cx-grain);
  border: 1px solid var(--cx-border);
  border-radius: var(--cx-radius);
}

.cx-surface {
  color: var(--cx-text);
  background-color: var(--cx-bg);
}

.cx-raised {
  background-color: var(--cx-bg-raised);
  border: 1px solid var(--cx-border);
  border-radius: var(--cx-radius);
  box-shadow: var(--cx-shadow-1);
}

.cx-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Shown on narrow screens only (where the header drops its `__wide` items). */
.cx-narrow {
  display: none;
}

@media (max-width: 60rem) {
  .cx-narrow {
    display: revert;
  }
}

.cx-mono {
  font-family: var(--cx-mono);
  font-variant-numeric: slashed-zero tabular-nums;
}

.cx-dim {
  color: var(--cx-text-dim);
}

.cx-faint {
  color: var(--cx-text-faint);
}

/* An icon drawn inline: Lucide's geometry, one stroke, the colour of the text. */
.cx-icon {
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  fill: none;
  stroke: currentcolor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cx-icon--filled {
  fill: currentcolor;
  stroke: none;
}

/*
 * Controls: the compact button, the call to action, fields and keys.
 *
 * One gesture for every control that has a border of its own: on hover the
 * border and the word take the accent and the control rises a pixel and casts.
 * Pressed, it comes back down. The quiet variants, with no border to raise,
 * opt out of the lift.
 */

/* ---- the compact control (the app's `.btn`, the header's buttons) ------- */
.cx-control,
a.cx-control {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(0.35 * var(--cx-rem));
  margin: 0;
  padding: calc(0.3 * var(--cx-rem)) calc(0.65 * var(--cx-rem));
  font: 400 var(--cx-step--1) / calc(1 * var(--cx-rem)) var(--cx-sans);
  white-space: nowrap;
  color: var(--cx-text);
  text-decoration: none;
  cursor: pointer;
  background: var(--cx-bg-raised);
  border: 1px solid var(--cx-border-strong);
  border-radius: var(--cx-radius);
  box-shadow: none;
  transition:
    border-color 120ms,
    color 120ms,
    background 120ms,
    box-shadow 120ms,
    transform 120ms;
}

.cx-control:hover:not(:disabled),
a.cx-control:hover {
  color: var(--cx-accent);
  border-color: var(--cx-accent);
  box-shadow: var(--cx-shadow-2);
  transform: translateY(-1px);
}

.cx-control:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: var(--cx-shadow-1);
}

.cx-control:focus-visible {
  outline: 2px solid var(--cx-accent);
  outline-offset: 2px;
}

.cx-control:disabled {
  cursor: default;
  opacity: 0.45;
}

.cx-control svg,
.cx-control .cx-icon {
  width: 16px;
  height: 16px;
}

/* A control that is only an icon: one height with a control that has a word. */
.cx-control--icon {
  padding-inline: calc(0.45 * var(--cx-rem));
}

.cx-control--quiet,
a.cx-control--quiet {
  background: transparent;
  border-color: transparent;
}

.cx-control--quiet:hover:not(:disabled),
a.cx-control--quiet:hover {
  background: var(--cx-bg-sunken);
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

/* Selected, in a group of toggles: the soft accent, as the app's tool buttons. */
.cx-control[aria-pressed='true'],
.cx-control.is-active {
  color: var(--cx-accent);
  background: var(--cx-accent-soft);
  border-color: var(--cx-accent);
}

/* ---- the call to action (a landing page's buttons) ---------------------- */
.cx-button,
a.cx-button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: calc(0.45 * var(--cx-rem));
  margin: 0;
  padding: calc(0.65 * var(--cx-rem)) calc(0.95 * var(--cx-rem));
  font: 500 var(--cx-step-0) / 1 var(--cx-sans);
  color: var(--cx-text);
  text-decoration: none;
  cursor: pointer;
  background: var(--cx-bg-raised);
  border: 1px solid var(--cx-border);
  border-radius: var(--cx-radius);
  box-shadow: var(--cx-shadow-1);
  transition:
    border-color 120ms,
    box-shadow 120ms,
    filter 120ms,
    transform 120ms;
}

.cx-button:hover,
a.cx-button:hover,
a.cx-button:focus {
  color: var(--cx-text);
  border-color: var(--cx-border-strong);
  box-shadow: var(--cx-shadow-2);
}

.cx-button:focus-visible {
  outline: 2px solid var(--cx-accent);
  outline-offset: 2px;
}

.cx-button--filled,
a.cx-button--filled,
a.cx-button--filled:hover,
a.cx-button--filled:focus {
  color: var(--cx-on-accent);
  background: var(--cx-accent);
  border-color: var(--cx-accent);
}

.cx-button--filled:hover,
a.cx-button--filled:hover {
  filter: brightness(1.08);
}

.cx-button svg,
.cx-button .cx-icon {
  width: 15px;
  height: 15px;
}

/* ---- fields ------------------------------------------------------------- */
.cx-input,
.cx-select,
.cx-textarea {
  box-sizing: border-box;
  min-width: 0;
  padding: calc(0.28 * var(--cx-rem)) calc(0.45 * var(--cx-rem));
  font: 400 var(--cx-step--1) / 1.35 var(--cx-sans);
  color: var(--cx-text);
  background: var(--cx-bg-raised);
  border: 1px solid var(--cx-border-strong);
  border-radius: var(--cx-radius);
}

.cx-input::placeholder,
.cx-textarea::placeholder {
  color: var(--cx-text-faint);
}

.cx-input:focus,
.cx-select:focus,
.cx-textarea:focus {
  outline: 2px solid var(--cx-accent);
  outline-offset: -1px;
}

.cx-input--mono {
  font-family: var(--cx-mono);
}

.cx-input[aria-invalid='true'] {
  border-color: var(--cx-danger);
  background: var(--cx-danger-soft);
}

.cx-field {
  display: grid;
  gap: calc(0.25 * var(--cx-rem));
  font-size: var(--cx-step--1);
  color: var(--cx-text-dim);
}

/* ---- the search well: words on the left, its key on the right ----------- */
.cx-search,
button.cx-search {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(0.5 * var(--cx-rem));
  width: 100%;
  margin: 0;
  padding: calc(0.3 * var(--cx-rem)) calc(0.5 * var(--cx-rem)) calc(0.3 * var(--cx-rem)) calc(0.7 * var(--cx-rem));
  font: 400 var(--cx-step--1) / 1.45 var(--cx-sans);
  color: var(--cx-text-dim);
  text-align: left;
  cursor: pointer;
  background: var(--cx-bg-sunken);
  border: 1px solid var(--cx-border-strong);
  border-radius: var(--cx-radius);
  transition:
    border-color 120ms,
    color 120ms;
}

.cx-search:hover,
.cx-search:focus-within,
button.cx-search:focus-visible {
  color: var(--cx-text);
  border-color: var(--cx-accent);
  outline: none;
}

.cx-search input {
  flex: 1;
  min-width: 0;
  padding: 0;
  font: inherit;
  color: var(--cx-text);
  background: none;
  border: 0;
  outline: none;
}

.cx-search input::placeholder {
  color: var(--cx-text-dim);
}

.cx-search:focus-within .cx-kbd {
  display: none;
}

/* ---- a key, drawn as a key ---------------------------------------------- */
.cx-kbd,
kbd.cx-kbd {
  display: inline-block;
  padding: calc(0.05 * var(--cx-rem)) calc(0.35 * var(--cx-rem));
  font: 400 var(--cx-step--2) / 1.45 var(--cx-mono);
  font-variant-numeric: slashed-zero tabular-nums;
  color: var(--cx-text-dim);
  white-space: nowrap;
  background: var(--cx-bg-raised);
  border: 1px solid var(--cx-border-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  box-shadow: none;
}

/* ---- the theme toggle: one button, three icons, one shown --------------- */
.cx-theme-toggle .cx-theme-icon {
  display: none;
}

:root:not([data-cx-theme]) .cx-theme-toggle .cx-theme-icon--system,
:root[data-cx-theme='system'] .cx-theme-toggle .cx-theme-icon--system,
:root[data-cx-theme='light'] .cx-theme-toggle .cx-theme-icon--light,
:root[data-cx-theme='dark'] .cx-theme-toggle .cx-theme-icon--dark {
  display: inline-block;
}

/*
 * Small words: the kicker over a group, the chip that names a version, the
 * badge that states an outcome.
 */

/* Small accented capitals: "NEW HERE?", "GET STARTED", a sidebar group. */
.cx-kicker {
  display: block;
  margin: 0;
  font: 600 var(--cx-label) / 1.2 var(--cx-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cx-accent);
}

/* A version, a size, a count: the mono face in a hairline box. */
.cx-chip {
  display: inline-flex;
  align-items: center;
  gap: calc(0.3 * var(--cx-rem));
  padding: calc(0.18 * var(--cx-rem)) calc(0.42 * var(--cx-rem));
  font: 400 var(--cx-step--2) / calc(1 * var(--cx-rem)) var(--cx-mono);
  font-variant-numeric: slashed-zero tabular-nums;
  color: var(--cx-text-dim);
  white-space: nowrap;
  background: var(--cx-bg-raised);
  border: 1px solid var(--cx-border-strong);
  border-radius: var(--cx-radius);
}

/* A count beside a heading, as on the app's side panels. */
.cx-count {
  display: inline-grid;
  place-items: center;
  min-width: calc(1.2 * var(--cx-rem));
  height: calc(1.2 * var(--cx-rem));
  padding: 0 calc(0.25 * var(--cx-rem));
  box-sizing: border-box;
  font: 400 var(--cx-step--2) / 1 var(--cx-mono);
  color: var(--cx-text-dim);
  border: 1px solid var(--cx-border-strong);
  border-radius: 4px;
}

/* An outcome: a dot and a few words in a pill. Colour for meaning only. */
.cx-badge,
a.cx-badge {
  --cx-badge: var(--cx-text-dim);
  display: inline-flex;
  align-items: center;
  gap: calc(0.4 * var(--cx-rem));
  padding: calc(0.35 * var(--cx-rem)) calc(0.6 * var(--cx-rem));
  font: 500 var(--cx-step--1) / 1 var(--cx-sans);
  color: var(--cx-badge);
  text-decoration: none;
  white-space: nowrap;
  background: color-mix(in srgb, var(--cx-badge) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--cx-badge) 55%, transparent);
  border-radius: 999px;
}

.cx-badge::before {
  flex: none;
  width: calc(0.5 * var(--cx-rem));
  height: calc(0.5 * var(--cx-rem));
  content: '';
  background: currentcolor;
  border-radius: 50%;
}

.cx-badge--plain::before {
  display: none;
}

.cx-badge--accent {
  --cx-badge: var(--cx-accent);
}

.cx-badge--ok {
  --cx-badge: var(--cx-ok);
}

.cx-badge--warn {
  --cx-badge: var(--cx-warn);
}

.cx-badge--danger {
  --cx-badge: var(--cx-danger);
}

a.cx-badge:hover {
  filter: brightness(1.1);
}

/*
 * Things that rest on the page: cards, tiles, collapsible panels.
 *
 * All on the raised surface with the hairline, the 6px corner and the resting
 * shadow; a hover lifts them to the second elevation.
 */

.cx-card,
a.cx-card {
  display: block;
  padding: 14px 16px;
  color: var(--cx-text);
  text-decoration: none;
  background: var(--cx-bg-raised);
  border: 1px solid var(--cx-border);
  border-radius: var(--cx-radius);
  box-shadow: var(--cx-shadow-1);
  transition:
    border-color 120ms,
    box-shadow 120ms,
    transform 120ms;
}

a.cx-card:hover,
.cx-card--link:hover {
  color: var(--cx-text);
  border-color: var(--cx-border-strong);
  box-shadow: var(--cx-shadow-2);
  transform: translateY(-1px);
}

.cx-card > :first-child {
  margin-top: 0;
}

.cx-card > :last-child {
  margin-bottom: 0;
}

.cx-card__title {
  display: block;
  margin: 0 0 calc(0.25 * var(--cx-rem));
  font-size: var(--cx-step-0);
  font-weight: 600;
  color: var(--cx-text);
}

.cx-card__text {
  display: block;
  font-size: var(--cx-step--1);
  line-height: 1.45;
  color: var(--cx-text-dim);
}

.cx-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(calc(14 * var(--cx-rem)), 1fr));
  gap: calc(0.6 * var(--cx-rem));
}

/* ---- tiles: a glyph, a name and a line, centred ------------------------- */
.cx-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(calc(11.5 * var(--cx-rem)), 1fr));
  gap: calc(0.55 * var(--cx-rem));
  margin: 0;
}

.cx-tile,
a.cx-tile {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(0.35 * var(--cx-rem));
  margin: 0;
  padding: calc(1 * var(--cx-rem)) calc(0.8 * var(--cx-rem)) calc(0.9 * var(--cx-rem));
  text-align: center;
  color: var(--cx-text);
  text-decoration: none;
  background: var(--cx-bg-raised);
  border: 1px solid var(--cx-border);
  border-radius: var(--cx-radius);
  box-shadow: var(--cx-shadow-1);
  transition:
    border-color 120ms,
    box-shadow 120ms,
    transform 120ms;
}

a.cx-tile:hover,
a.cx-tile:focus {
  color: var(--cx-text);
  border-color: var(--cx-border-strong);
  box-shadow: var(--cx-shadow-2);
  transform: translateY(-1px);
}

/* A tile for something that is not there yet, or must be added by hand. */
.cx-tile--dashed,
a.cx-tile--dashed {
  border-style: dashed;
  box-shadow: none;
}

.cx-glyph {
  display: grid;
  place-items: center;
  flex: none;
  width: calc(2.6 * var(--cx-rem));
  height: calc(2.6 * var(--cx-rem));
  margin-bottom: calc(0.25 * var(--cx-rem));
  color: var(--cx-accent);
  background: var(--cx-accent-soft);
  border-radius: 8px;
}

.cx-glyph svg,
.cx-glyph .cx-icon,
.cx-glyph img {
  width: 18px;
  height: 18px;
  max-height: none;
}

.cx-tile__title,
.cx-tile strong {
  font-size: calc(0.92 * var(--cx-rem));
  font-weight: 600;
  line-height: 1.4;
  color: var(--cx-text);
}

.cx-tile__text,
.cx-tile-text {
  font-size: var(--cx-step--1);
  line-height: 1.35;
  color: var(--cx-text-faint);
}

.cx-tile-text code,
.cx-tile__text code {
  font-size: 0.92em;
  color: inherit;
}

/* ---- the app's side-panel card: an uppercase head that folds it --------- */
.cx-panel {
  background: var(--cx-bg-raised);
  border: 1px solid var(--cx-border);
  border-radius: var(--cx-radius);
  box-shadow: var(--cx-shadow-1);
}

.cx-panel > summary,
.cx-panel__head {
  display: flex;
  align-items: center;
  gap: calc(0.45 * var(--cx-rem));
  padding: calc(0.55 * var(--cx-rem)) calc(0.75 * var(--cx-rem));
  font: 600 var(--cx-step--1) / 1.2 var(--cx-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cx-text-dim);
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.cx-panel > summary::-webkit-details-marker {
  display: none;
}

.cx-panel > summary::after {
  width: 13px;
  height: 13px;
  margin-left: auto;
  content: '';
  background-color: var(--cx-text-dim);
  -webkit-mask: var(--cx-icon-chevron) center / contain no-repeat;
  mask: var(--cx-icon-chevron) center / contain no-repeat;
  transform: rotate(-90deg);
  transition: transform 150ms;
}

.cx-panel[open] > summary::after {
  transform: none;
}

.cx-panel > summary:hover {
  color: var(--cx-text);
}

.cx-panel__body,
.cx-panel > :not(summary) {
  padding: 0 calc(0.75 * var(--cx-rem)) calc(0.75 * var(--cx-rem));
}

/* A key and its value, row after row, as the app's FILE card. */
.cx-kv {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: calc(0.15 * var(--cx-rem)) calc(1 * var(--cx-rem));
  margin: 0;
  font-size: var(--cx-step--1);
}

.cx-kv dt {
  margin: 0;
  color: var(--cx-text-dim);
}

.cx-kv dd {
  margin: 0;
  overflow: hidden;
  font-family: var(--cx-mono);
  color: var(--cx-text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- facts: a page's summary, uppercase keys on the left ---------------- */
.cx-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: calc(0.3 * var(--cx-rem)) calc(1 * var(--cx-rem));
  margin: calc(1 * var(--cx-rem)) 0;
  padding: calc(0.75 * var(--cx-rem)) calc(1 * var(--cx-rem));
  font-size: calc(0.88 * var(--cx-rem));
  background: var(--cx-bg-raised);
  border: 1px solid var(--cx-border);
  border-radius: var(--cx-radius);
  box-shadow: var(--cx-shadow-1);
}

.cx-facts dt {
  margin: 0;
  font: 600 var(--cx-label) / 1.9 var(--cx-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cx-text-faint);
}

.cx-facts dd {
  margin: 0;
  color: var(--cx-text);
}

@media (max-width: 30rem) {
  .cx-facts {
    grid-template-columns: 1fr;
  }

  .cx-facts dd {
    margin-bottom: calc(0.4 * var(--cx-rem));
  }
}

/* ---- a drop zone: dashed, sunken, a line and a hint --------------------- */
.cx-dropzone {
  display: grid;
  place-items: center;
  gap: calc(0.2 * var(--cx-rem));
  padding: calc(1.4 * var(--cx-rem)) calc(1 * var(--cx-rem));
  text-align: center;
  color: var(--cx-text);
  cursor: pointer;
  background: var(--cx-bg-sunken);
  border: 2px dashed var(--cx-border-strong);
  border-radius: var(--cx-radius);
  transition:
    border-color 120ms,
    background 120ms;
}

.cx-dropzone:hover,
.cx-dropzone.is-over {
  background: var(--cx-accent-soft);
  border-color: var(--cx-accent);
}

.cx-dropzone__title {
  font-size: var(--cx-step-1);
  font-weight: 600;
}

.cx-dropzone__hint {
  font-size: var(--cx-step--1);
  color: var(--cx-text-dim);
}

/* ---- a picture of an app, framed as a card ------------------------------ */
.cx-screen,
img.cx-screen {
  display: block;
  max-width: 100%;
  height: auto;
  background: var(--cx-bg-raised);
  border: 1px solid var(--cx-border);
  border-radius: var(--cx-radius);
  box-shadow: var(--cx-shadow-1);
}

.cx-figure {
  margin: calc(1.5 * var(--cx-rem)) 0;
}

.cx-figure figcaption {
  margin-top: calc(0.5 * var(--cx-rem));
  font-size: var(--cx-step--1);
  color: var(--cx-text-dim);
}

/*
 * A landing page: the mark beside the name, a tagline, an install line, two
 * buttons, a row of badges, then groups of tiles under their kickers.
 */

.cx-landing {
  box-sizing: border-box;
  max-width: calc(52 * var(--cx-rem));
  margin: 0 auto;
  padding: calc(3 * var(--cx-rem)) 0 calc(4 * var(--cx-rem));
}

.cx-masthead {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
  margin: 0;
  padding: 0;
  font-size: clamp(calc(2 * var(--cx-rem)), 8vw, calc(3.6 * var(--cx-rem)));
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--cx-text);
  border: 0;
}

.cx-masthead img,
.cx-masthead svg {
  flex: none;
  width: 0.92em;
  height: 0.92em;
  border-radius: 0.2em;
}

.cx-tagline {
  max-width: calc(36 * var(--cx-rem));
  margin: calc(1.1 * var(--cx-rem)) auto 0;
  font-size: calc(1.19 * var(--cx-rem));
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  color: var(--cx-text);
}

.cx-lede {
  max-width: 600px;
  margin: calc(0.6 * var(--cx-rem)) auto 0;
  font-size: calc(0.97 * var(--cx-rem));
  line-height: 1.65;
  text-align: center;
  color: var(--cx-text-dim);
}

.cx-lede strong {
  color: inherit;
}

.cx-install {
  max-width: 340px;
  margin: calc(1.4 * var(--cx-rem)) auto 0;
}

.cx-install .cx-code,
.cx-install pre {
  margin: 0;
}

.cx-actions,
.cx-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.cx-actions {
  gap: calc(0.6 * var(--cx-rem));
  margin-top: calc(1.5 * var(--cx-rem));
}

.cx-badges {
  gap: 6px;
  margin-top: calc(1.4 * var(--cx-rem));
}

.cx-badges img {
  display: block;
  height: 20px;
  border-radius: 0;
}

/* Zensical and Starlight put a Markdown paragraph between the wrapper and the
   links: the paragraph becomes the row. */
.cx-actions > p,
.cx-badges > p {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: inherit;
  margin: 0;
}

.cx-tiles > p {
  display: contents;
}

.cx-landing .cx-kicker {
  margin: calc(3 * var(--cx-rem)) 0 calc(0.6 * var(--cx-rem));
}

/*
 * Content blocks: callouts, tables, framed code.
 */

/* ---- callouts: tinted, a coloured bar on the left, the title in colour --- */
.cx-callout {
  --cx-callout: var(--cx-accent);
  margin: calc(1.5 * var(--cx-rem)) 0;
  padding: calc(0.75 * var(--cx-rem)) calc(1 * var(--cx-rem));
  font-size: calc(0.94 * var(--cx-rem));
  line-height: 1.7;
  color: var(--cx-text);
  background: color-mix(in srgb, var(--cx-callout) 8%, var(--cx-bg-raised));
  border: 1px solid var(--cx-border);
  border-left: 3px solid var(--cx-callout);
  border-radius: var(--cx-radius);
}

.cx-callout > :first-child {
  margin-top: 0;
}

.cx-callout > :last-child {
  margin-bottom: 0;
}

.cx-callout__title {
  display: flex;
  align-items: center;
  gap: calc(0.45 * var(--cx-rem));
  margin: 0 0 calc(0.25 * var(--cx-rem));
  font-weight: 600;
  color: var(--cx-callout);
}

.cx-callout__title svg,
.cx-callout__title .cx-icon {
  width: 18px;
  height: 18px;
}

.cx-callout--ok {
  --cx-callout: var(--cx-ok);
}

.cx-callout--warn {
  --cx-callout: var(--cx-warn);
}

.cx-callout--danger {
  --cx-callout: var(--cx-danger);
}

.cx-callout--quiet {
  --cx-callout: var(--cx-text-dim);
}

/* ---- tables: raised, rounded, small capitals on a sunken head ----------- */
.cx-table-wrap {
  max-width: 100%;
  margin: calc(1.25 * var(--cx-rem)) 0;
  overflow-x: auto;
  border-radius: var(--cx-radius);
}

.cx-table-wrap .cx-table {
  margin: 0;
}

.cx-table {
  width: 100%;
  margin: calc(1.25 * var(--cx-rem)) 0;
  font-size: calc(0.85 * var(--cx-rem));
  line-height: 1.6;
  color: var(--cx-text);
  background: var(--cx-bg-raised);
  border: 1px solid var(--cx-border);
  border-radius: var(--cx-radius);
  box-shadow: var(--cx-shadow-1);
  border-collapse: separate;
  border-spacing: 0;
}

.cx-table th {
  padding: 8px 11px;
  font: 600 var(--cx-label) / 1.4 var(--cx-sans);
  letter-spacing: 0.1em;
  text-align: start;
  text-transform: uppercase;
  color: var(--cx-text-dim);
  background: var(--cx-bg-sunken);
  border-bottom: 1px solid var(--cx-border);
}

.cx-table thead th:first-child {
  border-top-left-radius: var(--cx-radius);
}

.cx-table thead th:last-child {
  border-top-right-radius: var(--cx-radius);
}

.cx-table td {
  padding: 7px 11px;
  vertical-align: top;
  border-bottom: 1px solid var(--cx-border);
}

.cx-table tbody tr:last-child td {
  border-bottom: 0;
}

.cx-table tbody tr:hover {
  background: color-mix(in srgb, var(--cx-bg-sunken) 70%, transparent);
}

.cx-table td:first-child code {
  white-space: nowrap;
}

.cx-table--numeric td:not(:first-child) {
  font-family: var(--cx-mono);
  font-variant-numeric: slashed-zero tabular-nums;
  text-align: end;
}

/* ---- framed code; a shell block gets a terminal bar -------------------- */
.cx-code {
  position: relative;
  margin: calc(1 * var(--cx-rem)) 0;
  overflow: hidden;
  color: var(--cx-code-fg);
  background: var(--cx-code-bg);
  border: 1px solid var(--cx-border);
  border-radius: 8px;
  box-shadow: var(--cx-shadow-1);
}

.cx-code pre {
  margin: 0;
  padding: 12px 16px;
  overflow-x: auto;
  font: 400 var(--cx-step-0) / 1.65 var(--cx-mono);
  font-variant-ligatures: none;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.cx-code pre code {
  padding: 0;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
}

.cx-code__title {
  display: block;
  padding: 6px 16px;
  font: 500 calc(0.81 * var(--cx-rem)) / 1.5 var(--cx-sans);
  color: var(--cx-text-dim);
  border-bottom: 1px solid var(--cx-border);
}

.cx-code--terminal {
  padding-top: 34px;
}

.cx-code--terminal::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 34px;
  content: '';
  border-bottom: 1px solid color-mix(in srgb, var(--cx-border) 55%, transparent);
}

.cx-code--terminal::after {
  position: absolute;
  top: 12.5px;
  left: 16px;
  width: 34px;
  height: 9px;
  content: '';
  background-color: var(--cx-code-dots);
  -webkit-mask: var(--cx-terminal-dots) left center / contain no-repeat;
  mask: var(--cx-terminal-dots) left center / contain no-repeat;
}

/* The copy button: shown on hover, in the title bar of a terminal. */
.cx-code__copy {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  color: var(--cx-text-faint);
  cursor: pointer;
  background: var(--cx-code-bg);
  border: 1px solid var(--cx-border);
  border-radius: 4px;
  opacity: 0;
  transition: opacity 150ms;
}

.cx-code:hover .cx-code__copy,
.cx-code__copy:focus-visible {
  opacity: 1;
}

.cx-code__copy:hover {
  color: var(--cx-text);
  border-color: var(--cx-border-strong);
}

.cx-code__copy svg {
  width: 15px;
  height: 15px;
}

.cx-code__copy.is-done {
  color: var(--cx-ok);
}

/* Syntax colours, for a highlighter that writes these classes. */
.cx-code .c,
.cx-hl-comment {
  color: var(--cx-hl-comment);
}

.cx-code .k,
.cx-hl-keyword {
  color: var(--cx-hl-keyword);
}

.cx-code .s,
.cx-hl-string {
  color: var(--cx-hl-string);
}

.cx-code .f,
.cx-hl-function {
  color: var(--cx-hl-function);
}

.cx-code .n,
.cx-hl-number {
  color: var(--cx-hl-number);
}

.cx-code .p,
.cx-hl-punctuation {
  color: var(--cx-hl-punctuation);
}

/*
 * A site's furniture: the header, the previous/next cards and the build line.
 *
 * The header is chromosomix's toolbar: 53px on the raised surface with a
 * hairline under it, solid rather than frosted. The mark, the name, a small
 * accented "docs" and the version on the left; the search well in the middle;
 * bordered buttons on the right.
 */

.cx-header {
  position: sticky;
  top: 0;
  z-index: 10;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--cx-header-h);
  padding: 0 16px;
  color: var(--cx-text);
  background-color: var(--cx-bg-raised);
  border-bottom: 1px solid var(--cx-border);
}

.cx-header__brand,
.cx-header__actions {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  min-width: 0;
}

.cx-header__brand {
  gap: 10px;
}

.cx-header__actions {
  justify-content: flex-end;
  gap: 6px;
}

.cx-header__search {
  flex: 0 1 352px;
  min-width: 0;
}

.cx-header__title,
a.cx-header__title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font: 650 var(--cx-step-1) / 1.2 var(--cx-sans);
  letter-spacing: -0.015em;
  color: var(--cx-text);
  text-decoration: none;
  white-space: nowrap;
  transition: color 120ms;
}

a.cx-header__title:hover {
  color: var(--cx-accent);
}

.cx-header__mark,
.cx-header__title img,
.cx-header__title svg {
  display: block;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 0.22em;
}

/* "docs", in the small accented capitals, beside the name. */
.cx-header__kicker {
  font: 600 var(--cx-label) / 1.2 var(--cx-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cx-accent);
}

.cx-header__version {
  padding: 4px 7px;
  font: 400 var(--cx-step--2) / calc(1 * var(--cx-rem)) var(--cx-mono);
  color: var(--cx-text-dim);
  white-space: nowrap;
  background: var(--cx-bg-raised);
  border: 1px solid var(--cx-border-strong);
  border-radius: var(--cx-radius);
}

select.cx-header__version {
  max-width: calc(11 * var(--cx-rem));
  padding: calc(0.3 * var(--cx-rem)) calc(0.4 * var(--cx-rem));
  cursor: pointer;
}

select.cx-header__version:hover {
  color: var(--cx-text);
  border-color: var(--cx-accent);
}

.cx-header__menu {
  display: none;
}

@media (max-width: 60rem) {
  .cx-header .cx-header__kicker,
  .cx-header .cx-header__version,
  .cx-header .cx-header__search,
  .cx-header .cx-header__wide {
    display: none;
  }

  .cx-header {
    gap: 12px;
  }

  .cx-header__brand {
    flex: 1 1 auto;
  }

  .cx-header__actions {
    flex: none;
  }

  .cx-header__menu {
    display: inline-flex;
  }

  /* No sidebar on the page, no drawer to open */
  body:not(:has(.cx-sidebar)) .cx-header__menu {
    display: none;
  }
}

/* ---- the foot of a page: previous / next cards, then the build line ----- */
.cx-page-footer {
  margin-top: 56px;
}

.cx-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cx-pagination[hidden] {
  display: none;
}

.cx-pagination__link,
a.cx-pagination__link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 14px 16px;
  color: var(--cx-text-dim);
  text-decoration: none;
  background: var(--cx-bg-raised);
  border: 1px solid var(--cx-border);
  border-radius: var(--cx-radius);
  box-shadow: var(--cx-shadow-1);
  transition:
    border-color 120ms,
    box-shadow 120ms;
}

a.cx-pagination__link:hover,
a.cx-pagination__link:focus {
  color: var(--cx-text-dim);
  border-color: var(--cx-border-strong);
  box-shadow: var(--cx-shadow-2);
}

.cx-pagination__link--next {
  grid-column: 2;
  justify-content: flex-end;
  text-align: right;
}

.cx-pagination__link svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentcolor;
}

.cx-pagination__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cx-pagination__direction {
  font-size: var(--cx-step--1);
  line-height: 1.4;
  color: var(--cx-text-faint);
}

.cx-pagination__title {
  overflow: hidden;
  font-size: calc(1.06 * var(--cx-rem));
  font-weight: 600;
  line-height: 1.35;
  color: var(--cx-text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cx-build {
  margin: 28px 0 0;
  font-size: var(--cx-step--1);
  line-height: 1.6;
  color: var(--cx-text-faint);
}

.cx-build a {
  color: inherit;
}

/* ---- the app's status bar: one line of quiet readouts ------------------- */
.cx-statusbar {
  box-sizing: border-box;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: calc(1.2 * var(--cx-rem));
  padding: calc(0.3 * var(--cx-rem)) calc(1 * var(--cx-rem));
  overflow: hidden;
  font-size: var(--cx-step--1);
  color: var(--cx-text-faint);
  background: var(--cx-bg-raised);
  border-top: 1px solid var(--cx-border);
}

.cx-status-item {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: baseline;
  gap: calc(0.35 * var(--cx-rem));
  white-space: nowrap;
}

.cx-status-item__label {
  font-size: var(--cx-step--2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cx-status-item__value {
  font-family: var(--cx-mono);
  font-variant-numeric: slashed-zero tabular-nums;
  color: var(--cx-text-dim);
}

/* ---- tabs: words with an accent rule under the chosen one --------------- */
.cx-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  box-shadow: 0 -1px var(--cx-border) inset;
}

.cx-tab,
button.cx-tab {
  padding: 8px 16px 7px;
  font: 400 var(--cx-step-0) / 1.4 var(--cx-sans);
  color: var(--cx-text-dim);
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
}

.cx-tab:hover {
  color: var(--cx-text);
}

.cx-tab[aria-selected='true'],
.cx-tab.is-active {
  color: var(--cx-text);
  border-bottom-color: var(--cx-accent);
}

.cx-tabpanel[hidden] {
  display: none;
}

/* A segmented control: two to five choices that share one frame. */
.cx-segmented {
  display: inline-flex;
  padding: 2px;
  background: var(--cx-bg-sunken);
  border: 1px solid var(--cx-border);
  border-radius: var(--cx-radius);
}

.cx-segmented > button,
.cx-segmented > label {
  padding: calc(0.22 * var(--cx-rem)) calc(0.6 * var(--cx-rem));
  font: 400 var(--cx-step--1) / 1.2 var(--cx-sans);
  color: var(--cx-text-dim);
  cursor: pointer;
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
}

.cx-segmented > [aria-pressed='true'],
.cx-segmented > .is-active,
.cx-segmented > :has(input:checked) {
  color: var(--cx-accent);
  background: var(--cx-bg-raised);
  border-color: var(--cx-border);
  box-shadow: var(--cx-shadow-1);
}

.cx-segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* ---- a note in the corner, with an optional progress bar ---------------- */
.cx-toast {
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  gap: calc(0.5 * var(--cx-rem));
  width: calc(24 * var(--cx-rem));
  max-width: calc(100vw - calc(2 * var(--cx-rem)));
  padding: calc(0.55 * var(--cx-rem)) calc(0.6 * var(--cx-rem)) calc(0.6 * var(--cx-rem));
  font-size: var(--cx-step--1);
  color: var(--cx-text);
  background: var(--cx-bg-raised);
  border: 1px solid var(--cx-border-strong);
  border-radius: var(--cx-radius);
  box-shadow: var(--cx-shadow-2);
}

.cx-toast__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: calc(0.35 * var(--cx-rem));
  min-width: 0;
}

.cx-toasts {
  position: fixed;
  right: calc(1 * var(--cx-rem));
  bottom: calc(1 * var(--cx-rem));
  z-index: 50;
  display: grid;
  gap: calc(0.5 * var(--cx-rem));
}

.cx-progress {
  height: calc(0.3 * var(--cx-rem));
  overflow: hidden;
  background: var(--cx-bg-sunken);
  border-radius: 999px;
}

.cx-progress__fill {
  height: 100%;
  background: var(--cx-accent);
  border-radius: inherit;
  transition: width 200ms;
}

.cx-progress--indeterminate .cx-progress__fill {
  width: 35%;
  animation: cx-progress 1.2s ease-in-out infinite;
}

@keyframes cx-progress {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(300%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cx-progress--indeterminate .cx-progress__fill {
    animation: none;
  }

  .cx-control,
  .cx-tile,
  .cx-card {
    transition: none;
  }
}

/*
 * Data and state: from chromomap (js2264/chromomap, docs/ui.md §4, specs/63).
 *
 * Each colour means one thing. `--cx-family-*` is the kind of data a thing
 * carries (reads, alignments, a genome, a track, peaks…); `--cx-state-*` is
 * what a job is doing. Neither is ever the only cue: a family dot is drawn
 * beside its name, and its shape says one (●) or many (◆); a state has its
 * ring's shape and its word.
 */

/* An element says its family once, `data-family="reads"`, and its rules read
   `var(--cx-family)`. `any` is no family: the text colour, drawn hollow. */
[data-family='reads'] {
  --cx-family: var(--cx-family-reads);
}

[data-family='alignments'] {
  --cx-family: var(--cx-family-alignments);
}

[data-family='genome'] {
  --cx-family: var(--cx-family-genome);
}

[data-family='index'] {
  --cx-family: var(--cx-family-index);
}

[data-family='fragments'] {
  --cx-family: var(--cx-family-fragments);
}

[data-family='pairs'] {
  --cx-family: var(--cx-family-pairs);
}

[data-family='track'] {
  --cx-family: var(--cx-family-track);
}

[data-family='peaks'] {
  --cx-family: var(--cx-family-peaks);
}

[data-family='value'] {
  --cx-family: var(--cx-family-value);
}

[data-family='report'] {
  --cx-family: var(--cx-family-report);
}

[data-family='any'] {
  --cx-family: var(--cx-text);
}

/* ---- a family dot: ● one item, ◆ a collection, ○ any family ------------- */
.cx-dot {
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  vertical-align: 0.05em;
  background: var(--cx-family, var(--cx-text-dim));
  border-radius: 50%;
}

.cx-dot--many {
  width: 7px;
  height: 7px;
  border-radius: 1px;
  transform: rotate(45deg);
}

.cx-dot--any,
[data-family='any'].cx-dot,
[data-family='any'] > .cx-dot {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--cx-family, var(--cx-text));
}

/* A family named in words, its dot before it. */
.cx-family {
  display: inline-flex;
  align-items: center;
  gap: calc(0.35 * var(--cx-rem));
  font-size: var(--cx-step--1);
  white-space: nowrap;
}

/* ---- a state: a ring, and a chip with the word ------------------------- */
[data-state='running'] {
  --cx-state: var(--cx-state-running);
}

[data-state='done'] {
  --cx-state: var(--cx-state-done);
}

[data-state='cached'] {
  --cx-state: var(--cx-state-cached);
}

[data-state='stale'] {
  --cx-state: var(--cx-state-stale);
}

[data-state='failed'] {
  --cx-state: var(--cx-state-failed);
}

[data-state='queued'] {
  --cx-state: var(--cx-state-queued);
}

[data-state='never'] {
  --cx-state: var(--cx-state-never);
}

[data-state='bypassed'] {
  --cx-state: var(--cx-state-bypassed);
}

/* The ring says the state by its shape as well as its colour: done is a
   filled disc, cached a hollow ring, stale a dashed one, running an open arc
   that turns, failed a ring with a bar through it, queued a dotted ring. */
.cx-ring {
  position: relative;
  display: inline-block;
  flex: none;
  box-sizing: border-box;
  width: 12px;
  height: 12px;
  vertical-align: -0.1em;
  border: 2px solid var(--cx-state, var(--cx-text-dim));
  border-radius: 50%;
}

.cx-ring[data-state='done'] {
  background: var(--cx-state);
}

.cx-ring[data-state='stale'] {
  border-style: dashed;
}

.cx-ring[data-state='queued'],
.cx-ring[data-state='never'] {
  border-style: dotted;
}

.cx-ring[data-state='bypassed'] {
  border-width: 1.5px;
  opacity: 0.8;
}

.cx-ring[data-state='failed']::after {
  position: absolute;
  top: 50%;
  left: -2px;
  width: 12px;
  height: 2px;
  content: '';
  background: var(--cx-state);
  transform: translateY(-50%) rotate(-45deg);
}

.cx-ring[data-state='running'] {
  border-right-color: transparent;
  animation: cx-spin 0.9s linear infinite;
}

@keyframes cx-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cx-ring[data-state='running'] {
    animation: none;
  }
}

/* The chip: the state's word in a pill. Running's violet is a colour for
   graphics (3:1), short of the 4.5:1 a small word needs, so the running chip
   keeps it for its border and writes its word in the text colour. */
.cx-state {
  display: inline-flex;
  align-items: center;
  gap: calc(0.35 * var(--cx-rem));
  padding: calc(0.05 * var(--cx-rem)) calc(0.45 * var(--cx-rem)) calc(0.05 * var(--cx-rem)) calc(0.35 * var(--cx-rem));
  font: 500 var(--cx-step--2) / 1.5 var(--cx-sans);
  color: var(--cx-state, var(--cx-text-dim));
  white-space: nowrap;
  border: 1px solid var(--cx-state, var(--cx-border));
  border-radius: 999px;
}

.cx-state[data-state='running'],
.cx-state[data-state='queued'],
.cx-state[data-state='never'],
.cx-state[data-state='bypassed'] {
  color: var(--cx-text-dim);
}

.cx-state[data-state='running'] {
  color: var(--cx-text);
}

.cx-state .cx-ring {
  width: 10px;
  height: 10px;
  border-width: 1.5px;
}

/* ---- numbers: never broken from their unit ----------------------------- */
/* Pair with the formatter (dist/js/format.mjs), which joins a number and its
   unit with a no-break space; this keeps a whole readout on one line and its
   digits in columns. */
.cx-num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---- a focus ring for a box that cannot draw its own ------------------- */
/* A box that fades its edges with `mask-image` hides its own outline; its
   wrapper draws the ring while the keyboard is inside. */
.cx-focus-ring {
  min-width: 0;
  border-radius: var(--cx-radius);
}

.cx-focus-ring:has(> :focus-visible) {
  outline: 2px solid var(--cx-accent);
  outline-offset: 2px;
}

.cx-focus-ring > :focus-visible {
  outline: none;
}

/* ---- a resize edge the keyboard can move ------------------------------- */
/* WCAG 2.5.7: every drag has a keyboard alternative. A splitter is a
   focusable `role="separator"` the arrow keys move; this is its look. */
.cx-splitter {
  position: relative;
  flex: none;
  width: 6px;
  cursor: col-resize;
  background: transparent;
  touch-action: none;
}

.cx-splitter[aria-orientation='horizontal'] {
  width: auto;
  height: 6px;
  cursor: row-resize;
}

.cx-splitter::after {
  position: absolute;
  inset: 0 2px;
  content: '';
  background: var(--cx-border);
  border-radius: 999px;
  opacity: 0;
  transition: opacity 120ms;
}

.cx-splitter[aria-orientation='horizontal']::after {
  inset: 2px 0;
}

.cx-splitter:hover::after,
.cx-splitter:focus-visible::after,
.cx-splitter.is-dragging::after {
  background: var(--cx-accent);
  opacity: 1;
}

.cx-splitter:focus-visible {
  outline: none;
}
