/* Small runtime replacements. Original layout styles remain the visual baseline. */
.html-fragment { display: contents; }
.entry-card .entry-excerpt p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  line-height: 1.7;
  min-height: 5.1em;
  max-height: 5.1em;
}
html { scroll-behavior: smooth; }
body { overflow-x: clip; }
.contact-map { width: 100%; height: 480px; object-fit: fill; border: 0; }
.site-dialog { border: 0; padding: 0; color: #fff; }
.site-dialog:not([open]) { display: none; }
.site-dialog::backdrop { background: rgba(18, 21, 25, .98); }
.site-dialog[open] { visibility: visible; opacity: 1; transform: none; }
.site-search[open] { position: fixed; display: flex; flex-direction: column; inset: 0; margin: 0; width: 100%; max-width: none; height: 100%; max-height: none; background: transparent; overflow-y: auto; }
.site-search .ct-panel-actions { position: static; display: flex; justify-content: flex-end; padding: 30px 35px 0; z-index: 2; }
.site-search .ct-panel-content { display: flex; flex: 1; align-items: center; width: 100%; padding: 0; }
.site-search .ct-toggle-close { display: grid; place-items: center; width: 12px; height: 12px; min-height: 0; padding: 0; border: 0; background: transparent; color: #a5abb0; cursor: pointer; }
.site-dialog .ct-toggle-close span { font: 300 28px/1 Arial, sans-serif; }
#search-modal input { color: #fff; border-bottom: 1px solid rgba(255,255,255,.15); background: transparent; box-shadow: none; }
#search-modal input::placeholder { color: #ddd; }
#search-modal input:focus { border-bottom-color: rgba(255,255,255,.3); outline: none; }
.site-search .ct-search-form { position: relative; }
.site-search .ct-search-form-controls button { width: 48px; height: 48px; min-height: 48px; padding: 0; }
.site-search .ct-search-form-controls .ct-icon { width: 16px; height: 16px; }
.site-search .live-results { max-height: 38vh; overflow-y: auto; }
.site-search .live-results a { display: flex; align-items: center; gap: 18px; padding: 12px 0; color: #fff; border-bottom: 1px solid #ffffff12; }
.site-search .live-results a:hover { color: #a792ff; }
.live-results img { width: 60px; height: 45px; object-fit: cover; border-radius: 4px; }
.site-search .all-results { margin-top: 18px; padding: 0; min-height: 0; background: transparent; color: #ddd; }
.site-menu[open] { position: fixed; inset: 0; display: block; width: 100%; max-width: none; max-height: none; height: 100%; margin: 0; background: transparent; }
.site-menu::backdrop { background: rgba(16,20,23,.8); }
.site-menu #offcanvas { position: static; display: flex; opacity: 1; visibility: visible; transform: none; pointer-events: auto; height: 100%; background: transparent; }
.site-menu .ct-panel-inner { transform: none; }
.site-menu .ct-panel-content[data-device="desktop"] { display: none; }
.site-menu .ct-panel-content[data-device="mobile"] { display: flex; }
.site-menu .mobile-menu a:hover { color: #a792ff; }
.site-menu .mobile-menu a[aria-current="page"] { color: var(--theme-palette-color-1); }
.site-menu .mobile-fragment { display: contents; }
.search-hero { background: #111518; color: #fff; text-align: center; padding: 60px 0 80px; }
.search-hero .entry-header { padding: 0; }
.search-hero .page-title { color: #fff; margin: 24px 0 0; font-size: 60px; }
.search-hero .ct-breadcrumbs { justify-content: center; color: #fff; }
.search-content { padding-top: 60px; padding-bottom: 80px; min-height: 400px; }
.search-page-form { display: flex; gap: 12px; max-width: 700px; margin: 0 auto 50px; }
.search-page-form input { min-width: 0; }
.search-content .entries { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 30px; }
.search-content .entry-card { opacity: 1; transform: none; }
.search-content .ct-media-container img { aspect-ratio: 3/2; object-fit: cover; }
.error-content { text-align: center; padding: 80px 24px 100px; }
.error-code { color: #5b38ed; font-size: 100px; font-weight: 700; margin: 0; }
.error-content h1 { font-size: 36px; }
.error-content .ct-button { margin-top: 20px; }
/* Images and text are available before JS. Slide movement is enhanced on mount. */
.elementor-main-swiper:not(.swiper-initialized) .swiper-slide:not(:first-child) { visibility: hidden; }
.elementor-main-swiper { width: 100%; }
.elementor-main-swiper .swiper-pagination-bullet { padding: 0; min-height: 0; }
.elementor-main-swiper .swiper-pagination-bullet:focus-visible { outline: 2px solid #5b38ed; outline-offset: 3px; }
@media (max-width: 999px) {
  .search-content .entries { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .search-hero .page-title { font-size: 42px; }
}
@media (max-width: 689px) {
  .site-search .ct-panel-actions { padding: 20px 25px 0; }
  .site-search .ct-search-form-controls button { width: 40px; height: 40px; min-height: 40px; }
  .search-content .entries { grid-template-columns: minmax(0,1fr); }
  .search-hero .page-title { font-size: 32px; }
  .search-hero { padding: 50px 0; }
  .contact-map { height: auto; aspect-ratio: 4/3; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
