/**
 * Careers landing + single job styles.
 * v1.0.0
 */

.ae-careers {
  --ae-j-red: #cc2229;
  --ae-j-black: #161616;
  --ae-j-grey: #f0f0f0;
  --ae-j-text: #222;
  --ae-j-muted: #666;
  --ae-j-max: 74rem;
}

.ae-careers__hero {
  background: var(--ae-j-black);
  color: #fff;
  text-align: center;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 clamp(2.75rem, 6vw, 4rem);
}

.ae-careers__hero-inner,
.ae-careers__landing-inner,
.ae-careers__layout {
  width: min(100% - 2rem, var(--ae-j-max));
  margin-inline: auto;
}

.ae-careers__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.ae-careers__eyebrow a {
  color: inherit;
  text-decoration: none;
}

.ae-careers__eyebrow a:hover {
  color: #fff;
  text-decoration: underline;
}

.ae-careers__title {
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  font-weight: 700;
}

.ae-careers__lede,
.ae-careers__meta {
  margin: 0 auto;
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  line-height: 1.55;
}

.ae-careers__badge {
  display: inline-block;
  margin: 1rem 0 0;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  font-weight: 700;
}

.ae-careers__body {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: #fff;
}

.ae-careers-list__heading {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  color: var(--ae-j-black);
}

.ae-careers-list__section {
  margin-bottom: 2.5rem;
}

.ae-careers-list__empty {
  color: var(--ae-j-muted);
  line-height: 1.55;
}

.ae-careers-list__cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.ae-careers-card {
  background: var(--ae-j-grey);
  border-radius: 12px;
  transition: background-color 0.18s ease;
}

.ae-careers-card:hover {
  background: #e6e6e6;
}

.ae-careers-card.is-closed {
  opacity: 0.78;
}

.ae-careers-card__link {
  display: block;
  padding: 1.2rem 1.35rem;
  color: inherit;
  text-decoration: none;
}

.ae-careers-card__title {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  color: var(--ae-j-black);
}

.ae-careers-card__meta,
.ae-careers-card__excerpt {
  margin: 0 0 0.5rem;
  color: var(--ae-j-muted);
  line-height: 1.45;
  font-size: 0.95rem;
}

.ae-careers-card__cta {
  color: var(--ae-j-red);
  font-weight: 700;
  font-size: 0.92rem;
}

.ae-careers__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 18rem);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.ae-careers__content {
  color: var(--ae-j-text);
  font-size: 1.02rem;
  line-height: 1.7;
}

.ae-careers__panel {
  background: var(--ae-j-grey);
  border-radius: 16px;
  padding: 1.35rem;
  position: sticky;
  top: 6rem;
}

.ae-careers__panel-title {
  margin: 0 0 0.85rem;
  font-size: 1.1rem;
}

.ae-careers__facts {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.ae-careers__facts strong {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ae-j-muted);
  margin-bottom: 0.15rem;
}

.ae-careers__apply {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  background: var(--ae-j-red);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
  text-align: center;
}

.ae-careers__apply:hover {
  background: #b01c22;
  color: #fff !important;
}

.ae-careers__apply--ghost {
  background: transparent;
  color: var(--ae-j-black) !important;
  border: 1px solid #ccc;
}

.ae-careers__apply-note {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--ae-j-muted);
  line-height: 1.4;
}

.ae-careers__qa {
  margin-top: 2.5rem;
}

.ae-careers__qa h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.ae-careers__qa-item {
  background: var(--ae-j-grey);
  border-radius: 12px;
  padding: 0.15rem 1.1rem;
  margin-bottom: 0.65rem;
}

.ae-careers__qa-item summary {
  cursor: pointer;
  list-style: none;
  padding: 0.95rem 0;
  font-weight: 700;
}

.ae-careers__qa-item summary::-webkit-details-marker {
  display: none;
}

.ae-careers__qa-item p {
  margin: 0 0 1rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .ae-careers__layout {
    grid-template-columns: 1fr;
  }

  .ae-careers__panel {
    position: static;
  }
}
