:root {
    --default-calendar-color: #d10b0b;
}

:where(acdh-ch-calendar) {
    display: grid;
    font-size: 1rem;
    gap: 2rem
}

acdh-ch-calendar {
    display: grid;
    gap: 4rem;
}

acdh-ch-calendar-year {
	justify-content: center;
}

acdh-ch-calendar caption {
    caption-side: top;
    text-align: center;
}

@media (min-width: 40rem) {
    acdh-ch-calendar {
        grid-template-columns: 14rem 1fr;
    }
}

acdh-ch-calendar>label>span {
    display: block;
    font-weight: 600;
    margin-block-end: 1rem;
}

acdh-ch-calendar-year-picker div[role="radiogroup"] {
    gap: 0 2rem;
}

acdh-ch-calendar-year-picker div[role="radiogroup"]>label {
    line-height: 2rem;
}


:where(acdh-ch-calendar-year td > button[data-event-kinds])::after {
    border-radius: 50%;
}


/** When using tailwindcss, explicitly set text and background colors of events. */
acdh-ch-calendar-year td>* {
    background-color: var(--calendar-cell-color);
    color: var(--calendar-cell-color-foreground);
}

acdh-ch-calendar-year td>button[data-event-kinds] {
    --calendar-cell-color: #d10b0b;
}





/* the select radio group */
input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

input[type="radio"]:checked+span {
    outline: 2px solid var(--default-calendar-color);
    border-radius: 10%;
    outline-offset: 2px;
}

.dot {
    height: 25px;
    width: 25px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
  }

.legend-item {
    padding-left: 1em
}

acdh-ch-calendar-legend li {
    padding-block: 0.5em;
    display: flex;
    align-items: center ;
}