/* Shared theme completion for every standalone route in the 1blu preview. */
/* Keep the home header's readable cream-and-cobalt treatment in both themes. */
body.ul-root:has(#home:not([hidden])) .topbar {
  --ul-brand-primary: #2d4bc4;
  --ul-brand-primary-rgb: 45 75 196;
  --ul-brand-paper: #f4f1ec;
  --ul-brand-paper-rgb: 244 241 236;
  --ul-brand-stone-rgb: 207 201 191;
  color: #2d4bc4 !important;
  background: rgb(244 241 236 / 0.97) !important;
  background-image: none !important;
  border-color: rgb(207 201 191 / 0.9) !important;
  box-shadow: 0 16px 42px rgb(14 24 84 / 0.14), inset 0 1px 0 rgb(255 255 255 / 0.96) !important;
}

body.ul-root:has(#home:not([hidden])) .topbar :is(.brand, .ul-wordmark, .nav a, .language-picker summary, .language-chevron, .ul-menu-toggle, .top-cta) {
  color: #2d4bc4 !important;
  border-color: rgb(45 75 196 / 0.4) !important;
}

body.ul-root:has(#home:not([hidden])) .topbar :is(.language-picker summary, .ul-menu-toggle) {
  background: rgb(255 255 255 / 0.52) !important;
  background-image: none !important;
}

body.ul-root:has(#home:not([hidden])) .topbar .nav a:is([aria-current="page"], [aria-current="location"], :hover, :focus-visible, :active) {
  background: rgb(45 75 196 / 0.1) !important;
  color: #243d9f !important;
  border-color: rgb(45 75 196 / 0.34) !important;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.7) !important;
}

body.ul-root:has(#home:not([hidden])) .topbar .language-options {
  background: #fff !important;
  background-image: none !important;
  color: #243d9f !important;
  border-color: #2d4bc4 !important;
}

body.ul-root:has(#home:not([hidden])) .topbar .language-option {
  color: #243d9f !important;
}

body.ul-root:has(#home:not([hidden])) .topbar .language-option.is-current {
  background: #2d4bc4 !important;
  color: #fff !important;
}

.ul-root.rd-dark:not(.ul-fixed-page-palette) {
  color-scheme: dark;
  --ul-color-surface: #171426;
  --ul-color-card: #29253d;
  --ul-color-text: #f8f6ff;
  --ul-color-muted: #ded9ec;
  --ul-color-border: #655d7d;
  --ul-color-focus: #fff;
  background: #171426 !important;
  color: #f8f6ff !important;
}

/* Page roots can carry their own light palette; turn those surfaces dark too. */
body.ul-root.rd-dark main > :is(#home, #geben, #glauben, #impressum, #jugend, #kinder, #team, #young-adults) {
  background-color: #171426 !important;
  color: #f8f6ff !important;
  color-scheme: dark;
}

body.ul-root.rd-dark :is(#giving-funds, #familien-zuhause, #ya-vision) {
  background-color: #29253d !important;
  background-image: none !important;
  color: #f8f6ff !important;
  border-color: #655d7d !important;
}
body.ul-root.rd-dark :is(#giving-funds, #familien-zuhause, #ya-vision) :is(h1, h2, h3, h4, p, strong, span, li, a, small, blockquote) {
  color: #f8f6ff !important;
}
body.ul-root.rd-dark #geben #giving-funds,
body.ul-root.rd-dark #kinder #familien-zuhause,
body.ul-root.rd-dark #young-adults #ya-vision {
  background-color: #29253d !important;
  background-image: none !important;
  color: #f8f6ff !important;
  border-color: #655d7d !important;
}
body.ul-root.rd-dark #geben #giving-funds :is(h1, h2, h3, h4, p, strong, span, li, a, small, blockquote),
body.ul-root.rd-dark #kinder #familien-zuhause :is(h1, h2, h3, h4, p, strong, span, li, a, small, blockquote),
body.ul-root.rd-dark #young-adults #ya-vision :is(h1, h2, h3, h4, p, strong, span, li, a, small, blockquote) {
  color: #f8f6ff !important;
}

.ul-root.rd-dark:not(.ul-fixed-page-palette) .rd-dock {
  background: #242037 !important;
  background-image: none !important;
  color: #f8f6ff !important;
  border-color: #655d7d !important;
}

.ul-root.rd-dark:not(.ul-fixed-page-palette) .rd-dock :is(a, button, span, summary) {
  color: #f8f6ff !important;
}

.ul-root.rd-dark:not(.ul-fixed-page-palette) .rd-dock :is(a, button):not(.rd-dock__primary) {
  background: #f4effc !important;
  color: var(--rd-ink) !important;
  border: 1px solid var(--rd-ink) !important;
  box-shadow: 0 2px 8px rgb(20 12 42 / 0.18) !important;
}

/* Keep all three floating dock icons legible across route-specific palettes. */
body.ul-root.rd-dark:has(:is(#home, #geben, #glauben, #impressum, #jugend, #kinder, #team, #young-adults):not([hidden])) .rd-dock :is(a, button):not(.rd-dock__primary) {
  background: #f4effc !important;
  color: #2d4bc4 !important;
  border: 1px solid #2d4bc4 !important;
}
body.ul-root.rd-dark:has(:is(#home, #geben, #glauben, #impressum, #jugend, #kinder, #team, #young-adults):not([hidden])) .rd-dock :is(a, button):not(.rd-dock__primary) svg {
  color: #2d4bc4 !important;
  stroke: currentColor !important;
}

.ul-root.rd-dark:not(.ul-fixed-page-palette) :is(
  .rd-card, .rd-gen__body, .rd-step, .rd-stat, .rd-values li, .rd-note, .rd-offer,
  .calendar, .upcoming, .upcoming-card, .news-card, .event, .calendar-detail,
  .cms-content-block, .cms-cta, .cms-media, .faith-page, .belief, .values,
  .signup, .kids-card, .youth-card, .team-card, .modal-card, .privacy-dialog
) {
  background-color: #29253d !important;
  background-image: none !important;
  color: #f8f6ff !important;
  border-color: #655d7d !important;
  box-shadow: 0 12px 34px rgb(0 0 0 / 0.24) !important;
}

.ul-root.rd-dark:not(.ul-fixed-page-palette) :is(
  .rd-card, .rd-gen__body, .rd-step, .rd-stat, .rd-values li, .rd-note, .rd-offer,
  .calendar, .upcoming, .upcoming-card, .news-card, .event, .calendar-detail,
  .cms-content-block, .cms-cta, .cms-media, .faith-page, .belief, .values,
  .signup, .kids-card, .youth-card, .team-card, .modal-card, .privacy-dialog
) :is(p, h2, h3, h4, strong, span, li, dt, dd, label, small, blockquote) {
  color: #f8f6ff !important;
}

.ul-root.rd-dark:not(.ul-fixed-page-palette) :is(.rd, .rd-section, .rd-h2, .rd-lead, .rd-small, .rd-eyebrow, .footer) {
  color: #f8f6ff !important;
}

.ul-root.rd-dark:not(.ul-fixed-page-palette) a:not(.topbar a):not(.rd-btn):not(.btn) {
  color: #d7d0ff;
}

.ul-root.rd-dark:not(.ul-fixed-page-palette) :is(.rd-btn, .btn, .calendar-action, .modal-actions button) {
  background-color: #d4dc7a !important;
  color: #19162a !important;
  border-color: #d4dc7a !important;
}

.ul-root.rd-dark:not(.ul-fixed-page-palette) :is(.rd-hero, .rd-phero) .rd-hero__shade {
  background: linear-gradient(90deg, rgb(23 20 38 / 0.94), rgb(23 20 38 / 0.62)) !important;
}

.ul-root.rd-dark:not(.ul-fixed-page-palette) .footer,
.ul-root.rd-dark:not(.ul-fixed-page-palette) .footer a {
  color: #f8f6ff !important;
  border-color: #655d7d !important;
}

.ul-root.rd-dark:not(.ul-fixed-page-palette) .modal-card,
.ul-root.rd-dark:not(.ul-fixed-page-palette) .privacy-dialog {
  background: #29253d !important;
  color: #f8f6ff !important;
}

.ul-root.rd-dark:not(.ul-fixed-page-palette) .modal-card :is(p, h2, h3, strong, span),
.ul-root.rd-dark:not(.ul-fixed-page-palette) .privacy-dialog :is(p, h2, h3, strong, span) {
  color: #f8f6ff !important;
}

.ul-root.rd-dark:not(.ul-fixed-page-palette) .modal-card .modal-actions .btn,
.ul-root.rd-dark:not(.ul-fixed-page-palette) .privacy-dialog #privacy-done {
  background: #d4dc7a !important;
  color: #19162a !important;
  border-color: #d4dc7a !important;
}

.ul-root :is(.modal-card, .privacy-dialog) :is(button, a):focus-visible,
.ul-root.rd-dark:not(.ul-fixed-page-palette) :is(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid #d4dc7a !important;
  outline-offset: 3px !important;
}

.ul-root :is(.modal-card, .privacy-dialog) .modal-actions .btn {
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
}

/* ABOUT footer follows the wine palette with readable cream links. */
body.ul-root:has(#glauben:not([hidden])) .footer{color:#f4f1ec!important;border-color:rgba(244,241,236,.5)!important}
body.ul-root:has(#glauben:not([hidden])) .footer :is(a,button,span,p,.brand,.ul-wordmark){color:#f4f1ec!important}
body.ul-root:has(#glauben:not([hidden])) .footer :is(a,button):focus-visible{outline:2px solid #d4dc7a;outline-offset:4px}
