/* Static export fixes — Webflow IX animations don't run without hosted runtime */

[style*="opacity:0"],
[style*="opacity: 0"] {
  opacity: 1 !important;
}

.card-button[style*="opacity:0"],
.card-button[style*="opacity: 0"] {
  transform: none !important;
}

.background-video:has(.image-13),
.background-video:has(img) {
  background-image: none !important;
}

/* Keep the fixed header visible on static pages */
.navigation {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  pointer-events: auto !important;
}

/* Hero section — desktop baseline */
.container.hero {
  overflow: hidden;
}

@media screen and (max-width: 991px) {
  .intro-big-gallery-wrapper .background-video {
    width: 120vw;
    position: relative;
    left: -50px;
    overflow: hidden;
  }

  .navbar-no-shadow-container {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .navbar-wrapper {
    align-items: center;
  }

  .nav-menu-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    min-width: 0;
  }

  .navbar-no-shadow-container .menu-button {
    display: flex !important;
    flex-shrink: 0;
  }

  .w-nav:not(.w--nav-menu-open) .navigation-links {
    display: none !important;
  }

  .w-nav.w--nav-menu-open .navigation-links {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    left: auto;
    width: min(100vw - 32px, 320px);
    min-width: 220px;
    z-index: 1001;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  }

  .w-nav.w--nav-menu-open .menu-button {
    background-color: #5e5e64cc !important;
  }
}

@media screen and (min-width: 480px) and (max-width: 991px) {
  .hero-quick-stack {
    margin-top: 40px;
    padding-right: 0;
  }
}

@media screen and (min-width: 992px) {
  .navbar-no-shadow-container .menu-button {
    display: none !important;
  }

  .navbar-no-shadow-container .navigation-links {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

@media screen and (max-width: 767px) {
  .navbar-no-shadow-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Article detail — avoid full-screen title panel on phones */
  .articles-main-wrapper {
    margin: 8px !important;
  }

  .articles-main-wrapper .page-header,
  .articles-main-wrapper .page-header.left {
    height: auto !important;
    min-height: 0 !important;
    width: 100% !important;
    padding: 24px 16px !important;
  }

  .articles-main-wrapper .page-header.article-main-image {
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
  }

  .articles-main-wrapper .article-main-image {
    height: 42vh !important;
    min-height: 200px;
    width: 100%;
    border-radius: 0;
  }

  .articles-main-wrapper .page-content {
    padding: 24px 16px 48px !important;
  }

  .article-prose .article-body {
    font-size: 1rem;
  }

  .article-prose .article-body pre {
    font-size: 0.82rem;
  }

  .article-prose .article-body iframe.simulation {
    min-height: 280px;
  }

  .article-prose .article-body .figure-row img {
    max-width: 100% !important;
  }
}
