/* Shared page gutter (Mark / James, 7 Nov 2026).
   Phones (up to 767px): 24px from the screen edge for text. Full-bleed photos, video and the
   header bar stay full width. Tablets (768 to 1023px): a scaled-up home hero.
   From 1024px nothing here applies. */
:root {
  --jos-gutter-m: 24px;
}

@media (max-width: 767px) {
  /* Header: logo and strapline use the same gutter */
  .jos-header--alt {
    --jos-header-inline-pad: var(--jos-gutter-m);
  }

  /* The sections the phone stylesheet pads by hand */
  [data-screen-label="Brand statement"],
  [data-screen-label="Explore pillars"],
  [data-screen-label="Categories"],
  [data-screen-label="Carousel"],
  [data-screen-label="Our Story"],
  [data-screen-label="Testimonials"],
  [data-screen-label="See you soon"],
  [data-screen-label="Instagram"],
  [data-screen-label="Explore"],
  [data-screen-label="Book the truck"],
  [data-screen-label="About intro"],
  [data-screen-label="Story feature"],
  [data-screen-label="Story body"],
  [data-screen-label="Book intro"],
  main > section:not(.jos-hero),
  .jos-categories,
  .jos-instagram,
  .jos-explore,
  .jos-promo,
  .jos-carousel-head,
  .jos-carousel-viewport {
    padding-left: var(--jos-gutter-m) !important;
    padding-right: var(--jos-gutter-m) !important;
  }

  /* Home tile captions and the Find us block */
  .multi-teaser-caption,
  .shop-news-edits-one .multi-teaser-caption--campaign {
    left: var(--jos-gutter-m) !important;
    width: calc(100% - 2 * var(--jos-gutter-m)) !important;
  }

  .jos-home-map {
    padding-left: var(--jos-gutter-m);
    padding-right: var(--jos-gutter-m);
  }

  /* Home hero copy */
  .jos-hero-overlay {
    padding-left: var(--jos-gutter-m);
    padding-right: var(--jos-gutter-m);
  }
}

/* Tablet portrait (768 to 1023px): the home hero is still the phone reel, so give it a
   deliberate tablet layout: bigger type, a wider column, comfortable bottom padding. */
@media (min-width: 768px) and (max-width: 1023px) {
  .jos-hero-overlay {
    bottom: clamp(56px, 7vw, 80px);
    padding: 0 clamp(40px, 6vw, 56px);
  }

  .jos-hero-title {
    font-size: clamp(44px, 6.6vw, 64px);
    max-width: none;
  }

  .jos-hero-subline {
    font-size: clamp(16px, 2.2vw, 22px);
    letter-spacing: 0.06em;
    margin: 14px 0 18px;
  }

  .jos-hero-content {
    max-width: 66%;
    margin-top: 0;
  }

  .jos-hero-lead {
    font-size: clamp(19px, 2.7vw, 26px);
    line-height: 1.5;
  }
}
