.calendar {
    width: var(--calendar-size-width, 300px);
    max-width: 100%;
    margin: 0 auto;
    font-family: inherit;
}

.calendar .calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2px 0;
}

.calendar .calendar-header .cal-title {
    font-weight: 700;
}

.calendar .calendar-header .cal-title > button {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.calendar .calendar-header .cal-title > button:hover {
    text-decoration: none;
}

.calendar .calendar-header .cal-nav {
    padding: 5px 10px;
    border: 0;
    background: none;
    color: inherit;
    font-size: 16px;
    cursor: pointer;
}

.calendar .cal-cell {
    position: relative;
    padding: 10px 0;
    color: inherit;
    font: inherit;
    text-align: center;
    cursor: pointer;
}

.calendar .calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
}

.calendar .day-name {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
}

.calendar .day-number {
    position: relative;
    z-index: 1;
}

.calendar .calendar-months {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
}

.calendar .calendar-years {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
}

.calendar .today-dot {
    position: absolute;
    top: 4px;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    transform: translateX(-50%);
}

.calendar .event-dots {
    display: block;
    min-height: 8px;
    line-height: 6px;
}

.calendar .event-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 1px;
    border-radius: 50%;
}
