/* book-us.html (Mark 4 and 5 Nov 2026, both formats). Top to bottom: green
   hero with the two offer cards, brown truck band (van banner, copy, what's
   on board), green flow section, then a brown band with the Vsigns credit.
   The green flow is the carousel then the baristas copy, the Events title
   and four tiles, then the winter card on desktop; phones put the events and
   winter card first (.jos-truck-flow order below 1024px). Mark 5 Nov, round 2:
   carousel above the baristas copy, more air, autoplay + arrows on phones.
   Desktop is the phone layout, just wider. .jos-desktop-only and
   .jos-mobile-only switch at 1024px and are used on this page only.
   Bump ?v only after a deploy has finished: Cloudflare caches the new URL
   for 4 hours even when an old container answered it mid-rollout. */

.jos-desktop-only {
  display: none;
}

@media (min-width: 1024px) {
  .jos-desktop-only {
    display: block;
  }

  .jos-mobile-only {
    display: none !important;
  }

  /* Hero: label, title, lead, the four points in two columns, then the two
     offer cards side by side, then the note and the reviews line */
  .jos-page-hero.jos-book-hero {
    margin-inline: auto;
    max-width: calc(1160px + 112px);
    padding-top: clamp(56px, 6vw, 80px);
  }

  /* Title at the shared page-title size, on two lines where one does not
     fit (Mark 6 Nov 2026: one line ran off the edge on wider screens) */
  .jos-page-hero.jos-book-hero h1 {
    max-width: none;
  }

  .jos-book-hero-points {
    display: grid;
    gap: 10px 48px;
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
    list-style: none;
    margin-top: 28px;
    text-align: left;
  }

  .jos-book-hero-points li {
    color: var(--jos-ink);
    font-size: 16px;
    line-height: 1.5;
    padding-left: 20px;
    position: relative;
  }

  .jos-book-hero-points li::before {
    background: var(--jos-gold);
    border-radius: 50%;
    content: "";
    height: 8px;
    left: 0;
    position: absolute;
    top: 0.5em;
    width: 8px;
  }

  .jos-book-hero .jos-offer-cards {
    gap: 24px;
    margin-top: 40px;
    max-width: 880px;
  }

  .jos-book-hero-note {
    color: var(--jos-body);
    font-size: 15px;
    line-height: 1.65;
    margin: 32px auto 0;
    max-width: 560px;
  }

  /* Truck band: Mark's 1920x640 van photo on top, then the copy, what's on
     board and the CTAs in one column */
  #truck .jos-banner {
    margin-bottom: 48px;
  }

  #truck .jos-truck-block.jos-split {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Breathing space around the bullets (Mark 5 Nov, round 2) */
  #truck .jos-truck-block {
    margin-top: 56px;
  }

  #truck .jos-truck-block + .jos-cta-row {
    margin-top: 56px;
  }

  #baristas.jos-section {
    padding-top: 112px;
  }

  /* Second green section: same 1160 grid and 760 copy column as the truck */
  #baristas > .jos-section-inner {
    max-width: 1160px;
  }

  .jos-truck-carousel-copy,
  .jos-whats-next {
    margin-inline: auto;
    max-width: 760px;
  }

  .jos-truck-events {
    margin-top: 112px;
  }

  /* Winter card: photo one side, copy the other, wider than the copy column */
  .jos-whats-next {
    margin-top: 72px;
    max-width: 960px;
  }

  .jos-whats-next .jos-winter-card {
    column-gap: 48px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    margin-top: 0;
  }

  /* Instagram: the linked tile says so, instead of looking like a plain photo */
  #baristas .jos-hire-grid-link::after {
    color: var(--jos-gold-text);
    content: "View on Instagram";
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-top: 4px;
    text-align: center;
    text-transform: uppercase;
  }

  /* Instagram links on the truck and winter photos (Mark 1 Nov 2026). The
     anchors carry .jos-desktop-only, so phones never get them. Stretched-link
     pattern keeps the image markup and layout untouched. */
  #baristas .jos-hire-grid > li,
  .jos-winter-card {
    position: relative;
  }

  .jos-ig-link {
    color: inherit;
    text-decoration: none;
  }

  .jos-ig-link::before {
    content: "";
    inset: 0;
    position: absolute;
  }

  .jos-ig-link::after {
    color: var(--jos-gold-text);
    content: "View on Instagram";
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-top: 4px;
    text-transform: uppercase;
  }

  #baristas .jos-hire-grid .jos-ig-link::after {
    text-align: center;
  }

  .jos-ig-link:hover::after,
  .jos-ig-link:focus-visible::after {
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}

/* Phones and tablets: event tiles, then winter card, then baristas */
@media (max-width: 1023px) {
  .jos-truck-flow {
    display: flex;
    flex-direction: column;
  }

  .jos-truck-flow > .jos-truck-events {
    margin-top: 0;
    order: 1;
  }

  .jos-truck-flow > .jos-whats-next {
    order: 2;
  }

  .jos-truck-flow > .jos-truck-carousel {
    margin-top: var(--jos-space-section-y);
    order: 3;
  }
}

/* Book-us title breaks after "Event," on desktop, two lines; phones keep
   the balanced wrap */
@media (min-width: 1024px) {
  .jos-book-hero-line {
    display: inline-block;
  }
}

/* Events title over the four tiles (Mark 5 Nov, round 2) */
.jos-truck-events-title {
  text-align: center;
}

/* Reviews on book-us: centred, with room around them (Mark 5 Nov, round 2) */
.jos-proof .jos-section-inner {
  text-align: center;
}

@media (min-width: 1024px) {
  main > .jos-section.jos-proof {
    padding-block: 112px !important;
  }
}

/* Credit band: the Vsigns mark opens the band, no extra top gap */
.jos-truck-credit-band .jos-truck-credit-logo {
  margin-top: 0;
}

/* Baristas carousel, styled like the Food & Drink carousel: edge to edge,
   square photos on a 2px hairline, one peeking on phones, three and a bit on
   desktop. Swipe, scroll, arrow keys or the arrows; autoplay lives in
   js/explore-carousel-arrows.js. Sits above the baristas copy. */
.jos-truck-carousel-frame {
  margin: 0 calc(50% - 50vw) 48px;
  position: relative;
}

@media (min-width: 1024px) {
  .jos-truck-carousel-frame {
    margin-bottom: 80px;
  }
}

.jos-truck-carousel-track {
  display: grid;
  gap: 2px;
  grid-auto-columns: 78%;
  grid-auto-flow: column;
  list-style: none;
  margin: 0;
  overflow-x: auto;
  padding: 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.jos-truck-carousel-track:focus-visible {
  outline: 2px solid var(--jos-gold);
  outline-offset: -2px;
}

.jos-truck-carousel-track li {
  scroll-snap-align: start;
}

.jos-truck-carousel-track img {
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  display: block;
  height: auto;
  width: 100%;
}

.jos-carousel-arrow {
  align-items: center;
  background: var(--jos-cream);
  border: none;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  color: var(--jos-ink);
  cursor: pointer;
  display: flex;
  height: 44px;
  justify-content: center;
  padding: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  z-index: 1;
}

.jos-carousel-arrow--prev {
  left: 12px;
}

.jos-carousel-arrow--next {
  right: 12px;
}

@media (min-width: 1024px) {
  .jos-truck-carousel-track {
    grid-auto-columns: calc((100% - 4px) / 3.25);
  }

  .jos-carousel-arrow {
    align-items: center;
    background: var(--jos-cream);
    border: none;
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    color: var(--jos-ink);
    cursor: pointer;
    display: flex;
    height: 48px;
    justify-content: center;
    padding: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    z-index: 1;
  }

  .jos-carousel-arrow:hover,
  .jos-carousel-arrow:focus-visible {
    transform: translateY(-50%) scale(1.08);
  }

  .jos-carousel-arrow--prev {
    left: 20px;
  }

  .jos-carousel-arrow--next {
    right: 20px;
  }
}

/* r31 (Mark 9 Nov, "cramped"): Book us desktop. The eyebrow sat 68px above the title ink and the intro only 23px under the descenders.
   Same spacing as the other inner pages: 40px from the eyebrow, 54px intro margin. */
@media (min-width: 1024px) {
  .jos-page-hero.jos-book-hero h1 {
    margin-top: calc(44px - 0.2em + var(--jos-script-air));
  }

  .jos-page-hero.jos-book-hero .jos-lead {
    margin-top: 54px;
  }
}
