/* The bulletin's colours are scoped to this page and respect the site theme. */
.worship-schedule {
    --bulletin-green: #285d4a;
    --bulletin-green-bg: #f0f7f2;
    --bulletin-blue: #294f7c;
    --bulletin-blue-bg: #f0f5fc;
    --bulletin-gold: #79551d;
    --bulletin-gold-bg: #fcf6e9;
    --bulletin-plum: #75436a;
    --bulletin-plum-bg: #f8f1f6;
    --bulletin-line: #dce5df;
    --bulletin-top: #f4f7f3;
    background: linear-gradient(180deg, var(--bulletin-top), var(--background-color) 70%);
    padding-block: clamp(2rem, 5vw, 4.5rem);
}
body.dark-background .worship-schedule {
    --bulletin-green: #a3d8b8;
    --bulletin-green-bg: #1e3029;
    --bulletin-blue: #a8c9f0;
    --bulletin-blue-bg: #202d3e;
    --bulletin-gold: #e8c885;
    --bulletin-gold-bg: #332d21;
    --bulletin-plum: #dfb4d3;
    --bulletin-plum-bg: #332633;
    --bulletin-line: #3d4944;
    --bulletin-top: #18231e;
}
.worship-schedule .parish-bulletin { font-size: 1.15rem; line-height: 1.8; min-width: 0; }
.worship-schedule .bulletin-header { margin-bottom: 2rem; }
.worship-schedule .schedule-heading {
    max-width: 20ch;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -.025em;
    color: var(--bulletin-green);
    margin-bottom: 1.4rem;
    text-wrap: balance;
}
.worship-schedule .bulletin-navigation { display: flex; flex-wrap: wrap; gap: .55rem; }
.worship-schedule .bulletin-navigation a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: .5rem 1rem;
    border-bottom: 1px solid var(--bulletin-line);
    border-radius: 10px;
    /* background: var(--surface-color); */
    color: var(--bulletin-green);
    font-family: var(--nav-font);
    font-size: .8rem;
    line-height: 1.4;
    text-decoration: none;
}
.worship-schedule .bulletin-navigation a:hover { border-color: var(--bulletin-green); background: var(--bulletin-green-bg); }
.worship-schedule a:focus-visible { outline: 3px solid var(--bulletin-blue); outline-offset: 4px; }
.worship-schedule .bulletin-card {
    --card-accent: var(--bulletin-green);
    position: relative;
    border: 1px solid var(--bulletin-line);
    border-inline-start: 4px solid var(--card-accent);
    border-radius: 14px;
    padding: clamp(1.25rem, 3vw, 2.25rem);
    margin: 0 0 1.5rem;
    background: var(--surface-color);
    color: var(--default-color);
    box-shadow: 0 5px 22px rgb(0 0 0 / 3%);
    scroll-margin-top: 140px;
    min-width: 0;
}
.worship-schedule .bulletin-card h2 { font-size: clamp(1.6rem, 3vw, 2rem); color: var(--card-accent); line-height: 1.2; margin: 0 0 1.25rem; }
.worship-schedule .bulletin-services {
    --service-color: var(--litcal-green);
    --card-accent: color-mix(in srgb, var(--service-color) 70%, #111);
    background: linear-gradient(120deg, color-mix(in srgb, var(--service-color) 24%, var(--surface-color)), var(--surface-color) 95%);
}
.worship-schedule .bulletin-services--purple { --service-color: var(--litcal-purple); }
.worship-schedule .bulletin-services--white { --service-color: var(--litcal-white); --card-accent: #555; }
.worship-schedule .bulletin-services--red { --service-color: var(--litcal-red); }
.worship-schedule .bulletin-services--green { --service-color: var(--litcal-green); }
.worship-schedule .bulletin-services--rose { --service-color: var(--litcal-rose); }
body.dark-background .worship-schedule .bulletin-services { --card-accent: color-mix(in srgb, var(--service-color), #fff 50%); }
.worship-schedule .bulletin-services .schedule-content p:has(> strong:only-child) { margin: 1.5rem 0 .35rem; color: var(--card-accent); }
.worship-schedule .bulletin-services .schedule-content p:first-child { margin-top: 0; }
.worship-schedule .parish-weekly-announcements { --card-accent: var(--bulletin-blue); }
.worship-schedule .bulletin-section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-bottom: .8rem; }
.worship-schedule .bulletin-section-heading h2 { margin-bottom: .4rem; }
.worship-schedule .bulletin-week-dates { background: var(--bulletin-blue-bg); color: var(--bulletin-blue); padding: .35rem .8rem; margin: 0; border-radius: 7px; font-family: var(--nav-font); font-size: .85rem; white-space: nowrap; }
.worship-schedule .bulletin-week-dates a { color: inherit; text-decoration: none; }
.worship-schedule .bulletin-week-dates a:hover { text-decoration: underline; }
.worship-schedule .parish-weekly-announcements h3 { font-size: 1.3rem; color: var(--bulletin-blue); margin-bottom: 1.5rem; }
.worship-schedule .schedule-content { overflow-wrap: anywhere; overflow-x: auto; }
.worship-schedule .schedule-content p { margin-bottom: 1.15rem; }
.worship-schedule .schedule-content > :last-child { margin-bottom: 0; }
.worship-schedule .schedule-content img { max-width: 100%; height: auto; }
.worship-schedule .schedule-content a, .worship-schedule .bulletin-links a { text-decoration: underline; text-underline-offset: .2em; }
.worship-schedule .bulletin-closing-notes { --card-accent: var(--bulletin-gold); background: var(--bulletin-gold-bg); }
.worship-schedule .bulletin-photo-card {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    padding: 0;
    overflow: hidden;
}
.worship-schedule .bulletin-card-body { padding: clamp(1.25rem, 3vw, 2.25rem); min-width: 0; }
.worship-schedule .bulletin-card-photo { position: relative; min-height: 280px; }
.worship-schedule .bulletin-card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.worship-schedule .bulletin-quotation {
    --card-accent: var(--bulletin-plum);
    background: #201d25;
    color: #fff;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    align-items: center;
}
.worship-schedule .bulletin-quotation-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.worship-schedule .bulletin-quotation::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgb(18 16 23 / 92%), rgb(18 16 23 / 78%) 60%, rgb(18 16 23 / 38%)); }
.worship-schedule .bulletin-quotation-text { position: relative; z-index: 2; width: 75%; font-size: 1.25em; text-shadow: 0 2px 6px rgb(0 0 0 / 50%); }
/* Preserve editor formatting while keeping text readable over the photograph. */
.worship-schedule .bulletin-quotation-text,
.worship-schedule .bulletin-quotation-text * { color: #fff !important; }
.worship-schedule .bulletin-contact { background: var(--bulletin-green-bg); }
.worship-schedule .bulletin-contact h2 { font-size: 1.4rem; margin-bottom: .65rem; }
.worship-schedule .bulletin-contact p { margin: 0; overflow-wrap: anywhere; }
.worship-schedule .bulletin-links { position: sticky; top: 140px; border: 1px solid var(--bulletin-line); border-radius: 14px; padding: 1.5rem; background: var(--surface-color); }
.worship-schedule .bulletin-links h2 { font-size: 1.5rem; color: var(--bulletin-green); margin-bottom: 1rem; }
.worship-schedule .bulletin-links ul { padding-inline-start: 1.15rem; margin: 0; }
.worship-schedule .bulletin-links li + li { margin-top: .8rem; }
@media (max-width: 575.98px) {
    .worship-schedule .bulletin-photo-card { grid-template-columns: minmax(0, 1fr); }
    .worship-schedule .bulletin-card-photo { min-height: 0; aspect-ratio: 16 / 9; }
    .worship-schedule .bulletin-quotation-text { width: 100%; }
    .worship-schedule .bulletin-quotation::before { background: rgb(18 16 23 / 80%); }
    .worship-schedule .parish-bulletin { font-size: 1.08rem; }
    .worship-schedule .bulletin-navigation { gap: .4rem; }
    .worship-schedule .bulletin-navigation a { padding-inline: .8rem; }
    .worship-schedule .bulletin-card { border-radius: 10px; margin-bottom: 1rem; }
    .worship-schedule .bulletin-links { position: static; }
}
@media print {
    .worship-schedule { background: white; padding: 0; }
    .worship-schedule .bulletin-navigation, .worship-schedule .bulletin-sidebar { display: none; }
    .worship-schedule .bulletin-card { box-shadow: none; background: white; color: black; break-inside: avoid; }
    .worship-schedule .bulletin-photo-card { display: block; }
    .worship-schedule .bulletin-card-photo,
    .worship-schedule .bulletin-quotation-photo,
    .worship-schedule .bulletin-quotation::before { display: none; }
    .worship-schedule .bulletin-quotation { min-height: 0; }
    .worship-schedule .bulletin-quotation-text { width: 100%; text-shadow: none; }
    .worship-schedule .bulletin-quotation-text,
    .worship-schedule .bulletin-quotation-text * { color: black !important; }
}
