/* Blueprint Bureau homepage responsive hotfix — 2026-09-03 */

/* Desktop header: keep every item on one clean line without collisions. */
@media (min-width: 981px) {
  body.editorial-home .editorial-header {
    padding-left: 2vw !important;
    padding-right: 2vw !important;
    gap: 12px !important;
  }

  body.editorial-home .editorial-header .brand-image {
    flex: 0 0 188px !important;
    width: 188px !important;
    max-width: 188px !important;
  }

  body.editorial-home .editorial-header .brand-image img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  body.editorial-home .editorial-header #siteNav {
    flex: 1 1 auto !important;
    justify-content: center !important;
    gap: 14px !important;
    min-width: 0 !important;
  }

  body.editorial-home .editorial-header #siteNav a[href="/custom-investigation.html"] {
    display: none !important;
  }

  body.editorial-home .editorial-header #siteNav a {
    white-space: nowrap !important;
    font-size: 12px !important;
    letter-spacing: 0 !important;
  }

  body.editorial-home .editorial-header .header-cta {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    padding: 11px 14px !important;
    font-size: 12px !important;
  }
}

/* On narrower laptop widths, collapse the full navigation before it can collide. */
@media (min-width: 981px) and (max-width: 1180px) {
  body.editorial-home .editorial-header .brand-image {
    flex-basis: 170px !important;
    width: 170px !important;
    max-width: 170px !important;
  }

  body.editorial-home .editorial-header #siteNav {
    gap: 10px !important;
  }

  body.editorial-home .editorial-header #siteNav a {
    font-size: 11px !important;
  }

  body.editorial-home .editorial-header .header-cta {
    padding: 10px 12px !important;
    font-size: 11px !important;
  }
}

/* Mobile/tablet navigation: keep the menu button and opened menu clearly visible. */
@media (max-width: 980px) {
  body.editorial-home .editorial-header .menu-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 64px !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
    padding: 10px 14px !important;
    background: #d1a04d !important;
    color: #0a1e32 !important;
    border: 1px solid #d1a04d !important;
    border-radius: 4px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
  }

  body.editorial-home .editorial-header #siteNav {
    background: #0d2743 !important;
    border-top: 1px solid rgba(255,255,255,.14) !important;
    padding: 18px 20px 22px !important;
  }

  body.editorial-home .editorial-header #siteNav.open {
    display: flex !important;
  }

  body.editorial-home .editorial-header #siteNav a[href="/custom-investigation.html"] {
    display: none !important;
  }

  body.editorial-home .editorial-header #siteNav a {
    color: #ffffff !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.09) !important;
  }

  body.editorial-home .editorial-header #siteNav a:last-child {
    border-bottom: 0 !important;
  }
}

@media (max-width: 620px) {
  body.editorial-home .editorial-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    min-height: auto !important;
    overflow: hidden !important;
  }

  body.editorial-home .editorial-hero-copy {
    width: 100% !important;
    min-width: 0 !important;
    padding: 32px 20px 30px !important;
  }

  body.editorial-home .editorial-hero-copy h1 {
    width: 100% !important;
    max-width: 100% !important;
    font-size: clamp(2.25rem, 10.5vw, 2.8rem) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.035em !important;
    margin: 0 0 18px !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }

  body.editorial-home .editorial-hero-copy h1 em {
    display: inline !important;
  }

  body.editorial-home .editorial-hero-copy h2 {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 1.03rem !important;
    line-height: 1.4 !important;
    margin-bottom: 14px !important;
  }

  body.editorial-home .editorial-hero-copy > p:not(.eyebrow) {
    width: 100% !important;
    max-width: 100% !important;
    font-size: .93rem !important;
    line-height: 1.55 !important;
  }

  body.editorial-home .hero-caseboard {
    width: 100% !important;
    min-height: 455px !important;
    overflow: hidden !important;
    border-left: 0 !important;
  }

  body.editorial-home .hero-folder {
    left: 7% !important;
    top: 13% !important;
    width: 88% !important;
    min-height: 330px !important;
    padding: 48px 18px 26px 44% !important;
    transform: rotate(-0.6deg) !important;
  }

  body.editorial-home .hero-folder-kicker {
    font-size: .6rem !important;
    letter-spacing: .1em !important;
    margin-bottom: 9px !important;
  }

  body.editorial-home .hero-folder strong {
    font-size: 1.2rem !important;
    line-height: 1.08 !important;
    letter-spacing: .01em !important;
    white-space: normal !important;
  }

  body.editorial-home .hero-folder p {
    max-width: 170px !important;
    margin: 10px 0 14px !important;
    font-size: .76rem !important;
    line-height: 1.35 !important;
  }

  body.editorial-home .case-status {
    max-width: 155px !important;
    padding: 6px 7px !important;
    font-size: .5rem !important;
    line-height: 1.15 !important;
    letter-spacing: .05em !important;
  }

  body.editorial-home .hero-photo-one,
  body.editorial-home .hero-photo-two {
    width: 41% !important;
    height: 142px !important;
    right: auto !important;
    bottom: auto !important;
    padding: 6px 6px 15px !important;
  }

  body.editorial-home .hero-photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    background: #f8f2e6 !important;
  }

  body.editorial-home .hero-photo-one {
    left: 2.5% !important;
    top: 12% !important;
    transform: rotate(-2deg) !important;
  }

  body.editorial-home .hero-photo-two {
    left: 5.5% !important;
    top: 48% !important;
    transform: rotate(1.5deg) !important;
  }

  body.editorial-home .hero-note {
    display: none !important;
  }
}
