body {
    font-family: system, -apple-system, "Arial";
    padding: 0 10px;
    color: #333;
    background-color: #fff;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.table-wrapper {
    overflow-x: auto;
    display: block;
}

li {
    line-height: 1.4;
}

.references li {
    margin-bottom: 10px;
}

h1,
h2,
h3 {
    line-height: 1.0;
}

.fa-brands {
    color: black;
    transition: color 0.3s ease;
}

button {
    background: none;
    border: 1px solid #333;
    color: #333;
    padding: 6px 12px;
    cursor: pointer;
    font-family: inherit;
}

button:hover {
    background: #333;
    color: #fff;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

textarea {
    font-family: monospace;
    /* 24px padding + 2px border */
    width: calc(100% - 26px);
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    resize: none;
    background: #fafafa;
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

textarea:focus {
    border-color: #333;
    background: #fff;
}

details {
    margin: 20px 0;
    border: 1px solid #e1e1e1;
    border-radius: 5px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

summary {
    background-color: #f1f1f1;
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 500;
    user-select: none;
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s ease;
    font-size: 1em;
    margin: 0;
}

summary:hover {
    background-color: #e8e8e8;
}

details[open] summary {
    border-bottom-color: #e1e1e1;
}

.details-content {
    padding: 20px;
    background: white;
    transition: background-color 0.3s ease;
}

@media (prefers-color-scheme: dark) {
    body {
        color: #d0d0d0;
        background-color: #121212;
        font-weight: 300;
        line-height: 1.6;
        letter-spacing: 0.01em;
    }

    p,
    li {
        max-width: 70ch;
    }

    .fa-brands {
        color: #d0d0d0;
    }

    a {
        color: #90caf9;
        text-decoration-thickness: 1px;
    }

    a:visited {
        color: #ce93d8;
    }

    h1 {
        color: #ffffff;
        font-weight: 500;
    }

    h2,
    h3 {
        color: #f5f5f5;
        font-weight: 500;
        text-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
    }

    p,
    li,
    h1,
    h2,
    h3 {
        text-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
    }


    textarea {
        background: #1a1a1a;
        color: #d0d0d0;
        border: 1px solid #333;
    }

    textarea:focus {
        border-color: #555;
        background: #1e1e1e;
    }

    button {
        border: 1px solid #d0d0d0;
        color: #d0d0d0;
    }

    button:hover {
        background: #d0d0d0;
        color: #121212;
    }

    details {
        border-color: #333;
    }

    summary {
        background-color: #2d2d2d;
        color: #d0d0d0;
    }

    summary:hover {
        background-color: #404040;
    }

    details[open] summary {
        border-bottom-color: #333;
    }

    .details-content {
        background-color: #1e1e1e;
    }

}