/**
 * PawFurvia Mobile Design 1.0.2
 * Homepage only (body.pfv-md15). Does not unhide Mobile Home preview/live modules.
 *
 * Anonymous mobile: #pf22-original-hero + #pfv-six-adventures + #pfv-mh2-cats / #pfv-mh3-*.
 * Preview (?pfmh=1) and future Live: body.pfmh-on hides #content and mh2/mh3; #pfmh is the phone UI.
 */

/* ---- Desktop hero crop after slide 6 replacement ---- */
@media (min-width: 769px) {
  html body.home.pfv-md15 #pf22-original-hero .pf22oh-image[src*="slide-6-hammock"] {
    object-fit: cover;
    object-position: center 40%;
  }
}

/* ---- Shared overflow guards (phone widths 320–768) ---- */
@media (max-width: 768px) {
  html body.home.pfv-md15,
  html body.home.pfv-md15 #content,
  html body.home.pfv-md15 #pfmh,
  html body.home.pfv-md15 #pf22-original-hero,
  html body.home.pfv-md15 #pfv-six-adventures {
    max-width: 100%;
    overflow-x: clip;
  }
  html body.home.pfv-md15 #pf22-original-hero h1,
  html body.home.pfv-md15 #pf22-original-hero .pf22oh-copy,
  html body.home.pfv-md15 #pf22-original-hero .pf22oh-copy p,
  html body.home.pfv-md15 #pfmh .lede,
  html body.home.pfv-md15 #pfmh h2,
  html body.home.pfv-md15 #pfmh h3,
  html body.home.pfv-md15 .pfv-mh3-head h2,
  html body.home.pfv-md15 .pfv-mh3-pc h3 {
    overflow-wrap: anywhere;
    word-wrap: break-word;
    max-width: 100%;
  }
}

/* ---- Anonymous mobile (no pfmh-on): original hero + mh2/mh3 ---- */
@media (max-width: 768px) {
  html body.home.pfv-md15:not(.pfmh-on) .pfv-announce {
    display: none !important;
  }
  html body.home.pfv-md15:not(.pfmh-on) .pfv-topbar {
    padding: 6px 12px !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
  }
  html body.home.pfv-md15:not(.pfmh-on) header.pfv-nav {
    min-height: 52px;
  }

  html body.home.pfv-md15:not(.pfmh-on) #pf22-original-hero.pf22oh {
    min-height: 520px;
    min-height: max(520px, 62svh);
    height: auto !important;
    margin: 0 !important;
    background: #14251e;
  }
  html body.home.pfv-md15:not(.pfmh-on) #pf22-original-hero .pf22oh-images {
    position: absolute;
    inset: 0;
  }
  html body.home.pfv-md15:not(.pfmh-on) #pf22-original-hero .pf22oh-image.is-active,
  html body.home.pfv-md15:not(.pfmh-on) #pf22-original-hero .pf22oh-image:first-child {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    content-visibility: visible !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 28% !important;
  }
  html body.home.pfv-md15:not(.pfmh-on) #pf22-original-hero .pf22oh-shade {
    background: linear-gradient(180deg, rgba(4, 33, 25, 0.22) 0%, rgba(4, 33, 25, 0.08) 38%, rgba(4, 33, 25, 0.78) 100%) !important;
  }
  html body.home.pfv-md15:not(.pfmh-on) #pf22-original-hero .pf22oh-copy {
    position: relative;
    z-index: 1;
    width: auto !important;
    max-width: none !important;
    padding: 20px 18px 24px !important;
    box-sizing: border-box !important;
  }
  html body.home.pfv-md15:not(.pfmh-on) #pf22-original-hero h1 {
    font-size: clamp(26px, 7.4vw, 36px) !important;
    line-height: 1.12 !important;
    margin: 8px 0 10px !important;
    color: #faf8ee !important;
  }
  html body.home.pfv-md15:not(.pfmh-on) #pf22-original-hero .pf22oh-copy p {
    -webkit-line-clamp: 3 !important;
    max-height: none !important;
    margin: 0 0 16px !important;
    color: #f3efe5 !important;
  }
  html body.home.pfv-md15:not(.pfmh-on) #pf22-original-hero .pf22oh-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }
  html body.home.pfv-md15:not(.pfmh-on) #pf22-original-hero .pf22oh-button,
  html body.home.pfv-md15:not(.pfmh-on) #pf22-original-hero .pf22oh-link {
    min-height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 18px !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    box-sizing: border-box;
  }
  html body.home.pfv-md15:not(.pfmh-on) #pf22-original-hero .pf22oh-button {
    background: #dceb83 !important;
    color: #173d31 !important;
  }
  html body.home.pfv-md15:not(.pfmh-on) #pf22-original-hero .pf22oh-link {
    color: #faf8ee !important;
    box-shadow: inset 0 0 0 1.5px rgba(250, 248, 238, 0.7);
  }

  html body.home.pfv-md15:not(.pfmh-on) #pfv-six-adventures {
    margin-top: 0 !important;
  }

  /* Public category grid: #pfv-mh2-cats .pfv-mh2-grid / .pfv-mh2-tile */
  html body.home.pfv-md15:not(.pfmh-on) #pfv-mh2-cats .pfv-mh2-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    padding: 0 18px !important;
  }
  html body.home.pfv-md15:not(.pfmh-on) #pfv-mh2-cats .pfv-mh2-tile {
    aspect-ratio: 4 / 5;
    min-width: 0;
    max-width: 100%;
  }
  html body.home.pfv-md15:not(.pfmh-on) #pfv-mh2-cats .pfv-mh2-tile img,
  html body.home.pfv-md15:not(.pfmh-on) .pfv-mh3-ph img,
  html body.home.pfv-md15:not(.pfmh-on) .pfv-mh3-col img,
  html body.home.pfv-md15:not(.pfmh-on) .pfv-mh3-jc img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    object-fit: cover;
  }
  html body.home.pfv-md15:not(.pfmh-on) .pfv-mh3-ph img {
    object-fit: contain;
    background: #fff;
  }
  html body.home.pfv-md15:not(.pfmh-on) .pfv-mh3-head h2 {
    font-size: clamp(24px, 6.5vw, 34px) !important;
    line-height: 1.08 !important;
  }
  html body.home.pfv-md15:not(.pfmh-on) .pfv-mh3-head a,
  html body.home.pfv-md15:not(.pfmh-on) #pfv-mh3-faq summary,
  html body.home.pfv-md15:not(.pfmh-on) .pfv-mh2-btn {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
  }
  html body.home.pfv-md15:not(.pfmh-on) .pfv-mh3-row > * {
    flex: 0 0 46% !important;
    min-width: 0;
  }
  html body.home.pfv-md15:not(.pfmh-on) .pfv-mh3-buy {
    min-height: 44px !important;
    padding: 0 14px !important;
  }
}

/* ---- Preview / future Live: #pfmh only. Do not unhide #content or mh2/mh3. ---- */
@media (max-width: 768px) {
  html body.home.pfv-md15.pfmh-on #pfmh {
    max-width: 100%;
    overflow-x: clip;
  }
  html body.home.pfv-md15.pfmh-on #pfmh .pfmh-hero {
    height: auto;
    min-height: max(500px, min(78svh, 640px));
  }
  html body.home.pfv-md15.pfmh-on #pfmh .pfmh-hero .t {
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }
  html body.home.pfv-md15.pfmh-on #pfmh .pfmh-hero .row a,
  html body.home.pfv-md15.pfmh-on #pfmh .btn,
  html body.home.pfv-md15.pfmh-on #pfmh .opt,
  html body.home.pfv-md15.pfmh-on #pfmh .more {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  html body.home.pfv-md15.pfmh-on #pfmh .rail {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }
  html body.home.pfv-md15.pfmh-on #pfmh .catc {
    min-width: 0;
  }
  html body.home.pfv-md15.pfmh-on #pfmh .catc .m img,
  html body.home.pfv-md15.pfmh-on #pfmh .pc .m img {
    max-width: 100%;
    object-fit: cover;
  }
  html body.home.pfv-md15.pfmh-on #pfmh .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 12px;
    max-width: 100%;
  }
  html body.home.pfv-md15.pfmh-on #pfmh .pc,
  html body.home.pfv-md15.pfmh-on #pfmh .pc h3 {
    min-width: 0;
  }
}

/*
 * Price restore: beat #pfv-home-editorial-20261111
 *   html body.home.home.home .pfv-mh3-price
 *   html body.home.home.home #pfmh .pr
 * Specificity here is one class higher and still uses !important.
 */
html body.home.home.home.pfv-md15 .pfv-mh3-pr,
html body.home.home.home.pfv-md15 .pfv-mh3-price,
html body.home.home.home.pfv-md15 #pfv-mh3-best .pfv-mh3-price {
  display: flex !important;
  visibility: visible !important;
  color: #1f3d36;
}
html body.home.home.home.pfv-md15 #pfmh .pr,
html body.home.home.home.pfv-md15 #pfmh .pc .pr {
  display: block !important;
  visibility: visible !important;
}

@media (max-width: 768px) {
  html body.pfv-md15 .trp-language-switcher.trp-floating-switcher,
  html body.pfv-md15 nav.trp-floating-switcher {
    left: auto !important;
    right: 12px !important;
    bottom: 108px !important;
  }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  html body.home.pfv-md15 #pf22-original-hero .pf22oh-image,
  html body.home.pfv-md15 #pfmh .pfmh-hero .sl {
    transition: none !important;
  }
}


/*
 * A later homepage IIFE (LiteSpeed-combined) sets the 6th #pf22-original-hero
 * photo to story-control.webp and injects .pfv-hero-illustrative-label
 * ("Illustrative scene") when that slide is active. After we restore the
 * owned hammock photo, that disclosure is no longer accurate. Scoped to this
 * hero only — Fit Lab keeps story-control.webp.
 */
html body.home.pfv-md15 #pf22-original-hero .pfv-hero-illustrative-label {
  display: none !important;
}
