@font-face {
  font-family: 'Roboto';
  src: url('webfonts/roboto-latin-wdth-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('webfonts/roboto-latin-wdth-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('webfonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('webfonts/jetbrains-mono-latin-wght-italic.woff2') format('woff2');
  font-weight: 100 800;
  font-style: italic;
  font-display: swap;
}

:root {
    --bg-primary: #ffffff;
    --text-primary: #31373d;
    --text-secondary: #6c757d;
    --navbar-bg: #343a40;
    --table-bg: #fafafa;
    --table-header-bg: #eee;
    --rule-color: #eee;
    --bs-code-color: #d66133;
}

html {
    scroll-padding-top: 60px;
}

.navbar-content {
    max-width: 1000px;
}

.main-content {
    max-width: 700px;
}

.toc-container {
    max-width: 300px;
}

.toc {
    position: sticky;
    top: 80px;
    overflow-y: auto;
    max-height: calc(100vh - 80px);
}

.toc a {
    text-decoration: none;
    color: inherit;
    font-size: 11pt;
    font-weight: 400;
    opacity: 50%;
    line-height: 1.2;
}

.toc a:hover,
.toc a.active {
    opacity: 100%;
}

.toctitle {
    font-weight: bold;
}

.toc ul {
    padding-left: 20px;
}

body {
    font-family: "Roboto", sans-serif;
}

h1 {
    font-weight: 900;
}

h2, h3, h4 {
    font-weight: 800;
}

h2 {
    border-top: 1px solid var(--rule-color);
    padding-top: 30px;
    margin-bottom: 20px;
    margin-top: 30px;
}

h3 {
    margin-top: 30px;
    margin-bottom: 20px;
}

code {
    font-family: "JetBrains Mono", monospace;
}

a {
    color: inherit;
}

table {
    background-color: var(--table-bg);
}

table th {
    background-color: var(--table-header-bg);
}

.table {
    --bs-table-bg: var(--table-bg);
    --bs-table-color: var(--text-primary);
}

.table th {
    --bs-table-bg: var(--table-header-bg);
}

.hljs-deletion,
.hljs-number,
.hljs-quote,
.hljs-selector-class,
.hljs-selector-id,
.hljs-string,
.hljs-template-tag,
.hljs-type,
.hljs-section,
.hljs-title {
    color: var(--bs-code-color);
}
