.CalendarMonth-Table {
    display: grid;
    grid-template-columns:repeat(7, 1fr)
}

.CalendarMonth-Title {
    margin-bottom: 5px;
    font-size: 1.2rem
}

.CalendarMonth-Day, .CalendarMonth-Title {
    font-weight: 500;
    color: var(--color-primary)
}

.CalendarMonth-Day {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    width: 40px;
    height: 38px;
    padding: 2px;
    font-size: 1rem;
    vertical-align: bottom;
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border)
}

.CalendarMonth-Day:nth-child(7n):after {
    right: -6px
}

.CalendarMonth-Day:nth-child(7n):after, .CalendarMonth-Day:nth-child(7n+1):before {
    content: "";
    position: absolute;
    top: 0;
    width: 6px;
    height: 100%;
    border-bottom: 1px solid var(--color-border)
}

.CalendarMonth-Day:nth-child(7n+1):before {
    left: -6px;
    border-right: 1px solid var(--color-border)
}

.CalendarMonth-Day:nth-last-child(-n+7) {
    height: 6px;
    border-bottom: none
}

.CalendarMonth-Day:nth-last-child(-n+7):before {
    border-bottom: none
}

.CalendarMonth-Day:nth-last-child(-n+7):after {
    border: none
}

.CalendarMonth-Link {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    height: 100%
}

.CalendarMonth-DayNum {
    margin-top: auto;
    text-align: right
}

.CalendarMonth-Link {
    cursor: pointer
}

.CalendarMonth-PostsCount {
    width: 15px;
    height: 15px;
    text-align: center;
    line-height: 15px;
    color: var(--color-lightest);
    background-color: var(--color-secondary);
    border-radius: 50%
}

.CalendarMonth-PostsCount:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 7px;
    height: 7px;
    background: -webkit-gradient(linear, left bottom, right top, color-stop(50%, var(--color-lightest)), color-stop(50%, var(--color-highlight)));
    background: linear-gradient(to top right, var(--color-lightest) 50%, var(--color-highlight) 0)
}

.CalendarMonth-Weekday {
    height: 15px;
    padding: 1px;
    text-align: center
}

.CalendarMonth-Weekday--Weekend {
    color: var(--color-secondary)
}