/*
 * Find Your Job narrow-mobile compatibility repair.
 *
 * Code Snippet #297 intentionally makes the search and results surfaces
 * viewport-wide. At 320px the legacy 280px + 1fr grid resolves to 280px + 0px,
 * so the snippet's full-bleed margin is calculated from an off-centre fixed
 * track. Collapse only that narrow-mobile grid to one width-safe track while
 * preserving the existing full-bleed children and WPJM behavior.
 */
body.page-id-411 #Latest-Job-Offers > ul.job_listings > li.job_listing {
  inline-size: 100%;
  max-inline-size: 100%;
  box-sizing: border-box;
}

body.page-id-411 ul.job_listings li.job_listing > .cj-job-key-facts--card {
  margin-block: 0.75rem 0;
}

/*
 * #297 switches search/results to approved viewport-wide surfaces at 900px,
 * while Z2 leaves the parent on its desktop 280px + 1fr grid. Use the
 * already-hidden-sidebar breakpoint as the ownership boundary so the
 * full-bleed offsets are calculated from a centred, width-safe main track.
 */
@media (max-width: 900px) {
  body.page-id-411 .cj-jobboard.cj-find--your-job .cj-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 360px) {
  body.page-id-411 .cj-jobboard.cj-find--your-job .cj-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.page-id-411 .cj-snapshot--section .cj-home--grid,
  body.page-id-411 .cj-features--grid,
  body.page-id-411 .cj-steps--grid,
  body.page-id-411 .cj-benefits--grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/*
 * #236: the legacy Z1 .cj-btn nowrap/fixed-height rule clips translated
 * Jobs CTAs on narrow screens. This existing consumer compatibility owner
 * permits text reflow without changing the intentional #297 full-bleed boxes.
 */
@media (max-width: 390px) {
  body.page-id-411 .cj-career-buttons .cj-btn,
  body.page-id-411 .cj-career-buttons .cj-button,
  body.page-id-411 .cj-plan--actions .cj-btn,
  body.page-id-411 .cj-plan--actions .cj-button {
    white-space: normal;
    overflow-wrap: anywhere;
    block-size: auto;
    min-block-size: 42px;
    max-inline-size: 100%;
  }
}
