/* BoC u3a Event Cards */

.boc-u3a-event-card {
    margin: 0 0 0.75rem;
}

.boc-u3a-event-card:last-child {
    margin-bottom: 0;
}

.boc-u3a-event-card__link {
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    min-height: 4.75rem;
    padding: 0.7rem 0.9rem;
    background: #fff;
    border: 1px solid rgba(0, 87, 184, 0.16);
    border-radius: 0.55rem;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.boc-u3a-event-card__link:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 87, 184, 0.38);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.boc-u3a-event-card__link:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.boc-u3a-event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 4rem;
    min-height: 4rem;
    padding: 0.25rem;
    background: var(--wp--preset--color--uta-blue, #0057b8);
    color: #fff;
    border-radius: 0.45rem;
    line-height: 1;
    text-align: center;
}

.boc-u3a-event-date__day {
    display: block;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1;
}

.boc-u3a-event-date__month {
    display: block;
    margin-top: 0.28rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.boc-u3a-event-card__content {
    display: block;
    min-width: 0;
}

.boc-u3a-event-card__title {
    display: block;
    color: var(--wp--preset--color--uta-blue, #0057b8);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
}

.boc-u3a-event-card__time {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.92rem;
    line-height: 1.35;
}

.boc-u3a-event-card__excerpt {
    margin-top: 0.35rem;
    font-size: 0.92rem;
    line-height: 1.45;
}

.boc-u3a-event-card__arrow {
    color: var(--wp--preset--color--uta-blue, #0057b8);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1;
}

/* A date-only shortcode can also be used separately inside a Query Loop. */
.boc-u3a-event-date + .wp-block-post-title {
    margin-top: 0.5rem;
}

@media (max-width: 600px) {
    .boc-u3a-event-card__link {
        grid-template-columns: 3.5rem minmax(0, 1fr) auto;
        gap: 0.75rem;
        padding: 0.65rem;
    }

    .boc-u3a-event-date {
        width: 3.5rem;
        min-height: 3.5rem;
    }

    .boc-u3a-event-date__day {
        font-size: 1.45rem;
    }

    .boc-u3a-event-card__title {
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .boc-u3a-event-card__link {
        transition: none;
    }

    .boc-u3a-event-card__link:hover {
        transform: none;
    }
}
