body
{
    font-family: Arial, sans-serif;
}

.calendarDIV
{
    padding-left: 2em;
    padding-right: 2em;
}

.calendar-nav
{
    text-align: center;
    margin: 20px;
}

.calendar
{
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    padding: 10px;
    max-width: 1440px;
    margin: auto;
    margin-bottom: 1em;
    min-width: 700px;

    width: fill-available;          /* Standard */
    width: -webkit-fill-available; /* Chrome, Safari */
    width: -moz-available;          /* Firefox */
}

.weekday
{
    font-weight: bold;
    background-color: #eee;
    text-align: center;
    padding: 8px;
    height: auto;
    line-height: 1.25em;
    border: 1px solid #ccc;
    font-size: 14px;
}

.day
{
    padding: 10px;
    border: 1px solid #ccc;
    min-height: 80px;
    background: #f9f9f9;
    font-size: 14px;
}

.day strong
{
    font-size: 13px;
}

.empty
{
    background-color: #fff;
    border: none;
}

.event
{
    background-color: #0077cc;
    color: #fff;
    padding: 4px 6px;
    font-size: 12px;
    border-radius: 4px;
    margin-top: 6px;
}

.event a
{
    color: #fff;
    text-decoration: none;
}

h2
{
    text-align: center;
    font-size: 24px;
}

.hoverable:hover
{
    background-color: #e6f2ff;
    cursor: pointer;
}

.event-link
{
    text-decoration: none;
    color: inherit;
    display: block;
    margin-top: 6px;
}

.event
{
    background-color: #0077cc;
    color: #fff;
    padding: 6px 8px;
    font-size: 12px;
    border-radius: 4px;
}



/* ✅ Mobile responsiveness */
@media (max-width: 768px)
{
    .calendar
    {
        display: block;
        min-width: 200px;
    }

    .weekday
    {
        display: none; /* Hide weekday headers on small screens */
    }

    .day.empty
    {
        display: none; /* Hide padding cells on mobile */
    }

    .day
    {
        margin-bottom: 12px;
        min-height: auto;
        border: 1px solid #ddd;
        border-radius: 6px;
    }

    .calendar-nav
    {
        font-size: 16px;
        line-height: 1.5;
    }

    .event
    {
        font-size: 14px;
        padding: 6px 8px;
    }

    h2
    {
        font-size: 20px;
    }
}
