/* Graphite (#1986, the owner's choice, variant E): the page, its header, tabs and footer in greys, links in the
   text color, underlined. The only color is inside the terminals: the prompt blue, option values amber, ✓ green and
   ✗ red, on a neutral graphite panel. Terminal look reused from the wasp-idp docs. */
:root {
  --doc-page: #ffffff;
  --doc-text: #1d2025;
  --doc-heading: #1d2025;
  --doc-muted: #6b7079;
  --doc-rule: #e3e5e8;
  --doc-code-bg: #f3f4f6;

  /* The terminal panel, the same graphite in both themes but deeper on a dark page. */
  --doc-ink: #1f2328;
  --doc-ink-line: #2f343b;
  --doc-ink-fg: #e8eaed;
  --doc-ink-muted: #9aa0a8;
  --doc-ink-bar: #23272c;
  --doc-ink-hl: #ffffff14;
  --doc-ink-hl-soft: #ffffff0a;

  /* Callouts only: a warning stays amber, the rest are grey. */
  --doc-warn: #9a6700;
  --doc-err: #b42318;

}

/* Every token built from another lives here, so the dark scheme's values reach it. */
[data-md-color-scheme] {
  --doc-link: var(--doc-text);
  --doc-code-fg: var(--doc-text);
  --doc-code-border: var(--doc-rule);
  --md-primary-fg-color: var(--doc-page);
  --md-primary-fg-color--light: var(--doc-rule);
  --md-primary-fg-color--dark: var(--doc-page);
  --md-primary-bg-color: var(--doc-text);
  --md-primary-bg-color--light: var(--doc-muted);
  --md-footer-bg-color: var(--doc-page);
  --md-footer-bg-color--dark: var(--doc-page);
  --md-footer-fg-color: var(--doc-text);
  --md-footer-fg-color--light: var(--doc-muted);
  --md-footer-fg-color--lighter: var(--doc-muted);
  --md-default-bg-color: var(--doc-page);
  --md-typeset-color: var(--doc-text);
  --md-default-fg-color--light: var(--doc-muted);
  --md-default-fg-color--lightest: var(--doc-rule);
  --md-accent-fg-color: var(--doc-link);
  --md-typeset-a-color: var(--doc-link);
}

[data-md-color-scheme="slate"] {
  --md-hue: 216;
  --md-default-bg-color--light: var(--doc-code-bg);
  --md-code-bg-color: var(--doc-ink);
  --doc-page: #141619;
  --doc-text: #e6e8eb;
  --doc-heading: #f2f3f5;
  --doc-muted: #9aa0a8;
  --doc-rule: #2a2e34;
  --doc-code-bg: #1c1f23;
  --doc-ink: #0e1012;
  --doc-warn: #e5c07b;
  --doc-err: #ff8a80;
}

/* The header, its tabs and the footer are the page itself; a hairline sets them apart. */
.md-header,
.md-tabs {
  color: var(--doc-text);
  background: var(--doc-page);
  border-bottom: 1px solid var(--doc-rule);
  box-shadow: none;
}

.md-search__form {
  background: var(--doc-code-bg);
}

.md-footer,
.md-footer-meta {
  background: var(--doc-page);
  border-top: 1px solid var(--doc-rule);
}

.md-typeset a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

.md-typeset a.headerlink,
.md-typeset a.md-button,
.md-typeset .grid.cards a {
  text-decoration: none;
}

.md-nav__link--active,
.md-nav__item .md-nav__link--active {
  color: var(--doc-link);
  font-weight: 700;
}

/* Headings: bold, so the page structure reads at a glance; a hairline above each section. */
.md-typeset h1,
.md-typeset h2,
.md-typeset h3 {
  color: var(--doc-heading);
  font-weight: 700;
}

.md-typeset h1 {
  font-weight: 800;
  letter-spacing: -.01em;
}

.md-typeset h2 {
  border-top: 1px solid var(--md-default-fg-color--lightest);
  padding-top: 1.2em;
}

.md-typeset strong {
  color: var(--doc-heading);
  font-weight: 700;
}

/* Inline code: a chip, apart from the prose. */
.md-typeset :not(pre) > code {
  color: var(--doc-code-fg);
  background: var(--doc-code-bg);
  border: 1px solid var(--doc-code-border);
  border-radius: 5px;
  padding: .05em .35em;
}

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

.md-typeset table:not([class]) {
  font-size: .72rem;
}

.md-typeset table:not([class]) th {
  color: var(--doc-heading);
  font-weight: 700;
}

.md-typeset .admonition,
.md-typeset details {
  font-size: .8rem;
}

/* Terminals: the ink panel in both themes, with a blue rule on the left. Every code block is one. */
:root {
  --t-prompt: #4a9ef4;
  --t-cmd: #ffffff;
  --t-arg: #e6edf6;
  --t-opt: #7cc4ff;
  --t-val: #e5c07b;
  --t-op: #6b7a8d;
  --t-comment: #6b7a8d;
  --t-kw: #7cc4ff;
  --t-ok: #7ee787;
  --t-err: #ff7b72;
  --t-info: #9fb3c8;
}

.md-typeset .highlight {
  --md-code-bg-color: var(--doc-ink);
  --md-code-fg-color: var(--doc-ink-fg);
  --md-code-bg-color--light: var(--doc-ink-hl);
  --md-code-bg-color--lighter: var(--doc-ink-hl-soft);
  margin-top: .5em;
  margin-bottom: 2em;
}

.md-typeset p:has(+ .highlight) {
  margin-bottom: 0;
}

.md-typeset .highlight > pre,
.md-typeset .highlight > .filename {
  margin-top: 0;
  margin-bottom: 0;
}

.md-typeset .highlight pre > code {
  color: var(--doc-ink-fg);
  background: var(--doc-ink);
  border: 1px solid var(--doc-ink-line);
  border-radius: 8px;
  font-size: .9em;
}

.md-typeset .highlight .md-clipboard {
  color: var(--doc-ink-muted);
}

.md-typeset .highlight .md-clipboard:hover {
  color: var(--t-prompt);
}

/* A file name above a block (`title="..."`): the bar of the same terminal. */
.md-typeset .highlight > .filename {
  color: var(--doc-ink-muted);
  background: var(--doc-ink-bar);
  border: 1px solid var(--doc-ink-line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  font-size: .64rem;
  font-weight: 700;
}

.md-typeset .highlight > .filename + pre > code {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* Syntax colors of YAML and other files, kept to the terminal palette. */
.md-typeset .highlight :is(.nt, .na, .k, .kd, .nb) { color: var(--t-opt); }
.md-typeset .highlight :is(.s, .s1, .s2, .l, .m, .mi, .kc) { color: var(--t-val); }
.md-typeset .highlight :is(.c, .c1, .cm) { color: var(--t-comment); font-style: italic; }
.md-typeset .highlight :is(.p, .o, .w) { color: var(--t-op); }
.md-typeset .highlight .l.l-Scalar.l-Scalar-Plain { color: var(--t-arg); }

/* Terminal look (javascripts/terminal.js): no `$ ` before a command (owner, 2026-11-20), so what is shown is what is
   copied. Here-document lines: the `> ` bash shows while reading them. Not copied. */
.md-typeset .t-heredoc::before {
  content: "> ";
  color: var(--t-op);
  user-select: none;
}

.md-typeset .t-cmd { color: var(--t-cmd); }
.md-typeset .t-kw { color: var(--t-kw); font-weight: 700; }
.md-typeset .t-key { color: var(--t-cmd); font-weight: 700; }
.md-typeset .t-arg { color: var(--t-arg); }
.md-typeset .t-opt { color: var(--t-opt); }
.md-typeset .t-val { color: var(--t-val); }
.md-typeset .t-op { color: var(--t-op); }
.md-typeset .t-comment { color: var(--t-comment); font-style: italic; }
.md-typeset .t-ok { color: var(--t-ok); }
.md-typeset .t-err { color: var(--t-err); }
.md-typeset .t-info { color: var(--t-info); }

/* A command followed by its output reads as one terminal: the output continues the command panel after a
   blank line, without its own label nor copy button (the copy button keeps copying the commands only).
   On narrow screens Material puts the block margin on the .highlight div (full bleed), not on the pre:
   both go to zero, or a band of page background splits the terminal on phones. */
.md-typeset .highlight.language-bash:has(+ .highlight.output),
.md-typeset .highlight.language-bash:has(+ .highlight.output) pre {
  margin-bottom: 0;
}

/* A command never breaks mid-line (owner, 2026-11-20): a long one scrolls sideways, as its output does, with no
   visible scrollbar, so no bar sits between the command and the output. */
.md-typeset .highlight.language-bash:has(+ .highlight.output) pre > code {
  border-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  padding-bottom: 0;
  white-space: pre;
  overflow-x: auto;
  scrollbar-width: none;
}

.md-typeset .highlight.language-bash:has(+ .highlight.output) pre > code::-webkit-scrollbar {
  display: none;
}

.md-typeset .highlight.language-bash + .highlight.output {
  margin-top: 0;
}

.md-typeset .highlight.language-bash + .highlight.output > .filename,
.md-typeset .highlight.language-bash + .highlight.output .md-clipboard,
.md-typeset .highlight.language-bash + .highlight.output .md-code__nav {
  display: none;
}

.md-typeset .highlight.output pre > code {
  color: var(--doc-ink-muted);
}

.md-typeset .highlight.language-bash + .highlight.output pre > code {
  border-top: 0;
  border-radius: 0 0 8px 8px;
  padding-top: 1.2em;
}

/* Home: one lead line and the entry cards, no page title. Plain text, one key phrase per card. */
.md-typeset h1.home-title {
  margin-bottom: 0;
}

/* Home's one action, in the page's own ink: a solid button, the only one on the site. */
.md-typeset .md-button {
  color: var(--doc-text);
  border-color: var(--doc-text);
  border-radius: 6px;
}

.md-typeset .md-button--primary {
  color: var(--doc-page);
  background: var(--doc-text);
}

.md-typeset .md-button:is(:hover, :focus) {
  color: var(--doc-page);
  background: var(--doc-muted);
  border-color: var(--doc-muted);
}

.md-typeset p.home-lead {
  max-width: 40rem;
  margin: 1.2rem 0 0;
  font-size: .9rem;
  color: var(--md-default-fg-color--light);
}

.md-typeset p.home-lead strong,
.md-typeset .grid.cards.home-cards > ul > li > p:not(:first-child) strong {
  color: var(--doc-heading);
  font-weight: 600;
}

/* The list is the grid (below): the wrapper is a block, so the cards sit side by side on a computer, one column on a phone. */
.md-typeset .grid.cards.home-cards {
  display: block;
  margin-top: 1.6rem;
}

.md-typeset .grid.cards.home-cards > ul > li {
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.2rem 1rem;
  border: 1px solid var(--doc-code-border);
  border-radius: .4rem;
  background: var(--md-default-bg-color--light, transparent);
  box-shadow: none;
  transition: border-color 150ms ease;
}

.md-typeset .grid.cards.home-cards > ul > li:hover,
.md-typeset .grid.cards.home-cards > ul > li:focus-within {
  border-color: var(--doc-link);
  box-shadow: none;
}

.md-typeset .grid.cards.home-cards > ul > li > p:first-child {
  margin: 0 0 .5rem;
  font-size: 1rem;
}

.md-typeset .grid.cards.home-cards > ul > li > p {
  margin: 0;
  color: var(--md-default-fg-color--light);
}

@media (prefers-reduced-motion: reduce) {
  .md-typeset .grid.cards.home-cards > ul > li {
    transition: none;
  }
}

/* Status chips (#1986): built, planned #n, idea; one class, the status as a second one. Never free text. */
.md-typeset .chip {
  display: inline-block;
  padding: .05em .55em;
  border: 1px solid currentcolor;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.5;
  vertical-align: .1em;
  white-space: nowrap;
}

.md-typeset .chip.built { color: var(--doc-text); }
.md-typeset .chip.planned { color: var(--doc-muted); border-style: dashed; }
.md-typeset .chip.idea { color: var(--doc-muted); border-style: dotted; }

/* The three callouts (note, warning, tip) on the tokens: blue, warning, ok. */
.md-typeset .admonition.note,
.md-typeset details.note { border-color: var(--doc-link); }
.md-typeset .note > .admonition-title,
.md-typeset .note > summary { background: color-mix(in srgb, var(--doc-link) 10%, transparent); }
.md-typeset .note > .admonition-title::before,
.md-typeset .note > summary::before { background-color: var(--doc-link); }

.md-typeset .admonition.warning,
.md-typeset details.warning { border-color: var(--doc-warn); }
.md-typeset .warning > .admonition-title,
.md-typeset .warning > summary { background: color-mix(in srgb, var(--doc-warn) 12%, transparent); }
.md-typeset .warning > .admonition-title::before,
.md-typeset .warning > summary::before { background-color: var(--doc-warn); }

.md-typeset .admonition.tip,
.md-typeset details.tip { border-color: var(--doc-muted); }
.md-typeset .tip > .admonition-title,
.md-typeset .tip > summary { background: color-mix(in srgb, var(--doc-muted) 10%, transparent); }
.md-typeset .tip > .admonition-title::before,
.md-typeset .tip > summary::before { background-color: var(--doc-muted); }

/* Diagrams: Mermaid on the page's colors; the caption is the italic line right below. */
.md-typeset .mermaid {
  margin: 1em 0 .3em;
  text-align: center;
}

.md-typeset .mermaid + p > em:only-child {
  color: var(--doc-muted);
  font-size: .75rem;
}

/* Home's cards: a grid of links, one column on a phone. */
.md-typeset .grid.cards > ul {
  margin-left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: .8rem;
  padding: 0;
}

.md-typeset .grid.cards > ul > li {
  margin: 0;
  padding: .8rem 1rem;
  list-style: none;
  border: 1px solid var(--doc-code-border);
  border-radius: 8px;
}

.md-typeset .grid.cards > ul > li:hover {
  border-color: var(--doc-link);
}

/* The AI row (docs/javascripts/ai.js): small buttons above the article. */
/* Aligned with the article: the same side margins as .md-content__inner. */
.doc-ai-row {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: .8rem .8rem 0;
}

@media screen and (min-width: 76.25em) {
  .doc-ai-row {
    margin: .8rem 1.2rem 0;
  }
}

.doc-ai-row button,
.doc-ai-row a {
  padding: .2em .7em;
  color: var(--doc-link);
  background: transparent;
  border: 1px solid var(--doc-code-border);
  border-radius: 6px;
  font-size: .65rem;
  cursor: pointer;
}

/* The example's Ask AI: a small labelled button under the example (after its output), apart from the copy icon. */
.md-typeset .doc-ai-example {
  display: block;
  margin: -1.4em 0 2em auto;
  padding: .15em .6em;
  color: var(--doc-muted);
  background: transparent;
  border: 1px solid var(--doc-rule);
  border-radius: 6px;
  font-size: .62rem;
  cursor: pointer;
}

.md-typeset .doc-ai-example:hover,
.md-typeset .doc-ai-example:focus-visible {
  color: var(--doc-text);
  border-color: var(--doc-muted);
}

.doc-ai-row button:hover,
.doc-ai-row a:hover {
  border-color: var(--doc-link);
}

/* Reader mode (docs/javascripts/reader.js): data-reader="on" on <html> leaves only the article, full width, 18px. */
[data-reader="on"] :is(.md-header, .md-tabs, .md-sidebar, .md-footer, .doc-ai-row) {
  display: none !important;
}

[data-reader="on"] .md-main__inner {
  margin: 0;
}

[data-reader="on"] .md-grid {
  max-width: 46rem;
}

[data-reader="on"] .md-content {
  max-width: none;
  margin: 0;
}

[data-reader="on"] .md-content__inner {
  /* Room at the top for the fixed A-, A+ and Exit reader buttons. */
  margin: 2.8rem .6rem .5rem;
}

[data-reader="on"] .md-typeset {
  font-size: calc(18px * var(--doc-font-scale, 1));
  line-height: 1.6;
}

/* Text size (docs/javascripts/font.js): A- and A+ scale the article's text; code scales with it (em). */
.md-typeset {
  font-size: calc(.8rem * var(--doc-font-scale, 1));
}

.doc-ai-row button:disabled,
.doc-reader-font button:disabled {
  opacity: .4;
  cursor: default;
}

/* In reader mode the row is hidden: the pair sits left of Exit reader. */
.doc-reader-font {
  display: none;
  position: fixed;
  top: .6rem;
  right: 7.2rem;
  z-index: 10;
  gap: .3rem;
}

[data-reader="on"] .doc-reader-font {
  display: flex;
}

.doc-reader-font button {
  padding: .3em .7em;
  color: var(--doc-ink-fg);
  background: var(--doc-ink);
  border: 1px solid var(--doc-ink-line);
  border-radius: 6px;
  font-size: .75rem;
}

.doc-reader-exit {
  position: fixed;
  top: .6rem;
  right: .6rem;
  z-index: 10;
  padding: .3em .8em;
  color: var(--doc-ink-fg);
  background: var(--doc-ink);
  border: 1px solid var(--doc-ink-line);
  border-radius: 6px;
  font-size: .75rem;
}

/* The front matter's status (built, stub...) is ours, not Material's page status: no icon in the nav. */
.md-nav .md-status {
  display: none;
}

/* The Nereus honeycomb (docs/assets/logo/honeycomb-mark.svg) is white: black on the light page. */
[data-md-color-scheme="default"] .md-logo img {
  filter: invert(1);
}

.md-header .md-logo img,
.md-nav__button.md-logo img {
  height: 1.4rem;
  width: auto;
}

/* On a phone a terminal runs edge to edge, square, as Material's own code blocks do (owner, 2026-11-20). */
@media screen and (max-width: 44.9375em) {
  .md-content__inner > .highlight {
    margin-right: -.8rem;
    margin-left: -.8rem;
  }

  .md-content__inner > .highlight pre > code,
  .md-content__inner > .highlight > .filename {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  [data-reader="on"] .md-content__inner > .highlight {
    margin-right: -.6rem;
    margin-left: -.6rem;
  }
}

/* The docs' diagrams (scripts/docs/diagrams): in the line of Red Hat's diagrams, on the tokens only.
   The wide drawing on a computer, the narrow one, in rows, on a phone. */
.md-typeset .diagram { margin: 2.4rem 0 0; padding: 0; width: 100%; max-width: none; }
.md-typeset .diagram svg { display: block; width: 100%; height: auto; }
.md-typeset .diagram .narrow { display: none; }
@media screen and (max-width: 44.984375em) {
  .md-typeset .diagram .wide { display: none; }
  .md-typeset .diagram .narrow { display: block; }
}
.rh text { font-family: var(--md-text-font-family, Inter), system-ui, sans-serif; font-size: 14px; }
.rh .zone, .rh .col, .rh .actor { fill: var(--doc-code-bg); }
.rh .card { fill: var(--doc-page); }
.rh .focus { fill: var(--doc-page); stroke: var(--doc-text); stroke-width: 1.75; }
.rh .dash { fill: none; stroke: var(--doc-muted); stroke-width: 1.5; stroke-dasharray: 6 4; }
.rh .ln { stroke: var(--doc-text); stroke-width: 1.25; fill: none; }
.rh .ah { fill: var(--doc-text); }
.rh .cyl { fill: var(--doc-page); stroke: var(--doc-text); stroke-width: 1.25; }
.rh .sep { stroke: var(--doc-muted); stroke-width: 1; opacity: .6; }
.rh .b { fill: var(--doc-text); font-weight: 600; font-size: 15px; }
.rh .h { fill: var(--doc-text); font-weight: 600; font-size: 20px; }
.rh .h2 { fill: var(--doc-text); font-weight: 600; font-size: 17px; }
.rh .s { fill: var(--doc-text); font-size: 13px; }
.rh .m { fill: var(--doc-muted); font-size: 13px; }
.rh .lbl { fill: var(--doc-text); font-style: italic; font-size: 13px; }
.rh .cap { fill: var(--doc-muted); font-size: 11px; font-weight: 600; letter-spacing: .14em; }
/* A diagram opens full screen on a click (docs/javascripts/diagram-zoom.js): the drawing as wide as the window. */
.md-typeset .diagram { cursor: zoom-in; }
.md-typeset .diagram.zoomed {
  position: fixed; inset: 0; z-index: 10; margin: 0; padding: 2rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--doc-page); overflow: auto; cursor: zoom-out;
}
.md-typeset .diagram.zoomed svg { width: min(96vw, 1600px); max-height: 92vh; }
.diagram-zoomed { overflow: hidden; }
