/* ── About page specific styles ───────────────────────────────────────────── */

/* Override the auth-page flex centering so the page scrolls naturally */
body.about-page {
    display: block;
    align-items: unset;
    justify-content: unset;
}

.about-container {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.about-nav {
    display: flex;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
}

.about-nav a {
    flex: 1;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-align: center;
    padding: 0.6rem;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.about-nav a:hover,
.about-nav a.active {
    color: var(--amber);
    border-bottom-color: var(--amber);
}

.about-section {
    margin-bottom: 3rem;
}

.about-section h2 {
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    color: var(--amber-dim);
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.about-section p {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 0.8rem;
}

.about-section p:last-child {
    margin-bottom: 0;
}

.rune-inline {
    color: var(--amber-bright);
    font-size: 1rem;
}

/* ── Command table ────────────────────────────────────────────────────────── */
.cmd-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    margin-top: 0.5rem;
}

.cmd-table th {
    text-align: left;
    color: var(--amber-dim);
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    padding: 0.4rem 0.6rem;
    border-bottom: 1px solid var(--border);
}

.cmd-table td {
    padding: 0.35rem 0.6rem;
    color: var(--text);
    border-bottom: 1px solid #1a1a1a;
    vertical-align: top;
}

.cmd-table tr:last-child td {
    border-bottom: none;
}

.cmd-table code {
    color: var(--amber-bright);
    font-family: var(--font-mono);
}

.cmd-table .dim {
    color: var(--text-dim);
    font-size: 0.78rem;
    opacity: 1;
}

/* ── Rune grid ────────────────────────────────────────────────────────────── */
.rune-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.15rem 1.5rem;
    margin-top: 0.5rem;
}

.rune-entry {
    display: grid;
    grid-template-columns: 1.4rem 3.8rem 1fr;
    gap: 0.3rem;
    align-items: baseline;
    padding: 0.25rem 0;
    border-bottom: 1px solid #161616;
    font-size: 0.8rem;
}

.rune-entry .rs {
    color: var(--amber-bright);
    font-size: 1.1rem;
    line-height: 1;
}

.rune-entry .rn {
    color: var(--text-bright);
}

.rune-entry .rm {
    display: none;
}

.rune-entry .rd {
    color: var(--text-dim);
    grid-column: 3;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.about-footer {
    margin-top: 3rem;
    text-align: center;
}

.about-footer .btn-primary {
    text-decoration: none;
    display: inline-block;
}

.about-footer-links {
    margin-top: 1.2rem;
}

.about-footer-links a {
    color: var(--text-dim);
    font-size: 0.78rem;
    text-decoration: none;
}

.about-footer-links a:hover {
    color: var(--text);
    text-decoration: underline;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 520px) {
    .rune-grid {
        grid-template-columns: 1fr;
    }

    .rune-entry {
        grid-template-columns: 1.4rem 3.5rem 1fr;
    }
}
