/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
/* Icons */
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

html,
body {
    font-family: 'Open Sans', sans-serif;
}

html.light {
    --sidebar-active: #6c2ec9;
    --sidebar-nonactive: #ededed;
    --sidebar-nonactive-focus: #e3e3e3;
    --links: #b93078;
}

html.ayu {
    --sidebar-active: #e39c42;
    --sidebar-nonactive: #5c6773;
    --sidebar-nonactive-focus: #4c5763;
}

html.coal {
    --sidebar-nonactive: #505254;
    --sidebar-nonactive-focus: #464749;
}

html.navy {
    --sidebar-nonactive: #505274;
    --sidebar-nonactive-focus: #444661;
}

html.rust {
    --sidebar-active: #d38c55;
    --sidebar-nonactive: #505254;
    --sidebar-nonactive-focus: #47494b;
}

.sidebar {
    z-index: 1;
}

.chapter li a {
    font-weight: bold;
}

a {
    text-decoration: none;
    position: relative;
}

a:hover {
    text-decoration: underline;
}

a:has(span.icon) {
    padding-left: 28px;
}

a span.icon {
    position: absolute;
    display: inline-block;
    padding-right: 3px;
    left: 0;
}

.content p img {
    border-radius: 10px;
    border: 1px solid var(--quote-border);
}

.table-wrapper table {
    width: 100%;
    text-align: left;
}

.chapter li.part-title {
    font-size: 16px;
}

.chapter li a {
    font-weight: normal;
}

.publication {
    margin: 0 !important;
    padding: 0 !important;
    list-style-type: none !important;
    font-size: 0;
}

.publication li {
    display: inline-block;
    padding: 0 !important;
    margin: 0 !important;
    width: 30%;
    vertical-align: top;
    line-height: normal;
}

.publication li {
    margin-right: 2% !important;
}

.publication li .title {
    font-size: 16px;
    padding: 10px 0 30px 0;
    font-weight: bold;
}

.publication li img {
    border-radius: 10px;
}

.chapter .chapter-item a:not(.toggle) {
    background-color: var(--sidebar-nonactive);
    display: block;
    padding: 5px 8px;
    padding-top: 4px;
    border-radius: 6px;
    width: 100%;
}

.chapter .chapter-item a:hover:not(.active):not(.toggle) {
    background-color: var(--sidebar-nonactive-focus);
    color: var(--sidebar-fg);
}

.chapter .chapter-item a.active:not(.toggle) {
    background-color: var(--sidebar-active);
    color: white;
}

.chapter .chapter-item a.toggle div {
    position: relative;
    top: 2px;
    left: 4px;
}

blockquote {
    border-radius: 6px;
    border: var(--quote-border);
    padding: 1px 20px;
}

blockquote code.hljs {
    background: var(--bg);
}

/* Hide Index */
.chapter strong,
.chapter>.chapter-item:first-child {
    display: none;
}

.chapter>.chapter-item:nth-child(2) {
    margin-top: -13px;
}
