.calendar-page {
    min-height: 100vh;
}

.calendar-page .search-results {
    z-index: 1;
}

.calendar-shell {
    width: min(35rem, calc(100% - 2rem));
    margin: 0 auto;
    padding: 3.5rem 0 5rem;
}

.calendar-heading {
    display: grid;
    grid-template-columns: 3rem 1fr 3rem;
    align-items: center;
    margin-bottom: 1.4rem;
}

.calendar-heading h1 {
    margin: 0;
    /* font-family: Georgia, serif; */
    font-size: 1.55rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-align: center;
}

.calendar-heading button {
    min-width: 2.75rem;
    min-height: 2.75rem;
    border: 0;
    color: #979d97;
    background: transparent;
    cursor: pointer;
}

.calendar-heading button:hover,
.calendar-heading button:focus-visible {
    color: #383c38;
}

.calendar-weekdays,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    column-gap: 0.35rem;
}

.calendar-grid {
    row-gap: 0.45rem;
}

.calendar-weekdays span {
    padding: 0.5rem 0;
    color: #777d77;
    text-align: center;
}

.calendar-day,
.calendar-blank {
    position: relative;
    display: grid;
    place-items: center;
    justify-self: center;
    width: min(3rem, 100%);
    aspect-ratio: 1;
    border-radius: 50%;
    text-decoration: none;
}

.calendar-day.has-articles:not(.selected):hover {
    background: #f0f0f0;
}

.calendar-day.has-articles:focus-visible,
.calendar-day.selected {
    background: #e0e0e0;
}

.calendar-day i {
    position: absolute;
    bottom: 10%;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: #70d68a;
}

.calendar-summary {
    color: #858b85;
    text-align: center;
}

.calendar-entries {
    margin-top: 2.5rem;
    padding-top: 1rem;
}

.calendar-entries[hidden] {
    display: none;
}

.calendar-entries h2 {
    margin: 0 0 1rem;
    color: #8d938d;
    font-size: 1rem;
    font-weight: 400;
}

.calendar-entry {
    padding: 1.2rem 0;
    border-top: 1px solid #202320;
}

.calendar-entry h3 {
    margin: 0;
    /* font-family: Georgia, "Songti SC", serif; */
    font-size: 1.2rem;
    font-weight: 400;
}

.calendar-entry h3 a {
    text-underline-offset: 0.25rem;
}

.calendar-entry p {
    margin: 0.5rem 0;
    color: #999f99;
    /* font-family: Georgia, "Songti SC", serif; */
}

.calendar-entry div {
    color: #276b42;
    font-size: 0.85rem;
}

.calendar-entry div a {
    text-decoration: none;
}

@media (max-width: 520px) {
    .calendar-shell {
        padding-top: 2rem;
    }
}
