/* One brand across every doc site. Copied into content/<site>/assets/ by
   tools/sync.py, because MkDocs resolves extra_css inside docs_dir. */

:root {
  --nui-navy: #182037;
  --nui-navy-light: #2b3654;
  --nui-accent: #1f7ae0;
  --nui-rule: #e3e6ec;
}

[data-md-color-scheme="default"] {
  --md-primary-fg-color: var(--nui-navy);
  --md-primary-fg-color--light: var(--nui-navy-light);
  --md-primary-fg-color--dark: #0f1526;
  --md-accent-fg-color: var(--nui-accent);
  --md-typeset-a-color: #1257a8;
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color: var(--nui-navy);
  --md-primary-fg-color--light: var(--nui-navy-light);
  --md-primary-fg-color--dark: #0f1526;
  --md-accent-fg-color: #4d9bf0;
  --md-typeset-a-color: #6cb0f5;
}

.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  height: 1.4rem;
  width: auto;
}

/* These are reference docs, not prose: schema field tables, query-parameter
   tables, and curl examples all read badly wrapped. Material's 61rem default is
   tuned for paragraphs, so the content column gets more room. */
.md-grid {
  max-width: 68rem;
}

/* Schema pages are wide tables of field definitions. Let them use the width
   rather than wrapping every description column. */
.md-typeset table:not([class]) {
  display: table;
  width: 100%;
  font-size: 0.72rem;
}

.md-typeset table:not([class]) th {
  background-color: var(--md-default-fg-color--lightest);
}

.md-typeset table:not([class]) code {
  white-space: nowrap;
}

/* Provenance footer written by tools/transform.py. Text, never a link: the
   source repos are private and a GitHub link 404s for a public reader. */
.md-typeset hr + p em:only-child {
  color: var(--md-default-fg-color--light);
  font-size: 0.7rem;
}

/* The OpenAPI reference needs the full column width. */
.swagger-ui .info {
  margin: 1rem 0;
}
