/* ======================================================
   MATH-GUIDE.CSS
   Specific styles for the MathMaster User Guide
====================================================== */

/* --- Card & Typography --- */
.guide-card {
    background: var(--bg-surface);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    line-height: 1.6;
}

.guide-card h2 {
    color: var(--primary);
    margin-bottom: 15px;
}

.guide-card h3 {
    margin-top: 35px;
    margin-bottom: 15px;
    color: var(--text-main);
    border-left: 4px solid var(--primary);
    padding-left: 15px;
}

.divider {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 40px 0;
}

/* --- Mode Explanation Boxes --- */
.mode-explain {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.setup-card {
    padding: 20px;
    background: var(--bg-nav);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.setup-card:hover {
    transform: translateY(-2px);
}

/* --- Level Table --- */
.table-container {
    width: 100%;
    overflow-x: auto; /* Ensures table doesn't break mobile layout */
    margin: 20px 0;
}

.guide-table, #results-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.guide-table th, .guide-table td,
#results-table th, #results-table td {
    padding: 12px 15px;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.guide-table th, #results-table th {
    background-color: var(--bg-nav);
    font-weight: 700;
}

/* --- Keyboard Shortcuts --- */
.shortcut-list {
    list-style: none;
    padding: 0;
}

.shortcut-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

kbd {
    background-color: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: 5px;
    box-shadow: 0 3px 0 var(--border);
    color: var(--text-main);
    display: inline-block;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    line-height: 1;
    padding: 5px 10px;
    margin-right: 15px;
    min-width: 45px;
    text-align: center;
}

/* --- Spatial Audio List (Accessibility Section) --- */
.spatial-list {
    background: var(--bg-footer); /* Using site-wide dark footer color for contrast */
    color: #fff;
    padding: 25px;
    border-radius: 10px;
    list-style: none;
    margin-top: 15px;
}

.spatial-list li {
    margin-bottom: 12px;
}

.spatial-list strong {
    color: #facc15; /* Yellow/Amber for visibility against dark bg */
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .mode-explain {
        grid-template-columns: 1fr;
    }
    
    .guide-card {
        padding: 24px;
    }

    .math-text {
        font-size: 2.5rem;
    }
}