/*
 * Events (8 November 2026): the marker that says what the visitor does, an event's page, and the
 * past-events archive. Tokens only (assets/css/tokens.css). The cards themselves are What's On's
 * own (.bh-wo-card in components.css).
 */

/* What the visitor does: always words, never colour alone. A navy outline, so it reads on white and on a photograph. */
.bh-wo-card__action {
    align-self: flex-start;
    margin: 0;
    padding: 2px var(--bh-space-2);
    border: 2px solid var(--bh-navy);
    border-radius: var(--bh-radius-sm);
    background: var(--bh-white);
    color: var(--bh-navy);
    font-size: var(--bh-text-xs);
    font-weight: var(--bh-weight-bold);
}

/* Booking with Ballyhass is the one action the booking system completes: the brand's blue, with navy text. */
.bh-wo-card__action--book {
    border-color: var(--bh-blue);
    background: var(--bh-blue);
    color: var(--bh-on-blue);
}

.bh-wo-card__title a {
    color: inherit;
    text-decoration: none;
}

.bh-wo-card__title a:hover,
.bh-wo-card__title a:focus-visible {
    text-decoration: underline;
}

.bh-wo-card__time,
.bh-wo-card__summary {
    margin: 0;
    color: var(--bh-navy);
    font-size: var(--bh-text-sm);
    font-weight: var(--bh-weight-medium);
}

.bh-wo-card__summary {
    color: var(--bh-muted);
}

.bh-wo-archive {
    margin: var(--bh-space-8) 0 0;
}

/* An event's own page. */
.bh-event__preview,
.bh-event__ended {
    margin: 0 0 var(--bh-space-6);
    padding: var(--bh-space-3) var(--bh-space-4);
    border-radius: var(--bh-radius-none);
    background: var(--bh-navy);
    color: var(--bh-yellow);
    font-weight: var(--bh-weight-bold);
}

.bh-event__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--bh-space-8);
}

@media (min-width: 900px) {
    .bh-event__grid {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    }
}

.bh-event__lede {
    margin: 0 0 var(--bh-space-6);
    color: var(--bh-navy);
    font-size: var(--bh-text-md);
    font-weight: var(--bh-weight-semibold);
}

.bh-event__body {
    color: var(--bh-navy);
    font-weight: var(--bh-weight-medium);
}

.bh-event__aside {
    align-self: start;
    padding: var(--bh-space-5);
    border: 1px solid var(--bh-line);
    border-radius: var(--bh-radius-md);
    background: var(--bh-surface-2);
}

.bh-event__aside-title {
    margin: 0 0 var(--bh-space-3);
    color: var(--bh-navy);
    font-size: var(--bh-text-md);
    font-weight: var(--bh-weight-bold);
    text-transform: uppercase;
}

.bh-event__facts {
    margin: 0 0 var(--bh-space-4);
}

.bh-event__facts dt {
    margin: var(--bh-space-3) 0 0;
    color: var(--bh-blue-text);
    font-size: var(--bh-text-xs);
    font-weight: var(--bh-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bh-event__facts dd {
    margin: 0;
    color: var(--bh-navy);
    font-weight: var(--bh-weight-medium);
}

.bh-event__note {
    margin: var(--bh-space-3) 0 0;
    color: var(--bh-muted);
    font-size: var(--bh-text-xs);
}

.bh-event__cta {
    display: inline-block;
    padding: var(--bh-space-3) var(--bh-space-5);
    border-radius: var(--bh-radius-sm);
    background: var(--bh-blue);
    color: var(--bh-on-blue);
    font-weight: var(--bh-weight-bold);
    text-decoration: none;
}

.bh-event__cta:hover,
.bh-event__cta:focus-visible {
    background: var(--bh-navy);
    color: var(--bh-white);
}

.bh-event__gallery-title {
    margin: var(--bh-space-8) 0 var(--bh-space-4);
    color: var(--bh-navy);
    font-size: var(--bh-text-lg);
}

.bh-event__gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--bh-space-3);
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 640px) {
    .bh-event__gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.bh-event__gallery img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--bh-radius-sm);
}

.bh-event__back {
    display: flex;
    flex-wrap: wrap;
    gap: var(--bh-space-3) var(--bh-space-6);
    margin: var(--bh-space-8) 0 0;
}

/* The archive. */
.bh-eventarchive__filter {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: var(--bh-space-4);
    margin: 0 0 var(--bh-space-8);
}

.bh-eventarchive__field label {
    display: block;
    margin: 0 0 var(--bh-space-1);
    color: var(--bh-navy);
    font-size: var(--bh-text-xs);
    font-weight: var(--bh-weight-bold);
}

.bh-eventarchive__field select {
    min-width: 11rem;
    padding: var(--bh-space-2) var(--bh-space-3);
    border: 2px solid var(--bh-field-edge);
    border-radius: var(--bh-radius-sm);
    background: var(--bh-white);
    color: var(--bh-navy);
}

.bh-eventarchive__empty {
    margin: 0 0 var(--bh-space-8);
    color: var(--bh-navy);
    font-weight: var(--bh-weight-medium);
}

.bh-eventarchive__pages {
    margin: var(--bh-space-8) 0 0;
}

.bh-eventarchive__pages .page-numbers {
    display: inline-block;
    min-width: 2.75rem;
    margin: 0 var(--bh-space-1) var(--bh-space-2) 0;
    padding: var(--bh-space-2) var(--bh-space-3);
    border: 2px solid var(--bh-navy);
    border-radius: var(--bh-radius-sm);
    color: var(--bh-navy);
    font-weight: var(--bh-weight-bold);
    text-align: center;
    text-decoration: none;
}

.bh-eventarchive__pages .page-numbers.current {
    background: var(--bh-navy);
    color: var(--bh-white);
}

/*
 * Cancelled or postponed (9 November 2026): said in words at the top of the page and on the card,
 * as a navy block with yellow text and square corners, the brand's highlighted text. A cancelled
 * date of a series keeps its place in the list with the word beside it.
 */
.bh-event__state,
.bh-wo-card__event-state {
    margin: 0 0 var(--bh-space-6);
    padding: var(--bh-space-3) var(--bh-space-4);
    border-radius: var(--bh-radius-none);
    background: var(--bh-navy);
    color: var(--bh-yellow);
    font-weight: var(--bh-weight-semibold);
}

.bh-wo-card__event-state {
    margin: 0;
    padding: var(--bh-space-2) var(--bh-space-3);
    font-size: var(--bh-text-sm);
}

.bh-event__state strong,
.bh-wo-card__event-state strong {
    font-weight: var(--bh-weight-bold);
    text-transform: uppercase;
}

.bh-wo-card__date--cancelled time,
.bh-event__date--cancelled time {
    text-decoration: line-through;
}

.bh-wo-card__date-note {
    display: block;
    color: var(--bh-muted);
    font-size: var(--bh-text-xs);
}

.bh-event__dates {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bh-event__date {
    margin: 0 0 var(--bh-space-1);
}

.bh-event__more {
    margin: var(--bh-space-1) 0 0;
    font-size: var(--bh-text-sm);
}
