/* Portable Eagle export: keep page-level navigation below the shared header. */
.ipwh-product-nav,
.ipwh-hosting-page .ipwh-section-nav,
.ipwh-email-page .ipwh-section-nav,
.ipwh-seoav-jump-nav,
.ipwh-ds-section-nav-shell,
.ipwh-vps-section-nav-shell,
.ipwh-webhost-section-nav-shell,
.ipwh-wd-section-nav-shell {
  top: 82px !important;
}

/* Wider category heroes: use the available desktop canvas while preserving each
   page family's existing tablet and mobile stacking rules. */
@media (min-width: 1281px) {
  .ipwh-email-page .ipwh-email-hero {
    padding: 44px 0 56px;
  }

  .ipwh-email-page .ipwh-email-hero .ipwh-email-wrap {
    width: min(1500px, calc(100% - 64px));
  }

  .ipwh-email-page .ipwh-email-hero-grid {
    grid-template-columns: minmax(0, .96fr) minmax(480px, 1.04fr);
    gap: 72px;
  }

  .ipwh-email-page .ipwh-email-title,
  .ipwh-email-page .ipwh-email-copy {
    max-width: 820px;
  }

  .ipwh-compare-page .ipwh-compare-hero {
    padding: 44px 0 50px;
  }

  .ipwh-compare-page .ipwh-compare-hero .ipwh-compare-wrap {
    width: min(1500px, calc(100% - 64px));
  }

  .ipwh-compare-page .ipwh-compare-hero-grid {
    grid-template-columns: minmax(0, .96fr) minmax(520px, 1.04fr);
    gap: 72px;
  }

  .ipwh-compare-page .ipwh-compare-title,
  .ipwh-compare-page .ipwh-compare-copy {
    max-width: 820px;
  }

  .ipwh-compare-index .ipwh-compare-index-hero .ipwh-compare-index-wrap,
  .ipwh-industries-index .ipwh-industries-index-hero .ipwh-industries-index-wrap {
    width: min(1500px, calc(100% - 64px));
  }

  .ipwh-aviation-page .ipwh-aviation-hero .ipwh-aviation-wrap,
  .ipwh-ecommerce-page .ipwh-ecommerce-hero .ipwh-ecommerce-wrap,
  .ipwh-entertainment-page .ipwh-entertainment-hero .ipwh-entertainment-wrap,
  .ipwh-government-page .ipwh-government-hero .ipwh-government-wrap,
  .ipwh-healthcare-page .ipwh-healthcare-hero .ipwh-healthcare-wrap,
  .ipwh-hospitality-page .ipwh-hospitality-hero .ipwh-hospitality-wrap,
  .ipwh-legal-page .ipwh-legal-hero .ipwh-legal-wrap,
  .ipwh-news-page .ipwh-news-hero .ipwh-news-wrap,
  .ipwh-nonprofit-page .ipwh-nonprofit-hero .ipwh-nonprofit-wrap,
  .ipwh-sports-page .ipwh-sports-hero .ipwh-sports-wrap {
    width: min(1500px, calc(100% - 64px));
  }

  .ipwh-aviation-page .ipwh-aviation-hero,
  .ipwh-entertainment-page .ipwh-entertainment-hero,
  .ipwh-government-page .ipwh-government-hero,
  .ipwh-news-page .ipwh-news-hero,
  .ipwh-sports-page .ipwh-sports-hero {
    padding: 58px 0 66px;
  }

  .ipwh-ecommerce-page .ipwh-ecommerce-hero,
  .ipwh-hospitality-page .ipwh-hospitality-hero,
  .ipwh-legal-page .ipwh-legal-hero,
  .ipwh-nonprofit-page .ipwh-nonprofit-hero {
    min-height: 610px;
    padding: 54px 0 70px;
  }

  .ipwh-healthcare-page .ipwh-healthcare-hero {
    padding: 56px 0 66px;
  }

  .ipwh-aviation-page .ipwh-aviation-hero-grid,
  .ipwh-entertainment-page .ipwh-entertainment-hero-grid,
  .ipwh-government-page .ipwh-government-hero-grid,
  .ipwh-news-page .ipwh-news-hero-grid,
  .ipwh-sports-page .ipwh-sports-hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(440px, .92fr);
    gap: 72px;
  }

  .ipwh-ecommerce-page .ipwh-ecommerce-hero-grid,
  .ipwh-healthcare-page .ipwh-healthcare-hero-grid,
  .ipwh-legal-page .ipwh-legal-hero-grid,
  .ipwh-nonprofit-page .ipwh-nonprofit-hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
    gap: 72px;
  }

  .ipwh-hospitality-page .ipwh-hospitality-hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
    gap: 72px;
    align-items: center;
  }
}

@media (min-width: 901px) and (max-width: 1280px) {
  .ipwh-compare-page .ipwh-compare-hero .ipwh-compare-wrap {
    width: min(1160px, calc(100% - 48px));
  }

  .ipwh-compare-page .ipwh-compare-hero-grid {
    grid-template-columns: minmax(0, .95fr) minmax(360px, 1fr);
    gap: clamp(28px, 4vw, 48px);
  }

  .ipwh-compare-page .ipwh-compare-hero-image {
    max-width: 100%;
    height: auto;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .ipwh-compare-page .ipwh-compare-hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .ipwh-compare-page .ipwh-compare-hero-visual {
    width: min(100%, 720px);
  }
}

.ipwh-email-page,
.ipwh-hosting-page,
.ipwh-sm-page,
.ipwh-ssl-page,
.ipwh-vpn-page,
.ipwh-wb-page,
.ipwh-wm-page,
.ipwh-ws-page,
.ipwh-smm-page,
.ipwh-awb-page,
.ipwh-seotool-page,
.ipwh-seoav-page,
.ipwh-wd-page {
  overflow-x: clip !important;
  overflow-y: visible !important;
}

main [id^="ipwh-"] {
  scroll-margin-top: 150px !important;
}

/* Shared back-to-top control for every product section navigation. */
.ipwh-eagle-nav-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(129, 34, 31, 0.18);
  border-radius: 11px;
  background: #f8eeed;
  color: #81221f;
  font: 800 22px/1 Arial, sans-serif;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.ipwh-eagle-nav-top:hover {
  border-color: #81221f;
  background: #81221f;
  color: #fff;
  transform: translateY(-1px);
}

.ipwh-eagle-nav-top:focus-visible {
  outline: 3px solid rgba(129, 34, 31, 0.28);
  outline-offset: 3px;
}

.ipwh-section-nav .ipwh-section-nav-inner {
  display: flex !important;
  align-items: center;
}

/* Keep compact-desktop hero content clear of fixed accessibility and live-chat
   controls. The inset grows with the viewport so both edge widgets retain a
   visible buffer without squeezing the tablet layout. */
@media (min-width: 901px) and (max-width: 1500px) {
  main section[class*="-hero"]:not(.ipwh-home-hero) > [class$="-hero-grid"],
  main section[class*="-hero"]:not(.ipwh-home-hero) > [class*="-hero-grid "],
  main section[class*="-hero"]:not(.ipwh-home-hero) > [class$="-hero-inner"],
  main section[class*="-hero"]:not(.ipwh-home-hero) > [class*="-hero-inner "],
  main section[class*="-hero"]:not(.ipwh-home-hero) > [class$="-wrap"],
  main section[class*="-hero"]:not(.ipwh-home-hero) > [class*="-wrap "],
  main section[class*="-hero"]:not(.ipwh-home-hero) > [class$="-container"],
  main section[class*="-hero"]:not(.ipwh-home-hero) > [class*="-container "] {
    width: min(1320px, calc(100% - clamp(128px, 13vw, 192px))) !important;
    margin-inline: auto !important;
  }
}

@media (min-width: 1201px) and (max-width: 1500px) {
  main section[class*="-hero"]:not(.ipwh-home-hero) [class*="-hero-grid"] {
    gap: clamp(34px, 4vw, 56px) !important;
  }

  main section[class*="-hero"]:not(.ipwh-home-hero) [class*="-hero-grid"] > * {
    min-width: 0 !important;
  }

  .ipwh-about-hero-grid,
  .ipwh-awb-hero-grid,
  .ipwh-compare-hero-grid,
  .ipwh-email-hero-grid,
  .ipwh-growth-stack-hero-grid,
  .ipwh-seoav-hero-grid,
  .ipwh-seotool-hero-grid,
  .ipwh-sm-hero-grid,
  .ipwh-smm-hero-grid,
  .ipwh-ssl-hero-grid,
  .ipwh-vpn-hero-grid,
  .ipwh-wb-hero-grid,
  .ipwh-wd-hero-grid,
  .ipwh-whmcs-hero-grid,
  .ipwh-wm-hero-grid,
  .ipwh-wts-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(380px, .94fr) !important;
  }

  main section[class*="-hero"]:not(.ipwh-home-hero) h1 {
    max-width: 820px !important;
    font-size: clamp(48px, 4.2vw, 64px) !important;
    line-height: 1.02 !important;
  }

  main section[class*="-hero"]:not(.ipwh-home-hero) [class*="-hero-copy"] > p,
  main section[class*="-hero"]:not(.ipwh-home-hero) [class*="-hero-lead"] {
    max-width: 760px !important;
    font-size: 17px !important;
    line-height: 1.6 !important;
  }

  main section[class*="-hero"]:not(.ipwh-home-hero) [class*="-hero-visual"],
  main section[class*="-hero"]:not(.ipwh-home-hero) [class*="-hero-card"],
  main section[class*="-hero"]:not(.ipwh-home-hero) [class*="-hero-panel"] {
    width: 100% !important;
    max-width: 620px !important;
    justify-self: end;
  }

  main section[class*="-hero"]:not(.ipwh-home-hero) [class*="-actions"],
  main section[class*="-hero"]:not(.ipwh-home-hero) [class*="-hero-proof"],
  main section[class*="-hero"]:not(.ipwh-home-hero) [class*="-hero-checks"],
  main section[class*="-hero"]:not(.ipwh-home-hero) [class*="-hero-trust"] {
    gap: 10px 16px !important;
  }
}

/* At the same width as the responsive header, remove rigid hero columns and
   let visuals, offer cards, and comparison panels stack without overflow. */
@media (min-width: 1061px) and (max-width: 1200px) {
  main section[class*="-hero"]:not(.ipwh-home-hero) {
    min-height: auto !important;
    overflow-x: clip !important;
  }

  main section[class*="-hero"]:not(.ipwh-home-hero) [class*="-hero-grid"] {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 38px !important;
  }

  main section[class*="-hero"]:not(.ipwh-home-hero) [class*="-hero-grid"] > * {
    min-width: 0 !important;
  }

  main section[class*="-hero"]:not(.ipwh-home-hero) h1 {
    max-width: 800px !important;
    font-size: clamp(46px, 5vw, 60px) !important;
    line-height: 1.03 !important;
  }

  main section[class*="-hero"]:not(.ipwh-home-hero) [class*="-hero-copy"] > p,
  main section[class*="-hero"]:not(.ipwh-home-hero) [class*="-hero-lead"] {
    max-width: 760px !important;
    font-size: 17px !important;
    line-height: 1.6 !important;
  }

  main section[class*="-hero"]:not(.ipwh-home-hero) [class*="-hero-visual"],
  main section[class*="-hero"]:not(.ipwh-home-hero) [class*="-hero-card"],
  main section[class*="-hero"]:not(.ipwh-home-hero) [class*="-hero-panel"] {
    width: min(100%, 720px) !important;
    max-width: 720px !important;
    justify-self: start !important;
  }
}

/* The responsive header gains a 40px utility row below 1200px, making its
   rendered height about 110px. Keep sticky product navigation below the full
   header instead of allowing it to slide underneath the utility row. */
@media (max-width: 1200px) {
  .ipwh-product-nav,
  .ipwh-hosting-page .ipwh-section-nav,
  .ipwh-email-page .ipwh-section-nav,
  .ipwh-seoav-jump-nav,
  .ipwh-ds-section-nav-shell,
  .ipwh-vps-section-nav-shell,
  .ipwh-webhost-section-nav-shell,
  .ipwh-wd-section-nav-shell {
    top: 118px !important;
  }

  main [id^="ipwh-"] {
    scroll-margin-top: 188px !important;
  }
}

@media (max-width: 760px) {
  .ipwh-product-nav,
  .ipwh-hosting-page .ipwh-section-nav,
  .ipwh-email-page .ipwh-section-nav,
  .ipwh-seoav-jump-nav,
  .ipwh-ds-section-nav-shell,
  .ipwh-vps-section-nav-shell,
  .ipwh-webhost-section-nav-shell,
  .ipwh-wd-section-nav-shell {
    top: 118px !important;
  }

  main [id^="ipwh-"] {
    scroll-margin-top: 188px !important;
  }

  .ipwh-product-nav-links,
  .ipwh-ds-section-nav,
  .ipwh-vps-section-nav,
  .ipwh-webhost-section-nav,
  .ipwh-wd-section-nav {
    -webkit-overflow-scrolling: touch;
    scroll-padding-inline: 52px;
  }

  .ipwh-eagle-nav-top {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 20px;
  }
}
