:root {
    color-scheme: dark;
}

body {
    background: #0d1526;
    color: #e6e6e6;
    font-family: system-ui, sans-serif;
    margin: 0;
}

main {
    padding: 2rem;
}

h1 {
    color: #f5f5f5;
}

.site-header {
    background: #182136;
    border-bottom: 1px solid #2a3654;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 2rem;
    position: relative;
}

.navbar .brand {
    font-weight: 600;
    font-size: 1.1rem;
    color: #f5f5f5;
    text-decoration: none;
}

.nav-toggle {
    display: none;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #e6e6e6;
    user-select: none;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #e6e6e6;
}

.nav-links a:hover {
    color: #8ab4f8;
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-switcher a {
    opacity: 0.5;
}

.lang-switcher a.active {
    opacity: 1;
    color: #8ab4f8;
}

@media (max-width: 600px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 0.75rem;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #182136;
        padding: 1rem 2rem;
        border-bottom: 1px solid #2a3654;
        z-index: 10;
    }

    .nav-toggle:checked ~ .nav-links {
        display: flex;
    }
}

a {
    color: #8ab4f8;
}

.evidence-text {
    text-decoration: underline dotted;
    cursor: help;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    align-items: start;
}

.detail-box {
    background: #182136;
    border: 1px solid #2a3654;
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.detail-box h2 {
    margin-top: 0;
    font-size: 1.1rem;
    color: #f5f5f5;
}

.relation-section-gap {
    margin-top: 1.25rem;
}

input[type="search"] {
    background: #141d33;
    color: #e6e6e6;
    border: 1px solid #38466b;
    border-radius: 4px;
    padding: 0.5rem;
    width: 100%;
    max-width: 24rem;
    font-size: 1rem;
}

input[type="search"]::placeholder {
    color: #8a8f98;
}

table {
    border-collapse: collapse;
    margin-top: 1rem;
    width: 100%;
}

th, td {
    text-align: left;
    padding: 0.4rem 0.8rem;
    border-bottom: 1px solid #2a3654;
}

th {
    color: #b9bec7;
    font-weight: 600;
}

tr:hover td {
    background: #1b2740;
}
