:root {
    color-scheme: light dark;
    --bg: #f4f5f9;
    --card: #ffffff;
    --text: #22272e;
    --muted: #57606a;
    --accent: #0969da;
    --header-bg: #24292f;
    --nav-bg: #32383f;
    --nav-hover: #444c56;
    --submenu-bg: #24292f;
    --border: #d8dee4;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f1217;
        --card: #1a1f26;
        --text: #e6e8eb;
        --muted: #9aa4af;
        --accent: #58a6ff;
        --header-bg: #161b22;
        --nav-bg: #21262d;
        --nav-hover: #30363d;
        --submenu-bg: #161b22;
        --border: #30363d;
        --shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    }
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}
header {
    background-color: var(--header-bg);
    color: white;
    padding: 10px 20px;
    text-align: center;
    border-bottom: 3px solid var(--accent);
}
header h1 {
    margin: 0.4em 0;
    font-size: 1.7rem;
}
		.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
nav {
    display: flex;
    justify-content: space-around;
    background-color: var(--nav-bg);
}
nav a {
    color: white;
    text-decoration: none;
    padding: 14px 20px;
    display: block;
    position: relative;
}
nav a:hover {
    background-color: var(--nav-hover);
}
nav a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}
nav > a[aria-current="page"],
.dropdown a[aria-current="page"] {
    box-shadow: inset 0 -3px 0 var(--accent);
}
.submenu {
    display: none;
    position: absolute;
    background-color: var(--submenu-bg);
    min-width: 160px;
    z-index: 1;
}
.submenu a {
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    color: white;
}
@media screen and (min-width: 769px) {
    /* :focus-within keeps the submenu reachable by keyboard */
    .dropdown:hover .submenu,
    .dropdown:focus-within .submenu {
        display: block;
    }
}
.content {
    margin: 20px;
    padding: 24px 28px;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow-wrap: break-word;
}
.content[hidden] {
    display: none;
}
.content h2:first-child {
    margin-top: 0;
}
.content a {
    color: var(--accent);
}
.content a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 20px 0;
}
table {
    border-collapse: collapse;
    width: 100%;
}
th, td {
    text-align: left;
    vertical-align: top;
    padding: 8px 12px 8px 0;
    border-bottom: 1px solid var(--border);
}
th {
    color: var(--muted);
    font-weight: 600;
}
th:first-child, td:first-child {
    white-space: nowrap;
    width: 110px;
}
/* Keep header and menu in view when the browser scrolls to a
   section anchor (deep links): the huge margin clamps the scroll
   position to the top of the page. */
main > section {
    scroll-margin-top: 100vh;
}
.hamburger {
    display: none;
    cursor: pointer;
    padding: 15px;
    background: none;
    border: none;
}
.hamburger:focus-visible {
    outline: 2px solid var(--accent);
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--text);
}

@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
    }
    nav {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    nav.active {
        display: flex;
    }
    .submenu {
        position: static;
        width: 100%;
        background-color: var(--nav-hover);
    }
    .submenu a {
        padding-left: 30px;
    }
    .dropdown .submenu {
        display: none;
    }

    .dropdown.active .submenu {
        display: block;
    }
}

/* Error page (404.html) */
body.error-page {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
}
.error-card {
    max-width: 480px;
    margin: 20px;
    padding: 32px;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-align: center;
}
.error-card a {
    color: var(--accent);
}
