/* Calendar list: consolidated from WordPress Additional CSS. */
.circa-event-row.circa-event-past { filter: grayscale(100%); opacity: 0.45; }
.circa-event-list {
    --circa-club-width: 76px;
    --circa-date-width: 72px;
    --circa-time-width: 110px;
    width: 100%;
    border: 1px solid #d8dde3;
    border-radius: 0 0 8px 8px;
    overflow: visible;
    background: #fff;
}
.circa-event-header,
.circa-event-row {
    display: grid;
    grid-template-columns: var(--circa-club-width) var(--circa-date-width) var(--circa-time-width) minmax(0, 1fr);
    column-gap: 8px;
    align-items: center;
}
.circa-event-header {
    position: sticky;
    top: var(--circa-controls-height, 0px);
    z-index: 20;
    min-height: 46px;
    padding: 8px 14px;
    background: #263746;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 7px 7px 0 0;
}
.circa-event-row {
    min-height: 94px;
    padding: 12px 14px;
    color: inherit;
    text-decoration: none;
    border-top: 1px solid #e5e8eb;
    background: #fff;
    transition: background-color 120ms ease, box-shadow 120ms ease;
}
.circa-event-row:first-child { border-top: 0; }
.circa-event-row:hover,
.circa-event-row:focus-visible {
    color: inherit;
    text-decoration: none;
    background: #f5f8fa;
    box-shadow: inset 4px 0 0 #2d6a8a;
}
.circa-event-row:focus-visible { outline: 3px solid #2d6a8a; outline-offset: -3px; }
.circa-event-clubs { align-self: stretch; display: flex; align-items: center; justify-content: center; }
.circa-club-badges { display: flex; flex-wrap: wrap; gap: 6px; align-content: center; }
.circa-club-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    color: #fff;
    background: #536878;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}
/* One color definition serves each club's badge and filter button. */
.circa-club-peoria { background: #315f8c; }
.circa-club-peoria-north { background: #26715f; }
.circa-club-chillicothe { background: #a35b22; }
.circa-club-washington { background: #694f91; }
.circa-club-pekin { background: #9b3e48; }
.circa-club-morton { background: #4c6f39; }
.circa-event-date {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    line-height: 1; text-align: center;
}
.circa-event-day { font-size: 1.85rem; font-weight: 750; color: #263746; }
.circa-event-month { margin-top: 5px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; color: #64717c; }
.circa-event-time {
    display: flex; flex-direction: column; justify-content: center; gap: 4px;
    font-variant-numeric: tabular-nums; white-space: nowrap;
}
.circa-event-start { font-size: 0.95rem; font-weight: 700; color: #263746; }
.circa-event-end { font-size: 0.84rem; color: #6b747c; }
.circa-event-description { min-width: 0; }
.circa-event-title {
    margin: 0 0 4px; font-size: 1.05rem; font-weight: 750; line-height: 1.25; color: #1f2d38;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.circa-event-summary {
    display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    font-size: 0.84rem; line-height: 1.35; color: #66727c;
}
.circa-no-events { padding: 24px; text-align: center; }
/* Preserve the effective 0.3.1 column widths and gaps at all breakpoints.
   Responsive typography and row spacing remain as previously deployed. */
@media (max-width: 782px) {
    .circa-event-header { padding-left: 10px; padding-right: 10px; font-size: 0.65rem; }
    .circa-event-row { padding: 10px; }
    .circa-club-badge { width: 29px; height: 29px; flex-basis: 29px; font-size: 0.67rem; }
    .circa-event-day { font-size: 1.5rem; }
    .circa-event-start { font-size: 0.8rem; }
    .circa-event-end, .circa-event-summary { font-size: 0.74rem; }
    .circa-event-title { font-size: 0.92rem; }
}
@media (max-width: 560px) {
    .circa-event-header { padding: 7px 6px; }
    .circa-event-row { min-height: 82px; padding: 8px 6px; }
    .circa-club-badges { gap: 3px; }
    .circa-club-badge { width: 27px; height: 27px; flex-basis: 27px; }
    .circa-event-time { white-space: normal; }
    .circa-event-start, .circa-event-end { font-size: 0.7rem; }
    .circa-event-title { font-size: 0.83rem; }
    .circa-event-summary { font-size: 0.69rem; }
}

/* Calendar controls. */
.circa-event-controls {
            position: sticky;
            top: 0;
            z-index: 50;
            background: #fff;
        }

        body.admin-bar .circa-event-controls {
            top: 32px;
        }

        .circa-event-toolbar {
            position: relative;
            display: grid;
            grid-template-columns: 46px minmax(0, 1fr) 46px;
            align-items: center;
            min-height: 58px;
            padding: 6px 10px;
            border: 1px solid #d8dde3;
            border-bottom: 0;
            border-radius: 8px 8px 0 0;
            background: #fff;
        }

        .circa-event-toolbar-spacer {
            grid-column: 1;
        }

        .circa-version-marker {
            position: absolute;
            left: 10px;
            top: 50%;
            transform: translateY(-50%);
            color: #536878;
            font-family: Arial, Helvetica, sans-serif;
            font-size: 0.68rem;
            font-weight: 700;
            letter-spacing: 0.04em;
            line-height: 1;
            text-transform: uppercase;
            border: 1px solid #aab4bd;
            padding: 4px 6px;
            border-radius: 999px;
            background: #f7fafc;
            pointer-events: none;
        }

        .circa-event-brand {
            grid-column: 2;
            justify-self: center;
            color: inherit;
            text-decoration: none;
            font-family: Arial, Helvetica, sans-serif;
            font-size: clamp(1.55rem, 4vw, 2.3rem);
            font-weight: 800;
            line-height: 1;
            white-space: nowrap;
        }

        .circa-event-brand:hover,
        .circa-event-brand:focus {
            color: inherit;
            text-decoration: none;
        }

        .circa-domain-cir {
            color: #f7a81b;
        }

        .circa-domain-ca {
            color: #f7a81b;
            -webkit-text-stroke: 0.045em #1a202c;
            paint-order: stroke fill;
        }

        .circa-domain-rest {
            color: #1a202c;
        }

        .circa-menu-button {
            grid-column: 3;
            justify-self: end;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 42px;
            height: 42px;
            margin: 0;
            padding: 0;
            border: 0;
            border-radius: 50%;
            background: transparent;
            color: #263746;
            font-size: 1.7rem;
            line-height: 1;
            box-shadow: none;
            cursor: pointer;
        }

        .circa-menu-button:hover,
        .circa-menu-button:focus-visible {
            background: #edf3f7;
            color: #174a7e;
        }

        .circa-menu-panel {
            position: absolute;
            top: calc(100% - 4px);
            right: 10px;
            min-width: 170px;
            padding: 8px;
            border: 1px solid #cbd3da;
            border-radius: 7px;
            background: #fff;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
        }

        .circa-menu-panel[hidden],
        .circa-club-filter-row[hidden] {
            display: none !important;
        }

        .circa-menu-choice {
            display: flex;
            align-items: center;
            gap: 10px;
            min-height: 40px;
            margin: 0;
            padding: 6px 10px;
            color: #263746;
            font-size: 1rem;
            font-weight: 700;
            cursor: pointer;
        }

        .circa-menu-choice input {
            width: 19px;
            height: 19px;
            margin: 0;
            accent-color: #26715f;
        }

        .circa-club-filter-row {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 40px;
            align-items: center;
            gap: 12px;
            min-height: 60px;
            padding: 9px 14px;
            border: 1px solid #d8dde3;
            border-bottom: 0;
            background: #f7fafc;
        }

        .circa-club-filter-buttons {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
            gap: 12px;
            min-width: 0;
        }

        .circa-club-filter-close {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            justify-self: end;
            width: 40px;
            height: 40px;
            margin: 0;
            padding: 0;
            border: 0;
            border-radius: 50%;
            background: transparent;
            color: #263746;
            font-size: 1.6rem;
            line-height: 1;
            box-shadow: none;
            cursor: pointer;
        }

        .circa-club-filter-close:hover,
        .circa-club-filter-close:focus-visible {
            background: #edf3f7;
            color: #174a7e;
        }

        .circa-club-filter-close:focus-visible {
            outline: 3px solid #174a7e;
            outline-offset: 2px;
        }

        .circa-club-filter {
            position: relative;
            width: 38px;
            height: 38px;
            flex: 0 0 38px;
            margin: 0;
            padding: 0;
            border: 0;
            border-radius: 50%;
            color: #fff;
            font-size: 0.76rem;
            font-weight: 800;
            line-height: 1;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
            cursor: pointer;
        }

        .circa-club-filter[aria-pressed="false"] {
            filter: grayscale(100%);
            opacity: 0.28;
        }

        .circa-club-filter:focus-visible {
            outline: 3px solid #174a7e;
            outline-offset: 3px;
        }


        .circa-event-row.circa-filtered-out {
            display: none !important;
        }



        .circa-add-event {
            position: fixed;
            right: max(22px, env(safe-area-inset-right));
            bottom: max(22px, env(safe-area-inset-bottom));
            z-index: 60;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 58px;
            height: 58px;
            margin: 0;
            padding: 0;
            border: 0;
            border-radius: 50%;
            background: #f7c600;
            color: #0b3d91;
            font-size: 2.4rem;
            font-weight: 400;
            line-height: 1;
            text-decoration: none;
            box-shadow: 0 5px 16px rgba(0, 0, 0, 0.3);
        }

        .circa-add-event:hover,
        .circa-add-event:focus-visible {
            color: #0b3d91;
            background: #ffd83d;
            text-decoration: none;
            transform: translateY(-1px);
        }

        @media (max-width: 782px) {
            body.admin-bar .circa-event-controls { top: 46px; }
            .circa-event-toolbar { min-height: 54px; }
            .circa-club-filter-row { gap: 9px; min-height: 54px; }
            .circa-club-filter-buttons { gap: 9px; }
            .circa-club-filter { width: 34px; height: 34px; flex-basis: 34px; }
            .circa-add-event { width: 54px; height: 54px; }
        }
