.ep-pr-events {
    --ep-pr-bg: #ffffff;
    --ep-pr-card: #ffffff;
    --ep-pr-soft: #f2f8fd;
    --ep-pr-border: #cfe1ee;
    --ep-pr-text: #132238;
    --ep-pr-muted: #5d7188;
    --ep-pr-accent: #1e6fae;
    --ep-pr-accent-strong: #155d96;
    --ep-pr-accent-soft: #e8f3fb;
    --ep-pr-radius: 24px;
    color: var(--ep-pr-text);
    margin: 28px 0;
    font-family: inherit;
}

.ep-pr-header {
    margin-bottom: 18px;
}

.ep-pr-title {
    margin: 0;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.ep-pr-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.ep-pr-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ep-pr-tab {
    border: 1px solid var(--ep-pr-border);
    background: var(--ep-pr-bg);
    color: var(--ep-pr-text);
    border-radius: 999px;
    padding: 7px 8px 7px 16px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 24px rgba(21, 49, 81, 0.08);
}

.ep-pr-tab:hover,
.ep-pr-tab:focus-visible {
    border-color: var(--ep-pr-accent);
    outline: none;
    transform: translateY(-1px);
}

.ep-pr-tab.is-active {
    background: var(--ep-pr-accent);
    border-color: var(--ep-pr-accent);
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(30, 111, 174, 0.26);
}

.ep-pr-tab-label {
    display: inline-block;
}

.ep-pr-tab-count {
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.ep-pr-tab:not(.is-active) .ep-pr-tab-count {
    background: var(--ep-pr-accent-soft);
    color: var(--ep-pr-accent-strong);
}

.ep-pr-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ep-pr-stat-chip {
    background: var(--ep-pr-bg);
    border: 1px solid var(--ep-pr-border);
    border-radius: 16px;
    min-width: 110px;
    padding: 10px 14px;
    box-shadow: 0 10px 24px rgba(21, 49, 81, 0.06);
}

.ep-pr-stat-label {
    display: block;
    color: var(--ep-pr-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.ep-pr-stat-value {
    display: block;
    color: var(--ep-pr-accent-strong);
    font-size: 28px;
    line-height: 1;
    font-weight: 800;
}

.ep-pr-panel[hidden],
.ep-pr-details[hidden] {
    display: none;
}

.ep-pr-list {
    display: grid;
    gap: 18px;
}

.ep-pr-item {
    background: var(--ep-pr-card);
    border: 1px solid var(--ep-pr-border);
    border-radius: var(--ep-pr-radius);
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(16, 24, 40, 0.06);
}

.ep-pr-item-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) 34px;
    gap: 14px;
    align-items: center;
    text-align: left;
    padding: 15px 18px;
    cursor: pointer;
}

.ep-pr-item-toggle:hover,
.ep-pr-item-toggle:focus-visible {
    background: var(--ep-pr-soft);
    outline: none;
}

.ep-pr-date {
    display: grid;
    place-items: center;
    min-height: 82px;
    border-radius: 16px;
    background: linear-gradient(180deg, #f6fbff 0%, var(--ep-pr-accent-soft) 100%);
    color: var(--ep-pr-accent-strong);
    text-align: center;
    padding: 8px 8px;
    border: 1px solid var(--ep-pr-border);
}

.ep-pr-month {
    display: block;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ep-pr-day {
    display: block;
    font-size: 30px;
    line-height: 1;
    font-weight: 800;
    margin: 4px 0;
}

.ep-pr-year {
    display: block;
    font-size: 11px;
    line-height: 1.1;
    font-weight: 700;
    color: var(--ep-pr-muted);
}

.ep-pr-summary {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.ep-pr-event-title {
    font-size: clamp(19px, 2vw, 22px);
    line-height: 1.2;
    font-weight: 800;
}

.ep-pr-meta {
    color: var(--ep-pr-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    font-size: 14px;
    line-height: 1.35;
}

.ep-pr-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.ep-pr-meta-icon {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    color: var(--ep-pr-accent-strong);
}

.ep-pr-location .ep-pr-meta-icon {
    color: var(--ep-pr-accent);
}

.ep-pr-excerpt {
    color: #4c637a;
    font-size: 15px;
    line-height: 1.55;
}

.ep-pr-icon {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--ep-pr-soft);
    border: 1px solid var(--ep-pr-border);
}

.ep-pr-icon::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--ep-pr-accent-strong);
    border-bottom: 2px solid var(--ep-pr-accent-strong);
    transform: translate(-50%, -65%) rotate(45deg);
    transition: transform .2s ease;
}

.ep-pr-item-toggle[aria-expanded="true"] .ep-pr-icon::before {
    transform: translate(-50%, -35%) rotate(-135deg);
}

.ep-pr-details {
    border-top: 1px solid var(--ep-pr-border);
    background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
}

.ep-pr-details-inner {
    padding: 22px 24px 26px;
}

.ep-pr-image {
    margin-bottom: 18px;
}

.ep-pr-image img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    display: block;
}

.ep-pr-content {
    color: var(--ep-pr-text);
    line-height: 1.75;
    width: 100%;
    max-width: none;
}

.ep-pr-content > *:first-child {
    margin-top: 0;
}

.ep-pr-content > *:last-child {
    margin-bottom: 0;
}

.ep-pr-link-wrap {
    margin: 18px 0 0;
}

.ep-pr-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 11px 18px;
    background: var(--ep-pr-accent);
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
}

.ep-pr-link:hover,
.ep-pr-link:focus-visible {
    color: #ffffff;
    opacity: .92;
}

.ep-pr-empty {
    padding: 18px;
    background: var(--ep-pr-soft);
    border-radius: var(--ep-pr-radius);
    margin: 0;
}

@media (max-width: 820px) {
    .ep-pr-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .ep-pr-stats {
        width: 100%;
    }

    .ep-pr-stat-chip {
        flex: 1 1 120px;
    }
}

@media (max-width: 680px) {
    .ep-pr-item-toggle {
        grid-template-columns: 58px minmax(0, 1fr) 26px;
        gap: 10px;
        padding: 12px;
    }

    .ep-pr-date {
        min-height: 66px;
        border-radius: 14px;
    }

    .ep-pr-month {
        font-size: 10px;
    }

    .ep-pr-day {
        font-size: 24px;
        margin: 3px 0;
    }

    .ep-pr-year {
        font-size: 10px;
    }

    .ep-pr-event-title {
        font-size: 17px;
    }

    .ep-pr-meta,
    .ep-pr-excerpt {
        font-size: 13px;
    }

    .ep-pr-meta-icon {
        width: 14px;
        height: 14px;
        flex-basis: 14px;
    }

    .ep-pr-details-inner {
        padding: 18px;
    }
}
