/* Keep image geometry stable while ImageBox loads responsive sources. */
img.imagebox-photo { display: block; height: auto !important; }
picture:has(> .imagebox-photo) { height: auto !important; }
.c-news__list { width: 100%; min-width: 0; }
.c-news__element { min-width: 0; }
.c-news__element.is-pageListing { width: auto !important; }
.c-news__element__image { aspect-ratio: 5 / 4; }
.c-news__element__image img.imagebox-photo { height: 100% !important; }
.c-news__element__image picture:has(> .imagebox-photo) { height: 100% !important; }
.c-news__element__content__wrapper { min-width: 0; overflow-wrap: anywhere; }
.c-nav__logo a { width: 224px; height: 56px; }
.c-nav__menu { flex: 1; width: auto; }
@media (min-width: 980px) {
    .c-nav__logo a { width: 360px; height: 100.8px; }
}
.c-additional__container { display: grid; grid-template-columns: minmax(0, 1fr); }
.c-additional__item { width: auto; min-width: 0; }
@media (min-width: 768px) {
    .c-additional__container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.c-slider__item { position: relative; overflow: hidden; isolation: isolate; display: none; }
.c-slider__item.is-active { display: flex; }
.c-slider__media { position: absolute; inset: 0; z-index: -1; }
.c-slider__media img { display: block; object-fit: cover; }
.c-slider__item.is-active .c-slider__media img { animation: hero-ken-burns 10s linear infinite alternate; transform-origin: 50% 55%; will-change: transform; }
@keyframes hero-ken-burns {
    from { transform: scale(1); }
    to { transform: scale(1.10) translate(-0.6%, -0.3%); }
}
@media (prefers-reduced-motion: reduce) {
    .c-slider__item.is-active .c-slider__media img { animation: none; }
}
/* Images pasted into editor content must fit narrow card columns. */
img[data-imagebox="content"] { max-width: 100%; height: auto; }
/* A stretched title link keeps the card clickable without nested anchors. */
.c-news__element__link { color: inherit; text-decoration: none; }
.c-news__element__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.c-news__element .is-description a { position: relative; z-index: 2; }
/* Consistent metadata spacing below event titles. */
.c-calendar__element__content__item .is-content .is-pastor,
.c-calendar__element__content__item .is-content .is-moredetails {
    margin: 6px 0 0; padding: 0 0 0 15px; line-height: 1.4; background-position: 0 2px;
}
.c-news--home .c-news__element__image { aspect-ratio: 1; }
.c-news__element__footer { right: 20px; padding-left: 0; text-align: right; }
.c-news__element__footer .is-btn { padding-left: 0; }
.c-news__element__footer .is-btn::before { display: none; }
.c-news__element__footer .is-btn::after { content: ' ›'; }
/* White information panels stretch to equal height without truncating content. */
.c-additional__item { display: grid; grid-template-rows: auto 1fr auto; }
.c-additional__item__content { display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.c-additional__item__content > a { display: block; }
.c-additional__item__content .is-description { align-self: stretch; }
.magazine-description { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.pdf-download { border: 1px solid #587ca5; border-radius: 999px; min-height: 46px; padding: 11px 20px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: 10px; color: #00518a; font: 14px/1.4 'Lato', sans-serif; white-space: nowrap; transition: background-color .2s, color .2s; }
.pdf-download:hover { background: #00518a; color: #fff; }
.pdf-download > span:first-child { font-size: 22px; line-height: 1; }
.c-additional__item__header { padding-left: 40px; }
.contact-card { position: relative; }
.contact-card-link { color: inherit; }
.contact-card-link::after { content: ''; position: absolute; inset: 0; z-index: 20; }
.contact-card .contact-columns a { position: relative; z-index: 21; }
.contact-card:hover .contact-description { background: #f8fbfd; }
.c-community__list { gap: 0; }
.c-community__list__item + .c-community__list__item { margin-top: 24px; padding-top: 24px; border-top: 1px dotted rgba(88, 124, 165, .28); }
.contact-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 18px; }
.c-additional__item__content .contact-columns :is(h1,h2),
.c-additional__item__content .contact-columns h3 { font: 400 16px/1.4 'Oswald', sans-serif; color: #00518a; margin: 0 0 8px; letter-spacing: 1px; }
.contact-more { display: inline-block; margin-top: 16px; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.community-swiper { width: 100%; aspect-ratio: 5 / 7; overflow: hidden; }
.community-swiper .swiper-slide img.imagebox-photo { height: 100% !important; }
.community-prev,.community-next { position: absolute; z-index: 2; top: 50%; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: #00518a; font-size: 28px; cursor: pointer; }
.community-prev { left: 12px; }.community-next { right: 12px; }
@media (min-width: 980px) {
    .c-menu__container { max-width: none; }
    .c-menu__content { justify-content: space-between; gap: 32px; }
}
.c-calendar.is-page .is-location-list { width: 100%; gap: 24px; align-items: start; }
.c-calendar.is-page .is-location-group { min-width: 0; background: #f3f5f7; border-top: 3px solid #acbccb; padding: 20px; }
.c-calendar.is-page .is-location-group:first-child { background: #eaf1f8; border-top: 5px solid #00518a; }
.c-calendar.is-page .is-location-group:first-child .c-calendar__container__header--sub :is(h1,h2) { color: #00518a; font-weight: 600; }
@media (min-width: 1100px) { .c-calendar.is-page .is-location-list { grid-template-columns: 1.3fr 1fr 1fr; } }
.news-title { font: 400 30px 'Oswald', sans-serif; text-transform: uppercase; margin-bottom: 24px; }
.news-filters { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; margin-bottom: 24px; }
.news-filters label { display: grid; gap: 8px; flex: 1 1 170px; font-size: 14px; }
.news-filters input,.news-filters select { width: 100%; min-width: 0; padding: 12px; border: 1px solid #aab9c8; background: #fff; color: #0e2139; font: inherit; }
.news-filters button,.news-pagination button { padding: 12px 18px; border: 1px solid #587ca5; background: #fff; color: #00518a; cursor: pointer; font: inherit; }
.news-pagination button[aria-current] { background: #00518a; color: #fff; }
.news-count { margin-bottom: 24px; font-size: 14px; }
.news-pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin-top: 32px; }
.news-empty { padding: 40px 0; }
/* Global accessibility controls are opt-in and leave the default design intact. */
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #00518a; outline-offset: 4px; box-shadow: 0 0 0 2px #fff; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 3000; padding: 16px; background: #fff; color: #00518a; }
.skip-link:focus { top: 16px; }
.c-nav__menu { position: relative; }
.accessibility { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 1100; }
#accessibility-toggle { border: 0; background: transparent; color: inherit; cursor: pointer; font: 12px 'Lato', sans-serif; padding: 5px; white-space: nowrap; }
body:not(.is-page) #accessibility-toggle { color: #fff; }
#accessibility-panel { position: absolute; right: 0; top: calc(100% + 12px); width: min(340px, calc(100vw - 40px)); padding: 24px; border: 1px solid #e1e8ee; border-radius: 20px; background: #fff; color: #0e2139; box-shadow: 0 16px 56px #0e213926; text-align: left; font: 14px/1.5 'Lato', sans-serif; }
#accessibility-panel .accessibility-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
#accessibility-panel :is(h1,h2) { font: 400 24px/1.4 'Oswald', sans-serif; margin: 0; letter-spacing: .2px; }
#accessibility-panel .accessibility-intro { margin: 0 0 22px; color: #596b7c; font-size: 13px; }
#accessibility-panel button { padding: 0; appearance: none; border: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; }
#accessibility-panel button span { display: inline; color: inherit; font: inherit; letter-spacing: normal; text-transform: none; }
#accessibility-panel #accessibility-close { width: 36px; height: 36px; border-radius: 50%; background: #f0f4f7; font-size: 24px; line-height: 1; }
#accessibility-panel .text-size-label { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 600; }
#accessibility-panel .text-size-controls { display: flex; align-items: center; justify-content: space-between; padding: 5px; border-radius: 12px; background: #f0f4f7; margin-bottom: 16px; }
#accessibility-panel .text-size-controls button { width: 52px; height: 42px; background: #fff; border-radius: 9px; font-size: 18px; box-shadow: 0 1px 4px #0e21390a; }
#accessibility-size { font-weight: 600; color: #00518a; }
#accessibility-panel .accessibility-option { width: 100%; display: flex; align-items: center; gap: 12px; padding: 15px 0; border-bottom: 1px solid #edf1f4; text-align: left; }
#accessibility-panel .accessibility-option svg { width: 19px; height: 19px; flex-shrink: 0; color: #587ca5; }
#accessibility-panel .accessibility-option::after { content: ''; width: 36px; height: 22px; margin-left: auto; flex-shrink: 0; border: 1px solid #8195a8; border-radius: 999px; background: radial-gradient(circle at 10px 50%, #587ca5 6px, transparent 7px) #f0f4f7; }
#accessibility-panel .accessibility-option[aria-pressed=true]::after { border-color: #00518a; background: radial-gradient(circle at 25px 50%, #fff 6px, transparent 7px) #00518a; }
#accessibility-panel #accessibility-reset { display: block; margin: 20px auto 0; padding: 5px; color: #587ca5; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
#accessibility-panel button:hover { color: #00518a; }
.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; }
.a11y-contrast body,.a11y-contrast body :is(section,main,div,p,h1,h2,h3,h4,li,ul,nav,a,button,input,select,span,label,output) { color: #fff !important; background-color: #000 !important; border-color: #fff !important; }
.a11y-contrast a { color: #ffeb3b !important; }
.a11y-motion *, .a11y-motion *::before, .a11y-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
@media (max-width: 479px) { #accessibility-toggle span { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (min-width: 768px) { .c-additional__item__footer { min-height: 84px; line-height: 16px; } }

#accessibility-toggle span { font: inherit; letter-spacing: 0; text-transform: none; }
@media (min-width: 768px) and (max-width: 1099px) {
    .c-calendar.is-page .is-location-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .c-calendar.is-page .is-location-group:first-child { grid-column: 1 / -1; }
}
/* Larger text gets more room instead of overlapping narrow date/time columns. */
.a11y-large .c-calendar__element__content,
.a11y-large .c-calendar__element__content__item,
.a11y-large .c-news__element__content { display: block; }
.a11y-large .c-calendar__element__content__list,
.a11y-large .c-calendar__element__content__item .is-content,
.a11y-large .c-calendar__element__content__item .is-time,
.a11y-large .c-news__element__content__wrapper { width: 100%; }
.a11y-large .c-calendar__element__content__item .is-time { margin-bottom: 8px; }
.a11y-large .c-news__element__content__date,
.a11y-large .c-calendar__element__content__date { width: auto; margin: 0; transform: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.a11y-large .c-news__element__content__date .is-day,
.a11y-large .c-calendar__element__content__date .is-day { font-size: 28px !important; line-height: 1.4 !important; }
.a11y-large .c-news__element__footer { position: static; padding: 0 20px 20px; }
.a11y-large main :is(h1,h2,h3,h4,p,a) { overflow-wrap: anywhere; }
/* Accessibility: compact entry, clear state and opt-in monochrome photography. */
#accessibility-toggle { display: inline-flex; align-items: center; gap: 6px; }
#accessibility-toggle svg { width: 21px; height: 21px; }
#accessibility-toggle span { display: inline; }
#accessibility-panel .accessibility-heading { justify-content: flex-end; margin-bottom: 0; }
#accessibility-panel .text-size-label { margin-top: -25px; margin-bottom: 20px; padding-right: 40px; }
#accessibility-panel #accessibility-size-reset { width: 90px; background: transparent; box-shadow: none; font-size: 14px; }
#accessibility-size-reset:hover { text-decoration: underline; text-underline-offset: 4px; }
.a11y-grayscale main img, .a11y-grayscale .c-footer__image img { filter: grayscale(1); }
.a11y-contrast .c-nav__logo .is-glow { display: none !important; }
.a11y-contrast :is(.c-calendar__element__content__date,.c-news__element__content__date,.c-news__single__content__date,.c-calendar__element,.c-news__element,.c-pages__single__element__content,.c-pages__list__item .is-wrapper,.c-additional__item__content .is-description) { border: 1px solid #fff !important; }
.a11y-contrast #accessibility-panel .accessibility-option { border-bottom-color: #fff; }
.pdf-download svg { width: 23px; height: 23px; flex-shrink: 0; }
.magazine-download { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: #00518a; color: #fff; flex-shrink: 0; }
.magazine-download svg { width: 25px; height: 25px; }
.magazine-download:hover { background: #587ca5; }
.c-magazines .c-news__element__content__wrapper { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 88px; }
.c-magazines .c-news__element__content__wrapper h3 { margin: 0; }
/* Stable overlapping panels, including the related-content cards. */
.c-pages__content { position: relative; z-index: 1; min-width: 0; }
.c-pages__container > .c-pages.is-flex { gap: 0; width: 100%; align-items: flex-start; }
.c-pages__single__element { display: flex; flex-direction: column; min-width: 0; padding-left: 0; }
.c-pages__single__element__image { aspect-ratio: 5 / 3; }
.c-pages__single__element__image img.imagebox-photo,
.c-pages__single__element__image picture:has(> .imagebox-photo) { height: 100% !important; }
.c-pages__single__element__content { position: relative; margin: -20px 0 0 20px; width: calc(100% - 20px); padding: 25px 25px 60px; flex: 1; }
.c-pages__single__element__footer { left: 20px; right: 0; bottom: 20px; padding: 0 25px; }
.c-pages__single__element__content .is-description { overflow-wrap: anywhere; }
/* Small filters stay together at the left edge of the listing. */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.news-filters { gap: 12px; align-items: center; margin-bottom: 18px; }
.news-filters label { flex: 0 1 auto; display: block; }
.news-filters input,.news-filters select { width: auto; height: 36px; padding: 6px 10px; border: 0; border-bottom: 1px solid #b7c5d2; border-radius: 0; background: transparent; font: 13px/1.4 'Lato', sans-serif; color: #385c7b; }
.news-filters input { width: 215px; }
.news-filters select { max-width: 175px; }
.news-filters input::placeholder { color: #587ca5; opacity: 1; }
.news-filters input:focus,.news-filters select:focus { border-bottom-color: #00518a; }
.news-count { color: #587ca5; font-size: 12px; }
.news-pagination button { min-width: 36px; min-height: 36px; padding: 8px 12px; border: 1px solid transparent; border-radius: 18px; background: transparent; font: 13px/1.4 'Lato',sans-serif; }
.news-pagination button:hover:not(:disabled) { border-color: #b7c5d2; }
.news-pagination button:disabled:not([aria-current]) { opacity: .4; cursor: default; }
@media (max-width: 479px) {
    .news-filters { gap: 8px; }
    .news-filters label:first-child { flex-basis: 100%; }
    .news-filters input { width: min(100%, 260px); }
    .news-filters select { max-width: 165px; }
    .news-pagination { gap: 3px; }
    .news-pagination button { padding: 7px 9px; min-width: 32px; }
    .c-pages__content { padding: 28px; }
}

#accessibility-size-reset output { display: block; line-height: 18px; }
#accessibility-panel button .text-size-reset-label { display: block; font-size: 10px; line-height: 14px; color: #587ca5; }
.a11y-contrast :is(.c-pages__content,.c-community__content,.c-pages__element__content,.c-news__single__content,.c-calendar__element__content__list) { border: 1px solid #fff !important; }
.a11y-contrast .c-nav__logo a { background-image: url('../images/logo--white.svg'); }

.c-magazines .magazine-title { min-width: 0; }
.c-magazines .magazine-publication-date { display: block; margin-top: 7px; font: 12px/1.5 'Lato', sans-serif; color: #587ca5; }
.c-magazines .c-news__element__content__date span.magazine-issue-number { font-size: 38px; line-height: 1.2; overflow-wrap: anywhere; }

#accessibility-toggle span { text-transform: uppercase; letter-spacing: .5px; }
/* Calendar follows the parish hierarchy: Centre alongside the two smaller locations. */
.calendar-overview .c-calendar__container__header h1 { text-align: center; font: 400 22px/1.4 'Lato', sans-serif; letter-spacing: 2px; text-transform: uppercase; color: #883229; }
.c-calendar.calendar-overview .is-location-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: stretch; }
.c-calendar.calendar-overview .is-location-group,
.c-calendar.calendar-overview .is-location-group:first-child { padding: 18px; border: 0; border-radius: 10px; background: #edf4fa; min-width: 0; grid-column: auto; }
.calendar-overview .c-calendar__container__masses__list { padding: 0; gap: 0; }
.calendar-overview .c-calendar__container__header--sub { display: flex; align-items: center; gap: 16px; margin: 0 0 16px; }
.calendar-overview .calendar-church { display: block; flex-shrink: 0; width: 62px; height: 72px; background: #00518a; mask: url('../images/icon-church.svg') center / contain no-repeat; -webkit-mask: url('../images/icon-church.svg') center / contain no-repeat; }
.c-calendar.calendar-overview .is-location-group .c-calendar__container__header--sub :is(h1,h2) { position: relative; text-align: left; color: #00518a; font: 400 20px/1.35 'Oswald', sans-serif; letter-spacing: 0; padding-bottom: 14px; }
.calendar-overview .c-calendar__container__header--sub :is(h1,h2)::after { content: ''; position: absolute; width: 60px; height: 2px; left: 0; bottom: 0; background: #587ca5; }
.calendar-overview .c-calendar__element { display: block; padding: 0; min-width: 0; }
.calendar-overview .c-calendar__element__content { display: flex; flex-wrap: nowrap; border: 0; border-radius: 7px; padding: 12px; gap: 20px; }
.calendar-overview .c-calendar__element__content__date { width: 98px; flex-shrink: 0; margin: 0; padding: 12px 8px; border-radius: 10px; }
.calendar-overview .c-calendar__element__content__date span.is-day { font-size: 48px; line-height: 1.1; }
.calendar-overview .c-calendar__element__content__date span.is-location { font-size: 11px; }
.calendar-overview .c-calendar__element__content__list { width: auto; flex: 1; min-width: 0; }
.calendar-overview .c-calendar__element__content__item { display: block; padding: 4px 0 10px; }
.calendar-overview .c-calendar__element__content__item:last-child { padding-bottom: 0; }
.calendar-overview .c-calendar__element__content__item .is-time { width: auto; margin-bottom: 8px; font-size: 21px; line-height: 1.2; }
.calendar-overview .c-calendar__element__content__item .is-content { width: 100%; }
.calendar-overview .c-calendar__element__content__item .is-content h3 { font-size: 20px; line-height: 1.3; color: #0e2139; }
.calendar-overview .c-calendar__element__additional,
.calendar-overview .c-calendar__element__additional_info { margin-top: 8px; border-radius: 6px; }
.calendar-overview .is-location-group:first-child .calendar-church { width: 43.4px; height: 50.4px; }
@media (min-width: 980px) {
    .c-calendar.calendar-overview .is-location-list { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
    .c-calendar.calendar-overview .is-location-group:first-child { grid-row: 1 / 3; }
    .c-calendar.calendar-overview .is-location-group:not(:first-child) { grid-column: 2; }
    .calendar-overview .is-location-group:first-child .calendar-church { width: 70px; height: 75.6px; }
    .c-calendar.calendar-overview .is-location-group:first-child .c-calendar__container__header--sub :is(h1,h2) { font-size: 23px; }
}
@media (max-width: 479px) {
    .c-calendar.calendar-overview .is-location-group { padding: 12px; }
    .calendar-overview .c-calendar__element__content { gap: 12px; padding: 10px; }
    .calendar-overview .c-calendar__element__content__date { width: 78px; }
    .calendar-overview .c-calendar__element__content__date span.is-day { font-size: 40px; }
    .calendar-overview .c-calendar__element__content__date span.is-month,
    .calendar-overview .c-calendar__element__content__date span.is-location { font-size: 10px; }
    .calendar-overview .c-calendar__element__content__item .is-content h3 { font-size: 17px; }
}
.a11y-contrast .calendar-overview .is-location-group { border: 1px solid #fff !important; background-image: none !important; }
.a11y-contrast .calendar-church { background: #fff !important; }
.a11y-large .calendar-overview .c-calendar__element__content { flex-wrap: wrap; }
.a11y-large .calendar-overview .c-calendar__element__content__list { flex-basis: 100%; }
.c-calendar.calendar-overview { margin-top: 160px; margin-bottom: 24px; }
.c-calendar.calendar-overview .is-location-group:first-child .c-calendar__container__header--sub :is(h1,h2) { font-weight: 400; }
/* Homepage event cards: a quiet date badge and a clear location header. */
.c-calendar.home-events { margin-top: -80px; }
.home-events .c-calendar__container { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.home-events .c-calendar__element { display: block; width: 100%; padding: 0; min-width: 0; }
.home-events .c-calendar__element__content { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 16px; height: 100%; padding: 18px; border: 1px solid #edf1f5; border-radius: 13px; background: #fffffffa; box-shadow: none; }
.home-events .c-calendar__element__content__date { display: flex; flex-direction: column; justify-content: center; flex-shrink: 0; width: 94px; margin: 0; padding: 12px 14px; border-radius: 10px; background: #6193cc; color: #fff; font-family: 'Lato', sans-serif; }
.home-events .c-calendar__element__content__date span.is-month { font-size: 10px; font-weight: 700; opacity: 1; }
.home-events .c-calendar__element__content__date span.is-day { font: 700 44px/1.1 'Oswald', sans-serif; margin-top: 0; }
.home-events .c-calendar__element__content__list { width: auto; flex: 1; min-width: 0; padding-left: 0; border-left: 0; }
.home-event-location { display: flex; align-items: center; flex-wrap: wrap; column-gap: 4px; position: relative; min-height: 30px; padding-left: 30px; margin: 0 0 13px; color: #00518a; font: 400 14px/1.35 'Lato', sans-serif; text-transform: uppercase; }
.home-event-location strong { font-weight: 700; }
.home-event-church { position: absolute; left: -6px; top: -4px; width: 34px; height: 38px; background: #00518a; mask: url('../images/icon-church.svg') center / contain no-repeat; -webkit-mask: url('../images/icon-church.svg') center / contain no-repeat; }
.home-events .c-calendar__element__content__item { display: block; position: relative; padding: 0 0 12px 30px; margin-bottom: 12px; }
.home-events .c-calendar__element__content__item:last-child { margin: 0; padding-bottom: 0; }
.home-events .c-calendar__element__content__item .is-time { width: auto; margin: 0 0 4px; color: #154b88; font: 700 17px/1.3 'Lato', sans-serif; }
.home-event-icon { width: 20px; height: 20px; flex-shrink: 0; color: #154b88; }
.home-events .is-time .home-event-icon { position: absolute; left: 0; top: 1px; }
.home-events .c-calendar__element__content__item .is-content { width: 100%; }
.home-events .c-calendar__element__content__item .is-content h3 { margin: 0 0 8px; color: #154b88; font: 700 13px/1.4 'Lato', sans-serif; text-transform: uppercase; }
.home-events .c-calendar__element__content__item .is-content :is(.is-pastor,.is-moredetails) { position: relative; margin: 8px 0 0; padding: 0; background: none; color: #587ca5; font: 400 12px/1.45 'Lato', sans-serif; text-transform: uppercase; }
.home-events .is-content .home-event-icon { position: absolute; left: -30px; top: 50%; transform: translateY(-50%); }
.home-events .c-calendar__element__additional,
.home-events .c-calendar__element__additional_info { position: relative; border-radius: 8px; margin-top: 8px; }
.home-events .c-calendar__element:has(.c-calendar__element__additional, .c-calendar__element__additional_info) .c-calendar__element__content { height: auto; }
.home-events .c-calendar__footer { padding: 26px 0 20px; }
.home-events .c-calendar__footer a { padding: 0 22px 6px 0; text-decoration: underline; text-underline-offset: 8px; background: none; position: relative; font-size: 13px; letter-spacing: 1px; color: #00518a; }
.home-events .c-calendar__footer a::after { content: '›'; position: absolute; right: 0; top: -5px; font-size: 26px; }
@media (min-width: 980px) { .home-events .c-calendar__container { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 980px) and (max-width: 1099px) {
    .home-events .c-calendar__element__content { gap: 10px; padding: 12px; }
    .home-events .c-calendar__element__content__date { width: 74px; }
    .home-events .c-calendar__element__content__date span.is-month { font-size: 8px; }
    .home-events .c-calendar__element__content__list { padding-left: 0; }
    .home-event-location { font-size: 12px; }
}
.a11y-contrast .home-event-church { background: #fff !important; }
.a11y-contrast .home-event-icon { color: #fff; }
.a11y-large .home-events .c-calendar__element__content { flex-wrap: wrap; }
.a11y-large .home-events .c-calendar__element__content__list { flex-basis: 100%; border-left: 0; padding-left: 0; }

/* Shared rounding for date and publication badges throughout the theme. */
.c-calendar__element__content__date,
.c-news__element__content__date,
.c-news__single__content__date,
.c-news__single__element__content__date { border-radius: 10px; }

/* Align the event row with news and keep full photographs inside fixed thumbnails. */
.home-events .c-calendar__container { padding-inline: 20px; gap: 20px; }
.news-card .c-news__element__image { background: var(--photo-background, #edf1f5); overflow: hidden; }
.news-card .c-news__element__image img.imagebox-photo { object-fit: contain; height: 100% !important; }
.news-card .c-news__element__image picture:has(> .imagebox-photo) { height: 100% !important; }
.news-image-modal { padding: 48px 16px 16px; border: 0; border-radius: 12px; background: #0e2139; color: #fff; max-width: 95vw; max-height: 95dvh; }
.news-image-modal::backdrop { background: #000c; }
.news-image-modal img { display: block; max-width: 88vw; max-height: 78dvh; object-fit: contain; margin: auto; }
.news-image-modal button { position: absolute; right: 8px; top: 4px; width: 44px; height: 44px; color: #fff; font-size: 30px; }
.news-image-modal p { text-align: center; margin: 10px 0 0; font-size: 14px; }
html:has(.news-image-modal[open]) { overflow: hidden; }
.a11y-large .news-card .c-news__element__content { flex-wrap: wrap; }
.a11y-large .news-card .c-news__element__content__wrapper { flex-basis: 100%; }

/* Keep the lower panels flush with their photographs and headings. */
.c-additional__item__header { padding-left: 0; }
.c-additional__item__content .is-description { margin: 0; transform: none; width: 100%; }
.magazine-description { flex-wrap: wrap; justify-content: flex-start; gap: 20px; }
.magazine-summary { flex: 1; min-width: 130px; }
.publication-badge { flex-shrink: 0; min-width: 94px; padding: 20px 14px; border-radius: 10px; background: #6193cc; color: #fff; text-align: center; }
.publication-badge span { display: block; font: 700 10px/1.4 'Lato', sans-serif; text-transform: uppercase; }
.publication-badge strong { display: block; font: 700 38px/1.1 'Oswald', sans-serif; }

/* Restore square date badges and the original news-list overhang. */
.c-calendar__element__content__date,
.home-events .c-calendar__element__content__date,
.calendar-overview .c-calendar__element__content__date,
.c-news__element__content__date,
.c-news__single__content__date,
.c-news__single__element__content__date { border-radius: 0; }
.news-card .c-news__element__content__date { flex-shrink: 0; }
.news-card .c-news__element__content__wrapper { flex: 1; min-width: 0; }

/* Event and publication badges share the original news-card silhouette. */
.home-events .c-calendar__element { padding-left: 20px; }
.home-events .c-calendar__element__content { padding: 20px 20px 20px 0; align-items: flex-start; gap: 20px; border-radius: 0; }
.home-events .c-calendar__element__content__date { display: block; align-self: flex-start; width: 110px; margin: 0 0 0 -20px; padding: 15px; transform: none; font-family: 'Oswald', sans-serif; }
.home-events .c-calendar__element__content__date span.is-month { font-size: 13px; font-weight: 400; }
.home-events .c-calendar__element__content__date span.is-day { font-size: 60px; font-weight: 800; line-height: 1; }
.home-events .c-calendar__element__additional,
.home-events .c-calendar__element__additional_info { border-radius: 0; }
.magazine-description .publication-badge { width: 110px; min-width: 110px; margin: -20px 0 0 -40px; padding: 15px; border-radius: 0; align-self: flex-start; transform: translateY(-50%); }
.publication-badge span { font: 400 13px/1 'Oswald', sans-serif; }
.publication-badge strong { font: 800 48px/60px 'Oswald', sans-serif; overflow-wrap: anywhere; }
.a11y-large .home-events .c-calendar__element__content__date,
.a11y-large .magazine-description .publication-badge { margin: 0; transform: none; }
.a11y-large .home-events .c-calendar__element__content { padding-left: 20px; }
@media (max-width: 979px) {
    .home-events .c-calendar__container { row-gap: 22px; }
}

/* Remove the space previously reserved for the news-card footer. */
.news-card .c-news__element__content { padding-bottom: 0; }
.news-card .c-news__element__content__wrapper .is-description { margin-bottom: 0; }
.news-card .c-news__element__content__wrapper .is-description > :last-child { margin-bottom: 0; }

/* Compact badges keep mobile cards focused on their content. */
@media (max-width: 767px) {
    .home-events .c-calendar__element__content__date,
    .calendar-overview .c-calendar__element__content__date,
    .c-news__element__content__date,
    .c-news__single__content__date,
    .c-news__single__element__content__date,
    .magazine-description .publication-badge { width: 72px; min-width: 72px; padding: 10px 7px; }
    .c-calendar__element__content__date span.is-month,
    .home-events .c-calendar__element__content__date span.is-month,
    .c-news__element__content__date span.is-month,
    .c-news__single__content__date span.is-month,
    .c-news__single__element__content__date span.is-month,
    .publication-badge span { font-size: 10px; }
    .home-events .c-calendar__element__content__date span.is-day,
    .calendar-overview .c-calendar__element__content__date span.is-day,
    .c-news__element__content__date span.is-day,
    .c-news__single__content__date span.is-day,
    .c-news__single__element__content__date span.is-day { font-size: 40px; line-height: 1; }
    .publication-badge strong { font-size: 34px; line-height: 40px; }
    .home-events .c-calendar__element__content { gap: 14px; }
}
/* Full-screen mobile overlay with one scroll area and a persistent close button. */
@media (max-width: 979px) {
    .c-menu { padding: 0; height: 100dvh; background: #fff; }
    .c-menu > .is-wrapper { height: 100%; }
    .c-menu__container { height: 100%; max-height: none; flex-direction: column; flex-wrap: nowrap; overflow: hidden; }
    .c-menu__header { order: 0; width: 100%; flex-direction: row; align-items: center; justify-content: space-between; flex-shrink: 0; padding: calc(12px + env(safe-area-inset-top)) 20px 12px; }
    .c-menu__header .is-desktop { display: block; width: min(240px, 70%); height: auto; }
    .c-menu__header .is-mobile { display: none; }
    .c-menu__header button { margin: 0; width: 44px; height: 44px; flex-shrink: 0; color: #00518a; }
    .c-menu__header button img { display: none; }
    .c-menu__header button::after { content: '×'; font: 300 38px/1 'Lato', sans-serif; }
    .c-menu__content { order: 1; display: block; flex: 1; min-height: 0; width: 100%; max-height: none; padding: 16px 24px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; }
    .c-menu__content ul.is-mainMenu { width: 100%; }
    .c-menu__content ul.is-mainMenu + ul.is-mainMenu { border-top: 1px dotted #b5c7d8; margin-top: 16px; padding-top: 12px; }
    .c-menu__content ul li { padding-left: 0; margin: 0 0 16px; }
    .c-menu__content ul li a { display: inline-flex; align-items: center; min-height: 44px; }
    .c-menu__content ul li ul li { padding-left: 14px; margin: 0; background-position: 0 19px; }
}
