/* GoPatooh homepage media-to-description seam.
   Desktop layout remains unchanged. The three benefits always stay in one row.
   Search is hidden only on mobile, not tablets. */
.gopato-hero-benefits { display: none; }

@media (max-width: 1199px) {
  body .tc-hero {
    background: #f7f3ef;
    color: #2d1a13;
    overflow: visible;
  }
  body .tc-hero .tc-hero-media {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: var(--tc-hero-media-ratio, 16 / 9);
    overflow: hidden;
  }
  body .tc-hero .tc-hero-slide img,
  body .tc-hero .tc-hero-video {
    object-fit: contain;
    object-position: center;
  }
  body .tc-hero .tc-hero-content {
    position: relative;
    inset: auto;
    z-index: 8;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    align-items: stretch;
    gap: 18px;
    padding-top: 18px;
    padding-bottom: 40px;
  }
  body .tc-hero .tc-hero-copy {
    width: 100%;
    max-width: 780px;
    margin-inline: auto;
    padding: clamp(20px, 3vw, 30px);
    background: #fff;
    border: 1px solid #e7ddd7;
    border-radius: 16px;
    color: #2d1a13;
    text-align: center;
    box-shadow: 0 12px 30px rgba(45, 26, 19, .07);
  }
  body .tc-hero .tc-hero-copy h1 { color: #2d1a13; }
  body .tc-hero .tc-hero-copy p { color: #756b66; }
  body .tc-hero .tc-hero-eyebrow { color: #0b513a; justify-content: center; }
  body .tc-hero .tc-hero-eyebrow::before { background: #ee6a04; }
  body .tc-hero .tc-hero-actions { justify-content: center; }

  /* Tablets still offer safari search, but below the hero description. */
  body .tc-hero .eu-hero-finder {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 3px;
  }

  body .tc-hero .gopato-hero-benefits {
    position: relative;
    z-index: 12;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    width: min(92%, 1050px);
    min-height: 74px;
    margin: -37px auto 0;
    padding: 9px 6px;
    background: #ee6a04;
    border: 2px solid #fff;
    border-radius: 12px;
    box-shadow: 0 9px 22px rgba(30, 25, 20, .17);
    color: #fff;
  }
  body .tc-hero .gopato-hero-benefit {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 0;
    padding: 6px 12px;
    text-align: left;
  }
  body .tc-hero .gopato-hero-benefit + .gopato-hero-benefit {
    border-left: 1px solid rgba(255, 255, 255, .45);
  }
  body .tc-hero .gopato-hero-benefit > i {
    flex: 0 0 auto;
    font-size: 27px;
    line-height: 1;
    color: #fff;
  }
  body .tc-hero .gopato-hero-benefit-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
  }
  body .tc-hero .gopato-hero-benefit-copy strong {
    display: block;
    font-family: var(--site-body-font, "Kumbh Sans", Arial, sans-serif);
    font-size: clamp(10px, 1.2vw, 15px);
    line-height: 1.15;
    font-weight: 700;
    white-space: nowrap;
  }
  body .tc-hero .gopato-hero-benefit-copy small {
    display: block;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
    opacity: .95;
  }
  /* Keep image slider arrows / dots above the seam strip. */
  body .tc-hero .tc-slider-controls { bottom: 55px; }
}

@media (max-width: 900px) {
  body .tc-hero .gopato-hero-benefit { flex-direction: column; gap: 5px; padding: 5px 4px; text-align: center; }
  body .tc-hero .gopato-hero-benefit > i { font-size: 23px; }
  body .tc-hero .gopato-hero-benefit-copy strong { font-size: clamp(9px, 1.6vw, 12px); }
  body .tc-hero .gopato-hero-benefit-copy small { font-size: 10px; }
}

@media (max-width: 767px) {
  /* Hide only the homepage finder. Safari browse/search pages are unaffected. */
  body .tc-hero form.eu-hero-finder { display: none !important; }
  body .tc-hero .tc-hero-content { gap: 0; padding-top: 16px; padding-bottom: 28px; }
  body .tc-hero .gopato-hero-benefits {
    width: calc(100% - 20px);
    min-height: 65px;
    margin-top: -33px;
    padding: 6px 3px;
    border-radius: 11px;
  }
  body .tc-hero .gopato-hero-benefit { gap: 5px; padding: 5px 2px; }
  body .tc-hero .gopato-hero-benefit > i { font-size: clamp(17px, 5vw, 22px); }
  body .tc-hero .gopato-hero-benefit-copy strong { font-size: clamp(9px, 2.55vw, 11px); }
  body .tc-hero .gopato-hero-benefit-copy small { display: none; }
  body .tc-hero .tc-slider-controls { bottom: 44px; }
}

@media (max-width: 370px) {
  body .tc-hero .gopato-hero-benefit-copy strong { font-size: 9px; }
  body .tc-hero .gopato-hero-benefits { width: calc(100% - 12px); }
}
