.tmsc-calendar-wrapper {
    font-family: "canada-type-gibson", sans-serif;
    background: #186abe;
    color: #ffffff;
    padding: 24px;
    border-radius: 0;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.tmsc-calendar-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 0 0, rgba(255,255,255,0.12), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(0,0,0,0.15), transparent 55%);
    opacity: 0.35;
    pointer-events: none;
}

.tmsc-calendar-header,
.tmsc-calendar-headings,
.tmsc-calendar-grid {
    position: relative;
    z-index: 1;
}

/* header */

.tmsc-calendar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 12px;
    padding: 12px 16px;
    background: #c0167d;
}

.tmsc-month-title {
    margin: 0;
    font-size: 1.9rem;
    text-transform: uppercase;
    text-align: center;
    color: #ffffff;
    letter-spacing: 0;
}

.tmsc-nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0;
    background: #c0167d;
    color: #ffffff;
    font-size: 1.6rem;
    line-height: 1;
    text-decoration: none;
    border: none;
    box-shadow: none;
    padding-bottom: 6px;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.tmsc-nav-button:hover {
    transform: translateY(-1px);
    background: #ffffff;
    color: #186abe;
    box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}

.tmsc-nav-hidden {
    visibility: hidden;
}

/* day headings */

.tmsc-calendar-headings {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 8px;
}

.tmsc-day-heading {
    text-align: center;
    font-weight: 700;
    font-size: 1em;
    text-transform: uppercase;
    opacity: 0.9;
    letter-spacing: 0;
}

/* grid */

.tmsc-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: 128px;
    gap: 10px;
}

.tmsc-calendar-row {
    display: contents;
}

/* day cells */

.tmsc-day-cell {
    background: rgba(0,0,0,0.32);
    border-radius: 0;
    padding: 10px 10px 8px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: 0 8px 18px rgba(0,0,0,0.35);
    position: relative;
}

.tmsc-empty-cell {
    background: rgba(0,0,0,0.18);
    border-radius: 0;
}

/* date + weekday */

.tmsc-day-number-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tmsc-day-number {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.9;
    letter-spacing: 0;
}

.tmsc-day-name {
    display: none;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.9;
    letter-spacing: 0;
}

/* events */

.tmsc-events-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.tmsc-event {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    border-radius: 0;
    padding: 5px 10px;
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    background: #ffffff;
    border: none;
    color: #186abe;
    letter-spacing: 0;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.tmsc-event-time {
    display: inline-block;
}

.tmsc-event:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.45);
    background: #fedc23;
    color: #186abe;
}

/* info */

.tmsc-info {
    margin-top: 14px;
    font-size: 0.85rem;
    opacity: 0.85;
}

/* responsive */

@media (max-width: 900px) {
    .tmsc-calendar-wrapper {
        padding: 24px 14px 20px;
        border-radius: 0;
    }

    .tmsc-month-title {
        font-size: 1.4rem;
    }

    .tmsc-calendar-grid {
        grid-auto-rows: 105px;
        gap: 8px;
    }

    .tmsc-calendar-headings {
        gap: 8px;
    }

    .tmsc-day-cell,
    .tmsc-empty-cell {
        border-radius: 0;
    }

    .tmsc-day-number {
        font-size: 0.8rem;
    }

    .tmsc-event {
        font-size: 0.72rem;
        padding: 4px 8px;
    }
}

@media (max-width: 720px) {

    .tmsc-calendar-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 10px;
    }

    .tmsc-calendar-headings {
        display: none;
    }

    .tmsc-empty-cell {
        display: none;
    }

    .tmsc-mobile-hide-pre-event {
        display: none;
    }

    .tmsc-day-name {
        display: inline-block;
    }

    .tmsc-nav-button {
        width: 34px;
        height: 34px;
        font-size: 1.3rem;
    }

    .tmsc-day-cell {
        border-radius: 0;
    }
}
