AB de Villiers crafted an unbeaten half-century to put South Africa in a promising position on a third day of the second Test which was cut short by bad light after India captain Virat Kohli lit up Centurion with a sublime hundred.
A magnificent 21st Test century from Kohli (153) got the tourists up to 307 all out on Monday, Morne Morkel taking 4-60 as the Proteas earned a first-innings advantage of 28.
An intriguing contest appeared to be swinging India's favour when Jasprit Bumrah reduced South Africa to 3-2, but De Villiers (50 not out) and Dean Elgar (36no) came to the rescue with an unbroken third-wicket stand of 87 on a deteriorating pitch.
South Africa were 90-2 when the players were taken off 10 overs into the final session under dark skies, leading by 118 as they strive to wrap up the series with one match to play.
Kohli carried on where he left off on day two after India resumed on 183-5, the skipper adding the 15 runs he needed to raise his bat yet again, reaching three figures by working debutant Lungi Ngidi into the leg side for two.
Hardik Pandya had shown restraint, but gifted South Africa his wicket when he ambled through for a single but was run out by Vernon Philander, the all-rounder failing to ground his bat or a foot despite being beyond the crease.
Kohli found another able partner in Ravichandran Ashwin (38), who dispatched Kagiso Rabada for three consecutive boundaries as Kohli continued to look untroubled.
Ashwin struck seven boundaries and put on a much-needed 71 with Kohli for the seventh wicket before edging Philander, steaming in with the new ball, to Faf du Plessis at second slip.
Morkel removed Mohammed Shami and Ishant Sharma cheaply, but Kohli was able to bring up 150 by pulling the paceman to the midwicket boundary before the innings was ended when he holed out to the same bowler.
Bumrah (2-30) set the alarm bells ringing for South Africa when he trapped Aiden Markram and Hashim Amla leg before, but De Villiers showed positive intent and Elgar grafted for his runs on a tricky surface, indifferent bounce making life difficult for the batsmen.
De Villiers found the ropes six times and reached his 50 before play ended prematurely due to the failing light, a rain delay having also brought the players off after tea.
|Valverde doesn´t regret resting Messi despite Barcelona loss|
|In my heart and in my prayers - Ben Yedder pays tribute to missing Sala|
|Real Madrid reclaim world´s highest-earning club title from Manchester United|
|Messi absence no excuse for Barcelona loss, says Suarez|
|Humble Higuain excited by Sarri reunion|
|He must not come and cry after – Goncalves unapologetic over Neymar injury|
|Serie A record-breaker under Sarri - the Opta numbers behind new Chelsea striker Higuain|
|PSG boss Tuchel ´worried´ after Neymar sent to hospital with another foot injury|
|Coles commits to New Zealand and Hurricanes until 2021|
|Guardiola praises City mentality on ´dangerous´ Burton pitch|
|England won ´attritional´ battle, says Anderson after latest landmark|
|AEK, Brose Bamberg secure last-16 spots|
|Sevilla 2 Barcelona 0: Resting Messi backfires for Copa del Rey holders|
|Sarri: Chelsea players agree with me on motivation comments|
|Morata asked to leave Chelsea a month ago, says Sarri|
|Paris Saint-Germain 2 Strasbourg 0: Neymar suffers injury scare in Coupe victory|
|Anderson´s four-wicket haul rocks Windies|
|Burton Albion 0 Manchester City 1 (0-10 agg): Holders coast through to clinch Wembley return|
|PSG´s Neymar hobbles off in Coupe de France clash|
|De Ligt bored of Ajax departure rumours|
|Piatek completes AC Milan move after Higuain exit|
|Super Bowl LIII: Rams RBs v Patriots RBs|
|Chelsea seal Higuain loan|
|Ismaily kicked out of CAF Champions League after fans throw stones, bottles|
|England star Itoje pens new Saracens deal|
|Palace keeper Hennessey charged over Instagram post|
|Chelsea warn supporters over anti-Semitic chanting ahead of Tottenham EFL Cup tie|
|Joshua primed to make call on next opponent|
|Super Bowl LIII: Brady v Goff|
|Sala search suspended as Cardiff chairman confirms club wanted different travel arrangements|
|Cruyff, Koeman, Kluivert - De Jong following pantheon of Dutch Barca greats|
|Sarfraz apologises for comments picked up by stump mic|
|Djokovic: Pouille deserves top-10 spot|
|Hazard must be more demanding if he wants to leave Chelsea, says Ballack|
|Celtics´ Kyrie Irving to sit out Cavs game with flu-like symptoms|
|Barcelona seal €86m De Jong deal|
|Vietnam v Japan: Moriyasu happy to keep doing just enough|
|Hendricks, De Kock and Steyn join up with Proteas squad|
|Lorenzo excited for ´new level´ at Repsol Honda|
|Fernando replaces injured Pradeep in Sri Lanka squad|
|China v Iran: Queiroz wants to exorcise 2015 quarter-final|
|Balotelli joins Marseille until the end of the season|
|Emery gives Monchi ringing endorsement amid Arsenal sporting director links|
|Larry Fitzgerald returning to Cardinals on one-year deal|
|Watson absence ´an opportunity´ for Scotland hopefuls, says Townsend|
|Pochettino open to new signings but Janssen to remain a Spurs outcast|
|´No trace´ of aircraft so far in Sala search|
|Pochettino will not judge Sarri for criticising Chelsea players|
|From front row to four in a row - Best takes on Farrell at Connect 4|
|Hazard an individual, not a leader - Sarri urges Chelsea star to do more|
|Broad left out of England team for first Test|
|Higuain set to sign for Chelsea but won´t face Tottenham – Sarri|
|McGillvary injury blow for Giants|
|Solari praises Marcelo amid exit rumours|
|A-League Review: Joy and pain for De Jong as Sydney close gap|
|Halfpenny, Davies and Williams set to miss France clash|
|India to rest Kohli from back end of New Zealand tour|
|The hand is good - Farrell expects to be fit to face Ireland|
|Martinez leaves Arsenal for Reading loan|
|Beckham becomes Salford City shareholder|
|Maradona hopes Sala will be found alive|
|Djokovic will not discuss potential Nadal showdown yet|
|A Federer-Nadal double? Even historic scalps may not be enough for Tsitsipas|
|Raonic to assess knee injury, hopes to avoid surgery|
|Barcelona right to fine ´complicated´ Dembele, says Ter Stegen|
|Higuain and Piatek on the move on busy day for Milan|
|Philippe and Vince humble the Hurricanes|
|Nishikori: I couldn´t beat anybody on one leg|
|Boateng poised for debut as Barcelona axe Suarez|
|Shami sets record in crushing win after sun stops play|