/*
  The MidCarib website's colours (Slate and Sky, Slate Night) and fonts, applied to MkDocs Material.
  Dark (slate) is the default, as on the website.
*/
@import url("https://fonts.googleapis.com/css2?family=Ubuntu:wght@500;700&display=swap");

/* Light: Slate and Sky */
[data-md-color-scheme="default"] {
  --md-primary-fg-color: #FFFFFF;
  --md-primary-fg-color--light: #F8FAFC;
  --md-primary-fg-color--dark: #E2E8F0;
  --md-primary-bg-color: #0F172A;
  --md-primary-bg-color--light: #64748B;
  --md-accent-fg-color: #0369A1;
  --md-accent-fg-color--transparent: rgb(2 132 199 / 0.1);
  --md-default-fg-color: #0F172A;
  --md-default-fg-color--light: #64748B;
  --md-default-bg-color: #FFFFFF;
  --md-typeset-color: #0F172A;
  --md-typeset-a-color: #0284C7;
  --md-footer-bg-color: #0F172A;
  --md-footer-bg-color--dark: #0B1222;
}

/* Dark: Slate Night */
[data-md-color-scheme="slate"] {
  --md-hue: 222;
  --md-primary-fg-color: #0B1222;
  --md-primary-fg-color--light: #1E293B;
  --md-primary-fg-color--dark: #0B1222;
  --md-primary-bg-color: #F8FAFC;
  --md-primary-bg-color--light: #94A3B8;
  --md-accent-fg-color: #7DD3FC;
  --md-accent-fg-color--transparent: rgb(56 189 248 / 0.1);
  --md-default-fg-color: #E2E8F0;
  --md-default-fg-color--light: #94A3B8;
  --md-default-fg-color--lighter: rgb(148 163 184 / 0.5);
  --md-default-bg-color: #0F172A;
  --md-code-bg-color: #1E293B;
  --md-typeset-color: #E2E8F0;
  --md-typeset-a-color: #38BDF8;
  --md-footer-bg-color: #0B1222;
  --md-footer-bg-color--dark: #070C17;
}

/* Header: a thin line underneath, as on the website */
.md-header {
  border-bottom: 1px solid #E2E8F0;
  box-shadow: none;
}
[data-md-color-scheme="slate"] .md-header {
  border-bottom-color: #1E293B;
}

/* The logo is the full wordmark, so it stands in for the site name */
.md-header__button.md-logo img {
  height: 2rem;
  width: auto;
}
[data-md-color-scheme="slate"] .md-header__button.md-logo img {
  content: url("../assets/logo-dark.png");
}
.md-header__title .md-header__topic:first-child {
  visibility: hidden;
}
.md-nav__title .md-nav__button.md-logo img {
  height: 2.4rem;
  width: auto;
}
[data-md-color-scheme="slate"] .md-nav__button.md-logo img {
  content: url("../assets/logo-dark.png");
}

/* Headings in Ubuntu, as on the website */
.md-typeset h1,
.md-typeset h2,
.md-typeset h3 {
  font-family: "Ubuntu", var(--md-text-font-family), sans-serif;
  font-weight: 700;
  color: var(--md-default-fg-color);
  letter-spacing: 0;
}

/* Tables: sky-blue header line */
.md-typeset table:not([class]) th {
  border-bottom: 2px solid var(--md-typeset-a-color);
}

/* Small flag before a FIR name */
.md-typeset img.flag {
  height: 0.9em;
  width: auto;
  border-radius: 2px;
  vertical-align: -0.05em;
  margin-right: 0.35em;
}

/* Show the logo on phones and tablets too, beside the menu button */
@media screen and (max-width: 76.234375em) {
  .md-header__button.md-logo {
    display: inline-block;
    margin-left: 0;
  }
  .md-header__button.md-logo img {
    height: 1.6rem;
  }
}

/* Keep callsigns on one line in tables */
.md-typeset table code {
  white-space: nowrap;
}

/* On phones the menu button comes first, then the logo */
@media screen and (max-width: 76.234375em) {
  .md-header__inner > label[for="__drawer"] {
    order: -1;
  }
}
