:root {
    /* Light theme values */
    --bg-light: rgb(250, 250, 250);
    --text-light: #111;
    --primary-light: rgb(0, 38, 207);
    --border-light: #ddd;
    --table-bg-light: white;
    --link-underline-light: rgba(0, 38, 207, 0.4);

    /* Dark theme values */
    --bg-dark: #0c1216;
    --text-dark: #fff;
    --primary-dark: #7ab6ff;
    --border-dark: #444;
    --table-bg-dark: rgb(19, 25, 34);
    --link-underline-dark: rgba(122, 182, 255, 0.4);

    /* Active theme (defaults to light) */
    --bg: var(--bg-light);
    --text: var(--text-light);
    --primary: var(--primary-light);
    --border: var(--border-light);
    --table-bg: var(--table-bg-light);
    --link-underline: var(--link-underline-light);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: var(--bg-dark);
        --text: var(--text-dark);
        --primary: var(--primary-dark);
        --border: var(--border-dark);
        --table-bg: var(--table-bg-dark);
        --link-underline: var(--link-underline-dark);
    }
}

* {
    color-scheme: light dark;
}

body {
    font-family: 'Ubuntu Sans';
    margin: 0;
    line-height: 1.4;
    background: var(--bg);
    color: var(--text);
}

header,
nav,
main,
footer {
    padding: 1rem;
    max-width: 80ch;
    margin-inline: auto;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

nav a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: var(--link-underline);
    text-underline-offset: 2px;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tbd {
    opacity: .7;
    font-style: italic;
    color: red;
    font-weight: bold;
}

table {
    border-collapse: collapse;
    width: 100%;
    max-width: 100%;
    background: var(--table-bg);
}

th,
td {
    padding: .5rem;
    border: 1px solid var(--border);
    text-align: left;
}

section {
    margin-top: 1.5em;
    margin-bottom: 1.5em;
}

.footer-content {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    gap: 1rem;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-content p {
        margin-left: 0 !important;
    }

    #theme-toggle {
        display: none;
    }
}

.btn {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    background: none;
}

.btn:hover {
    background: var(--table-bg);
}
