.sw-holy { min-width: 0; max-width: 100%; }
.sw-holy .event-year { margin-block: 1.5rem; min-width: 0; max-width: 100%; }
.sw-holy .event-year-title { margin-block-end: .75rem; }
.sw-holy .event-table-scroll { overflow-x: auto; min-width: 0; max-width: 100%; contain: inline-size; }
.sw-holy .event-list { --event-effective-cell-padding-y: var(--event-cell-padding-y, .75rem); border-collapse: separate; border-spacing: 0; width: var(--event-table-width, auto); margin-inline: auto; border: var(--event-border-width, 0px) var(--event-border-style, solid) var(--event-border-color, #999); border-radius: var(--event-border-radius, 0px); overflow: hidden; }
.sw-holy .event-list th,
.sw-holy .event-list td { padding: var(--event-effective-cell-padding-y) .75rem; text-align: start; vertical-align: top; border: 0; border-right: var(--event-border-width, 0px) var(--event-border-style, solid) var(--event-border-color, #999); border-bottom: var(--event-border-width, 0px) var(--event-border-style, solid) var(--event-border-color, #999); }
.sw-holy .event-list tr > :last-child { border-right: 0; }
.sw-holy .event-list tbody tr:last-child > td { border-bottom: 0; }
.sw-holy .event-list th { background: var(--event-header-background, transparent); color: var(--event-header-color, var(--table-header-color, inherit)); }
.sw-holy .event-list tbody { background: var(--event-content-background, transparent); }
.sw-holy .event-row { color: var(--event-upcoming-color, inherit); }
.sw-holy .event-row a { color: var(--event-upcoming-color, var(--body-link-color, inherit)); }
/* Override the general table hover rule for both current and past events. */
.sw-holy .event-list td,
.sw-holy .event-list tr:is(:hover, :focus) > td { background: inherit; color: inherit; }
.sw-holy .event-date { width: 1px; min-width: var(--event-date-min-width, 110px); white-space: var(--event-date-white-space, nowrap); font-variant-numeric: tabular-nums; }
.sw-holy .event-location { width: 1px; min-width: var(--event-location-min-width, 140px); white-space: var(--event-location-white-space, nowrap); }
.sw-holy .event-title { min-width: var(--event-title-min-width, 240px); white-space: var(--event-title-white-space, pre-line); overflow-wrap: anywhere; }
/* Collapse template whitespace around the span; preserve line breaks only in the actual title. */
.sw-holy td.event-title { white-space: normal; }
.sw-holy .event-title-text { white-space: var(--event-title-white-space, pre-line); }
.sw-holy .event-document { width: 1px; min-width: var(--event-announcement-min-width, 140px); white-space: var(--event-announcement-white-space, nowrap); }
.sw-holy .event-actions { display: flex; flex-direction: column; gap: .45rem; }
.sw-holy .event-actions--inline,
.sw-holy .event-actions--inline-wrap { flex-direction: row; align-items: baseline; column-gap: 1rem; }
.sw-holy .event-actions--inline-wrap { flex-wrap: wrap; }
.sw-holy .event-actions--inline > .event-action,
.sw-holy .event-actions--inline-wrap > .event-action { flex: 0 0 auto; }
.sw-holy .event-action { display: inline-flex; align-items: baseline; gap: .35em; }
.sw-holy .event-action > span { overflow-wrap: anywhere; }
.sw-holy .event-icon { flex: 0 0 auto; width: auto; max-width: none; object-fit: contain; align-self: flex-start; margin-top: .2em; }
.sw-holy .event-calendar { font-size: .875em; }
.sw-holy .event-past { color: var(--event-past-color, #595959); }
.sw-holy .event-past a { color: var(--event-past-color, #505050); text-decoration: underline; }
.sw-holy a:focus-visible,
.sw-holy .event-table-scroll:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.sw-holy .event-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 40rem) {
    .sw-holy .event-list { --event-effective-cell-padding-y: var(--event-cell-padding-y, .5rem); }
    .sw-holy .event-list th,
    .sw-holy .event-list td { padding: var(--event-effective-cell-padding-y) .5rem; }
}

/* Approximate the text gap from line height, font size and both cell paddings. */
.sw-holy .event-list .event-row--month-change > td {
    padding-top: calc(2 * var(--event-effective-cell-padding-y) + max(0px, (1lh - 1em) / 2));
}

.sw-holy .event-row.event-highlighted > td,
.sw-holy .event-row.event-highlighted a {
    font-weight: 700;
    font-variation-settings: var(--font-variation-settings-bold, 'wght' 700);
}
.sw-holy .event-type { width: 1px; min-width: var(--event-eventType-min-width, 100px); white-space: var(--event-eventType-white-space, nowrap); }
.sw-holy .event-remark { min-width: var(--event-remark-min-width, 180px); overflow-wrap: anywhere; }
.sw-holy td.event-remark { white-space: normal; }
.sw-holy .event-remark-text { white-space: var(--event-remark-white-space, pre-line); }

/* Enlarge entry icons into the cell padding without adding to row height. */
.sw-holy .event-icon-frame { display: contents; }
.sw-holy .event-list { --event-icon-cell-padding: .75rem; }
.sw-holy .event-list .event-icon-frame {
    --event-entry-icon-size: max(var(--event-configured-icon-height), min(26px, calc(var(--event-configured-icon-height) + 2 * var(--event-cell-padding-y, var(--event-icon-cell-padding)) - 4px), calc(var(--event-configured-icon-height) + .45rem)));
    display: inline-block;
    position: relative;
    flex: 0 0 auto;
    align-self: flex-start;
    width: auto;
    height: var(--event-configured-icon-height);
    margin-top: .2em;
}
.sw-holy .event-list .event-icon-frame > .event-icon {
    display: block;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    max-width: none;
    margin: 0;
}
@media (max-width: 40rem) {
    .sw-holy .event-list { --event-icon-cell-padding: .5rem; }
}
