/**
 * Cycle-Jobs Home — page 9 canonical surface composition.
 *
 * Reusable buttons and cards retain their canonical owners. WP Job Manager
 * and WP Carousel retain markup, behavior and runtime ownership.
 */
body.page-id-9 {
  --cj-home-line: var(--cj-color-gray-200, #e5e7eb);
  --cj-home-muted: var(--cj-color-gray-500, #667085);
  --cj-home-paper: var(--cj-color-white, #fff);
}

body.page-id-9 .entry-content {
  padding-block: var(--cj-page-start) var(--cj-page-end);
  overflow-wrap: anywhere;
  font-family: var(--cj-font-family-system);
  color: var(--cj-color-black, #111);
}

/* #124 — bounded adoption of the approved typography roles on Home-owned content. */
body.page-id-9 .entry-content > h1.wp-block-heading {
  font-family: var(--cj-font-family-system);
  font-size: var(--cj-font-size-h1);
  font-weight: 700;
  line-height: var(--cj-line-height-h1);
  letter-spacing: -.015em;
}

body.page-id-9 .entry-content > .wp-block-group > h2.wp-block-heading,
body.page-id-9 .cj-latest--section > h2,
body.page-id-9 #Why-Cycle-Jobs > h2.wp-block-heading,
body.page-id-9 .cj-career--cta > h2 {
  font-family: var(--cj-font-family-system);
  font-size: var(--cj-font-size-h2);
  font-weight: 700;
  line-height: var(--cj-line-height-h2);
  letter-spacing: -.01em;
}

body.page-id-9 .entry-content > h3.wp-block-heading,
body.page-id-9 .cj-why--pill .cj-card__title,
body.page-id-9 .cj-home__service-card .cj-card__title {
  font-family: var(--cj-font-family-system);
  font-size: var(--cj-font-size-h3);
  font-weight: 600;
  line-height: var(--cj-line-height-h3);
  letter-spacing: normal;
}

body.page-id-9 .entry-content > p,
body.page-id-9 .entry-content > .wp-block-group > p {
  font-family: var(--cj-font-family-system);
  font-size: var(--cj-font-size-body);
  font-weight: 400;
  line-height: var(--cj-line-height-body);
}

body.page-id-9 .cj-home--desc,
body.page-id-9 .cj-why--pill p,
body.page-id-9 .cj-career--text {
  font-family: var(--cj-font-family-system);
  font-size: var(--cj-font-size-supporting);
  font-weight: 400;
  line-height: var(--cj-line-height-supporting);
  color: var(--cj-color-gray-900, #333);
}

body.page-id-9 .entry-content .cj-button {
  font-family: var(--cj-font-family-system);
  font-size: var(--cj-font-size-control);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: normal;
}

body.page-id-9 .entry-content .cj-button--service {
  color: var(--cj-service-on-accent, #fff) !important;
  background-color: var(--cj-service-accent);
}

body.page-id-9 .entry-content .cj-button--service:hover,
body.page-id-9 .entry-content .cj-button--service:focus-visible {
  color: var(--cj-service-on-accent, #fff) !important;
  background-color: var(--cj-service-accent-hover, var(--cj-service-accent));
}

/* Preserve this composition width against Astra's viewport-wide alignfull rule. */
body.page-id-9 .entry-content > .wp-block-group.alignfull,
body.page-id-9 .entry-content > .wp-block-group,
body.page-id-9 .cj-home__services,
body.page-id-9 .cj-latest--section,
body.page-id-9 .cj-why--section,
body.page-id-9 .cj-career--cta {
  box-sizing: border-box;
  width: min(100%, var(--cj-container-content));
  margin-inline: auto;
  padding-inline: var(--cj-gutter);
}

body.page-id-9 .cj-home__service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

body.page-id-9 .cj-home__service-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  overflow: hidden;
}

body.page-id-9 .cj-home__service-card .cj-card__body {
  display: grid;
  gap: 1rem;
}

body.page-id-9 .cj-home__service-card .cj-card__title,
body.page-id-9 .cj-home__service-card .cj-home--desc {
  margin: 0;
}

body.page-id-9 .cj-home__service-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--cj-radius-md, .75rem);
}

body.page-id-9 .cj-home__service-card > .cj-button {
  align-self: flex-start;
}

body.page-id-9 .cj-latest--section,
body.page-id-9 .cj-why--section,
body.page-id-9 .cj-career--cta {
  padding-inline: var(--cj-gutter);
}

body.page-id-9 .cj-latest--grid,
body.page-id-9 .cj-latest--grid .job_listings {
  min-width: 0;
  max-width: 100%;
}

body.page-id-9 .cj-latest--cta {
  display: flex;
  justify-content: center;
  margin-block-start: 1.5rem;
}

body.page-id-9 .cj-why--section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

body.page-id-9 .cj-why--pill {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: .875rem;
}

body.page-id-9 .cj-why--icon {
  font-size: 1.5rem;
  line-height: 1;
}

body.page-id-9 .cj-why--pill .cj-card__title,
body.page-id-9 .cj-why--pill p {
  margin: 0;
}

body.page-id-9 .cj-career--cta {
  padding-block: clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  color: var(--cj-color-black, #111);
  background: var(--cj-color-white, #fff);
  border-block: 1px solid var(--cj-home-line);
  border-radius: 0;
  box-shadow: none;
}

body.page-id-9 .cj-career--buttons .cj-button--job {
  --cj-service-accent: var(--cj-color-job, #1a6ef4);
  --cj-service-accent-hover: var(--cj-color-job-hover, #155fd0);
}

body.page-id-9 .cj-career--buttons .cj-button--insights {
  --cj-service-accent: var(--cj-color-insights, #1f4e5f);
  --cj-service-accent-hover: var(--cj-color-insights, #1f4e5f);
}

body.page-id-9 .cj-career--cta > * {
  max-width: 46rem;
  margin-inline: auto;
}

body.page-id-9 .cj-career--buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-block-start: 1.25rem;
}

body.page-id-9 .cj-button:focus-visible,
body.page-id-9 .job_listings a:focus-visible,
body.page-id-9 .sp-wpcarousel-section a:focus-visible {
  outline: 2px solid var(--cj-color-focus, #005fcc);
  outline-offset: 3px;
}

/* Frozen Canonical v1 composition aliases for the accepted Home structure. */
body.page-id-9 .entry-content > h1.wp-block-heading {
  margin-block-end: var(--cj-space-6) !important;
}

body.page-id-9 .cj-home__services,
body.page-id-9 .cj-latest--section,
body.page-id-9 .cj-why--section,
body.page-id-9 .cj-career--cta {
  min-inline-size: 0;
}

@media (max-width: 64rem) {
  body.page-id-9 .cj-home__service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-id-9 .cj-home__service-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 48rem) {
  body.page-id-9 .entry-content > h1.wp-block-heading {
    margin-block-end: var(--cj-space-4) !important;
  }
}

@media (max-width: 42rem) {
  body.page-id-9 .cj-home__service-grid,
  body.page-id-9 .cj-why--section {
    grid-template-columns: 1fr;
  }

  body.page-id-9 .cj-home__service-card:last-child {
    grid-column: auto;
  }

  body.page-id-9 .cj-career--buttons {
    align-items: flex-start;
    flex-direction: column;
  }
}
