/* CueMol3 documentation -- colour palette and minimal style overrides. */

/* ------------------------------------------------------------------ *
 * Colour palette
 *
 * Derived from the CueMol3 icon, which is built from three colours:
 *   pale cyan  #f0ffff  HSB(180, 6%, 100%)  -> page background, desaturated
 *                                             to HSB(180, 3%, 100%) so it
 *                                             reads as white with a tint
 *   charcoal   #404046                      -> the icon disc
 *   base cyan  #269999  HSB(180, 75%, 60%)  -> the site's base colour
 *
 * Body links use a darker step of the same hue (#127575) because the base
 * colour alone does not reach 4.5:1 against the pale-cyan background.
 * The theme's palette is set to 'custom' so nothing here is overwritten.
 * ------------------------------------------------------------------ */

:root {
  --md-primary-fg-color:        #269999;
  --md-primary-fg-color--light: #49b8b8;
  --md-primary-fg-color--dark:  #177575;
  --md-primary-bg-color:        #ffffff;
  --md-primary-bg-color--light: #ffffffb3;

  --md-accent-fg-color:             #0a6666;
  --md-accent-fg-color--transparent: #0a66661a;
  --md-accent-bg-color:             #ffffff;
  --md-accent-bg-color--light:      #ffffffb3;
}

/* Light scheme: a lightly tinted version of the icon's pale cyan. */
[data-md-color-scheme="default"] {
  --md-default-bg-color: #f7ffff;
  --md-typeset-a-color: #127575;
  --md-footer-bg-color: #0f4747;
  --md-footer-bg-color--dark: #0a3535;
  /* Code blocks need to stay distinct from the tinted page background. */
  --md-code-bg-color: #ebf6f6;
}

/* Dark scheme: retint Material's slate greys to the same hue. */
[data-md-color-scheme="slate"] {
  --md-hue: 180deg;
  --md-typeset-a-color: #5ac7c7;
  --md-footer-bg-color: #0d1a1a;
  --md-footer-bg-color--dark: #081212;
}

/* ------------------------------------------------------------------ *
 * Component tweaks
 * ------------------------------------------------------------------ */

/* Keep the header logo readable at the theme's default 24px box. */
.md-header__button.md-logo img {
  height: 1.6rem;
  width: auto;
}

/* Reference tables (menu items etc.) read better without wrapped keywords. */
.md-typeset table:not([class]) th {
  white-space: nowrap;
}

/* Shortcut keys rendered by pymdownx.keys. */
.md-typeset kbd {
  white-space: nowrap;
}

/* "In development" badge used in the menu reference. */
.md-typeset .badge-wip {
  background-color: var(--md-accent-fg-color);
  border-radius: 0.2rem;
  color: var(--md-accent-bg-color);
  font-size: 0.64rem;
  font-weight: 700;
  padding: 0.05rem 0.3rem;
  vertical-align: 0.05rem;
  white-space: nowrap;
}
