/* Careers — 05 Role matcher */

@keyframes cw-careers-match-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cw-careers-match {
  background: #141210;
  color: #f3efe7;
  font-family: 'Inter', system-ui, sans-serif;
  width: 100%;
  padding: clamp(64px, 8vw, 110px) clamp(20px, 4vw, 40px);
  box-sizing: border-box;
}

.cw-careers-match__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.cw-careers-match__head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 24px;
  align-items: end;
}

.cw-careers-match__head-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.cw-careers-match__eyebrow {
  margin: 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: #d4f53c;
}

.cw-careers-match__title {
  margin: 0;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.cw-careers-match__title-em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: #ff5527;
}

.cw-careers-match__lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(243, 239, 231, 0.7);
}

.cw-careers-match__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 16px;
}

.cw-careers-match__panel {
  border-radius: 28px;
  padding: clamp(22px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.cw-careers-match__panel--skills {
  border: 1px solid rgba(243, 239, 231, 0.14);
}

.cw-careers-match__panel--results {
  background: #f3efe7;
  color: #141210;
  gap: 12px;
}

.cw-careers-match__panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.cw-careers-match__panel-kicker {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #8e877c;
}

.cw-careers-match__skill-count {
  font-size: 13px;
  color: #a39c90;
}

.cw-careers-match__chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cw-careers-match__chip {
  border: 1px solid rgba(243, 239, 231, 0.22);
  background: transparent;
  color: #f3efe7;
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cw-careers-match__chip.is-active {
  border-color: #ff5527;
  background: #ff5527;
  color: #141210;
}

.cw-careers-match__years {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cw-careers-match__years-head {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.cw-careers-match__range {
  width: 100%;
  accent-color: #ff5527;
}

.cw-careers-match__results-kicker {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #5a534a;
}

.cw-careers-match__results {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cw-careers-match__card {
  border: 1px solid #cfc7ba;
  background: transparent;
  color: #141210;
  border-radius: 20px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  animation: cw-careers-match-in 0.35s ease;
  cursor: default;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.cw-careers-match__card--top {
  background: #141210;
  color: #f3efe7;
  border-color: #141210;
}

.cw-careers-match__card-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.cw-careers-match__card-title {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.cw-careers-match__card-why {
  font-size: 12.5px;
  opacity: 0.75;
}

.cw-careers-match__track {
  height: 5px;
  border-radius: 5px;
  background: #e2dcd0;
  overflow: hidden;
}

.cw-careers-match__card--top .cw-careers-match__track {
  background: rgba(243, 239, 231, 0.14);
}

.cw-careers-match__track-fill {
  display: block;
  height: 100%;
  background: #ff5527;
  transition: width 0.5s ease;
}

.cw-careers-match__card-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.cw-careers-match__score {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -0.03em;
  line-height: 1;
}

.cw-careers-match__apply {
  border: 1px solid #141210;
  background: transparent;
  color: inherit;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cw-careers-match__card--top .cw-careers-match__apply {
  border-color: rgba(243, 239, 231, 0.4);
}

.cw-careers-match__card:not(.cw-careers-match__card--top) .cw-careers-match__apply:hover,
.cw-careers-match__card:not(.cw-careers-match__card--top) .cw-careers-match__apply:focus-visible {
  background: #141210;
  color: #f3efe7;
  border-color: #141210;
}

.cw-careers-match__card--top .cw-careers-match__apply:hover,
.cw-careers-match__card--top .cw-careers-match__apply:focus-visible {
  background: #fff;
  color: #141210;
  border-color: #fff;
}

.cw-careers-match__empty {
  margin: 0;
  padding: 24px 0;
  color: #5a534a;
  font-size: 15px;
}

@media (prefers-reduced-motion: reduce) {
  .cw-careers-match__card {
    animation: none;
  }

  .cw-careers-match__track-fill {
    transition: none;
  }
}
