/**************************
 * Custom CSS for documentation repositories
 *
 * Copyright (c) Epistemix Inc.
 * All rights reserved
 **************************/

:root, [data-md-color-scheme=default] {
  --color-blue: #285FDF;
  --color-light-blue: #6894FF;
  --color-background: #F3F3F7;
  --color-text: #3E404D;
  --color-dark-text: #000533;
  --color-border: #E1E4E5;
  --border-radius: 8px;
  --md-primary-fg-color: var(--color-light-blue);
  --md-typeset-a-color: var(--color-blue);
  --md-accent-fg-color: var(--color-light-blue);
}

/* Headline */
@font-face {
  font-family: "Epistemix Headline";
  src: url("https://epistemix-public.s3.amazonaws.com/webfonts/headline/epistemixheadline-medium-webfont.woff2")
      format("woff2"),
    url("https://epistemix-public.s3.amazonaws.com/webfonts/headline/epistemixheadline-medium-webfont.woff")
      format("woff");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Epistemix Headline";
  src: url("https://epistemix-public.s3.amazonaws.com/webfonts/headline/epistemixheadline-small-webfont.woff2")
      format("woff2"),
    url("https://epistemix-public.s3.amazonaws.com/webfonts/headline/epistemixheadline-small-webfont.woff")
      format("woff");
  font-weight: 400;
  font-style: normal;
}

/* Text */
@font-face {
  font-family: "Epistemix Text";
  src: url("https://epistemix-public.s3.amazonaws.com/webfonts/text/epistemixtext-light-webfont.woff2")
      format("woff2"),
    url("https://epistemix-public.s3.amazonaws.com/webfonts/text/epistemixtext-light-webfont.woff")
      format("woff");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Epistemix Text";
  src: url("https://epistemix-public.s3.amazonaws.com/webfonts/text/epistemixtext-lightitalic-webfont.woff2")
      format("woff2"),
    url("https://epistemix-public.s3.amazonaws.com/webfonts/text/epistemixtext-lightitalic-webfont.woff")
      format("woff");
  font-weight: 300;
  font-style: italic;
}

@font-face {
  font-family: "Epistemix Text";
  src: url("https://epistemix-public.s3.amazonaws.com/webfonts/text/epistemixtext-regularplus-webfont.woff2")
      format("woff2"),
    url("https://epistemix-public.s3.amazonaws.com/webfonts/text/epistemixtext-regularplus-webfont.woff")
      format("woff");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Epistemix Text";
  src: url("https://epistemix-public.s3.amazonaws.com/webfonts/text/epistemixtext-regularplusitalic-webfont.woff2")
      format("woff2"),
    url("https://epistemix-public.s3.amazonaws.com/webfonts/text/epistemixtext-regularplusitalic-webfont.woff")
      format("woff");
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: "Epistemix Text";
  src: url("https://epistemix-public.s3.amazonaws.com/webfonts/text/epistemixtext-medium-webfont.woff2")
      format("woff2"),
    url("https://epistemix-public.s3.amazonaws.com/webfonts/text/epistemixtext-medium-webfont.woff")
      format("woff");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Epistemix Text";
  src: url("https://epistemix-public.s3.amazonaws.com/webfonts/text/epistemixtext-mediumitalic-webfont.woff2")
      format("woff2"),
    url("https://epistemix-public.s3.amazonaws.com/webfonts/text/epistemixtext-mediumitalic-webfont.woff")
      format("woff");
  font-weight: 500;
  font-style: italic;
}

@font-face {
  font-family: "Epistemix Text";
  src: url("https://epistemix-public.s3.amazonaws.com/webfonts/text/epistemixtext-semibold-webfont.woff2")
      format("woff2"),
    url("https://epistemix-public.s3.amazonaws.com/webfonts/text/epistemixtext-semibold-webfont.woff")
      format("woff");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Epistemix Text";
  src: url("https://epistemix-public.s3.amazonaws.com/webfonts/text/epistemixtext-semibolditalic-webfont.woff2")
      format("woff2"),
    url("https://epistemix-public.s3.amazonaws.com/webfonts/text/epistemixtext-semibolditalic-webfont.woff")
      format("woff");
  font-weight: 600;
  font-style: italic;
}

/* Label */
@font-face {
  font-family: "Epistemix Label";
  src: url("https://epistemix-public.s3.amazonaws.com/webfonts/label/epistemixlabel-light-webfont.woff2")
      format("woff2"),
    url("https://epistemix-public.s3.amazonaws.com/webfonts/label/epistemixlabel-light-webfont.woff")
      format("woff");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Epistemix Label";
  src: url("https://epistemix-public.s3.amazonaws.com/webfonts/label/epistemixlabel-lightitalic-webfont.woff2")
      format("woff2"),
    url("https://epistemix-public.s3.amazonaws.com/webfonts/label/epistemixlabel-lightitalic-webfont.woff")
      format("woff");
  font-weight: 300;
  font-style: italic;
}

@font-face {
  font-family: "Epistemix Label";
  src: url("https://epistemix-public.s3.amazonaws.com/webfonts/label/epistemixlabel-regularplus-webfont.woff2")
      format("woff2"),
    url("https://epistemix-public.s3.amazonaws.com/webfonts/label/epistemixlabel-regularplus-webfont.woff")
      format("woff");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Epistemix Label";
  src: url("https://epistemix-public.s3.amazonaws.com/webfonts/label/epistemixlabel-regularplusitalic-webfont.woff2")
      format("woff2"),
    url("https://epistemix-public.s3.amazonaws.com/webfonts/label/epistemixlabel-regularplusitalic-webfont.woff")
      format("woff");
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: "Epistemix Label";
  src: url("https://epistemix-public.s3.amazonaws.com/webfonts/label/epistemixlabel-medium-webfont.woff2")
      format("woff2"),
    url("https://epistemix-public.s3.amazonaws.com/webfonts/label/epistemixlabel-medium-webfont.woff")
      format("woff");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Epistemix Label";
  src: url("https://epistemix-public.s3.amazonaws.com/webfonts/label/epistemixlabel-mediumitalic-webfont.woff2")
      format("woff2"),
    url("https://epistemix-public.s3.amazonaws.com/webfonts/label/epistemixlabel-mediumitalic-webfont.woff")
      format("woff");
  font-weight: 500;
  font-style: italic;
}

@font-face {
  font-family: "Epistemix Label";
  src: url("https://epistemix-public.s3.amazonaws.com/webfonts/label/epistemixlabel-semibold-webfont.woff2")
      format("woff2"),
    url("https://epistemix-public.s3.amazonaws.com/webfonts/label/epistemixlabel-semibold-webfont.woff")
      format("woff");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Epistemix Label";
  src: url("https://epistemix-public.s3.amazonaws.com/webfonts/label/epistemixlabel-semibolditalic-webfont.woff2")
      format("woff2"),
    url("https://epistemix-public.s3.amazonaws.com/webfonts/label/epistemixlabel-semibolditalic-webfont.woff")
      format("woff");
  font-weight: 600;
  font-style: italic;
}

/* Code */
@font-face {
  font-family: "Epistemix Code";
  src: url("https://epistemix-public.s3.amazonaws.com/webfonts/code/epistemixcode-light-webfont.woff2")
      format("woff2"),
    url("https://epistemix-public.s3.amazonaws.com/webfonts/code/epistemixcode-light-webfont.woff")
      format("woff");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Epistemix Code";
  src: url("https://epistemix-public.s3.amazonaws.com/webfonts/code/epistemixcode-lightitalic-webfont.woff2")
      format("woff2"),
    url("https://epistemix-public.s3.amazonaws.com/webfonts/code/epistemixcode-lightitalic-webfont.woff")
      format("woff");
  font-weight: 300;
  font-style: italic;
}

@font-face {
  font-family: "Epistemix Code";
  src: url("https://epistemix-public.s3.amazonaws.com/webfonts/code/epistemixcode-regularplus-webfont.woff2")
      format("woff2"),
    url("https://epistemix-public.s3.amazonaws.com/webfonts/code/epistemixcode-regularplus-webfont.woff")
      format("woff");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Epistemix Code";
  src: url("https://epistemix-public.s3.amazonaws.com/webfonts/code/epistemixcode-regularplusitalic-webfont.woff2")
      format("woff2"),
    url("https://epistemix-public.s3.amazonaws.com/webfonts/code/epistemixcode-regularplusitalic-webfont.woff")
      format("woff");
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: "Epistemix Code";
  src: url("https://epistemix-public.s3.amazonaws.com/webfonts/code/epistemixcode-medium-webfont.woff2")
      format("woff2"),
    url("https://epistemix-public.s3.amazonaws.com/webfonts/code/epistemixcode-medium-webfont.woff")
      format("woff");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Epistemix Code";
  src: url("https://epistemix-public.s3.amazonaws.com/webfonts/code/epistemixcode-mediumitalic-webfont.woff2")
      format("woff2"),
    url("https://epistemix-public.s3.amazonaws.com/webfonts/code/epistemixcode-mediumitalic-webfont.woff")
      format("woff");
  font-weight: 500;
  font-style: italic;
}

@font-face {
  font-family: "Epistemix Code";
  src: url("https://epistemix-public.s3.amazonaws.com/webfonts/code/epistemixcode-semibold-webfont.woff2")
      format("woff2"),
    url("https://epistemix-public.s3.amazonaws.com/webfonts/code/epistemixcode-semibold-webfont.woff")
      format("woff");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Epistemix Code";
  src: url("https://epistemix-public.s3.amazonaws.com/webfonts/code/epistemixcode-semibolditalic-webfont.woff2")
      format("woff2"),
    url("https://epistemix-public.s3.amazonaws.com/webfonts/code/epistemixcode-semibolditalic-webfont.woff")
      format("woff");
  font-weight: 600;
  font-style: italic;
}

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Epistemix Text", serif;
  font-weight: 400;
  background: var(--color-background);
  color: var(--color-text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h3, h4, h5, h6, legend {
  font-family: "Epistemix Text", serif;
  font-weight: 600;
  margin-bottom: 0.7em;
  margin-top: 2em;
}

.md-typeset h1 {
  font-family: "Epistemix Headline", serif;
  color: var(--color-blue);
  font-weight: 300;
}

.md-typeset h2 {
  font-family: "Epistemix Headline", serif;
  color: var(--color-blue);
  font-weight: 400;
}

.md-typeset h3 {
  color: #3e404d;
  font-weight: 600;
}

.md-typeset :is(h4, h5, h6, legend) {
  color: #697285;
}

p {
  font-family: "Epistemix Text", serif;
  line-height: 1.5;
}

.rst-content a,
.rst-content a:hover,
.rst-content a:visited {
  color: var(--color-blue);
}

.rst-content p a:not(.headerlink):hover {
  text-decoration: underline;
}

.rst-content li {
  margin: 12px 0 0 0;
}

.rst-content li:first-child {
  margin-top: 0;
}

input[type] {
  font-family: "Epistemix Label", sans-serif;
}

input[type]:focus {
  box-shadow: 0 6px 25px rgba(0, 5, 51, 0.2);
}

.md-typeset table:not([class]) {
  font-family: 'Epistemix Label', sans-serif;
  font-size: 15px;
  background: transparent;
  border: 0;
  border-collapse: collapse;
}

.md-typeset table thead {
  background: rgba(0, 5, 51, 0.12);
  color: var(--color-dark-text);
}

.md-typeset table:not([class]) :is(th, td) {
  padding: 10px 20px;
  background: transparent;
  border: 1px solid var(--color-border);
}

.md-typeset table:not([class]) tr:nth-child(odd) {
  background: transparent;
}

.md-typeset table:not([class]) tr:nth-child(even) {
  background: rgba(0, 5, 51, 0.03);
}

.md-typeset dt {
  font-weight: bold;
}

.md-typeset dd {
  margin-top: 5px;
}

/* Layout */
.md-header__title {
  font-family: 'Epistemix Headline';
  font-weight: 400;
  font-size: 22px;
}

.md-nav__title {
  display: none;
}

.md-sidebar {
  font-family: 'Epistemix Label', sans-serif;
}

/* Code */
.md-typeset .filename {
  font-weight: 600;
  color: #8532ae;
  background: rgba(126, 64, 241, 0.1);
}

.md-typeset code {
  font-family: "Epistemix Code", monospace;
  background: rgba(0, 5, 51, 0.06);
  color: var(--color-dark-text);
  border-radius: calc(var(--border-radius) / 2);
  border: 0;
}

.md-typeset pre code {
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: 0 3px 18px rgba(0, 5, 51, 0.08);
  border: 0;
  background: #F8F8F8;
}

/* Admonitions */
.md-typeset .admonition {
  font-size: 15px;
  line-height: 1.55em;
  border: 0;
  padding: 0 20px 5px;
  border-radius: var(--border-radius);
}

[dir=ltr] .md-typeset .admonition-title {
  font-family: 'Epistemix Label', serif;
  margin: 0 -20px;
  padding: 10px 20px;
  display: flex;
  gap: 5px;
  color: rgba(0, 5, 51, 0.6);
}

[dir=ltr] .md-typeset .admonition-title::before {
  position: relative;
  top: 0;
  left: 0;
  background: currentColor;
}

[dir=ltr] .md-typeset .admonition-title {
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
}

.md-typeset .admonition.note {
  background: rgba(104, 148, 255, 0.15)
}

.md-typeset .admonition.note .admonition-title {
  background: rgba(104, 148, 255, 0.2);
}

.md-typeset .admonition.warning {
  background: #FFEDCC;
}

.md-typeset .admonition.warning .admonition-title {
  background: #F0B37E;
}

.language-console .gp {
  color: black;
  font-weight: bold;
}
