/* Practice questions page — layout on top of mg-lesson / lesson-ui.css */

.mg-practice-questions-page .lesson-shell {
    padding-bottom: 3rem;
}

.mg-practice-questions-layout {
    align-items: stretch;
}

.mg-practice-questions-page .mg-practice-questions-layout .lesson-panel {
    padding: 1.5rem;
}

.mg-practice-questions-page .mg-practice-panel-head {
    margin-bottom: 1.25rem;
    padding-bottom: 1.15rem;
    border-bottom: 1px solid var(--lesson-line, #e7ecf3);
}

.mg-practice-questions-page .mg-practice-panel-head .section-eyebrow {
    display: block;
    margin: 0 0 0.55rem;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
}

.mg-practice-questions-page .mg-practice-panel-head .lesson-section-title {
    margin: 0 0 0.45rem;
}

.mg-practice-questions-page .mg-practice-panel-head .lesson-section-sub {
    margin: 0;
    line-height: 1.45;
}

@media (min-width: 992px) {
    .mg-practice-workspace-col {
        display: flex;
        flex-direction: column;
    }

    .mg-practice-workspace-panel {
        position: sticky;
        top: 1.5rem;
        align-self: flex-start;
        width: 100%;
        max-height: calc(100vh - 3rem);
        overflow: auto;
    }
}

.mg-practice-question-list-item.is-active {
    border-color: #6c63ff !important;
    background: #f0efff !important;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.12);
}

.mg-practice-question-panel {
    min-height: 18rem;
}

.mg-practice-question-panel.htmx-request {
    opacity: 0.65;
}

.mg-practice-question-empty {
    display: grid;
    place-items: center;
    gap: 0.85rem;
    min-height: 16rem;
    padding: 2rem 1.25rem;
    text-align: center;
    border: 1px dashed #d6d3d1;
    border-radius: 16px;
    background: #fafafa;
}

.mg-practice-question-empty i {
    font-size: 2.25rem;
    color: #7c3aed;
}

.mg-practice-question-empty p {
    font-size: 1.5rem;
    line-height: 1.45;
    max-width: 22rem;
}

.mg-practice-questions-page .lesson-practice-question-panel-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #1e293b;
}

@media (max-width: 991px) {
    .mg-practice-question-panel {
        min-height: 12rem;
    }

    .mg-practice-workspace-panel {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .mg-practice-questions-layout > [class*="col-"] + [class*="col-"] {
        margin-top: 0.5rem;
    }
}
