/* ========== Kushala Schedule Skin (scoped) ========== */

.ky-schedule .schedule-nav h2,
.ky-schedule h3,
.ky-schedule h4 {
    color: var(--ky-text);
}
.ky-schedule .schedule-nav h2 {
    margin-bottom: 4px;
}

#Content .the_content_wrapper > h1 + #schedule_nav_filters{
    margin-top: 10px !important;
}

/* Container */
.schedule-table-wrapper {
    background: var(--ky-surface);
    border: 1px solid var(--ky-border);
    border-radius: var(--ky-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
    margin-bottom: 40px;
}

/* Table */
.ky-schedule table.schedules {
    font-size: 16px;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0px;
}

.ky-schedule table.schedules thead th {
    background: #e0e9ec !important; /* muted blue-teal */
    color: var(--ky-text);
    font-weight: 600;
    letter-spacing: .02em;
    padding: 14px 12px;
}

.ky-schedule table.schedules thead th:first-child, .ky-schedule table.schedules td:first-child {
    padding-left: 18px;
}

.ky-schedule table.schedules thead th.calendar-location {
    text-align: center;
}

.ky-schedule table.schedules thead th:first-child {
    border-top-left-radius: var(--ky-radius);
}
.ky-schedule table.schedules thead th:last-child {
    border-top-right-radius: var(--ky-radius);
}

.ky-schedule table.schedules td {
    padding: 14px 12px;
    vertical-align: middle;
    /*border-top: 1px solid var(--ky-border);*/
    background: var(--ky-surface);
}

.ky-schedule table.schedules tr:nth-child(odd) td {
    background-color: #e9e9e98f;
}

.ky-schedule table.schedules tbody tr:hover, .ky-schedule table.schedules tbody tr:hover td {
    background: rgb(224 233 236 / 61%);
}

/* Links */
.ky-schedule table.schedules a {
    color: var(--ky-text);
    font-weight: 500;
}

/* “Pills” for Reserve / Video */
.ky-schedule a.ky-button {
    border-radius: 999px;
    padding: 0px 16px;
    border: 0;
    box-shadow: none;
    font-weight: 700;
    letter-spacing: .02em;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    line-height: 1.1;
    min-height: 36px;

    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    will-change: transform;
}


.ky-schedule a.ky-button .button_label,
.ky-schedule a.ky-button .button_label_verbose {
    padding: 0;
    font-size: 16px;
    font-weight: 400;
    font-family: "Lato", Arial, sans-serif;
}

/* Hover lift */
@media (hover: hover) and (pointer: fine) {
    .ky-schedule a.ky-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 22px rgba(0,0,0,.18);
        filter: brightness(1.03);
    }
}

/* Active press state */
.ky-schedule a.ky-button:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0,0,0,.15);
}

/*
.ky-schedule .delivery-code-onex a.ky-button.reserve_class { background: var(--ky-green); }
.ky-schedule .delivery-code-st   a.ky-button.reserve_class { background: #a635a8; }
.ky-schedule a.ky-button.watch_recording { background: #f783ac; }
.ky-schedule a.ky-button.join_class      { background: #9bad35; }
.ky-schedule a.ky-button.register_event  { background: #ff8100; }
*/
.ky-schedule a.ky-button,
.ky-schedule a.ky-button i {
    color: #fff !important;

}

/* Helper text under buttons */
.ky-schedule .spaces_left,
.ky-schedule .class_location,
.ky-schedule .reserve-on {
    color: var(--ky-muted);
    font-size: 12px;
    line-height: 1em;
    margin-top: 6px;
}




.ky-schedule table.schedules ul {
    margin: 0 0 0 0;
}

.ky-schedule table.schedules ul.flex-list li {
    padding: 0px;
}


/* Button Styles */
a.ky-button .button_label_verbose {
    display: none;
}


/* Desktop spacing improvements */
table.schedules td.ky-schedule-time {
    width: 22%;
    min-width: 160px;
}
table.schedules td.ky-schedule-avatar {
    width: 13%;
    text-align: left;
}
.ky-schedule table.schedules td.ky-schedule-class {
    width: 30%;
}

.ky-schedule table.schedules td.delivery-code-st {
    width: 17%;
}
.ky-schedule table.schedules td.delivery-code-onex {
    width: 17%;
}

.ky-schedule .schedule-type-online-only table.schedules td.delivery-code-onex,
.ky-schedule .schedule-type-studio-only table.schedules td.delivery-code-st,
.ky-schedule table.schedules td.delivery-code-both
{
    width: 35%;
}

.ky-schedule table.schedules td {
    padding: 8px 10px;
}

.ky-schedule table.schedules td.bold {
    font-weight: 600;
    letter-spacing: .01em;
}

.ky-schedule table.schedules .ky-schedule-class a {
    font-weight: 600;
}
.ky-schedule table.schedules .ky-schedule-instructor    {
    line-height: 1;
}
.ky-schedule table.schedules .ky-schedule-instructor a {
    font-weight: lighter;
    font-size: 0.9em;
    color: #000;
}
.ky-schedule .schedule-type-classtype table.schedules .ky-schedule-instructor a {
    font-weight: 600;
    font-size:1em;
}

.ky-schedule table.schedules .ky-schedule-date {
    font-weight: 600;
}

table.schedules img.ky-instructor-avatar {
    width: 50px;
    border: 1px solid #c2c2c2;
    margin: 0 auto;
}

/* Button color refinements (scoped) */
.ky-schedule .delivery-code-st a.reserve_class {
    background: #8e43c9;
}
.ky-schedule .delivery-code-onex a.reserve_class {
    background: #059669;
}
.ky-schedule a.watch_recording {
    background: #db2777;
}
.ky-schedule a.join_class {
    background: #4f46e5;
}
.ky-schedule a.register_event {
    background: #4387c9;
}

/* ========== Schedule nav / filters UI ========== */


/* Primary segmented control: All / Studio / Online */
.ky-schedule .schedule-codes-navbar {
    display: inline-flex;
    gap: 0;
    padding: 6px;
    border-radius: 999px;
    /*border: 1px solid rgba(0,0,0,.10);
    background: rgba(0,0,0,.04);*/
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
    margin: 0 auto 14px auto;
    justify-content: center;
    list-style: none;

    background: rgba(12,24,34,.06);
    border-color: rgba(12,24,34,.14);

    margin-bottom: 10px;
}

.ky-schedule .schedule-codes-navbar li { margin: 0; padding: 0; }

.ky-schedule .schedule-codes-navbar li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 16px;
    border-radius: 999px;
    border: 0;
    background: transparent;
    font-weight: 700;
    color: var(--ky-text);
    text-decoration: none;
}

.ky-schedule .schedule-codes-navbar li.highlight a {
    background: var(--ky-navy);
    color: #fff;
    box-shadow: 0 10px 22px rgba(0,0,0,.12);
}

.ky-schedule .schedule-codes-navbar li:not(.highlight) a:hover {
    background: rgba(0,0,0,.06);
}

/* Make the primary (location) control more “UI” */

.ky-schedule .schedule-codes-navbar li a {
    color: rgba(22,32,42,.85);
}

.ky-schedule .schedule-codes-navbar li.highlight a {
    box-shadow: 0 12px 26px rgba(0,0,0,.16);
}

@media (hover: hover) and (pointer: fine) {
    .ky-schedule .schedule-codes-navbar li a:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 22px rgba(0,0,0,.10);
    }


}


/* Secondary pills: class types */
.ky-schedule .schedule-navbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 0 0 10px 0;
    padding: 0;
    list-style: none;
}

.ky-schedule .schedule-navbar li {
    margin: 0; padding: 0;
    background-color: transparent;
}

.ky-schedule .schedule-navbar a, .ky-schedule .schedule-navbar a.beginner-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(11,111,134,.08);
    border: 1px solid rgba(11,111,134,.18);
    color: var(--ky-text) !important;
    font-weight: 700;
    text-decoration: none;
    line-height: 1;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;

}

.ky-schedule .schedule-navbar a, .ky-schedule .schedule-navbar a.beginner-option.highlight {
    background: var(--ky-navy);
    color: #fff !important;
}

.ky-schedule .schedule-navbar a:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0,0,0,.10);
    background: #fff;
    border-color: rgba(11,111,134,.26);
}

.ky-schedule .schedule-navbar li.highlight a {
    background: rgba(12,24,34,.95);
    border-color: transparent;
    color: #fff;
}

li.menu-item.menu-item-type-custom.menu-item-object-custom.highlight {
    background: 0;
}

.ky-schedule .menu-schedule-codes-container {
    text-align: center;
}

.ky-schedule .schedule-nav a.slider_prev:active,
.ky-schedule .schedule-nav a.slider_next:active,
.ky-schedule .ky_datepicker_wrapper .ky-calendar-datepicker:active {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0,0,0,.12);
}

.ky-schedule .schedule-nav input#schedule_datepicker {
    display: none !important;
}

.ui-datepicker .ui-datepicker-calendar td a {
    border: none;
    text-align: center;
}



/* “More class filters” toggle row */
.ky-schedule #schedule_filters.schedule-filters {
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,.08);
}

.ky-schedule a.toggle_schedule_filters {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.10);
    background: rgba(0,0,0,.02);
    font-weight: 700;
    color: var(--ky-link);
    text-decoration: none;
}

.ky-schedule a.toggle_schedule_filters:hover {
    background: rgba(0,0,0,.04);
}

/* Focus filters list becomes chips */
.ky-schedule #more-schedule-filters ul {
    margin: 12px 0 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ky-schedule #more-schedule-filters a.schedule_filter-focus {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.10);
    background: #fff;
    color: var(--ky-text);
    font-weight: 600;
    text-decoration: none;
}

.ky-schedule #more-schedule-filters a.schedule_filter-focus:hover {
    box-shadow: 0 10px 22px rgba(0,0,0,.10);
    transform: translateY(-1px);
}

/* ========== Prev / date picker / next row (tight + button-y) ========== */

.ky-schedule .schedule-nav {
    justify-self: center;
    margin: 0;
    padding: 0;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    position: relative;
}

/* Hide text labels so it doesn't spread out */
.ky-schedule .schedule-nav .previous-label,
.ky-schedule .schedule-nav .next-label {
    display: none;
}

/* Button-y arrows + calendar */
.ky-schedule .schedule-nav a.slider_prev,
.ky-schedule .schedule-nav a.slider_next,
.ky-schedule .ky_datepicker_wrapper .ky-calendar-datepicker {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    display: grid !important;
    place-items: center;
    /* background: #fff; */
    /* border: 1px solid rgba(0, 0, 0, .12); */
    text-decoration: none;
    margin: 0;
    background: #d7e5e86b;
    border: 1px solid #d7e5e8;
    color: #0e1922;
    transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}


@media (hover: hover) and (pointer: fine) {
    .ky-schedule .schedule-nav a.slider_prev:hover,
    .ky-schedule .schedule-nav a.slider_next:hover,
    .ky-schedule .ky_datepicker_wrapper .ky-calendar-datepicker:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 30px rgba(0,0,0,.14);
    }
}

.ky-schedule .schedule-nav a.slider_prev i,
.ky-schedule .schedule-nav a.slider_next i,
.ky-schedule .ky_datepicker_wrapper .ky-calendar-datepicker i {
    color: var(--ky-text);
    font-size: 18px;
}

.slider_next span.button_icon {
    transform: translate(0px, -2px);
}
.slider_prev span.button_icon {
    transform: translate(-2px, -2px);
}

/* The button group "tray" */
.ky-schedule .schedule-nav::before {
    content: "";
    position: absolute;
    opacity: 0; /* default off, will enable via the next rule */
}

/* Tighten page chrome above schedule (site-wide optional) */
.breadcrumbs, .breadcrumb, nav.breadcrumbs {
    font-size: 12px;
    opacity: .7;
    margin-bottom: 8px;
}

h1, .page-title, .entry-title {
    margin-top: 10px;
    margin-bottom: 14px;
}

/* Schedule header becomes compact */
.ky-schedule #schedule_nav_filters {
    padding: 14px 14px;
    margin: 0 0 14px 0;
}

/* Make a single utility row */
.ky-schedule #schedule_nav_filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    align-items: center;
    gap: 12px;
}

/* Put location segmented on left */
.ky-schedule .menu-schedule-codes-container {
    justify-self: start;
}



/* Put class-type menu on right (Beginner-Friendly only) */
.ky-schedule .menu-schedule-class-type-container {
    justify-self: end;
}

/* If the class-type menu has only one item, make it a chip */
.ky-schedule .schedule-navbar {
    margin: 0;
    justify-content: flex-end;
}
/* Put nav cluster center */


.ky-home .ky-schedule .schedule-nav {
    display: flex;
    margin-bottom: 30px;
    justify-content: space-between;
    justify-self: normal;
}
.ky-home .schedule-date {
    text-align: center;
}
.ky-home .ky-schedule .schedule-nav a.slider_prev,
.ky-home .ky-schedule .schedule-nav a.slider_next {
    align-self: flex-end;
}

.ky-schedule .schedule-nav .previous-label,
.ky-schedule .schedule-nav .next-label {
    display: none;
}
.ky-schedule #schedule_nav_filters { padding: 12px 12px; }
.ky-schedule .schedule-table-wrapper { margin-top: 10px; }
.page .site-content, .page .content-area, .page .entry-content {
    padding-top: 0;
}

.ky-schedule .schedule-navbar{
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 6px 0 0 0;
    padding: 0;
    list-style: none;
}

.ky-schedule .schedule-navbar a{
    display: inline-flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(0,0,0,.04);
    border: 1px solid rgba(0,0,0,.10);
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 675px) {

    .schedule-table-wrapper {
        background: transparent;
        border: none;
        overflow: visible;
        box-shadow: none;
    }

    .ky-schedule .menu-schedule-codes-container, .ky-schedule #schedule_nav_filters .schedule-navbar {
        display: none;
    }

    .ky-schedule #schedule_nav_filters {
        grid-template-columns: 1fr;
    }

    .ky-schedule  table.schedules {
        margin: 0 auto;
    }
    table.schedules thead tr {
        display:none;
    }
    /* Reset float grid so we can control layout cleanly */
    table.schedules tr {
        display: grid;
        float: none;
        min-height: unset;
        margin: 0 0 16px 0;
        border-radius: 18px;
        border: 1px solid rgba(0,0,0,.08);
        box-shadow: 0 8px 24px rgba(0,0,0,.06);
        justify-content: center;
        align-items: center;
        justify-items: center;
    }

    table.schedules tr td {
        width: 100% !important;
        background: none !important;
    }

    table.schedules tr:first-child td {
        box-shadow: none;
        border-top: 0;
    }

    .ky-schedule table.schedules td {

        padding: 8px 6px;
        text-align: center;
        border-width: 0px;
        background: #ffffff;
        line-height:normal;
    }
    .ky-schedule table.schedules td:first-child {

    }
    .ky-schedule table.schedules td:nth-child(2) {

    }

    /* Time */
    table.schedules td.bold {
        font-size: 18px;
        font-weight: 700;
    }

    /* Class name */
    table.schedules td:nth-child(2) a {
        font-size: 17px;
        font-weight: 600;
        display: inline-block;
        margin-bottom: 4px;
    }


    /* Remove heavy blue date header on mobile */
    .schedule-wrapper h3 {
        background: transparent;
        color: #16202a;
        font-size: 22px;
        margin: 30px 0 12px 0;
        padding: 0;
        border: 0;
        text-align: center;
    }
    .schedule-wrapper h4 {
        text-align: center;
    }

    .schedule-table-wrapper a.ky-button .button_label_verbose {
        display: inline-block;
    }
    .schedule-table-wrapper a.ky-button .button_label   {
        display: none;
    }
    .reserve_return a.ky-button .button_label   {
        display: inline;
    }
    .ky-schedule table.schedules {
        width: auto;
    }
    tbody {
        display: grid;
        justify-content: space-around;
        gap: 0 18px;
        flex-direction: row;
        align-content: flex-start;
        grid-template-columns: repeat(2, 1fr);
    }

    tbody > *:only-child {
        grid-column: 1 / -1;
    }



}
