Yorkshire navigated a hard fought and hugely entertaining second day against already relegated Warwickshire at Headingley to keep themselves ahead as they bid for a crucial Specsavers County Championship victory.
Adam Lyth posted the county’s only half-century as they replied to 219 with 296 all out having started the day on 62-1.
Warwickshire battled hard as they play for pride, with seamers Chris Wright and Boyd Rankin and off-spinner Jeetan Patel their standout bowlers.
And they are certainly not out of this one having closed on 49 for one from 16 overs, a deficit of 28.
They ensured that Yorkshire have not run away with this contest, although a lead of 77 is extremely useful as the White Rose battle to avoid relegation to Division Two.
A win here in the White Rose’s penultimate match of the campaign, their final home game, would be a fourth in 13 matches this season.
Lyth was backed up by a handy contributions from Gary Ballance (28), Jack Leaning (36), Matthew Fisher (37) and Tim Bresnan, whose 47 was next best.
No doubt, Yorkshire will be a touch frustrated that a number of loose shots contributed to their downfall.
Warwickshire struck in the first over of the day when night-watchman Steve Patterson edged Ryan Sidebottom to first slip, with no addition to the overnight score.
Alex Lees was bowled through the gate by Wright courtesy of late in swing before Lyth played on as he attempted to pull at Rankin in his first over of the day as the score fell to 115-4 in the 40th over.
Lyth had reached his fifty off 102 balls.
Warwickshire added four more wickets in the afternoon, when Yorkshire moved into the lead.
Ballance and Andrew Hodd were both caught behind off Patel and Wright in the early stages of the session as the score fell to 179-6 in the 61st over, a deficit of 40.
But Bresnan shared in two useful partnerships to give Yorkshire batting points one and two and secure a lead in the process.
He added 49 for the seventh wicket with Leaning and 36 with Fisher before falling three short of a deserved half-century.
Leaning was caught in the gully off Matt Lamb’s medium pace with 228 on the board in the 77th over before Bresnan united with Fisher.
Unfortunately, he was bowled sweeping at Patel in the penultimate over of the afternoon as the score fell to 264-8 in the 86th.
After tea, Jack Brooks and Fisher both fell to Rankin, caught at slip and caught and bowled respectively, with the hosts falling just short of a third batting point.
Yorkshire bowled well under lights in the latter stages of the day as the Bears dug in.
Liam Banks offered a low slip to Leaning at third off Ben Coad, who then had Dom Sibley lbw playing across the line shortly afterwards – 35-1 in the eleventh.
Banks will begin day four on 22 with Jonathan Trott on nine.
“I think it was a reasonably good day for us,” he said. “The conditions were tough. The ball did a bit throughout the day. We did a good job to get a decent lead, and it’s key for us to start well tomorrow.
“It has enough in it for batsmen and bowlers. Once you get through the first half an hour as a batsman, it should be ok to score.
“We really chipped in well as a team batting wise. It’s now key to bowl in partnerships, which we did well tonight and in the first innings. We have to keep that up.”