/* ==========================================================================
CSS CUSTOM PROPERTIES — THREE-LAYER THEME SYSTEM
    Layer 1: Palette  (accent colors per data-palette)
    Layer 2: Mode     (light/dark surface colors per data-theme)
    Layer 3: Functional (backward-compatible semantic vars)
========================================================================== */

/* ── LAYER 1: PALETTE DEFAULTS ── */
:root {
    --palette-accent: #198754;
    --palette-glow: #03a9f4;
}

/* ── LAYER 2: MODE (Light default) ── */
:root {
    /* Typography */
    --font-family: 'Trebuchet MS', Helvetica, Arial, sans-serif;

    /* Layout */
    --table-width: 100%;
    --header-height: 28px;
    --row-height: 30px;
    --border-width: 1px;
    --font-size: 14px;
    --border-collapse: collapse;
    --cell-padding: 0.33em;
    --navbar-width: 100%;

    /* Mode surface colors — Light */
    --mode-body-bg: #202837;
    --mode-thead-bg: #212529;
    --mode-thead-text: #ffffff;
    --mode-text: #000000;
    --mode-border: #dddddd;
    --mode-text-hover: inherit;
    --mode-row-odd: #ffffff;
    --mode-row-even: #d9e1f2;

    /* Mode article colors — Light */
    --mode-article-text: #000000;
    --mode-article-header-bg: #212529;
    --mode-article-header-text: #ffffff;
    --mode-article-odd: #ffffff;
    --mode-article-even: #d9e1f2;
    --mode-article-link: #000000;
    --mode-article-link-hover: #333333;
}

/* ── LAYER 2: MODE (Dark) ── */
[data-theme="dark"] {
    --mode-body-bg: #202837;
    --mode-thead-bg: #212529;
    --mode-thead-text: #ffffff;
    --mode-text: #A0AEC0;
    --mode-border: #252C3B;
    --mode-text-hover: whitesmoke;
    --mode-row-odd: #2E3749;
    --mode-row-even: #1A202C;

    --mode-article-text: #A0AEC0;
    --mode-article-header-bg: #212529;
    --mode-article-header-text: #ffffff;
    --mode-article-odd: #2E3749;
    --mode-article-even: #1A202C;
    --mode-article-link: #A0AEC0;
    --mode-article-link-hover: #ffffff;
}

/* ── LAYER 3: FUNCTIONAL (backward-compatible names) ── */
:root {
    /* Surface */
    --body-bg: var(--mode-body-bg);
    --thead-bg: var(--mode-thead-bg);
    --thead-text: var(--mode-thead-text);
    --text-color: var(--mode-text);
    --border-color: var(--mode-border);
    --bold-text-color: var(--mode-text);
    --normal-text-color: var(--mode-text);
    --text-hover-color: var(--mode-text-hover);

    /* Highlight & fade — accent-driven */
    --highlight-bg: var(--palette-accent);
    --highlight-text: inherit;
    --fade-text-to: inherit;
    --fade-odd-from: var(--palette-accent);
    --fade-odd-to: var(--mode-row-odd);
    --fade-even-from: var(--palette-accent);
    --fade-even-to: var(--mode-row-even);

    /* Detail rows */
    --detail-even-bg: var(--mode-row-even);
    --detail-odd-bg: var(--mode-row-odd);

    /* Articles */
    --article-text-color: var(--mode-article-text);
    --article-header-bg: var(--mode-article-header-bg);
    --article-header-text: var(--mode-article-header-text);
    --article-odd-bg: var(--mode-article-odd);
    --article-even-bg: var(--mode-article-even);
    --article-link-color: var(--mode-article-link);
    --article-link-hover: var(--mode-article-link-hover);

    /* Container glow — palette-driven */
    --container-glow: var(--palette-glow);
}

/* ==========================================================================
PALETTE + MODE COMPOUND SELECTORS
Each palette defines its full color set for both light and dark modes.
========================================================================== */

/* ── Classic Green ── */
[data-palette="classic"][data-theme="light"] {
    --palette-accent:           #198754;
    --palette-glow:             #03a9f4;
    --mode-body-bg:             #202837;
    --mode-thead-bg:            #212529;
    --mode-thead-text:          #ffffff;
    --mode-text:                #000000;
    --mode-border:              #dddddd;
    --mode-text-hover:          inherit;
    --mode-row-odd:             #ffffff;
    --mode-row-even:            #d9e1f2;
    --mode-article-text:        #000000;
    --mode-article-header-bg:   #212529;
    --mode-article-header-text: #ffffff;
    --mode-article-odd:         #ffffff;
    --mode-article-even:        #d9e1f2;
    --mode-article-link:        #000000;
    --mode-article-link-hover:  #333333;
}
[data-palette="classic"][data-theme="dark"] {
    --palette-accent:           #198754;
    --palette-glow:             rgba(3, 169, 244, 0.25);
    --mode-body-bg:             #202837;
    --mode-thead-bg:            #212529;
    --mode-thead-text:          #ffffff;
    --mode-text:                #A0AEC0;
    --mode-border:              #252C3B;
    --mode-text-hover:          whitesmoke;
    --mode-row-odd:             #2E3749;
    --mode-row-even:            #1A202C;
    --mode-article-text:        #A0AEC0;
    --mode-article-header-bg:   #212529;
    --mode-article-header-text: #ffffff;
    --mode-article-odd:         #2E3749;
    --mode-article-even:        #1A202C;
    --mode-article-link:        #A0AEC0;
    --mode-article-link-hover:  whitesmoke;
    --highlight-bg:             rgba(74, 85, 104, 1);
    --fade-odd-from:            rgba(74, 85, 104, 1);
    --fade-even-from:           rgba(74, 85, 104, 1);
}

/* ── Ocean Blue ── */
[data-palette="ocean"][data-theme="light"] {
    --palette-accent:           #0d6efd;
    --palette-glow:             rgba(13, 110, 253, 0.25);
    --mode-body-bg:             #e8ecf8;
    --mode-thead-bg:            #1b3a5c;
    --mode-thead-text:          #e8f0fe;
    --mode-text:                #333333;
    --mode-border:              #bcc8e0;
    --mode-text-hover:          #0d6efd;
    --mode-row-odd:             #c8d4f0;
    --mode-row-even:            #e8ecf8;
    --mode-article-text:        #333333;
    --mode-article-header-bg:   #1b3a5c;
    --mode-article-header-text: #e8f0fe;
    --mode-article-odd:         #c8d4f0;
    --mode-article-even:        #e8ecf8;
    --mode-article-link:        #333333;
    --mode-article-link-hover:  #0d6efd;
    --highlight-bg:             rgba(13, 110, 253, 0.3);
    --fade-odd-from:            rgba(13, 110, 253, 0.3);
    --fade-even-from:           rgba(13, 110, 253, 0.3);
}
[data-palette="ocean"][data-theme="dark"] {
    --palette-accent:           #0d6efd;
    --palette-glow:             #0d6efd;
    --mode-body-bg:             #0d1b2a;
    --mode-thead-bg:            #132d4a;
    --mode-thead-text:          #c8ddf0;
    --mode-text:                #9db8d4;
    --mode-border:              #1a3350;
    --mode-text-hover:          whitesmoke;
    --mode-row-odd:             #162b42;
    --mode-row-even:            #112238;
    --mode-article-text:        #9db8d4;
    --mode-article-header-bg:   #132d4a;
    --mode-article-header-text: #c8ddf0;
    --mode-article-odd:         #162b42;
    --mode-article-even:        #112238;
    --mode-article-link:        #9db8d4;
    --mode-article-link-hover:  whitesmoke;
    --palette-glow:             rgba(13, 110, 253, 0.25);
    --highlight-bg:             rgba(13, 110, 253, 0.2);
    --fade-odd-from:            rgba(13, 110, 253, 0.2);
    --fade-even-from:           rgba(13, 110, 253, 0.2);
}

/* ── Amber ── */
[data-palette="amber"][data-theme="light"] {
    --palette-accent:           #d4920a;
    --palette-glow:             rgba(212, 146, 10, 0.25);
    --mode-body-bg:             #e8ddd0;
    --mode-thead-bg:            #5c4326;
    --mode-thead-text:          #f5e6d0;
    --mode-text:                #3d2b1a;
    --mode-border:              #d4c4a8;
    --mode-text-hover:          #b37400;
    --mode-row-odd:             #faf5ef;
    --mode-row-even:            #f0e8dc;
    --mode-article-text:        #3d2b1a;
    --mode-article-header-bg:   #5c4326;
    --mode-article-header-text: #f5e6d0;
    --mode-article-odd:         #faf5ef;
    --mode-article-even:        #f0e8dc;
    --mode-article-link:        #3d2b1a;
    --mode-article-link-hover:  #b37400;
    --highlight-bg:             rgba(212, 146, 10, 0.35);
    --fade-odd-from:            rgba(212, 146, 10, 0.35);
    --fade-even-from:           rgba(212, 146, 10, 0.35);
}
[data-palette="amber"][data-theme="dark"] {
    --palette-accent:           #d4920a;
    --palette-glow:             #d4920a;
    --mode-body-bg:             #1a1408;
    --mode-thead-bg:            #332408;
    --mode-thead-text:          #e8c878;
    --mode-text:                #c4a66a;
    --mode-border:              #2e2210;
    --mode-text-hover:          whitesmoke;
    --mode-row-odd:             #261c0a;
    --mode-row-even:            #1e1608;
    --mode-article-text:        #c4a66a;
    --mode-article-header-bg:   #332408;
    --mode-article-header-text: #e8c878;
    --mode-article-odd:         #261c0a;
    --mode-article-even:        #1e1608;
    --mode-article-link:        #c4a66a;
    --mode-article-link-hover:  whitesmoke;
    --palette-glow:             rgba(212, 146, 10, 0.25);
    --highlight-bg:             rgba(212, 146, 10, 0.2);
    --fade-odd-from:            rgba(212, 146, 10, 0.2);
    --fade-even-from:           rgba(212, 146, 10, 0.2);
}

/* ── High Contrast ── */
[data-palette="highcontrast"][data-theme="light"] {
    --palette-accent:           #6c757d;
    --palette-glow:             #6c757d;
    --mode-body-bg:             #d8d8d8;
    --mode-thead-bg:            #1a1a1a;
    --mode-thead-text:          #ffffff;
    --mode-text:                #0a0a0a;
    --mode-border:              #888888;
    --mode-text-hover:          #000000;
    --mode-row-odd:             #f8f8f8;
    --mode-row-even:            #ebebeb;
    --mode-article-text:        #0a0a0a;
    --mode-article-header-bg:   #1a1a1a;
    --mode-article-header-text: #ffffff;
    --mode-article-odd:         #f8f8f8;
    --mode-article-even:        #ebebeb;
    --mode-article-link:        #0a0a0a;
    --mode-article-link-hover:  #000000;
    --highlight-bg:             rgba(0, 0, 0, 0.12);
    --fade-odd-from:            rgba(0, 0, 0, 0.12);
    --fade-even-from:           rgba(0, 0, 0, 0.12);
}
[data-palette="highcontrast"][data-theme="dark"] {
    --palette-accent:           #6c757d;
    --palette-glow:             #6c757d;
    --mode-body-bg:             #0a0a0a;
    --mode-thead-bg:            #1a1a1a;
    --mode-thead-text:          #c8c8c8;
    --mode-text:                #b0b0b0;
    --mode-border:              #333333;
    --mode-text-hover:          whitesmoke;
    --mode-row-odd:             #181818;
    --mode-row-even:            #111111;
    --mode-article-text:        #b0b0b0;
    --mode-article-header-bg:   #1a1a1a;
    --mode-article-header-text: #c8c8c8;
    --mode-article-odd:         #181818;
    --mode-article-even:        #111111;
    --mode-article-link:        #b0b0b0;
    --mode-article-link-hover:  whitesmoke;
    --highlight-bg:             rgba(255, 255, 255, 0.15);
    --fade-odd-from:            rgba(255, 255, 255, 0.15);
    --fade-even-from:           rgba(255, 255, 255, 0.15);
}

/* ── Crimson ── */
[data-palette="crimson"][data-theme="light"] {
    --palette-accent:           #dc3545;
    --palette-glow:             rgba(220, 53, 69, 0.25);
    --mode-body-bg:             #e6d5d5;
    --mode-thead-bg:            #5c1a1a;
    --mode-thead-text:          #fbe0e0;
    --mode-text:                #2d1111;
    --mode-border:              #d4a8a8;
    --mode-text-hover:          #b02a37;
    --mode-row-odd:             #fcf5f5;
    --mode-row-even:            #f4e8e8;
    --mode-article-text:        #2d1111;
    --mode-article-header-bg:   #5c1a1a;
    --mode-article-header-text: #fbe0e0;
    --mode-article-odd:         #fcf5f5;
    --mode-article-even:        #f4e8e8;
    --mode-article-link:        #2d1111;
    --mode-article-link-hover:  #b02a37;
    --highlight-bg:             rgba(220, 53, 69, 0.2);
    --fade-odd-from:            rgba(220, 53, 69, 0.2);
    --fade-even-from:           rgba(220, 53, 69, 0.2);
}
[data-palette="crimson"][data-theme="dark"] {
    --palette-accent:           #dc3545;
    --palette-glow:             rgba(220, 53, 69, 0.25);
    --mode-body-bg:             #1a0c0c;
    --mode-thead-bg:            #3a1010;
    --mode-thead-text:          #e8a0a0;
    --mode-text:                #c49090;
    --mode-border:              #301515;
    --mode-text-hover:          whitesmoke;
    --mode-row-odd:             #261212;
    --mode-row-even:            #1e0e0e;
    --mode-article-text:        #c49090;
    --mode-article-header-bg:   #3a1010;
    --mode-article-header-text: #e8a0a0;
    --mode-article-odd:         #261212;
    --mode-article-even:        #1e0e0e;
    --mode-article-link:        #c49090;
    --mode-article-link-hover:  whitesmoke;
    --highlight-bg:             rgba(220, 53, 69, 0.2);
    --fade-odd-from:            rgba(220, 53, 69, 0.2);
    --fade-even-from:           rgba(220, 53, 69, 0.2);
}

/* ── Matrix ── */
[data-palette="matrix"][data-theme="light"] {
    --palette-accent:           #33cc44;
    --palette-glow:             rgba(51, 204, 68, 0.25);
    --mode-body-bg:             #f0f5f0;
    --mode-thead-bg:            #3a3a3a;
    --mode-thead-text:          #f0f0f0;
    --mode-text:                #333333;
    --mode-border:              #c8d8c8;
    --mode-text-hover:          #1a8a2a;
    --mode-row-odd:             #d4edda;
    --mode-row-even:            #e8f5eb;
    --mode-article-text:        #333333;
    --mode-article-header-bg:   #3a3a3a;
    --mode-article-header-text: #f0f0f0;
    --mode-article-odd:         #d4edda;
    --mode-article-even:        #e8f5eb;
    --mode-article-link:        #333333;
    --mode-article-link-hover:  #1a8a2a;
    --highlight-bg:             rgba(51, 204, 68, 0.5);
    --fade-odd-from:            rgba(51, 204, 68, 0.5);
    --fade-even-from:           rgba(51, 204, 68, 0.5);
}
[data-palette="matrix"][data-theme="dark"] {
    --palette-accent:           #00ff41;
    --palette-glow:             rgba(0, 255, 65, 0.25);
    --mode-body-bg:             #020a02;
    --mode-thead-bg:            #0d2810;
    --mode-thead-text:          #33ff66;
    --mode-text:                #33cc44;
    --mode-border:              #0c200c;
    --mode-text-hover:          whitesmoke;
    --mode-row-odd:             #081408;
    --mode-row-even:            #040e04;
    --mode-article-text:        #33cc44;
    --mode-article-header-bg:   #0d2810;
    --mode-article-header-text: #33ff66;
    --mode-article-odd:         #081408;
    --mode-article-even:        #040e04;
    --mode-article-link:        #33cc44;
    --mode-article-link-hover:  whitesmoke;
    --highlight-bg:             rgba(0, 255, 65, 0.2);
    --fade-odd-from:            rgba(0, 255, 65, 0.2);
    --fade-even-from:           rgba(0, 255, 65, 0.2);
    --highlight-text:           #33ff66;
    --fade-text-to:             #33cc44;
}

/* ==========================================================================
KEYFRAME ANIMATIONS
========================================================================== */

    @keyframes fadeout-odd {
        0% {background-color: var(--fade-odd-from); color: var(--highlight-text);}
        100% {background-color: var(--fade-odd-to); color: var(--fade-text-to);}
    }

    @keyframes fadeout-even {
        0% {background-color: var(--fade-even-from); color: var(--highlight-text);}
        100% {background-color: var(--fade-even-to); color: var(--fade-text-to);}
    }

    @keyframes fadeout-text {
        0% {color: var(--highlight-text);}
        100% {color: var(--fade-text-to);}
    }

/* ==========================================================================
BASE LAYOUT & STRUCTURE
========================================================================== */
    
    .index-hero {
        max-width: 1300px;
        margin: 0 auto 24px auto;
        color: #c9d1d9;
        text-align: center;
    }

    .index-hero h1 {
        font-size: 18px;
        font-weight: 600;
        margin: 0 0 6px 0;
        color: #e6edf3;
    }

    .index-hero p {
        font-size: 13px;
        line-height: 1.5;
        margin: 0;
        opacity: 0.85;
    }

    .index-hero h2 {
        font-size: 15px;
        font-weight: 600;
        margin: 12px 0 4px 0;
        color: #e6edf3;
    }

    .index-hero a {
        color: #58a6ff;
        text-decoration: none;
    }

    .index-hero a:hover {
        text-decoration: underline;
    }

    .index-body {
        background-color: var(--body-bg);
        padding: 73px 16px 16px 16px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .index-container {
        width: 100%;
        max-width: 1300px;
        height: calc(100vh - 73px);
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        background: linear-gradient(to bottom, var(--thead-bg) 28px, transparent 28px);
        box-shadow: none;
        border-radius: 8px;
        overflow: hidden;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    [data-palette="classic"] .index-container {
        box-shadow:
            0 0 12px 2px var(--container-glow),
            0 0 28px 6px var(--container-glow);
    }

    body::-webkit-scrollbar {
        display: none;
    }

/* ==========================================================================
TABLE BASE STYLES
========================================================================== */

    table {
        width: 100%;
        border-collapse: collapse;
    }

/* ==========================================================================
SPOT TABLE STYLES
========================================================================== */

    .spot-table-wrapper {
        flex: 1;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .spot-table-wrapper::-webkit-scrollbar {
        display: none;
    }

    #spot-table {
        flex: 1;
        height: 100%;
        font-family: var(--font-family);
        font-size: var(--font-size);
        border-collapse: var(--border-collapse);
        width: var(--table-width);
        color: var(--text-color);
    }

    #spot-table th {
        height: var(--header-height);
        padding: 0 8px;
        text-align: left;
        background-color: var(--thead-bg);
        color: var(--thead-text);
    }


    #spot-table tbody tr {
        height: var(--row-height);
    }
    
    #spot-table td {
        height: var(--row-height);
        border: var(--border-width) solid var(--border-color);
        padding: var(--cell-padding);
        line-height: 1.2;
        vertical-align: middle;
    }

    /* Spot table column-specific styling */
    #spot-table th:nth-child(1), 
    #spot-table td:nth-child(1) {
        padding-left: 16px;
    }

    #spot-table th:nth-child(2), 
    #spot-table td:nth-child(2) {
        text-align: right;
        padding-right: 16px;
    }

    #spot-table th:nth-child(3), 
    #spot-table td:nth-child(3),
    #spot-table th:nth-child(4), 
    #spot-table td:nth-child(4),
    #spot-table th:nth-child(7), 
    #spot-table td:nth-child(7) {
        padding-left: 16px;
    }

    #spot-table th:nth-child(5), 
    #spot-table td:nth-child(5),
    #spot-table th:nth-child(6), 
    #spot-table td:nth-child(6),
    #spot-table th:nth-child(8), 
    #spot-table td:nth-child(8) {
        text-align: center;
    }

    #spot-table th:last-child,
    #spot-table td:last-child,
    #dxworld-article td:last-child {
        width: 150px; /* Adjust this value based on your date/time format */
        min-width: 150px;
        max-width: 150px;
        text-align: center;
    }

    /* Spot table highlighting and animations */
    #spot-table tr.highlight {
        background-color: var(--highlight-bg);
        color: var(--highlight-text);
    }

    #spot-table tr.highlight .bold-text,
    #spot-table tr.highlight .normal-text {
        color: var(--highlight-text);
    }

    .fadeout-odd {
        animation: fadeout-odd 3s forwards;
    }

    .fadeout-odd .bold-text,
    .fadeout-odd .normal-text {
        animation: fadeout-text 3s forwards;
    }

    .fadeout-even {
        animation: fadeout-even 3s forwards;
    }

    .fadeout-even .bold-text,
    .fadeout-even .normal-text {
        animation: fadeout-text 3s forwards;
    }

/* ==========================================================================
DX TABLE (#customers) - Used on dx.html
========================================================================== */

    #customers {
        font-family: var(--font-family);
        border-collapse: var(--border-collapse);
        width: var(--table-width);
        color: var(--text-color);
    }

    #customers td {
        border: 1px solid var(--border-color);
        padding: var(--cell-padding);
    }

    #customers tr.highlight {
        background-color: var(--highlight-bg);
        color: var(--highlight-text);
    }

    #customers tr.highlight .bold-text,
    #customers tr.highlight .normal-text {
        color: var(--highlight-text);
    }

/* ==========================================================================
DX WORLD ARTICLES TABLE
========================================================================== */

    .dxworld-table-wrapper {
        flex-shrink: 0;
    }

    #dxworld-table {
        display: flex;
        flex-direction: column;
        height: 177px;
        color: var(--article-text-color);
        border-collapse: collapse;
        width: 100%;
        font-family: var(--font-family);
        font-size: var(--font-size);
    }

    .dxworld-thead {
        background-color: var(--article-header-bg) !important;
        display: table;
        width: 100%;
    }
    
    .dxworld-thead th {
        background-color: var(--article-header-bg) !important;
        color: var(--article-header-text);
        padding-left: 16px;
        height: var(--header-height);
        line-height: 1.2;
        vertical-align: middle;       
    }

    .dxworld-thead th:first-child {
        width: calc(100% - 150px); 
        text-align: left;
        padding-left: 16px;
    }
    
    .dxworld-thead th:last-child {
        width: 150px; /* Match the date column width */
        text-align: center;
        padding-right: 16px;
    }

    #dxworld-table td {
        line-height: 1.2;
        height: var(--row-height);
        padding: var(--cell-padding);
    }

    #dxworld-table tbody {
        display: block;
        overflow-y: auto;
        flex: 1;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    #dxworld-table tbody::-webkit-scrollbar {
        display: none;
    }

    #dxworld-table tbody tr {
        display: table;
        width: 100%;
    }

    #dxworld-article tr:nth-child(odd) {
        background-color: var(--article-odd-bg);
    }

    #dxworld-article tr:nth-child(even) {
        background-color: var(--article-even-bg);
    }

    /* Article content styling */
        .dx-inline-article {
        display: inline;
    }

    .dx-article-title {
        font-weight: bold;
        white-space: normal;
        color: var(--article-link-color);
        text-decoration: none;
        padding-left: 12px;
    }

    .dx-article-title:hover {
        color: var(--article-link-hover) !important;
    }

    #dxworld-article td:first-child {
        max-width: 0;
        width: calc(100% - 150px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #dxworld-article td:first-child:hover {
        white-space: normal;
        overflow: visible;
    }

    #dxworld-article td:nth-child(2) {
        text-align: center;
        vertical-align: middle;
        border-left: var(--border-width) solid var(--border-color);
    }

/* ==========================================================================
TEXT STYLING COMPONENTS
========================================================================== */

    .bold-text {
        font-weight: bold;
        color: var(--bold-text-color);
        text-decoration: none;
    }

    .bold-text:hover {
        color: var(--text-hover-color) !important;
        text-decoration: none;
    }

    .normal-text {
        font-weight: normal;
        color: var(--normal-text-color);
        text-decoration: none;
    }

    .normal-text:hover {
        color: var(--text-hover-color) !important;
        text-decoration: none;
    }

/* ==========================================================================
DETAIL ROW COMPONENTS
========================================================================== */

    .detail-even {
        background-color: var(--detail-even-bg) !important;
    }

    .detail-odd {
        background-color: var(--detail-odd-bg) !important;
    }

    .detail-row-flex-container {
        display: flex;
        width: 100%;
    }

    .detail-label {
        width: 21%;
        text-align: right;
        margin-right: 10px;
    }

    .detail-value {
        text-align: left;
        flex-grow: 1;
    }

/* ==========================================================================
NAVIGATION COMPONENTS
========================================================================== */

    #bottomNavbar {
        background-color: var(--thead-bg) !important;
        flex-shrink: 0;
        width: var(--navbar-width);
    }

    #bottomNavbar .nav-link {
        color: var(--thead-text) !important;
    }

    .bottom-navbar-nav {
        display: flex;
        justify-content: center;
        margin: 0 auto;
        width: 100%;
    }

    .nav-item-centered {
        margin: 0 auto;
    }

    .no-vertical-padding {
        padding-top: 0;
        padding-bottom: 0;
    }

    .nav-link-small {
        padding-top: 0;
        padding-bottom: 0;
        font-size: 0.75rem;
    }

/* ==========================================================================
UTILITY CLASSES
========================================================================== */

    .hide {
        display: none;
    }

/* ==========================================================================
RESPONSIVE DESIGN
========================================================================== */

    /* Small screens */
    @media (max-width: 768px) {
        .hide-on-small-screens {
            display: none;
        }
    }

    /* Medium screens */
    @media screen and (min-width: 769px) and (max-width: 1400px) {
        .hide-on-medium-screens {
            display: none;
        }
    }

    /* Hide article summary and "Live Feed" text on screens less than 1400px */
    @media screen and (max-width: 1400px) {
        .dx-article-summary {
            display: none;
        }

        .live-feed-text {
            display: none;
        }
    }

    .index-container {
        /* Calculate height to show exactly N rows */
        height: calc(var(--header-height) + (30 * var(--row-height)));
        overflow-y: auto;
    }

    /* 28 + (# Rows * 30) + 177 */
    @media (min-height: 370px) and (max-height: 400px) {
        .index-container { height: 390px; }
    }

    @media (min-height: 400px) and (max-height: 430px) {
        .index-container { height: 420px; }
    }

    @media (min-height: 430px) and (max-height: 460px) {
        .index-container { height: 450px; }
    }
    
    @media (min-height: 460px) and (max-height: 490px) {
        .index-container { height: 480px; }
    }

    @media (min-height: 490px) and (max-height: 520px) {
        .index-container { height: 510px; }
    }

    @media (min-height: 520px) and (max-height: 550px) {
        .index-container { height: 540px; }
    }

    @media (min-height: 550px) and (max-height: 580px) {
        .index-container { height: 570px; }
    }

    @media (min-height: 580px) and (max-height: 610px) {
        .index-container { height: 600px; }
    }

    @media (min-height: 610px) and (max-height: 640px) {
        .index-container { height: 630px; }
    }
    
    @media (min-height: 640px) and (max-height: 670px) {
        .index-container { height: 660px; }
    }

    @media (min-height: 670px) and (max-height: 700px) {
        .index-container { height: 690px; }
    }

    @media (min-height: 700px) and (max-height: 730px) {
        .index-container { height: 690px; }
    }

    @media (min-height: 730px) and (max-height: 760px) {
        .index-container { height: 690px; }
    }

    @media (min-height: 760px) and (max-height: 790px) {
        .index-container { height: 690px; }
    }

    @media (min-height: 790px) and (max-height: 820px) {
        .index-container { height: 690px; }
    }

    @media (min-height: 820px) and (max-height: 850px) {
        .index-container { height: 720px; }
    }

    @media (min-height: 850px) and (max-height: 880px) {
        .index-container { height: 750px; }
    }

    @media (min-height: 880px) and (max-height: 910px) {
        .index-container { height: 780px; }
    }

    @media (min-height: 910px) and (max-height: 940px) {
        .index-container { height: 810px; }
    }

    @media (min-height: 940px) and (max-height: 970px) {
        .index-container { height: 840px; }
    }

    @media (min-height: 970px) and (max-height: 1000px) {
        .index-container { height: 870px; }
    }

    @media (min-height: 1000px) and (max-height: 1030px) {
        .index-container { height: 900px; }
    }

    @media (min-height: 1030px) and (max-height: 1060px) {
        .index-container { height: 930px; }
    }

    @media (min-height: 1060px) and (max-height: 1090px) {
        .index-container { height: 960px; }
    }

    @media (min-height: 1090px) {
        .index-container { height: 990px; }
    }

    /* DX World Articles Show/Hide Button */
    .dxworld-toggle-btn {
        background: none;
        border: none;
        color: var(--article-header-text);
        font-size: 14px;
        cursor: pointer;
    }

    .dxworld-toggle-btn[aria-expanded="true"]::after {
        content: " Close ✖";
    }