/*
 * Exposure brand styling for the manuals, shared by every version folder (x7/, x8/, ...) through
 * theme.custom_dir. Values come from exposure.software's own stylesheet (Avada theme variables),
 * except the link colours, which are chosen to pass WCAG AA (4.5:1) against each scheme's page
 * background: the site's #0082d8 is only 4.05:1 on white, its #007ac9 primary is 4.54:1.
 */

/* Mulish, self-hosted like the main site. Google Fonts is unreachable from mainland China, so the
   manual must not depend on it (theme.font is false in mkdocs.yml). Variable fonts: one file covers
   weights 200-700. Licence: Mulish-OFL.txt beside the files. */
@font-face {
  font-family: "Mulish";
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url("../fonts/mulish-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Mulish";
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url("../fonts/mulish-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Mulish";
  font-style: italic;
  font-weight: 200 700;
  font-display: swap;
  src: url("../fonts/mulish-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Mulish";
  font-style: italic;
  font-weight: 200 700;
  font-display: swap;
  src: url("../fonts/mulish-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --md-text-font: "Mulish";
}

/* Light scheme: the site's charcoal header and near-black footer, its blue for links and accents. */
[data-md-color-scheme="default"] {
  --md-primary-fg-color: #232323;
  --md-primary-fg-color--light: #3a3a3a;
  --md-primary-fg-color--dark: #0f1215;
  --md-primary-bg-color: #ffffff;
  --md-accent-fg-color: #007ac9;
  --md-typeset-a-color: #007ac9;
  --md-typeset-color: #202020;
  --md-footer-bg-color: #232323;
  --md-footer-bg-color--dark: #0f1215;
}

/* Dark scheme: same header and footer; a lighter blue so links stay readable (5.88:1). */
[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #232323;
  --md-primary-fg-color--light: #3a3a3a;
  --md-primary-fg-color--dark: #0f1215;
  --md-primary-bg-color: #ffffff;
  --md-accent-fg-color: #4ea3e3;
  --md-typeset-a-color: #4ea3e3;
  --md-footer-bg-color: #232323;
  --md-footer-bg-color--dark: #0f1215;
}

/* The site sets headings light: h1 at weight 300, h2 and h3 at 400. */
.md-typeset h1 {
  font-weight: 300;
}
.md-typeset h2,
.md-typeset h3 {
  font-weight: 400;
}

/* The logo is a wide wordmark, not the square icon Material expects. */
.md-header__button.md-logo img {
  height: 1.8rem;
  width: auto;
}

/* Printing. Safari (WebKit) splits a table row across pages unless the table is a real table, not
   Material's scrolling inline-block, and cuts off a cell that is wider than its column. */
@media print {
  .md-typeset__scrollwrap,
  .md-typeset__table {
    overflow: visible;
  }

  .md-typeset table:not([class]) {
    display: table;
    overflow: visible;
  }

  .md-typeset tr {
    break-inside: avoid;
    page-break-inside: avoid; /* the older spelling, for Safari */
  }

  /* Tighter cells leave room for each shortcut on one line. */
  .md-typeset table:not([class]) th,
  .md-typeset table:not([class]) td {
    padding: 0.6em 0.75em;
  }

  .md-typeset .keys kbd {
    white-space: nowrap;
  }

  /* The markup has no space between keys, so give a long shortcut somewhere to wrap after a "+". */
  .md-typeset .keys > span::after {
    content: "\200B";
  }
}
