/* NeuraLoc brand for the Zensical theme: plain, fonts served from this site (not from Google). */

@font-face {
  font-family: "Instrument Sans";
  src: url("../assets/fonts/instrument-sans/InstrumentSans-VF.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../assets/fonts/instrument-sans/InstrumentSans-Italic-VF.woff") format("woff");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/ibm-plex-mono/IBMPlexMono-Regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/ibm-plex-mono/IBMPlexMono-Medium.woff") format("woff");
  font-weight: 500 700;
  font-display: swap;
}

:root {
  --md-text-font: "Instrument Sans";
  --md-code-font: "IBM Plex Mono";
  --md-text-font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --md-code-font-family: "IBM Plex Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --nl-navy: #102e68;
  --nl-blue: #2563eb;
  --nl-radius: 8px;
}

[data-md-color-primary="custom"] {
  --md-primary-fg-color: #102e68;
  --md-primary-fg-color--light: #2d4c8c;
  --md-primary-fg-color--dark: #0a1f4a;
  --md-primary-bg-color: #ffffff;
  --md-primary-bg-color--light: rgba(255, 255, 255, 0.7);
}
[data-md-color-accent="custom"] {
  --md-accent-fg-color: #2563eb;
  --md-accent-fg-color--transparent: rgba(37, 99, 235, 0.1);
  --md-accent-bg-color: #ffffff;
  --md-accent-bg-color--light: rgba(255, 255, 255, 0.7);
}
[data-md-color-scheme="default"] {
  --md-typeset-a-color: #2563eb;
  --nl-heading: #102e68;
  --nl-surface: #f5f7fb;
  --nl-border: #e5e7eb;
  --nl-ok: #059669;
  --nl-warn: #b45309;
  --nl-alert: #dc2626;
}
[data-md-color-scheme="slate"] {
  --md-hue: 222;
  --md-default-bg-color: #0b1220;
  --md-typeset-a-color: #7aa7ff;
  --md-accent-fg-color: #7aa7ff;
  --nl-heading: #f3f6fc;
  --nl-surface: #111a2e;
  --nl-border: #1f2a44;
  --nl-ok: #34d399;
  --nl-warn: #fbbf24;
  --nl-alert: #f87171;
}

/* Typography */
.md-typeset h1, .md-typeset h2, .md-typeset h3 { color: var(--nl-heading); letter-spacing: normal; }
.md-typeset h1 { font-weight: 700; }
.md-typeset h2 { font-weight: 600; }
.md-typeset h3 { font-weight: 600; }

/* Header: logo and the label "Docs" (the site name stays in page titles) */
.md-header__button.md-logo img { height: 1.5rem; width: auto; }
[data-md-color-scheme="slate"] .md-header__button.md-logo img { filter: brightness(0) invert(1); }
.md-header__title .md-header__topic:first-child .md-ellipsis { font-size: 0; }
.md-header__title .md-header__topic:first-child .md-ellipsis::before { content: "Docs"; font-size: 0.9rem; font-weight: 600; }
@media screen and (max-width: 76.2344em) {
  .md-header__button[for="__drawer"] { order: -1; }
  .md-header__button.md-logo { display: inline-block; }
  .md-header__button.md-logo img { height: 1.15rem; }
}

/* Tables */
.md-typeset table:not([class]) { border: 1px solid var(--nl-border); border-radius: var(--nl-radius); box-shadow: none; overflow: hidden; }
.md-typeset table:not([class]) th { background: var(--nl-surface); color: var(--nl-heading); font-weight: 600; }
.md-typeset table:not([class]) td:first-child { font-weight: 600; }

/* Callouts in the brand blue */
.md-typeset .admonition.info, .md-typeset details.info { border-color: var(--nl-blue); background-color: rgba(37, 99, 235, 0.05); }
.md-typeset .info > .admonition-title, .md-typeset .info > summary { background-color: transparent; }
.md-typeset .info > .admonition-title::before, .md-typeset .info > summary::before { background-color: var(--nl-blue); }

/* Status words in the dashboard's colors */
.md-typeset .nl-ok, .md-typeset .nl-warn, .md-typeset .nl-alert { font-weight: 600; }
.md-typeset .nl-ok { color: var(--nl-ok); }
.md-typeset .nl-warn { color: var(--nl-warn); }
.md-typeset .nl-alert { color: var(--nl-alert); }

/* Images */
.md-typeset img.nl-map, .md-typeset figure img { border: 1px solid var(--nl-border); border-radius: var(--nl-radius); }
.md-typeset figcaption { color: var(--md-default-fg-color--light); font-size: 0.7rem; max-width: none; }

/* Footer: support address next to the copyright line, with space between */
.md-copyright .nl-support { margin-left: 2.4rem; }
@media screen and (max-width: 44.984375em) {
  .md-copyright .nl-support { display: block; margin: 0.4rem 0 0; }
}

/* Entry cards on the home page */
.md-typeset .grid.nl-two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }
.md-typeset .grid.cards > ul > li { position: relative; border-color: var(--nl-border); border-radius: var(--nl-radius); }
.md-typeset .grid.cards > ul > li:hover { border-color: var(--nl-blue); box-shadow: none; }
.md-typeset .grid.cards a { text-decoration: none; }
/* The whole card is clickable: its one link covers the card */
.md-typeset .grid.cards a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
