/*
 * The home hero and its search panel (LEIS-1015, reskinned by LEIS-1046).
 *
 * The band, the tabs and the notched white panel are all vendored markup now —
 * `.hero-banner-section`, `.hero-tabs`, `.shape-element`, `.search-form-wrap`
 * come from `public/styles/home-v3.css`, exactly as the two SRPs use them. So
 * this file is only the three things corp adds on top: the band's own
 * proportions, the greeting above the tabs, and the status chips beside them.
 *
 * It is unlayered on purpose. `app/globals.css` puts the vendor sheets in the
 * `leisure-vendor` layer, and unlayered CSS outranks any layered rule
 * regardless of specificity, so these win without an `!important` and without
 * reaching into a sheet corp does not own.
 *
 * What used to be here was the opposite job: a stack of rules stripping
 * `.search-form-wrap`'s background, radius, padding and shadow so the vendored
 * card did not nest inside a Tailwind one. The Tailwind card is gone, so those
 * rules are too — including the `vendor-important-overrides` block that beat
 * `home-v3.css`'s `!important` box-shadow. That shadow is now wanted: it is
 * what lifts the panel off the photograph, on this page as on the SRP.
 */

/* ---------------------------------------------------------------------------
 * The band.
 *
 * `.hero-banner-section` ships `margin-bottom: 60px` for leisure.com's home
 * page, where the band is the whole first screen. Here the panels grid follows
 * immediately and carries its own `pt-[32px]`, so 60px on top of that leaves a
 * visibly empty screen between the search and the first thing to act on.
 *
 * The 48px of padding-bottom is not arbitrary either: `.search-panel-container`
 * pulls itself up with `margin-bottom: -40px`, so this is what keeps the
 * panel's lower edge inside the blue instead of hanging off it. Same figure the
 * hotel SRP gets from its `py-5`.
 * ------------------------------------------------------------------------- */
.hero-banner-section.corp-home-hero {
  padding: 40px 0 48px;
  margin-bottom: 0;
}

@media screen and (max-width: 767px) {
  .hero-banner-section.corp-home-hero {
    padding: 24px 0 48px;
  }
}

/* ---------------------------------------------------------------------------
 * The greeting.
 *
 * Aligned to the TABS, not to the panel: `.search-panel-container` has 15px of
 * padding and `.hero-tabs` adds 15px of margin on top of it, which is also
 * where the form's first field label lands. 30px puts the greeting on that
 * same line.
 * ------------------------------------------------------------------------- */
.corp-home-hero-intro {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 22px;
  padding: 0 30px;
}

/*
 * Colour, size and weight are all stated.
 *
 * leisure-new-style.css styles `*` with `color: var(--color-content)` and
 * `font-size: 16px`, and a rule that matches an element directly beats
 * anything inherited from its parent at any specificity. Nothing in this block
 * can be left to inheritance — that is the same trap that rendered the "My
 * requests" hero title mid-grey on a navy band.
 */
.corp-home-hero-title {
  margin: 0;
  color: var(--fra-navy, #0f2733);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.corp-home-hero-sub {
  margin: 8px 0 0;
  color: var(--fra-navy-2, #1b4d61);
  font-size: 15px;
  line-height: 1.5;
}

/* The employee greeting names the policy group inside the sentence. */
.corp-home-hero-sub strong {
  color: var(--fra-navy, #0f2733);
  font-weight: 600;
}

@media screen and (max-width: 767px) {
  .corp-home-hero-intro {
    padding: 0 20px;
    text-align: left;
  }

  .corp-home-hero-title {
    font-size: 24px;
  }

  .corp-home-hero-sub {
    font-size: 14px;
  }
}

/* ---------------------------------------------------------------------------
 * The tab row.
 *
 * The tabs keep their own `ms-md-3`, so this row only has to push the chips to
 * the opposite edge and give them the container's 15px back on the right. On a
 * phone the two wrap and centre, which is what the vendored tabs already do on
 * their own (`me-auto ms-auto`).
 * ------------------------------------------------------------------------- */
.corp-home-tabrow {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.corp-home-chips {
  margin-bottom: 8px;
}

@media screen and (min-width: 768px) {
  .corp-home-tabrow {
    justify-content: space-between;
  }

  .corp-home-chips {
    margin-right: 15px;
    margin-bottom: 0;
  }
}

/*
 * The chips sit on a photograph here, not on a white card, so each pill states
 * a background of its own in `StatusChips`. What it cannot state is the gap
 * between them reading as part of the banner — this keeps them as one group.
 *
 * Centred below the lg breakpoint because the vendored tabs centre themselves
 * there (`me-auto ms-auto`), and a centred pill row above a left-aligned one
 * reads as a mistake rather than a hierarchy.
 */
.corp-home-chips > div {
  gap: 8px;
  justify-content: center;
}

@media screen and (min-width: 768px) {
  .corp-home-chips > div {
    justify-content: flex-end;
  }
}
