/* Colors derived from the project logo (docs/assets/images/logo.png):
   container blue #305484, chassis green #54A854, highlight blue #609CCC.
   Text-bearing values are adjusted for WCAG AA contrast against the
   scheme background, so they are not the raw logo values. */

:root {
  /* Container blue */
  --md-primary-fg-color: #305484;
  --md-primary-fg-color--light: #4878a8;
  --md-primary-fg-color--dark: #23405f;
  --md-primary-bg-color: #ffffff;
  --md-primary-bg-color--light: #ffffffb3;

  /* Chassis green */
  --md-accent-fg-color: #357f35;
  --md-accent-fg-color--transparent: #357f351a;
  --md-accent-bg-color: #ffffff;
  --md-accent-bg-color--light: #ffffffb3;

  /* Links: 6.5:1 on white */
  --md-typeset-a-color: #2c5f9e;
}

[data-md-color-scheme="slate"] {
  /* Lift the blue off the near-black background */
  --md-primary-fg-color: #4878a8;
  --md-primary-fg-color--light: #609ccc;
  --md-primary-fg-color--dark: #305484;

  /* Logo green, lightened for 9:1 on the slate background */
  --md-accent-fg-color: #6fc46f;
  --md-accent-fg-color--transparent: #6fc46f1a;
  --md-accent-bg-color: #000000de;
  --md-accent-bg-color--light: #0000008a;

  /* Links: 9.8:1 on slate */
  --md-typeset-a-color: #8cbde6;
}

/* Reference tables written with an empty header row -- "| | |" in Markdown --
   use the first column as the label, so there is nothing to put in a header.
   Markdown still emits an empty <thead>, which renders as a blank strip above
   the first row. Hide it, but only when every header cell is genuinely empty,
   so ordinary tables keep their headers. */
.md-typeset table:not([class]) thead:not(:has(th:not(:empty))) {
  display: none;
}
