/* Final contrast layer. Loaded after style.min.css on every public page. */

.schedule-special-service-day:not(.schedule-pascha-day),
.schedule-memorial-day:not(.schedule-pascha-day) {
  background: linear-gradient(135deg, #fffaf0 0%, #f6ead3 100%) !important;
  color: var(--text-dark) !important;
  border: 1px solid rgba(107, 26, 26, .28) !important;
  box-shadow: 0 14px 38px rgba(107, 26, 26, .10) !important;
}

.schedule-special-service-day:not(.schedule-pascha-day) h3,
.schedule-memorial-day:not(.schedule-pascha-day) h3,
.schedule-special-service-day:not(.schedule-pascha-day) .schedule-date,
.schedule-memorial-day:not(.schedule-pascha-day) .schedule-date,
.schedule-special-service-day:not(.schedule-pascha-day) .schedule-day-date,
.schedule-memorial-day:not(.schedule-pascha-day) .schedule-day-date,
.schedule-special-service-day:not(.schedule-pascha-day) .schedule-special-title,
.schedule-memorial-day:not(.schedule-pascha-day) .schedule-special-title,
.schedule-special-service-day:not(.schedule-pascha-day) .schedule-calendar-title,
.schedule-memorial-day:not(.schedule-pascha-day) .schedule-calendar-title,
.schedule-special-service-day:not(.schedule-pascha-day) .service-name,
.schedule-memorial-day:not(.schedule-pascha-day) .service-name {
  color: var(--navy) !important;
}

.schedule-special-service-day:not(.schedule-pascha-day) .schedule-muted,
.schedule-memorial-day:not(.schedule-pascha-day) .schedule-muted,
.schedule-special-service-day:not(.schedule-pascha-day) .schedule-source-note,
.schedule-memorial-day:not(.schedule-pascha-day) .schedule-source-note {
  color: var(--text-light) !important;
}

.schedule-special-service-day:not(.schedule-pascha-day) .schedule-special-service-banner,
.schedule-memorial-day:not(.schedule-pascha-day) .schedule-special-service-banner {
  background: #fff5df !important;
  border: 1px solid rgba(107, 26, 26, .30) !important;
  color: var(--burgundy) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55);
}

.schedule-special-service-day:not(.schedule-pascha-day) .schedule-special-service-banner span,
.schedule-memorial-day:not(.schedule-pascha-day) .schedule-special-service-banner span {
  background: #fff !important;
  color: var(--burgundy) !important;
  border: 1px solid rgba(107, 26, 26, .36) !important;
}

.schedule-special-service-day:not(.schedule-pascha-day) .schedule-special-service-banner strong,
.schedule-memorial-day:not(.schedule-pascha-day) .schedule-special-service-banner strong {
  color: var(--burgundy) !important;
}

.schedule-special-service-day:not(.schedule-pascha-day) .service-time,
.schedule-memorial-day:not(.schedule-pascha-day) .service-time {
  color: var(--burgundy) !important;
}

.schedule-special-service-day:not(.schedule-pascha-day) .service-lang,
.schedule-memorial-day:not(.schedule-pascha-day) .service-lang {
  color: var(--burgundy) !important;
  border-color: rgba(107, 26, 26, .34) !important;
  background: rgba(107, 26, 26, .06) !important;
}

.schedule-special-service-day:not(.schedule-pascha-day) .schedule-details summary,
.schedule-memorial-day:not(.schedule-pascha-day) .schedule-details summary {
  background: #fffaf0 !important;
  border-color: rgba(107, 26, 26, .22) !important;
  color: var(--burgundy) !important;
}

.schedule-special-service-day:not(.schedule-pascha-day) .schedule-detail-body,
.schedule-memorial-day:not(.schedule-pascha-day) .schedule-detail-body {
  background: rgba(255, 255, 255, .72) !important;
  border-left-color: rgba(107, 26, 26, .45) !important;
  color: var(--text-dark) !important;
}

.schedule-special-service-day:not(.schedule-pascha-day) .schedule-detail-title,
.schedule-memorial-day:not(.schedule-pascha-day) .schedule-detail-title,
.schedule-special-service-day:not(.schedule-pascha-day) .schedule-special-description,
.schedule-memorial-day:not(.schedule-pascha-day) .schedule-special-description {
  color: var(--text-dark) !important;
}

.schedule-special-service-day:not(.schedule-pascha-day) .schedule-expand-icon,
.schedule-memorial-day:not(.schedule-pascha-day) .schedule-expand-icon {
  background: var(--burgundy) !important;
  border: 1px solid rgba(255, 255, 255, .42) !important;
  box-shadow: 0 8px 20px rgba(107, 26, 26, .18) !important;
}

.schedule-special-service-day .schedule-expand-icon:before,
.schedule-memorial-day .schedule-expand-icon:before {
  border-right-color: #fff !important;
  border-bottom-color: #fff !important;
}

.schedule-pascha-day {
  background: linear-gradient(135deg, #5f1518 0%, #7c1d22 52%, #9a2a2f 100%) !important;
  color: #fff !important;
  border-color: rgba(232, 213, 163, .68) !important;
}

.schedule-pascha-day h3,
.schedule-pascha-day .schedule-date,
.schedule-pascha-day .schedule-day-date,
.schedule-pascha-day .schedule-special-title,
.schedule-pascha-day .schedule-calendar-title,
.schedule-pascha-day .service-name,
.schedule-pascha-day .schedule-muted,
.schedule-pascha-day .schedule-detail-title,
.schedule-pascha-day .schedule-special-description,
.schedule-pascha-day .schedule-source-note {
  color: #fff !important;
}

.schedule-pascha-day .schedule-special-service-banner {
  background: rgba(255, 255, 255, .14) !important;
  border-color: rgba(232, 213, 163, .70) !important;
  color: #fff !important;
}

.schedule-pascha-day .schedule-special-service-banner span {
  background: #f0d88f !important;
  color: #4a1115 !important;
  border: 0 !important;
}

.schedule-pascha-day .schedule-special-service-banner strong {
  color: #fff !important;
}

.schedule-pascha-day .schedule-expand-icon {
  background: #6b1a1a !important;
  border: 1px solid rgba(232, 213, 163, .72) !important;
}

.navbar,
.footer,
.crypt,
.live-services,
.page-hero {
  color: var(--white);
}

.navbar a,
.footer a,
.footer p,
.crypt p,
.live-services p,
.page-hero p {
  color: rgba(250, 247, 240, .88);
}

.navbar .logo-text,
.footer-col h4 {
  color: var(--gold-light);
}

.crypt .content-card,
.live-card,
.next-service-inner {
  color: var(--text-dark);
}

.crypt .content-card p,
.live-card p,
.next-service-inner p {
  color: var(--text-light);
}

.schedule-muted,
.schedule-day-date,
.schedule-card-date,
.service-lang,
.donation-card p {
  color: #5c4d3c !important;
}

.schedule-day-block:not(.schedule-pascha-day) .schedule-source-note {
  color: #5c4d3c !important;
}

.news-detail-kicker,
.news-date,
.news-tag {
  color: #72520b !important;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  left: -0.75rem;
  right: -0.75rem;
  top: 100%;
  height: .75rem;
  display: block;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .42rem;
  color: rgba(245, 240, 230, .82);
  background: transparent;
  border: 0;
  padding: .68rem .72rem;
  border-radius: 999px;
  font: inherit;
  font-size: clamp(.94rem, .88rem + .18vw, 1.04rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: 0;
  cursor: pointer;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus-visible,
.nav-dropdown.hover-open .nav-dropdown-toggle,
.nav-dropdown.open .nav-dropdown-toggle {
  color: var(--gold);
  background: rgba(201, 168, 76, .11);
  outline: 0;
}

.nav-caret {
  width: .44rem;
  height: .44rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}

.nav-dropdown.open .nav-caret,
.nav-dropdown.hover-open .nav-caret,
.nav-dropdown:hover .nav-caret,
.nav-dropdown:focus-within .nav-caret {
  transform: rotate(225deg) translateY(-1px);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + .55rem);
  left: 50%;
  z-index: 1005;
  min-width: 190px;
  padding: .55rem;
  list-style: none;
  background: rgba(26, 26, 46, .985);
  border: 1px solid rgba(201, 168, 76, .30);
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28);
  transform: translate(-50%, 8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.nav-understand .nav-dropdown-menu {
  min-width: 280px;
}

.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown.hover-open .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-dropdown-menu a {
  border-radius: 8px !important;
  padding: .62rem .75rem !important;
  text-align: left;
}

html[lang=ru] .nav-dropdown-toggle {
  font-size: clamp(.93rem, .88rem + .14vw, 1rem);
  padding-inline: .58rem;
}

.bells {
  background: #fbf7ef;
  color: var(--text-dark);
}

.bells-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  gap: 2.5rem;
  align-items: stretch;
}

.kliros {
  background: var(--white);
  color: var(--text-dark);
}

.iconography {
  background: #f7efe2;
  color: var(--text-dark);
}

.kliros-grid {
  display: grid;
  grid-template-columns: minmax(280px, .95fr) minmax(0, 1.05fr);
  gap: 2.5rem;
  align-items: stretch;
}

.iconography-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  gap: 2.5rem;
  align-items: stretch;
}

.bells .content-card {
  color: var(--text-dark);
  border: 1px solid rgba(107, 26, 26, .12);
}

.kliros .content-card,
.iconography .content-card {
  color: var(--text-dark);
  border: 1px solid rgba(201, 168, 76, .24);
}

.bells .content-card p,
.bells .image-caption,
.kliros .content-card p,
.kliros .image-caption,
.iconography .content-card p,
.iconography .image-caption {
  color: #5c4d3c;
}

.bells-ringer,
.kliros-director,
.iconography-subblock,
.iconography-links {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(107, 26, 26, .18);
}

.bells-kicker,
.kliros-kicker,
.iconography-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: .65rem;
  color: var(--burgundy);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.iconography-links {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: center;
}

.iconography-links > span {
  color: var(--burgundy);
  font-weight: 800;
}

.iconography-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.55rem;
  padding: .6rem .85rem;
  border-radius: 999px;
  background: var(--burgundy);
  color: #fffaf0 !important;
  text-decoration: none;
  font-weight: 800;
}

.iconography-link:hover,
.iconography-link:focus-visible {
  background: #4f1313;
  color: #ffffff !important;
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.bells-image,
.kliros-image,
.iconography-image {
  position: relative;
  min-height: 430px;
}

.bells-image picture,
.bells-image img,
.kliros-image picture,
.kliros-image img,
.iconography-image picture,
.iconography-image img {
  width: 100%;
  height: 100%;
}

.bells-image img,
.kliros-image img,
.iconography-image img {
  object-fit: cover;
}

.bells .image-caption,
.kliros .image-caption,
.iconography .image-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  margin: 0;
  padding: .7rem .85rem;
  border-radius: 6px;
  background: rgba(255, 250, 240, .94);
  border: 1px solid rgba(107, 26, 26, .16);
  box-shadow: 0 10px 24px rgba(43, 36, 27, .12);
}

.history .timeline-illuminated {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 1rem !important;
  max-width: 920px !important;
  margin-inline: auto !important;
  position: relative !important;
}

.history .timeline-illuminated::before {
  left: 1.5rem !important;
  right: auto !important;
  transform: none !important;
  top: .35rem !important;
  bottom: .35rem !important;
}

.history .timeline-item,
.history .timeline-item:nth-child(odd),
.history .timeline-item:nth-child(even),
.history .timeline-item.featured {
  display: grid !important;
  grid-template-columns: 3rem minmax(0, 1fr) !important;
  gap: 1rem !important;
  grid-column: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.history .timeline-marker,
.history .timeline-item:nth-child(even) .timeline-marker,
.history .timeline-item.featured .timeline-marker {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  transform: none !important;
  z-index: 1 !important;
  align-self: start !important;
}

.history .timeline-content,
.history .timeline-item.featured .timeline-content {
  text-align: left !important;
  padding: 1.1rem 1.25rem !important;
}

.history .timeline-step {
  color: #9a711e !important;
  font-size: 1rem !important;
  letter-spacing: .1em !important;
  margin-bottom: .5rem !important;
}

@media (max-width: 560px) {
  .history .timeline-illuminated::before {
    left: 1.15rem !important;
  }

  .history .timeline-item,
  .history .timeline-item:nth-child(odd),
  .history .timeline-item:nth-child(even),
  .history .timeline-item.featured {
    grid-template-columns: 2.3rem minmax(0, 1fr) !important;
    gap: .75rem !important;
  }

  .history .timeline-marker {
    width: 2.25rem !important;
    height: 2.25rem !important;
  }
}

@media (max-width: 900px) {
  .bells-grid,
  .kliros-grid,
  .iconography-grid {
    grid-template-columns: 1fr;
  }

  .bells-image,
  .kliros-image,
  .iconography-image {
    min-height: 320px;
  }
}

@media (max-width: 1180px) {
  .nav-dropdown::after {
    display: none;
  }

  .nav-dropdown-toggle {
    width: 100% !important;
    justify-content: space-between !important;
    color: rgba(245, 240, 230, .82) !important;
    padding: 15px 28px !important;
    border-radius: 0 !important;
    border-bottom: 1px solid rgba(201, 168, 76, .08) !important;
    font-size: 1.04rem !important;
    line-height: 1.25 !important;
    text-align: left !important;
  }

  .nav-dropdown-menu {
    position: static;
    display: none;
    min-width: 0;
    padding: .2rem 0 .45rem;
    background: rgba(255, 255, 255, .045);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    transform: none;
  }

  .nav-dropdown-menu a {
    padding: 12px 28px 12px 42px !important;
    font-size: .98rem !important;
  }
}

.schedule-noscript,
.print-schedule-section {
  background: #fffdf8;
  color: #1a1a2e;
}

.schedule-noscript {
  padding: 1rem 1.25rem;
  border: 1px solid rgba(201, 168, 76, .5);
  border-radius: 10px;
  margin: 0 auto 1.25rem;
  max-width: 1180px;
}

.print-schedule-main .page-hero {
  min-height: auto;
  padding: 5rem 0 3rem;
}

.print-schedule-day {
  border: 1px solid rgba(26, 26, 46, .16);
  border-left: 6px solid #c9a84c;
  border-radius: 8px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  background: #ffffff;
  color: #1a1a2e;
  break-inside: avoid;
}

.print-schedule-day h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
  margin: 0 0 .8rem;
  color: #6b1a1a;
  font-size: 1.25rem;
}

.print-service-list {
  display: grid;
  gap: .45rem;
  padding-left: 1.1rem;
  margin: .75rem 0;
}

.print-service-list li {
  color: #1a1a2e;
}

.print-service-list small {
  display: block;
  color: #5b5b67;
}

.print-day-title,
.print-day-detail {
  color: #252536;
}

.print-day-detail .schedule-detail-entry {
  padding: 0;
  border: 0;
  background: transparent;
}

@media print {
  .navbar,
  .footer,
  .skip-link,
  .print-schedule-main .page-hero .cross {
    display: none !important;
  }

  .print-schedule-main .page-hero,
  .section.print-schedule-section {
    padding: 0 !important;
    background: #fff !important;
    color: #000 !important;
  }

  .print-schedule-day {
    box-shadow: none !important;
    border-color: #999 !important;
  }
}
