/* Budhigyan Step 244I — Asset Load Guard
   Scope: stylesheet-load hardening for Step 244C–244H launch-readiness pages only.
   No route, controller, SQL, database, payment, MCQ, WhatsApp, or external AI logic changes. */

/* Shared safety net for launch-readiness panels when a page is edited later and loses local spacing. */
.course-launch-readiness-card,
.launch-template-card,
.step244d-conversion-map,
.step244d-guidance-panel,
.step244d-followup-panel,
.step244d-mcq-next-step,
.step244d-contact-map,
.student-launch-readiness,
.student-launch-flow,
.student-review-flow,
.student-payment-flow,
.student-access-flow,
.launch-final-card,
.launch-route-index,
.launch-qa-readiness-stack,
.launch-postpatch-panel {
    scroll-margin-top: 96px;
}

/* Avoid narrow-screen overflow on the patched launch pages. */
body.page-courses .grid,
body.page-batches .grid,
body.page-admission-request .grid,
body.page-contact .grid,
body.page-mcq-free .grid,
body.page-student-dashboard .grid,
body.page-student-courses .grid,
body.page-student-mcq .grid,
body.page-student-mcq-attempts .grid,
body.page-student-my-access .grid,
body.page-student-payments .grid,
body.page-admin-course-manager .grid,
body.page-admin-study-materials .grid,
body.page-admin-deployment .grid,
body.page-admin-deployment-launch-qa .grid {
    min-width: 0;
}

body.page-courses .card,
body.page-batches .card,
body.page-admission-request .card,
body.page-contact .card,
body.page-mcq-free .card,
body.page-student-dashboard .card,
body.page-student-courses .card,
body.page-student-mcq .card,
body.page-student-mcq-attempts .card,
body.page-student-my-access .card,
body.page-student-payments .card,
body.page-admin-course-manager .card,
body.page-admin-study-materials .card,
body.page-admin-deployment .card,
body.page-admin-deployment-launch-qa .card {
    min-width: 0;
}

/* Keep action strips usable after several focused patch layers. */
body.page-courses .route-strip,
body.page-batches .route-strip,
body.page-admission-request .route-strip,
body.page-contact .route-strip,
body.page-mcq-free .route-strip,
body.page-student-dashboard .route-strip,
body.page-student-courses .route-strip,
body.page-student-mcq .route-strip,
body.page-student-mcq-attempts .route-strip,
body.page-student-my-access .route-strip,
body.page-student-payments .route-strip,
body.page-admin-course-manager .route-strip,
body.page-admin-study-materials .route-strip,
body.page-admin-deployment .route-strip,
body.page-admin-deployment-launch-qa .route-strip {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: .35rem;
    scrollbar-width: thin;
}

body.page-courses .route-strip .btn,
body.page-batches .route-strip .btn,
body.page-admission-request .route-strip .btn,
body.page-contact .route-strip .btn,
body.page-mcq-free .route-strip .btn,
body.page-student-dashboard .route-strip .btn,
body.page-student-courses .route-strip .btn,
body.page-student-mcq .route-strip .btn,
body.page-student-mcq-attempts .route-strip .btn,
body.page-student-my-access .route-strip .btn,
body.page-student-payments .route-strip .btn,
body.page-admin-course-manager .route-strip .btn,
body.page-admin-study-materials .route-strip .btn,
body.page-admin-deployment .route-strip .btn,
body.page-admin-deployment-launch-qa .route-strip .btn {
    white-space: nowrap;
}

/* Table safety for public/student launch pages where content can grow. */
body.page-courses .table-wrap,
body.page-batches .table-wrap,
body.page-student-courses .table-wrap,
body.page-student-mcq-attempts .table-wrap,
body.page-student-payments .table-wrap,
body.page-admin-course-manager .table-wrap,
body.page-admin-study-materials .table-wrap,
body.page-admin-deployment .table-wrap,
body.page-admin-deployment-launch-qa .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

body.page-courses table,
body.page-batches table,
body.page-student-courses table,
body.page-student-mcq-attempts table,
body.page-student-payments table,
body.page-admin-course-manager table,
body.page-admin-study-materials table,
body.page-admin-deployment table,
body.page-admin-deployment-launch-qa table {
    min-width: min(760px, 100%);
}

/* Prevent duplicate view-level + layout-level stylesheet loading from creating visible spacing jumps. */
.student-launch-readiness + .student-launch-readiness,
.student-launch-flow + .student-launch-flow,
.step244d-conversion-map + .step244d-conversion-map,
.course-launch-readiness-card + .course-launch-readiness-card {
    margin-top: 0;
}

@media (max-width: 760px) {
    .course-launch-readiness-card,
    .launch-template-card,
    .step244d-conversion-map,
    .step244d-guidance-panel,
    .step244d-followup-panel,
    .step244d-mcq-next-step,
    .step244d-contact-map,
    .student-launch-readiness,
    .student-launch-flow,
    .student-review-flow,
    .student-payment-flow,
    .student-access-flow,
    .launch-final-card,
    .launch-route-index,
    .launch-qa-readiness-stack,
    .launch-postpatch-panel {
        border-radius: 20px;
    }

    body.page-courses .btn,
    body.page-batches .btn,
    body.page-admission-request .btn,
    body.page-contact .btn,
    body.page-mcq-free .btn,
    body.page-student-dashboard .btn,
    body.page-student-courses .btn,
    body.page-student-mcq .btn,
    body.page-student-mcq-attempts .btn,
    body.page-student-my-access .btn,
    body.page-student-payments .btn,
    body.page-admin-course-manager .btn,
    body.page-admin-study-materials .btn,
    body.page-admin-deployment .btn,
    body.page-admin-deployment-launch-qa .btn {
        min-height: 42px;
        align-items: center;
    }
}
