/* Kasumi Dojo calendar repair build v2.09
   Fully scoped to #kasumi-calendar-app so it cannot alter instructors, map, sliders or other page modules. */
#calendars {
    scroll-margin-top: 110px;
}

#calendars .kasumi-calendar-wrap {
    width: 100%;
    max-width: 1180px;
    margin: 34px auto 0;
    padding: 26px;
    background: #070707;
    border: 1px solid #2a2a2a;
    box-shadow: 0 18px 46px rgba(0,0,0,.30);
}

#kasumi-calendar-app,
#kasumi-calendar-app * {
    box-sizing: border-box;
}

#kasumi-calendar-app {
    color: #ededed;
    font-family: Arial, Helvetica, sans-serif;
}

#kasumi-calendar-app .kcal-toolbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    margin: 0 0 18px;
}

#kasumi-calendar-app .kcal-toolbar__nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

#kasumi-calendar-app .kcal-title {
    margin: 0;
    text-align: center;
    color: #fff;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .02em;
}

#kasumi-calendar-app .kcal-btn {
    min-width: 40px;
    height: 38px;
    padding: 0 13px;
    border: 1px solid #3e3e3e;
    border-radius: 2px;
    background: #111;
    color: #eee;
    font-size: 13px;
    font-weight: 700;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, color .16s ease;
}

#kasumi-calendar-app .kcal-btn:hover,
#kasumi-calendar-app .kcal-btn:focus {
    border-color: #9a0606;
    background: #380202;
    color: #fff;
    outline: none;
}

#kasumi-calendar-app .kcal-subtitle {
    margin: -7px 0 20px;
    color: #a9a9a9;
    text-align: center;
    font-size: 13px;
    line-height: 1.5;
}

#kasumi-calendar-app .kcal-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-color: #4a4a4a #101010;
}

#kasumi-calendar-app .kcal-month {
    min-width: 880px;
    border-top: 1px solid #303030;
    border-left: 1px solid #303030;
}

#kasumi-calendar-app .kcal-weekdays,
#kasumi-calendar-app .kcal-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

#kasumi-calendar-app .kcal-weekday {
    padding: 10px 8px;
    border-right: 1px solid #303030;
    border-bottom: 1px solid #303030;
    background: #101010;
    color: #aaa;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .10em;
    text-transform: uppercase;
}

#kasumi-calendar-app .kcal-day {
    position: relative;
    min-height: 142px;
    padding: 9px 7px 8px;
    border-right: 1px solid #303030;
    border-bottom: 1px solid #303030;
    background: #070707;
}

#kasumi-calendar-app .kcal-day:hover {
    background: #0b0b0b;
}

#kasumi-calendar-app .kcal-day.is-other-month {
    background: #050505;
}

#kasumi-calendar-app .kcal-day.is-today {
    background: linear-gradient(180deg, #110304 0%, #080707 55%);
    box-shadow: inset 0 3px 0 #9a0606;
}

#kasumi-calendar-app .kcal-day__number {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 28px;
    margin: 0 1px 5px;
    color: #dedede;
    font-size: 18px;
    font-weight: 400;
}

#kasumi-calendar-app .is-other-month .kcal-day__number {
    color: #515151;
}

#kasumi-calendar-app .is-today .kcal-day__number {
    color: #fff;
    font-weight: 700;
}

#kasumi-calendar-app .kcal-events {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#kasumi-calendar-app .kcal-event {
    display: block;
    width: 100%;
    padding: 5px 6px;
    border: 0;
    border-left: 3px solid rgba(255,255,255,.35);
    border-radius: 2px;
    color: #fff;
    text-align: left;
    cursor: pointer;
    font: inherit;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
    transition: filter .15s ease, transform .15s ease;
}

#kasumi-calendar-app .kcal-event:hover,
#kasumi-calendar-app .kcal-event:focus {
    filter: brightness(1.15);
    transform: translateY(-1px);
    outline: 1px solid rgba(255,255,255,.3);
}

#kasumi-calendar-app .kcal-event__time {
    display: block;
    margin-bottom: 2px;
    opacity: .90;
    font-size: 10px;
    line-height: 1.15;
    font-weight: 400;
}

#kasumi-calendar-app .kcal-event__title {
    display: block;
    font-size: 10px;
    line-height: 1.22;
    font-weight: 700;
    overflow-wrap: anywhere;
}

#kasumi-calendar-app .kcal-status {
    min-height: 20px;
    margin-top: 14px;
    color: #9d9d9d;
    font-size: 12px;
    line-height: 1.5;
}

#kasumi-calendar-app .kcal-status.is-error {
    padding: 10px 12px;
    border-left: 3px solid #9a0606;
    background: #151515;
    color: #d0d0d0;
}

/* Modal is intentionally namespaced and does not touch the theme modal styles. */
#kasumi-calendar-app .kcal-modal {
    position: fixed;
    z-index: 2147481000;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(0,0,0,.84);
}

#kasumi-calendar-app .kcal-modal.is-open {
    display: flex;
}

#kasumi-calendar-app .kcal-modal__dialog {
    position: relative;
    width: min(560px, 100%);
    max-height: calc(100vh - 44px);
    overflow-y: auto;
    padding: 30px 30px 26px;
    border: 1px solid #373737;
    border-top: 4px solid #9a0606;
    background: #111;
    box-shadow: 0 28px 85px rgba(0,0,0,.72);
}

#kasumi-calendar-app .kcal-modal__close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #aaa;
    font-size: 29px;
    line-height: 34px;
    cursor: pointer;
}

#kasumi-calendar-app .kcal-modal__close:hover,
#kasumi-calendar-app .kcal-modal__close:focus {
    color: #fff;
    outline: none;
}

#kasumi-calendar-app .kcal-modal__title {
    margin: 0 38px 18px 0;
    color: #fff;
    font-size: 21px;
    line-height: 1.35;
    font-weight: 700;
}

#kasumi-calendar-app .kcal-modal__line,
#kasumi-calendar-app .kcal-modal__description {
    margin: 0 0 9px;
    color: #c8c8c8;
    font-size: 13px;
    line-height: 1.55;
}

#kasumi-calendar-app .kcal-modal__line strong {
    display: inline-block;
    min-width: 78px;
    color: #fff;
}

#kasumi-calendar-app .kcal-modal__description {
    margin-top: 17px;
    padding-top: 15px;
    border-top: 1px solid #303030;
    white-space: pre-line;
}

@media (max-width: 767px) {
    #calendars .kasumi-calendar-wrap {
        width: calc(100% - 16px);
        margin-top: 22px;
        padding: 16px 10px 18px;
    }

    #kasumi-calendar-app .kcal-toolbar {
        grid-template-columns: 1fr auto;
        gap: 10px;
    }

    #kasumi-calendar-app .kcal-title {
        grid-column: 1 / -1;
        grid-row: 1;
        font-size: 18px;
    }

    #kasumi-calendar-app .kcal-toolbar__nav:first-child {
        grid-column: 1;
        grid-row: 2;
    }

    #kasumi-calendar-app .kcal-toolbar__nav:last-child {
        grid-column: 2;
        grid-row: 2;
        justify-content: flex-end;
    }

    #kasumi-calendar-app .kcal-subtitle {
        margin-top: 0;
        font-size: 12px;
    }

    #kasumi-calendar-app .kcal-month {
        min-width: 780px;
    }

    #kasumi-calendar-app .kcal-day {
        min-height: 126px;
    }
}
