.careers-heading + .open-roles {
  margin-block-start: 0;
}
/* Grid layouts draw the full-width divider between adjacent numbered sections. */
.careers-heading + .open-roles:not(.numbered) {
  border-block-start: 1px solid var(--line);
  padding-block-start: clamp(1.5rem, 3vw, 2.25rem);
}

.open-roles > h2 {
  margin-block-end: 1.5rem;
}
.role-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.role-row + .role-row {
  margin-block-start: .875rem;
}
.role-row {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid color-mix(in srgb, var(--line) 75%, var(--ink));
  border-radius: 4px;
  color: inherit;
  font: 400 1rem/1.45 var(--sans);
}
.role-row::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  background: linear-gradient(100deg, color-mix(in srgb, var(--ink) 7%, transparent), color-mix(in srgb, var(--ink) 4%, transparent));
  opacity: var(--row-highlight, 0%);
  pointer-events: none;
}
.role-row:focus-within { --row-highlight: 100%; }
@media (hover: hover) and (pointer: fine) {
  .role-row:hover { --row-highlight: 100%; }
}
.role-summary h3 {
  font: 500 clamp(1.125rem, 1.7vw, 1.5rem)/1.25 var(--sans);
  letter-spacing: -.02em;
}
.role-meta {
  display: block;
  margin-block-start: .375rem;
  color: var(--muted);
  font-size: .9375rem;
}
.role-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  min-height: 2.75rem;
  padding: .5rem 1.125rem;
  border: 1px solid color-mix(in srgb, var(--ink) var(--row-highlight, 0%), var(--muted));
  border-radius: 999px;
  font-size: .9375rem;
  line-height: 1.4;
  color: color-mix(in srgb, var(--paper) var(--row-highlight, 0%), var(--ink));
  background-color: color-mix(in srgb, var(--ink) var(--row-highlight, 0%), transparent);
  text-decoration: none;
  white-space: nowrap;
}
/* Keep the full row clickable with a single keyboard stop on the button. */
.role-action::after {
  content: "";
  position: absolute;
  inset: 0;
}
.role-action:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: no-preference) {
  .role-row::before { transition: opacity 200ms ease-out; }
  .role-action { transition: background-color 180ms ease-out, border-color 180ms ease-out, color 180ms ease-out; }
}
.careers-note { margin-block-start: clamp(2rem, 4vw, 3rem); }
.careers-note h3 {
  margin-block-end: .35rem;
  font: 500 1.125rem/1.4 var(--sans);
}
.careers-note p { font-size: var(--text-body); }
@media (max-width: 650px) {
  .role-row { grid-template-columns: minmax(0, 1fr); }
  .role-action { justify-self: start; }
}
