/* Every page of the site. */

/* Inline code is a name, a value or a hash: split mid-word, it reads as two. On a wide
   screen it breaks only at a space, and a table cell grows to hold it; on a narrow one
   the theme's rule stands, which breaks anywhere rather than push the page sideways. */
@media screen and (min-width: 45em) {
  .md-typeset :not(pre) > code {
    word-break: normal;
    overflow-wrap: normal;
  }
}

/* The theme's color is the accent of libphash's site, so that the two read as one. Link
   text is a shade darker on the light scheme, where the accent itself is short of a 4.5:1
   contrast with white (4.4); on the dark scheme the links take the dark accent (5.4:1 on
   the dark background). */
:root,
[data-md-color-primary="custom"] {
  --md-primary-fg-color: #2a78d6;
  --md-primary-fg-color--light: #5a97e0;
  --md-primary-fg-color--dark: #1f5fae;
  --md-primary-bg-color: #ffffff;
  --md-primary-bg-color--light: #ffffffb3;
  --md-accent-fg-color: #1f5fae;
  --md-accent-fg-color--transparent: #2a78d61a;
  --md-accent-bg-color: #ffffff;
  --md-accent-bg-color--light: #ffffffb3;
  --md-typeset-a-color: #2470cc;
}

[data-md-color-scheme="slate"][data-md-color-primary="custom"] {
  --md-typeset-a-color: #3987e5;
  --md-accent-fg-color: #6aa6ee;
  --md-accent-fg-color--transparent: #3987e51a;
}
