concurring in part and dissenting in part: I respectfully dissent from the majority opinion on two issues. Specifically, I would hold: (1) The district court’s admission of Damien Thompson’s preliminary hearing testimony violated Sidney Gleason’s constitutional right to confront witnesses, and (2) the district court abused its discretion when it denied Gleason’s motion for a mistrial. These errors require reversal of Gleason’s convictions for capital murder, aggravated kidnapping, and criminal possession of a firearm, but not Gleason’s conviction for aggravated robbery.
Confrontation Clause Violation
The United States Supreme Court has repeatedly emphasized that “[t]here are few subjects, perhaps, upon which [the United States Supreme] Court and other courts have been more nearly unanimous than in their expressions of belief that the right of confrontation and cross-examination is an essential and fundamental requirement for the land of fair trial which is this country’s constitutional goal.” Pointer v. Texas, 380 U.S. 400, 405, 85 S. Ct. 1065, 13 L. Ed. 2d 923 (1965). The right encompasses not only “testing the recollection and sifting the conscience of the witness” through cross-examination, but also compelling the witness “to stand face to face with the jury in order that they may look at [the witness], and judge by [the witness’] demeanor upon the stand and the manner in which [the witness] gives his testimony whether [the witness] is worthy of belief.” Mattox v. United States, 156 U.S. 237, 242-43, 15 S. Ct. 337, 39 L. Ed. 409 (1895); see Barber v. Page, 390 U.S. *1200719, 725, 88 S. Ct. 1318, 20 L. Ed. 2d 255 (1968) (“The right to confrontation is basically a trial right. It includes both the opportunity to cross-examine and the occasion for the jury to weigh the demeanor of the witness.”)'
To fulfill tírese objectives and uphold the Constitution, the State must make a good-faith effort and exercise reasonable diligence to obtain in-person trial testimony of all its witnesses. If a witness is unavailable—either because he or she is physically absent, asserts a privilege, is disqualified as a witness, or refuses to testify—and the State wants a jury to hear the preliminary hearing testimony of the witness, the State must establish that in-person testimony cannot be obtained despite the State’s good-faith effort and reasonable diligence. See Hardy v. Cross, 565 U.S. __, 132 S. Ct. 490, 494, 181 L. Ed. 2d 468 (2011) (citing California v. Green, 399 U.S. 149, 189, n.22, 90 S. Ct. 1930, 26 L. Ed. 2d 489 [1970] [Harlan, J., concurring]); State v. Flournoy, 272 Kan. 784, 799-802, 36 P.3d 273 (2001); State v. Washington, 206 Kan. 336, 338, 479 P.2d 833 (1971); see also K.S.A. 60-459(g) (defining “ ‘[unavailable as a witness’ ”).
In this case, the district court was not asked to and did not determine whether the State met this burden. Although the majority does not discuss the standard of review, a failure to apply the correct legal standard is error, even under the most deferential of standards. State v. Ward, 292 Kan. 541, 550, 256 P.3d 801 (2011), cert. denied 132 S. Ct. 1594 (2012). Further, the failure resulted in reversible error because the State failed to meet its burden and the error affected the jury verdict.
Early in the proceedings, the State gave away the most effective tool it had to enforce Thompson’s agreement to testify at all proceedings against Gleason when the prosecutor asked the district court to sentence Thompson immediately after Gleason’s preliminary hearing rather than asking that sentencing be delayed until Thompson fulfilled the plea agreement by testifying at Gleason’s trial. At the sentencing hearing, the State met its final obligation under the plea agreement by not asking the court to impose a hard 50 life sentence for the premeditated first-degree murder of Mile-*1201iala Martinez, the only charge against Thompson that remained after the State dismissed all other counts as agreed.
The State’s voluntary rush to fulfill its obligations before it was known whether Thompson would fully perform his part of the plea agreement is analogous to consummating the sale of a car by handing the purchaser the car keys, telling him to enjoy the car, and asking him to come back in a couple of years with enough cash to pay for the car. A seller who wanted to ensure payment would hold onto the car keys until the cash was in hand. Here, the State handed Thompson the keys without full payment.
Thompson, therefore, likely believed he had nothing to lose when he walked into the courtroom for Gleason’s trial approximately 2½ years later and refused to testify to anything of substance. His refusal was predictable, and when the predictable outcome became reality, the prosecutor had few tools remaining. One available tool was to have Thompson’s attorney warn Thompson of the consequences of violating the plea agreement. But the prosecutor did not attempt to use this tool. Instead, Gleason’s counsel was the one who suggested Thompson’s attorney needed to be present, and the district court agreed. Even then, the prosecutor indicated there was no need for this, stating he had talked to Thompson’s attorney the night before and Thompson’s attorney had said that his client did not want him there. Nevertheless, Thompson’s counsel was called; he travelled from Wichita to Great Bend and spoke to Thompson, warning him the State might seek to revoke the plea agreement and seek the death penalty. When Thompson still refused to testify, the State asked tire judge to order Thompson to testify and to hold him in contempt if he refused.
At that point, Gleason’s defense counsel urged the court to give Thompson the opportunity to ponder his attorney’s recent warning about the potential reinstatement of the death penalty and to bring Thompson back to court the next day to allow him to purge his contempt. With the renewed possibility of a death sentence, there was a huge incentive for Thompson to change his mind and a reasonable chance he would do so. After all, according to the prosecutor, Thompson had been willing to testify the night before when his attorney had talked to him. This means that Thompson either *1202misled his attorney or changed his mind overnight. If he had changed his mind, it seems possible—even probable—he could change his mind again.
Delaying the ruling on whether Thompson was an unavailable witness until the next morning would have been a minimal burden on the State, the court, and the juiy. When Gleason’s counsel asked for the delay, he pointed out that it was 3 p.m. and court would “be recessing in a couple [of] hours.”
Instead of agreeing to bring Thompson back the next morning, which might have resulted in Thompson’s in-person testimony, the prosecutor insisted the trial continue without delay because the parties were “in the middle of a trial.” The prosecutor asserted, “[W]e have got to go on and we’ve got to continue with the rest of the witnesses. We can’t just wait in the wings, and that’s essentially what [defense counsel] is wanting you to do, and that’s just not necessaiy here. It’s sufficient for the record that we have established.”
This position minimized the importance of the constitutional right of confrontation and evidenced the State’s complacent, rather than diligent, approach to ensuring Thompson’s in-person testimony. Given these circumstances, I would not accept, as does the majority, that the prosecutor was reasonably diligent when he merely asked the district court to order Thompson to answer questions and to hold him in contempt if he refused.
The majority reasons that the prosecutor had done as much or more to obtain Thompson’s testimony as had been done in other cases, and the district court had taken the additional step of arranging for Thompson to speak to his attorney. In light of the constitutional right at stake and the penalty that Gleason faced, failing to utilize such a simple, straightforward, and low-burden step toward a fair trial is troubling. Even more troubling is the position of the State as expressed in its brief before this court in which it argued: “The situation facing the district court was no different” than that in State v. Jefferson, 287 Kan. 28, 194 P.3d 557 (2008), and State v. Terry, 202 Kan. 599, 451 P.2d 211 (1969), because “Thompson plainly and unequivocally refused to testify, even after consulting with counsel and considering the potential ramifica*1203tions.” Like the prosecutor at trial, the State appears to perceive it has only a minimal burden and need only make a record that the witness has refused to answer questions after being held in contempt, even if no opportunity has been given to purge that contempt.
The majority’s holdings and the State’s arguments imply there is a checklist of actions that equate to reasonable diligence. This position is contrary to the decisions of federal courts and other state courts when applying the Confrontation Clause of the Sixth Amendment to the United States Constitution. Significantly, the Tenth Circuit Court of Appeals, in reversing this court’s holding that a physically absent witness was unavailable for Confrontation Clause purposes, held the “evaluation of reasonableness or good-faith effort ‘requires us to consider all the circumstances rather than to apply a per se rule.’ ” Cook v. McKune, 323 F.3d 825, 835 (10th Cir. 2003) (quoting Martinez v. Sullivan, 881 F.2d 921, 924 [10th Cir. 1989]). As a result, a court errs if it declares a witness unavailable simply because the State did as much or more as had been done in another situation. Rather, a court determining whether the prosecution has made a reasonable, good-faith effort to secure a witness’ testimony at trial must conduct a context- and fact-specific analysis. Brooks v. United States, 39 A.3d 873, 883 (D.C. 2012); see Cook, 323 F.3d at 835-40.
To assist in evaluating whether the State has acted with reasonable diligence and made a good-faith effort to obtain a witness’ in-person trial testimony, courts have identified four factors: (1) whether the testimony is crucial to the State’s case or goes to minor, collateral, or uncontested matters; (2) the severity of the crime for which the defendant is on trial; (3) whether the witness has a special reason to favor the prosecutor, such as an immunity agreement for cooperation; and (4) whether the State made the same effort to secure the witness’ testimony as it would have made if the State did not have prior testimony of that witness available to present at trial. E.g., 323 F.3d at 835-36. An application of these factors in this case reveals the State did not make a good-faith effort or exercise reasonable diligence.
*1204As to the first factor, the Tenth Circuit indicated “the more crucial tire witness, the greater the effort required to secure his attendance.” 323 F.3d at 835. Other courts have also emphasized the importance of allowing the jury to assess the credibility of a witness increases if the witness’ testimony is critical to the case, and “[i]t is axiomatic that ‘[d]emeanor is of the utmost importance in the determination of credibility of a witness.’ Gov’t of the Virgin Is. v. Aquino, 378 F.2d 540, 548 (3d Cir. 1967).” Brooks, 39 A.3d at 884. In-person testimony is tire most effective means for a jury to assess a witness’ demeanor, offering the opportunity to observe “ ‘the quality, age, education, understanding, behavior, and inclinations of the witness.’ ” United States v. Yida, 498 F.3d 945, 950 (9th Cir. 2007) (quoting 3 William Blackstone, Commentaries 373-74 [1768]). In contrast, “[t]ranscripts of a witness’s prior testimony, even when subject to prior cross-examination, do not offer any such advantage, because ‘all persons must appear alike, when their [testimony] is reduced to writing.’ ” 498 F.3d at 950 (quoting 3 Blackstone, Commentaries 374).
In this case, this first factor weighs strongly in favor of a determination that the State needed to make a significant effort because Thompson’s testimony was crucial to the State’s case. Scant other evidence implicated Gleason in the crimes related to the double homicide and kidnapping, and no other evidence established that he possessed a gun. The other evidence linking Gleason to the double homicicle and kidnapping provided no details relating to the elements of the crimes. Brittany Fulton testified Gleason had threatened that “if somebody tells the cops something, people are going to disappear.” Additionally, Great Bend Police Officer Pleather Smith saw Thompson’s car near Martinez’ home just before the shooting, a neighbor saw two men shove Martinez into the car, and Thompson’s ex-girlfriend testified Thompson and Gleason left and returned home together the night Martinez disappeared. Further, the State linked Gleason to shoes stained with Martinez’ blood.
Nevertheless, only Thompson identified the shoes as Gleason’s, and his testimony (1) established Gleason’s actual participation in the double homicide and aggravated kidnapping, (2) identified *1205Gleason as the one who shot Darren Wornkey, (3) placed the .22 caliber revolver in Gleason’s hands, and (4) provided evidence of Gleason’s intent to kill Martinez by testifying Gleason walked toward Martinez with his gun pointed at her as if he was going to shoot her. If Thompson’s testimony regarding these details had not been admitted during Gleason’s trial, a jury could have determined the State had failed to meet its beyond-a-reasonable-doubt burden of proof. Consequently, the State needed to make a significant effort to obtain Thompson’s in-person testimony, and it did not.
The second factor relates to the severity of the crime. Gleason was charged with the most serious crime that exists in this state, capital murder. In Cook, the Tenth Circuit Court of Appeals emphasized that “because there is a real cost to the defendant in foregoing true confrontation, the unavailability requirement must be more than a formality.” 323 F.3d at 832. Later in the opinion, the Tenth Circuit quoted McCandless v. Vaughn, 172 F.3d 255, 266 (3d Cir. 1999), to malee a point that is critical to the analysis in this case: “ In a capital case, for example, it is fair to ask more of the prosecution than in a situation involving significantly less serious consequences.’ ” Cook, 323 F.3d at 836.
Yet, the State asks us to be satisfied with what had been done in Jefferson, 287 Kan. 28, an aggravated battery case, and Terry, 202 Kan. 599, a noncapital premeditated murder case. Neither case exposed tire defendant to the severe consequences of punishment by death.
Likewise the third factor—whether the witness has a special reason to favor the prosecutor, such as an immunity agreement for cooperation—weighs heavily against the majority’s conclusion that the State’s efforts were reasonable. In exchange for Thompson’s testimony, the State agreed to dismiss very serious charges against Thompson, including one count of capital murder. In light of this favorable plea agreement, Gleason had a strong interest in confronting Thompson before the ultimate factfinders—the jurors. See Cook, 323 F.3d at 836 (stating that defendants have a stronger interest in confronting witnesses who are granted immunity by the State).
*1206Finally, courts should evaluate whether the State made the same effort to secure the witness’ testimony as it would have made if the State did not have the witness’ preliminary hearing testimony available to present at trial. 323 F.3d at 836. In this case, the answer to this factor is clear: The prosecutor would not have been willing to give up so easily and would have been begging the district court to bring Thompson back to court the next day to see if he had changed his mind. This point distinguishes the only capital murder case relied on by the majority, Lowery v. Anderson, 225 F.3d 833, 839-40 (7th Cir. 2000), superseded by statute on other grounds Corcoran v. Buss, 551 F.3d 703 (7th Cir. 2008), cert. granted, judgment vacated, and remanded by Corcoran v. Levenhagen, 558 U.S. 1, 130 S. Ct. 8, 175 L. Ed. 2d 1 (2009).
In Lowery, both the prosecutor and trial judge offered the witness numerous opportunities to purge his contempt. The appellate court cited these efforts several times in its analysis, suggesting the significance of the repeated opportunities. At one point in the opinion, the court explained that the witness had been held in contempt and then, “[t]he next day, this procedure was repeated and the same result obtained.” (Emphasis added.) Lowery, 225 F.3d at 838. Later in the opinion, after noting that the trial judge had held the witness in contempt, the Lowery court emphasized that “this procedure was repeated several times, outside the jury’s presence.” 225 F.3d at 839. Then, in the jury’s presence, “[h]e refused again to testify and was again held in contempt.” 225 F.3d at 839.
In this case, despite the majority’s heavy reliance on Lowery, the majority does not explain why it was reasonable to deny Thompson the same opportunities as had been given the Lowery witness. And neither the State nor the majority attempts to explain why it was reasonable for the prosecutor to object to giving the witness an opportunity to contemplate tire consequences of his refusal to testify after those consequences had just been explained to him by his attorney. The prosecutor’s only justification at trial was that they should not be left to “wait in the wings.” This superficial excuse becomes even weaker when viewed in light of what transpired.
Just minutes later, it became obvious the jury proceedings would be delayed because Gleason orally moved for a mistrial and lengthy *1207arguments ensued. The juiy was dismissed for the rest of that afternoon, which was a Thursday, and all of the next day while the parties presented oral arguments and defense counsel prepared written arguments for the court’s consideration. On Monday morning, the court and counsel resumed the legal arguments based on the written materials the court received over the weekend. Approximately 3½ days after Thompson had received the advice of his attorney and had been held in contempt, the jury proceedings resumed. Thompson’s preliminary hearing testimony was read into the record, and tire State rested without “continu[ing] with the rest of the witnesses” that the State had argued could not be left waiting in the wings.
Thus, by late Thursday afternoon the justification for the State’s excuse—i.e., that tire jury proceedings should not be delayed—had evaporated, if it ever existed. The jury proceedings had been delayed anyway, and questioning Thompson on Friday morning would have, at most, added a few minutes to the delay. At best, giving Thompson the opportunity to purge his contempt might have ended the delay if he had changed his mind and testified. By Friday and certainly by Monday morning, if not before, tire requirement of a good-faith effort and reasonable diligence dictated that the State take steps to bring Thompson back to court so he could be given another opportunity to purge his contempt. The record discloses that Thompson was housed in a prison located sufficiently close that he was transported to the trial tire morning he was to testily, and he could and should have been returned to court.
While neither Jefferson nor Terry required more than one opportunity for a witness to change his or her mind about refusing to testify, there is no indication either defendant had requested such an opportunity be offered. But such a request was made in this case, and the prosecutor’s opposition to such a simple effort to obtain Thompson’s in-person testimony reflected a lack of good faith and reduced Gleason’s confrontation right to a mere formality.
Moreover, die focus should not be solely on what happened after Thompson refused to testify. As previously noted, the State’s ef*1208forts to diligently obtain Thompson’s trial testimony derailed before the trial even began because of the way in which the State handled its part of the plea agreement. I would not go so far as to say that the State had to delay sentencing until after Thompson had testified at Gleason’s trial in order for Thompson to be declared unavailable. To lay down such a rule would be contraiy to the caselaw that suggests there should be no bright-line rule enunciating steps the State must take to obtain a witness’ trial testimony before a witness can be declared unavailable. Yet, delaying sentencing of a witness who has agreed to testify at another’s trial as part of a plea agreement until after the witness testifies at trial would be a better practice, especially in a case where the other unavailability factors weigh so heavily against the State. Certainly doing so would have weighed in the State’s favor on this final factor and, conversely, the failure to do so suggests a lack of good faith in obtaining Thompson’s in-person trial testimony and a willingness to proceed by reading from the cold preliminary hearing transcript.
In summary, handing the keys to Thompson, especially when combined widi the prosecutor’s attempts to rush Thompson out of the courtroom and away from any opportunity to change his mind, signals that the State approached Gleason’s constitutional right to confrontation as a mere formality. The State certainly did not make as much effort to ensure the jury heard Thompson’s in-person trial testimony as it took to ensure it had a preliminary hearing transcript that could later be used as a substitute for Thompson’s in-person trial testimony.
Consequently, I would hold that the State did not make a good-faith effort or act with reasonable diligence to obtain Thompson’s in-person testimony before the jury. As a result, the district court erred in ruling that Thompson was unavailable and in admitting his preliminary hearing testimony, and these errors violated Gleason’s right of confrontation under the Sixth Amendment to the United States Constitution and § 10 of the Kansas Constitution Bill of Rights. See Crawford v. Washington, 541 U.S. 36, 68, 124 S. Ct. 1354, 158 L. Ed. 2d 177 (2004); Jefferson, 287 Kan. at 39.
*1209Motion for Mistrial
The district court also erred in denying Gleason’s motion for mistrial. Gleason argued witnesses had testified to hearsay statements made by Thompson regarding the double homicide, the court had admitted the statements under K.S.A. 60-460(a) based on the assumption that Thompson would testify at trial and be available for cross-examination, and Thompson’s refusal to testify undermined the necessary foundation for applying K.S.A. 60-460(a). See K.S.A. 60-460(a) (allowing admission of hearsay statement “previously made by a person who is present at the hearing and available for cross-examination with respect to the statement and its subject matter, provided the statement would be admissible if made by declarant while testifying as a witness”).
The district court denied the motion, concluding Gleason had cross-examined Thompson at the preliminary hearing about the underlying facts of the homicides and, thus, about the subject matter of the hearsay statements. Obviously, this ruling depended on the appropriateness of admitting Thompson’s preliminary hearing testimony. Because the district court erred in admitting the preliminary hearing testimony, it also erred in admitting Thompson’s hearsay statements.
Reversible Error
These errors violated Gleason’s constitutional right of confrontation. In light of the constitutional error, tire State has the burden of satisfying the harmless error standard recognized in Chapman v. California, 386 U.S. 18, 87 S. Ct. 824, 17 L. Ed. 2d 705 (1967). Under Chapman, “before a federal constitutional error can be held harmless, the court must be able to declare a belief that it was harmless beyond a reasonable doubt.” 386 U.S. at 24. The issue is not whether the juiy would have reached a different verdict but rather whether it appears “beyond a reasonable doubt that the error complained of did not contribute to the verdict obtained.” 386 U.S. at 24.
As previously noted, Thompson’s preliminary hearing testimony and hearsay statements were the only direct evidence of Gleason’s involvement in the double homicide. Even the physical evidence *1210of blood on the shoes depends on Thompson’s statements identifying the shoes as Gleason’s. Without Thompson’s testimony and hearsay statements, the State would be left with only sketchy circumstantial evidence of Gleason’s involvement in the double homicide. Thus, I dissent from the majority’s decision and would reverse Gleason’s convictions for capital murder, aggravated kidnapping, and criminal possession of a firearm and remand for a new trial at which the State would be required to present either Thompson’s in-person trial’ testimony or satisfy its burden of establishing that it had made a good-faith effort and acted with reasonable diligence but failed to secure Thompson’s testimony.
I would not reverse Gleason’s conviction for aggravated robbery, however, because Fulton and Ricky Galindo provided overwhelming evidence of Gleason’s involvement in that crime. Thompson’s testimony added little, if anything, and would not have affected the jury’s verdict. Therefore, I concur with the majority’s decision to affirm Gleason’s aggravated robbery conviction.
Beier and Johnson, JJ., join in the foregoing concurring and dissenting opinion.[[Image here]]