/* Refined Staff — Role Landing Pages & Hub */
.role-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 20px;
}
.role-crumb a {
  text-decoration: none;
  color: var(--ink-soft);
}
.role-crumb a:hover {
  color: var(--accent);
}
.role-hero {
  padding: 56px 0 64px;
  background:
    radial-gradient(840px 460px at 84% 10%, rgba(64, 54, 189, 0.055), transparent 65%),
    radial-gradient(620px 380px at 10% 18%, rgba(212, 186, 146, 0.10), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.role-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 48px;
  align-items: center;
}
.role-hero h1 {
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin: 0 0 20px;
}
.role-hero h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.role-hero-lead {
  font-size: clamp(17.5px, 1.45vw, 20px);
  color: var(--ink-soft);
  max-width: 58ch;
  margin: 0 0 26px;
}
.role-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}
.role-summary-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--accent-line);
  border-radius: 20px;
  padding: 32px 30px;
  box-shadow: var(--shadow-lg);
}
.role-summary-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, #7a70ec 100%);
}
.role-summary-card h2 {
  font-size: 20px;
  margin: 0 0 18px;
}
.role-kv {
  display: grid;
  gap: 14px;
  margin: 0;
}
.role-kv-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.role-kv-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.role-kv-row dt {
  font-size: 13.5px;
  color: var(--muted);
}
.role-kv-row dd {
  margin: 0;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.role-kv-row dd.accent {
  color: var(--accent);
}
.role-kv-row dd.ok {
  color: var(--ok);
}
.role-band {
  padding: 72px 0;
}
.role-band.alt {
  background: var(--surface-2);
  border-block: 1px solid var(--line);
}
.role-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  align-items: start;
}
.role-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.role-panel h2, .role-panel h3 {
  margin: 0 0 14px;
  font-size: 24px;
}
.role-panel p {
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.role-check-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.role-check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.role-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  width: 19px;
  height: 19px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}
.role-check-list strong {
  color: var(--ink);
}
.role-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  font-size: 15px;
}
.role-table th, .role-table td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.role-table th {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
}
.role-table td.num {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}
.role-table td.ok {
  color: var(--ok);
  font-weight: 700;
}
.role-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.role-hub-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.role-hub-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow);
}
.role-hub-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.role-hub-card h2 {
  margin: 0;
  font-size: 23px;
  color: var(--ink);
}
.role-hub-salary {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 99px;
  white-space: nowrap;
}
.role-hub-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}
.role-hub-cta {
  margin-top: auto;
  padding-top: 8px;
  color: var(--accent);
  font-weight: 650;
  font-size: 14.5px;
}
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.related-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 99px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}
.related-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
@media (max-width: 900px) {
  .role-hero-grid, .role-two-col, .role-hub-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .role-hero { padding: 38px 0 44px; }
  .role-band { padding: 48px 0; }
  .role-panel { padding: 24px 20px; }
}

/* Mobile role table polish */
.role-panel:has(.role-table) {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 680px) {
  .role-panel:has(.role-table) {
    padding: 18px 14px;
  }
  .role-table {
    font-size: 13px;
    table-layout: fixed;
    width: 100%;
  }
  .role-table th,
  .role-table td {
    padding: 10px 6px;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
  .role-table th {
    font-size: 10px;
    letter-spacing: 0.03em;
    line-height: 1.35;
  }
  .role-table th:nth-child(1),
  .role-table td:nth-child(1) { width: 32%; }
  .role-table th:nth-child(2),
  .role-table td:nth-child(2) { width: 25%; }
  .role-table th:nth-child(3),
  .role-table td:nth-child(3) { width: 23%; }
  .role-table th:nth-child(4),
  .role-table td:nth-child(4) { width: 20%; }
}
