/* BowPro+ floating Instagram link — v1.0 build 1004 */
.instagram-floating-link {
  position: fixed;
  z-index: 1041;
  top: 82px;
  left: max(1rem, calc((100vw - var(--bp-max, 1240px)) / 2));
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: rgba(15, 16, 18, .78);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: color .18s ease, border-color .18s ease, background-color .18s ease, transform .18s ease;
  -webkit-tap-highlight-color: transparent;
}

.instagram-floating-link svg {
  width: 22px;
  height: 22px;
  display: block;
}

.instagram-floating-link:hover {
  color: #ff8a2a;
  border-color: #f26a00;
  background: rgba(15, 16, 18, .92);
  transform: translateY(-1px);
}

.instagram-floating-link:focus-visible {
  outline: 3px solid #ff8a2a;
  outline-offset: 4px;
}

@media (max-width: 575.98px) {
  .instagram-floating-link {
    top: max(.75rem, env(safe-area-inset-top));
    left: max(.75rem, env(safe-area-inset-left));
    width: 46px;
    height: 46px;
  }

  .instagram-floating-link svg {
    width: 24px;
    height: 24px;
  }
}

/* Wide-layout placement and navigation sizing. */
@media (min-width: 768px) {
  /* Place the icon immediately below the compact BowPro+ brand. */
  .instagram-floating-link {
    top: 50px !important;
  }

  .site-header__inner {
    position: relative;
  }

  /* Restore the build-1002 wide-layout hamburger dimensions. */
  .menu-trigger {
    position: absolute !important;
    top: 18px !important;
    right: 0 !important;
    width: 96px !important;
    height: 96px !important;
    gap: 8px !important;
    border-width: 2px !important;
  }

  .menu-trigger span {
    width: 36px !important;
    height: 3px !important;
    border-radius: 999px;
  }
}

@media print {
  .instagram-floating-link { display: none !important; }
}
