/* Extracted from the UVLists Mailman theme; calendar-specific layout below. */
:root {
  --uv-primary: #00693e;
  --uv-primary-hover: #005230;
  --uv-primary-active: #003f25;
  --uv-nav-bg: #12312b;
  --uv-page-bg: #f4f7f5;
  --uv-surface: #ffffff;
  --uv-surface-subtle: #edf3ef;
  --uv-selected-bg: #ddede3;
  --uv-text: #202b25;
  --uv-text-muted: #53645a;
  --uv-border: #d2ddd6;
  --uv-input-border: #788a7e;
  --uv-focus: #005ea8;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--uv-page-bg); color: var(--uv-text); font: 1rem/1.5 system-ui, sans-serif; }
a { color: var(--uv-primary); }
a:hover { color: var(--uv-primary-hover); text-decoration-thickness: .12em; }
h1, h2, h3 { color: var(--uv-nav-bg); line-height: 1.25; }
h1 { font-size: 2rem; margin: 1.2rem 0 .5rem; }
h2 { font-size: 1.35rem; margin: 0 0 .75rem; }
.container { width: min(100% - 2rem, 1320px); margin-inline: auto; }
.narrow > form.card { max-width: 44rem; }
.navbar { background: var(--uv-nav-bg); box-shadow: 0 2px 5px rgba(18,49,43,.2); }
.nav-content { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.7rem; }
.brand, .nav-links a, .nav-button { color: #fff; text-decoration: none; }
.brand { font-size: 1.2rem; font-weight: 650; }
.nav-links { display: flex; align-items: center; gap: .2rem; flex-wrap: wrap; }
.nav-links a, .nav-button { display: inline-block; padding: .6rem .8rem; border: 0; border-bottom: 3px solid transparent; background: none; font: inherit; cursor: pointer; }
.nav-links a:hover, .nav-links a:focus, .nav-button:hover, .nav-button:focus { color: #fff; background: var(--uv-primary); border-bottom-color: #fff; }
.skip { position: absolute; left: -9999px; top: 0; padding: .5rem; background: #fff; z-index: 10; }
.skip:focus { left: .5rem; }
main { min-height: 65vh; padding-block: 1.25rem 2rem; }
.footer { border-top: 1px solid var(--uv-border); color: var(--uv-text-muted); text-align: center; padding: 1rem; }
.page-heading, .month-heading, .actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.page-heading { margin-bottom: 1rem; }
.page-heading p { margin: 0; color: var(--uv-text-muted); }
.card { background: var(--uv-surface); border: 1px solid var(--uv-border); border-radius: .3rem; padding: 1.25rem; margin: 1rem 0; }
.btn { display: inline-block; border: 1px solid var(--uv-primary); border-radius: .3rem; background: #fff; color: var(--uv-primary); padding: .55rem .9rem; font: inherit; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--uv-selected-bg); color: var(--uv-primary-active); }
.btn.primary { color: #fff; background: var(--uv-primary); }
.btn.primary:hover { background: var(--uv-primary-hover); color: #fff; }
.btn.danger { border-color: #a4262c; color: #a4262c; }
.btn.danger:hover { background: #fbeaea; color: #7a1c20; }
.actions form { margin: 0; }
.actions.start { justify-content: flex-start; }
input, textarea, select { display: block; width: 100%; border: 1px solid var(--uv-input-border); border-radius: .25rem; padding: .5rem; background: #fff; color: var(--uv-text); font: inherit; }
input[type=file] { padding: .4rem; }
label { display: block; font-weight: 600; margin-bottom: .2rem; }
form p, form .field { margin: 0 0 1rem; }
.errorlist { color: #a12635; }
.alpha-banner { background: #fff4d6; border-bottom: 1px solid #e0c56e; color: #4a3b0b; }
.alpha-content { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .5rem; }
.alpha-content p { margin: 0; }
.alpha-content a { color: inherit; }
.alpha-dismiss { flex: none; background: transparent; border: 1px solid #8a6d1a; border-radius: 4px; color: inherit; font: inherit; padding: .25rem .75rem; cursor: pointer; }
.alpha-dismiss:hover { background: #f5e2a8; }
.alpha-dismiss:focus-visible { outline: 3px solid var(--uv-focus); outline-offset: 2px; }
.notice { background: #eaf3f9; border-left: 4px solid #175b82; padding: .75rem; }
.notice.warning { background: #fff4d6; border-left-color: #8a6d1a; }
.notice > :first-child { margin-top: 0; }
.notice > :last-child { margin-bottom: 0; }
.series-dates ul { columns: 2 14rem; margin: .5rem 0; }
:where(a, button, input, textarea, select):focus-visible { outline: 3px solid var(--uv-focus); outline-offset: 2px; }
.month-heading h2 { margin: 0; text-align: center; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 1px; background: var(--uv-border); border: 1px solid var(--uv-border); }
.weekday, .day { background: var(--uv-surface); padding: .5rem; min-width: 0; }
.weekday { background: var(--uv-surface-subtle); font-weight: 600; text-align: center; }
.day { min-height: 6.5rem; }
.day.outside { background: var(--uv-page-bg); color: var(--uv-text-muted); }
.day-number { display: inline-block; font-weight: 600; color: inherit; text-decoration: none; padding: 0 .2rem; border-radius: .2rem; }
.day-number:hover, .day-number:focus-visible { background: #fff; box-shadow: 0 0 0 1px var(--uv-primary); color: var(--uv-primary); text-decoration: underline; }
/* Count sits at the far right of the cell so it never reads as part of the date. */
.day-number { display: flex; justify-content: space-between; align-items: center; gap: .35rem; }
.day-count { padding: 0; background: none; color: var(--uv-text-muted); font-size: .75rem; font-weight: 400; line-height: 1.35rem; text-align: right; white-space: nowrap; }
.day-number:hover .day-count, .day-number:focus-visible .day-count { text-decoration: none; }
.day.today { background: var(--uv-selected-bg); box-shadow: inset 0 0 0 2px var(--uv-primary); }
.day:hover { background: var(--uv-surface-subtle); box-shadow: inset 0 0 0 2px var(--uv-input-border); }
.day.today:hover { box-shadow: inset 0 0 0 2px var(--uv-primary); }
.today-date { display: inline-block; min-width: 1.75rem; padding: 0 .3rem; border-radius: 999px; background: var(--uv-primary); color: #fff; line-height: 1.75rem; text-align: center; }
.event-link { display: block; overflow-wrap: anywhere; margin-top: .35rem; font-size: .9rem; }
.day-listing-heading { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; flex-wrap: wrap; }
.day-listing-heading .muted { margin: 0; }
.group-switch { display: flex; gap: .5rem; align-items: baseline; }
.group-switch [aria-current] { font-weight: 700; border-bottom: 3px solid var(--uv-primary); }
.day-listing h2 { font-size: 1.15rem; margin: 1.25rem 0 .25rem; padding-top: .75rem; border-top: 1px solid var(--uv-border); }
.day-more { display: block; margin-top: .35rem; font-size: .85rem; font-weight: 700; }
.event-list { padding-left: 1.3rem; }
.event-list li { padding: .25rem 0; }
.event-list .blurb { color: var(--uv-text-muted); font-size: .95rem; }
.event-list time { color: var(--uv-text-muted); margin-right: .5rem; }
.event-body { overflow-wrap: anywhere; }
.breadcrumbs { color: var(--uv-text-muted); font-size: .9rem; margin: .35rem 0 1.25rem; }
.breadcrumbs span { margin-left: .3rem; }
.event-hero { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.5rem; }
.event-hero h1 { margin: .15rem 0 .35rem; overflow-wrap: anywhere; }
.event-date-badge { flex: 0 0 5rem; text-align: center; border: 1px solid var(--uv-border); border-radius: .3rem; background: var(--uv-surface); overflow: hidden; }
.event-date-badge span { display: block; background: var(--uv-primary); color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .2rem; }
.event-date-badge strong { display: block; color: var(--uv-nav-bg); font-size: 2rem; line-height: 1.3; padding: .25rem; }
.event-kicker { color: var(--uv-primary); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 0; }
.event-summary { color: var(--uv-text-muted); margin: 0; }
.event-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, 21rem); gap: 1.25rem; align-items: start; }
.event-layout > .card { margin: 0; }
.event-description { min-width: 0; }
.event-description .event-body p:first-child { margin-top: 0; }
.event-attachment { border-top: 1px solid var(--uv-border); margin-top: 1.5rem; padding-top: 1.25rem; }
.event-attachment h3 { font-size: 1.1rem; margin: 0 0 .75rem; }
.event-attachment img { display: block; max-width: 100%; max-height: 32rem; width: auto; height: auto; border: 1px solid var(--uv-border); border-radius: .25rem; }
.event-attachment iframe { display: block; width: 100%; height: 36rem; border: 1px solid var(--uv-border); border-radius: .25rem; }
.location-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.location-layout.no-map { grid-template-columns: minmax(0, 1fr); }
.compose-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(16rem, 2fr); gap: 1.5rem; align-items: start; }
.cost-group { border: 0; padding: 0; min-width: 0; }
.cost-group legend { font-weight: 600; padding: 0; margin-bottom: .4rem; font-size: 1.05rem; }
.cost-group label:not(.check-label) { font-weight: 500; }
.cost-note-label { margin-top: .75rem; }
.cost-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.amount-input { display: flex; align-items: center; gap: .35rem; flex: 0 1 12rem; }
.amount-input input { width: 100%; }
.cost-row input:disabled { background: var(--uv-surface-subtle); color: var(--uv-text-muted); }
.check-label { display: inline-flex; align-items: center; gap: .4rem; margin: 0; font-weight: 600; white-space: nowrap; cursor: pointer; }
.check-label input { display: inline; width: auto; margin: 0; }
.compose-layout form small { display: block; margin-top: .25rem; color: var(--uv-text-muted); }
.compose-help { position: sticky; top: 1rem; display: grid; gap: 1rem; }
.compose-help .card { margin: 0; }
.compose-help h2 { margin-top: 0; font-size: 1.1rem; }
.compose-help ol, .compose-help ul { margin: 0 0 .5rem; padding-left: 1.2rem; }
.compose-help li { margin-bottom: .4rem; }
.compose-help p:last-child { margin-bottom: 0; }
.location-info h2 { margin-top: 0; }
.location-info address { font-style: normal; }
.location-map { display: block; width: 100%; height: 24rem; border: 1px solid var(--uv-border); border-radius: .25rem; }
.event-attachment p { margin-bottom: 0; overflow-wrap: anywhere; }
.location-autocomplete { position: relative; }
.location-options { position: absolute; z-index: 20; top: 100%; left: 0; right: 0; max-height: 16rem; overflow-y: auto; background: #fff; border: 1px solid var(--uv-border); border-radius: .25rem; box-shadow: 0 .25rem .75rem rgba(0,0,0,.14); }
.location-options[hidden] { display: none; }
.location-options button { display: block; width: 100%; padding: .55rem .75rem; border: 0; background: #fff; color: var(--uv-text); text-align: left; font: inherit; cursor: pointer; }
.location-options button:hover, .location-options button:focus { background: var(--uv-selected-bg); outline: 0; }
.event-facts dl { margin: 0; }
.event-facts dl > div { padding: .8rem 0; border-top: 1px solid var(--uv-border); }
.event-facts dt { font-weight: 700; margin-bottom: .25rem; }
.event-facts dd { margin: 0; overflow-wrap: anywhere; }
.report-link { margin: 1rem 0 0; font-size: .9rem; }
.muted, .event-action-note { color: var(--uv-text-muted); }
.register-link { display: flex; justify-content: center; margin-top: 1rem; }
.calendar-picker { margin-top: 1rem; }
.calendar-picker summary { display: flex; justify-content: space-between; align-items: center; list-style: none; }
.calendar-picker summary::-webkit-details-marker { display: none; }
.calendar-picker summary:focus-visible { outline: 3px solid var(--uv-focus); outline-offset: 2px; }
.calendar-picker summary span { margin-left: .5rem; }
.calendar-picker[open] summary span { transform: rotate(180deg); }
.calendar-menu { border: 1px solid var(--uv-border); border-top: 0; padding: .35rem .75rem .75rem; }
.icon-source { display: none; }
.provider-link { display: flex; align-items: center; gap: .7rem; padding: .55rem .25rem; text-decoration: none; }
.provider-link + .provider-link { border-top: 1px solid var(--uv-border); }
.provider-link:hover { text-decoration: underline; }
.provider-link svg { flex: 0 0 1.25rem; width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.provider-link.google svg { color: #1a73e8; }
.provider-link.outlook svg, .provider-link.microsoft svg { color: #0078d4; }
.provider-link.apple svg { color: #555; }
.provider-link.download span { display: inline-grid; place-items: center; flex: 0 0 1.25rem; font-size: 1.35rem; line-height: 1; }
.event-action-note { color: var(--uv-text-muted); font-size: .8rem; margin: .5rem 0; }
.subscription-label { margin-top: .75rem; font-size: .85rem; }
.subscribe h2 { margin-top: 0; }
.subscribe-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.subscribe-actions [hidden] { display: none; }
.filter-wide { border: 0; padding: 0; margin: 1rem 0 0; min-width: 0; }
.filter-wide legend { font-weight: 700; padding: 0; margin-bottom: .4rem; }
.cost-tag { display: inline-block; margin-left: .25rem; padding: 0 .45rem; border: 1px solid var(--uv-border); border-radius: 999px; background: var(--uv-surface-subtle); color: var(--uv-text); font-size: .75rem; line-height: 1.3rem; white-space: nowrap; }
.pager { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 1rem; }
.more-events { margin-top: 1.25rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 0 1.25rem; align-items: start; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.view-tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--uv-border); margin: 0 0 1rem; }
.view-tabs a { padding: .5rem 1rem; border-bottom: 3px solid transparent; margin-bottom: -1px; text-decoration: none; font-weight: 600; }
.view-tabs a[aria-current] { border-bottom-color: var(--uv-primary); color: var(--uv-text); }
.view-tabs a:hover, .view-tabs a:focus-visible { border-bottom-color: var(--uv-border); }
.agenda h3 { font-size: 1.05rem; margin: 1.25rem 0 .25rem; padding-top: .75rem; border-top: 1px solid var(--uv-border); }
.agenda h3 a { text-decoration: none; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .6rem 1rem; }
.filter-panel[open] { flex-basis: 100%; }
.filter-panel summary { cursor: pointer; font-weight: 700; padding: .2rem 0; }
.filter-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem 1.5rem; margin-top: .75rem; }
.filter-groups fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.filter-groups legend { font-weight: 700; padding: 0; margin-bottom: .4rem; }
.filter-options { display: flex; flex-wrap: wrap; gap: .4rem; max-height: 15rem; overflow-y: auto; padding: .15rem; }
/* Each option is a pill; the real checkbox stays in the label, invisible but focusable. */
.filter-options label { position: relative; padding: .2rem .75rem; border: 1px solid var(--uv-input-border); border-radius: 999px; background: #fff; font-size: .9rem; cursor: pointer; user-select: none; }
.filter-options label:hover { border-color: var(--uv-primary); }
.filter-options input[type=checkbox] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.filter-options label:has(input:checked) { background: var(--uv-primary); border-color: var(--uv-primary); color: #fff; }
.filter-options label:has(input:checked)::before { content: "\2713\00a0"; }
.filter-options label:has(input:focus-visible) { outline: 3px solid var(--uv-primary); outline-offset: 2px; }
.filter-find { margin-bottom: .5rem; max-width: 18rem; padding: .35rem .5rem; }
.filter-options [hidden] { display: none; }
.filter-options .no-match { color: var(--uv-text-muted); font-size: .9rem; }
.filter-note { margin: .5rem 0 0; font-size: .9rem; }
.filter-note[hidden], .filter-apply[hidden], .print-button[hidden] { display: none; }
.filter-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; list-style: none; margin: 0; padding: 0; }
.chip { display: inline-block; padding: .15rem .6rem; border: 1px solid var(--uv-primary); border-radius: 999px; background: var(--uv-selected-bg); text-decoration: none; font-size: .9rem; }
.chip:hover, .chip:focus-visible { text-decoration: line-through; }
.more-link { margin: 1rem 0 0; font-weight: 700; }
.more-events h3 { margin: 0; }
.more-events h4 { margin: 1.25rem 0 .25rem; }
.more-events h4:first-of-type { margin-top: .75rem; }
@media (max-width: 1050px) { .event-layout, .location-layout, .compose-layout { grid-template-columns: 1fr; } .compose-help { position: static; } }
@media (max-width: 650px) {
  .nav-content { display: block; padding-top: .5rem; }
  .nav-links { margin-left: -.8rem; }
  .calendar-grid { display: block; border: 0; background: transparent; }
  .weekday { display: none; }
  .day { min-height: 0; border: 1px solid var(--uv-border); margin: .25rem 0; }
  .day.outside { display: none; }
  .day:not(.has-events):not(.today) { display: none; }
  .event-hero { align-items: flex-start; gap: .8rem; }
  .event-date-badge { flex-basis: 3.8rem; }
  .event-date-badge strong { font-size: 1.45rem; }
  .event-hero h1 { font-size: 1.6rem; }
  .print-button { display: none !important; }  /* phones rarely print; keep the toolbar clear */
}

/* Printing */
.print-only { display: none; }
.view-tabs .print-button { margin: 0 0 .35rem auto; padding: .3rem .8rem; }
.event-hero .print-button { margin-left: auto; align-self: flex-start; }
@page { margin: 1.5cm; }
@page month { size: landscape; margin: 1cm; }
@media print {
  .month-view { page: month; }
  body { background: #fff; color: #000; font-size: 10pt; }
  .navbar, .footer, .skip, .breadcrumbs, .view-tabs, .filter-bar, .print-button, .btn, .calendar-picker,
  .group-switch, .month-heading > a, .more-link, .more-events, .location-map, .event-attachment iframe,
  .event-action-note, .page-heading > .btn, .feed-note, .subscribe, .pager, .alpha-banner, .report-link { display: none !important; }
  .print-only { display: block; font-weight: 700; margin: 0 0 .5rem; }
  .container { width: auto; }
  main { padding: 0; min-height: 0; }
  a { color: #000; text-decoration: none; }
  .card { border: 0; padding: 0; margin: 0 0 1rem; background: none; }
  .page-heading { margin-bottom: .5rem; }
  h1 { font-size: 18pt; margin: 0 0 .25rem; }
  h2, h3, h4 { break-after: avoid; }
  li, .day, .event-facts dl > div { break-inside: avoid; }
  .event-layout, .location-layout, .more-events { display: block; }
  /* Real borders, not gap-over-background, so a page break never shows a grey block. */
  .calendar-grid { display: grid; gap: 0; background: none; border: 0; border-top: 1px solid #999; border-left: 1px solid #999; }
  .weekday, .day { background: #fff; padding: .15rem .3rem; border: 0; border-right: 1px solid #999; border-bottom: 1px solid #999; margin: 0; }
  .day { min-height: 4.2rem; display: block !important; break-inside: avoid; }
  .day.outside { color: #777; }
  .day-number { padding: 0; }
  .day.today { background: #fff; box-shadow: inset 0 0 0 2px #000; }
  .today-date { background: none; color: inherit; border: 1px solid #000; line-height: 1.1rem; min-width: 1.1rem; }
  .day-count { background: none; color: inherit; border: 1px solid #555; font-size: 7pt; line-height: 1.1rem; min-width: 1.1rem; }
  .event-link { font-size: 7.5pt; line-height: 1.25; margin-top: .05rem; }
  .day-more { font-size: 7.5pt; font-weight: 700; margin-top: .05rem; }
  /* The month view prints only the grid: its month heading, plus the filter line when filters are on. */
  .month-view .page-heading, .month-view .card:not(:has(.calendar-grid)) { display: none !important; }
  .month-view .print-only { margin-bottom: .2rem; }
  .month-heading { justify-content: center; }
  .month-heading h2 { font-size: 16pt; margin: 0 0 .3rem; }
  .muted { color: #444; }
  .cost-tag { background: none; border-color: #999; }
}
.when-group { border: 0; padding: 0; min-width: 0; }
.when-group legend { font-weight: 600; padding: 0; margin-bottom: .4rem; font-size: 1.05rem; }
.when-label { font-weight: 500; margin: 0; }
.when-grid input { width: auto; max-width: 100%; justify-self: start; }
.when-grid { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .5rem .75rem; margin-top: .6rem; }
.compose-layout input[type=date] { width: auto; }
@media (max-width: 480px) {
  .when-grid { grid-template-columns: 1fr; gap: .25rem; }
}
