.schedule-actions,
.schedule-admin-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 14px 0;
}

.schedule-actions form,
.schedule-admin-actions form {
    margin: 0;
}

.schedule-actions input,
.schedule-admin-actions input,
.schedule-admin-actions select {
    box-sizing: border-box;
    min-height: 44px;
    padding: 8px 10px;
    font-size: 16px;
}

.schedule-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.schedule-table {
    margin: 0 auto;
}

@media screen and (max-width: 700px) {
    html,
    body {
        height: auto;
        min-height: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body.schedule-page {
        margin: 0;
        padding: 0;
        background-image: none;
        background-color: #f4f6f1;
        color: #18251b;
        font-family: Arial, Helvetica, sans-serif;
        line-height: 1.4;
    }

    html.staging-page body.schedule-page {
        padding-top: 46px;
    }

    body.schedule-page #staging-banner {
        left: 0 !important;
        right: 0 !important;
        padding: 4px !important;
        font-size: 12px !important;
    }

    body.schedule-page #left {
        display: none;
    }

    body.schedule-page #middle-top {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        height: auto;
        box-sizing: border-box;
        margin: 0;
        padding: 10px;
    }

    body.schedule-page .registration-mobile-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin: 0 10px 12px;
        padding: 10px;
        border: 1px solid #b7c5b3;
        border-radius: 8px;
        background: #e5ebdd;
    }

    body.schedule-page .registration-mobile-nav a {
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        min-height: 48px;
        padding: 8px;
        border: 1px solid #aebaa9;
        border-radius: 6px;
        background: #ffffff;
        color: #150083;
        font-size: 16px;
        font-weight: bold;
        line-height: 1.2;
        text-align: center;
    }

    body.schedule-page .registration-mobile-nav a.registration-nav-primary {
        grid-column: 1 / -1;
        background: #155b37;
        border-color: #155b37;
        color: #ffffff;
    }

    body.schedule-page h3 {
        color: #173663;
        font-size: 24px;
        line-height: 1.25;
    }

    .schedule-actions,
    .schedule-admin-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .schedule-actions input,
    .schedule-admin-actions input,
    .schedule-admin-actions select {
        width: 100%;
        min-height: 48px;
    }

    .schedule-admin-actions form:last-child {
        display: grid;
        gap: 8px;
    }

    .schedule-table-wrap {
        overflow: visible;
    }

    table.schedule-table,
    .schedule-table tbody {
        display: block;
        width: 100%;
        border: 0;
        background: transparent;
    }

    .schedule-table thead {
        display: none;
    }

    .schedule-table tbody tr {
        display: block;
        margin: 0 0 14px;
        padding: 12px;
        border: 1px solid #b7c5b3;
        border-radius: 9px;
        background: #e5ebdd;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
    }

    table.schedule-table td {
        display: grid;
        grid-template-columns: minmax(105px, 42%) minmax(0, 1fr);
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
        padding: 7px 0;
        border: 0;
        font-size: 16px;
        overflow-wrap: anywhere;
    }

    table.schedule-table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #263e2b;
    }

    table.schedule-table a {
        text-decoration: underline;
    }
}

/* Phase 2: match approved bold button palette; retain schedule cards and table. */
body.schedule-page .schedule-actions input,
body.schedule-page .schedule-admin-actions input[type=submit] { border:1px solid #aebaa9; border-radius:6px; background:#fff; color:#150083; font:bold 16px Arial,Helvetica,sans-serif; cursor:pointer; }
body.schedule-page .schedule-actions input:focus-visible,
body.schedule-page .schedule-admin-actions input:focus-visible,
body.schedule-page .schedule-admin-actions select:focus-visible { outline:3px solid #d5a93f; outline-offset:2px; }
@media screen and (max-width:700px) {
 body.schedule-page .registration-mobile-nav a { text-decoration:none; }
 body.schedule-page .registration-mobile-nav a[href="/schedule/ScheduleMain.php"] { grid-column:1/-1; grid-row:1; background:#155b37; border-color:#155b37; color:#fff; }
 body.schedule-page .registration-mobile-nav a.registration-nav-primary:not([href="/schedule/ScheduleMain.php"]) { grid-column:auto; background:#fff; border-color:#aebaa9; color:#150083; }
}
