/* Careers layout: page-specific overrides, shared header and footer untouched. */
.x-careers {
  --cr-link: #0a539c;
  --cr-gap: clamp(.875rem, 2vw, 1.5rem);
  --cr-copy: clamp(.9375rem, .87rem + .22vw, 1.0625rem);
}
.x-careers .x-section { padding-block: clamp(2.75rem, 5.4vw, 5rem); }
.x-careers h1,
.x-careers h2,
.x-careers h3 { text-wrap: balance; overflow-wrap: anywhere; }
.x-careers h2 { margin: 0 0 .75rem; }
.x-careers .x-eyebrow { margin: 0 0 .625rem; }
.x-careers :is(.cr-support-heading, .cr-benefit-title-col) > p:not(.x-eyebrow),
.x-careers :is(.cr-openings-lede, .cr-notice p, .cr-end p:not(.x-eyebrow)) {
  max-width: 66ch;
  font-size: var(--cr-copy);
  line-height: 1.6;
}
.x-careers .cr-hero {
  padding-block: clamp(2rem, 5vw, 4.25rem) clamp(3rem, 6vw, 5rem);
}
.x-careers .cr-hero-grid {
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: clamp(1.5rem, 5vw, 4rem);
}
.x-careers .cr-hero h1 { font-size: clamp(2.125rem, 1.4rem + 3vw, 3.75rem); }
.x-careers .cr-hero p:not(.x-eyebrow) { font-size: var(--cr-copy); line-height: 1.65; }
.x-careers .cr-actions { gap: .75rem 1.25rem; }
.x-careers .x-btn {
  min-height: 2.875rem;
  padding: .55rem 1.15rem;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  font-size: .9375rem;
}
.ecc-custom-preview .x-careers .cr-actions .x-btn { background: var(--cr-link); }
.ecc-custom-preview .x-careers .x-link-arrow { color: var(--cr-link); }
.x-careers .x-link-arrow { min-height: 2.75rem; font-size: .9375rem; }

/* Icon cards borrow the live page's centered illustrations and blue panels. */
.x-careers .cr-support-heading { display: block; margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.x-careers .cr-support-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--cr-gap); }
.x-careers .cr-support-grid article {
  background: #def3fc;
  border: 1px solid #cae8f5;
  padding: clamp(1.125rem, 2.35vw, 2rem) clamp(.875rem, 1.8vw, 1.5rem);
  text-align: center;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.x-careers .cr-support-grid .cr-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  margin: 0 auto 1rem;
  padding: .4rem;
  background: white;
}
.x-careers .cr-support-grid .cr-icon img { width: 100%; height: 100%; object-fit: contain; }
.x-careers .cr-support-grid h3,
.x-careers .cr-job h3 { font-size: clamp(1.125rem, .95rem + .4vw, 1.375rem); }
.x-careers .cr-support-grid p { font-size: var(--cr-copy); line-height: 1.55; color: #304a60; }

/* Portrait cards follow the original composition. The upper and lower
   crops omit the baked-in text so the banner uses real HTML. */
.x-careers .cr-openings,
.x-careers #opportunities { scroll-margin-top: calc(var(--ecc-header-height, 5rem) + 1rem); }
.x-careers .cr-job-grid {
  display: grid;
  grid-template-columns: minmax(0, 24rem);
  justify-content: center;
  gap: var(--cr-gap);
}
.x-careers .cr-job-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: clamp(.875rem, 1.2vw, 1.25rem);
  border: 1px solid #c1d5e4;
  overflow: hidden;
  background: #103b5a;
  box-shadow: 0 2px 5px rgba(7,26,45,.12), 0 11px 24px rgba(7,26,45,.17);
  transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}
.x-careers .cr-job-photo {
  position: relative;
  flex: none;
  overflow: hidden;
  background: #163d58;
}
.x-careers .cr-job-photo-top { aspect-ratio: 1.42; }
.x-careers .cr-job-photo-tail { aspect-ratio: 9; }
.x-careers .cr-job-photo img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform-origin: center top;
  transition: transform .35s ease;
}
/* Center this clean portrait to keep the face, hands and laptop in the upper crop. */
.x-careers .cr-job--remote .cr-job-photo-top img { object-position: center; }
.x-careers .cr-job-photo-tail img {
  object-position: center bottom;
  transform-origin: center bottom;
}
.x-careers .cr-job-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  padding: clamp(.95rem, 1.65vw, 1.4rem) .75rem;
  text-align: center;
  background: linear-gradient(110deg, #104570 0%, #14658d 100%);
  color: white;
  border-top: 1px solid rgba(255,255,255,.22);
}
.ecc-custom-preview .x-careers .cr-job-info h3 { color: white; }
.x-careers .cr-job-info h3 { font-size: clamp(1.125rem, .87rem + .5vw, 1.375rem); }
.x-careers .cr-job-info p {
  color: #edf7fd;
  font-size: var(--cr-copy);
  line-height: 1.45;
  margin-bottom: .5rem;
}
.x-careers .cr-job-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 2.75rem;
  max-width: 100%;
  margin-top: auto;
  padding: .375rem 1rem;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 999px;
  background: white;
  color: #0c4a79;
  font-size: .9375rem;
  line-height: 1.3;
  font-weight: 700;
  transition: color .22s ease, background-color .22s ease;
}
.x-careers .cr-job-board { margin-top: 1rem; text-align: center; }

.x-careers .cr-benefit-grid {
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: clamp(1.5rem, 5vw, 4rem);
}
.x-careers .cr-benefit summary {
  color: var(--cr-link);
  transition: background-color .18s ease;
}
.x-careers .cr-benefit summary:focus-visible {
  outline: 2px solid var(--cr-link);
  outline-offset: -3px;
  background: var(--ec-soft);
}
.x-careers .cr-benefit > p { font-size: var(--cr-copy); }
.x-careers .cr-plus { flex: 0 0 1em; text-align: center; color: var(--cr-link); }
.x-careers .cr-plus::before { content: "+"; }
.x-careers .cr-benefit[open] .cr-plus { transform: none; }
.x-careers .cr-benefit[open] .cr-plus::before { content: "−"; }
.x-careers .cr-end h2 { margin: 0 0 .75rem; }

.x-careers .cr-job-link:focus-visible .cr-job-action {
  background: #e3f4ff;
  color: #07385a;
}
@media (hover: hover) and (pointer: fine) {
  .x-careers .cr-support-grid article:hover { border-color: #6ab7df; }
  .x-careers .cr-job-link:hover {
    transform: translateY(-4px);
    border-color: #6ab7df;
    box-shadow: 0 3px 7px rgba(7,26,45,.14), 0 18px 34px rgba(7,26,45,.23);
  }
  .x-careers .cr-job-link:hover .cr-job-photo img { transform: scale(1.035); }
  .x-careers .cr-job-link:hover .cr-job-action { background: #e3f4ff; color: #07385a; }
}
@media (max-width: 56em) {
  .x-careers .cr-hero-grid, .x-careers .cr-benefit-grid { grid-template-columns: minmax(0, 1fr); }
  .x-careers .cr-support-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .x-careers .cr-photo-wrap { height: clamp(14rem, 60vw, 24rem); }
  .x-careers .cr-photo-note { left: .75rem; bottom: -.75rem; max-width: calc(100% - 1.5rem); }
  .x-careers .cr-end-grid { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
@media (max-width: 34em) {
  .x-careers .cr-support-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .x-careers .cr-job-link:hover, .x-careers .cr-job-link:hover .cr-job-photo img,
  .x-careers .cr-support-grid article:hover, .x-careers .x-btn:hover { transform: none; }
  .x-careers .x-btn::after { display: none; }
}
