/* Compatibility for migrated content; all fonts, colours and surfaces come from the target design. */
.rd-section>div:empty{display:none}
.rd-section .rd-cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}
.rd-section .rd-cards>.rd-card{min-width:0}
.rd-section .rd-card a{overflow-wrap:anywhere}
.rd-section .rd-card img{display:block;max-width:100%;height:auto}
.rd-section .rd-card span{line-height:1.6}
.rd-section .rd-card .rd-lead{font-size:inherit}
.rd-section .rd-photo{max-width:100%;margin-block:24px}
.rd-section>div:has(>.rd-photo):has(>div){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;gap:clamp(28px,5vw,80px)}
.rd-section video{width:100%;aspect-ratio:4/5;object-fit:cover;object-position:center;display:block;border-radius:var(--rd-radius)}
.rd-section svg{max-width:24px;max-height:24px}
.rd-phero{height:auto;min-height:clamp(600px,86vh,860px)}
.rd-phero .rd-hero__inner{padding-bottom:80px}
.rd-phero .rd-hero__sub{max-width:60ch}
.rd-section h2{overflow-wrap:break-word}
.rd-next__grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.rd-gen__art img:only-child{width:100%;height:100%;position:absolute;inset:0;animation:none;opacity:1}
.rd-cards--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.migration-tools{display:flex;flex-wrap:wrap;gap:10px;margin-block:20px}
.migration-tools button,.migration-tools summary{cursor:pointer}
.migration-event-poster{display:block;width:100%;aspect-ratio:4/5;object-fit:contain}
.migration-agenda-poster{width:48px;height:60px;object-fit:contain;flex:none}
.migration-agenda-row{display:flex;align-items:center;gap:14px;width:100%;text-align:start;padding:12px;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer}
.migration-event-card:target,.migration-event-card:focus{outline:2px solid var(--rd-purple);outline-offset:5px}
/* Fixed tracks keep single and partial rows compact without stretching cards. */
.ul-root #home #calendar-detail{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:start}
.ul-root #home #calendar-detail>h3,.ul-root #home #calendar-detail>p{grid-column:1/-1;margin:0}
.ul-root #home #calendar-detail>.migration-event-card{min-width:0;margin:0;padding:16px;border-radius:20px;overflow-wrap:anywhere}
.ul-root #home #calendar-detail .migration-event-card>a:has(>.migration-event-poster){display:block}
.ul-root #home #calendar-detail .migration-event-poster{width:100%;height:auto;max-height:240px;aspect-ratio:auto;object-fit:contain}
.ul-root #home #calendar-detail .migration-event-card h3{font-size:18px;line-height:1.35;margin:12px 0 8px}
.ul-root #home #calendar-detail .migration-event-card p{font-size:14px;line-height:1.6;margin:8px 0}
.ul-root #home #calendar-detail .migration-event-card .rd-btn{min-height:44px;max-width:100%;padding:10px 12px;font-size:13px;line-height:1.4;white-space:normal;overflow-wrap:anywhere;text-align:center}
@media(max-width:600px){.ul-root #home #calendar-detail{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px}.ul-root #home #calendar-detail>.migration-event-card{padding:12px}.ul-root #home #calendar-detail .migration-event-card h3{font-size:16px}}
@media(max-width:359px){.ul-root #home #calendar-detail{grid-template-columns:minmax(0,1fr)}}
#upcoming-events{grid-template-columns:repeat(4,minmax(0,1fr))}
#upcoming-events .rd-card{padding:12px}
#upcoming-events .rd-card a{display:block}
#upcoming-events .rd-btn{padding:12px;min-height:44px;font-size:14px}
[data-map] iframe{width:100%;height:300px;border:0;border-radius:var(--rd-radius);margin-top:16px}
.migration-time{font-size:clamp(64px,8vw,112px);font-weight:900;letter-spacing:-.04em;line-height:1.1;margin:20px 0;color:var(--rd-purple)}
.migration-event-card .migration-event-theme,[data-migration-visit] .migration-event-theme{font-weight:700;line-height:1.4;overflow-wrap:anywhere}
.migration-event-card .migration-event-type,[data-migration-visit] .migration-event-type{overflow-wrap:anywhere}
[data-migration-visit] .migration-event-theme{font-size:clamp(20px,2.4vw,28px);margin:12px 0}
[data-migration-visit] ul{list-style:none;padding:0;color:var(--rd-muted)}
[data-migration-visit] li{margin-block:10px}
[data-give-status]{min-height:1.6em}
[hidden]{display:none!important}
@media(max-width:900px){.rd-next__grid,#upcoming-events{grid-template-columns:repeat(2,minmax(0,1fr))}.rd-section>div:has(>.rd-photo):has(>div){grid-template-columns:1fr}}
@media(max-width:600px){.rd-next__grid,.rd-cards--3,#upcoming-events{grid-template-columns:1fr}.migration-tools{flex-wrap:wrap}.migration-tools details{min-width:0;max-width:100%}.migration-tools .rd-btn{white-space:normal;overflow-wrap:anywhere;max-width:100%;padding-inline:18px}.rd-section .rd-split{grid-template-columns:1fr}.rd-section{min-width:0}.rd-phero .rd-hero__title{overflow-wrap:normal;hyphens:manual}.rd-hero__sub{overflow-wrap:break-word}}
.rd-phero .rd-hero__inner{min-height:inherit;box-sizing:border-box;padding-top:clamp(170px,22vh,250px)}
@media(max-width:700px){.rd-phero .rd-hero__inner{padding-top:210px}}
@media(max-width:850px){.ul-root .topbar .nav{justify-content:flex-start;overflow-x:auto;scrollbar-width:thin}.ul-root .topbar .nav a{flex:0 0 auto;min-width:max-content}}

/* Link audit: keep the existing footer appearance, enlarge only its hit area. ABOUT is excluded. */
body.ul-root:has(.page:not([hidden]):not(#glauben)) #privacy-settings-trigger{min-height:44px}
body.ul-root #home:not([hidden]) .month-step{min-width:44px;min-height:44px}
body.ul-root:has(.page:not([hidden]):not(#glauben)) :is(.privacy-close,.modal-close,.giving-dialog-close){min-width:44px;min-height:44px}
body.ul-root:has(.page:not([hidden]):not(#glauben)) .footer-links a{display:inline-flex;align-items:center;min-height:44px}

/* Advent 2026: five stable event IDs receive this local palette from the renderer. */
.ul-root :is(.ul-seasonal-event,#weihnachts-brunch,#heiligabend){
 --ul-brand-primary:var(--ul-brand-deep-wine);--ul-brand-primary-rgb:92 27 44;
 --ul-color-primary:var(--ul-brand-deep-wine);--ul-color-text:var(--ul-brand-deep-wine);
 --ul-color-muted:var(--ul-brand-deep-wine);--ul-color-focus:var(--ul-brand-deep-wine);
 --rd-purple:var(--ul-brand-deep-wine);--rd-ink:var(--ul-brand-deep-wine);--rd-muted:var(--ul-brand-deep-wine);
 color:var(--ul-brand-deep-wine)!important;border-color:var(--ul-brand-deep-wine)!important;
}
.ul-root :is(.ul-seasonal-event,#weihnachts-brunch,#heiligabend){background-color:var(--ul-brand-paper)!important}
.ul-root :is(.ul-seasonal-event,#weihnachts-brunch,#heiligabend) :is(h2,h3,h4,p,em,strong,small,span,li,dt,dd,a:not(.rd-btn),svg){color:var(--ul-brand-deep-wine)!important}
.ul-root :is(.ul-seasonal-event,#weihnachts-brunch,#heiligabend) :is(hr,.ul-christmas-event__signup){border-color:var(--ul-brand-deep-wine)!important}
.ul-root :is(.ul-seasonal-event,#weihnachts-brunch,#heiligabend) .rd-btn{
 background:transparent!important;color:var(--ul-brand-deep-wine)!important;border-color:var(--ul-brand-deep-wine)!important;
}
.ul-root :is(.ul-seasonal-event,#weihnachts-brunch,#heiligabend) :is(.rd-btn--dark,.rd-btn--lime),
.ul-root :is(.ul-seasonal-event,#weihnachts-brunch,#heiligabend) .rd-btn:active{
 background:var(--ul-brand-deep-wine)!important;color:var(--ul-brand-paper)!important;
}
.ul-root :is(.ul-seasonal-event,#weihnachts-brunch,#heiligabend) .rd-btn:is(:hover,:focus-visible){
 background:var(--ul-brand-paper)!important;color:var(--ul-brand-deep-wine)!important;
}
.ul-root :is(.ul-seasonal-event,#weihnachts-brunch,#heiligabend) :is(a,button):focus-visible,
.ul-root :is(.ul-seasonal-event,#weihnachts-brunch,#heiligabend):is(:focus,:focus-visible){outline-color:var(--ul-brand-deep-wine)!important}
.ul-root :is(.ul-seasonal-event,#weihnachts-brunch,#heiligabend).calendar-day[aria-pressed=true]{background:var(--ul-brand-deep-wine)!important;color:var(--ul-brand-paper)!important}
.ul-root .calendar-day.ul-seasonal-event::after{background:var(--ul-brand-deep-wine)!important}
.ul-root .calendar-day.ul-seasonal-event[aria-pressed=true]::after{background:var(--ul-brand-paper)!important}

.ul-root #calendar-detail > h3.ul-seasonal-event{background:transparent!important}
.ul-root.rd-dark #calendar-detail > h3.ul-seasonal-event{color:var(--ul-brand-paper)!important}

.ul-root.rd-dark :is(.ul-seasonal-event,#weihnachts-brunch,#heiligabend).calendar-day:focus-visible{outline-color:var(--ul-brand-paper)!important}

/* The absolutely positioned clip must not collapse its auto-sized mobile frame. */
.ul-root #home .rd-story__phone{width:100%;min-width:0}
.ul-root :is(.ul-seasonal-event,#weihnachts-brunch,#heiligabend) .rd-btn :is(span,svg){color:inherit!important}

/* Reuse the existing Hero card as a single, keyboard-accessible calendar link. */
.ul-root #home [data-hero-highlight]{display:block;text-decoration:none;white-space:normal;overflow-wrap:anywhere;text-align:start}
.ul-root #home [data-hero-highlight] :is(small,strong,span){white-space:normal;overflow-wrap:anywhere}
.ul-root #home [data-hero-highlight] strong{line-height:1.35}

.ul-root #home [data-hero-highlight] small{color:var(--ul-brand-paper)!important}

.ul-root #home [data-hero-highlight]:focus-visible{outline:2px solid var(--ul-brand-paper)!important;outline-offset:4px}
