/* Emergency rendering fallback, 2026-11-06. Load after all existing CSS. */

/* Native document navigation must not depend on a transition snapshot. */
@view-transition {
  navigation: none;
}

.hdr {
  view-transition-name: none !important;
}

/* Content remains readable before, during and after JavaScript initialization.
   These are the existing reveal/hero selectors; display and [hidden] semantics
   are intentionally left to the original components. */
html.reveal-ready [data-reveal],
html.reveal-ready .reveal,
html.reveal-ready .reveal-stagger,
html.reveal-ready .reveal-stagger > *,
html.js .hero__h1,
html.js .hero__brand .brand__l,
html.js .hero__sub {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

html.reveal-ready .sh .rule-draw::after,
html.reveal-ready .tl[data-reveal]::before,
.tl__n {
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

/* Preserve native details disclosure without animated content visibility. */
details::details-content {
  transition: none !important;
}

details[open]::details-content {
  height: auto;
  content-visibility: visible;
}

/* DiLibero website availability repair, November 6, 2026.
   Load after the existing site, court finder, mobile and lead stylesheets. */

/* Keep the existing courthouse minimap visible when its strip becomes a column. */
.cf2-strip .cf2-minimap-wrap {
  display: block;
  min-width: 0;
  max-width: 100%;
}

@container cf-strip (max-width: 760px) {
  .cf2-strip .cf2-minimap-wrap {
    width: min(100%, 24rem);
    margin-inline: auto;
    justify-self: center;
  }
}

/* The quick-contact bar replaced the old callbar, including its chat button.
   Restore the original, already connected AI launcher beside the new flow. */
body .assist-l,
body .assist-l.is-away,
body.lead-access-ready .assist-l {
  display: inline-flex !important;
  opacity: 1;
  transform: none;
  visibility: visible;
  pointer-events: auto;
  min-height: 3rem;
  max-width: calc(100vw - 2rem);
}

@media (max-width: 63.99rem) {
  body .assist-l {
    right: max(1rem, env(safe-area-inset-right, 0px));
    bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
  }

  body.lead-access-ready .assist-l {
    bottom: calc(var(--lead-access-height, calc(4.5rem + env(safe-area-inset-bottom, 0px))) + .75rem);
  }
}

/* Leave room for native dialogs, navigation, search and the device keyboard. */
html.menu-open body .assist-l,
html.mega-on body .assist-l,
html.find-lock body .assist-l,
body.m-nav-open .assist-l,
body.lead-sheet-open .assist-l,
body.m-input-active .assist-l {
  visibility: hidden;
  pointer-events: none;
}

@media print {
  body .assist-l,
  body.lead-access-ready .assist-l {
    display: none !important;
  }
}
