@font-face {
    font-family: 'JetBrains Mono';
    src: url('/font/JetBrainsMono-Regular.woff2') format('woff2'),
        url('/font/JetBrainsMono-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Raleway';
    src: url('/font/Raleway-Regular.woff2') format('woff2'),
        url('/font/Raleway-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

header {
    background: rgb(23, 162, 184) !important;
    border: none !important;
    padding-bottom: 2px;
}

header a {
    color: white !important;
}

body {
    font-family: sans-serif;
    color: rgba(43, 48, 59,.8);
    letter-spacing: 0.02rem !important;
}

body h1, h2, h3, h4, h5 {
    letter-spacing: 0.02rem !important;
}

h1 {
    color: rgba(43, 48, 59, 1) !important;
    font-size: 1.7rem !important;
}

h2 {
    color: rgba(43, 48, 59, .9) !important;
    font-size: 1.6rem !important;
    font-weight: 500 !important;
}

h3 {
    color: rgba(43, 48, 59, .8) !important;
    font-size: 1.4rem !important;
    font-weight: 300 !important;
}

h4 {
    color: rgba(43, 48, 59, .7) !important;
    font-size: 1.2rem !important;
    font-weight: 300 !important;
}

nav.subpages {
    position: inherit !important;
}

.searchbox input {
    height: 3rem !important;
    background-color: white !important;
}


/* sidebar */

article > aside {
    flex: 0 0 14em !important;
    border-left: 1px solid rgb(230, 236, 241);
    border-right: 1px solid rgb(230, 236, 241);
    background-color: rgb(245, 247, 249) !important;
}

article > aside .menu {
    padding-left: 12px !important;
}

article > aside .menu .dd-item {
    padding: 1px 0px 1px 16px;
    margin-top: 0px;
}

article > aside .menu .dd-item a {
    color: rgb(43, 48, 59, .9);
}
article > aside .menu .dd-item a:hover {
    color: #17a3b8;
}

article > aside .menu .dd-item.active {
    background-color: inherit;
}

article > aside .menu .dd-item.active > a {
    color: #17a3b8;
}

@media (max-width: 1160px) {
    body article aside {
        margin-right: 5px;
    }
}


/* ToC */

.right-menu {
    border-left: 1px solid #f5f7f9;
}

div.TableOfContents label {
    display: none !important;
}

div.TableOfContents {
    color: #f5f7f9 !important;
    margin-left: 30px;
}

div.TableOfContents a {
    color: rgba(43, 48, 59, .6) !important;
}

div.Actions {
    display: none !important;
}


/* code syntax highlighting */

code {
    font-family: 'JetBrains Mono';
    font-size: 90% !important;
    color: #ca473f; /* applies to inline code only */
}

.highlight pre {
    width: 95%;
    margin-left: 20px;
}

.highlight code {
    background-color: rgb(245, 247, 249) !important;
}


/* tabs */

.tabs > input[type=radio]:checked + label {
    border-bottom: 2px solid #17a3b8;
}


/* custom */
.lucid-code-expand {
    color: #ca473f;
    font-size: 90%;
    font-family: 'JetBrains Mono';
}
