/* Force light/white theme regardless of system preference */
:root {
    --background-color: #fff;
    --font-color: #151515;
    --invert-font-color: #fff;
    --primary-color: #1a95e0;
    --secondary-color: #727578;
    --error-color: #d20962;
    --progress-bar-background: #727578;
    --progress-bar-fill: #151515;
    --code-bg-color: #e8eff2;
    --page-width: 75em;
}

/* Style links */
a {
    color: #42a5f5;
}

a:hover {
    background-color: #42a5f5;
    color: #fff;
    text-decoration: none;
}


/* Publication list styling — reversed numbering (newest = highest number) */
/* Update counter-reset to (total_papers + 1) when adding new publications */
ol {
    counter-reset: item 8;
    margin: 0;
    padding: 0;
    padding-left: 2.5em;
}

ol li {
    list-style: none;
    margin-bottom: 1em;
    position: relative;
    padding-left: 0;
}

ol li::before {
    content: "[" counter(item) "]";
    counter-increment: item -1;
    font-weight: bold;
    position: absolute;
    left: -2.5em;
}

ol li::after {
    content: none;
}

ol li > p {
    display: inline;
    margin: 0;
}

/* Bibtex shortcode */
.bibtex-link {
    cursor: pointer;
    color: #42a5f5;
    display: inline;
    margin-left: 4px;
}

.bibtex-link:hover {
    background-color: #42a5f5;
    color: #fff;
    text-decoration: none;
}

.bibtex {
    margin-top: 10px;
}

.bibtex-header {
    margin: 10px 0;
    display: flex;
    gap: 10px;
}

.bibtex-btn {
    background: #fff;
    color: #000;
    border: 1px solid #000;
    padding: 5px 14px;
    cursor: pointer;
    font-family: monospace;
    font-size: 0.85em;
}

.bibtex-btn:hover {
    background: #eee;
}

.bibtex-code-box {
    background: #fff;
    border: 2px solid #000;
    border-radius: 8px;
    padding: 15px;
    margin: 8px 0;
}

.bibtex-code-box pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
    overflow-wrap: break-word;
    overflow: hidden;
}

.bibtex-code-box code {
    overflow: hidden !important;
    background-color: transparent;
}

.bibtex-code-box code::before,
.bibtex-code-box code::after {
    content: none;
}
