/* ==========================================================================
   Launch Agenda — mobile single-column view with track filters
   --------------------------------------------------------------------------
   Replaces the horizontally-scrolling 4-column timetable with one readable
   column plus an All / UK / BINC-BE filter.
   Everything below 992px only; the desktop grid is left untouched.
   ========================================================================== */

/* The filter bar, the track badges and the empty-state message are all
   injected into the DOM unconditionally, but they are mobile-only
   affordances. Hide them by default so nothing leaks onto the desktop
   grid; the media query below switches them back on. */
.agenda-filter,
.agenda-badge,
.agenda-empty-state,
.day-select,
.menu-select { display: none; }

@media screen and (max-width: 991px) {

  /* ---- 1. Kill the horizontal scroll ------------------------------------ */
  .day {
    width: 100%;
    overflow: visible;
  }
  .launch-list,
  .launch-headings { width: 100% !important; }

  /* Column headings carry no meaning once collapsed to one column —
     each card is labelled with its own track badge instead. */
  .launch-headings { display: none; }

  /* The "swipe across" hand hint: nothing to swipe any more. */
  .launch-time.no-border { background-image: none; }

  /* ---- 2. Collapse the grid to a single column -------------------------- */
  .grid-launch {
    display: block !important;
    width: 100%;
  }

  /* ---- 3. Hour marker becomes a lightweight row heading ----------------- */
  .launch-item .launch-time {
    min-height: 0;
    display: block;
    border-right: none;
    padding: 1.5rem 0 .5rem;
  }
  .launch-item .launch-time-text {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0em;
    opacity: .55;
  }
  .launch-item .launch-time-text::after { content: ":00"; }

  /* ---- 4. Each populated cell becomes a card ---------------------------- */
  .launch-info {
    display: block;
    border-right: none;
  }

  /* The desktop timetable is built from absolutely-positioned blocks whose
     percentage heights make them span the hour grid. In a single column that
     collapses every ancestor to zero height and piles the cards on top of
     each other, so put the whole subtree back into normal flow.
     All of this is scoped inside .launch-info and cannot leak elsewhere. */
  .launch-info div {
    height: auto !important;
    overflow: visible !important;
    border-bottom: none !important;
  }

  /* Two events sharing one cell sit side by side on desktop (.w50 +
     .w50.move-right, both absolute). Stack them instead. */
  .launch-info .w50 {
    position: static !important;
    width: auto !important;
    left: auto !important;
    border: none !important;
  }

  .launch-info .launch-text {
    position: static !important;
    width: auto !important;
    padding: .875rem 1rem 1rem;
    font-size: .95rem;
    line-height: 1.45;
  }
  .launch-info .launch-text.half-width { width: auto !important; }

  /* The three card colours keep their meaning, just gain card treatment. */
  .launch-info .bg-grey,
  .launch-info .bg-green,
  .launch-info .bg-gold {
    border-radius: 3px;
    margin-bottom: .5rem;
  }

  /* Webflow rich text leaves zero-width-joiner spacer paragraphs behind;
     they add dead space once the fixed heights are gone. */
  .launch-info .launch-text p:last-child { margin-bottom: 0; }

  /* ---- 5. Track badge --------------------------------------------------- */
  .agenda-badge {
    display: inline-block;
    margin: 0 0 .5rem;
    padding: .25rem .5rem;
    border-radius: 2px;
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    background: rgba(17, 62, 29, .12);
    color: #113e1d;
  }
  .agenda-badge[data-track="UK"]      { background: #113e1d; color: #fff; }
  .agenda-badge[data-track="BINC/BE"] { background: #002b0b; color: #fff; }

  /* ---- 6. Hidden by filter / empty ------------------------------------- */
  .launch-info[data-agenda-empty],
  .launch-info[data-agenda-off]        { display: none !important; }
  .launch-item[data-agenda-off]        { display: none !important; }
  /* An event limited to other countries (data-markets, see agenda-mobile.js). */
  .launch-info [data-markets][data-agenda-off] { display: none !important; }

  /* ---- 7. The filter bar ------------------------------------------------ */
  .agenda-filter {
    display: block;
    position: sticky;
    top: 0;
    z-index: 20;
    margin-bottom: .25rem;
    padding: .75rem 0 .625rem;
    background: #fff;
    box-shadow: 0 1px 0 rgba(17, 62, 29, .14);
  }
  .agenda-filter__label {
    display: block;
    margin: 0 0 .4rem;
    font-size: .8125rem;
    font-weight: 600;
    line-height: 1.3;
    color: #113e1d;
  }
  .agenda-filter__select {
    display: block;
    width: 100%;
    min-height: 52px;              /* comfortable touch target */
    padding: .75rem 2.5rem .75rem .75rem;
    border: 2px solid #113e1d;
    border-radius: 2px;
    background-color: #fff;
    /* Own chevron, since appearance:none removes the native one. */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23113e1d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .85rem center;
    background-size: .7rem auto;
    color: #113e1d;
    font-family: inherit;
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
  }
  .agenda-filter__select:focus-visible {
    outline: 2px solid #4d65ff;
    outline-offset: 2px;
  }
  .agenda-filter__note {
    margin: .5rem 0 0;
    font-size: 1rem;
    line-height: 1.4;
    color: #113e1d;
    opacity: .65;
  }

  /* Nothing matched the current filter. */
  .agenda-empty-state {
    display: none;
    padding: 1.5rem 0;
    font-size: .9rem;
    color: #113e1d;
    opacity: .7;
  }
  .agenda-empty-state[data-visible] { display: block; }

  /* ---- 6. Tighten the run-in to the day buttons -------------------------- */
  /* .section_agenda opens with 5rem of padding, which is the whole gap under
     the "Launch Agenda" heading. That reads as a long blank stretch on a
     phone, where the buttons below it are stacked rather than in a row. */
  .section_agenda { padding-top: 1.5rem; }

  /* ---- 7. Tighten the run-out into Workspace & Showrooms ----------------- */
  /* The agenda closes with 5rem under it and the workspace section opens
     with another 5rem, so 160px of nothing sat above that heading. */
  .day { padding-bottom: 1.5rem; }
  .section_floorplan { padding-top: 2rem; }

  /* ---- 8. Tighten the run-in under a vendor logo ------------------------- */
  /* The logo carries 40px beneath it and .eat-item opens with 50px, so the
     first dish sat ~93px below the logo. The item padding is the gap between
     dishes, so only the first one loses it. */
  .logo-holder { margin-bottom: 1.25rem; }
  .eat-item:first-child { padding-top: 0; }

  /* ---- 9. Tighten the footer -------------------------------------------- */
  /* 88px sat between the logos and the copyright line: a 32px margin on the
     credit text plus 24px of wrapper padding. :has() keeps the wrapper rule
     off the other sections that share these utility classes; where it is not
     supported the credit margin still does most of the work. */
  .footer7_credit-text { margin-top: .5rem; }
  .padding-top.padding-medium:has(.footer7_bottom-wrapper) { padding-top: .5rem; }
}

/* ==========================================================================
   Phone-only
   --------------------------------------------------------------------------
   Separate from the block above, which covers everything below 992px.
   ========================================================================== */
@media screen and (max-width: 767px) {
  /* The hero is sized for a wide screen and takes most of a phone screen
     before any content shows. Tie it to the viewport width instead, with a
     floor so it never collapses on a short screen. */
  .section_header5.text-color-white {
    height: 80vw;
    min-height: 40vh;
  }

  /* Section headings are set for a wide screen and wrap to two or three
     lines on a phone; bring them down to a size that fits. */
  /* The export also carries .heading-style-h2.text-style-allcaps
     .text-color-green at 2.25rem, which outweighs a single-class rule and
     left "Launch Agenda" bigger than every other heading. Match it. */
  .heading-style-h2,
  .heading-style-h2.text-style-allcaps.text-color-green { font-size: 2rem; }
}

/* ---- Day dropdown (day-select.js) ----------------------------------------
   On phones and tablets the day buttons become a dropdown in the same style
   as the country/group filter; the buttons themselves are hidden there. */
@media screen and (max-width: 991px) {
  .day-select { display: block; width: 100%; margin: 1.75rem 0 1.25rem; padding-left: 5%; padding-right: 5%; }
  .section_agenda > .w-tab-menu { display: none; }
}

/* ---- Menu dropdown (day-select.js) ---------------------------------------
   Below 768px the six Eat & Drink menu tabs stack into a tall column; they
   become a dropdown in the same style, sitting on the white menu panel. */
@media screen and (max-width: 767px) {
  .menu-select { display: block; padding: 1.25rem 1.25rem .25rem; background: #fff; text-align: left; }
  .box-eat > .w-tabs > .tabs-eat.w-tab-menu { display: none; }
}

