* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light mode colors (now default) */
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f8f9fa;
    --text-primary: #333333;
    --text-secondary: #495057;
    --text-muted: #6c757d;
    --border-primary: #dee2e6;
    --border-secondary: #e9ecef;
    --accent-primary: #0d6efd;
    --accent-secondary: #007bff;
    --success: #198754;
    --warning: #fd7e14;
    --danger: #dc3545;
    --info: #0dcaf0;

    /* Enhanced colors for better visibility */
    --rating-color: #333333;  /* Black for ratings and synergy */
    --color-white: #333333;   /* Black for white cards */
    --color-blue: #333333;    /* Black for blue cards */
    --color-black: #333333;   /* Black for black cards */
    --color-red: #333333;     /* Black for red cards */
    --color-green: #333333;   /* Black for green cards */
    --color-multicolor: #333333; /* Black for multicolor cards */
    --color-colorless: #333333;  /* Black for colorless cards */
}

/* Theme toggle button - removed since we're always using light mode */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.4;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px;
}

/* Header styling */
header {
    background-color: var(--bg-secondary);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-primary);
    margin-bottom: 20px;
}

header h1 {
    margin: 0 0 6px 0;
    font-size: 2.2rem;
    color: var(--text-primary);
    font-weight: 700;
}

header p {
    margin: 0 0 15px 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

header p a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
}

header p a:hover {
    text-decoration: underline;
}

/* Navigation styling */
.main-nav {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-secondary);
}

.main-nav.subtle-nav {
    margin-bottom: 8px;
    padding: 4px 0;
    border-bottom: none;
    justify-content: flex-end;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--accent-primary);
    background-color: var(--bg-tertiary);
}

.nav-link.active {
    color: var(--accent-primary);
    background-color: var(--bg-tertiary);
    border: 1px solid var(--accent-primary);
}

.subtle-nav .nav-link {
    font-size: 0.9rem;
    padding: 4px 10px;
    color: var(--text-muted);
}

.subtle-nav .nav-link:hover {
    color: var(--text-secondary);
    background-color: transparent;
}

.subtle-nav .nav-link.active {
    color: var(--accent-primary);
    background-color: transparent;
    border: none;
    font-weight: 600;
}

/* Controls section - labels above selectors */
.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 0 20px;
}

/* Compact Top Controls Layout - Reorganized */
.top-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background-color: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.control-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-section h3 {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.set-selection {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.set-selection label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem;
    white-space: nowrap;
}

.set-selection select {
    padding: 8px 10px;
    border: 2px solid var(--border-primary);
    border-radius: 6px;
    font-size: 0.85rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.set-selection select:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.set-selection select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-secondary);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background-color: var(--accent-primary);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--accent-secondary);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-compare {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-compare:hover {
    background-color: var(--bg-secondary);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

.btn-pick {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-pick:hover {
    background-color: var(--bg-secondary);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

.btn-remove {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    min-width: 24px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-remove:hover {
    background-color: var(--bg-secondary);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

.deck-count {
    text-align: center;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}



.btn-danger {
    background: var(--danger);
    color: white;
    padding: 4px 8px;
    font-size: 0.75rem;
}

.btn-danger:hover {
    background: #e03131;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: var(--bg-secondary);
    margin: 5% auto;
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-primary);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.close {
    color: var(--text-muted);
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
}

.close:hover {
    color: var(--text-primary);
}

.search-container {
    margin-top: 15px;
}

#cardSearch {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-primary);
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 8px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#cardSearch:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(77, 171, 247, 0.25);
}

.search-results {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid var(--border-primary);
    border-radius: 4px;
    background: var(--bg-secondary);
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.search-result-item {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-secondary);
    transition: background-color 0.2s ease;
    font-size: 0.9rem;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.search-result-content {
    flex: 1;
    cursor: pointer;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
    align-items: center;
}

.card-name {
    font-weight: 600;
    color: var(--text-primary);
}

.card-rarity {
    color: var(--text-secondary);
    text-align: center;
}

.card-rating {
    color: var(--text-primary);
    text-align: center;
    font-weight: 500;
}

.search-result-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}



.search-result-item:last-child {
    border-bottom: none;
}

/* Color backgrounds for search result items - matching pick order table */
.search-result-item[data-color="W"] {
    background-color: rgba(248, 246, 224, 0.4);
}

.search-result-item[data-color="U"] {
    background-color: rgba(135, 206, 235, 0.25);
}

.search-result-item[data-color="B"] {
    background-color: rgba(64, 64, 64, 0.25);
}

.search-result-item[data-color="R"] {
    background-color: rgba(255, 107, 107, 0.25);
}

.search-result-item[data-color="G"] {
    background-color: rgba(144, 238, 144, 0.25);
}

.search-result-item[data-color="Multicolor"] {
    background-color: rgba(212, 175, 55, 0.3);
}

.search-result-item[data-color="Colorless"] {
    background-color: rgba(216, 216, 216, 0.4);
}

/* Card rarity colors - simplified abbreviations */
.rarity-common {
    color: var(--text-secondary);
    font-weight: 500;
}

.rarity-uncommon {
    color: var(--text-secondary);
    font-weight: 500;
}

.rarity-rare {
    color: var(--text-secondary);
    font-weight: 500;
}

.rarity-mythic {
    color: var(--text-secondary);
    font-weight: 500;
}

.rarity-special {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Color identity colors - black text */
.color-W {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.85rem;
}

.color-U {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.85rem;
}

.color-B {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.85rem;
}

.color-R {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.85rem;
}

.color-G {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.85rem;
}

.color-Multicolor {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.85rem;
}

.color-Colorless {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.85rem;
}

/* Row coloring based on color identity - stronger and more noticeable */
tr[data-color="W"] {
    background-color: rgba(248, 246, 224, 0.4);
}

tr[data-color="U"] {
    background-color: rgba(135, 206, 235, 0.25);
}

tr[data-color="B"] {
    background-color: rgba(64, 64, 64, 0.25);
}

tr[data-color="R"] {
    background-color: rgba(255, 107, 107, 0.25);
}

tr[data-color="G"] {
    background-color: rgba(144, 238, 144, 0.25);
}

tr[data-color="Multicolor"] {
    background-color: rgba(212, 175, 55, 0.3);
}

tr[data-color="Colorless"] {
    background-color: rgba(216, 216, 216, 0.4);
}



/* Rating styles - improved visibility */
.rating, .synergy {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}
.rating-high, .rating-medium, .rating-low, .synergy-positive, .synergy-negative {
    color: var(--text-primary);
}

/* Main layout and sections */
main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 20px;
}

section {
    background: var(--bg-secondary);
    border-radius: 6px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-primary);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

section h2 {
    margin-bottom: 12px;
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
}

/* Table styling - centered fields */
.table-container {
    overflow-x: auto;
    border-radius: 6px;
    border: 1px solid var(--border-primary);
    background: var(--bg-secondary);
    transition: border-color 0.3s ease;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-secondary);
    font-size: 0.85rem;
    transition: background-color 0.3s ease;
}

th, td {
    padding: 8px 10px;
    text-align: center;
    border-bottom: 1px solid var(--border-secondary);
    vertical-align: middle;
    transition: border-color 0.3s ease;
}

th {
    background-color: var(--bg-tertiary);
    font-weight: 600;
    color: var(--text-secondary);
    position: sticky;
    top: 0;
    border-bottom: 2px solid var(--border-primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}



/* Main content layout */
.main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: start;
}

/* Right column container for Compare and Deck sections */
.right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pick-order-section {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.deck-section {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
}

.compare-section {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.compare-section h2 {
    margin-bottom: 15px;
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
}

.deck-section h2 {
    margin-bottom: 15px;
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header {
        padding: 15px;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    /* Mobile navigation styling */
    .main-nav {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .nav-link {
        text-align: center;
        padding: 12px 16px;
        font-size: 1rem;
    }
    
    section {
        padding: 15px;
    }
    
    .top-controls {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .filters-compact {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .set-selection {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .collection-controls {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .filter-group {
        display: block;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .theme-toggle {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
    
    .theme-toggle svg {
        width: 20px;
        height: 20px;
    }
    
    /* Mobile-specific max-cards-select styling */
    .max-cards-select {
        width: 100%;
        font-size: 1rem;
        padding: 10px 12px;
    }
    
    /* Mobile about page styling */
    .about-content {
        padding: 15px;
    }
    
    .about-section h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .about-section p {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    /* Mobile academic styling */
    .about-content.academic-style {
        padding: 15px;
    }
    
    .abstract-section {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .abstract-section h2 {
        font-size: 1.4rem;
    }
    
    .abstract-text {
        font-size: 1rem;
        text-align: left;
    }
    
    .academic-style .about-section h2 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    .academic-style .about-section p {
        font-size: 1rem;
        text-align: left;
        margin-bottom: 15px;
    }
    
    .academic-references li {
        font-size: 1rem;
        margin-bottom: 15px;
        padding-left: 25px;
    }
    
    /* Mobile clean styling */
    .about-content.clean-style {
        padding: 15px;
    }
    
    .clean-style .about-section {
        margin-bottom: 25px;
    }
    
    .clean-style .about-section h2 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .clean-style .about-section p {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }
    
    .clean-style .references-list li {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    
    /* Mobile markdown styling */
    .about-content.markdown-style {
        padding: 15px;
    }
    
    .markdown-style .about-section {
        margin-bottom: 25px;
    }
    
    .markdown-style .about-section h2 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .markdown-style .about-section p {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }
    
    .markdown-style .references-list li {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
}

.filter-override-message {
    color: var(--accent-primary);
    font-style: italic;
    margin-top: 6px;
    font-size: 0.8rem;
    padding: 6px 10px;
    background-color: var(--bg-tertiary);
    border-left: 3px solid var(--accent-primary);
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

/* Style disabled checkboxes to show they're overridden */
.filters input[type="checkbox"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.filters input[type="checkbox"]:disabled + label {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Style for the max cards select dropdown */
.max-cards-select {
    padding: 8px 12px;
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.max-cards-select:hover {
    border-color: var(--accent-primary);
}

.max-cards-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
}

/* About page styling */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.about-content.clean-style {
    max-width: 900px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.about-content.academic-style {
    max-width: 900px;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.abstract-section {
    margin-bottom: 50px;
    padding: 30px;
    background-color: var(--bg-tertiary);
    border-left: 4px solid var(--accent-primary);
    border-radius: 0 8px 8px 0;
}

.abstract-section h2 {
    color: var(--text-primary);
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.abstract-text {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
    font-style: italic;
    margin: 0;
}

.about-section {
    margin-bottom: 40px;
}

.clean-style .about-section {
    margin-bottom: 35px;
    padding: 0;
    background: none;
    border: none;
}

.about-section h2 {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-primary);
}

.clean-style .about-section h2 {
    color: var(--text-primary);
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 18px;
    padding-bottom: 0;
    border-bottom: none;
}

.academic-style .about-section h2 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 3px solid var(--accent-primary);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.about-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.clean-style .about-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 14px;
    font-size: 1rem;
}

.academic-style .about-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 18px;
}

.about-section a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
}

.about-section a:hover {
    text-decoration: underline;
}

.clean-style .about-section a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
}

.clean-style .about-section a:hover {
    text-decoration: underline;
}

/* Markdown-style rendering - completely clean, minimal styling */
.about-content.markdown-style {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
}

.markdown-style .about-section {
    margin-bottom: 30px;
    padding: 0;
    background: none;
    border: none;
}

.markdown-style .about-section h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding: 0;
    border: none;
}

.markdown-style .about-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 16px 0;
    font-size: 1rem;
}

.markdown-style .about-section a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
}

.markdown-style .about-section a:hover {
    text-decoration: underline;
}

.markdown-style .references-list {
    margin: 0 0 0 20px;
}

.markdown-style .references-list li {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
    font-size: 1rem;
}

.markdown-style .references-list a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
}

.markdown-style .references-list a:hover {
    text-decoration: underline;
}

.academic-references {
    margin-left: 0;
    counter-reset: reference-counter;
}

.academic-references li {
    counter-increment: reference-counter;
    list-style: none;
    margin-bottom: 20px;
    padding-left: 30px;
    position: relative;
    font-size: 1.05rem;
    line-height: 1.8;
}

.academic-references li::before {
    content: "[" counter(reference-counter) "]";
    position: absolute;
    left: 0;
    font-weight: bold;
    color: var(--accent-primary);
}

.academic-references a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid var(--accent-primary);
    padding-bottom: 1px;
}

.academic-references a:hover {
    background-color: var(--accent-primary);
    color: white;
    padding: 2px 4px;
    margin: -2px -4px;
    border-radius: 3px;
}

.references-list {
    margin-left: 20px;
}

.clean-style .references-list {
    margin-left: 0;
}

.references-list li {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.clean-style .references-list li {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 1rem;
    list-style: decimal;
}
