South Africa tightened their grip on the second Test against England thanks to a third day of steady accumulation at Trent Bridge.
Dean Elgar, Hashim Amla and returning captain Faf du Plessis all brought up half-centuries, with the home attack forced to toil for their wickets before the Proteas declared on 343-9.
Alastair Cook had a first-ball lbw dismissal by Morne Morkel overturned on review as England began an improbable attempt at what would be a world-record chase of 474 and, even though he and Keaton Jennings nervily reached one without loss at the close, Joe Root's side are likely to head to The Oval at 1-1 in the four-match series.
After breezing to a 211-run win in his first Test in charge at Lord's, Root has become more attuned to the harsh realities of captaincy in the longest format in Nottingham, with a paltry first-innings effort of 205 leaving England chasing the game.
Opener Elgar and Amla resumed on 75 for one and set about methodically building upon their overnight lead of 205 on a morning of ragged frustration for their opponents.
Elgar, not always the easiest batsman on the eye, passed 50 with a thick outside edge off James Anderson and another nick off Stuart Broad fell safely in the following over.
Broad and England then offered up an error they could ill afford – appealing half-heartedly and neglecting to use a review when replays showed Amla feathered a delivery behind to Jonny Bairstow when on 25.
In Broad's next set of six, new-ball partner Anderson dropped a tough one-handed chance at gully after Elgar slashed at a wide one, but England were rewarded for their persistence with two wickets in as many overs before lunch.
Ben Stokes – who bustled in impressively for his 2-34 – unsettled Elgar with some short stuff and the left-hander appeared to pull out of his stroke as he lobbed a catch to square leg to depart for 80.
Anderson (2-45) was the catcher and he then encouraged the dangerous Quinton de Kock to edge behind.
Amla remained at lunch, having brought up his fifty with a six off Liam Dawson, as he did in the first innings, although the Hampshire all-rounder had South Africa's number three dismissed leg before on review, 13 shy of a century.
Dawson's fellow spinner Moeen Ali was ignored by Root until mid-afternoon but helped himself to 4-78 as South Africa belatedly looked to hit out after reaching tea on 236 for four.
Du Plessis crunched three through the covers off Moeen to raise his bat but saw partner Temba Bavuma continue his struggles against spin by lofting the Worcestershire man to Root at mid-off.
Anderson, Broad and Mark Wood all summoned probing but unrewarding spells with the second new ball before Stokes pinned Du Plessis in front for 63 with one that kept low.
Gary Ballance and Stuart Broad held fine catches as Chris Morris and Keshav Maharaj tried to slog Moeen with the declaration in sight.
Vernon Philander had more success in that regard during a breezy 42 that ended with a caught and bowled for Moeen, although his more decisive work is probably still to come with ball in hand alongside Morkel, who bowled with palpable menace during a gripping end to the day.
|Di Maria: Barca star Neymar welcome at PSG|
|Orlando City 0 Atlanta United 1: Villalba´s late stunner sinks Kaka´s men|
|Encarnacion reaches milestone with latest home run|
|Collins misses 59 as he takes Barbasol lead|
|De Bruyne: Don´t compare Lukaku to Messi|
|Irving´s agent tight-lipped on reports Cavs star wants trade|
|Thomas explains Open meltdown as he misses cut|
|Randolph set for Middlesbrough move after Hart arrival|
|MLS an option for Mascherano|
|Warriors shut out depleted Rhinos, Centurions off bottom|
|Koepka excited to contend in another major|
|Recovering Goffin shocked by world number 412 Dodig|
|Veteran qualities see Spieth seize control at blustery Birkdale|
|The Open Diary: Poulter wins (but it´s not Ian) as wind and rain lash Birkdale|
|Open leader Spieth: I would have gladly stayed on the couch|
|Bogdan stuns Sevastova in Bucharest|
|It was anger from the word go - Stenson saddened as burglary mars Open defence|
|The Open Social Diary: Birthday shoes, dancing shoes and soggy shoes|
|Sevilla to take legal action against Vitolo, Atletico and Las Palmas|
|Spieth leads Open by two as Birkdale bares teeth|
|Bolt wins final 100m outing before World Championships|
|Pumped-up Poulter ready to take on anyone at Birkdale|
|Stuani quits Middlesbrough for LaLiga new boys Girona|
|Cerci: I gave up a lot of money to leave Atletico|
|Joining Chelsea from Real Madrid like ´leaving home´ for Morata|
|Ancelotti working to make Sanches an AC Milan fan|
|Neymar unaffected by PSG speculation - Barca team-mate Mascherano|
|Mendy left out of Sporting friendly amid talk of Manchester City move|
|Borussia Dortmund interested before Tianjin Quanjian move - Modeste|
|Torres torment or Drogba delight - how will Morata stack up against Chelsea´s big-money buys?|
|Morata becomes Spain´s most expensive player - how did Torres, Mata & more fare?|
|Chelsea sign Real Madrid striker Morata|
|James: I can replace Messi and Ronaldo|
|Boasson Hagen breaks through as Matthews clinches green jersey|
|Eremenko doping ban upheld by CAS|
|PSV defender Willems joins Eintracht|
|Van Dijk training alone as he wants to leave Southampton|
|Luring Bonucci from Juventus an important sign - Abate|
|Klopp hopes for Lucas return after tearful Liverpool goodbye|
|Wood you believe it? Chris produces more Birkdale magic with walk-off eagle|
|Naholo extends Highlanders stay|
|Haas to retain Magnussen, Grosjean for 2018|
|Sarries cult hero Barrington backs Itoje to captain England|
|Sparta Prague bring in Lille captain Mavuba|
|Mickelson: I missed the Open cut with flair|
|Defending Open champ Stenson victim of Birkdale burglary|
|Hajduk ordered to play behind closed doors after racist incident|
|Liverpool sign Robertson from Hull City|
|McIlroy ´ecstatic´ as Open revival continues|
|Murray needs full fitness for US Open challenge, Henman warns|
|Sharks mark Lewis landmark with a win, Roosters see off Knights|
|Kuchar content to watch Open rivals toil|
|Arsenal versus Chelsea is never a friendly - Wenger|
|It didn´t feel good at all - Garcia explains self-inflicted shoulder injury|
|Zouma seals long-term Chelsea contract extension and Stoke loan|
|Inter 1 Schalke 1: Murillo hits stunning equaliser as Perisic makes appearance|
|Cahill: Terry is a huge loss for Chelsea|
|Nastase hit with three-year ban and fine|
|Newcastle seal Manquillo signing|
|LaLiga fixtures: Atletico Madrid start with three away games|
|LaLiga fixtures: Madrid to juggle Clasico plans with Club World Cup commitments|
|LaLiga fixtures: Barcelona host late-season Clasico|
|Hurricanes blow Brumbies away in second half to reach semi-final|
|LaLiga key fixtures: Clasico on December 20, Madrid derby after World Cup play-offs|
|Conte declares Costa saga ´closed´, suggests decision to sell was made in January|
|LaLiga fixtures: Madrid travel to Deportivo on opening weekend as Barcelona host Betis|
|Benteke ´very happy´ at Crystal Palace amid Everton links|
|Conte: Morata was my first choice for Chelsea|
|Leigh´s Acton apologises after being hit with season-ending ban|
|Schar ends Hoffenheim troubles with Deportivo switch|