.careers-hero {
  display: grid;
  justify-items: start;
  gap: clamp(1rem, 2vw, 1.6rem);
  padding-block: clamp(4.5rem, 13dvh, 9rem) clamp(2.25rem, 4.5vw, 4rem);
}
.careers-hero h1 { font: 400 clamp(2.85rem, 6.45vw, 6rem)/1.05 var(--display); letter-spacing: -.035em; }
.careers-hero h1 span { display: block; }
.open-roles { padding-block-end: clamp(3rem, 6.4vw, 6.5rem); }
.careers-intro {
  max-width: 84ch;
  color: var(--secondary);
  font-size: clamp(1rem, 1.27vw, 1.19rem);
  line-height: 1.55;
  text-wrap: pretty;
}
.roles-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: clamp(.95rem, 1.25vw, 1.13rem);
  line-height: 1.35;
}
.roles-table :is(th, td) { text-align: start; font-weight: inherit; padding-inline: clamp(.75rem, 1.45vw, 1.4rem); }
.roles-table thead th {
  padding-block: .65rem;
  border-block-end: 1px solid var(--section-rule);
  color: var(--signal);
  font: 400 .8rem/1.35 var(--mono);
}
.roles-table thead th:last-child { width: 30%; }
.roles-table tbody tr { position: relative; border-block-end: 1px solid var(--rule); }
.roles-table tbody :is(th, td) { height: clamp(3.7rem, 5.65vw, 5rem); padding-block: .8rem; }
.roles-table td { color: var(--secondary); }
.roles-table .role-inactive :is(th, td) { color: color-mix(in srgb, var(--secondary) 86%, var(--paper)); }
.role-link::after { content: ""; position: absolute; inset: 0; }
.role-link:focus-visible { outline: none; }
.role-link:focus-visible::after { outline: 2px solid var(--signal); outline-offset: -2px; }
.role-marker {
  position: absolute;
  inset: 0 auto 0 0;
  width: .3rem;
  background: var(--signal);
  clip-path: inset(100% 0 0);
  pointer-events: none;
}
.roles-table tr:has(.role-link:focus-visible) :is(th, td) { color: var(--signal); }
.roles-table tr:has(.role-link:focus-visible) .role-marker { clip-path: inset(0); }
@media (hover: hover) {
  .roles-table tr:has(.role-link:hover) :is(th, td) { color: var(--signal); }
  .roles-table tr:has(.role-link:hover) .role-marker { clip-path: inset(0); }
}
.roles-table tr:has(.role-link:active) { background: var(--signal); }
.roles-table tr:has(.role-link:active) :is(th, td) { color: var(--paper); }

@media (max-width: 40rem) {
  .roles-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .roles-table tbody tr { display: grid; gap: .35rem; padding: .9rem 0; }
  .roles-table tbody :is(th, td) { display: block; height: auto; padding: 0; }
  .roles-table td { font-size: .85rem; }
  .role-marker { display: none; }
}
