/* Shared role index and simple role detail pages */

.container {
  max-width: 1128px;
  padding: 0 max(1.25rem, 20px);
  margin: 0 auto;
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.role-card {
  display: block;
  padding: 24px;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition:
    box-shadow 0.15s var(--ease),
    transform 0.15s var(--ease);
}

.role-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.role-card--featured {
  border-color: var(--color-primary);
}

.role-card h3 {
  margin: 0 0 8px;
  color: var(--color-navy);
}

.role-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 15px;
}

.role-card__badge {
  display: inline-block;
  margin-top: 8px;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.role-detail {
  max-width: 760px;
}

.role-detail h2 {
  margin-top: 40px;
  color: var(--color-navy);
}

.role-detail ul {
  padding-left: 20px;
}

.role-detail li {
  margin-bottom: 8px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
}

.pill {
  padding: 6px 12px;
  color: var(--color-primary-dark);
  font-size: 14px;
  font-weight: 600;
  background: var(--color-surface-2);
  border-radius: 999px;
}

.faq dt {
  margin-top: 16px;
  color: var(--color-navy);
  font-weight: 700;
}

.faq dd {
  margin: 4px 0 0;
  color: var(--color-muted);
}

.hero--simple {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--color-surface) 0%, #fff 100%);
}

.hero--simple h1 {
  margin: 0 0 16px;
  color: var(--color-navy);
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
}

/* Ensure a single column on very small phones */
@media (max-width: 360px) {
  .roles-grid {
    grid-template-columns: 1fr;
  }
}

/* Slightly reduce card padding on mobile to give text more room */
@media (max-width: 480px) {
  .role-card {
    padding: 18px;
  }
}
