/* Layout for the Monthly Archive widget. Proportions mirror the reference
   design; all colors and typography come from the Elementor Style tab. */

.custom-archive-list {
    max-width: 60em;
}

.custom-archive-list .archive-month-title {
    font-size: 1em;
    line-height: 1em;
    margin: 1.5em 0 0;
    font-weight: 400;
    text-transform: uppercase;
    width: 11%;
    text-align: center;
    white-space: nowrap;
}

.custom-archive-list .archive-month-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.custom-archive-list .archive-item {
    display: flex;
    padding: 1em 0;
    margin: 0;
}

/* Date column. It is a link, so the whole item is clickable. */
.custom-archive-list .archive-date-col {
    flex: 1 1 11%;
    width: 11%;
    text-align: center;
    margin-left: 1em;
    margin-right: 2em;
    text-decoration: none;
}

.custom-archive-list .day-number {
    font-size: 2.75em;
    line-height: 1em;
}

.custom-archive-list .day-name {
    font-size: small;
    display: block;
}

.custom-archive-list .archive-title-col {
    flex: 1 1 89%;
}

.custom-archive-list .archive-title-col h4 {
    margin: 0;
}

/* On hover the title slides right and the arrow slides into the gap it
   leaves behind, so nothing reflows around it. */
.custom-archive-list .archive-title-col a {
    display: block;
    position: relative;
    padding-right: 2em;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.custom-archive-list .archive-title-col a::after {
    content: "\27F6";
    position: absolute;
    /* Align the arrow visually with the vertical centre of the FIRST title line. */
    top: calc(-0.2em + 2px);
    left: -2em;
    display: inline-block;
    width: 2em;
    font-size: 1.2em;
    line-height: inherit;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.25s ease-in-out;
    transition-delay: 0.1s;
}

.custom-archive-list .archive-item:hover .archive-title-col a,
.custom-archive-list .archive-title-col a:focus-visible {
    padding-left: 2em;
    padding-right: 0;
}

.custom-archive-list .archive-item:hover .archive-title-col a::after,
.custom-archive-list .archive-title-col a:focus-visible::after {
    left: 0;
    opacity: 1;
}

/* Event location and time under the title. */
.custom-archive-list .archive-event-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 2em;
    row-gap: 0.35em;
    margin-top: 0.6em;
}

.custom-archive-list .event-detail-part {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 0.4em;
}

/* Local and converted time sit side by side behind one clock icon. */
.custom-archive-list .archive-event-time > span + span {
    margin-left: 1em;
}

.custom-archive-list .archive-event-location {
    text-transform: uppercase;
}

.custom-archive-list .event-detail-icon {
    flex: 0 0 auto;
    width: 1.1em;
    height: 1.1em;
}

.custom-archive-view-all {
    margin-top: 2em;
}

.custom-archive-view-all .archive-view-all-btn {
    display: inline-block;
    min-width: 9em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    transition: all 0.2s ease-in;
}

@media (max-width: 767px) {
    .custom-archive-list .archive-month-title {
        width: auto;
        text-align: left;
    }

    .custom-archive-list .archive-date-col {
        margin-left: 0;
        margin-right: 1em;
    }

    .custom-archive-view-all .archive-view-all-btn {
        display: block;
        max-width: 70%;
        margin-left: auto;
        margin-right: auto;
    }
}
