body.single-event .blog-single-title,
body.single-event .blog-single-meta,
body.single-event .single-social-section,
body.single-event .mk-about-author-wrapper,
body.single-event .blog-similar-posts,
body.single-event #mk-page-introduce,
.mk-post-nav {
    display: none;
}



.event-list-item {
    display: flex;
    border: 1px solid #dddddd;
    margin-bottom: 20px;
    gap: 20px;
    align-items: center;
}
body.single-event .event-list-item {
    border: none;
}

body.single-event  h1 {
    font-size: 40px;
}
.event-list-item:hover {
    background: #f4f4f4;
    box-shadow: 2px 2px 12px rgba(0,0,0,0.1);
}
body.single-event .event-list-item:hover {
    background: white;
    box-shadow: none;
}
.event-list-item .event-list-item-thumb {
    width: 15%;
}
.event-list-item .event-list-item-date {
    width: 8%;
    min-width: 100px;
}
.event-list-item .event-list-item-content {
    width: 77%;
    padding: 16px;
}

.event-date-box {
    border: 1px solid #004881;
    padding: 5px;
}
.event-date-box .event-date-box-inner {
    background: #004881;
    color: white;
    text-align: center;
    padding: 10px 5px;
}
.event-date-box .event-date-box-inner > div {
    margin-bottom: 5px;
}
.event-date-box .event-date-box-yy {
    font-size: 14px;
}
.event-date-box .event-date-box-dd {
    font-size: 40px;
    font-weight: bolder;
}
.event-date-box .event-date-box-mm {
    font-size: 18px;
    font-weight: bolder;
}

.event-view-buttons {
    margin: 15px auto;
}
.event-view-buttons > a {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid #004881;
    color: #004881;
    margin-right: 5px;
    font-size: 14px;
    text-decoration: none;
}

/**

Calendar

 */
.calendar {
    display: flex;
    flex-wrap: nowrap;
    flex-flow: column;
    min-width: 800px;
    overflow: scroll;
}
.calendar .header .month-year {
    font-size: 18px;
    font-weight: bold;
    color: #636e73;
    padding: 20px 0;
}
.calendar .days {
    display: flex;
    flex-flow: wrap;
}
.calendar .days .day_name {
    width: calc(100% / 7);
    border-right: 1px solid #2c7aca;
    padding: 20px;
    text-transform: uppercase;
    font-size: 20px;
    font-weight: bold;
    color: #818589;
    color: #fff;
    background-color: #448cd6;
}
.calendar .days .day_name:nth-child(7) {
    border: none;
}
.calendar .days .day_num {
    display: flex;
    flex-flow: column;
    width: calc(100% / 7);
    border-right: 1px solid #e6e9ea;
    border-bottom: 1px solid #e6e9ea;
    padding: 15px;
    font-weight: bold;
    color: #7c878d;
    cursor: pointer;
    min-height: 100px;
}
.calendar .days .day_num span {
    display: inline-flex;
    width: 30px;
    font-size: 14px;
}
.calendar .days .day_num .event {
    margin-top: 5px;
    font-weight: 500;
    font-size: 13px;
    line-height: 120%;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: #f7c30d;
    color: #fff;
    word-wrap: break-word;
    text-decoration: none;
}
.calendar .days .day_num .event.green {
    background-color: #51ce57;
}
.calendar .days .day_num .event.blue {
    background-color: #518fce;
}
.calendar .days .day_num .event.red {
    background-color: #ce5151;
}
.calendar .days .day_num:nth-child(7n+1) {
    border-left: 1px solid #e6e9ea;
}
.calendar .days .day_num:hover {
    background-color: #fdfdfd;
}
.calendar .days .day_num.ignore {
    background-color: #f4f4f4;
    color: #ced2d4;
    cursor: inherit;
    font-size: 13px;
    line-height: 120%;
}
.calendar .days .day_num.selected {
    background-color: #f1f2f3;
    cursor: inherit;
}
#calendar-datepicker {
    margin-bottom: 15px;
    font-size: 18px;
    padding: 10px 20px
}


@media only screen and (max-width: 768px) {
    #events-list .event-list-item .event-list-item-thumb {
        display: none !important;
    }
    .event-list-item .event-list-item-date {
        padding-left: 20px;
        width: 8%;
        min-width: 100px;
    }
}

/* ------------------------------------------------------------------
 * Event single
 * ------------------------------------------------------------------ */
.eps-event-single {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}
.eps-event-image {
    margin: 0 0 30px;
}
.eps-event-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
}
.eps-event-title {
    margin: 0 0 30px;
}
.eps-event-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 40px;
    align-items: start;
}
.eps-event-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
}
.eps-event-meta .event-date-box {
    flex: 0 0 90px;
}
.eps-event-meta ul,
.eps-event-section ul,
.eps-event-add-to-calendar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.eps-event-meta li {
    margin-bottom: 4px;
}
.eps-event-meta .eps-event-when {
    font-weight: bold;
}
.eps-event-section {
    border-top: 1px solid #dddddd;
    padding-top: 16px;
    margin-top: 20px;
}
.eps-event-section h3 {
    font-size: 18px;
    margin: 0 0 10px;
}
.eps-event-section p,
.eps-event-section address {
    margin: 0 0 8px;
    font-style: normal;
}
.eps-links li {
    display: inline-block;
    margin-right: 14px;
}
.eps-organizer-logo img {
    max-width: 160px;
    height: auto;
    margin-bottom: 10px;
}

/* tickets */
.eps-event-tickets li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 12px;
    padding: 8px 0;
    border-bottom: 1px dashed #dddddd;
}
.eps-event-tickets li:last-child {
    border-bottom: none;
}
.eps-ticket-price {
    font-weight: bold;
    text-align: right;
}
.eps-ticket-description {
    grid-column: 1 / -1;
    font-size: 14px;
    color: #666666;
}

/* add to calendar */
.eps-event-add-to-calendar {
    position: relative;
    display: inline-block;
}
.eps-event-add-to-calendar summary {
    display: inline-block;
    cursor: pointer;
    list-style: none;
    padding: 8px 16px;
    border: 1px solid #004881;
    color: #004881;
    font-weight: bold;
}
.eps-event-add-to-calendar summary::-webkit-details-marker {
    display: none;
}
.eps-event-add-to-calendar summary::after {
    content: " \25BE";
}
.eps-event-add-to-calendar[open] summary {
    background: #004881;
    color: #ffffff;
}
.eps-event-add-to-calendar ul {
    position: absolute;
    z-index: 10;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #ffffff;
    border: 1px solid #dddddd;
    box-shadow: 2px 2px 12px rgba(0,0,0,0.1);
}
.eps-event-add-to-calendar a {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
}
.eps-event-add-to-calendar a:hover {
    background: #f4f4f4;
}

@media only screen and (max-width: 900px) {
    .eps-event-layout {
        grid-template-columns: 1fr;
    }
    .eps-event-sidebar {
        order: -1;
    }
}

/* status */
.eps-status-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #ffffff;
    background: #666666;
    vertical-align: middle;
    margin-right: 6px;
}
.eps-event-status--cancelled .eps-status-badge,
.eps-status-badge--cancelled { background: #b32d2e; }
.eps-event-status--postponed .eps-status-badge,
.eps-status-badge--postponed { background: #c26a00; }
.eps-event-status--sold_out .eps-status-badge,
.eps-status-badge--sold_out { background: #444444; }
.eps-event-status {
    margin-bottom: 16px;
}
.eps-status-note {
    display: block;
    margin-top: 6px;
    font-weight: bold;
}
.eps-event-status-cancelled .eps-event-title,
.event-list-item.eps-event-status-cancelled h3 a {
    text-decoration: line-through;
}
.event-list-item.eps-event-status-cancelled {
    opacity: .7;
}

/* registration */
.eps-event-registration {
    margin: 0 0 16px;
}
.eps-button {
    display: inline-block;
    padding: 12px 24px;
    background: #004881;
    color: #ffffff !important;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
}
.eps-button:hover {
    background: #00365f;
}
.eps-button--disabled,
.eps-button--disabled:hover {
    background: #999999;
    cursor: not-allowed;
}
.eps-event-registration .eps-button {
    display: block;
}

/* map */
.eps-event-map {
    position: relative;
    margin: 10px 0 12px;
    aspect-ratio: 4 / 3;
    background: #f1f2f3;
}
.eps-event-map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* list rows */
.event-list-item .eps-event-summary {
    margin: 0 0 8px;
}


/* ==================================================================
 * Calendar views (toolbar, cards, month grid, agenda)
 * Override these variables in your theme to restyle.
 * ================================================================== */
.eps-calendar {
    --eps-accent: #004881;
    --eps-accent-dark: #00365f;
    --eps-border: #dddddd;
    --eps-muted: #6b7280;
    --eps-bg-soft: #f4f5f7;
    --eps-radius: 6px;
    position: relative;
    margin: 0 0 40px;
}
.eps-calendar *,
.eps-calendar *::before,
.eps-calendar *::after {
    box-sizing: border-box;
}
.eps-calendar .screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.eps-calendar-results {
    transition: opacity .15s ease;
}
.eps-calendar.is-loading .eps-calendar-results {
    opacity: .45;
    pointer-events: none;
}

/* ---- toolbar ---- */
.eps-calendar-toolbar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 0 20px;
    padding: 14px;
    background: var(--eps-bg-soft);
    border-radius: var(--eps-radius);
}
.eps-toolbar-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.eps-toolbar-row--top {
    justify-content: space-between;
}
.eps-toolbar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
.eps-month-label {
    margin: 0 6px !important;
    min-width: 11ch;
    text-align: center;
    font-size: 22px !important;
    line-height: 1.2 !important;
}
.eps-nav-btn,
.eps-nav-today,
.eps-view-btn,
.eps-toolbar-submit,
.eps-toolbar-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--eps-border);
    border-radius: var(--eps-radius);
    background: #ffffff;
    color: inherit;
    font-size: 15px;
    line-height: 1;
    text-decoration: none !important;
    cursor: pointer;
}
.eps-nav-btn {
    width: 38px;
    padding: 0;
    font-size: 24px;
}
.eps-nav-btn:hover,
.eps-nav-today:hover,
.eps-view-btn:hover,
.eps-toolbar-reset:hover {
    border-color: var(--eps-accent);
    color: var(--eps-accent);
}
.eps-toolbar-views {
    display: inline-flex;
}
.eps-view-btn {
    border-radius: 0;
    margin-left: -1px;
}
.eps-view-btn:first-child {
    border-radius: var(--eps-radius) 0 0 var(--eps-radius);
    margin-left: 0;
}
.eps-view-btn:last-child {
    border-radius: 0 var(--eps-radius) var(--eps-radius) 0;
}
.eps-view-btn.is-active {
    position: relative;
    background: var(--eps-accent);
    border-color: var(--eps-accent);
    color: #ffffff !important;
}
.eps-toolbar-field {
    flex: 1 1 160px;
    margin: 0;
}
.eps-toolbar-search {
    flex: 2 1 220px;
}
.eps-toolbar-field input,
.eps-toolbar-field select {
    width: 100%;
    min-height: 38px;
    padding: 6px 10px;
    border: 1px solid var(--eps-border);
    border-radius: var(--eps-radius);
    background: #ffffff;
    font-size: 15px;
}
.eps-toolbar-submit {
    background: var(--eps-accent);
    border-color: var(--eps-accent);
    color: #ffffff;
}
.eps-calendar-js .eps-toolbar-submit {
    display: none; /* filters apply instantly with JavaScript */
}

/* ---- empty ---- */
.eps-calendar-empty {
    padding: 40px 20px;
    text-align: center;
    border: 1px dashed var(--eps-border);
    border-radius: var(--eps-radius);
}
.eps-calendar-empty p {
    margin: 0 0 8px;
}
.eps-calendar-empty-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
}

/* ---- list ---- */
.event-list-item.is-past {
    opacity: .6;
}

/* ---- cards ---- */
.eps-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}
@media (max-width: 1100px) { .eps-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px)  { .eps-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 520px)  { .eps-cards { grid-template-columns: 1fr; } }

.eps-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--eps-border);
    border-top: 4px solid var(--eps-event-colour, var(--eps-accent));
    border-radius: var(--eps-radius);
    transition: box-shadow .15s ease, transform .15s ease;
}
.eps-cards .eps-card:hover,
.eps-cards .eps-card:focus-within {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    transform: translateY(-2px);
}
.eps-card.is-past {
    opacity: .65;
}
.eps-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--eps-event-colour, var(--eps-accent));
}
.eps-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.eps-card-date {
    position: absolute;
    left: 10px;
    top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 48px;
    padding: 4px 6px;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
    line-height: 1.1;
    text-align: center;
}
.eps-card-date-mm {
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--eps-event-colour, var(--eps-accent));
}
.eps-card-date-dd {
    font-size: 22px;
    font-weight: bold;
}
.eps-card-media .eps-status-badge {
    position: absolute;
    right: 10px;
    top: 10px;
    margin: 0;
}
.eps-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px 16px;
}
.eps-card-type {
    margin: 0;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--eps-event-colour, var(--eps-accent));
}
.eps-card-title {
    margin: 0 !important;
    font-size: 18px !important;
    line-height: 1.3 !important;
}
.eps-card-link {
    color: inherit;
    text-decoration: none;
}
.eps-card-link::after { /* whole card is clickable */
    content: "";
    position: absolute;
    inset: 0;
}
.eps-card-status-cancelled .eps-card-title,
.eps-event-status-cancelled .eps-card-title {
    text-decoration: line-through;
}
.eps-card-meta {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: var(--eps-muted);
}
.eps-card-meta li {
    margin: 0 0 2px;
}
.eps-card-price {
    font-weight: bold;
    color: inherit;
}
.eps-card-summary,
.eps-card-status-note {
    margin: 4px 0 0;
    font-size: 14px;
}
.eps-card-status-note {
    font-weight: bold;
}

/* ---- month grid ---- */
.eps-month {
    border: 1px solid var(--eps-border);
    border-radius: var(--eps-radius);
}
.eps-month-head,
.eps-month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}
.eps-month-dayname {
    padding: 10px 8px;
    background: var(--eps-accent);
    color: #ffffff;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
}
.eps-month-dayname:first-child { border-top-left-radius: var(--eps-radius); }
.eps-month-dayname:last-child { border-top-right-radius: var(--eps-radius); }
.eps-day {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-height: 118px;
    padding: 6px;
    border-right: 1px solid var(--eps-border);
    border-bottom: 1px solid var(--eps-border);
}
.eps-day:nth-child(7n) { border-right: 0; }
.eps-day:nth-last-child(-n+7) { border-bottom: 0; }
.eps-day.is-outside {
    background: var(--eps-bg-soft);
    color: #b0b5bd;
}
.eps-day-num {
    font-size: 14px;
    font-weight: bold;
    color: var(--eps-muted);
}
.eps-day.is-today {
    background: #fffcc9;
}
.eps-day.is-today .eps-day-num > span:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--eps-accent);
    color: #ffffff;
}

.eps-cal-event {
    position: relative;
}
.eps-cal-event-link {
    display: block;
    overflow: hidden;
    padding: 3px 6px;
    border-radius: 4px;
    background: var(--eps-event-colour, var(--eps-accent));
    color: #ffffff !important;
    font-size: 12px;
    line-height: 1.35;
    text-decoration: none !important;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.eps-cal-event-link:hover,
.eps-cal-event-link:focus {
    filter: brightness(1.12);
}
.eps-cal-event.is-continued .eps-cal-event-link {
    opacity: .75;
}
.eps-cal-event.is-cancelled .eps-cal-event-title {
    text-decoration: line-through;
}
.eps-day.is-past .eps-cal-event-link {
    opacity: .6;
}
.eps-cal-event-time {
    font-weight: bold;
    margin-right: 3px;
}
.eps-cal-event-status {
    font-weight: bold;
    margin-right: 3px;
}

/* hover / focus preview */
.eps-cal-popover {
    position: absolute;
    z-index: 50;
    top: calc(100% + 6px);
    left: 0;
    width: 300px;
    /* display:none (not just hidden) so preview images aren't downloaded until a preview opens */
    display: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .12s ease, transform .12s ease, display .12s allow-discrete;
    pointer-events: none;
}
.eps-cal-event.pop-left .eps-cal-popover {
    left: auto;
    right: 0;
}
.eps-cal-event.pop-up .eps-cal-popover {
    top: auto;
    bottom: calc(100% + 6px);
    transform: translateY(-4px);
}
.eps-cal-event:hover .eps-cal-popover,
.eps-cal-event:focus-within .eps-cal-popover,
.eps-cal-event.is-open .eps-cal-popover {
    display: block;
    opacity: 1;
    transform: none;
    transition-delay: .15s; /* small delay so sweeping the mouse across doesn't flash cards */
}
@starting-style {
    .eps-cal-event:hover .eps-cal-popover,
    .eps-cal-event:focus-within .eps-cal-popover,
    .eps-cal-event.is-open .eps-cal-popover {
        opacity: 0;
        transform: translateY(4px);
    }
}
.eps-cal-event:hover,
.eps-cal-event:focus-within {
    z-index: 51;
}
.eps-cal-popover .eps-card {
    box-shadow: 0 12px 32px rgba(0, 0, 0, .22);
}
.eps-card--compact .eps-card-title {
    font-size: 16px !important;
}

/* agenda (small screens only) */
.eps-agenda {
    display: none;
}
.eps-agenda ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.eps-agenda-item a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-left: 4px solid var(--eps-event-colour, var(--eps-accent));
    border-bottom: 1px solid var(--eps-border);
    color: inherit;
    text-decoration: none;
}
.eps-agenda-item.is-past {
    opacity: .6;
}
.eps-agenda-date {
    font-size: 13px;
    color: var(--eps-muted);
}
.eps-agenda-title {
    font-weight: bold;
}
.eps-month-empty {
    margin-top: 16px;
}

@media (hover: none) {
    /* touch: previews open on first tap (see calendar-scripts.js), not on hover */
    .eps-cal-event:hover .eps-cal-popover { display: none; }
    .eps-cal-event.is-open .eps-cal-popover { display: block; opacity: 1; }
}

@media (max-width: 700px) {
    .eps-month-label { font-size: 18px !important; min-width: 0; }
    .eps-toolbar-row--top { justify-content: center; }
    .eps-toolbar-views { width: 100%; }
    .eps-view-btn { flex: 1; }
    .eps-calendar-toolbar { padding: 10px; gap: 8px; }
    .eps-toolbar-row--filters { gap: 8px; }
    .eps-toolbar-field { flex: 1 1 calc(50% - 4px); min-width: 0; } /* filters two per row */
    .eps-toolbar-search { flex-basis: 100%; }

    /* compact grid with coloured dots; details in the agenda below */
    .eps-day {
        min-height: 54px;
        padding: 4px;
        flex-direction: row;
        flex-wrap: wrap;
        align-content: flex-start;
        gap: 3px;
    }
    .eps-day-num { width: 100%; font-size: 12px; }
    .eps-cal-event-link {
        width: 8px;
        height: 8px;
        padding: 0;
        border-radius: 50%;
        font-size: 0;
    }
    .eps-cal-popover { display: none; }
    .eps-agenda { display: block; margin-top: 16px; }
}


/* ------------------------------------------------------------------
 * Events without their own page (Settings → Event pages off)
 * ------------------------------------------------------------------ */
button.eps-cal-event-link {
    width: 100%;
    margin: 0;
    border: 0;
    font: inherit;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}
button.eps-cal-event-link:focus-visible {
    outline: 2px solid var(--eps-accent);
    outline-offset: 1px;
}
/* invisible bridge across the gap so the pointer can move into an interactive preview */
.eps-cal-popover::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -8px;
    height: 8px;
}
.eps-cal-event.pop-up .eps-cal-popover::before {
    top: auto;
    bottom: -8px;
}
.eps-cal-event:has(button.eps-cal-event-link) .eps-cal-popover {
    pointer-events: auto;
}
.eps-event-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-top: 10px;
    font-size: 13px;
}
.eps-button--small {
    padding: 7px 14px;
    font-size: 14px;
}
.eps-action-calendar {
    color: var(--eps-muted, #6b7280);
}
.eps-action-calendar a,
.eps-action-online {
    font-weight: bold;
}
.event-list-item .eps-event-actions {
    margin-top: 6px;
}
.eps-agenda-item details > summary {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-left: 4px solid var(--eps-event-colour, var(--eps-accent));
    border-bottom: 1px solid var(--eps-border);
    cursor: pointer;
    list-style: none;
}
.eps-agenda-item details > summary::-webkit-details-marker {
    display: none;
}
.eps-agenda-item details[open] > summary {
    background: var(--eps-bg-soft);
}
.eps-agenda-item details .eps-card {
    margin: 8px 0 12px;
}


/* ------------------------------------------------------------------
 * Calendar interaction: modal (Settings → Calendar view: events)
 * ------------------------------------------------------------------ */
.eps-calendar--modal .eps-cal-popover {
    display: none; /* not used in modal mode */
}
.eps-modal {
    --eps-accent: #004881;
    --eps-border: #dddddd;
    --eps-muted: #6b7280;
    --eps-radius: 6px;
    width: min(520px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    overflow: visible;
}
.eps-modal::backdrop {
    background: rgba(15, 23, 42, .6);
}
.eps-modal[open] {
    animation: eps-modal-in .16s ease-out;
}
@keyframes eps-modal-in {
    from { opacity: 0; transform: translateY(8px) scale(.98); }
    to   { opacity: 1; transform: none; }
}
.eps-modal *,
.eps-modal *::before,
.eps-modal *::after {
    box-sizing: border-box;
}
.eps-modal-body {
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    border-radius: 10px;
}
.eps-modal .eps-card {
    border-radius: 10px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .35);
}
.eps-modal .eps-card-title {
    font-size: 22px !important;
}
.eps-modal .eps-card-body {
    padding: 18px 22px 22px;
    gap: 8px;
}
.eps-modal .eps-card-meta {
    font-size: 15px;
}
.eps-modal .eps-card-summary {
    font-size: 15px;
}
.eps-modal-close {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #111111;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.eps-modal-close:hover,
.eps-modal-close:focus-visible {
    background: #ffffff;
    outline: 2px solid var(--eps-accent);
}
.eps-modal .eps-card-media .eps-status-badge {
    right: 56px; /* clear of the close button */
}
html.eps-modal-open {
    overflow: hidden; /* stop the page scrolling behind the modal */
}
@media (prefers-reduced-motion: reduce) {
    .eps-modal[open] { animation: none; }
}
