/* Team page — Squad builder (05) */

@keyframes cw-teams-squad-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

.cw-teams-squad__inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 44px);
}

.cw-teams-squad__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.cw-teams-squad__head-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 720px;
}

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

.cw-teams-squad__title {
  margin: 0;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(38px, 4.6vw, 62px);
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.cw-teams-squad__title-em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: #d4f53c;
}

.cw-teams-squad__aside {
  margin: 0;
  max-width: 400px;
  font-size: 15px;
  line-height: 1.65;
  color: #a39c90;
}

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

.cw-teams-squad__form {
  border: 1px solid rgba(243, 239, 231, 0.14);
  border-radius: 28px;
  padding: clamp(22px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cw-teams-squad__field {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.cw-teams-squad__field-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #8e877c;
  padding: 0;
}

.cw-teams-squad__options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cw-teams-squad__opt {
  border: 1px solid rgba(243, 239, 231, 0.22);
  background: transparent;
  color: #f3efe7;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cw-teams-squad__opt:hover,
.cw-teams-squad__opt:focus-visible {
  border-color: rgba(243, 239, 231, 0.45);
}

.cw-teams-squad__opt.is-active {
  background: #d4f53c;
  color: #141210;
  border-color: #d4f53c;
}

.cw-teams-squad__reset {
  align-self: flex-start;
  border: 0;
  background: transparent;
  color: #8e877c;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: color 0.2s ease;
}

.cw-teams-squad__reset:hover,
.cw-teams-squad__reset:focus-visible {
  color: #f3efe7;
}

.cw-teams-squad__result {
  background: #d4f53c;
  color: #141210;
  border-radius: 28px;
  padding: clamp(22px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.cw-teams-squad__result-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.cw-teams-squad__metrics {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.cw-teams-squad__metric {
  display: flex;
  flex-direction: column;
}

.cw-teams-squad__metric-value {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(56px, 6vw, 84px);
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.cw-teams-squad__metric-label {
  font-size: 14px;
  font-weight: 600;
}

.cw-teams-squad__roles {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cw-teams-squad__role {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background: rgba(20, 18, 16, 0.08);
  border-radius: 14px;
  padding: 10px 14px;
  animation: cw-teams-squad-in 0.35s both;
}

.cw-teams-squad__role-name {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 600;
  font-size: 15px;
}

.cw-teams-squad__role-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #141210;
  flex-shrink: 0;
}

.cw-teams-squad__role-seats {
  display: flex;
  gap: 4px;
}

.cw-teams-squad__role-seat {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #141210;
}

.cw-teams-squad__foot {
  margin-top: auto;
  border-top: 1px solid rgba(20, 18, 16, 0.2);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.cw-teams-squad__careers {
  font-size: 14px;
  font-weight: 600;
  color: inherit;
  border-bottom: 1px solid #141210;
  padding-bottom: 2px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.cw-teams-squad__careers:hover,
.cw-teams-squad__careers:focus-visible {
  opacity: 0.7;
}

.cw-teams-squad__estimate {
  border: 0;
  background: #141210;
  color: #f3efe7;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 20px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease;
}

.cw-teams-squad__estimate:hover,
.cw-teams-squad__estimate:focus-visible {
  background: #ff5527;
  color: #141210;
}

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