/* BeeConnect lower-page shared components. Loaded only on the six lower contexts. */

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lower-page {
  color: var(--bc-brown);
  background: #fff;
}

.lower-container,
.lower-narrow-container {
  width: min(var(--bc-content), calc(100% - 48px));
  margin-inline: auto;
}

.lower-narrow-container {
  width: min(1016px, calc(100% - 48px));
}

.lower-hero {
  position: relative;
  min-height: 334px;
  padding: 140px 24px 98px;
  border-radius: 0 0 24px 24px;
}

.lower-hero__artwork {
  position: absolute;
  inset: 0;
  overflow: clip;
  border-radius: inherit;
  background: var(--bc-cream);
  pointer-events: none;
}

.lower-hero__rings {
  position: absolute;
  top: -541px;
  left: -111px;
  width: 1259px;
  max-width: none;
  height: 984px;
  pointer-events: none;
}

.lower-hero__characters {
  position: absolute;
  right: max(24px, calc((100% - 1224px) / 2 + 92px));
  bottom: 0;
  width: 180px;
  height: 90px;
  /* Figma 410:190–240 deliberately masks this illustration, not the page content. */
  overflow: clip;
  pointer-events: none;
}

.lower-hero__character,
.lower-hero__character-marks {
  position: absolute;
  display: block;
  max-width: none;
}

.lower-hero__character {
  top: 1px;
  width: 107px;
  height: 120px;
}

.lower-hero__character--hana {
  left: -5px;
}

.lower-hero__character--hoshi {
  left: 76px;
}

.lower-hero__character-marks {
  top: 8.5px;
  left: 15px;
  width: 15px;
  height: 12.09px;
}

.lower-hero__heading {
  position: relative;
  z-index: 1;
  width: min(576px, 100%);
  margin-inline: auto;
  text-align: center;
}

.lower-hero__eyebrow {
  /* All six PC frames place the 191px eyebrow box 5.5px right of the title center. */
  padding-left: 11px;
  color: var(--bc-green);
  font-family: var(--bc-font-serif);
  font-size: 1.6rem;
  line-height: 24px;
}

.lower-hero h1 {
  margin-top: 8px;
  color: var(--bc-brown);
  font-family: var(--bc-font-mincho);
  font-size: 4rem;
  font-weight: 400;
  line-height: 64px;
  letter-spacing: 0;
}

.lower-section-title p {
  color: var(--bc-green);
  font-family: var(--bc-font-serif);
  font-size: 1.6rem;
  line-height: 24px;
}

.lower-section-title h2 {
  margin-top: 8px;
  font-family: var(--bc-font-mincho);
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 32px;
}

.lower-breadcrumb {
  width: min(var(--bc-content), calc(100% - 48px));
  margin: 56px auto 24px;
}

.lower-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  min-height: 32px;
  font-size: 1.4rem;
  line-height: 32px;
}

.lower-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.lower-breadcrumb li:not(:first-child) {
  font-size: 1.6rem;
  line-height: 28px;
}

.lower-breadcrumb--compact-current li:not(:first-child) {
  font-size: inherit;
  line-height: inherit;
}

.lower-breadcrumb li:first-child > a { min-width: 28px; }

.lower-breadcrumb li:not(:last-child)::after {
  display: block;
  flex: none;
  width: 5px;
  height: 9px;
  /* Figma's 4px vector has a centered 1px stroke outside its layout bounds. */
  margin-inline: -0.5px;
  background: var(--bc-green);
  mask: url("../../assets/images/icons/arrow-mini.svg") center / contain no-repeat;
  content: "";
}

.lower-breadcrumb a {
  color: var(--bc-green);
}

.lower-breadcrumb [aria-current="page"] {
  color: var(--bc-brown);
}

.lower-cta-cards {
  display: grid;
  grid-template-columns: 704px 496px;
  gap: 24px;
  width: min(var(--bc-content), calc(100% - 48px));
  margin: 0 auto 40px;
}

.lower-cta-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 297px;
  padding: 40px;
  color: #fff;
  border-radius: 8px;
  transition: background-color 180ms ease;
}

.lower-cta-card--entry {
  --bc-entry-angle: 109.2335deg;
  --lower-cta-arrow: #ee6d6b;
  background: var(--bc-entry-gradient);
}

.lower-cta-card--jobs {
  background: var(--bc-green);
}

.lower-cta-card__icon {
  position: relative;
  display: block;
  width: 40px;
  height: 40px;
}

.lower-cta-card__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lower-cta-card__icon--entry img {
  position: absolute;
  top: 4.9609px;
  left: 1.25px;
  width: 36.8523px;
  height: 30.6234px;
}

.lower-cta-card__copy {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px 16px;
}

.lower-cta-card__copy strong {
  font-family: var(--bc-font-mincho);
  font-size: 3.2rem;
  font-weight: 500;
  line-height: 32px;
}

.lower-cta-card__copy small {
  grid-column: 1 / -1;
  font-family: var(--bc-font-serif);
  font-size: 1.6rem;
  line-height: 24px;
}

.lower-cta-card__arrow,
.lower-job-card__arrow {
  display: grid;
  place-items: center;
  border-radius: 4px;
  font-family: Arial, sans-serif;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
}

.lower-cta-card__arrow {
  align-self: flex-end;
  width: 40px;
  height: 40px;
  margin-top: auto;
  color: var(--lower-cta-arrow, var(--bc-green));
  background: #fff;
}

.lower-cta-card--banner {
  --bc-entry-angle: 133.0654deg;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 40px;
  align-items: center;
  gap: 16px;
  min-height: 160px;
  padding: 32px 40px 32px 80px;
}

.lower-cta-card--banner .lower-cta-card__arrow {
  align-self: center;
  margin-top: 0;
}

.lower-cta-card__note {
  font-size: 1.6rem;
  line-height: 32px;
}

.lower-cta-card--jobs:focus-visible { background: #3a904a; }

@media (hover: hover) and (pointer: fine) {
  .lower-cta-card--jobs:hover { background: #3a904a; }
}

.lower-job-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 162px;
  padding: 32px 63px;
  border: 1px solid var(--bc-border);
  border-radius: 8px;
  background: #fff;
  transition: border-color 180ms ease;
}

.lower-job-card__body {
  display: grid;
  flex: 1;
  min-width: 0;
  max-width: 744px;
  gap: 16px;
}

.lower-job-card__title {
  color: var(--bc-brown);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 36px;
  overflow-wrap: anywhere;
  transition: color 180ms ease;
}

.lower-job-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lower-job-card__tags span {
  max-width: 100%;
  padding: 8px 16px;
  color: var(--bc-brown);
  background: var(--bc-green-pale);
  border-radius: 999px;
  font-size: 1.4rem;
  line-height: 14px;
  text-align: center;
  overflow-wrap: anywhere;
}

.lower-job-card__arrow {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  margin-left: 24px;
  color: #fff;
  background: var(--bc-green);
  transition: background-color 180ms ease, color 180ms ease;
}

.lower-job-card:focus-visible { border-color: var(--bc-green); }
.lower-job-card:focus-visible .lower-job-card__title { color: var(--bc-green); }
.lower-job-card:focus-visible .lower-job-card__arrow { color: var(--bc-green); background: var(--bc-green-pale); }
@media (hover: hover) and (pointer: fine) {
  .lower-job-card:hover { border-color: var(--bc-green); }
  .lower-job-card:hover .lower-job-card__title { color: var(--bc-green); }
  .lower-job-card:hover .lower-job-card__arrow { color: var(--bc-green); background: var(--bc-green-pale); }
}

.lower-job-card--compact {
  align-items: flex-start;
  min-height: 62px;
  padding: 16px 0 11px;
  border-width: 0 0 1px;
  border-radius: 0;
}

.lower-job-card--compact .lower-job-card__body {
  display: flex;
  max-width: none;
  align-items: flex-start;
  gap: 11px;
}

.lower-job-card--compact .lower-job-card__tags {
  order: -1;
  flex: none;
}

.lower-job-card--compact .lower-job-card__title {
  /* The design aligns the 32px title line 2px below the 30px employment pill. */
  margin-top: 2px;
  flex: 1;
  max-width: 576px;
  font-size: 1.6rem;
  line-height: 32px;
}

.lower-job-card--compact .lower-job-card__tags span:not(:first-child) {
  display: none;
}

.lower-job-card--compact .lower-job-card__arrow {
  --bc-arrow-image: url("../../assets/images/icons/arrow-mini.svg");
  --bc-arrow-width: 5px;
  --bc-arrow-height: 9px;
  flex-basis: 24px;
  width: 24px;
  height: 24px;
  margin-top: 6px;
}

.lower-pagination {
  margin-top: 48px;
}

.lower-pagination > .page-numbers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.lower-pagination li > * {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 4px 12px;
  border: 1px solid var(--bc-green);
  border-radius: 4px;
  transition: color 180ms ease, background-color 180ms ease;
}

.lower-pagination .current {
  color: #fff;
  background: var(--bc-green);
}

.lower-pagination a:focus-visible {
  color: #fff;
  background: var(--bc-green);
}

@media (hover: hover) and (pointer: fine) {
  .lower-pagination a:hover {
    color: #fff;
    background: var(--bc-green);
  }
}

.lower-empty-state {
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 48px 24px;
  border: 1px solid var(--bc-border);
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.lower-pdf-button__icon svg {
  display: block;
  width: 20px;
  height: 18px;
}

.lower-footer-wave {
  position: relative;
  z-index: 1;
  height: 120px;
  margin-top: 0;
  /* Contain the artwork below the wave without leaking into the footer. */
  overflow: clip;
}

/* Extend the footer color under the SVG edge at fractional device pixels.
   This 1px paint overlap leaves the wave, footer position and spacing unchanged. */
main:has(.lower-footer-wave) + .site-footer {
  box-shadow: 0 -1px var(--bc-green);
}

.lower-footer-wave__shape {
  position: absolute;
  /* Figma places the wave in front, masking the characters along its curve. */
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 120px;
  transform: scaleX(-1);
}

.lower-footer-wave__characters {
  position: absolute;
  z-index: 1;
  top: 28px;
  left: calc(50% + 40.5px);
  width: 159px;
  height: 124px;
  transform: translateX(-50%);
}

.lower-footer-wave__character-marks {
  position: absolute;
  z-index: 2;
  top: 35.5px;
  left: calc(50% - 33px);
  width: 15px;
  height: 12.093px;
}

/* Crop the decorative PC wave at its native 1440 x 120 ratio on intermediate widths. */
@media (min-width: 600px) and (max-width: 1439px) {
  .lower-footer-wave__shape {
    left: 50%;
    right: auto;
    width: 1440px;
    max-width: none;
    transform: translateX(-50%) scaleX(-1);
  }
}

@media (max-width: 1271px) {
  .lower-cta-cards {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

/* Tablet headings keep their own readable size between the supplied SP and PC designs. */
@media (min-width: 600px) and (max-width: 1199px) {
  .lower-hero {
    min-height: 318px;
    padding-block: 130px 108px;
  }

  .lower-hero h1 {
    font-size: 3.2rem;
    line-height: 48px;
  }

  .lower-hero__rings {
    /* Only the decorative image scales, reaching its native 1259px width at 1200px. */
    --lower-hero-rings-width: clamp(900px, calc(100vw + 59px), 1259px);
    top: calc(var(--lower-hero-rings-width) * -541 / 1259);
    width: var(--lower-hero-rings-width);
    height: auto;
  }
}

@media (max-width: 899px) {
  .lower-cta-cards {
    grid-template-columns: 1fr;
  }

  .lower-cta-card {
    min-height: 200px;
    padding: 32px;
  }

  .lower-cta-card--banner {
    grid-template-columns: minmax(0, 1fr) 40px;
    min-height: 0;
    padding-inline: 40px;
  }

  .lower-cta-card--banner .lower-cta-card__note {
    grid-row: 2;
    grid-column: 1 / -1;
  }

  .lower-job-card:not(.lower-job-card--compact) {
    min-height: 144px;
    padding: 24px;
  }
}

@media (max-width: 599px) {
  .lower-hero {
    min-height: 292px;
    padding-block: 130px 106px;
  }

  .lower-hero__rings {
    /* Figma 410:136 includes 24px of blur around its 377.79 x 292 artwork. */
    top: -28px;
    left: calc(50% - 249.5px);
    width: 425.79px;
    height: 340px;
  }

  .lower-hero__characters {
    right: 24px;
    width: 140px;
    height: 70px;
  }

  .lower-hero__character {
    top: 0.7778px;
    width: 83.2222px;
    height: 93.3333px;
  }

  .lower-hero__character--hana { left: -3.8889px; }

  .lower-hero__character--hoshi { left: 59.1111px; }

  .lower-hero__character-marks {
    top: 6.6111px;
    left: 11.6667px;
    width: 11.6667px;
    height: 9.4056px;
  }

  .lower-hero__eyebrow { padding-left: 10px; }

  .lower-hero h1 {
    font-size: 2.4rem;
    line-height: 24px;
  }

  .lower-container,
  .lower-narrow-container,
  .lower-breadcrumb,
  .lower-cta-cards {
    width: min(100% - 48px, var(--bc-content));
  }

  .lower-breadcrumb {
    margin-top: 40px;
  }

  .lower-breadcrumb ol {
    font-size: 1.4rem;
  }

  .lower-breadcrumb li:not(:first-child) {
    font-size: inherit;
    line-height: inherit;
  }

  .lower-cta-card {
    gap: 16px;
    min-height: 200px;
    /* SP copy starts at24px; the bottom-right arrow uses the authored16px inset. */
    padding: 24px 16px 16px 24px;
  }

  .lower-cta-cards { gap: 16px; }
  .lower-cta-card--jobs { min-height: 160px; }
  .lower-cta-card--entry:not(.lower-cta-card--banner) { --bc-entry-angle: 103.5312deg; }

  .lower-cta-card__copy strong {
    font-size: 2rem;
    line-height: 30px;
  }

  .lower-cta-card__copy { grid-template-columns: 32px minmax(0, 1fr); row-gap: 8px; }
  .lower-cta-card__icon { width: 32px; height: 32px; }
  .lower-cta-card__icon--entry img { top: 4px; left: 1px; width: 29.482px; height: 24.499px; }
  .lower-cta-card--banner { min-height: 0; padding: 24px; }
  .lower-section-title h2 { font-size: 2rem; }

  .lower-cta-card__note { font-size: 1.4rem; }

  .lower-job-card:not(.lower-job-card--compact) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 32px;
    gap: 16px 12px;
    align-items: center;
    min-height: 0;
    padding: 24px 20px;
  }

  .lower-job-card:not(.lower-job-card--compact) .lower-job-card__body {
    display: grid;
    gap: 12px;
  }

  .lower-job-card:not(.lower-job-card--compact) .lower-job-card__title {
    text-wrap: wrap;
  }

  .lower-job-card:not(.lower-job-card--compact) .lower-job-card__arrow {
    grid-column: 2;
    margin-left: 0;
  }

  .lower-job-card__title {
    font-size: 1.6rem;
    line-height: 32px;
  }

  .lower-job-card__tags {
    gap: 6px;
  }

  .lower-job-card__tags span {
    padding-inline: 12px;
    font-size: 1.2rem;
  }

  .lower-job-card__arrow {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
  }

  .lower-job-card--compact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px;
    column-gap: 16px;
    align-items: center;
    padding-block: 20px;
  }

  .lower-job-card--compact .lower-job-card__body {
    display: grid;
    grid-area: auto;
    gap: 8px;
  }

  .lower-job-card--compact .lower-job-card__tags {
    max-width: 100%;
  }

  .lower-job-card--compact .lower-job-card__title {
    margin-top: 0;
    font-size: 1.5rem;
    line-height: 28px;
  }

  /* Keep the arrow beside the whole job, including naturally wrapped titles. */
  .lower-job-card--compact .lower-job-card__arrow {
    grid-area: auto;
    align-self: center;
    margin-top: 0;
    margin-left: 0;
  }

  .lower-footer-wave { height: 90px; }
  .lower-footer-wave__shape { top: 10px; height: 80px; }

  .lower-footer-wave__characters {
    top: 0;
    right: 20px;
    left: auto;
    width: 120px;
    height: 94px;
    transform: none;
  }

  .lower-footer-wave__character-marks { display: none; }
}
