/* Original palette and type sizes; black reading copy on light surfaces. */
body main :is(p:not(.eyebrow), li, blockquote, address, dt, dd, td, th, .intro-prose, .district-lead, .district-location-note)
  :is(strong, b, em) { color: inherit; }
body main :is(p:not(.eyebrow), li, blockquote, address, dt, dd, td, th, .intro-prose, .district-lead, .district-location-note):not(:is(.home-hero, .home-parallax, .warsaw-parallax, .district-contact, .photo-triptych) *) {
  color: #000 !important;
}
/* Footer declarations retain their larger sizes, with a 14px floor. */
body footer .footer-main .footer-qr p { font-size: 12px !important; }
body main .office-card dt,
body main .office-note { font-size: 14px !important; }
body .hero-note { font-size: 15px !important; }
body .article-aside .text-link { font-size: 12px !important; }
body .article-aside .button { font-size: 14px !important; }
body .eyebrow { font-size: .72rem !important; }
body .header-phone small { color: #fff !important; }

/* Explicit light/dark hover palettes, with matching keyboard feedback. */
body :is(a, button, summary) {
  transition: color .22s ease, background-color .22s ease, border-color .22s ease,
              box-shadow .22s ease, text-decoration-color .22s ease !important;
}
body main a:is(:hover, :focus-visible):not(:is(.home-hero, .home-parallax, .warsaw-parallax, .district-contact, .photo-triptych) *) {
  color: #38280b !important;
}
body main :is(.home-hero, .home-parallax, .warsaw-parallax, .district-contact, .photo-triptych) a:is(:hover, :focus-visible),
body footer a:is(:hover, :focus-visible),
body .footer-award a:is(:hover, :focus-visible) { color: #e8cf9e !important; }
body .header nav :is(a, summary):is(:hover, :focus-visible),
body .header nav :is(a, summary):is(:hover, :focus-visible) .nav-expand { color: #e8cf9e !important; }
body main :is(.office-card, .district-office) a:is(:hover, :focus-visible) { color: #573f16 !important; }
body main :is(a, button):is(.button, .qbutton):is(:hover, :focus-visible) {
  background-color: #e8cf9e;
  color: #000 !important;
  border-color: #b69a61;
}
body main :is(a, button):is(.button.dark, .qbutton):is(:hover, :focus-visible) {
  background-color: #333;
  color: #fff !important;
  border-color: #333;
}
body main a.text-link:is(:hover, :focus-visible) { border-bottom-color: currentColor; }

/* Consistent editorial rows; preserve entire photographs without stretching. */
body.inner-page .article-body .content-pair {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) !important;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
}
body.inner-page .article-body .content-pair:has(> .content-media:first-child) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) !important;
}
body.inner-page .article-body .content-pair > .content-media { margin: 0; align-self: center; }
body.inner-page .article-body .content-media :is(a, img) { width: 100%; }
body.inner-page .article-body .content-media img,
body.inner-page .article-body .content-media img[data-photo-shape="portrait"] {
  display: block;
  height: auto;
  max-height: 460px;
  object-fit: contain;
  margin: 0 auto;
}
body.inner-page .article-body .content-duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 24px;
}
body.inner-page .article-body .content-duo .content-media img { aspect-ratio: 3 / 2; }
body.inner-page .article-body .content-row + .content-row { margin-top: 44px; }
body.inner-page .article-body .children-service-intro .content-pair { align-items: start; }
body.inner-page .article-body .children-service-intro .content-media { align-self: start; }
body.inner-page .article-body .children-service-intro .content-media img { max-height: none; }
body.inner-page .article-body .children-service-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
body.inner-page .article-body .children-service-gallery .content-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  max-height: none;
}
@media (prefers-reduced-motion: reduce) {
  body :is(a, button, summary) { transition: none !important; }
}
#flota-cerber .white-hearse-gallery { margin-top: 36px; }
body .header .services-dropdown {
  width: min(620px, calc(100vw - 48px));
  max-height: calc(100dvh - 160px);
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
  left: auto;
  right: 0;
}
body .header .services-dropdown a { white-space: normal; line-height: 1.5; padding: 10px 12px; min-width: 0; }
.office-card[id] { scroll-margin-top: 150px; }
.ceremony-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.ceremony-gallery figure { margin: 0; min-width: 0; }
.ceremony-gallery img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; background: #fff; }
.ceremony-gallery figcaption { margin-top: 12px; }
.gallery-pending { padding: 32px; border: 1px solid #c8bfaf; background: #fff; }
.gallery-pending-cover { aspect-ratio: 640 / 430; display: grid; place-items: center; padding: 24px; background: #f0ece4; text-align: center; }
@media (max-width: 1100px) {
  body .header .services-dropdown { width: 100%; max-height: none; overflow: visible; grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  body.inner-page .article-body .children-service-gallery { gap: 16px; }
  body.inner-page .article-body :is(.content-pair, .content-duo),
  body.inner-page .article-body .content-pair:has(> .content-media:first-child) {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px;
  }
  body.inner-page .article-body .content-pair > .content-prose { order: 0; }
  body.inner-page .article-body .content-pair > .content-media { order: 1; }
  #flota-cerber .white-hearse-gallery { margin-top: 24px; }
  .ceremony-gallery { grid-template-columns: 1fr; }
  .office-card[id] { scroll-margin-top: 125px; }
  body main .office-card dd a[href^="mailto:"] { overflow-wrap: anywhere; }
}
@media (max-width: 540px) {
  body.inner-page .article-body .children-service-gallery { grid-template-columns: minmax(0, 1fr); }
}
