.agenda-module {
    --agenda-paper: var(--home-paper, #fff7ed);
    --agenda-red: var(--home-red, #ab263b);
    --agenda-ink: var(--home-ink, #463c40);
    --agenda-muted: var(--home-muted, #715c70);
    container: agenda / inline-size;
    color: var(--agenda-ink);
    font: 16px/1.35 Arial, Helvetica, sans-serif;
    text-align: left;
}

.agenda-module * { box-sizing: border-box; }
.agenda-module .agenda-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: clamp(22px, 4cqw, 44px);
    width: 100%;
    max-width: none;
    padding: clamp(16px, 3.1cqw, 36px);
    border-radius: 18px;
    background: var(--agenda-paper);
}
.agenda-module .agenda-list { width: 100%; min-width: 0; }
.agenda-module .agenda-events { list-style: none; padding: 0; margin: 0; }
.agenda-module .agenda-event {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 9px 0;
    border-bottom: 1px solid #ead6c8;
    transition: background-color 160ms ease;
}
.agenda-module .agenda-event[hidden], .agenda-module .agenda-empty[hidden] { display: none; }
.agenda-module .agenda-event.is-highlighted { border-radius: 9px; background: #fae9de; }
.agenda-module .agenda-date {
    display: grid;
    place-content: center;
    min-height: 50px;
    padding: 5px;
    border-radius: 9px;
    background: #f7e5d9;
    color: var(--agenda-red);
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.agenda-module .agenda-day { font-size: 22px; font-weight: 700; line-height: 1; }
.agenda-module .agenda-month, .agenda-module .agenda-year { font-size: 12px; font-weight: 700; }
.agenda-module .agenda-name { font-size: 17px; font-weight: 600; }
.agenda-module a.agenda-name { color: var(--agenda-red); text-decoration: underline; text-underline-offset: .23em; }
.agenda-module .agenda-location { display: block; margin-top: 2px; color: var(--agenda-muted); font-size: 15px; }
.agenda-module .agenda-public-map {
    display: none;
    width: 100%;
    max-width: none;
    margin: 0;
    aspect-ratio: 1.12;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid #e7dfd0;
    border-radius: 16px;
    background: #edece2;
}
.agenda-module .leaflet-tile-pane { filter: sepia(.22) saturate(.85); opacity: .82; }
.agenda-module .agenda-pin {
    border: 2px solid #fff9f3;
    border-radius: 50%;
    background: var(--agenda-red);
    box-shadow: 0 1px 5px #55333458;
}
.agenda-module .agenda-pin.is-highlighted { box-shadow: 0 0 0 5px #ab263b38, 0 1px 5px #55333458; }
.agenda-module .agenda-map-label {
    padding: 4px 6px;
    border: 0;
    border-radius: 5px;
    color: var(--agenda-red);
    background: #fff7edf2;
    font: 600 12px/1.25 Arial, Helvetica, sans-serif;
}
.agenda-module .agenda-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

@container agenda (min-width: 680px) {
    .agenda-module[data-has-map="true"] .agenda-layout { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
    .agenda-module[data-has-map="true"] .agenda-public-map { display: block; }
}
@media (prefers-reduced-motion: reduce) {
    .agenda-module .agenda-event { transition: none; }
}
@media print {
    .agenda-module[data-has-map="true"] .agenda-layout { grid-template-columns: 1fr; }
    .agenda-module[data-has-map="true"] .agenda-public-map { display: none; }
}
