Small- and mid-cap shares gained despite the muted benchmarks. Higher oil costs remain a concern for inflation, company margins and India’s import bill.