/* ── Index ─────────────────────────────────── */
.nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.nav-card {
    background-color: #2c2c2c;
    padding: 1rem 1.25rem;
    border-radius: 5px;
    border: 1px solid #333;
    transition: background-color 0.3s ease;
}

.nav-card:hover {
    background-color: #3a3a3a;
}

.nav-card h3 {
    border-bottom: none;
    margin-top: 0;
    padding-bottom: 0;
}

/* ── Cheatsheet pages ───────────────────────── */
ul { columns: 2; column-gap: 2rem; }
ul ul { columns: 1; }
ul li { break-inside: avoid; }

pre {
    background-color: #2d2d2d;
    border-radius: 5px;
    padding: 1em;
    overflow-x: auto;
    margin: 0.5rem 0;
    font-family: Consolas, 'Courier New', monospace;
}

small { color: #aaa; }

nav {
    position: sticky;
    top: 0;
    background-color: #1e1e1e;
    padding: 0.5rem 0;
    margin: 0.5rem 0;
    z-index: 10;
    border-bottom: 1px solid #333;
}

nav a { margin-right: 0.5rem; }

.resources { margin-bottom: 1rem; }
.resources a { display: inline-block; margin-right: 1rem; margin-bottom: 0.25rem; }

/* ── Mobile ─────────────────────────────────── */
@media (max-width: 640px) {
    ul { columns: 1; }
    .nav-grid { grid-template-columns: 1fr; }
}

